2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x
; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var
in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\
${$as_var+set} = xset \
119 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
132 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x
; then
135 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required
="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev
/null
; then :
186 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
191 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
194 test -z "$as_dir" && as_dir
=.
198 for as_base
in sh bash ksh sh5
; do
199 # Try only shells that exist, to save several forks.
200 as_shell
=$as_dir/$as_base
201 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
203 CONFIG_SHELL
=$as_shell as_have_required
=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
212 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
214 CONFIG_SHELL
=$SHELL as_have_required
=yes
219 if test "x$CONFIG_SHELL" != x
; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
225 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x
$as_have_required = xno
; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x
${ZSH_VERSION+set} = xset
; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
246 SHELL
=${CONFIG_SHELL-/bin/sh}
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE
= GREP_OPTIONS
=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
257 # Portably unset VAR.
260 { eval $1=; unset $1;}
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
284 # Create "$as_dir" as a directory, including parents if necessary.
289 -*) as_dir
=.
/$as_dir;;
291 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
295 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 as_dirs
="'$as_qdir' $as_dirs"
299 as_dir
=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
322 test -d "$as_dir" && break
324 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
325 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
336 eval 'as_fn_append ()
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
360 as_val
=`expr "$@" || test $? -eq 1`
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
372 as_status
=$?
; test $as_status -eq 0 && as_status
=1
374 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit
$as_status
381 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
388 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
400 as_me
=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 # Avoid depending upon Character Ranges.
420 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits
='0123456789'
424 as_cr_alnum
=$as_cr_Letters$as_cr_digits
427 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
428 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x
"$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
454 # Exit status is that of the last command.
458 ECHO_C
= ECHO_N
= ECHO_T
=
459 case `echo -n x` in #(((((
461 case `echo 'xy\c'` in
462 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
471 rm -f conf$$ conf$$.exe conf$$.
file
472 if test -d conf$$.dir
; then
473 rm -f conf$$.dir
/conf$$.
file
476 mkdir conf$$.dir
2>/dev
/null
478 if (echo >conf$$.
file) 2>/dev
/null
; then
479 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
487 elif ln conf$$.
file conf$$
2>/dev
/null
; then
495 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
496 rmdir conf$$.dir
2>/dev
/null
498 if mkdir
-p .
2>/dev
/null
; then
499 as_mkdir_p
='mkdir -p "$as_dir"'
501 test -d .
/-p && rmdir .
/-p
505 if test -x / >/dev
/null
2>&1; then
508 if ls -dL / >/dev
/null
2>&1; then
515 if test -d "$1"; then
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
526 as_executable_p
=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL
=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev
/null
6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix
=/usr
/local
549 ac_config_libobj_dir
=.
556 # Identity of this package.
564 ac_unique_file
="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default
="\
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
578 # ifdef HAVE_STDLIB_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
601 ac_subst_vars
='LTLIBOBJS
624 common_out_object_file
647 user_headers_inc_next_post
648 user_headers_inc_next_pre
650 TM_MULTILIB_EXCEPTIONS_CONFIG
659 build_xm_include_list
661 build_install_headers_dir
663 all_selected_languages
681 ORIGINAL_NM_FOR_TARGET
683 ORIGINAL_LD_FOR_TARGET
684 ORIGINAL_PLUGIN_LD_FOR_TARGET
686 ORIGINAL_AS_FOR_TARGET
726 NATIVE_SYSTEM_HEADER_DIR
759 CROSS_SYSTEM_HEADER_DIR
760 TARGET_SYSTEM_ROOT_DEFINE
762 SYSROOT_CFLAGS_FOR_TARGET
767 ENABLE_BUILD_WITH_CXX
770 valgrind_path_defines
844 program_transform_name
855 ac_subst_files
='option_includes
858 enable_option_checking
863 enable_generated_files_in_srcdir
873 enable_gather_detailed_mem_stats
874 enable_build_with_cxx
885 with_native_system_header_dir
895 enable_initfini_array
896 enable_sjlj_exceptions
898 enable_leading_mingw64_underscores
901 enable_win32_registry
907 enable_gnu_indirect_function
909 enable_gnu_unique_object
910 enable_linker_build_id
914 enable_maintainer_mode
915 enable_version_specific_runtime_libs
917 enable_libquadmath_support
918 with_linker_hash_style
920 ac_precious_vars
='build_alias
941 # Initialize some variables set by options.
943 ac_init_version
=false
944 ac_unrecognized_opts
=
946 # The variables have the same names as the options, with
947 # dashes changed to underlines.
955 program_transform_name
=s
,x
,x
,
963 # Installation directory options.
964 # These are left unexpanded so users can "make install exec_prefix=/foo"
965 # and all the variables that are supposed to be based on exec_prefix
966 # by default will actually change.
967 # Use braces instead of parens because sh, perl, etc. also accept them.
968 # (The list follows the same order as the GNU Coding Standards.)
969 bindir
='${exec_prefix}/bin'
970 sbindir
='${exec_prefix}/sbin'
971 libexecdir
='${exec_prefix}/libexec'
972 datarootdir
='${prefix}/share'
973 datadir
='${datarootdir}'
974 sysconfdir
='${prefix}/etc'
975 sharedstatedir
='${prefix}/com'
976 localstatedir
='${prefix}/var'
977 includedir
='${prefix}/include'
978 oldincludedir
='/usr/include'
979 docdir
='${datarootdir}/doc/${PACKAGE}'
980 infodir
='${datarootdir}/info'
985 libdir
='${exec_prefix}/lib'
986 localedir
='${datarootdir}/locale'
987 mandir
='${datarootdir}/man'
993 # If the previous option needs an argument, assign it.
994 if test -n "$ac_prev"; then
995 eval $ac_prev=\
$ac_option
1001 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1005 # Accept the important Cygnus configure options, so we can diagnose typos.
1007 case $ac_dashdash$ac_option in
1011 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1013 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1014 bindir
=$ac_optarg ;;
1016 -build |
--build |
--buil |
--bui |
--bu)
1017 ac_prev
=build_alias
;;
1018 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1019 build_alias
=$ac_optarg ;;
1021 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1022 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1023 ac_prev
=cache_file
;;
1024 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1025 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1026 cache_file
=$ac_optarg ;;
1028 --config-cache |
-C)
1029 cache_file
=config.cache
;;
1031 -datadir |
--datadir |
--datadi |
--datad)
1033 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1034 datadir
=$ac_optarg ;;
1036 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1037 |
--dataroo |
--dataro |
--datar)
1038 ac_prev
=datarootdir
;;
1039 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1040 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1041 datarootdir
=$ac_optarg ;;
1043 -disable-* |
--disable-*)
1044 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1045 # Reject names that are not valid shell variable names.
1046 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1047 as_fn_error
"invalid feature name: $ac_useropt"
1048 ac_useropt_orig
=$ac_useropt
1049 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050 case $ac_user_opts in
1052 "enable_
$ac_useropt"
1054 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1055 ac_unrecognized_sep
=', ';;
1057 eval enable_
$ac_useropt=no
;;
1059 -docdir |
--docdir |
--docdi |
--doc |
--do)
1061 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1062 docdir
=$ac_optarg ;;
1064 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1066 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1067 dvidir
=$ac_optarg ;;
1069 -enable-* |
--enable-*)
1070 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1073 as_fn_error
"invalid feature name: $ac_useropt"
1074 ac_useropt_orig
=$ac_useropt
1075 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076 case $ac_user_opts in
1078 "enable_
$ac_useropt"
1080 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1081 ac_unrecognized_sep
=', ';;
1083 eval enable_
$ac_useropt=\
$ac_optarg ;;
1085 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1086 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1087 |
--exec |
--exe |
--ex)
1088 ac_prev
=exec_prefix
;;
1089 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1090 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1091 |
--exec=* |
--exe=* |
--ex=*)
1092 exec_prefix
=$ac_optarg ;;
1094 -gas |
--gas |
--ga |
--g)
1095 # Obsolete; use --with-gas.
1098 -help |
--help |
--hel |
--he |
-h)
1099 ac_init_help
=long
;;
1100 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1101 ac_init_help
=recursive
;;
1102 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1103 ac_init_help
=short
;;
1105 -host |
--host |
--hos |
--ho)
1106 ac_prev
=host_alias
;;
1107 -host=* |
--host=* |
--hos=* |
--ho=*)
1108 host_alias
=$ac_optarg ;;
1110 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1112 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1114 htmldir
=$ac_optarg ;;
1116 -includedir |
--includedir |
--includedi |
--included |
--include \
1117 |
--includ |
--inclu |
--incl |
--inc)
1118 ac_prev
=includedir
;;
1119 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1120 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1121 includedir
=$ac_optarg ;;
1123 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1125 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1126 infodir
=$ac_optarg ;;
1128 -libdir |
--libdir |
--libdi |
--libd)
1130 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1131 libdir
=$ac_optarg ;;
1133 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1134 |
--libexe |
--libex |
--libe)
1135 ac_prev
=libexecdir
;;
1136 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1137 |
--libexe=* |
--libex=* |
--libe=*)
1138 libexecdir
=$ac_optarg ;;
1140 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1141 ac_prev
=localedir
;;
1142 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1143 localedir
=$ac_optarg ;;
1145 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1146 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1147 ac_prev
=localstatedir
;;
1148 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1149 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1150 localstatedir
=$ac_optarg ;;
1152 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1154 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1155 mandir
=$ac_optarg ;;
1157 -nfp |
--nfp |
--nf)
1158 # Obsolete; use --without-fp.
1161 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1162 |
--no-cr |
--no-c |
-n)
1165 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1166 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1169 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1170 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1171 |
--oldin |
--oldi |
--old |
--ol |
--o)
1172 ac_prev
=oldincludedir
;;
1173 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1174 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1175 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1176 oldincludedir
=$ac_optarg ;;
1178 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1180 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1181 prefix
=$ac_optarg ;;
1183 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1184 |
--program-pre |
--program-pr |
--program-p)
1185 ac_prev
=program_prefix
;;
1186 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1187 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1188 program_prefix
=$ac_optarg ;;
1190 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1191 |
--program-suf |
--program-su |
--program-s)
1192 ac_prev
=program_suffix
;;
1193 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1194 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1195 program_suffix
=$ac_optarg ;;
1197 -program-transform-name |
--program-transform-name \
1198 |
--program-transform-nam |
--program-transform-na \
1199 |
--program-transform-n |
--program-transform- \
1200 |
--program-transform |
--program-transfor \
1201 |
--program-transfo |
--program-transf \
1202 |
--program-trans |
--program-tran \
1203 |
--progr-tra |
--program-tr |
--program-t)
1204 ac_prev
=program_transform_name
;;
1205 -program-transform-name=* |
--program-transform-name=* \
1206 |
--program-transform-nam=* |
--program-transform-na=* \
1207 |
--program-transform-n=* |
--program-transform-=* \
1208 |
--program-transform=* |
--program-transfor=* \
1209 |
--program-transfo=* |
--program-transf=* \
1210 |
--program-trans=* |
--program-tran=* \
1211 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1212 program_transform_name
=$ac_optarg ;;
1214 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1216 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1217 pdfdir
=$ac_optarg ;;
1219 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1221 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1224 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1225 |
-silent |
--silent |
--silen |
--sile |
--sil)
1228 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1230 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1232 sbindir
=$ac_optarg ;;
1234 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1235 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1236 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1238 ac_prev
=sharedstatedir
;;
1239 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1240 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1241 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1243 sharedstatedir
=$ac_optarg ;;
1245 -site |
--site |
--sit)
1247 -site=* |
--site=* |
--sit=*)
1250 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1252 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1253 srcdir
=$ac_optarg ;;
1255 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1256 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1257 ac_prev
=sysconfdir
;;
1258 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1259 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1260 sysconfdir
=$ac_optarg ;;
1262 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1263 ac_prev
=target_alias
;;
1264 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1265 target_alias
=$ac_optarg ;;
1267 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1270 -version |
--version |
--versio |
--versi |
--vers |
-V)
1271 ac_init_version
=: ;;
1274 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1275 # Reject names that are not valid shell variable names.
1276 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1277 as_fn_error
"invalid package name: $ac_useropt"
1278 ac_useropt_orig
=$ac_useropt
1279 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1280 case $ac_user_opts in
1284 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1285 ac_unrecognized_sep
=', ';;
1287 eval with_
$ac_useropt=\
$ac_optarg ;;
1289 -without-* |
--without-*)
1290 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1291 # Reject names that are not valid shell variable names.
1292 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1293 as_fn_error
"invalid package name: $ac_useropt"
1294 ac_useropt_orig
=$ac_useropt
1295 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296 case $ac_user_opts in
1300 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1301 ac_unrecognized_sep
=', ';;
1303 eval with_
$ac_useropt=no
;;
1306 # Obsolete; use --with-x.
1309 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1310 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1311 ac_prev
=x_includes
;;
1312 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1313 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1314 x_includes
=$ac_optarg ;;
1316 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1317 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1318 ac_prev
=x_libraries
;;
1319 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1320 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1321 x_libraries
=$ac_optarg ;;
1323 -*) as_fn_error
"unrecognized option: \`$ac_option'
1324 Try \`$0 --help' for more information."
1328 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1329 # Reject names that are not valid shell variable names.
1330 case $ac_envvar in #(
1331 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1332 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1334 eval $ac_envvar=\
$ac_optarg
1335 export $ac_envvar ;;
1338 # FIXME: should be removed in autoconf 3.0.
1339 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1340 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1341 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1342 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1348 if test -n "$ac_prev"; then
1349 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1350 as_fn_error
"missing argument to $ac_option"
1353 if test -n "$ac_unrecognized_opts"; then
1354 case $enable_option_checking in
1356 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1357 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1361 # Check all directory arguments for consistency.
1362 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1363 datadir sysconfdir sharedstatedir localstatedir includedir \
1364 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1365 libdir localedir mandir
1367 eval ac_val
=\$
$ac_var
1368 # Remove trailing slashes.
1371 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1372 eval $ac_var=\
$ac_val;;
1374 # Be sure to have absolute directory names.
1376 [\\/$
]* | ?
:[\\/]* ) continue;;
1377 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1379 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1382 # There might be people who depend on the old broken behavior: `$host'
1383 # used to hold the argument of --host etc.
1384 # FIXME: To remove some day.
1387 target
=$target_alias
1389 # FIXME: To remove some day.
1390 if test "x$host_alias" != x
; then
1391 if test "x$build_alias" = x
; then
1392 cross_compiling
=maybe
1393 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1394 If a cross compiler is detected then cross compile mode will be used." >&2
1395 elif test "x$build_alias" != "x$host_alias"; then
1401 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1403 test "$silent" = yes && exec 6>/dev
/null
1406 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1407 ac_ls_di
=`ls -di .` &&
1408 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1409 as_fn_error
"working directory cannot be determined"
1410 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1411 as_fn_error
"pwd does not report name of working directory"
1414 # Find the source files, if location was not specified.
1415 if test -z "$srcdir"; then
1416 ac_srcdir_defaulted
=yes
1417 # Try the directory containing this script, then the parent directory.
1418 ac_confdir
=`$as_dirname -- "$as_myself" ||
1419 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1420 X"$as_myself" : 'X\(//\)[^/]' \| \
1421 X"$as_myself" : 'X\(//\)$' \| \
1422 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1423 $as_echo X"$as_myself" |
1424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1442 if test ! -r "$srcdir/$ac_unique_file"; then
1446 ac_srcdir_defaulted
=no
1448 if test ! -r "$srcdir/$ac_unique_file"; then
1449 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1450 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1452 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1454 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1456 # When building in place, set srcdir=.
1457 if test "$ac_abs_confdir" = "$ac_pwd"; then
1460 # Remove unnecessary trailing slashes from srcdir.
1461 # Double slashes in file names in object file debugging info
1462 # mess up M-x gdb in Emacs.
1464 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1466 for ac_var
in $ac_precious_vars; do
1467 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1468 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1469 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1470 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1474 # Report the --help message.
1476 if test "$ac_init_help" = "long"; then
1477 # Omit some internal or obsolete options to make the list less imposing.
1478 # This message is too long to be a string in the A/UX 3.1 sh.
1480 \`configure' configures this package to adapt to many kinds of systems.
1482 Usage: $0 [OPTION]... [VAR=VALUE]...
1484 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1485 VAR=VALUE. See below for descriptions of some of the useful variables.
1487 Defaults for the options are specified in brackets.
1490 -h, --help display this help and exit
1491 --help=short display options specific to this package
1492 --help=recursive display the short help of all the included packages
1493 -V, --version display version information and exit
1494 -q, --quiet, --silent do not print \`checking...' messages
1495 --cache-file=FILE cache test results in FILE [disabled]
1496 -C, --config-cache alias for \`--cache-file=config.cache'
1497 -n, --no-create do not create output files
1498 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1500 Installation directories:
1501 --prefix=PREFIX install architecture-independent files in PREFIX
1502 [$ac_default_prefix]
1503 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1506 By default, \`make install' will install all the files in
1507 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1508 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1509 for instance \`--prefix=\$HOME'.
1511 For better control, use the options below.
1513 Fine tuning of the installation directories:
1514 --bindir=DIR user executables [EPREFIX/bin]
1515 --sbindir=DIR system admin executables [EPREFIX/sbin]
1516 --libexecdir=DIR program executables [EPREFIX/libexec]
1517 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1518 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1519 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1520 --libdir=DIR object code libraries [EPREFIX/lib]
1521 --includedir=DIR C header files [PREFIX/include]
1522 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1523 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1524 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1525 --infodir=DIR info documentation [DATAROOTDIR/info]
1526 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1527 --mandir=DIR man documentation [DATAROOTDIR/man]
1528 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1529 --htmldir=DIR html documentation [DOCDIR]
1530 --dvidir=DIR dvi documentation [DOCDIR]
1531 --pdfdir=DIR pdf documentation [DOCDIR]
1532 --psdir=DIR ps documentation [DOCDIR]
1538 --program-prefix=PREFIX prepend PREFIX to installed program names
1539 --program-suffix=SUFFIX append SUFFIX to installed program names
1540 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1543 --build=BUILD configure
for building on BUILD
[guessed
]
1544 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1545 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1549 if test -n "$ac_init_help"; then
1554 --disable-option-checking ignore unrecognized
--enable/--with options
1555 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1556 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1557 --enable-generated-files-in-srcdir
1558 put copies of generated files
in source dir intended
1559 for creating
source tarballs
for users without
1560 texinfo bison or flex
1561 --disable-largefile omit support
for large files
1562 --enable-werror-always enable -Werror despite compiler version
1563 --enable-checking[=LIST
]
1564 enable expensive run-time checks. With LIST
, enable
1565 only specific categories of checks. Categories are
:
1566 yes,no
,all
,none
,release. Flags are
:
1567 assert
,df
,fold,gc
,gcac
,gimple
,misc
,
1568 rtlflag
,rtl
,runtime
,tree
,valgrind
,types
1569 --enable-coverage[=LEVEL
]
1570 enable compiler
's code coverage collection. Use to
1571 measure compiler performance and locate unused parts
1572 of the compiler. With LEVEL, specify optimization.
1573 Values are opt, noopt, default is noopt
1574 --enable-gather-detailed-mem-stats
1575 enable detailed memory allocation stats gathering
1576 --enable-build-with-cxx build with C++ compiler instead of C compiler
1577 --enable-multilib enable library support for multiple ABIs
1578 --enable-__cxa_atexit enable __cxa_atexit for C++
1579 --enable-decimal-float={no,yes,bid,dpd}
1580 enable decimal float extension to C. Selecting 'bid
'
1581 or 'dpd
' choses which decimal floating point format
1583 --enable-fixed-point enable fixed-point arithmetic extension to C
1584 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1586 --enable-tls enable or disable generation of tls code overriding
1587 the assembler check for tls support
1588 --enable-objc-gc enable the use of Boehm's garbage collector with the
1589 GNU Objective-C runtime
1590 --disable-shared don
't provide a shared libgcc
1591 --enable-languages=LIST specify which front-ends to build
1592 --disable-rpath do not hardcode runtime library paths
1593 --enable-initfini-array use .init_array/.fini_array sections
1594 --enable-sjlj-exceptions
1595 arrange to use setjmp/longjmp exception handling
1596 --enable-secureplt enable -msecure-plt by default for PowerPC
1597 --enable-leading-mingw64-underscores
1598 enable leading underscores on 64 bit mingw targets
1599 --enable-cld enable -mcld by default for 32bit x86
1600 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1602 --disable-win32-registry
1603 disable lookup of installation paths in the Registry
1605 --enable-win32-registry enable registry lookup (default)
1606 --enable-win32-registry=KEY
1607 use KEY instead of GCC version as the last portion
1609 --enable-shared[=PKGS] build shared libraries [default=yes]
1610 --enable-static[=PKGS] build static libraries [default=yes]
1611 --enable-fast-install[=PKGS]
1612 optimize for fast installation [default=yes]
1613 --disable-libtool-lock avoid locking (might break parallel builds)
1614 --enable-gnu-indirect-function
1615 enable the use of the @gnu_indirect_function to
1617 --enable-comdat enable COMDAT group support
1618 --enable-gnu-unique-object
1619 enable the use of the @gnu_unique_object ELF
1620 extension on glibc systems
1621 --enable-linker-build-id
1622 compiler will always pass --build-id to linker
1623 --enable-maintainer-mode
1624 enable make rules and dependencies not useful (and
1625 sometimes confusing) to the casual installer
1626 --enable-version-specific-runtime-libs
1627 specify that runtime libraries should be installed
1628 in a compiler-specific directory
1629 --enable-plugin enable plugin support
1630 --disable-libquadmath-support
1631 disable libquadmath support for Fortran
1634 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1635 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1636 --with-build-libsubdir=DIR Directory where to find libraries for build system
1637 --with-local-prefix=DIR specifies directory to put local include
1638 --with-gxx-include-dir=DIR
1639 specifies directory to put g++ header files
1640 --with-cpp-install-dir=DIR
1641 install the user visible C preprocessor in DIR
1642 (relative to PREFIX) as well as PREFIX/bin
1643 --with-gnu-ld arrange to work with GNU ld
1644 --with-ld arrange to use the specified ld (full pathname)
1645 --with-demangler-in-ld try to use demangler in GNU ld
1646 --with-gnu-as arrange to work with GNU as
1647 --with-as arrange to use the specified as (full pathname)
1648 --with-stabs arrange to use stabs instead of host debug format
1649 --with-dwarf2 force the default debug format to be DWARF 2
1650 --with-native-system-header-dir=dir
1651 use dir as the directory to look for standard
1652 system header files in. Defaults to /usr/include.
1653 --with-build-sysroot=sysroot
1654 use sysroot as the system root during the build
1655 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1656 --with-specs=SPECS add SPECS to driver command-line processing
1657 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1658 --with-bugurl=URL Direct users to URL to report a bug
1659 --with-multilib-list select multilibs (SH and x86-64 only)
1660 --with-gnu-ld assume the C compiler uses GNU ld default=no
1661 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1662 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1663 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1665 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1666 --with-plugin-ld=[ARG
] specify the plugin linker
1667 --with-long-double-128 use
128-bit long double by default
1668 --with-gc={page
,zone
} choose the garbage collection mechanism to use with
1670 --with-system-zlib use installed libz
1671 --with-linker-hash-style={sysv
,gnu
,both
}
1672 specify the linker
hash style
1674 Some influential environment variables
:
1675 CC C compiler
command
1676 CFLAGS C compiler flags
1677 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1678 nonstandard directory
<lib dir
>
1679 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1680 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1681 you have headers
in a nonstandard directory
<include dir
>
1682 CXX C
++ compiler
command
1683 CXXFLAGS C
++ compiler flags
1685 CXXCPP C
++ preprocessor
1686 GMPLIBS How to link GMP
1687 GMPINC How to
find GMP include files
1688 PPLLIBS How to link PPL
1689 PPLINC How to
find PPL include files
1690 CLOOGLIBS How to link CLOOG
1691 CLOOGINC How to
find CLOOG include files
1693 Use these variables to override the choices made by
`configure' or to help
1694 it to find libraries and programs with nonstandard names/locations.
1696 Report bugs to the package provider.
1701 if test "$ac_init_help" = "recursive"; then
1702 # If there are subdirs, report their specific --help.
1703 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1704 test -d "$ac_dir" ||
1705 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1710 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1712 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1713 # A ".." for each directory in $ac_dir_suffix.
1714 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1715 case $ac_top_builddir_sub in
1716 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1717 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1720 ac_abs_top_builddir=$ac_pwd
1721 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1722 # for backward compatibility:
1723 ac_top_builddir=$ac_top_build_prefix
1726 .) # We are building in place.
1728 ac_top_srcdir=$ac_top_builddir_sub
1729 ac_abs_top_srcdir=$ac_pwd ;;
1730 [\\/]* | ?:[\\/]* ) # Absolute name.
1731 ac_srcdir=$srcdir$ac_dir_suffix;
1732 ac_top_srcdir=$srcdir
1733 ac_abs_top_srcdir=$srcdir ;;
1735 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1736 ac_top_srcdir=$ac_top_build_prefix$srcdir
1737 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1739 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1741 cd "$ac_dir" || { ac_status=$?; continue; }
1742 # Check for guested configure.
1743 if test -f "$ac_srcdir/configure.gnu"; then
1745 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1746 elif test -f "$ac_srcdir/configure"; then
1748 $SHELL "$ac_srcdir/configure" --help=recursive
1750 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1752 cd "$ac_pwd" || { ac_status=$?; break; }
1756 test -n "$ac_init_help" && exit $ac_status
1757 if $ac_init_version; then
1760 generated by GNU Autoconf 2.64
1762 Copyright (C) 2009 Free Software Foundation, Inc.
1763 This configure script is free software; the Free Software Foundation
1764 gives unlimited permission to copy, distribute and modify it.
1769 ## ------------------------ ##
1770 ## Autoconf initialization. ##
1771 ## ------------------------ ##
1773 # ac_fn_c_try_compile LINENO
1774 # --------------------------
1775 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1776 ac_fn_c_try_compile ()
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 rm -f conftest.$ac_objext
1780 if { { ac_try="$ac_compile"
1782 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1783 *) ac_try_echo
=$ac_try;;
1785 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786 $as_echo "$ac_try_echo"; } >&5
1787 (eval "$ac_compile") 2>conftest.err
1789 if test -s conftest.err
; then
1790 grep -v '^ *+' conftest.err
>conftest.er1
1791 cat conftest.er1
>&5
1792 mv -f conftest.er1 conftest.err
1794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795 test $ac_status = 0; } && {
1796 test -z "$ac_c_werror_flag" ||
1797 test ! -s conftest.err
1798 } && test -s conftest.
$ac_objext; then :
1801 $as_echo "$as_me: failed program was:" >&5
1802 sed 's/^/| /' conftest.
$ac_ext >&5
1806 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1809 } # ac_fn_c_try_compile
1811 # ac_fn_cxx_try_compile LINENO
1812 # ----------------------------
1813 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1814 ac_fn_cxx_try_compile
()
1816 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1817 rm -f conftest.
$ac_objext
1818 if { { ac_try
="$ac_compile"
1820 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1821 *) ac_try_echo=$ac_try;;
1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 $as_echo "$ac_try_echo"; } >&5
1825 (eval "$ac_compile") 2>conftest.err
1827 if test -s conftest.err; then
1828 grep -v '^ *+' conftest.err >conftest.er1
1829 cat conftest.er1 >&5
1830 mv -f conftest.er1 conftest.err
1832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833 test $ac_status = 0; } && {
1834 test -z "$ac_cxx_werror_flag" ||
1835 test ! -s conftest.err
1836 } && test -s conftest.$ac_objext; then :
1839 $as_echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.$ac_ext >&5
1844 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1847 } # ac_fn_cxx_try_compile
1849 # ac_fn_c_try_cpp LINENO
1850 # ----------------------
1851 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855 if { { ac_try="$ac_cpp conftest.$ac_ext"
1857 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1858 *) ac_try_echo
=$ac_try;;
1860 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861 $as_echo "$ac_try_echo"; } >&5
1862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1864 if test -s conftest.err
; then
1865 grep -v '^ *+' conftest.err
>conftest.er1
1866 cat conftest.er1
>&5
1867 mv -f conftest.er1 conftest.err
1869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870 test $ac_status = 0; } >/dev
/null
&& {
1871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1872 test ! -s conftest.err
1876 $as_echo "$as_me: failed program was:" >&5
1877 sed 's/^/| /' conftest.
$ac_ext >&5
1881 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1886 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1887 # -------------------------------------------------------
1888 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1889 # the include files in INCLUDES and setting the cache variable VAR
1891 ac_fn_c_check_header_mongrel
()
1893 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1894 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1896 $as_echo_n "checking for $2... " >&6; }
1897 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1898 $as_echo_n "(cached) " >&6
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902 $as_echo "$ac_res" >&6; }
1904 # Is the header compilable?
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1906 $as_echo_n "checking $2 usability... " >&6; }
1907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1908 /* end confdefs.h. */
1912 if ac_fn_c_try_compile
"$LINENO"; then :
1913 ac_header_compiler
=yes
1915 ac_header_compiler
=no
1917 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1919 $as_echo "$ac_header_compiler" >&6; }
1921 # Is the header present?
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1923 $as_echo_n "checking $2 presence... " >&6; }
1924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h. */
1928 if ac_fn_c_try_cpp
"$LINENO"; then :
1929 ac_header_preproc
=yes
1931 ac_header_preproc
=no
1933 rm -f conftest.err conftest.
$ac_ext
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1935 $as_echo "$ac_header_preproc" >&6; }
1937 # So? What about this header?
1938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1941 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1943 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1947 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1949 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1951 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1953 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1955 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959 $as_echo_n "checking for $2... " >&6; }
1960 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1961 $as_echo_n "(cached) " >&6
1963 eval "$3=\$ac_header_compiler"
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1967 $as_echo "$ac_res" >&6; }
1969 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1971 } # ac_fn_c_check_header_mongrel
1973 # ac_fn_c_try_run LINENO
1974 # ----------------------
1975 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1976 # that executables *can* be run.
1979 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1980 if { { ac_try
="$ac_link"
1982 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1983 *) ac_try_echo=$ac_try;;
1985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1986 $as_echo "$ac_try_echo"; } >&5
1987 (eval "$ac_link") 2>&5
1989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1990 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1991 { { case "(($ac_try" in
1992 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1993 *) ac_try_echo
=$ac_try;;
1995 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1996 $as_echo "$ac_try_echo"; } >&5
1997 (eval "$ac_try") 2>&5
1999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000 test $ac_status = 0; }; }; then :
2003 $as_echo "$as_me: program exited with status $ac_status" >&5
2004 $as_echo "$as_me: failed program was:" >&5
2005 sed 's/^/| /' conftest.
$ac_ext >&5
2007 ac_retval
=$ac_status
2009 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2010 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2015 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2016 # -------------------------------------------------------
2017 # Tests whether HEADER exists and can be compiled using the include files in
2018 # INCLUDES, setting the cache variable VAR accordingly.
2019 ac_fn_c_check_header_compile
()
2021 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2023 $as_echo_n "checking for $2... " >&6; }
2024 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2025 $as_echo_n "(cached) " >&6
2027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2032 if ac_fn_c_try_compile
"$LINENO"; then :
2037 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2041 $as_echo "$ac_res" >&6; }
2042 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2044 } # ac_fn_c_check_header_compile
2046 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2047 # --------------------------------------------
2048 # Tries to find the compile-time value of EXPR in a program that includes
2049 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2051 ac_fn_c_compute_int
()
2053 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2054 if test "$cross_compiling" = yes; then
2055 # Depending upon the size, compute the lo and hi bounds.
2056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h. */
2062 static int test_array [1 - 2 * !(($2) >= 0)];
2069 if ac_fn_c_try_compile
"$LINENO"; then :
2072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h. */
2078 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2085 if ac_fn_c_try_compile
"$LINENO"; then :
2086 ac_hi
=$ac_mid; break
2088 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2089 if test $ac_lo -le $ac_mid; then
2093 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2095 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2104 static int test_array [1 - 2 * !(($2) < 0)];
2111 if ac_fn_c_try_compile
"$LINENO"; then :
2114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h. */
2120 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2127 if ac_fn_c_try_compile
"$LINENO"; then :
2128 ac_lo
=$ac_mid; break
2130 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2131 if test $ac_mid -le $ac_hi; then
2135 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2137 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2142 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2144 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2145 # Binary search between lo and hi bounds.
2146 while test "x$ac_lo" != "x$ac_hi"; do
2147 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h. */
2154 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2161 if ac_fn_c_try_compile
"$LINENO"; then :
2164 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2166 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2169 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2174 /* end confdefs.h. */
2176 static long int longval () { return $2; }
2177 static unsigned long int ulongval () { return $2; }
2184 FILE *f = fopen ("conftest.val", "w");
2189 long int i = longval ();
2192 fprintf (f, "%ld", i);
2196 unsigned long int i = ulongval ();
2199 fprintf (f, "%lu", i);
2201 /* Do not output a trailing newline, as this causes \r\n confusion
2202 on some platforms. */
2203 return ferror (f) || fclose (f) != 0;
2209 if ac_fn_c_try_run
"$LINENO"; then :
2210 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2214 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2215 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2219 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2222 } # ac_fn_c_compute_int
2224 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2225 # -------------------------------------------
2226 # Tests whether TYPE exists after having included INCLUDES, setting cache
2227 # variable VAR accordingly.
2228 ac_fn_c_check_type
()
2230 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2232 $as_echo_n "checking for $2... " >&6; }
2233 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2234 $as_echo_n "(cached) " >&6
2237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2238 /* end confdefs.h. */
2249 if ac_fn_c_try_compile
"$LINENO"; then :
2250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2251 /* end confdefs.h. */
2262 if ac_fn_c_try_compile
"$LINENO"; then :
2267 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2269 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2273 $as_echo "$ac_res" >&6; }
2274 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2276 } # ac_fn_c_check_type
2278 # ac_fn_c_find_intX_t LINENO BITS VAR
2279 # -----------------------------------
2280 # Finds a signed integer type with width BITS, setting cache variable VAR
2282 ac_fn_c_find_intX_t
()
2284 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2286 $as_echo_n "checking for int$2_t... " >&6; }
2287 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2288 $as_echo_n "(cached) " >&6
2291 for ac_type
in int
$2_t 'int' 'long int' \
2292 'long long int' 'short int' 'signed char'; do
2293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2294 /* end confdefs.h. */
2295 $ac_includes_default
2299 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2306 if ac_fn_c_try_compile
"$LINENO"; then :
2307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2308 /* end confdefs.h. */
2309 $ac_includes_default
2313 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2314 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2321 if ac_fn_c_try_compile
"$LINENO"; then :
2328 eval "$3=\$ac_type" ;;
2331 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2333 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2335 if test "x$as_val" = x
""no
; then :
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2344 $as_echo "$ac_res" >&6; }
2345 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2347 } # ac_fn_c_find_intX_t
2349 # ac_fn_c_try_link LINENO
2350 # -----------------------
2351 # Try to link conftest.$ac_ext, and return whether this succeeded.
2354 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2355 rm -f conftest.
$ac_objext conftest
$ac_exeext
2356 if { { ac_try
="$ac_link"
2358 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2359 *) ac_try_echo=$ac_try;;
2361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2362 $as_echo "$ac_try_echo"; } >&5
2363 (eval "$ac_link") 2>conftest.err
2365 if test -s conftest.err; then
2366 grep -v '^ *+' conftest.err >conftest.er1
2367 cat conftest.er1 >&5
2368 mv -f conftest.er1 conftest.err
2370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2371 test $ac_status = 0; } && {
2372 test -z "$ac_c_werror_flag" ||
2373 test ! -s conftest.err
2374 } && test -s conftest$ac_exeext && {
2375 test "$cross_compiling" = yes ||
2376 $as_test_x conftest$ac_exeext
2380 $as_echo "$as_me: failed program was:" >&5
2381 sed 's/^/| /' conftest.$ac_ext >&5
2385 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2386 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2387 # interfere with the next link command; also delete a directory that is
2388 # left behind by Apple's compiler. We do this before executing the actions.
2389 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2390 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2393 } # ac_fn_c_try_link
2395 # ac_fn_c_find_uintX_t LINENO BITS VAR
2396 # ------------------------------------
2397 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2399 ac_fn_c_find_uintX_t ()
2401 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2403 $as_echo_n "checking for uint$2_t... " >&6; }
2404 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2405 $as_echo_n "(cached) " >&6
2408 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2409 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2411 /* end confdefs.h. */
2412 $ac_includes_default
2416 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2423 if ac_fn_c_try_compile "$LINENO"; then :
2428 eval "$3=\$ac_type" ;;
2431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2433 if test "x$as_val" = x""no; then :
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2442 $as_echo "$ac_res" >&6; }
2443 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2445 } # ac_fn_c_find_uintX_t
2447 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2448 # ----------------------------------------------
2449 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2450 ac_fn_c_check_header_preproc ()
2452 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2454 $as_echo_n "checking for $2... " >&6; }
2455 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2456 $as_echo_n "(cached) " >&6
2458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2459 /* end confdefs.h. */
2462 if ac_fn_c_try_cpp "$LINENO"; then :
2467 rm -f conftest.err conftest.$ac_ext
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2471 $as_echo "$ac_res" >&6; }
2472 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2474 } # ac_fn_c_check_header_preproc
2476 # ac_fn_cxx_try_cpp LINENO
2477 # ------------------------
2478 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2479 ac_fn_cxx_try_cpp ()
2481 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2482 if { { ac_try="$ac_cpp conftest.$ac_ext"
2484 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2485 *) ac_try_echo
=$ac_try;;
2487 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2488 $as_echo "$ac_try_echo"; } >&5
2489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2491 if test -s conftest.err
; then
2492 grep -v '^ *+' conftest.err
>conftest.er1
2493 cat conftest.er1
>&5
2494 mv -f conftest.er1 conftest.err
2496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2497 test $ac_status = 0; } >/dev
/null
&& {
2498 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2499 test ! -s conftest.err
2503 $as_echo "$as_me: failed program was:" >&5
2504 sed 's/^/| /' conftest.
$ac_ext >&5
2508 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2511 } # ac_fn_cxx_try_cpp
2513 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2514 # ------------------------------------------------
2515 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2516 ac_fn_cxx_check_header_preproc
()
2518 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2520 $as_echo_n "checking for $2... " >&6; }
2521 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2522 $as_echo_n "(cached) " >&6
2524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2525 /* end confdefs.h. */
2528 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2533 rm -f conftest.err conftest.
$ac_ext
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2537 $as_echo "$ac_res" >&6; }
2538 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2540 } # ac_fn_cxx_check_header_preproc
2542 # ac_fn_c_check_func LINENO FUNC VAR
2543 # ----------------------------------
2544 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2545 ac_fn_c_check_func
()
2547 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2549 $as_echo_n "checking for $2... " >&6; }
2550 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2551 $as_echo_n "(cached) " >&6
2553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2554 /* end confdefs.h. */
2555 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2557 #define $2 innocuous_$2
2559 /* System header to define __stub macros and hopefully few prototypes,
2560 which can conflict with char $2 (); below.
2561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2562 <limits.h> exists even on freestanding compilers. */
2565 # include <limits.h>
2567 # include <assert.h>
2572 /* Override any GCC internal prototype to avoid an error.
2573 Use char because int might match the return type of a GCC
2574 builtin and then its argument prototype would still apply. */
2579 /* The GNU C library defines this for functions which it implements
2580 to always fail with ENOSYS. Some functions are actually named
2581 something starting with __ and the normal name is an alias. */
2582 #if defined __stub_$2 || defined __stub___$2
2594 if ac_fn_c_try_link
"$LINENO"; then :
2599 rm -f core conftest.err conftest.
$ac_objext \
2600 conftest
$ac_exeext conftest.
$ac_ext
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2604 $as_echo "$ac_res" >&6; }
2605 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2607 } # ac_fn_c_check_func
2609 # ac_fn_cxx_try_link LINENO
2610 # -------------------------
2611 # Try to link conftest.$ac_ext, and return whether this succeeded.
2612 ac_fn_cxx_try_link
()
2614 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2615 rm -f conftest.
$ac_objext conftest
$ac_exeext
2616 if { { ac_try
="$ac_link"
2618 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2619 *) ac_try_echo=$ac_try;;
2621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2622 $as_echo "$ac_try_echo"; } >&5
2623 (eval "$ac_link") 2>conftest.err
2625 if test -s conftest.err; then
2626 grep -v '^ *+' conftest.err >conftest.er1
2627 cat conftest.er1 >&5
2628 mv -f conftest.er1 conftest.err
2630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2631 test $ac_status = 0; } && {
2632 test -z "$ac_cxx_werror_flag" ||
2633 test ! -s conftest.err
2634 } && test -s conftest$ac_exeext && {
2635 test "$cross_compiling" = yes ||
2636 $as_test_x conftest$ac_exeext
2640 $as_echo "$as_me: failed program was:" >&5
2641 sed 's/^/| /' conftest.$ac_ext >&5
2645 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2646 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2647 # interfere with the next link command; also delete a directory that is
2648 # left behind by Apple's compiler. We do this before executing the actions.
2649 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2650 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2653 } # ac_fn_cxx_try_link
2654 cat >config.log <<_ACEOF
2655 This file contains any messages produced by compilers while
2656 running configure, to aid debugging if configure makes a mistake.
2658 It was created by $as_me, which was
2659 generated by GNU Autoconf 2.64. Invocation command line was
2671 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2672 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2673 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2674 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2675 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2677 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2678 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2680 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2681 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2682 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2683 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2684 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2685 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2686 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694 test -z "$as_dir" && as_dir=.
2695 $as_echo "PATH: $as_dir"
2711 # Keep a trace of the command line.
2712 # Strip out --no-create and --no-recursion so they do not pile up.
2713 # Strip out --silent because we don't want to record it for future runs.
2714 # Also quote any args containing shell meta-characters.
2715 # Make two passes to allow for proper duplicate-argument suppression.
2719 ac_must_keep_next=false
2725 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2726 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2727 | -silent | --silent | --silen | --sile | --sil)
2730 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2733 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2735 as_fn_append ac_configure_args1 " '$ac_arg'"
2736 if test $ac_must_keep_next = true; then
2737 ac_must_keep_next=false # Got value, back to normal.
2740 *=* | --config-cache | -C | -disable-* | --disable-* \
2741 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2742 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2743 | -with-* | --with-* | -without-* | --without-* | --x)
2744 case "$ac_configure_args0 " in
2745 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2748 -* ) ac_must_keep_next=true ;;
2751 as_fn_append ac_configure_args " '$ac_arg'"
2756 { ac_configure_args0=; unset ac_configure_args0;}
2757 { ac_configure_args1=; unset ac_configure_args1;}
2759 # When interrupted or exit'd, cleanup temporary files, and complete
2760 # config.log. We remove comments because anyway the quotes in there
2761 # would cause problems or look ugly.
2762 # WARNING: Use '\'' to represent an apostrophe within the trap.
2763 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2764 trap 'exit_status=$?
2765 # Save into config.log some information that might help in debugging.
2770 ## ---------------- ##
2771 ## Cache variables. ##
2772 ## ---------------- ##
2775 # The following way of writing the cache mishandles newlines in values,
2777 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2778 eval ac_val=\$$ac_var
2782 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2783 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2786 _ | IFS | as_nl) ;; #(
2787 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2788 *) { eval $ac_var=; unset $ac_var;} ;;
2793 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2794 *${as_nl}ac_space=\ *)
2796 "s/'\''/'\''\\\\'\'''\''/g;
2797 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2800 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2808 ## ----------------- ##
2809 ## Output variables. ##
2810 ## ----------------- ##
2813 for ac_var in $ac_subst_vars
2815 eval ac_val=\$$ac_var
2817 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2819 $as_echo "$ac_var='\''$ac_val'\''"
2823 if test -n "$ac_subst_files"; then
2825 ## ------------------- ##
2826 ## File substitutions. ##
2827 ## ------------------- ##
2830 for ac_var in $ac_subst_files
2832 eval ac_val=\$$ac_var
2834 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2836 $as_echo "$ac_var='\''$ac_val'\''"
2841 if test -s confdefs.h; then
2851 test "$ac_signal" != 0 &&
2852 $as_echo "$as_me: caught signal $ac_signal"
2853 $as_echo "$as_me: exit $exit_status"
2855 rm -f core *.core core.conftest.* &&
2856 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2859 for ac_signal in 1 2 13 15; do
2860 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2864 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2865 rm -f -r conftest* confdefs.h
2867 $as_echo "/* confdefs.h */" > confdefs.h
2869 # Predefined preprocessor variables.
2871 cat >>confdefs.h <<_ACEOF
2872 #define PACKAGE_NAME "$PACKAGE_NAME"
2875 cat >>confdefs.h <<_ACEOF
2876 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2879 cat >>confdefs.h <<_ACEOF
2880 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2883 cat >>confdefs.h <<_ACEOF
2884 #define PACKAGE_STRING "$PACKAGE_STRING"
2887 cat >>confdefs.h <<_ACEOF
2888 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2891 cat >>confdefs.h <<_ACEOF
2892 #define PACKAGE_URL "$PACKAGE_URL"
2896 # Let the site file select an alternate cache file if it wants to.
2897 # Prefer an explicitly selected file to automatically selected ones.
2900 if test -n "$CONFIG_SITE"; then
2901 ac_site_file1=$CONFIG_SITE
2902 elif test "x$prefix" != xNONE; then
2903 ac_site_file1=$prefix/share/config.site
2904 ac_site_file2=$prefix/etc/config.site
2906 ac_site_file1=$ac_default_prefix/share/config.site
2907 ac_site_file2=$ac_default_prefix/etc/config.site
2909 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2911 test "x$ac_site_file" = xNONE && continue
2912 if test -r "$ac_site_file"; then
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2914 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2915 sed 's/^/| /' "$ac_site_file" >&5
2920 if test -r "$cache_file"; then
2921 # Some versions of bash will fail to source /dev/null (special
2922 # files actually), so we avoid doing that.
2923 if test -f "$cache_file"; then
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2925 $as_echo "$as_me: loading cache $cache_file" >&6;}
2927 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2928 *) . "./$cache_file";;
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2933 $as_echo "$as_me: creating cache $cache_file" >&6;}
2937 # Check that the precious variables saved in the cache have kept the same
2939 ac_cache_corrupted=false
2940 for ac_var in $ac_precious_vars; do
2941 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2942 eval ac_new_set=\$ac_env_${ac_var}_set
2943 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2944 eval ac_new_val=\$ac_env_${ac_var}_value
2945 case $ac_old_set,$ac_new_set in
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2948 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2949 ac_cache_corrupted=: ;;
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2952 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2953 ac_cache_corrupted=: ;;
2956 if test "x$ac_old_val" != "x$ac_new_val"; then
2957 # differences in whitespace do not lead to failure.
2958 ac_old_val_w=`echo x
$ac_old_val`
2959 ac_new_val_w=`echo x
$ac_new_val`
2960 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2962 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2963 ac_cache_corrupted=:
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2966 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2967 eval $ac_var=\$ac_old_val
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2970 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2972 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2975 # Pass precious variables to config.status.
2976 if test "$ac_new_set" = set; then
2978 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2979 *) ac_arg=$ac_var=$ac_new_val ;;
2981 case " $ac_configure_args " in
2982 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2983 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2987 if $ac_cache_corrupted; then
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2991 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2992 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2994 ## -------------------- ##
2995 ## Main body of script. ##
2996 ## -------------------- ##
2999 ac_cpp='$CPP $CPPFLAGS'
3000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3009 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3012 gcc_version=`cat $srcdir/BASE-VER
`
3014 # Determine the host, build, and target systems
3016 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3017 for ac_t in install-sh install.sh shtool; do
3018 if test -f "$ac_dir/$ac_t"; then
3020 ac_install_sh="$ac_aux_dir/$ac_t -c"
3025 if test -z "$ac_aux_dir"; then
3026 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3029 # These three variables are undocumented and unsupported,
3030 # and are intended to be withdrawn in a future Autoconf release.
3031 # They can cause serious problems if a builder's source tree is in a directory
3032 # whose full name contains unusual characters.
3033 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3034 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3035 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3038 # Make sure we can run config.sub.
3039 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3040 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3043 $as_echo_n "checking build system type... " >&6; }
3044 if test "${ac_cv_build+set}" = set; then :
3045 $as_echo_n "(cached) " >&6
3047 ac_build_alias=$build_alias
3048 test "x$ac_build_alias" = x &&
3049 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3050 test "x$ac_build_alias" = x &&
3051 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3052 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3053 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3057 $as_echo "$ac_cv_build" >&6; }
3058 case $ac_cv_build in
3060 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3063 ac_save_IFS=$IFS; IFS='-'
3069 # Remember, the first character of IFS is used to create $*,
3070 # except with old shells:
3073 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3077 $as_echo_n "checking host system type... " >&6; }
3078 if test "${ac_cv_host+set}" = set; then :
3079 $as_echo_n "(cached) " >&6
3081 if test "x$host_alias" = x; then
3082 ac_cv_host=$ac_cv_build
3084 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3085 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3090 $as_echo "$ac_cv_host" >&6; }
3093 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3096 ac_save_IFS=$IFS; IFS='-'
3102 # Remember, the first character of IFS is used to create $*,
3103 # except with old shells:
3106 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3110 $as_echo_n "checking target system type... " >&6; }
3111 if test "${ac_cv_target+set}" = set; then :
3112 $as_echo_n "(cached) " >&6
3114 if test "x$target_alias" = x; then
3115 ac_cv_target=$ac_cv_host
3117 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3118 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3123 $as_echo "$ac_cv_target" >&6; }
3124 case $ac_cv_target in
3126 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3128 target=$ac_cv_target
3129 ac_save_IFS=$IFS; IFS='-'
3135 # Remember, the first character of IFS is used to create $*,
3136 # except with old shells:
3139 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3142 # The aliases save the names the user supplied, while $host etc.
3143 # will get canonicalized.
3144 test -n "$target_alias" &&
3145 test "$program_prefix$program_suffix$program_transform_name" = \
3147 program_prefix=${target_alias}-
3149 # Determine the noncanonical target name, for directory use.
3150 case ${build_alias} in
3151 "") build_noncanonical=${build} ;;
3152 *) build_noncanonical=${build_alias} ;;
3155 case ${host_alias} in
3156 "") host_noncanonical=${build_noncanonical} ;;
3157 *) host_noncanonical=${host_alias} ;;
3160 case ${target_alias} in
3161 "") target_noncanonical=${host_noncanonical} ;;
3162 *) target_noncanonical=${target_alias} ;;
3168 # Determine the target- and build-specific subdirectories
3170 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3171 # have matching libraries, they should use host libraries: Makefile.tpl
3172 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3173 # However, they still use the build modules, because the corresponding
3174 # host modules (e.g. bison) are only built for the host when bootstrap
3176 # - build_subdir is where we find build modules, and never changes.
3177 # - build_libsubdir is where we find build libraries, and can be overridden.
3179 # Prefix 'build-' so this never conflicts with target_subdir.
3180 build_subdir="build-${build_noncanonical}"
3182 # Check whether --with-build-libsubdir was given.
3183 if test "${with_build_libsubdir+set}" = set; then :
3184 withval=$with_build_libsubdir; build_libsubdir="$withval"
3186 build_libsubdir="$build_subdir"
3189 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3190 if ( test $srcdir = . && test -d gcc ) \
3191 || test -d $srcdir/../host-${host_noncanonical}; then
3192 host_subdir="host-${host_noncanonical}"
3197 target_subdir=${target_noncanonical}
3200 # Set program_transform_name
3201 test "$program_prefix" != NONE &&
3202 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3203 # Use a double $ so make ignores it.
3204 test "$program_suffix" != NONE &&
3205 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3206 # Double any \ or $.
3207 # By default was `s
,x
,x
', remove it if useless.
3208 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3209 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3212 # Check for bogus environment variables.
3213 # Test if LIBRARY_PATH contains the notation for the current directory
3214 # since this would lead to problems installing/building glibc.
3215 # LIBRARY_PATH contains the current directory if one of the following
3217 # - one of the terminals (":" and ";") is the first or last sign
3218 # - two terminals occur directly after each other
3219 # - the path contains an element with a dot in it
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3221 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3222 case ${LIBRARY_PATH} in
3223 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3224 library_path_setting="contains current directory"
3227 library_path_setting="ok"
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3231 $as_echo "$library_path_setting" >&6; }
3232 if test "$library_path_setting" != "ok"; then
3234 *** LIBRARY_PATH shouldn't contain the current directory when
3235 *** building gcc. Please change the environment variable
3236 *** and run configure again.
" "$LINENO" 5
3239 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3240 # since this would lead to problems installing/building glibc.
3241 # GCC_EXEC_PREFIX contains the current directory if one of the following
3243 # - one of the terminals (":" and ";") is the first or last sign
3244 # - two terminals occur directly after each other
3245 # - the path contains an element with a dot in it
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3247 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3248 case ${GCC_EXEC_PREFIX} in
3249 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3250 gcc_exec_prefix_setting="contains current directory
"
3253 gcc_exec_prefix_setting="ok
"
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3257 $as_echo "$gcc_exec_prefix_setting" >&6; }
3258 if test "$gcc_exec_prefix_setting" != "ok
"; then
3260 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3261 *** building gcc. Please change the environment variable
3262 *** and run configure again." "$LINENO" 5
3269 # Specify the local prefix
3272 # Check whether --with-local-prefix was given.
3273 if test "${with_local_prefix+set}" = set; then :
3274 withval=$with_local_prefix; case "${withval}" in
3275 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3277 *) local_prefix=$with_local_prefix ;;
3282 # Default local prefix if it is empty
3283 if test x$local_prefix = x; then
3284 local_prefix=/usr/local
3287 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3288 # passed in by the toplevel make and thus we'd get different behavior
3289 # depending on where we built the sources.
3290 gcc_gxx_include_dir
=
3291 # Specify the g++ header file directory
3293 # Check whether --with-gxx-include-dir was given.
3294 if test "${with_gxx_include_dir+set}" = set; then :
3295 withval
=$with_gxx_include_dir; case "${withval}" in
3296 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3298 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3303 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3304 if test x
${gcc_gxx_include_dir} = x
; then
3305 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3306 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3308 libstdcxx_incdir
='include/c++/$(version)'
3309 if test x
$host != x
$target; then
3310 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3312 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3317 # Check whether --with-cpp_install_dir was given.
3318 if test "${with_cpp_install_dir+set}" = set; then :
3319 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3320 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3321 elif test x
$withval != xno
; then
3322 cpp_install_dir
=$withval
3327 # We would like to our source tree to be readonly. However when releases or
3328 # pre-releases are generated, the flex/bison generated files as well as the
3329 # various formats of manuals need to be included along with the rest of the
3330 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3334 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3335 # Check whether --enable-generated-files-in-srcdir was given.
3336 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3337 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3339 generated_files_in_srcdir
=no
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3344 $as_echo "$generated_files_in_srcdir" >&6; }
3346 if test "$generated_files_in_srcdir" = "yes"; then
3353 # -------------------
3354 # Find default linker
3355 # -------------------
3359 # Check whether --with-gnu-ld was given.
3360 if test "${with_gnu_ld+set}" = set; then :
3361 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3367 # With pre-defined ld
3369 # Check whether --with-ld was given.
3370 if test "${with_ld+set}" = set; then :
3371 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3374 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3375 if test ! -x "$DEFAULT_LINKER"; then
3376 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3377 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3381 cat >>confdefs.h
<<_ACEOF
3382 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3387 gnu_ld
=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3389 cat >>confdefs.h
<<_ACEOF
3390 #define HAVE_GNU_LD $gnu_ld
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3395 $as_echo_n "checking whether a default linker was specified... " >&6; }
3396 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3397 if test x
"$gnu_ld_flag" = x
"no"; then
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3399 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3402 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3406 $as_echo "no" >&6; }
3409 # With demangler in GNU ld
3411 # Check whether --with-demangler-in-ld was given.
3412 if test "${with_demangler_in_ld+set}" = set; then :
3413 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3419 # ----------------------
3420 # Find default assembler
3421 # ----------------------
3425 # Check whether --with-gnu-as was given.
3426 if test "${with_gnu_as+set}" = set; then :
3427 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3434 # Check whether --with-as was given.
3435 if test "${with_as+set}" = set; then :
3436 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3439 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3440 if test ! -x "$DEFAULT_ASSEMBLER"; then
3441 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3442 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3446 cat >>confdefs.h
<<_ACEOF
3447 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3452 gnu_as
=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3454 cat >>confdefs.h
<<_ACEOF
3455 #define HAVE_GNU_AS $gnu_as
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3460 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3461 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3462 if test x
"$gas_flag" = x
"no"; then
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3464 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3467 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3471 $as_echo "no" >&6; }
3478 # If a non-executable a.out is present (e.g. created by GNU as above even if
3479 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3480 # file, even when creating an executable, so an execution test fails.
3481 # Remove possible default executable files to avoid this.
3483 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3484 # Autoconf includes it.
3485 rm -f a.out a.exe b.out
3487 # Find the native compiler
3489 ac_cpp
='$CPP $CPPFLAGS'
3490 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3491 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3492 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3493 if test -n "$ac_tool_prefix"; then
3494 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3495 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3497 $as_echo_n "checking for $ac_word... " >&6; }
3498 if test "${ac_cv_prog_CC+set}" = set; then :
3499 $as_echo_n "(cached) " >&6
3501 if test -n "$CC"; then
3502 ac_cv_prog_CC
="$CC" # Let the user override the test.
3504 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3508 test -z "$as_dir" && as_dir
=.
3509 for ac_exec_ext
in '' $ac_executable_extensions; do
3510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3511 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3522 if test -n "$CC"; then
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3524 $as_echo "$CC" >&6; }
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3527 $as_echo "no" >&6; }
3532 if test -z "$ac_cv_prog_CC"; then
3534 # Extract the first word of "gcc", so it can be a program name with args.
3535 set dummy gcc
; ac_word
=$2
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3537 $as_echo_n "checking for $ac_word... " >&6; }
3538 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3539 $as_echo_n "(cached) " >&6
3541 if test -n "$ac_ct_CC"; then
3542 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3544 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3548 test -z "$as_dir" && as_dir
=.
3549 for ac_exec_ext
in '' $ac_executable_extensions; do
3550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3551 ac_cv_prog_ac_ct_CC
="gcc"
3552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3561 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3562 if test -n "$ac_ct_CC"; then
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3564 $as_echo "$ac_ct_CC" >&6; }
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3567 $as_echo "no" >&6; }
3570 if test "x$ac_ct_CC" = x
; then
3573 case $cross_compiling:$ac_tool_warned in
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3577 ac_tool_warned
=yes ;;
3585 if test -z "$CC"; then
3586 if test -n "$ac_tool_prefix"; then
3587 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3588 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3590 $as_echo_n "checking for $ac_word... " >&6; }
3591 if test "${ac_cv_prog_CC+set}" = set; then :
3592 $as_echo_n "(cached) " >&6
3594 if test -n "$CC"; then
3595 ac_cv_prog_CC
="$CC" # Let the user override the test.
3597 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3601 test -z "$as_dir" && as_dir
=.
3602 for ac_exec_ext
in '' $ac_executable_extensions; do
3603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3604 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3615 if test -n "$CC"; then
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3617 $as_echo "$CC" >&6; }
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3620 $as_echo "no" >&6; }
3626 if test -z "$CC"; then
3627 # Extract the first word of "cc", so it can be a program name with args.
3628 set dummy cc
; ac_word
=$2
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3630 $as_echo_n "checking for $ac_word... " >&6; }
3631 if test "${ac_cv_prog_CC+set}" = set; then :
3632 $as_echo_n "(cached) " >&6
3634 if test -n "$CC"; then
3635 ac_cv_prog_CC
="$CC" # Let the user override the test.
3638 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3642 test -z "$as_dir" && as_dir
=.
3643 for ac_exec_ext
in '' $ac_executable_extensions; do
3644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3645 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3646 ac_prog_rejected
=yes
3650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3657 if test $ac_prog_rejected = yes; then
3658 # We found a bogon in the path, so make sure we never use it.
3659 set dummy
$ac_cv_prog_CC
3661 if test $# != 0; then
3662 # We chose a different compiler from the bogus one.
3663 # However, it has the same basename, so the bogon will be chosen
3664 # first if we set CC to just the basename; use the full file name.
3666 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3672 if test -n "$CC"; then
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3674 $as_echo "$CC" >&6; }
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3677 $as_echo "no" >&6; }
3682 if test -z "$CC"; then
3683 if test -n "$ac_tool_prefix"; then
3684 for ac_prog
in cl.exe
3686 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3687 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3689 $as_echo_n "checking for $ac_word... " >&6; }
3690 if test "${ac_cv_prog_CC+set}" = set; then :
3691 $as_echo_n "(cached) " >&6
3693 if test -n "$CC"; then
3694 ac_cv_prog_CC
="$CC" # Let the user override the test.
3696 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3700 test -z "$as_dir" && as_dir
=.
3701 for ac_exec_ext
in '' $ac_executable_extensions; do
3702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3703 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3714 if test -n "$CC"; then
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3716 $as_echo "$CC" >&6; }
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3719 $as_echo "no" >&6; }
3723 test -n "$CC" && break
3726 if test -z "$CC"; then
3728 for ac_prog
in cl.exe
3730 # Extract the first word of "$ac_prog", so it can be a program name with args.
3731 set dummy
$ac_prog; ac_word
=$2
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3733 $as_echo_n "checking for $ac_word... " >&6; }
3734 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3735 $as_echo_n "(cached) " >&6
3737 if test -n "$ac_ct_CC"; then
3738 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3740 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3744 test -z "$as_dir" && as_dir
=.
3745 for ac_exec_ext
in '' $ac_executable_extensions; do
3746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3747 ac_cv_prog_ac_ct_CC
="$ac_prog"
3748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3757 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3758 if test -n "$ac_ct_CC"; then
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3760 $as_echo "$ac_ct_CC" >&6; }
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3763 $as_echo "no" >&6; }
3767 test -n "$ac_ct_CC" && break
3770 if test "x$ac_ct_CC" = x
; then
3773 case $cross_compiling:$ac_tool_warned in
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3777 ac_tool_warned
=yes ;;
3786 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3787 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3788 as_fn_error
"no acceptable C compiler found in \$PATH
3789 See \`config.log' for more details." "$LINENO" 5; }
3791 # Provide some information about the compiler.
3792 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3795 for ac_option
in --version -v -V -qversion; do
3796 { { ac_try
="$ac_compiler $ac_option >&5"
3798 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3799 *) ac_try_echo=$ac_try;;
3801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3802 $as_echo "$ac_try_echo"; } >&5
3803 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3805 if test -s conftest.err; then
3807 ... rest of stderr output deleted ...
3808 10q' conftest.err >conftest.er1
3809 cat conftest.er1 >&5
3810 rm -f conftest.er1 conftest.err
3812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3813 test $ac_status = 0; }
3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817 /* end confdefs.h. */
3827 ac_clean_files_save=$ac_clean_files
3828 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3829 # Try to create an executable without -o first, disregard a.out.
3830 # It will help us diagnose broken compilers, and finding out an intuition
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3833 $as_echo_n "checking for C compiler default output file name... " >&6; }
3834 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3836 # The possible output files:
3837 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3840 for ac_file in $ac_files
3843 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3844 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3849 if { { ac_try="$ac_link_default"
3851 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3852 *) ac_try_echo
=$ac_try;;
3854 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3855 $as_echo "$ac_try_echo"; } >&5
3856 (eval "$ac_link_default") 2>&5
3858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3859 test $ac_status = 0; }; then :
3860 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3861 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3862 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3863 # so that the user can short-circuit this test for compilers unknown to
3865 for ac_file
in $ac_files ''
3867 test -f "$ac_file" ||
continue
3869 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3872 # We found the default executable, but exeext='' is most
3876 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3878 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3880 # We set ac_cv_exeext here because the later test for it is not
3881 # safe: cross compilers may not add the suffix if given an `-o'
3882 # argument, so we may need to know it at that point already.
3883 # Even if this section looks crufty: it has the advantage of
3890 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3896 $as_echo "$ac_file" >&6; }
3897 if test -z "$ac_file"; then :
3898 $as_echo "$as_me: failed program was:" >&5
3899 sed 's/^/| /' conftest.
$ac_ext >&5
3901 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3902 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3903 { as_fn_set_status
77
3904 as_fn_error
"C compiler cannot create executables
3905 See \`config.log' for more details." "$LINENO" 5; }; }
3907 ac_exeext
=$ac_cv_exeext
3909 # Check that the compiler produces executables we can run. If not, either
3910 # the compiler is broken, or we cross compile.
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3912 $as_echo_n "checking whether the C compiler works... " >&6; }
3913 # If not cross compiling, check that we can run a simple program.
3914 if test "$cross_compiling" != yes; then
3915 if { ac_try
='./$ac_file'
3916 { { case "(($ac_try" in
3917 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3918 *) ac_try_echo=$ac_try;;
3920 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3921 $as_echo "$ac_try_echo"; } >&5
3922 (eval "$ac_try") 2>&5
3924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3925 test $ac_status = 0; }; }; then
3928 if test "$cross_compiling" = maybe; then
3931 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3933 as_fn_error "cannot run C compiled programs.
3934 If you meant to cross compile
, use \
`--host'.
3935 See \`config.log
' for more details." "$LINENO" 5; }
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3940 $as_echo "yes" >&6; }
3942 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3943 ac_clean_files=$ac_clean_files_save
3944 # Check that the compiler produces executables we can run. If not, either
3945 # the compiler is broken, or we cross compile.
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3947 $as_echo_n "checking whether we are cross compiling... " >&6; }
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3949 $as_echo "$cross_compiling" >&6; }
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3952 $as_echo_n "checking for suffix of executables... " >&6; }
3953 if { { ac_try="$ac_link"
3955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956 *) ac_try_echo=$ac_try;;
3958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3959 $as_echo "$ac_try_echo"; } >&5
3960 (eval "$ac_link") 2>&5
3962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3963 test $ac_status = 0; }; then :
3964 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3965 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3966 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3968 for ac_file
in conftest.exe conftest conftest.
*; do
3969 test -f "$ac_file" ||
continue
3971 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3972 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3978 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3980 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3981 See \`config.log' for more details." "$LINENO" 5; }
3983 rm -f conftest
$ac_cv_exeext
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3985 $as_echo "$ac_cv_exeext" >&6; }
3987 rm -f conftest.
$ac_ext
3988 EXEEXT
=$ac_cv_exeext
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3991 $as_echo_n "checking for suffix of object files... " >&6; }
3992 if test "${ac_cv_objext+set}" = set; then :
3993 $as_echo_n "(cached) " >&6
3995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3996 /* end confdefs.h. */
4006 rm -f conftest.o conftest.obj
4007 if { { ac_try
="$ac_compile"
4009 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4010 *) ac_try_echo=$ac_try;;
4012 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4013 $as_echo "$ac_try_echo"; } >&5
4014 (eval "$ac_compile") 2>&5
4016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4017 test $ac_status = 0; }; then :
4018 for ac_file in conftest.o conftest.obj conftest.*; do
4019 test -f "$ac_file" || continue;
4021 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4022 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4027 $as_echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4032 as_fn_error "cannot compute suffix of object files
: cannot compile
4033 See \
`config.log' for more details." "$LINENO" 5; }
4035 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4038 $as_echo "$ac_cv_objext" >&6; }
4039 OBJEXT=$ac_cv_objext
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4042 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4043 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4044 $as_echo_n "(cached) " >&6
4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047 /* end confdefs.h. */
4060 if ac_fn_c_try_compile "$LINENO"; then :
4065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4066 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4070 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4071 if test $ac_compiler_gnu = yes; then
4076 ac_test_CFLAGS=${CFLAGS+set}
4077 ac_save_CFLAGS=$CFLAGS
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4079 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4080 if test "${ac_cv_prog_cc_g+set}" = set; then :
4081 $as_echo_n "(cached) " >&6
4083 ac_save_c_werror_flag=$ac_c_werror_flag
4084 ac_c_werror_flag=yes
4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h. */
4098 if ac_fn_c_try_compile "$LINENO"; then :
4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h. */
4113 if ac_fn_c_try_compile "$LINENO"; then :
4116 ac_c_werror_flag=$ac_save_c_werror_flag
4118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4119 /* end confdefs.h. */
4129 if ac_fn_c_try_compile "$LINENO"; then :
4132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137 ac_c_werror_flag=$ac_save_c_werror_flag
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4140 $as_echo "$ac_cv_prog_cc_g" >&6; }
4141 if test "$ac_test_CFLAGS" = set; then
4142 CFLAGS=$ac_save_CFLAGS
4143 elif test $ac_cv_prog_cc_g = yes; then
4144 if test "$GCC" = yes; then
4150 if test "$GCC" = yes; then
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4157 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4158 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4159 $as_echo_n "(cached) " >&6
4161 ac_cv_prog_cc_c89=no
4163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164 /* end confdefs.h. */
4167 #include <sys/types.h>
4168 #include <sys/stat.h>
4169 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4170 struct buf { int x; };
4171 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4172 static char *e (p, i)
4178 static char *f (char * (*g) (char **, int), char **p, ...)
4183 s = g (p, va_arg (v,int));
4188 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4189 function prototypes and stuff, but not '\xHH' hex character constants.
4190 These don't provoke an error unfortunately, instead are silently treated
4191 as 'x'. The following induces an error, until -std is added to get
4192 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4193 array size at least. It's necessary to write '\x00'==0 to get something
4194 that's true only with -std. */
4195 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4197 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4198 inside strings and character constants. */
4200 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4202 int test (int i, double x);
4203 struct s1 {int (*f) (int a);};
4204 struct s2 {int (*f) (double a);};
4205 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4211 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4216 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4217 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4219 CC="$ac_save_CC $ac_arg"
4220 if ac_fn_c_try_compile "$LINENO"; then :
4221 ac_cv_prog_cc_c89=$ac_arg
4223 rm -f core conftest.err conftest.$ac_objext
4224 test "x$ac_cv_prog_cc_c89" != "xno" && break
4226 rm -f conftest.$ac_ext
4231 case "x$ac_cv_prog_cc_c89" in
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4234 $as_echo "none needed" >&6; } ;;
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4237 $as_echo "unsupported" >&6; } ;;
4239 CC="$CC $ac_cv_prog_cc_c89"
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4241 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4243 if test "x$ac_cv_prog_cc_c89" != xno; then :
4248 ac_cpp='$CPP $CPPFLAGS'
4249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4253 if test "x$CC" != xcc; then
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4255 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4258 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4260 set dummy $CC; ac_cc=`$as_echo "$2" |
4261 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4262 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4263 $as_echo_n "(cached) " >&6
4265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266 /* end confdefs.h. */
4276 # Make sure it works both with $CC and with simple cc.
4277 # We do the test twice because some compilers refuse to overwrite an
4278 # existing .o file with -o, though they will create one.
4279 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4281 if { { case "(($ac_try" in
4282 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4283 *) ac_try_echo
=$ac_try;;
4285 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4286 $as_echo "$ac_try_echo"; } >&5
4287 (eval "$ac_try") 2>&5
4289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4290 test $ac_status = 0; } &&
4291 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
4292 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4293 *) ac_try_echo=$ac_try;;
4295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4296 $as_echo "$ac_try_echo"; } >&5
4297 (eval "$ac_try") 2>&5
4299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4300 test $ac_status = 0; };
4302 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4303 if test "x$CC" != xcc; then
4304 # Test first that cc exists at all.
4305 if { ac_try='cc -c conftest.$ac_ext >&5'
4306 { { case "(($ac_try" in
4307 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4308 *) ac_try_echo
=$ac_try;;
4310 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4311 $as_echo "$ac_try_echo"; } >&5
4312 (eval "$ac_try") 2>&5
4314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4315 test $ac_status = 0; }; }; then
4316 ac_try
='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4318 if { { case "(($ac_try" in
4319 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4320 *) ac_try_echo=$ac_try;;
4322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4323 $as_echo "$ac_try_echo"; } >&5
4324 (eval "$ac_try") 2>&5
4326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4327 test $ac_status = 0; } &&
4328 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4329 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4330 *) ac_try_echo
=$ac_try;;
4332 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4333 $as_echo "$ac_try_echo"; } >&5
4334 (eval "$ac_try") 2>&5
4336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4337 test $ac_status = 0; };
4342 # cc exists but doesn't like -o.
4343 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4348 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4350 rm -f core conftest
*
4353 if eval test \
$ac_cv_prog_cc_${ac_cc}_c_o
= yes; then
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4355 $as_echo "yes" >&6; }
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4358 $as_echo "no" >&6; }
4360 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4364 # expand $ac_aux_dir to an absolute path
4365 am_aux_dir
=`cd $ac_aux_dir && pwd`
4367 # FIXME: we rely on the cache variable name because
4368 # there is no other way.
4370 am_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4371 eval am_t
=\
$ac_cv_prog_cc_${am_cc}_c_o
4372 if test "$am_t" != yes; then
4373 # Losing compiler, so override with the script.
4374 # FIXME: It is wrong to rewrite CC.
4375 # But if we don't then we get into trouble of one sort or another.
4376 # A longer-term fix would be to have automake use am__CC in this case,
4377 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4378 CC
="$am_aux_dir/compile $CC"
4383 ac_cpp
='$CXXCPP $CPPFLAGS'
4384 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4385 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4386 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4387 if test -z "$CXX"; then
4388 if test -n "$CCC"; then
4391 if test -n "$ac_tool_prefix"; then
4392 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4394 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4395 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4397 $as_echo_n "checking for $ac_word... " >&6; }
4398 if test "${ac_cv_prog_CXX+set}" = set; then :
4399 $as_echo_n "(cached) " >&6
4401 if test -n "$CXX"; then
4402 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4404 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4408 test -z "$as_dir" && as_dir
=.
4409 for ac_exec_ext
in '' $ac_executable_extensions; do
4410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4411 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4422 if test -n "$CXX"; then
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4424 $as_echo "$CXX" >&6; }
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4427 $as_echo "no" >&6; }
4431 test -n "$CXX" && break
4434 if test -z "$CXX"; then
4436 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4438 # Extract the first word of "$ac_prog", so it can be a program name with args.
4439 set dummy
$ac_prog; ac_word
=$2
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4441 $as_echo_n "checking for $ac_word... " >&6; }
4442 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4443 $as_echo_n "(cached) " >&6
4445 if test -n "$ac_ct_CXX"; then
4446 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4448 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4452 test -z "$as_dir" && as_dir
=.
4453 for ac_exec_ext
in '' $ac_executable_extensions; do
4454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4455 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4465 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4466 if test -n "$ac_ct_CXX"; then
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4468 $as_echo "$ac_ct_CXX" >&6; }
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4471 $as_echo "no" >&6; }
4475 test -n "$ac_ct_CXX" && break
4478 if test "x$ac_ct_CXX" = x
; then
4481 case $cross_compiling:$ac_tool_warned in
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4485 ac_tool_warned
=yes ;;
4493 # Provide some information about the compiler.
4494 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4497 for ac_option
in --version -v -V -qversion; do
4498 { { ac_try
="$ac_compiler $ac_option >&5"
4500 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4501 *) ac_try_echo=$ac_try;;
4503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4504 $as_echo "$ac_try_echo"; } >&5
4505 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4507 if test -s conftest.err; then
4509 ... rest of stderr output deleted ...
4510 10q' conftest.err >conftest.er1
4511 cat conftest.er1 >&5
4512 rm -f conftest.er1 conftest.err
4514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4515 test $ac_status = 0; }
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4519 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4520 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4521 $as_echo_n "(cached) " >&6
4523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4524 /* end confdefs.h. */
4537 if ac_fn_cxx_try_compile "$LINENO"; then :
4542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4543 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4547 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4548 if test $ac_compiler_gnu = yes; then
4553 ac_test_CXXFLAGS=${CXXFLAGS+set}
4554 ac_save_CXXFLAGS=$CXXFLAGS
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4556 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4557 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4558 $as_echo_n "(cached) " >&6
4560 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4561 ac_cxx_werror_flag=yes
4564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565 /* end confdefs.h. */
4575 if ac_fn_cxx_try_compile "$LINENO"; then :
4576 ac_cv_prog_cxx_g=yes
4579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580 /* end confdefs.h. */
4590 if ac_fn_cxx_try_compile "$LINENO"; then :
4593 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4596 /* end confdefs.h. */
4606 if ac_fn_cxx_try_compile "$LINENO"; then :
4607 ac_cv_prog_cxx_g=yes
4609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4614 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4617 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4618 if test "$ac_test_CXXFLAGS" = set; then
4619 CXXFLAGS=$ac_save_CXXFLAGS
4620 elif test $ac_cv_prog_cxx_g = yes; then
4621 if test "$GXX" = yes; then
4627 if test "$GXX" = yes; then
4634 ac_cpp='$CPP $CPPFLAGS'
4635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4642 if test -n "$ac_tool_prefix"; then
4643 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4644 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4646 $as_echo_n "checking for $ac_word... " >&6; }
4647 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4648 $as_echo_n "(cached) " >&6
4650 if test -n "$GNATBIND"; then
4651 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 test -z "$as_dir" && as_dir=.
4658 for ac_exec_ext in '' $ac_executable_extensions; do
4659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4660 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4670 GNATBIND=$ac_cv_prog_GNATBIND
4671 if test -n "$GNATBIND"; then
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4673 $as_echo "$GNATBIND" >&6; }
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676 $as_echo "no" >&6; }
4681 if test -z "$ac_cv_prog_GNATBIND"; then
4682 ac_ct_GNATBIND=$GNATBIND
4683 # Extract the first word of "gnatbind", so it can be a program name with args.
4684 set dummy gnatbind; ac_word=$2
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4686 $as_echo_n "checking for $ac_word... " >&6; }
4687 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4688 $as_echo_n "(cached) " >&6
4690 if test -n "$ac_ct_GNATBIND"; then
4691 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697 test -z "$as_dir" && as_dir=.
4698 for ac_exec_ext in '' $ac_executable_extensions; do
4699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4700 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4710 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4711 if test -n "$ac_ct_GNATBIND"; then
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4713 $as_echo "$ac_ct_GNATBIND" >&6; }
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4716 $as_echo "no" >&6; }
4719 if test "x$ac_ct_GNATBIND" = x; then
4722 case $cross_compiling:$ac_tool_warned in
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4726 ac_tool_warned=yes ;;
4728 GNATBIND=$ac_ct_GNATBIND
4731 GNATBIND="$ac_cv_prog_GNATBIND"
4734 if test -n "$ac_tool_prefix"; then
4735 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4736 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4738 $as_echo_n "checking for $ac_word... " >&6; }
4739 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4740 $as_echo_n "(cached) " >&6
4742 if test -n "$GNATMAKE"; then
4743 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749 test -z "$as_dir" && as_dir=.
4750 for ac_exec_ext in '' $ac_executable_extensions; do
4751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4752 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4762 GNATMAKE=$ac_cv_prog_GNATMAKE
4763 if test -n "$GNATMAKE"; then
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4765 $as_echo "$GNATMAKE" >&6; }
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4768 $as_echo "no" >&6; }
4773 if test -z "$ac_cv_prog_GNATMAKE"; then
4774 ac_ct_GNATMAKE=$GNATMAKE
4775 # Extract the first word of "gnatmake", so it can be a program name with args.
4776 set dummy gnatmake; ac_word=$2
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4778 $as_echo_n "checking for $ac_word... " >&6; }
4779 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4780 $as_echo_n "(cached) " >&6
4782 if test -n "$ac_ct_GNATMAKE"; then
4783 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789 test -z "$as_dir" && as_dir=.
4790 for ac_exec_ext in '' $ac_executable_extensions; do
4791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4792 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4802 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4803 if test -n "$ac_ct_GNATMAKE"; then
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4805 $as_echo "$ac_ct_GNATMAKE" >&6; }
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4808 $as_echo "no" >&6; }
4811 if test "x$ac_ct_GNATMAKE" = x; then
4814 case $cross_compiling:$ac_tool_warned in
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4818 ac_tool_warned=yes ;;
4820 GNATMAKE=$ac_ct_GNATMAKE
4823 GNATMAKE="$ac_cv_prog_GNATMAKE"
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4827 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4828 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4829 $as_echo_n "(cached) " >&6
4831 cat >conftest.adb <<EOF
4832 procedure conftest is begin null; end conftest;
4834 acx_cv_cc_gcc_supports_ada=no
4835 # There is a bug in old released versions of GCC which causes the
4836 # driver to exit successfully when the appropriate language module
4837 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4838 # Therefore we must check for the error message as well as an
4839 # unsuccessful exit.
4840 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4841 # given a .adb file, but produce no object file. So we must check
4842 # if an object file was really produced to guard against this.
4843 errors=`(${CC} -I"$srcdir"/ada
-c conftest.adb
) 2>&1 ||
echo failure
`
4844 if test x"$errors" = x && test -f conftest.$ac_objext; then
4845 acx_cv_cc_gcc_supports_ada=yes
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4850 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4852 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4859 # autoconf is lame and doesn't give us any substitution variable for this.
4860 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o
`\" = no"; then
4861 NO_MINUS_C_MINUS_O=yes
4863 OUTPUT_OPTION='-o $@'
4868 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4869 # optimizations to be activated explicitly by the toplevel.
4871 */prev-gcc/xgcc*) ;;
4872 *) CFLAGS=`echo $CFLAGS |
sed "s/-O[s0-9]* *//" ` ;;
4876 # Determine PICFLAG for target gnatlib.
4882 # PIC is the default on some targets or must not be used.
4884 # PIC is the default on this platform
4885 # Common symbols not allowed in MH_DYLIB files
4886 PICFLAG_FOR_TARGET=-fno-common
4889 # PIC is the default.
4892 # PIC is the default for 64-bit PA HP-UX.
4894 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4896 i[34567]86-*-interix3*)
4897 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4898 # Instead, we relocate shared libraries at runtime.
4900 i[34567]86-*-nto-qnx*)
4901 # QNX uses GNU C++, but need to define -shared option too, otherwise
4903 PICFLAG_FOR_TARGET='-fPIC -shared'
4905 i[34567]86-pc-msdosdjgpp*)
4906 # DJGPP does not support shared libraries at all.
4909 # On IA64 HP-UX, PIC is the default but the pic flag
4910 # sets the default TLS model and affects inlining.
4911 PICFLAG_FOR_TARGET=-fPIC
4914 # PIC is the default.
4916 rs6000-ibm-aix* | powerpc-ibm-aix*)
4917 # All AIX code is PIC.
4920 # Some targets support both -fPIC and -fpic, but prefer the latter.
4922 i[34567]86-*-* | x86_64-*-*)
4923 PICFLAG_FOR_TARGET=-fpic
4926 PICFLAG_FOR_TARGET=-fpic
4929 PICFLAG_FOR_TARGET=-fpic
4931 # FIXME: Override -fPIC default in libgcc only?
4932 sh-*-linux* | sh[2346lbe]*-*-linux*)
4933 PICFLAG_FOR_TARGET=-fpic
4935 # FIXME: Simplify to sh*-*-netbsd*?
4936 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4937 sh64-*-netbsd* | sh64l*-*-netbsd*)
4938 PICFLAG_FOR_TARGET=-fpic
4940 # Default to -fPIC unless specified otherwise.
4942 PICFLAG_FOR_TARGET=-fPIC
4946 # If the user explicitly uses -fpic/-fPIC, keep that.
4947 case "${CFLAGS_FOR_TARGET}" in
4949 PICFLAG_FOR_TARGET=-fpic
4952 PICFLAG_FOR_TARGET=-fPIC
4958 # -------------------------
4959 # Check C compiler features
4960 # -------------------------
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
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4969 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4970 # On Suns, sometimes $CPP names a directory.
4971 if test -n "$CPP" && test -d "$CPP"; then
4974 if test -z "$CPP"; then
4975 if test "${ac_cv_prog_CPP+set}" = set; then :
4976 $as_echo_n "(cached) " >&6
4978 # Double quotes because CPP needs to be expanded
4979 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4982 for ac_c_preproc_warn_flag in '' yes
4984 # Use a header file that comes with gcc, so configuring glibc
4985 # with a fresh cross-compiler works.
4986 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4987 # <limits.h> exists even on freestanding compilers.
4988 # On the NeXT, cc -E runs the code through the compiler's parser,
4989 # not just through cpp. "Syntax error" is here to catch this case.
4990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4991 /* end confdefs.h. */
4993 # include <limits.h>
4995 # include <assert.h>
4999 if ac_fn_c_try_cpp "$LINENO"; then :
5002 # Broken: fails on valid input.
5005 rm -f conftest.err conftest.$ac_ext
5007 # OK, works on sane cases. Now check whether nonexistent headers
5008 # can be detected and how.
5009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010 /* end confdefs.h. */
5011 #include <ac_nonexistent.h>
5013 if ac_fn_c_try_cpp "$LINENO"; then :
5014 # Broken: success on invalid input.
5017 # Passes both tests.
5021 rm -f conftest.err conftest.$ac_ext
5024 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5025 rm -f conftest.err conftest.
$ac_ext
5026 if $ac_preproc_ok; then :
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5039 $as_echo "$CPP" >&6; }
5041 for ac_c_preproc_warn_flag
in '' yes
5043 # Use a header file that comes with gcc, so configuring glibc
5044 # with a fresh cross-compiler works.
5045 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5046 # <limits.h> exists even on freestanding compilers.
5047 # On the NeXT, cc -E runs the code through the compiler's parser,
5048 # not just through cpp. "Syntax error" is here to catch this case.
5049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5050 /* end confdefs.h. */
5052 # include <limits.h>
5054 # include <assert.h>
5058 if ac_fn_c_try_cpp
"$LINENO"; then :
5061 # Broken: fails on valid input.
5064 rm -f conftest.err conftest.
$ac_ext
5066 # OK, works on sane cases. Now check whether nonexistent headers
5067 # can be detected and how.
5068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5069 /* end confdefs.h. */
5070 #include <ac_nonexistent.h>
5072 if ac_fn_c_try_cpp
"$LINENO"; then :
5073 # Broken: success on invalid input.
5076 # Passes both tests.
5080 rm -f conftest.err conftest.
$ac_ext
5083 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5084 rm -f conftest.err conftest.
$ac_ext
5085 if $ac_preproc_ok; then :
5088 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5089 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5090 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5091 See \`config.log' for more details." "$LINENO" 5; }
5095 ac_cpp
='$CPP $CPPFLAGS'
5096 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5097 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5098 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5102 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5103 if test "${ac_cv_path_GREP+set}" = set; then :
5104 $as_echo_n "(cached) " >&6
5106 if test -z "$GREP"; then
5107 ac_path_GREP_found
=false
5108 # Loop through the user's path and test for each of PROGNAME-LIST
5109 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5110 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5113 test -z "$as_dir" && as_dir
=.
5114 for ac_prog
in grep ggrep
; do
5115 for ac_exec_ext
in '' $ac_executable_extensions; do
5116 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5117 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5118 # Check for GNU ac_path_GREP and select it if it is found.
5119 # Check for GNU $ac_path_GREP
5120 case `"$ac_path_GREP" --version 2>&1` in
5122 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5125 $as_echo_n 0123456789 >"conftest.in"
5128 cat "conftest.in" "conftest.in" >"conftest.tmp"
5129 mv "conftest.tmp" "conftest.in"
5130 cp "conftest.in" "conftest.nl"
5131 $as_echo 'GREP' >> "conftest.nl"
5132 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5133 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5134 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5135 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5136 # Best one so far, save it but keep looking for a better one
5137 ac_cv_path_GREP
="$ac_path_GREP"
5138 ac_path_GREP_max
=$ac_count
5140 # 10*(2^10) chars as input seems more than enough
5141 test $ac_count -gt 10 && break
5143 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5146 $ac_path_GREP_found && break 3
5151 if test -z "$ac_cv_path_GREP"; then
5152 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5155 ac_cv_path_GREP
=$GREP
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5160 $as_echo "$ac_cv_path_GREP" >&6; }
5161 GREP
="$ac_cv_path_GREP"
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5165 $as_echo_n "checking for egrep... " >&6; }
5166 if test "${ac_cv_path_EGREP+set}" = set; then :
5167 $as_echo_n "(cached) " >&6
5169 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5170 then ac_cv_path_EGREP
="$GREP -E"
5172 if test -z "$EGREP"; then
5173 ac_path_EGREP_found
=false
5174 # Loop through the user's path and test for each of PROGNAME-LIST
5175 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5176 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5179 test -z "$as_dir" && as_dir
=.
5180 for ac_prog
in egrep; do
5181 for ac_exec_ext
in '' $ac_executable_extensions; do
5182 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5183 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5184 # Check for GNU ac_path_EGREP and select it if it is found.
5185 # Check for GNU $ac_path_EGREP
5186 case `"$ac_path_EGREP" --version 2>&1` in
5188 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5191 $as_echo_n 0123456789 >"conftest.in"
5194 cat "conftest.in" "conftest.in" >"conftest.tmp"
5195 mv "conftest.tmp" "conftest.in"
5196 cp "conftest.in" "conftest.nl"
5197 $as_echo 'EGREP' >> "conftest.nl"
5198 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5199 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5200 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5201 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5202 # Best one so far, save it but keep looking for a better one
5203 ac_cv_path_EGREP
="$ac_path_EGREP"
5204 ac_path_EGREP_max
=$ac_count
5206 # 10*(2^10) chars as input seems more than enough
5207 test $ac_count -gt 10 && break
5209 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5212 $ac_path_EGREP_found && break 3
5217 if test -z "$ac_cv_path_EGREP"; then
5218 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5221 ac_cv_path_EGREP
=$EGREP
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5227 $as_echo "$ac_cv_path_EGREP" >&6; }
5228 EGREP
="$ac_cv_path_EGREP"
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5232 $as_echo_n "checking for ANSI C header files... " >&6; }
5233 if test "${ac_cv_header_stdc+set}" = set; then :
5234 $as_echo_n "(cached) " >&6
5236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5237 /* end confdefs.h. */
5251 if ac_fn_c_try_compile
"$LINENO"; then :
5252 ac_cv_header_stdc
=yes
5254 ac_cv_header_stdc
=no
5256 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5258 if test $ac_cv_header_stdc = yes; then
5259 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5261 /* end confdefs.h. */
5265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5266 $EGREP "memchr" >/dev
/null
2>&1; then :
5269 ac_cv_header_stdc
=no
5275 if test $ac_cv_header_stdc = yes; then
5276 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5278 /* end confdefs.h. */
5282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5283 $EGREP "free" >/dev
/null
2>&1; then :
5286 ac_cv_header_stdc
=no
5292 if test $ac_cv_header_stdc = yes; then
5293 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5294 if test "$cross_compiling" = yes; then :
5297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5298 /* end confdefs.h. */
5301 #if ((' ' & 0x0FF) == 0x020)
5302 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5303 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5305 # define ISLOWER(c) \
5306 (('a' <= (c) && (c) <= 'i') \
5307 || ('j' <= (c) && (c) <= 'r') \
5308 || ('s' <= (c) && (c) <= 'z'))
5309 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5312 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5317 for (i = 0; i < 256; i++)
5318 if (XOR (islower (i), ISLOWER (i))
5319 || toupper (i) != TOUPPER (i))
5324 if ac_fn_c_try_run
"$LINENO"; then :
5327 ac_cv_header_stdc
=no
5329 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5330 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5336 $as_echo "$ac_cv_header_stdc" >&6; }
5337 if test $ac_cv_header_stdc = yes; then
5339 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5343 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5344 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5345 inttypes.h stdint.h unistd.h
5347 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5348 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5350 eval as_val
=\$
$as_ac_Header
5351 if test "x$as_val" = x
""yes; then :
5352 cat >>confdefs.h
<<_ACEOF
5353 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5362 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5363 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5370 if test "$MINIX" = yes; then
5372 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5375 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5378 $as_echo "#define _MINIX 1" >>confdefs.h
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5384 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5385 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5386 $as_echo_n "(cached) " >&6
5388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5389 /* end confdefs.h. */
5391 # define __EXTENSIONS__ 1
5392 $ac_includes_default
5401 if ac_fn_c_try_compile
"$LINENO"; then :
5402 ac_cv_safe_to_define___extensions__
=yes
5404 ac_cv_safe_to_define___extensions__
=no
5406 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5409 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5410 test $ac_cv_safe_to_define___extensions__ = yes &&
5411 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5413 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5415 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5417 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5419 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
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
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5428 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5429 # On Suns, sometimes $CPP names a directory.
5430 if test -n "$CPP" && test -d "$CPP"; then
5433 if test -z "$CPP"; then
5434 if test "${ac_cv_prog_CPP+set}" = set; then :
5435 $as_echo_n "(cached) " >&6
5437 # Double quotes because CPP needs to be expanded
5438 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5441 for ac_c_preproc_warn_flag
in '' yes
5443 # Use a header file that comes with gcc, so configuring glibc
5444 # with a fresh cross-compiler works.
5445 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5446 # <limits.h> exists even on freestanding compilers.
5447 # On the NeXT, cc -E runs the code through the compiler's parser,
5448 # not just through cpp. "Syntax error" is here to catch this case.
5449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5450 /* end confdefs.h. */
5452 # include <limits.h>
5454 # include <assert.h>
5458 if ac_fn_c_try_cpp
"$LINENO"; then :
5461 # Broken: fails on valid input.
5464 rm -f conftest.err conftest.
$ac_ext
5466 # OK, works on sane cases. Now check whether nonexistent headers
5467 # can be detected and how.
5468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5469 /* end confdefs.h. */
5470 #include <ac_nonexistent.h>
5472 if ac_fn_c_try_cpp
"$LINENO"; then :
5473 # Broken: success on invalid input.
5476 # Passes both tests.
5480 rm -f conftest.err conftest.
$ac_ext
5483 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5484 rm -f conftest.err conftest.
$ac_ext
5485 if $ac_preproc_ok; then :
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5498 $as_echo "$CPP" >&6; }
5500 for ac_c_preproc_warn_flag
in '' yes
5502 # Use a header file that comes with gcc, so configuring glibc
5503 # with a fresh cross-compiler works.
5504 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5505 # <limits.h> exists even on freestanding compilers.
5506 # On the NeXT, cc -E runs the code through the compiler's parser,
5507 # not just through cpp. "Syntax error" is here to catch this case.
5508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5509 /* end confdefs.h. */
5511 # include <limits.h>
5513 # include <assert.h>
5517 if ac_fn_c_try_cpp
"$LINENO"; then :
5520 # Broken: fails on valid input.
5523 rm -f conftest.err conftest.
$ac_ext
5525 # OK, works on sane cases. Now check whether nonexistent headers
5526 # can be detected and how.
5527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5528 /* end confdefs.h. */
5529 #include <ac_nonexistent.h>
5531 if ac_fn_c_try_cpp
"$LINENO"; then :
5532 # Broken: success on invalid input.
5535 # Passes both tests.
5539 rm -f conftest.err conftest.
$ac_ext
5542 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5543 rm -f conftest.err conftest.
$ac_ext
5544 if $ac_preproc_ok; then :
5547 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5549 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5550 See \`config.log' for more details." "$LINENO" 5; }
5554 ac_cpp
='$CPP $CPPFLAGS'
5555 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5556 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5557 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5560 $as_echo_n "checking for inline... " >&6; }
5561 if test "${ac_cv_c_inline+set}" = set; then :
5562 $as_echo_n "(cached) " >&6
5565 for ac_kw
in inline __inline__ __inline
; do
5566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5567 /* end confdefs.h. */
5570 static $ac_kw foo_t static_foo () {return 0; }
5571 $ac_kw foo_t foo () {return 0; }
5575 if ac_fn_c_try_compile
"$LINENO"; then :
5576 ac_cv_c_inline
=$ac_kw
5578 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5579 test "$ac_cv_c_inline" != no
&& break
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5584 $as_echo "$ac_cv_c_inline" >&6; }
5586 case $ac_cv_c_inline in
5589 case $ac_cv_c_inline in
5591 *) ac_val
=$ac_cv_c_inline;;
5593 cat >>confdefs.h
<<_ACEOF
5595 #define inline $ac_val
5602 # Check whether --enable-largefile was given.
5603 if test "${enable_largefile+set}" = set; then :
5604 enableval
=$enable_largefile;
5607 if test "$enable_largefile" != no
; then
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5610 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5611 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5612 $as_echo_n "(cached) " >&6
5614 ac_cv_sys_largefile_CC
=no
5615 if test "$GCC" != yes; then
5618 # IRIX 6.2 and later do not support large files by default,
5619 # so use the C compiler's -n32 option if that helps.
5620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5621 /* end confdefs.h. */
5622 #include <sys/types.h>
5623 /* Check that off_t can represent 2**63 - 1 correctly.
5624 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5625 since some C++ compilers masquerading as C compilers
5626 incorrectly reject 9223372036854775807. */
5627 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5628 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5629 && LARGE_OFF_T % 2147483647 == 1)
5639 if ac_fn_c_try_compile
"$LINENO"; then :
5642 rm -f core conftest.err conftest.
$ac_objext
5644 if ac_fn_c_try_compile
"$LINENO"; then :
5645 ac_cv_sys_largefile_CC
=' -n32'; break
5647 rm -f core conftest.err conftest.
$ac_objext
5651 rm -f conftest.
$ac_ext
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5655 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5656 if test "$ac_cv_sys_largefile_CC" != no
; then
5657 CC
=$CC$ac_cv_sys_largefile_CC
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5661 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5662 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5663 $as_echo_n "(cached) " >&6
5666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5667 /* end confdefs.h. */
5668 #include <sys/types.h>
5669 /* Check that off_t can represent 2**63 - 1 correctly.
5670 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5671 since some C++ compilers masquerading as C compilers
5672 incorrectly reject 9223372036854775807. */
5673 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5674 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5675 && LARGE_OFF_T % 2147483647 == 1)
5685 if ac_fn_c_try_compile
"$LINENO"; then :
5686 ac_cv_sys_file_offset_bits
=no
; break
5688 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5690 /* end confdefs.h. */
5691 #define _FILE_OFFSET_BITS 64
5692 #include <sys/types.h>
5693 /* Check that off_t can represent 2**63 - 1 correctly.
5694 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5695 since some C++ compilers masquerading as C compilers
5696 incorrectly reject 9223372036854775807. */
5697 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5698 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5699 && LARGE_OFF_T % 2147483647 == 1)
5709 if ac_fn_c_try_compile
"$LINENO"; then :
5710 ac_cv_sys_file_offset_bits
=64; break
5712 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5713 ac_cv_sys_file_offset_bits
=unknown
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5718 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5719 case $ac_cv_sys_file_offset_bits in #(
5722 cat >>confdefs.h
<<_ACEOF
5723 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5728 if test $ac_cv_sys_file_offset_bits = unknown
; then
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5730 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5731 if test "${ac_cv_sys_large_files+set}" = set; then :
5732 $as_echo_n "(cached) " >&6
5735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5736 /* end confdefs.h. */
5737 #include <sys/types.h>
5738 /* Check that off_t can represent 2**63 - 1 correctly.
5739 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5740 since some C++ compilers masquerading as C compilers
5741 incorrectly reject 9223372036854775807. */
5742 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5743 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5744 && LARGE_OFF_T % 2147483647 == 1)
5754 if ac_fn_c_try_compile
"$LINENO"; then :
5755 ac_cv_sys_large_files
=no
; break
5757 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5759 /* end confdefs.h. */
5760 #define _LARGE_FILES 1
5761 #include <sys/types.h>
5762 /* Check that off_t can represent 2**63 - 1 correctly.
5763 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5764 since some C++ compilers masquerading as C compilers
5765 incorrectly reject 9223372036854775807. */
5766 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5767 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5768 && LARGE_OFF_T % 2147483647 == 1)
5778 if ac_fn_c_try_compile
"$LINENO"; then :
5779 ac_cv_sys_large_files
=1; break
5781 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5782 ac_cv_sys_large_files
=unknown
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5787 $as_echo "$ac_cv_sys_large_files" >&6; }
5788 case $ac_cv_sys_large_files in #(
5791 cat >>confdefs.h
<<_ACEOF
5792 #define _LARGE_FILES $ac_cv_sys_large_files
5801 # sizeof(char) is 1 by definition.
5802 # The cast to long int works around a bug in the HP C Compiler
5803 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5804 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5805 # This bug is HP SR number 8606223364.
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5807 $as_echo_n "checking size of void *... " >&6; }
5808 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5809 $as_echo_n "(cached) " >&6
5811 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5814 if test "$ac_cv_type_void_p" = yes; then
5815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5817 { as_fn_set_status
77
5818 as_fn_error
"cannot compute sizeof (void *)
5819 See \`config.log' for more details." "$LINENO" 5; }; }
5821 ac_cv_sizeof_void_p
=0
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5827 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5831 cat >>confdefs.h
<<_ACEOF
5832 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5836 # The cast to long int works around a bug in the HP C Compiler
5837 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5838 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5839 # This bug is HP SR number 8606223364.
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5841 $as_echo_n "checking size of short... " >&6; }
5842 if test "${ac_cv_sizeof_short+set}" = set; then :
5843 $as_echo_n "(cached) " >&6
5845 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5848 if test "$ac_cv_type_short" = yes; then
5849 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5851 { as_fn_set_status
77
5852 as_fn_error
"cannot compute sizeof (short)
5853 See \`config.log' for more details." "$LINENO" 5; }; }
5855 ac_cv_sizeof_short
=0
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5861 $as_echo "$ac_cv_sizeof_short" >&6; }
5865 cat >>confdefs.h
<<_ACEOF
5866 #define SIZEOF_SHORT $ac_cv_sizeof_short
5870 # The cast to long int works around a bug in the HP C Compiler
5871 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5872 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5873 # This bug is HP SR number 8606223364.
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5875 $as_echo_n "checking size of int... " >&6; }
5876 if test "${ac_cv_sizeof_int+set}" = set; then :
5877 $as_echo_n "(cached) " >&6
5879 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5882 if test "$ac_cv_type_int" = yes; then
5883 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5884 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5885 { as_fn_set_status
77
5886 as_fn_error
"cannot compute sizeof (int)
5887 See \`config.log' for more details." "$LINENO" 5; }; }
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5895 $as_echo "$ac_cv_sizeof_int" >&6; }
5899 cat >>confdefs.h
<<_ACEOF
5900 #define SIZEOF_INT $ac_cv_sizeof_int
5904 # The cast to long int works around a bug in the HP C Compiler
5905 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5906 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5907 # This bug is HP SR number 8606223364.
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5909 $as_echo_n "checking size of long... " >&6; }
5910 if test "${ac_cv_sizeof_long+set}" = set; then :
5911 $as_echo_n "(cached) " >&6
5913 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5916 if test "$ac_cv_type_long" = yes; then
5917 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5918 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5919 { as_fn_set_status
77
5920 as_fn_error
"cannot compute sizeof (long)
5921 See \`config.log' for more details." "$LINENO" 5; }; }
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5929 $as_echo "$ac_cv_sizeof_long" >&6; }
5933 cat >>confdefs.h
<<_ACEOF
5934 #define SIZEOF_LONG $ac_cv_sizeof_long
5938 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5939 if test "x$ac_cv_type_long_long" = x
""yes; then :
5941 cat >>confdefs.h
<<_ACEOF
5942 #define HAVE_LONG_LONG 1
5945 # The cast to long int works around a bug in the HP C Compiler
5946 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5947 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5948 # This bug is HP SR number 8606223364.
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5950 $as_echo_n "checking size of long long... " >&6; }
5951 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5952 $as_echo_n "(cached) " >&6
5954 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5957 if test "$ac_cv_type_long_long" = yes; then
5958 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5959 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5960 { as_fn_set_status
77
5961 as_fn_error
"cannot compute sizeof (long long)
5962 See \`config.log' for more details." "$LINENO" 5; }; }
5964 ac_cv_sizeof_long_long
=0
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5970 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5974 cat >>confdefs.h
<<_ACEOF
5975 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5981 ac_fn_c_check_type
"$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5982 if test "x$ac_cv_type___int64" = x
""yes; then :
5984 cat >>confdefs.h
<<_ACEOF
5985 #define HAVE___INT64 1
5988 # The cast to long int works around a bug in the HP C Compiler
5989 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5990 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5991 # This bug is HP SR number 8606223364.
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5993 $as_echo_n "checking size of __int64... " >&6; }
5994 if test "${ac_cv_sizeof___int64+set}" = set; then :
5995 $as_echo_n "(cached) " >&6
5997 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
6000 if test "$ac_cv_type___int64" = yes; then
6001 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6002 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6003 { as_fn_set_status
77
6004 as_fn_error
"cannot compute sizeof (__int64)
6005 See \`config.log' for more details." "$LINENO" 5; }; }
6007 ac_cv_sizeof___int64
=0
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6013 $as_echo "$ac_cv_sizeof___int64" >&6; }
6017 cat >>confdefs.h
<<_ACEOF
6018 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6024 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6025 case $ac_cv_c_int8_t in #(
6029 cat >>confdefs.h
<<_ACEOF
6030 #define int8_t $ac_cv_c_int8_t
6035 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6036 case $ac_cv_c_int16_t in #(
6040 cat >>confdefs.h
<<_ACEOF
6041 #define int16_t $ac_cv_c_int16_t
6046 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6047 case $ac_cv_c_int32_t in #(
6051 cat >>confdefs.h
<<_ACEOF
6052 #define int32_t $ac_cv_c_int32_t
6057 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6058 case $ac_cv_c_int64_t in #(
6062 cat >>confdefs.h
<<_ACEOF
6063 #define int64_t $ac_cv_c_int64_t
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6070 $as_echo_n "checking for long long int... " >&6; }
6071 if test "${ac_cv_type_long_long_int+set}" = set; then :
6072 $as_echo_n "(cached) " >&6
6074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6075 /* end confdefs.h. */
6077 /* For now, do not test the preprocessor; as of 2007 there are too many
6078 implementations with broken preprocessors. Perhaps this can
6079 be revisited in 2012. In the meantime, code should not expect
6080 #if to work with literals wider than 32 bits. */
6081 /* Test literals. */
6082 long long int ll = 9223372036854775807ll;
6083 long long int nll = -9223372036854775807LL;
6084 unsigned long long int ull = 18446744073709551615ULL;
6085 /* Test constant expressions. */
6086 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6088 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6094 /* Test availability of runtime routines for shift and division. */
6095 long long int llmax = 9223372036854775807ll;
6096 unsigned long long int ullmax = 18446744073709551615ull;
6097 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6098 | (llmax / ll) | (llmax % ll)
6099 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6100 | (ullmax / ull) | (ullmax % ull));
6106 if ac_fn_c_try_link
"$LINENO"; then :
6107 if test "$cross_compiling" = yes; then :
6108 ac_cv_type_long_long_int
=yes
6110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6111 /* end confdefs.h. */
6115 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6116 # define LLONG_MAX (HALF - 1 + HALF)
6121 long long int n = 1;
6125 long long int m = n << i;
6128 if (LLONG_MAX / 2 < m)
6136 if ac_fn_c_try_run
"$LINENO"; then :
6137 ac_cv_type_long_long_int
=yes
6139 ac_cv_type_long_long_int
=no
6141 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6142 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6146 ac_cv_type_long_long_int
=no
6148 rm -f core conftest.err conftest.
$ac_objext \
6149 conftest
$ac_exeext conftest.
$ac_ext
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6152 $as_echo "$ac_cv_type_long_long_int" >&6; }
6153 if test $ac_cv_type_long_long_int = yes; then
6155 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6161 ac_fn_c_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6162 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6164 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6167 test $ac_cv_type_long_long_int = yes \
6168 && ac_type
='long long int' \
6169 || ac_type
='long int'
6171 cat >>confdefs.h
<<_ACEOF
6172 #define intmax_t $ac_type
6179 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6180 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6182 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6185 for ac_type
in 'int' 'long int' 'long long int'; do
6186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6187 /* end confdefs.h. */
6188 $ac_includes_default
6192 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6199 if ac_fn_c_try_compile
"$LINENO"; then :
6201 cat >>confdefs.h
<<_ACEOF
6202 #define intptr_t $ac_type
6207 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6208 test -z "$ac_type" && break
6213 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6214 case $ac_cv_c_uint8_t in #(
6218 $as_echo "#define _UINT8_T 1" >>confdefs.h
6221 cat >>confdefs.h
<<_ACEOF
6222 #define uint8_t $ac_cv_c_uint8_t
6227 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6228 case $ac_cv_c_uint16_t in #(
6233 cat >>confdefs.h
<<_ACEOF
6234 #define uint16_t $ac_cv_c_uint16_t
6239 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6240 case $ac_cv_c_uint32_t in #(
6244 $as_echo "#define _UINT32_T 1" >>confdefs.h
6247 cat >>confdefs.h
<<_ACEOF
6248 #define uint32_t $ac_cv_c_uint32_t
6253 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6254 case $ac_cv_c_uint64_t in #(
6258 $as_echo "#define _UINT64_T 1" >>confdefs.h
6261 cat >>confdefs.h
<<_ACEOF
6262 #define uint64_t $ac_cv_c_uint64_t
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6269 $as_echo_n "checking for unsigned long long int... " >&6; }
6270 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6271 $as_echo_n "(cached) " >&6
6273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6274 /* end confdefs.h. */
6276 /* For now, do not test the preprocessor; as of 2007 there are too many
6277 implementations with broken preprocessors. Perhaps this can
6278 be revisited in 2012. In the meantime, code should not expect
6279 #if to work with literals wider than 32 bits. */
6280 /* Test literals. */
6281 long long int ll = 9223372036854775807ll;
6282 long long int nll = -9223372036854775807LL;
6283 unsigned long long int ull = 18446744073709551615ULL;
6284 /* Test constant expressions. */
6285 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6287 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6293 /* Test availability of runtime routines for shift and division. */
6294 long long int llmax = 9223372036854775807ll;
6295 unsigned long long int ullmax = 18446744073709551615ull;
6296 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6297 | (llmax / ll) | (llmax % ll)
6298 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6299 | (ullmax / ull) | (ullmax % ull));
6305 if ac_fn_c_try_link
"$LINENO"; then :
6306 ac_cv_type_unsigned_long_long_int
=yes
6308 ac_cv_type_unsigned_long_long_int
=no
6310 rm -f core conftest.err conftest.
$ac_objext \
6311 conftest
$ac_exeext conftest.
$ac_ext
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6314 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6315 if test $ac_cv_type_unsigned_long_long_int = yes; then
6317 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6323 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6324 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6326 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6329 test $ac_cv_type_unsigned_long_long_int = yes \
6330 && ac_type
='unsigned long long int' \
6331 || ac_type
='unsigned long int'
6333 cat >>confdefs.h
<<_ACEOF
6334 #define uintmax_t $ac_type
6341 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6342 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6344 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6347 for ac_type
in 'unsigned int' 'unsigned long int' \
6348 'unsigned long long int'; do
6349 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6350 /* end confdefs.h. */
6351 $ac_includes_default
6355 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6362 if ac_fn_c_try_compile
"$LINENO"; then :
6364 cat >>confdefs.h
<<_ACEOF
6365 #define uintptr_t $ac_type
6370 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6371 test -z "$ac_type" && break
6389 # ---------------------
6390 # Warnings and checking
6391 # ---------------------
6393 # Check $CC warning features (if it's GCC).
6394 # We want to use -pedantic, but we don't want warnings about
6397 # * overlong strings
6398 # * C++11 narrowing conversions in { }
6399 # So, we only use -pedantic if we can disable those warnings.
6402 save_CFLAGS
="$CFLAGS"
6403 for option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6404 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6407 $as_echo_n "checking whether $CC supports $option... " >&6; }
6408 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6409 $as_echo_n "(cached) " >&6
6412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6413 /* end confdefs.h. */
6423 if ac_fn_c_try_compile
"$LINENO"; then :
6424 eval "$as_acx_Woption=yes"
6426 eval "$as_acx_Woption=no"
6428 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6431 eval ac_res
=\$
$as_acx_Woption
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6433 $as_echo "$ac_res" >&6; }
6434 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6435 loose_warn
="$loose_warn${loose_warn:+ }$option"
6438 CFLAGS
="$save_CFLAGS"
6441 save_CFLAGS
="$CFLAGS"
6442 for option
in -Wstrict-prototypes -Wmissing-prototypes; do
6443 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6446 $as_echo_n "checking whether $CC supports $option... " >&6; }
6447 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6448 $as_echo_n "(cached) " >&6
6451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6452 /* end confdefs.h. */
6462 if ac_fn_c_try_compile
"$LINENO"; then :
6463 eval "$as_acx_Woption=yes"
6465 eval "$as_acx_Woption=no"
6467 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6470 eval ac_res
=\$
$as_acx_Woption
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6472 $as_echo "$ac_res" >&6; }
6473 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6474 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$option"
6477 CFLAGS
="$save_CFLAGS"
6480 save_CFLAGS
="$CFLAGS"
6481 for option
in -Wmissing-format-attribute; do
6482 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6485 $as_echo_n "checking whether $CC supports $option... " >&6; }
6486 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6487 $as_echo_n "(cached) " >&6
6490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6491 /* end confdefs.h. */
6501 if ac_fn_c_try_compile
"$LINENO"; then :
6502 eval "$as_acx_Woption=yes"
6504 eval "$as_acx_Woption=no"
6506 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6509 eval ac_res
=\$
$as_acx_Woption
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6511 $as_echo "$ac_res" >&6; }
6512 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6513 strict_warn
="$strict_warn${strict_warn:+ }$option"
6516 CFLAGS
="$save_CFLAGS"
6519 save_CFLAGS
="$CFLAGS"
6520 for option
in -Wold-style-definition -Wc++-compat; do
6521 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6524 $as_echo_n "checking whether $CC supports $option... " >&6; }
6525 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6526 $as_echo_n "(cached) " >&6
6529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6530 /* end confdefs.h. */
6540 if ac_fn_c_try_compile
"$LINENO"; then :
6541 eval "$as_acx_Woption=yes"
6543 eval "$as_acx_Woption=no"
6545 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6548 eval ac_res
=\$
$as_acx_Woption
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6550 $as_echo "$ac_res" >&6; }
6551 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6552 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$option"
6555 CFLAGS
="$save_CFLAGS"
6557 if test "$GCC" = yes; then :
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6559 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6560 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6561 $as_echo_n "(cached) " >&6
6563 save_CFLAGS
="$CFLAGS"
6564 CFLAGS
="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6565 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6566 /* end confdefs.h. */
6576 if ac_fn_c_try_compile
"$LINENO"; then :
6577 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings
=yes
6579 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings
=no
6581 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6582 CFLAGS
="$save_CFLAGS"
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6585 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6586 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6587 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6592 # Check whether --enable-werror-always was given.
6593 if test "${enable_werror_always+set}" = set; then :
6594 enableval
=$enable_werror_always;
6596 enable_werror_always
=no
6599 if test $enable_werror_always = yes; then :
6600 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6605 # The above macros do nothing if the compiler is not GCC. However, the
6606 # Makefile has more goo to add other flags, so these variables are used
6607 # to enable warnings only for GCC.
6610 if test "x$GCC" = "xyes"; then
6611 warn_cflags
='$(GCC_WARN_CFLAGS)'
6612 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6617 # Disable exceptions and RTTI if building with g++
6619 save_CFLAGS
="$CFLAGS"
6620 for option
in -fno-exceptions -fno-rtti; do
6621 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6624 $as_echo_n "checking whether $CC supports $option... " >&6; }
6625 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6626 $as_echo_n "(cached) " >&6
6629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6630 /* end confdefs.h. */
6640 if ac_fn_c_try_compile
"$LINENO"; then :
6641 eval "$as_acx_Woption=yes"
6643 eval "$as_acx_Woption=no"
6645 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6648 eval ac_res
=\$
$as_acx_Woption
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6650 $as_echo "$ac_res" >&6; }
6651 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6652 noexception_flags
="$noexception_flags${noexception_flags:+ }$option"
6655 CFLAGS
="$save_CFLAGS"
6658 # Enable expensive internal checks
6660 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6664 # Check whether --enable-checking was given.
6665 if test "${enable_checking+set}" = set; then :
6666 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6669 # Determine the default checks.
6670 if test x
$is_release = x
; then
6671 ac_checking_flags
=yes
6673 ac_checking_flags
=release
6677 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6678 for check
in release
$ac_checking_flags
6681 # these set all the flags to specific states
6682 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6683 ac_fold_checking
= ; ac_gc_checking
=1 ;
6684 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
6685 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6686 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6687 ac_types_checking
=1 ;;
6688 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6689 ac_fold_checking
= ; ac_gc_checking
= ;
6690 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6691 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6692 ac_tree_checking
= ; ac_valgrind_checking
= ;
6693 ac_types_checking
= ;;
6694 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6695 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6696 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
6697 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6698 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6699 ac_types_checking
=1 ;;
6700 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6701 ac_fold_checking
= ; ac_gc_checking
= ;
6702 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6703 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6704 ac_tree_checking
= ; ac_valgrind_checking
= ;
6705 ac_types_checking
= ;;
6706 # these enable particular checks
6707 assert
) ac_assert_checking
=1 ;;
6708 df
) ac_df_checking
=1 ;;
6709 fold) ac_fold_checking
=1 ;;
6710 gc
) ac_gc_checking
=1 ;;
6711 gcac
) ac_gc_always_collect
=1 ;;
6712 gimple
) ac_gimple_checking
=1 ;;
6713 misc
) ac_checking
=1 ;;
6714 rtl
) ac_rtl_checking
=1 ;;
6715 rtlflag
) ac_rtlflag_checking
=1 ;;
6716 runtime
) ac_runtime_checking
=1 ;;
6717 tree
) ac_tree_checking
=1 ;;
6718 types
) ac_types_checking
=1 ;;
6719 valgrind
) ac_valgrind_checking
=1 ;;
6720 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
6726 if test x
$ac_checking != x
; then
6728 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6730 nocommon_flag
=-fno-common
6733 if test x
$ac_df_checking != x
; then
6735 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6738 if test x
$ac_assert_checking != x
; then
6740 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6743 if test x
$ac_gimple_checking != x
; then
6745 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6749 if test x
$ac_runtime_checking != x
; then
6751 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6754 if test x
$ac_tree_checking != x
; then
6756 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6758 TREEBROWSER
=tree-browser.o
6760 if test x
$ac_types_checking != x
; then
6762 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6766 if test x
$ac_rtl_checking != x
; then
6768 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6771 if test x
$ac_rtlflag_checking != x
; then
6773 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6776 if test x
$ac_gc_checking != x
; then
6778 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6781 if test x
$ac_gc_always_collect != x
; then
6783 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6786 if test x
$ac_fold_checking != x
; then
6788 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6791 valgrind_path_defines
=
6794 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6795 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
6803 if test x
$ac_valgrind_checking != x
; then
6804 # It is certainly possible that there's valgrind but no valgrind.h.
6805 # GCC relies on making annotations so we must have both.
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6807 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6809 /* end confdefs.h. */
6810 #include <valgrind/memcheck.h>
6811 #ifndef VALGRIND_DISCARD
6812 #error VALGRIND_DISCARD not defined
6815 if ac_fn_c_try_cpp
"$LINENO"; then :
6816 gcc_cv_header_valgrind_memcheck_h
=yes
6818 gcc_cv_header_valgrind_memcheck_h
=no
6820 rm -f conftest.err conftest.
$ac_ext
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6822 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6824 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6826 /* end confdefs.h. */
6827 #include <memcheck.h>
6828 #ifndef VALGRIND_DISCARD
6829 #error VALGRIND_DISCARD not defined
6832 if ac_fn_c_try_cpp
"$LINENO"; then :
6833 gcc_cv_header_memcheck_h
=yes
6835 gcc_cv_header_memcheck_h
=no
6837 rm -f conftest.err conftest.
$ac_ext
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6839 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6841 # Prepare PATH_SEPARATOR.
6842 # The user is always right.
6843 if test "${PATH_SEPARATOR+set}" != set; then
6844 echo "#! /bin/sh" >conf$$.sh
6845 echo "exit 0" >>conf$$.sh
6847 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6855 # Find out how to test for executable files. Don't use a zero-byte file,
6856 # as systems may use methods other than mode bits to determine executability.
6857 cat >conf$$.
file <<_ASEOF
6861 chmod +x conf$$.
file
6862 if test -x conf$$.
file >/dev
/null
2>&1; then
6863 ac_executable_p
="test -x"
6865 ac_executable_p
="test -f"
6869 # Extract the first word of "valgrind", so it can be a program name with args.
6870 set dummy valgrind
; ac_word
=$2
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6872 $as_echo_n "checking for $ac_word... " >&6; }
6873 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6874 $as_echo_n "(cached) " >&6
6876 case "$valgrind_path" in
6878 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6881 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6882 for ac_dir
in $PATH; do
6884 test -z "$ac_dir" && ac_dir
=.
6885 for ac_exec_ext
in '' $ac_executable_extensions; do
6886 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6887 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6888 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6898 valgrind_path
="$ac_cv_path_valgrind_path"
6899 if test -n "$valgrind_path"; then
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6901 $as_echo "$valgrind_path" >&6; }
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6904 $as_echo "no" >&6; }
6907 if test "x$valgrind_path" = "x" \
6908 ||
(test $have_valgrind_h = no \
6909 && test $gcc_cv_header_memcheck_h = no \
6910 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6911 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6913 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6914 valgrind_command
="$valgrind_path -q"
6916 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6918 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6920 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6923 if test $gcc_cv_header_memcheck_h = yes; then
6925 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6932 # Enable code coverage collection
6933 # Check whether --enable-coverage was given.
6934 if test "${enable_coverage+set}" = set; then :
6935 enableval
=$enable_coverage; case "${enableval}" in
6937 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6940 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6943 # a.k.a. --disable-coverage
6947 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
6956 # Check whether --enable-gather-detailed-mem-stats was given.
6957 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6958 enableval
=$enable_gather_detailed_mem_stats;
6960 enable_gather_detailed_mem_stats
=no
6963 if test x
$enable_gather_detailed_mem_stats = xyes
; then
6965 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6969 # -------------------------------
6970 # Miscenalleous configure options
6971 # -------------------------------
6973 # See if we are building gcc with C++.
6974 # Check whether --enable-build-with-cxx was given.
6975 if test "${enable_build_with_cxx+set}" = set; then :
6976 enableval
=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX
=$enableval
6978 ENABLE_BUILD_WITH_CXX
=no
6982 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6984 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
6990 # Check whether --with-stabs was given.
6991 if test "${with_stabs+set}" = set; then :
6992 withval
=$with_stabs; stabs
="$with_stabs"
6998 # Determine whether or not multilibs are enabled.
6999 # Check whether --enable-multilib was given.
7000 if test "${enable_multilib+set}" = set; then :
7001 enableval
=$enable_multilib;
7008 # Enable __cxa_atexit for C++.
7009 # Check whether --enable-__cxa_atexit was given.
7010 if test "${enable___cxa_atexit+set}" = set; then :
7011 enableval
=$enable___cxa_atexit;
7015 # Enable C extension for decimal float if target supports it.
7017 # Check whether --enable-decimal-float was given.
7018 if test "${enable_decimal_float+set}" = set; then :
7019 enableval
=$enable_decimal_float;
7020 case $enable_decimal_float in
7021 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7022 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7023 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7029 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7030 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7032 enable_decimal_float
=yes
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7036 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7037 enable_decimal_float
=no
7044 # x86's use BID format instead of DPD
7045 case x
$enable_decimal_float in
7048 i?
86*-*-* | x86_64
*-*-*)
7049 enable_decimal_float
=bid
7052 enable_decimal_float
=dpd
7055 default_decimal_float
=$enable_decimal_float
7058 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7059 # dependency on libdecnumber.
7060 default_decimal_float
=dpd
7067 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7069 cat >>confdefs.h
<<_ACEOF
7070 #define ENABLE_DECIMAL_FLOAT $dfp
7074 # Use default_decimal_float for dependency.
7075 enable_decimal_float
=$default_decimal_float
7077 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7079 cat >>confdefs.h
<<_ACEOF
7080 #define ENABLE_DECIMAL_BID_FORMAT $bid
7084 # Enable C extension for fixed-point arithmetic.
7085 # Check whether --enable-fixed-point was given.
7086 if test "${enable_fixed_point+set}" = set; then :
7087 enableval
=$enable_fixed_point;
7092 enable_fixed_point
=yes
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
7099 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
7100 enable_fixed_point
=no
7103 enable_fixed_point
=yes
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7109 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7110 enable_fixed_point
=no
7118 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7120 cat >>confdefs.h
<<_ACEOF
7121 #define ENABLE_FIXED_POINT $fixedpoint
7126 # Pass with no value to take the default
7127 # Pass with a value to specify a thread package
7128 # Check whether --enable-threads was given.
7129 if test "${enable_threads+set}" = set; then :
7130 enableval
=$enable_threads;
7136 # Check whether --enable-tls was given.
7137 if test "${enable_tls+set}" = set; then :
7138 enableval
=$enable_tls;
7141 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7142 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7150 # Check whether --enable-objc-gc was given.
7151 if test "${enable_objc_gc+set}" = set; then :
7152 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7163 # Check whether --with-dwarf2 was given.
7164 if test "${with_dwarf2+set}" = set; then :
7165 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7171 # Check whether --enable-shared was given.
7172 if test "${enable_shared+set}" = set; then :
7173 enableval
=$enable_shared;
7174 case $enable_shared in
7178 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7179 for pkg
in $enableval; do
7180 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7195 # Check whether --with-native-system-header-dir was given.
7196 if test "${with_native_system_header_dir+set}" = set; then :
7197 withval
=$with_native_system_header_dir;
7198 case ${with_native_system_header_dir} in
7199 yes|no
) as_fn_error
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7200 /* |
[A-Za-z
]:[\\/]*) ;;
7201 *) as_fn_error
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7203 configured_native_system_header_dir
="${withval}"
7206 configured_native_system_header_dir
=
7211 # Check whether --with-build-sysroot was given.
7212 if test "${with_build_sysroot+set}" = set; then :
7213 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
7214 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
7217 SYSROOT_CFLAGS_FOR_TARGET
=
7223 # Check whether --with-sysroot was given.
7224 if test "${with_sysroot+set}" = set; then :
7225 withval
=$with_sysroot;
7226 case ${with_sysroot} in
7227 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7228 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7231 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7232 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7234 if test "x$prefix" = xNONE
; then
7235 test_prefix
=/usr
/local
7239 if test "x$exec_prefix" = xNONE
; then
7240 test_exec_prefix
=$test_prefix
7242 test_exec_prefix
=$exec_prefix
7244 case ${TARGET_SYSTEM_ROOT} in
7245 "${test_prefix}"|
"${test_prefix}/"*|\
7246 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
7247 '${prefix}'|
'${prefix}/'*|\
7248 '${exec_prefix}'|
'${exec_prefix}/'*)
7249 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7250 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7257 TARGET_SYSTEM_ROOT_DEFINE
=
7258 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7267 # Check whether --with-specs was given.
7268 if test "${with_specs+set}" = set; then :
7269 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7279 # Check whether --with-pkgversion was given.
7280 if test "${with_pkgversion+set}" = set; then :
7281 withval
=$with_pkgversion; case "$withval" in
7282 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7284 *) PKGVERSION
="($withval) " ;;
7295 # Check whether --with-bugurl was given.
7296 if test "${with_bugurl+set}" = set; then :
7297 withval
=$with_bugurl; case "$withval" in
7298 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7301 *) BUGURL
="$withval"
7305 BUGURL
="http://gcc.gnu.org/bugs.html"
7315 REPORT_BUGS_TO
="<$BUGURL>"
7316 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7323 # Sanity check enable_languages in case someone does not run the toplevel
7324 # configure # script.
7325 # Check whether --enable-languages was given.
7326 if test "${enable_languages+set}" = set; then :
7327 enableval
=$enable_languages; case ,${enable_languages}, in
7329 # go safe -- we cannot be much sure without the toplevel
7331 # analysis of which target libs are present and usable
7335 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7340 enable_languages
=c
,${enable_languages}
7349 # Check whether --with-multilib-list was given.
7350 if test "${with_multilib_list+set}" = set; then :
7351 withval
=$with_multilib_list; :
7353 with_multilib_list
=default
7357 # -------------------------
7358 # Checks for other programs
7359 # -------------------------
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7362 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7364 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7365 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7366 $as_echo_n "(cached) " >&6
7368 cat >conftest.
make <<\_ACEOF
7371 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7373 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7374 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7376 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7378 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7382 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7384 $as_echo "yes" >&6; }
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7388 $as_echo "no" >&6; }
7389 SET_MAKE
="MAKE=${MAKE-make}"
7393 # Find some useful tools
7394 for ac_prog
in gawk mawk nawk
awk
7396 # Extract the first word of "$ac_prog", so it can be a program name with args.
7397 set dummy
$ac_prog; ac_word
=$2
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7399 $as_echo_n "checking for $ac_word... " >&6; }
7400 if test "${ac_cv_prog_AWK+set}" = set; then :
7401 $as_echo_n "(cached) " >&6
7403 if test -n "$AWK"; then
7404 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7406 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7410 test -z "$as_dir" && as_dir
=.
7411 for ac_exec_ext
in '' $ac_executable_extensions; do
7412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7413 ac_cv_prog_AWK
="$ac_prog"
7414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7424 if test -n "$AWK"; then
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7426 $as_echo "$AWK" >&6; }
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7429 $as_echo "no" >&6; }
7433 test -n "$AWK" && break
7436 # We need awk to create options.c and options.h.
7437 # Bail out if it's missing.
7439 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7443 $as_echo_n "checking whether ln -s works... " >&6; }
7444 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7445 $as_echo_n "(cached) " >&6
7447 rm -f conftestdata_t
7448 echo >conftestdata_f
7449 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7451 gcc_cv_prog_LN_S
="ln -s"
7453 if ln conftestdata_f conftestdata_t
2>/dev
/null
7457 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7459 gcc_cv_prog_LN_S
="cp -p"
7465 rm -f conftestdata_f conftestdata_t
7468 LN_S
="$gcc_cv_prog_LN_S"
7469 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7471 $as_echo "yes" >&6; }
7473 if test "$gcc_cv_prog_LN_S" = "ln"; then
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7475 $as_echo "no, using ln" >&6; }
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7478 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7483 $as_echo_n "checking whether ln works... " >&6; }
7484 if test "${acx_cv_prog_LN+set}" = set; then :
7485 $as_echo_n "(cached) " >&6
7487 rm -f conftestdata_t
7488 echo >conftestdata_f
7489 if ln conftestdata_f conftestdata_t
2>/dev
/null
7495 rm -f conftestdata_f conftestdata_t
7498 if test $acx_cv_prog_LN = no
; then
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7501 $as_echo "no, using $LN" >&6; }
7503 LN
="$acx_cv_prog_LN"
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7505 $as_echo "yes" >&6; }
7508 if test -n "$ac_tool_prefix"; then
7509 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7510 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7512 $as_echo_n "checking for $ac_word... " >&6; }
7513 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7514 $as_echo_n "(cached) " >&6
7516 if test -n "$RANLIB"; then
7517 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7519 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7523 test -z "$as_dir" && as_dir
=.
7524 for ac_exec_ext
in '' $ac_executable_extensions; do
7525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7526 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7536 RANLIB
=$ac_cv_prog_RANLIB
7537 if test -n "$RANLIB"; then
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7539 $as_echo "$RANLIB" >&6; }
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7542 $as_echo "no" >&6; }
7547 if test -z "$ac_cv_prog_RANLIB"; then
7548 ac_ct_RANLIB
=$RANLIB
7549 # Extract the first word of "ranlib", so it can be a program name with args.
7550 set dummy ranlib
; ac_word
=$2
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7552 $as_echo_n "checking for $ac_word... " >&6; }
7553 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7554 $as_echo_n "(cached) " >&6
7556 if test -n "$ac_ct_RANLIB"; then
7557 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7559 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7563 test -z "$as_dir" && as_dir
=.
7564 for ac_exec_ext
in '' $ac_executable_extensions; do
7565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7566 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7576 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7577 if test -n "$ac_ct_RANLIB"; then
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7579 $as_echo "$ac_ct_RANLIB" >&6; }
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7582 $as_echo "no" >&6; }
7585 if test "x$ac_ct_RANLIB" = x
; then
7588 case $cross_compiling:$ac_tool_warned in
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7592 ac_tool_warned
=yes ;;
7594 RANLIB
=$ac_ct_RANLIB
7597 RANLIB
="$ac_cv_prog_RANLIB"
7602 # By default, the Darwin ranlib will not treat common symbols as
7603 # definitions when building the archive table of contents. Other
7604 # ranlibs do that; pass an option to the Darwin ranlib that makes
7605 # it behave similarly.
7613 # Find a good install program. We prefer a C program (faster),
7614 # so one script is as good as another. But avoid the broken or
7615 # incompatible versions:
7616 # SysV /etc/install, /usr/sbin/install
7617 # SunOS /usr/etc/install
7618 # IRIX /sbin/install
7620 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7621 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7622 # ./install, which can be erroneously created by make from ./install.sh.
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7624 $as_echo_n "checking for a BSD compatible install... " >&6; }
7625 if test -z "$INSTALL"; then
7626 if test "${ac_cv_path_install+set}" = set; then :
7627 $as_echo_n "(cached) " >&6
7629 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7630 for ac_dir
in $PATH; do
7631 # Account for people who put trailing slashes in PATH elements.
7633 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7635 # OSF1 and SCO ODT 3.0 have their own names for install.
7636 for ac_prog
in ginstall scoinst
install; do
7637 if test -f $ac_dir/$ac_prog; then
7638 if test $ac_prog = install &&
7639 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7640 # AIX install. It has an incompatible calling convention.
7641 # OSF/1 installbsd also uses dspmsg, but is usable.
7644 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7655 if test "${ac_cv_path_install+set}" = set; then
7656 INSTALL
="$ac_cv_path_install"
7658 # As a last resort, use the slow shell script. We don't cache a
7659 # path for INSTALL within a source directory, because that will
7660 # break other packages using the cache if that directory is
7661 # removed, or if the path is relative.
7662 INSTALL
="$ac_install_sh"
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7666 $as_echo "$INSTALL" >&6; }
7668 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7669 # It thinks the first close brace ends the variable substitution.
7670 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7672 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7675 # See if cmp has --ignore-initial.
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7677 $as_echo_n "checking for cmp's capabilities... " >&6; }
7678 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7679 $as_echo_n "(cached) " >&6
7683 gcc_cv_prog_cmp_skip
=slowcompare
7684 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7685 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7688 gcc_cv_prog_cmp_skip
=gnucompare
7691 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7692 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7693 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7696 gcc_cv_prog_cmp_skip
=fastcompare
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7704 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7705 make_compare_target
=$gcc_cv_prog_cmp_skip
7709 # See if we have the mktemp command.
7710 # Extract the first word of "mktemp", so it can be a program name with args.
7711 set dummy mktemp
; ac_word
=$2
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7713 $as_echo_n "checking for $ac_word... " >&6; }
7714 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7715 $as_echo_n "(cached) " >&6
7717 if test -n "$have_mktemp_command"; then
7718 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7720 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7724 test -z "$as_dir" && as_dir
=.
7725 for ac_exec_ext
in '' $ac_executable_extensions; do
7726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7727 ac_cv_prog_have_mktemp_command
="yes"
7728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7735 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7738 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7739 if test -n "$have_mktemp_command"; then
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7741 $as_echo "$have_mktemp_command" >&6; }
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7744 $as_echo "no" >&6; }
7749 # See if makeinfo has been installed and is modern enough
7750 # that we can use it.
7752 # Extract the first word of "makeinfo", so it can be a program name with args.
7753 set dummy makeinfo
; ac_word
=$2
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7755 $as_echo_n "checking for $ac_word... " >&6; }
7756 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7757 $as_echo_n "(cached) " >&6
7759 if test -n "$MAKEINFO"; then
7760 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7762 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7766 test -z "$as_dir" && as_dir
=.
7767 for ac_exec_ext
in '' $ac_executable_extensions; do
7768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7769 ac_cv_prog_MAKEINFO
="makeinfo"
7770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7779 MAKEINFO
=$ac_cv_prog_MAKEINFO
7780 if test -n "$MAKEINFO"; then
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7782 $as_echo "$MAKEINFO" >&6; }
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7785 $as_echo "no" >&6; }
7789 if test -n "$MAKEINFO"; then
7790 # Found it, now check the version.
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7792 $as_echo_n "checking for modern makeinfo... " >&6; }
7793 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7794 $as_echo_n "(cached) " >&6
7796 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
7797 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7799 case $ac_prog_version in
7800 '') gcc_cv_prog_makeinfo_modern
=no
;;
7801 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
7802 *) gcc_cv_prog_makeinfo_modern
=no
;;
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7807 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7809 gcc_cv_prog_makeinfo_modern
=no
7811 if test $gcc_cv_prog_makeinfo_modern = no
; then
7812 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7815 if test $gcc_cv_prog_makeinfo_modern = no
; then
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7817 *** Makeinfo is missing or too old.
7818 *** Info documentation will not be built." >&5
7819 $as_echo "$as_me: WARNING:
7820 *** Makeinfo is missing or too old.
7821 *** Info documentation will not be built." >&2;}
7828 # Is pod2man recent enough to regenerate manpages?
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7830 $as_echo_n "checking for recent Pod::Man... " >&6; }
7831 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7833 $as_echo "yes" >&6; }
7834 GENERATED_MANPAGES
=generated-manpages
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7837 $as_echo "no" >&6; }
7842 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7847 # Extract the first word of "$ac_prog", so it can be a program name with args.
7848 set dummy
$ac_prog; ac_word
=$2
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7850 $as_echo_n "checking for $ac_word... " >&6; }
7851 if test "${ac_cv_prog_FLEX+set}" = set; then :
7852 $as_echo_n "(cached) " >&6
7854 if test -n "$FLEX"; then
7855 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7857 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7861 test -z "$as_dir" && as_dir
=.
7862 for ac_exec_ext
in '' $ac_executable_extensions; do
7863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7864 ac_cv_prog_FLEX
="$ac_prog"
7865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7874 FLEX
=$ac_cv_prog_FLEX
7875 if test -n "$FLEX"; then
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7877 $as_echo "$FLEX" >&6; }
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7880 $as_echo "no" >&6; }
7884 test -n "$FLEX" && break
7886 test -n "$FLEX" || FLEX
="$MISSING flex"
7890 for ac_prog
in bison
7892 # Extract the first word of "$ac_prog", so it can be a program name with args.
7893 set dummy
$ac_prog; ac_word
=$2
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7895 $as_echo_n "checking for $ac_word... " >&6; }
7896 if test "${ac_cv_prog_BISON+set}" = set; then :
7897 $as_echo_n "(cached) " >&6
7899 if test -n "$BISON"; then
7900 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7902 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7906 test -z "$as_dir" && as_dir
=.
7907 for ac_exec_ext
in '' $ac_executable_extensions; do
7908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7909 ac_cv_prog_BISON
="$ac_prog"
7910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7919 BISON
=$ac_cv_prog_BISON
7920 if test -n "$BISON"; then
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7922 $as_echo "$BISON" >&6; }
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7925 $as_echo "no" >&6; }
7929 test -n "$BISON" && break
7931 test -n "$BISON" || BISON
="$MISSING bison"
7934 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7935 # check for build == host before using them.
7938 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7939 && test -d ..
/binutils
; then
7940 NM
='${objdir}/../binutils/nm-new'
7942 # Extract the first word of "nm", so it can be a program name with args.
7943 set dummy nm
; ac_word
=$2
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7945 $as_echo_n "checking for $ac_word... " >&6; }
7946 if test "${ac_cv_prog_NM+set}" = set; then :
7947 $as_echo_n "(cached) " >&6
7949 if test -n "$NM"; then
7950 ac_cv_prog_NM
="$NM" # Let the user override the test.
7952 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7956 test -z "$as_dir" && as_dir
=.
7957 for ac_exec_ext
in '' $ac_executable_extensions; do
7958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7967 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7971 if test -n "$NM"; then
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7973 $as_echo "$NM" >&6; }
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7976 $as_echo "no" >&6; }
7983 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7984 && test -d ..
/binutils
; then
7985 AR
='${objdir}/../binutils/ar'
7987 # Extract the first word of "ar", so it can be a program name with args.
7988 set dummy
ar; ac_word
=$2
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7990 $as_echo_n "checking for $ac_word... " >&6; }
7991 if test "${ac_cv_prog_AR+set}" = set; then :
7992 $as_echo_n "(cached) " >&6
7994 if test -n "$AR"; then
7995 ac_cv_prog_AR
="$AR" # Let the user override the test.
7997 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8001 test -z "$as_dir" && as_dir
=.
8002 for ac_exec_ext
in '' $ac_executable_extensions; do
8003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8012 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8016 if test -n "$AR"; then
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8018 $as_echo "$AR" >&6; }
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8021 $as_echo "no" >&6; }
8028 # --------------------
8029 # Checks for C headers
8030 # --------------------
8032 # Need to reject headers which give warnings, so that the -Werror bootstrap
8033 # works later. *sigh* This needs to come before all header checks.
8035 ac_c_preproc_warn_flag
=yes
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8038 $as_echo_n "checking for ANSI C header files... " >&6; }
8039 if test "${ac_cv_header_stdc+set}" = set; then :
8040 $as_echo_n "(cached) " >&6
8042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8043 /* end confdefs.h. */
8057 if ac_fn_c_try_compile
"$LINENO"; then :
8058 ac_cv_header_stdc
=yes
8060 ac_cv_header_stdc
=no
8062 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8064 if test $ac_cv_header_stdc = yes; then
8065 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8067 /* end confdefs.h. */
8071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8072 $EGREP "memchr" >/dev
/null
2>&1; then :
8075 ac_cv_header_stdc
=no
8081 if test $ac_cv_header_stdc = yes; then
8082 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8084 /* end confdefs.h. */
8088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8089 $EGREP "free" >/dev
/null
2>&1; then :
8092 ac_cv_header_stdc
=no
8098 if test $ac_cv_header_stdc = yes; then
8099 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8100 if test "$cross_compiling" = yes; then :
8103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8104 /* end confdefs.h. */
8107 #if ((' ' & 0x0FF) == 0x020)
8108 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8109 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8111 # define ISLOWER(c) \
8112 (('a' <= (c) && (c) <= 'i') \
8113 || ('j' <= (c) && (c) <= 'r') \
8114 || ('s' <= (c) && (c) <= 'z'))
8115 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8118 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8123 for (i = 0; i < 256; i++)
8124 if (XOR (islower (i), ISLOWER (i))
8125 || toupper (i) != TOUPPER (i))
8130 if ac_fn_c_try_run
"$LINENO"; then :
8133 ac_cv_header_stdc
=no
8135 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8136 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8142 $as_echo "$ac_cv_header_stdc" >&6; }
8143 if test $ac_cv_header_stdc = yes; then
8145 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8150 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8151 if test "${ac_cv_header_time+set}" = set; then :
8152 $as_echo_n "(cached) " >&6
8154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8155 /* end confdefs.h. */
8156 #include <sys/types.h>
8157 #include <sys/time.h>
8163 if ((struct tm *) 0)
8169 if ac_fn_c_try_compile
"$LINENO"; then :
8170 ac_cv_header_time
=yes
8172 ac_cv_header_time
=no
8174 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8177 $as_echo "$ac_cv_header_time" >&6; }
8178 if test $ac_cv_header_time = yes; then
8180 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8185 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8186 if test "${gcc_cv_header_string+set}" = set; then :
8187 $as_echo_n "(cached) " >&6
8189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8190 /* end confdefs.h. */
8192 #include <strings.h>
8201 if ac_fn_c_try_compile
"$LINENO"; then :
8202 gcc_cv_header_string
=yes
8204 gcc_cv_header_string
=no
8206 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8209 $as_echo "$gcc_cv_header_string" >&6; }
8210 if test $gcc_cv_header_string = yes; then
8212 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8217 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8218 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8219 $as_echo_n "(cached) " >&6
8221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8222 /* end confdefs.h. */
8223 #include <sys/types.h>
8224 #include <sys/wait.h>
8226 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8229 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8237 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8242 if ac_fn_c_try_compile
"$LINENO"; then :
8243 ac_cv_header_sys_wait_h
=yes
8245 ac_cv_header_sys_wait_h
=no
8247 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8250 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8251 if test $ac_cv_header_sys_wait_h = yes; then
8253 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8257 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8258 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8259 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8260 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8262 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8263 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8264 eval as_val
=\$
$as_ac_Header
8265 if test "x$as_val" = x
""yes; then :
8266 cat >>confdefs.h
<<_ACEOF
8267 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8274 # Check for thread headers.
8275 ac_fn_c_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8276 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8282 ac_fn_c_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8283 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8290 # These tests can't be done till we know if we have limits.h.
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8292 $as_echo_n "checking for CHAR_BIT... " >&6; }
8293 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8294 $as_echo_n "(cached) " >&6
8296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8297 /* end confdefs.h. */
8298 #ifdef HAVE_LIMITS_H
8305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8306 $EGREP "found" >/dev
/null
2>&1; then :
8307 gcc_cv_decl_char_bit
=yes
8309 gcc_cv_decl_char_bit
=no
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8316 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8317 if test $gcc_cv_decl_char_bit = no
; then
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8319 $as_echo_n "checking number of bits in a byte... " >&6; }
8320 if test "${gcc_cv_c_nbby+set}" = set; then :
8321 $as_echo_n "(cached) " >&6
8325 while test $i -lt 65; do
8326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8327 /* end confdefs.h. */
8333 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8334 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8340 if ac_fn_c_try_compile
"$LINENO"; then :
8341 gcc_cv_c_nbby
=$i; break
8343 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8346 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8350 $as_echo "$gcc_cv_c_nbby" >&6; }
8351 if test $gcc_cv_c_nbby = failed
; then
8352 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8355 cat >>confdefs.h
<<_ACEOF
8356 #define CHAR_BIT $gcc_cv_c_nbby
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8362 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8363 if test "${ac_cv_c_bigendian+set}" = set; then :
8364 $as_echo_n "(cached) " >&6
8366 ac_cv_c_bigendian
=unknown
8367 # See if we're dealing with a universal compiler.
8368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8369 /* end confdefs.h. */
8370 #ifndef __APPLE_CC__
8371 not a universal capable compiler
8376 if ac_fn_c_try_compile
"$LINENO"; then :
8378 # Check for potential -arch flags. It is not universal unless
8379 # there are at least two -arch flags with different values.
8382 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8383 if test -n "$ac_prev"; then
8385 i?
86 | x86_64 | ppc | ppc64
)
8386 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8389 ac_cv_c_bigendian
=universal
8395 elif test "x$ac_word" = "x-arch"; then
8400 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8401 if test $ac_cv_c_bigendian = unknown
; then
8402 # See if sys/param.h defines the BYTE_ORDER macro.
8403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8404 /* end confdefs.h. */
8405 #include <sys/types.h>
8406 #include <sys/param.h>
8411 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8412 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8421 if ac_fn_c_try_compile
"$LINENO"; then :
8422 # It does; now see whether it defined to BIG_ENDIAN or not.
8423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8424 /* end confdefs.h. */
8425 #include <sys/types.h>
8426 #include <sys/param.h>
8431 #if BYTE_ORDER != BIG_ENDIAN
8439 if ac_fn_c_try_compile
"$LINENO"; then :
8440 ac_cv_c_bigendian
=yes
8442 ac_cv_c_bigendian
=no
8444 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8446 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8448 if test $ac_cv_c_bigendian = unknown
; then
8449 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8451 /* end confdefs.h. */
8457 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8465 if ac_fn_c_try_compile
"$LINENO"; then :
8466 # It does; now see whether it defined to _BIG_ENDIAN or not.
8467 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8468 /* end confdefs.h. */
8482 if ac_fn_c_try_compile
"$LINENO"; then :
8483 ac_cv_c_bigendian
=yes
8485 ac_cv_c_bigendian
=no
8487 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8489 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8491 if test $ac_cv_c_bigendian = unknown
; then
8492 # Compile a test program.
8493 if test "$cross_compiling" = yes; then :
8494 # Try to guess by grepping values from an object file.
8495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8496 /* end confdefs.h. */
8497 short int ascii_mm[] =
8498 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8499 short int ascii_ii[] =
8500 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8501 int use_ascii (int i) {
8502 return ascii_mm[i] + ascii_ii[i];
8504 short int ebcdic_ii[] =
8505 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8506 short int ebcdic_mm[] =
8507 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8508 int use_ebcdic (int i) {
8509 return ebcdic_mm[i] + ebcdic_ii[i];
8516 return use_ascii (foo) == use_ebcdic (foo);
8521 if ac_fn_c_try_compile
"$LINENO"; then :
8522 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8523 ac_cv_c_bigendian
=yes
8525 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8526 if test "$ac_cv_c_bigendian" = unknown
; then
8527 ac_cv_c_bigendian
=no
8529 # finding both strings is unlikely to happen, but who knows?
8530 ac_cv_c_bigendian
=unknown
8534 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8536 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8537 /* end confdefs.h. */
8538 $ac_includes_default
8543 /* Are we little or big endian? From Harbison&Steele. */
8547 char c[sizeof (long int)];
8550 return u.c[sizeof (long int) - 1] == 1;
8556 if ac_fn_c_try_run
"$LINENO"; then :
8557 ac_cv_c_bigendian
=no
8559 ac_cv_c_bigendian
=yes
8561 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8562 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8568 $as_echo "$ac_cv_c_bigendian" >&6; }
8569 case $ac_cv_c_bigendian in #(
8571 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8577 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8581 as_fn_error
"unknown endianness
8582 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8586 # ----------------------
8587 # Checks for C++ headers
8588 # ----------------------
8591 ac_cpp
='$CXXCPP $CPPFLAGS'
8592 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8593 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8594 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8596 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8597 if test -z "$CXXCPP"; then
8598 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8599 $as_echo_n "(cached) " >&6
8601 # Double quotes because CXXCPP needs to be expanded
8602 for CXXCPP
in "$CXX -E" "/lib/cpp"
8605 for ac_cxx_preproc_warn_flag
in '' yes
8607 # Use a header file that comes with gcc, so configuring glibc
8608 # with a fresh cross-compiler works.
8609 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8610 # <limits.h> exists even on freestanding compilers.
8611 # On the NeXT, cc -E runs the code through the compiler's parser,
8612 # not just through cpp. "Syntax error" is here to catch this case.
8613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8614 /* end confdefs.h. */
8616 # include <limits.h>
8618 # include <assert.h>
8622 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8625 # Broken: fails on valid input.
8628 rm -f conftest.err conftest.
$ac_ext
8630 # OK, works on sane cases. Now check whether nonexistent headers
8631 # can be detected and how.
8632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8633 /* end confdefs.h. */
8634 #include <ac_nonexistent.h>
8636 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8637 # Broken: success on invalid input.
8640 # Passes both tests.
8644 rm -f conftest.err conftest.
$ac_ext
8647 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8648 rm -f conftest.err conftest.
$ac_ext
8649 if $ac_preproc_ok; then :
8654 ac_cv_prog_CXXCPP
=$CXXCPP
8657 CXXCPP
=$ac_cv_prog_CXXCPP
8659 ac_cv_prog_CXXCPP
=$CXXCPP
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8662 $as_echo "$CXXCPP" >&6; }
8664 for ac_cxx_preproc_warn_flag
in '' yes
8666 # Use a header file that comes with gcc, so configuring glibc
8667 # with a fresh cross-compiler works.
8668 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8669 # <limits.h> exists even on freestanding compilers.
8670 # On the NeXT, cc -E runs the code through the compiler's parser,
8671 # not just through cpp. "Syntax error" is here to catch this case.
8672 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8673 /* end confdefs.h. */
8675 # include <limits.h>
8677 # include <assert.h>
8681 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8684 # Broken: fails on valid input.
8687 rm -f conftest.err conftest.
$ac_ext
8689 # OK, works on sane cases. Now check whether nonexistent headers
8690 # can be detected and how.
8691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8692 /* end confdefs.h. */
8693 #include <ac_nonexistent.h>
8695 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8696 # Broken: success on invalid input.
8699 # Passes both tests.
8703 rm -f conftest.err conftest.
$ac_ext
8706 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8707 rm -f conftest.err conftest.
$ac_ext
8708 if $ac_preproc_ok; then :
8711 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8712 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8714 See \`config.log' for more details." >&5
8715 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8716 See \`config.log' for more details." >&2;}; }
8720 ac_cpp
='$CPP $CPPFLAGS'
8721 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8722 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8723 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8727 ac_cpp
='$CXXCPP $CPPFLAGS'
8728 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8729 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8730 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8735 for ac_header
in unordered_map
8737 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8738 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
8739 cat >>confdefs.h
<<_ACEOF
8740 #define HAVE_UNORDERED_MAP 1
8746 for ac_header
in tr1/unordered_map
8748 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8749 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
8750 cat >>confdefs.h
<<_ACEOF
8751 #define HAVE_TR1_UNORDERED_MAP 1
8757 for ac_header
in ext
/hash_map
8759 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8760 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
8761 cat >>confdefs.h
<<_ACEOF
8762 #define HAVE_EXT_HASH_MAP 1
8770 ac_cpp
='$CPP $CPPFLAGS'
8771 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8772 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8773 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8781 # These libraries may be used by collect2.
8782 # We may need a special search path to get them linked.
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8784 $as_echo_n "checking for collect2 libraries... " >&6; }
8785 if test "${gcc_cv_collect2_libs+set}" = set; then :
8786 $as_echo_n "(cached) " >&6
8789 for libs
in '' -lld -lmld \
8790 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8791 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8795 /* end confdefs.h. */
8797 /* Override any GCC internal prototype to avoid an error.
8798 Use char because int might match the return type of a GCC
8799 builtin and then its argument prototype would still apply. */
8812 if ac_fn_c_try_link
"$LINENO"; then :
8813 gcc_cv_collect2_libs
="$libs"; break
8815 rm -f core conftest.err conftest.
$ac_objext \
8816 conftest
$ac_exeext conftest.
$ac_ext
8819 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8822 $as_echo "$gcc_cv_collect2_libs" >&6; }
8823 case $gcc_cv_collect2_libs in
8825 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8829 # When building Ada code on Alpha, we need exc_resume which is usually in
8830 # -lexc. So test for it.
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8834 $as_echo_n "checking for library containing exc_resume... " >&6; }
8835 if test "${ac_cv_search_exc_resume+set}" = set; then :
8836 $as_echo_n "(cached) " >&6
8838 ac_func_search_save_LIBS
=$LIBS
8839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8840 /* end confdefs.h. */
8842 /* Override any GCC internal prototype to avoid an error.
8843 Use char because int might match the return type of a GCC
8844 builtin and then its argument prototype would still apply. */
8852 return exc_resume ();
8857 for ac_lib
in '' exc
; do
8858 if test -z "$ac_lib"; then
8859 ac_res
="none required"
8862 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8864 if ac_fn_c_try_link
"$LINENO"; then :
8865 ac_cv_search_exc_resume
=$ac_res
8867 rm -f core conftest.err conftest.
$ac_objext \
8869 if test "${ac_cv_search_exc_resume+set}" = set; then :
8873 if test "${ac_cv_search_exc_resume+set}" = set; then :
8876 ac_cv_search_exc_resume
=no
8879 LIBS
=$ac_func_search_save_LIBS
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8882 $as_echo "$ac_cv_search_exc_resume" >&6; }
8883 ac_res
=$ac_cv_search_exc_resume
8884 if test "$ac_res" != no
; then :
8885 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8893 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8897 $as_echo_n "checking for library containing kstat_open... " >&6; }
8898 if test "${ac_cv_search_kstat_open+set}" = set; then :
8899 $as_echo_n "(cached) " >&6
8901 ac_func_search_save_LIBS
=$LIBS
8902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8903 /* end confdefs.h. */
8905 /* Override any GCC internal prototype to avoid an error.
8906 Use char because int might match the return type of a GCC
8907 builtin and then its argument prototype would still apply. */
8915 return kstat_open ();
8920 for ac_lib
in '' kstat
; do
8921 if test -z "$ac_lib"; then
8922 ac_res
="none required"
8925 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8927 if ac_fn_c_try_link
"$LINENO"; then :
8928 ac_cv_search_kstat_open
=$ac_res
8930 rm -f core conftest.err conftest.
$ac_objext \
8932 if test "${ac_cv_search_kstat_open+set}" = set; then :
8936 if test "${ac_cv_search_kstat_open+set}" = set; then :
8939 ac_cv_search_kstat_open
=no
8942 LIBS
=$ac_func_search_save_LIBS
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8945 $as_echo "$ac_cv_search_kstat_open" >&6; }
8946 ac_res
=$ac_cv_search_kstat_open
8947 if test "$ac_res" != no
; then :
8948 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8952 EXTRA_GCC_LIBS
="$LIBS"
8956 # Some systems put ldexp and frexp in libm instead of libc; assume
8957 # they're both in the same place. jcf-dump needs them.
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8961 $as_echo_n "checking for library containing ldexp... " >&6; }
8962 if test "${ac_cv_search_ldexp+set}" = set; then :
8963 $as_echo_n "(cached) " >&6
8965 ac_func_search_save_LIBS
=$LIBS
8966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8967 /* end confdefs.h. */
8969 /* Override any GCC internal prototype to avoid an error.
8970 Use char because int might match the return type of a GCC
8971 builtin and then its argument prototype would still apply. */
8984 for ac_lib
in '' m
; do
8985 if test -z "$ac_lib"; then
8986 ac_res
="none required"
8989 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8991 if ac_fn_c_try_link
"$LINENO"; then :
8992 ac_cv_search_ldexp
=$ac_res
8994 rm -f core conftest.err conftest.
$ac_objext \
8996 if test "${ac_cv_search_ldexp+set}" = set; then :
9000 if test "${ac_cv_search_ldexp+set}" = set; then :
9003 ac_cv_search_ldexp
=no
9006 LIBS
=$ac_func_search_save_LIBS
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9009 $as_echo "$ac_cv_search_ldexp" >&6; }
9010 ac_res
=$ac_cv_search_ldexp
9011 if test "$ac_res" != no
; then :
9012 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9020 # Use <inttypes.h> only if it exists,
9021 # doesn't clash with <sys/types.h>, and declares intmax_t.
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9023 $as_echo_n "checking for inttypes.h... " >&6; }
9024 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9025 $as_echo_n "(cached) " >&6
9027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9028 /* end confdefs.h. */
9029 #include <sys/types.h>
9030 #include <inttypes.h>
9039 if ac_fn_c_try_compile
"$LINENO"; then :
9040 gcc_cv_header_inttypes_h
=yes
9042 gcc_cv_header_inttypes_h
=no
9044 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9048 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9049 if test $gcc_cv_header_inttypes_h = yes; then
9051 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9057 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9058 sysconf strsignal getrusage nl_langinfo \
9059 gettimeofday mbstowcs wcswidth mmap setlocale \
9060 clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked madvise
9062 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9063 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9064 eval as_val
=\$
$as_ac_var
9065 if test "x$as_val" = x
""yes; then :
9066 cat >>confdefs.h
<<_ACEOF
9067 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9074 if test x
$ac_cv_func_mbstowcs = xyes
; then
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9076 $as_echo_n "checking whether mbstowcs works... " >&6; }
9077 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9078 $as_echo_n "(cached) " >&6
9080 if test "$cross_compiling" = yes; then :
9081 gcc_cv_func_mbstowcs_works
=yes
9083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9084 /* end confdefs.h. */
9092 if ac_fn_c_try_run
"$LINENO"; then :
9093 gcc_cv_func_mbstowcs_works
=yes
9095 gcc_cv_func_mbstowcs_works
=no
9097 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9098 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9103 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9104 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9106 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9111 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9112 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9116 cat >>confdefs.h
<<_ACEOF
9122 ac_fn_c_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9123 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9127 cat >>confdefs.h
<<_ACEOF
9128 #define caddr_t char *
9135 ac_fn_c_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9136 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9137 gcc_header_sys_mman_h
=yes
9139 gcc_header_sys_mman_h
=no
9142 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9143 if test "x$ac_cv_func_mmap" = x
""yes; then :
9149 if test "$gcc_header_sys_mman_h" != yes \
9150 ||
test "$gcc_func_mmap" != yes; then
9151 gcc_cv_func_mmap_file
=no
9152 gcc_cv_func_mmap_dev_zero
=no
9153 gcc_cv_func_mmap_anon
=no
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9156 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9157 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9158 $as_echo_n "(cached) " >&6
9160 # Add a system to this blacklist if
9161 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9162 # memory area containing the same data that you'd get if you applied
9163 # read() to the same fd. The only system known to have a problem here
9164 # is VMS, where text files have record structure.
9167 gcc_cv_func_mmap_file
=no
;;
9169 gcc_cv_func_mmap_file
=yes;;
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9173 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9175 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9176 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9177 $as_echo_n "(cached) " >&6
9179 # Add a system to this blacklist if it has mmap() but /dev/zero
9180 # does not exist, or if mmapping /dev/zero does not give anonymous
9181 # zeroed pages with both the following properties:
9182 # 1. If you map N consecutive pages in with one call, and then
9183 # unmap any subset of those pages, the pages that were not
9184 # explicitly unmapped remain accessible.
9185 # 2. If you map two adjacent blocks of memory and then unmap them
9186 # both at once, they must both go away.
9187 # Systems known to be in this category are Windows (all variants),
9190 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9191 gcc_cv_func_mmap_dev_zero
=no
;;
9193 gcc_cv_func_mmap_dev_zero
=yes;;
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9197 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9199 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9201 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9202 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9203 $as_echo_n "(cached) " >&6
9205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9206 /* end confdefs.h. */
9207 #include <sys/types.h>
9208 #include <sys/mman.h>
9211 #ifndef MAP_ANONYMOUS
9212 #define MAP_ANONYMOUS MAP_ANON
9218 int n = MAP_ANONYMOUS;
9223 if ac_fn_c_try_compile
"$LINENO"; then :
9224 gcc_cv_decl_map_anon
=yes
9226 gcc_cv_decl_map_anon
=no
9228 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9231 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9233 if test $gcc_cv_decl_map_anon = no
; then
9234 gcc_cv_func_mmap_anon
=no
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9237 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9238 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9239 $as_echo_n "(cached) " >&6
9241 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9242 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9243 # doesn't give anonymous zeroed pages with the same properties listed
9244 # above for use of /dev/zero.
9245 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9247 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9248 gcc_cv_func_mmap_anon
=no
;;
9250 gcc_cv_func_mmap_anon
=yes;;
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9254 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9258 if test $gcc_cv_func_mmap_file = yes; then
9260 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9263 if test $gcc_cv_func_mmap_dev_zero = yes; then
9265 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9268 if test $gcc_cv_func_mmap_anon = yes; then
9270 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9277 # Under VMS, vfork works very differently than on Unix. The standard test
9278 # won't work, and it isn't easily adaptable. It makes more sense to
9280 ac_cv_func_vfork_works
=yes
9283 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9284 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9288 cat >>confdefs.h
<<_ACEOF
9294 for ac_header
in vfork.h
9296 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9297 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9298 cat >>confdefs.h
<<_ACEOF
9299 #define HAVE_VFORK_H 1
9305 for ac_func
in fork vfork
9307 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9308 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9309 eval as_val
=\$
$as_ac_var
9310 if test "x$as_val" = x
""yes; then :
9311 cat >>confdefs.h
<<_ACEOF
9312 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9318 if test "x$ac_cv_func_fork" = xyes
; then
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9320 $as_echo_n "checking for working fork... " >&6; }
9321 if test "${ac_cv_func_fork_works+set}" = set; then :
9322 $as_echo_n "(cached) " >&6
9324 if test "$cross_compiling" = yes; then :
9325 ac_cv_func_fork_works
=cross
9327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9328 /* end confdefs.h. */
9329 $ac_includes_default
9334 /* By Ruediger Kuhlmann. */
9341 if ac_fn_c_try_run
"$LINENO"; then :
9342 ac_cv_func_fork_works
=yes
9344 ac_cv_func_fork_works
=no
9346 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9347 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9352 $as_echo "$ac_cv_func_fork_works" >&6; }
9355 ac_cv_func_fork_works
=$ac_cv_func_fork
9357 if test "x$ac_cv_func_fork_works" = xcross
; then
9359 *-*-amigaos* |
*-*-msdosdjgpp*)
9360 # Override, as these systems have only a dummy fork() stub
9361 ac_cv_func_fork_works
=no
9364 ac_cv_func_fork_works
=yes
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9368 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9370 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9371 if test "x$ac_cv_func_vfork" = xyes
; then
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9373 $as_echo_n "checking for working vfork... " >&6; }
9374 if test "${ac_cv_func_vfork_works+set}" = set; then :
9375 $as_echo_n "(cached) " >&6
9377 if test "$cross_compiling" = yes; then :
9378 ac_cv_func_vfork_works
=cross
9380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9381 /* end confdefs.h. */
9382 /* Thanks to Paul Eggert for this test. */
9383 $ac_includes_default
9384 #include <sys/wait.h>
9388 /* On some sparc systems, changes by the child to local and incoming
9389 argument registers are propagated back to the parent. The compiler
9390 is told about this with #include <vfork.h>, but some compilers
9391 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9392 static variable whose address is put into a register that is
9393 clobbered by the vfork. */
9396 sparc_address_test (int arg)
9398 sparc_address_test (arg) int arg;
9419 pid_t parent = getpid ();
9422 sparc_address_test (0);
9427 /* Here is another test for sparc vfork register problems. This
9428 test uses lots of local variables, at least as many local
9429 variables as main has allocated so far including compiler
9430 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9431 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9432 reuse the register of parent for one of the local variables,
9433 since it will think that parent can't possibly be used any more
9434 in this routine. Assigning to the local variable will thus
9435 munge parent in the parent process. */
9437 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9438 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9439 /* Convince the compiler that p..p7 are live; otherwise, it might
9440 use the same hardware register for all 8 local variables. */
9441 if (p != p1 || p != p2 || p != p3 || p != p4
9442 || p != p5 || p != p6 || p != p7)
9445 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9446 from child file descriptors. If the child closes a descriptor
9447 before it execs or exits, this munges the parent's descriptor
9448 as well. Test for this by closing stdout in the child. */
9449 _exit(close(fileno(stdout)) != 0);
9454 while (wait(&status) != child)
9457 /* Was there some problem with vforking? */
9460 /* Did the child fail? (This shouldn't happen.) */
9463 /* Did the vfork/compiler bug occur? */
9464 || parent != getpid()
9466 /* Did the file descriptor bug occur? */
9467 || fstat(fileno(stdout), &st) != 0
9472 if ac_fn_c_try_run
"$LINENO"; then :
9473 ac_cv_func_vfork_works
=yes
9475 ac_cv_func_vfork_works
=no
9477 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9478 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9483 $as_echo "$ac_cv_func_vfork_works" >&6; }
9486 if test "x$ac_cv_func_fork_works" = xcross
; then
9487 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9489 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9492 if test "x$ac_cv_func_vfork_works" = xyes
; then
9494 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9498 $as_echo "#define vfork fork" >>confdefs.h
9501 if test "x$ac_cv_func_fork_works" = xyes
; then
9503 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9508 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9509 # iconv() prototype.
9511 if test "X$prefix" = "XNONE"; then
9512 acl_final_prefix
="$ac_default_prefix"
9514 acl_final_prefix
="$prefix"
9516 if test "X$exec_prefix" = "XNONE"; then
9517 acl_final_exec_prefix
='${prefix}'
9519 acl_final_exec_prefix
="$exec_prefix"
9521 acl_save_prefix
="$prefix"
9522 prefix
="$acl_final_prefix"
9523 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
9524 prefix
="$acl_save_prefix"
9527 # Check whether --with-gnu-ld was given.
9528 if test "${with_gnu_ld+set}" = set; then :
9529 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
9534 # Prepare PATH_SEPARATOR.
9535 # The user is always right.
9536 if test "${PATH_SEPARATOR+set}" != set; then
9537 echo "#! /bin/sh" >conf$$.sh
9538 echo "exit 0" >>conf$$.sh
9540 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9548 if test "$GCC" = yes; then
9549 # Check if gcc -print-prog-name=ld gives a path.
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9551 $as_echo_n "checking for ld used by GCC... " >&6; }
9554 # gcc leaves a trailing carriage return which upsets mingw
9555 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9557 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9560 # Accept absolute paths.
9561 [\\/]* |
[A-Za-z
]:[\\/]*)
9562 re_direlt
='/[^/][^/]*/\.\./'
9563 # Canonicalize the path of ld
9564 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9565 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9566 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9568 test -z "$LD" && LD
="$ac_prog"
9571 # If it fails, then pretend we aren't using GCC.
9575 # If it is relative, then search for the first ld in PATH.
9579 elif test "$with_gnu_ld" = yes; then
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9581 $as_echo_n "checking for GNU ld... " >&6; }
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9584 $as_echo_n "checking for non-GNU ld... " >&6; }
9586 if test "${acl_cv_path_LD+set}" = set; then :
9587 $as_echo_n "(cached) " >&6
9589 if test -z "$LD"; then
9590 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9591 for ac_dir
in $PATH; do
9592 test -z "$ac_dir" && ac_dir
=.
9593 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9594 acl_cv_path_LD
="$ac_dir/$ac_prog"
9595 # Check to see if the program is GNU ld. I'd rather use --version,
9596 # but apparently some GNU ld's only accept -v.
9597 # Break only if it was the GNU/non-GNU ld that we prefer.
9598 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9599 test "$with_gnu_ld" != no
&& break
9601 test "$with_gnu_ld" != yes && break
9607 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9611 LD
="$acl_cv_path_LD"
9612 if test -n "$LD"; then
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9614 $as_echo "$LD" >&6; }
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9617 $as_echo "no" >&6; }
9619 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9621 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9622 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9623 $as_echo_n "(cached) " >&6
9625 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9626 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9627 acl_cv_prog_gnu_ld
=yes
9629 acl_cv_prog_gnu_ld
=no
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9633 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9634 with_gnu_ld
=$acl_cv_prog_gnu_ld
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9639 $as_echo_n "checking for shared library run path origin... " >&6; }
9640 if test "${acl_cv_rpath+set}" = set; then :
9641 $as_echo_n "(cached) " >&6
9644 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9645 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9652 $as_echo "$acl_cv_rpath" >&6; }
9654 libext
="$acl_cv_libext"
9655 shlibext
="$acl_cv_shlibext"
9656 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9657 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9658 hardcode_direct
="$acl_cv_hardcode_direct"
9659 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9660 # Check whether --enable-rpath was given.
9661 if test "${enable_rpath+set}" = set; then :
9662 enableval
=$enable_rpath; :
9676 acl_save_prefix
="$prefix"
9677 prefix
="$acl_final_prefix"
9678 acl_save_exec_prefix
="$exec_prefix"
9679 exec_prefix
="$acl_final_exec_prefix"
9681 eval additional_includedir
=\"$includedir\"
9682 eval additional_libdir
=\"$libdir\"
9684 exec_prefix
="$acl_save_exec_prefix"
9685 prefix
="$acl_save_prefix"
9688 # Check whether --with-libiconv-prefix was given.
9689 if test "${with_libiconv_prefix+set}" = set; then :
9690 withval
=$with_libiconv_prefix;
9691 if test "X$withval" = "Xno"; then
9694 if test "X$withval" = "X"; then
9696 acl_save_prefix
="$prefix"
9697 prefix
="$acl_final_prefix"
9698 acl_save_exec_prefix
="$exec_prefix"
9699 exec_prefix
="$acl_final_exec_prefix"
9701 eval additional_includedir
=\"$includedir\"
9702 eval additional_libdir
=\"$libdir\"
9704 exec_prefix
="$acl_save_exec_prefix"
9705 prefix
="$acl_save_prefix"
9708 additional_includedir
="$withval/include"
9709 additional_libdir
="$withval/lib"
9720 names_already_handled
=
9721 names_next_round
='iconv '
9722 while test -n "$names_next_round"; do
9723 names_this_round
="$names_next_round"
9725 for name
in $names_this_round; do
9727 for n
in $names_already_handled; do
9728 if test "$n" = "$name"; then
9733 if test -z "$already_handled"; then
9734 names_already_handled
="$names_already_handled $name"
9735 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9736 eval value
=\"\
$HAVE_LIB$uppername\"
9737 if test -n "$value"; then
9738 if test "$value" = yes; then
9739 eval value
=\"\
$LIB$uppername\"
9740 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
9741 eval value
=\"\
$LTLIB$uppername\"
9742 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
9751 if test $use_additional = yes; then
9752 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9753 found_dir
="$additional_libdir"
9754 found_so
="$additional_libdir/lib$name.$shlibext"
9755 if test -f "$additional_libdir/lib$name.la"; then
9756 found_la
="$additional_libdir/lib$name.la"
9759 if test -f "$additional_libdir/lib$name.$libext"; then
9760 found_dir
="$additional_libdir"
9761 found_a
="$additional_libdir/lib$name.$libext"
9762 if test -f "$additional_libdir/lib$name.la"; then
9763 found_la
="$additional_libdir/lib$name.la"
9768 if test "X$found_dir" = "X"; then
9769 for x
in $LDFLAGS $LTLIBICONV; do
9771 acl_save_prefix
="$prefix"
9772 prefix
="$acl_final_prefix"
9773 acl_save_exec_prefix
="$exec_prefix"
9774 exec_prefix
="$acl_final_exec_prefix"
9776 exec_prefix
="$acl_save_exec_prefix"
9777 prefix
="$acl_save_prefix"
9781 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9782 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9784 found_so
="$dir/lib$name.$shlibext"
9785 if test -f "$dir/lib$name.la"; then
9786 found_la
="$dir/lib$name.la"
9789 if test -f "$dir/lib$name.$libext"; then
9791 found_a
="$dir/lib$name.$libext"
9792 if test -f "$dir/lib$name.la"; then
9793 found_la
="$dir/lib$name.la"
9799 if test "X$found_dir" != "X"; then
9804 if test "X$found_dir" != "X"; then
9805 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9806 if test "X$found_so" != "X"; then
9807 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9808 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9811 for x
in $ltrpathdirs; do
9812 if test "X$x" = "X$found_dir"; then
9817 if test -z "$haveit"; then
9818 ltrpathdirs
="$ltrpathdirs $found_dir"
9820 if test "$hardcode_direct" = yes; then
9821 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9823 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9824 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9826 for x
in $rpathdirs; do
9827 if test "X$x" = "X$found_dir"; then
9832 if test -z "$haveit"; then
9833 rpathdirs
="$rpathdirs $found_dir"
9837 for x
in $LDFLAGS $LIBICONV; do
9839 acl_save_prefix
="$prefix"
9840 prefix
="$acl_final_prefix"
9841 acl_save_exec_prefix
="$exec_prefix"
9842 exec_prefix
="$acl_final_exec_prefix"
9844 exec_prefix
="$acl_save_exec_prefix"
9845 prefix
="$acl_save_prefix"
9847 if test "X$x" = "X-L$found_dir"; then
9852 if test -z "$haveit"; then
9853 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9855 if test "$hardcode_minus_L" != no
; then
9856 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9858 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9864 if test "X$found_a" != "X"; then
9865 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
9867 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9870 additional_includedir
=
9871 case "$found_dir" in
9873 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9874 additional_includedir
="$basedir/include"
9877 if test "X$additional_includedir" != "X"; then
9878 if test "X$additional_includedir" != "X/usr/include"; then
9880 if test "X$additional_includedir" = "X/usr/local/include"; then
9881 if test -n "$GCC"; then
9883 linux
*) haveit
=yes;;
9887 if test -z "$haveit"; then
9888 for x
in $CPPFLAGS $INCICONV; do
9890 acl_save_prefix
="$prefix"
9891 prefix
="$acl_final_prefix"
9892 acl_save_exec_prefix
="$exec_prefix"
9893 exec_prefix
="$acl_final_exec_prefix"
9895 exec_prefix
="$acl_save_exec_prefix"
9896 prefix
="$acl_save_prefix"
9898 if test "X$x" = "X-I$additional_includedir"; then
9903 if test -z "$haveit"; then
9904 if test -d "$additional_includedir"; then
9905 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9911 if test -n "$found_la"; then
9912 save_libdir
="$libdir"
9914 */* |
*\\*) .
"$found_la" ;;
9915 *) .
"./$found_la" ;;
9917 libdir
="$save_libdir"
9918 for dep
in $dependency_libs; do
9921 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9922 if test "X$additional_libdir" != "X/usr/lib"; then
9924 if test "X$additional_libdir" = "X/usr/local/lib"; then
9925 if test -n "$GCC"; then
9927 linux
*) haveit
=yes;;
9931 if test -z "$haveit"; then
9933 for x
in $LDFLAGS $LIBICONV; do
9935 acl_save_prefix
="$prefix"
9936 prefix
="$acl_final_prefix"
9937 acl_save_exec_prefix
="$exec_prefix"
9938 exec_prefix
="$acl_final_exec_prefix"
9940 exec_prefix
="$acl_save_exec_prefix"
9941 prefix
="$acl_save_prefix"
9943 if test "X$x" = "X-L$additional_libdir"; then
9948 if test -z "$haveit"; then
9949 if test -d "$additional_libdir"; then
9950 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9954 for x
in $LDFLAGS $LTLIBICONV; do
9956 acl_save_prefix
="$prefix"
9957 prefix
="$acl_final_prefix"
9958 acl_save_exec_prefix
="$exec_prefix"
9959 exec_prefix
="$acl_final_exec_prefix"
9961 exec_prefix
="$acl_save_exec_prefix"
9962 prefix
="$acl_save_prefix"
9964 if test "X$x" = "X-L$additional_libdir"; then
9969 if test -z "$haveit"; then
9970 if test -d "$additional_libdir"; then
9971 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9978 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9979 if test "$enable_rpath" != no
; then
9981 for x
in $rpathdirs; do
9982 if test "X$x" = "X$dir"; then
9987 if test -z "$haveit"; then
9988 rpathdirs
="$rpathdirs $dir"
9991 for x
in $ltrpathdirs; do
9992 if test "X$x" = "X$dir"; then
9997 if test -z "$haveit"; then
9998 ltrpathdirs
="$ltrpathdirs $dir"
10003 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10006 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10009 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10010 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10016 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10017 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10023 if test "X$rpathdirs" != "X"; then
10024 if test -n "$hardcode_libdir_separator"; then
10026 for found_dir
in $rpathdirs; do
10027 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10029 acl_save_libdir
="$libdir"
10031 eval flag
=\"$hardcode_libdir_flag_spec\"
10032 libdir
="$acl_save_libdir"
10033 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10035 for found_dir
in $rpathdirs; do
10036 acl_save_libdir
="$libdir"
10037 libdir
="$found_dir"
10038 eval flag
=\"$hardcode_libdir_flag_spec\"
10039 libdir
="$acl_save_libdir"
10040 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10044 if test "X$ltrpathdirs" != "X"; then
10045 for found_dir
in $ltrpathdirs; do
10046 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10051 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10053 ac_cpp
='$CXXCPP $CPPFLAGS'
10054 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10055 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10056 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10063 am_save_CPPFLAGS
="$CPPFLAGS"
10065 for element
in $INCICONV; do
10067 for x
in $CPPFLAGS; do
10069 acl_save_prefix
="$prefix"
10070 prefix
="$acl_final_prefix"
10071 acl_save_exec_prefix
="$exec_prefix"
10072 exec_prefix
="$acl_final_exec_prefix"
10074 exec_prefix
="$acl_save_exec_prefix"
10075 prefix
="$acl_save_prefix"
10077 if test "X$x" = "X$element"; then
10082 if test -z "$haveit"; then
10083 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10089 $as_echo_n "checking for iconv... " >&6; }
10090 if test "${am_cv_func_iconv+set}" = set; then :
10091 $as_echo_n "(cached) " >&6
10094 am_cv_func_iconv
="no, consider installing GNU libiconv"
10096 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10097 /* end confdefs.h. */
10098 #include <stdlib.h>
10103 iconv_t cd = iconv_open("","");
10104 iconv(cd,NULL,NULL,NULL,NULL);
10110 if ac_fn_cxx_try_link
"$LINENO"; then :
10111 am_cv_func_iconv
=yes
10113 rm -f core conftest.err conftest.
$ac_objext \
10114 conftest
$ac_exeext conftest.
$ac_ext
10115 if test "$am_cv_func_iconv" != yes; then
10116 am_save_LIBS
="$LIBS"
10117 LIBS
="$LIBS $LIBICONV"
10118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10119 /* end confdefs.h. */
10120 #include <stdlib.h>
10125 iconv_t cd = iconv_open("","");
10126 iconv(cd,NULL,NULL,NULL,NULL);
10132 if ac_fn_cxx_try_link
"$LINENO"; then :
10133 am_cv_lib_iconv
=yes
10134 am_cv_func_iconv
=yes
10136 rm -f core conftest.err conftest.
$ac_objext \
10137 conftest
$ac_exeext conftest.
$ac_ext
10138 LIBS
="$am_save_LIBS"
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10143 $as_echo "$am_cv_func_iconv" >&6; }
10144 if test "$am_cv_func_iconv" = yes; then
10146 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10149 if test "$am_cv_lib_iconv" = yes; then
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10151 $as_echo_n "checking how to link with libiconv... " >&6; }
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10153 $as_echo "$LIBICONV" >&6; }
10155 CPPFLAGS
="$am_save_CPPFLAGS"
10162 if test "$am_cv_func_iconv" = yes; then
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10164 $as_echo_n "checking for iconv declaration... " >&6; }
10165 if test "${am_cv_proto_iconv+set}" = set; then :
10166 $as_echo_n "(cached) " >&6
10169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10170 /* end confdefs.h. */
10172 #include <stdlib.h>
10178 #if defined(__STDC__) || defined(__cplusplus)
10179 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10192 if ac_fn_cxx_try_compile
"$LINENO"; then :
10193 am_cv_proto_iconv_arg1
=""
10195 am_cv_proto_iconv_arg1
="const"
10197 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10198 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);"
10201 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10203 }$am_cv_proto_iconv" >&5
10205 }$am_cv_proto_iconv" >&6; }
10207 cat >>confdefs.h
<<_ACEOF
10208 #define ICONV_CONST $am_cv_proto_iconv_arg1
10214 ac_cpp
='$CPP $CPPFLAGS'
10215 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10216 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10217 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10225 am_save_CPPFLAGS
="$CPPFLAGS"
10227 for element
in $INCICONV; do
10229 for x
in $CPPFLAGS; do
10231 acl_save_prefix
="$prefix"
10232 prefix
="$acl_final_prefix"
10233 acl_save_exec_prefix
="$exec_prefix"
10234 exec_prefix
="$acl_final_exec_prefix"
10236 exec_prefix
="$acl_save_exec_prefix"
10237 prefix
="$acl_save_prefix"
10239 if test "X$x" = "X$element"; then
10244 if test -z "$haveit"; then
10245 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10251 $as_echo_n "checking for iconv... " >&6; }
10252 if test "${am_cv_func_iconv+set}" = set; then :
10253 $as_echo_n "(cached) " >&6
10256 am_cv_func_iconv
="no, consider installing GNU libiconv"
10258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10259 /* end confdefs.h. */
10260 #include <stdlib.h>
10265 iconv_t cd = iconv_open("","");
10266 iconv(cd,NULL,NULL,NULL,NULL);
10272 if ac_fn_c_try_link
"$LINENO"; then :
10273 am_cv_func_iconv
=yes
10275 rm -f core conftest.err conftest.
$ac_objext \
10276 conftest
$ac_exeext conftest.
$ac_ext
10277 if test "$am_cv_func_iconv" != yes; then
10278 am_save_LIBS
="$LIBS"
10279 LIBS
="$LIBS $LIBICONV"
10280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10281 /* end confdefs.h. */
10282 #include <stdlib.h>
10287 iconv_t cd = iconv_open("","");
10288 iconv(cd,NULL,NULL,NULL,NULL);
10294 if ac_fn_c_try_link
"$LINENO"; then :
10295 am_cv_lib_iconv
=yes
10296 am_cv_func_iconv
=yes
10298 rm -f core conftest.err conftest.
$ac_objext \
10299 conftest
$ac_exeext conftest.
$ac_ext
10300 LIBS
="$am_save_LIBS"
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10305 $as_echo "$am_cv_func_iconv" >&6; }
10306 if test "$am_cv_func_iconv" = yes; then
10308 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10311 if test "$am_cv_lib_iconv" = yes; then
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10313 $as_echo_n "checking how to link with libiconv... " >&6; }
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10315 $as_echo "$LIBICONV" >&6; }
10317 CPPFLAGS
="$am_save_CPPFLAGS"
10324 if test "$am_cv_func_iconv" = yes; then
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10326 $as_echo_n "checking for iconv declaration... " >&6; }
10327 if test "${am_cv_proto_iconv+set}" = set; then :
10328 $as_echo_n "(cached) " >&6
10331 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10332 /* end confdefs.h. */
10334 #include <stdlib.h>
10340 #if defined(__STDC__) || defined(__cplusplus)
10341 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10354 if ac_fn_c_try_compile
"$LINENO"; then :
10355 am_cv_proto_iconv_arg1
=""
10357 am_cv_proto_iconv_arg1
="const"
10359 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10360 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);"
10363 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10365 }$am_cv_proto_iconv" >&5
10367 }$am_cv_proto_iconv" >&6; }
10369 cat >>confdefs.h
<<_ACEOF
10370 #define ICONV_CONST $am_cv_proto_iconv_arg1
10377 # Until we have in-tree GNU iconv:
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10383 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10384 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10385 $as_echo_n "(cached) " >&6
10387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10388 /* end confdefs.h. */
10389 #include <locale.h>
10398 if ac_fn_c_try_link
"$LINENO"; then :
10399 am_cv_val_LC_MESSAGES
=yes
10401 am_cv_val_LC_MESSAGES
=no
10403 rm -f core conftest.err conftest.
$ac_objext \
10404 conftest
$ac_exeext conftest.
$ac_ext
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10407 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10408 if test $am_cv_val_LC_MESSAGES = yes; then
10410 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10417 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10418 if test "${am_cv_langinfo_codeset+set}" = set; then :
10419 $as_echo_n "(cached) " >&6
10421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10422 /* end confdefs.h. */
10423 #include <langinfo.h>
10427 char* cs = nl_langinfo(CODESET);
10432 if ac_fn_c_try_link
"$LINENO"; then :
10433 am_cv_langinfo_codeset
=yes
10435 am_cv_langinfo_codeset
=no
10437 rm -f core conftest.err conftest.
$ac_objext \
10438 conftest
$ac_exeext conftest.
$ac_ext
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10442 $as_echo "$am_cv_langinfo_codeset" >&6; }
10443 if test $am_cv_langinfo_codeset = yes; then
10445 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10450 # We will need to find libiberty.h and ansidecl.h
10451 saved_CFLAGS
="$CFLAGS"
10452 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10453 saved_CXXFLAGS
="$CXXFLAGS"
10454 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include"
10455 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
10456 strsignal strstr strverscmp \
10457 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10458 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
10460 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10462 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10463 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10464 $as_echo_n "(cached) " >&6
10466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10467 /* end confdefs.h. */
10469 #define $ac_tr_decl 1
10471 #include "ansidecl.h"
10472 #include "system.h"
10478 char *(*pfn) = (char *(*)) $ac_func ;
10484 if ac_fn_c_try_compile
"$LINENO"; then :
10485 eval "gcc_cv_have_decl_$ac_func=yes"
10487 eval "gcc_cv_have_decl_$ac_func=no"
10489 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10492 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10494 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10495 #define $ac_tr_decl 1
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10500 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10501 #define $ac_tr_decl 0
10509 for ac_func
in getrlimit setrlimit getrusage
10511 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10513 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10514 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10515 $as_echo_n "(cached) " >&6
10517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10518 /* end confdefs.h. */
10520 #define $ac_tr_decl 1
10522 #include "ansidecl.h"
10523 #include "system.h"
10524 #ifdef HAVE_SYS_RESOURCE_H
10525 #include <sys/resource.h>
10533 char *(*pfn) = (char *(*)) $ac_func ;
10539 if ac_fn_c_try_compile
"$LINENO"; then :
10540 eval "gcc_cv_have_decl_$ac_func=yes"
10542 eval "gcc_cv_have_decl_$ac_func=no"
10544 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10547 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10549 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10550 #define $ac_tr_decl 1
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10555 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10556 #define $ac_tr_decl 0
10564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10565 /* end confdefs.h. */
10567 #include "ansidecl.h"
10568 #include "system.h"
10569 #ifdef HAVE_SYS_RESOURCE_H
10570 #include <sys/resource.h>
10581 if ac_fn_c_try_compile
"$LINENO"; then :
10585 $as_echo "#define rlim_t long" >>confdefs.h
10588 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10590 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10591 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10592 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10593 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10594 for ac_func
in ldgetname
10596 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10598 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10599 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10600 $as_echo_n "(cached) " >&6
10602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10603 /* end confdefs.h. */
10605 #define $ac_tr_decl 1
10607 #include "ansidecl.h"
10608 #include "system.h"
10609 #ifdef HAVE_LDFCN_H
10620 char *(*pfn) = (char *(*)) $ac_func ;
10626 if ac_fn_c_try_compile
"$LINENO"; then :
10627 eval "gcc_cv_have_decl_$ac_func=yes"
10629 eval "gcc_cv_have_decl_$ac_func=no"
10631 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10634 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10636 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10637 #define $ac_tr_decl 1
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10642 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10643 #define $ac_tr_decl 0
10651 for ac_func
in times
10653 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10655 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10656 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10657 $as_echo_n "(cached) " >&6
10659 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10660 /* end confdefs.h. */
10662 #define $ac_tr_decl 1
10664 #include "ansidecl.h"
10665 #include "system.h"
10666 #ifdef HAVE_SYS_TIMES_H
10667 #include <sys/times.h>
10675 char *(*pfn) = (char *(*)) $ac_func ;
10681 if ac_fn_c_try_compile
"$LINENO"; then :
10682 eval "gcc_cv_have_decl_$ac_func=yes"
10684 eval "gcc_cv_have_decl_$ac_func=no"
10686 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10689 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10691 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10692 #define $ac_tr_decl 1
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10697 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10698 #define $ac_tr_decl 0
10706 for ac_func
in sigaltstack
10708 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10710 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10711 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10712 $as_echo_n "(cached) " >&6
10714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10715 /* end confdefs.h. */
10717 #define $ac_tr_decl 1
10719 #include "ansidecl.h"
10720 #include "system.h"
10721 #include <signal.h>
10728 char *(*pfn) = (char *(*)) $ac_func ;
10734 if ac_fn_c_try_compile
"$LINENO"; then :
10735 eval "gcc_cv_have_decl_$ac_func=yes"
10737 eval "gcc_cv_have_decl_$ac_func=no"
10739 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10742 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10744 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10745 #define $ac_tr_decl 1
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10750 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10751 #define $ac_tr_decl 0
10759 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10761 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10763 ac_cpp
='$CXXCPP $CPPFLAGS'
10764 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10765 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10766 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10768 for ac_func
in madvise
10770 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10772 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10773 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10774 $as_echo_n "(cached) " >&6
10776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10777 /* end confdefs.h. */
10779 #define $ac_tr_decl 1
10781 #include "ansidecl.h"
10782 #include "system.h"
10789 char *(*pfn) = (char *(*)) $ac_func ;
10795 if ac_fn_cxx_try_compile
"$LINENO"; then :
10796 eval "gcc_cv_have_decl_$ac_func=yes"
10798 eval "gcc_cv_have_decl_$ac_func=no"
10800 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10803 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10805 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10806 #define $ac_tr_decl 1
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10811 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10812 #define $ac_tr_decl 0
10820 ac_cpp
='$CPP $CPPFLAGS'
10821 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10822 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10823 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10826 for ac_func
in madvise
10828 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10830 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10831 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10832 $as_echo_n "(cached) " >&6
10834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10835 /* end confdefs.h. */
10837 #define $ac_tr_decl 1
10839 #include "ansidecl.h"
10840 #include "system.h"
10847 char *(*pfn) = (char *(*)) $ac_func ;
10853 if ac_fn_c_try_compile
"$LINENO"; then :
10854 eval "gcc_cv_have_decl_$ac_func=yes"
10856 eval "gcc_cv_have_decl_$ac_func=no"
10858 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10861 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10863 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10864 #define $ac_tr_decl 1
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10869 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10870 #define $ac_tr_decl 0
10880 # More time-related stuff.
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10882 $as_echo_n "checking for struct tms... " >&6; }
10883 if test "${ac_cv_struct_tms+set}" = set; then :
10884 $as_echo_n "(cached) " >&6
10887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10888 /* end confdefs.h. */
10890 #include "ansidecl.h"
10891 #include "system.h"
10892 #ifdef HAVE_SYS_TIMES_H
10893 #include <sys/times.h>
10904 if ac_fn_c_try_compile
"$LINENO"; then :
10905 ac_cv_struct_tms
=yes
10907 ac_cv_struct_tms
=no
10909 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10912 $as_echo "$ac_cv_struct_tms" >&6; }
10913 if test $ac_cv_struct_tms = yes; then
10915 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10919 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10920 # revisit after autoconf 2.50.
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10922 $as_echo_n "checking for clock_t... " >&6; }
10923 if test "${gcc_cv_type_clock_t+set}" = set; then :
10924 $as_echo_n "(cached) " >&6
10927 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10928 /* end confdefs.h. */
10930 #include "ansidecl.h"
10931 #include "system.h"
10941 if ac_fn_c_try_compile
"$LINENO"; then :
10942 gcc_cv_type_clock_t
=yes
10944 gcc_cv_type_clock_t
=no
10946 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10949 $as_echo "$gcc_cv_type_clock_t" >&6; }
10950 if test $gcc_cv_type_clock_t = yes; then
10952 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10956 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10957 CFLAGS
="$saved_CFLAGS"
10958 CXXFLAGS
="$saved_CXXFLAGS"
10960 # Check whether --enable-initfini-array was given.
10961 if test "${enable_initfini_array+set}" = set; then :
10962 enableval
=$enable_initfini_array;
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10966 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10967 if test "${gcc_cv_initfini_array+set}" = set; then :
10968 $as_echo_n "(cached) " >&6
10970 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
10971 if test "$cross_compiling" = yes; then :
10972 gcc_cv_initfini_array
=no
10974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10975 /* end confdefs.h. */
10978 #error Not an ELF OS
10981 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
10982 if it can be used. */
10984 int main (void) { return x; }
10985 int foo (void) { x = 0; }
10986 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10988 extern void abort ();
10998 void (*const init_array1005) ()
10999 __attribute__ ((section (".init_array.01005"), aligned (sizeof (void *))))
11007 void (*const fini_array1005) ()
11008 __attribute__ ((section (".fini_array.01005"), aligned (sizeof (void *))))
11018 void (*const ctors1007) ()
11019 __attribute__ ((section (".ctors.64528"), aligned (sizeof (void *))))
11028 void (*const dtors1007) ()
11029 __attribute__ ((section (".dtors.64528"), aligned (sizeof (void *))))
11039 void (*const init_array65530) ()
11040 __attribute__ ((section (".init_array.65530"), aligned (sizeof (void *))))
11045 if (count != 65530)
11049 void (*const fini_array65530) ()
11050 __attribute__ ((section (".fini_array.65530"), aligned (sizeof (void *))))
11056 if (count != 65530)
11060 void (*const ctors65535) ()
11061 __attribute__ ((section (".ctors"), aligned (sizeof (void *))))
11066 if (count != 65535)
11070 void (*const dtors65535) ()
11071 __attribute__ ((section (".dtors"), aligned (sizeof (void *))))
11077 if (count != 65535)
11084 if ac_fn_c_try_run
"$LINENO"; then :
11085 gcc_cv_initfini_array
=yes
11087 gcc_cv_initfini_array
=no
11089 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11090 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
11095 $as_echo_n "checking cross compile... guessing... " >&6; }
11096 gcc_cv_initfini_array
=no
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
11100 $as_echo "$gcc_cv_initfini_array" >&6; }
11101 enable_initfini_array
=$gcc_cv_initfini_array
11105 if test $enable_initfini_array = yes; then
11107 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
11111 # mkdir takes a single argument on some systems.
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11113 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11114 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11115 $as_echo_n "(cached) " >&6
11117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11118 /* end confdefs.h. */
11120 #include <sys/types.h>
11121 #ifdef HAVE_SYS_STAT_H
11122 # include <sys/stat.h>
11124 #ifdef HAVE_UNISTD_H
11125 # include <unistd.h>
11127 #ifdef HAVE_DIRECT_H
11128 # include <direct.h>
11138 if ac_fn_c_try_compile
"$LINENO"; then :
11139 gcc_cv_mkdir_takes_one_arg
=no
11141 gcc_cv_mkdir_takes_one_arg
=yes
11143 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11146 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11147 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11149 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11160 # With Setjmp/Longjmp based exception handling.
11161 # Check whether --enable-sjlj-exceptions was given.
11162 if test "${enable_sjlj_exceptions+set}" = set; then :
11163 enableval
=$enable_sjlj_exceptions; case $target in
11165 if test $enableval != yes; then
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11167 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11172 force_sjlj_exceptions
=yes
11176 force_sjlj_exceptions
=yes
11180 force_sjlj_exceptions
=no
11185 if test $force_sjlj_exceptions = yes; then
11186 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11188 cat >>confdefs.h
<<_ACEOF
11189 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11194 # --------------------------------------------------------
11195 # Build, host, and target specific configuration fragments
11196 # --------------------------------------------------------
11198 # Collect build-machine-specific information.
11199 .
${srcdir}/config.build
11201 # Collect host-machine-specific information.
11202 .
${srcdir}/config.
host
11206 # Collect target-machine-specific information.
11207 .
${srcdir}/config.gcc
11209 extra_objs
="${host_extra_objs} ${extra_objs}"
11210 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11212 # Default the target-machine variables that were not explicitly set.
11213 if test x
"$tm_file" = x
11214 then tm_file
=$cpu_type/$cpu_type.h
; fi
11216 if test x
"$extra_headers" = x
11217 then extra_headers
=; fi
11219 if test x
$md_file = x
11220 then md_file
=$cpu_type/$cpu_type.md
; fi
11222 if test x
$out_file = x
11223 then out_file
=$cpu_type/$cpu_type.c
; fi
11225 if test x
"$tmake_file" = x
11226 then tmake_file
=$cpu_type/t-
$cpu_type
11229 if test x
"$dwarf2" = xyes
11230 then tm_file
="$tm_file tm-dwarf2.h"
11233 # Say what files are being used for the output code and MD file.
11234 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11235 echo "Using \`$srcdir/config/$md_file' as machine description file."
11237 # If any of the xm_file variables contain nonexistent files, warn
11238 # about them and drop them.
11241 for x
in $build_xm_file; do
11242 if test -f $srcdir/config
/$x
11244 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11245 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11248 build_xm_file
="$bx"
11251 for x
in $host_xm_file; do
11252 if test -f $srcdir/config
/$x
11254 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11255 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11261 for x
in $xm_file; do
11262 if test -f $srcdir/config
/$x
11264 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11265 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11271 for f
in $tm_file; do
11274 if test $count = ax
; then
11275 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11277 echo "Using the following target machine macro files:"
11278 for f
in $tm_file; do
11279 echo " $srcdir/config/$f"
11283 if test x
$need_64bit_hwint = xyes
; then
11285 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11289 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11291 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11296 for f
in $host_xm_file; do
11299 if test $count = a
; then
11301 elif test $count = ax
; then
11302 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11304 echo "Using the following host machine macro files:"
11305 for f
in $host_xm_file; do
11306 echo " $srcdir/config/$f"
11309 echo "Using ${out_host_hook_obj} for host machine hooks."
11311 if test "$host_xm_file" != "$build_xm_file"; then
11313 for f
in $build_xm_file; do
11316 if test $count = a
; then
11318 elif test $count = ax
; then
11319 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11321 echo "Using the following build machine macro files:"
11322 for f
in $build_xm_file; do
11323 echo " $srcdir/config/$f"
11328 if test -n "$configured_native_system_header_dir"; then
11329 native_system_header_dir
=$configured_native_system_header_dir
11331 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11335 powerpc
*-*-darwin*)
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11337 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11338 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11339 $as_echo_n "(cached) " >&6
11341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11342 /* end confdefs.h. */
11344 #include <sys/cdefs.h>
11345 #include <sys/signal.h>
11346 #include <ucontext.h>
11347 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11350 if ac_fn_c_try_compile
"$LINENO"; then :
11351 gcc_cv_mcontext_underscores
=no
11353 gcc_cv_mcontext_underscores
=yes
11355 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11358 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11359 if test $gcc_cv_mcontext_underscores = yes; then
11361 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11371 # Check if a valid thread package
11372 case ${enable_threads} in
11375 target_thread_file
='single'
11379 target_thread_file
='single'
11381 aix | dce | lynx | mipssde | posix | rtems | \
11382 single | tpf | vxworks | win32
)
11383 target_thread_file
=${enable_threads}
11386 echo "${enable_threads} is an unknown thread package" 1>&2
11391 if test x
${thread_file} = x
; then
11392 # No thread file set by target-specific clauses in config.gcc,
11393 # so use file chosen by default logic above
11394 thread_file
=${target_thread_file}
11402 if test x
$enable___cxa_atexit = xyes || \
11403 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11404 if test x
$host = x
$target; then
11406 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11407 # keyed to flag_use_cxa_atexit
11412 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11413 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11416 echo "__cxa_atexit can't be enabled on this target"
11422 # We can't check for __cxa_atexit when building a cross, so assume
11426 if test x
$use_cxa_atexit = xyes
; then
11428 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11433 # Look for a file containing extra machine modes.
11434 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11435 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11438 cat >>confdefs.h
<<_ACEOF
11439 #define EXTRA_MODES_FILE "config/$extra_modes"
11444 # Convert extra_options into a form suitable for Makefile use.
11447 for f
in $extra_options; do
11448 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11449 all_opt_files
="$all_opt_files $srcdir/config/$f"
11453 # auto-host.h is the file containing items generated by autoconf and is
11454 # the first file included by config.h.
11455 # If host=build, it is correct to have bconfig include auto-host.h
11456 # as well. If host!=build, we are in error and need to do more
11457 # work to find out the build config parameters.
11458 if test x
$host = x
$build
11460 build_auto
=auto-host.h
11462 # We create a subdir, then run autoconf in the subdir.
11463 # To prevent recursion we set host and build for the new
11464 # invocation of configure to the build for this invocation
11471 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11472 *) realsrcdir
=..
/${srcdir};;
11474 saved_CFLAGS
="${CFLAGS}"
11475 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11476 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11477 ${realsrcdir}/configure \
11478 --enable-languages=${enable_languages-all} \
11479 --target=$target_alias --host=$build_alias --build=$build_alias
11480 CFLAGS
="${saved_CFLAGS}"
11482 # We just finished tests for the build machine, so rename
11483 # the file auto-build.h in the gcc directory.
11484 mv auto-host.h ..
/auto-build.h
11487 build_auto
=auto-build.h
11491 tm_file
="${tm_file} defaults.h"
11492 tm_p_file
="${tm_p_file} tm-preds.h"
11493 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11494 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11495 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11496 # put this back in temporarily.
11497 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11503 # Compile in configure arguments.
11504 if test -f configargs.h
; then
11505 # Being re-configured.
11506 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11507 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11509 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11512 # Double all backslashes and backslash all quotes to turn
11513 # gcc_config_arguments into a C string.
11514 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11515 $gcc_config_arguments
11517 gcc_config_arguments_str
=`cat conftest.out`
11520 cat > configargs.h
<<EOF
11521 /* Generated automatically. */
11522 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11523 static const char thread_model[] = "$thread_file";
11525 static const struct {
11526 const char *name, *value;
11527 } configure_default_options[] = $configure_default_options;
11530 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11531 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11532 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11533 if test -f $srcdir/REVISION
; then
11534 gcc_REVISION
=`cat $srcdir/REVISION`
11538 cat > plugin-version.h
<<EOF
11539 #include "configargs.h"
11541 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11542 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11543 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11544 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11546 static char basever[] = "$gcc_BASEVER";
11547 static char datestamp[] = "$gcc_DATESTAMP";
11548 static char devphase[] = "$gcc_DEVPHASE";
11549 static char revision[] = "$gcc_REVISION";
11551 /* FIXME plugins: We should make the version information more precise.
11552 One way to do is to add a checksum. */
11554 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11555 devphase, revision,
11556 configuration_arguments};
11559 # Internationalization
11560 # If we haven't got the data from the intl directory,
11561 # assume NLS is disabled.
11570 if test -f ..
/intl
/config.intl
; then
11571 . ..
/intl
/config.intl
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11574 $as_echo_n "checking whether NLS is requested... " >&6; }
11575 if test x
"$USE_NLS" != xyes
; then
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11577 $as_echo "no" >&6; }
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11580 $as_echo "yes" >&6; }
11582 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11586 $as_echo_n "checking for catalogs to be installed... " >&6; }
11587 # Look for .po and .gmo files in the source directory.
11590 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11591 # If there aren't any .gmo files the shell will give us the
11592 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11594 case "$cat" in *\
**)
11597 # The quadruple backslash is collapsed to a double backslash
11598 # by the backticks, then collapsed again by the double quotes,
11599 # leaving us with one backslash in the sed expression (right
11600 # before the dot that mustn't act as a wildcard).
11601 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11602 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11603 # The user is allowed to set LINGUAS to a list of languages to
11604 # install catalogs for. If it's empty that means "all of them."
11605 if test "x$LINGUAS" = x
; then
11606 CATALOGS
="$CATALOGS $cat"
11607 XLINGUAS
="$XLINGUAS $lang"
11609 case "$LINGUAS" in *$lang*)
11610 CATALOGS
="$CATALOGS $cat"
11611 XLINGUAS
="$XLINGUAS $lang"
11616 LINGUAS
="$XLINGUAS"
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11618 $as_echo "$LINGUAS" >&6; }
11631 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11632 # -liconv on the link line twice.
11633 case "$LIBINTL" in *$LIBICONV*)
11637 # Check whether --enable-secureplt was given.
11638 if test "${enable_secureplt+set}" = set; then :
11639 enableval
=$enable_secureplt;
11643 # Check whether --enable-leading-mingw64-underscores was given.
11644 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11645 enableval
=$enable_leading_mingw64_underscores;
11648 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11650 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11654 # Check whether --enable-cld was given.
11655 if test "${enable_cld+set}" = set; then :
11656 enableval
=$enable_cld;
11662 # Check whether --enable-frame-pointer was given.
11663 if test "${enable_frame_pointer+set}" = set; then :
11664 enableval
=$enable_frame_pointer;
11668 linux
* | darwin
[8912]*)
11669 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11671 enable_frame_pointer
=no
11674 enable_frame_pointer
=yes
11681 # Windows32 Registry support for specifying GCC installation paths.
11682 # Check whether --enable-win32-registry was given.
11683 if test "${enable_win32_registry+set}" = set; then :
11684 enableval
=$enable_win32_registry;
11689 win32 | pe | cygwin
* | mingw32
* | uwin
*)
11690 if test "x$enable_win32_registry" != xno
; then
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11692 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11693 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11694 $as_echo_n "(cached) " >&6
11696 ac_func_search_save_LIBS
=$LIBS
11697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11698 /* end confdefs.h. */
11700 /* Override any GCC internal prototype to avoid an error.
11701 Use char because int might match the return type of a GCC
11702 builtin and then its argument prototype would still apply. */
11706 char RegOpenKeyExA ();
11710 return RegOpenKeyExA ();
11715 for ac_lib
in '' advapi32
; do
11716 if test -z "$ac_lib"; then
11717 ac_res
="none required"
11720 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11722 if ac_fn_c_try_link
"$LINENO"; then :
11723 ac_cv_search_RegOpenKeyExA
=$ac_res
11725 rm -f core conftest.err conftest.
$ac_objext \
11727 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11731 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11734 ac_cv_search_RegOpenKeyExA
=no
11736 rm conftest.
$ac_ext
11737 LIBS
=$ac_func_search_save_LIBS
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11740 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11741 ac_res
=$ac_cv_search_RegOpenKeyExA
11742 if test "$ac_res" != no
; then :
11743 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11746 enable_win32_registry
=no
11751 if test "x$enable_win32_registry" != xno
; then
11753 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11756 if test "x$enable_win32_registry" != xyes \
11757 && test "x$enable_win32_registry" != x
; then
11759 cat >>confdefs.h
<<_ACEOF
11760 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11768 # Get an absolute path to the GCC top-level source directory
11769 holddir
=`${PWDCMD-pwd}`
11771 topdir
=`${PWDCMD-pwd}`
11774 # Conditionalize the makefile for this host machine.
11776 for f
in ${host_xmake_file}
11778 if test -f ${srcdir}/config
/$f
11780 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
11784 # Conditionalize the makefile for this target machine.
11786 for f
in ${tmake_file}
11788 if test -f ${srcdir}/config
/$f
11790 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
11793 tmake_file
="${tmake_file_}"
11795 out_object_file
=`basename $out_file .c`.o
11796 common_out_object_file
=`basename $common_out_file .c`.o
11798 tm_file_list
="options.h"
11799 tm_include_list
="options.h insn-constants.h"
11800 for f
in $tm_file; do
11803 f
=`echo $f | sed 's/^..//'`
11804 tm_file_list
="${tm_file_list} $f"
11805 tm_include_list
="${tm_include_list} $f"
11808 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
11809 tm_include_list
="${tm_include_list} $f"
11812 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
11813 tm_include_list
="${tm_include_list} config/$f"
11820 for f
in $tm_p_file; do
11823 tm_p_file_list
="${tm_p_file_list} $f"
11824 tm_p_include_list
="${tm_p_include_list} $f"
11827 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
11828 tm_p_include_list
="${tm_p_include_list} config/$f"
11834 for f
in $xm_file; do
11837 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
11838 xm_include_list
="${xm_include_list} $f"
11841 xm_file_list
="${xm_file_list} $f"
11842 xm_include_list
="${xm_include_list} $f"
11845 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
11846 xm_include_list
="${xm_include_list} config/$f"
11852 host_xm_include_list
=
11853 for f
in $host_xm_file; do
11856 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
11857 host_xm_include_list
="${host_xm_include_list} $f"
11860 host_xm_file_list
="${host_xm_file_list} $f"
11861 host_xm_include_list
="${host_xm_include_list} $f"
11864 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
11865 host_xm_include_list
="${host_xm_include_list} config/$f"
11870 build_xm_file_list
=
11871 for f
in $build_xm_file; do
11874 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
11875 build_xm_include_list
="${build_xm_include_list} $f"
11877 auto-build.h | auto-host.h
)
11878 build_xm_file_list
="${build_xm_file_list} $f"
11879 build_xm_include_list
="${build_xm_include_list} $f"
11882 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
11883 build_xm_include_list
="${build_xm_include_list} config/$f"
11888 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11889 # cross-compiler which does not use the native headers and libraries.
11890 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11893 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11895 if test "x$with_build_sysroot" != x
; then
11896 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11898 # This value is used, even on a native system, because
11899 # CROSS_SYSTEM_HEADER_DIR is just
11900 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11901 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
11904 if test x
$host != x
$target
11906 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
11908 SYSTEM_HEADER_DIR
=$build_system_header_dir
11909 case "$host","$target" in
11910 # Darwin crosses can use the host system's libraries and headers,
11911 # because of the fat library support. Of course, it must be the
11912 # same version of Darwin on both sides. Allow the user to
11913 # just say --target=foo-darwin without a version number to mean
11914 # "the version on this system".
11915 *-*-darwin*,*-*-darwin*)
11916 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
11917 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
11918 if test $hostos = $targetos -o $targetos = darwin
; then
11920 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11925 i?
86-*-*,x86_64-
*-* \
11926 | powerpc
*-*-*,powerpc64
*-*-*)
11927 CROSS
="$CROSS -DNATIVE_CROSS" ;;
11932 if test "x$with_headers" = x
; then
11939 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
11940 SYSTEM_HEADER_DIR
=$build_system_header_dir
11943 # If this is a cross-compiler that does not
11944 # have its own set of headers then define
11947 # If this is using newlib, without having the headers available now,
11948 # then define inhibit_libc in LIBGCC2_CFLAGS.
11949 # This prevents libgcc2 from containing any code which requires libc
11951 : ${inhibit_libc=false}
11952 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
11953 test x
$with_newlib = xyes
; } &&
11954 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
11959 # When building gcc with a cross-compiler, we need to adjust things so
11960 # that the generator programs are still built with the native compiler.
11961 # Also, we cannot run fixincludes.
11963 # These are the normal (build=host) settings:
11964 CC_FOR_BUILD
='$(CC)'
11965 BUILD_CFLAGS
='$(ALL_CFLAGS)'
11966 BUILD_LDFLAGS
='$(LDFLAGS)'
11967 STMP_FIXINC
=stmp-fixinc
11969 # And these apply if build != host, or we are generating coverage data
11970 if test x
$build != x
$host ||
test "x$coverage_flags" != x
11972 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11973 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
11976 # Expand extra_headers to include complete path.
11977 # This substitutes for lots of t-* files.
11978 extra_headers_list
=
11979 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11980 for file in ${extra_headers} ; do
11981 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11984 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11985 if test x
"$use_gcc_tgmath" = xyes
11986 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11989 # Define collect2 in Makefile.
11990 case $host_can_use_collect2 in
11992 *) collect2
='collect2$(exeext)' ;;
11996 # Add a definition of USE_COLLECT2 if system wants one.
11997 case $use_collect2 in
11998 no
) use_collect2
= ;;
12001 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12002 xm_defines
="${xm_defines} USE_COLLECT2"
12003 case $host_can_use_collect2 in
12005 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
12012 cat >>confdefs.h
<<_ACEOF
12013 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12017 # ---------------------------
12018 # Assembler & linker features
12019 # ---------------------------
12021 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12022 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12023 # However when ld-new is first executed from the build tree, libtool will
12024 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12025 # to the build tree. While doing this we need to use the previous-stage
12026 # linker, or we have an infinite loop. The presence of a shell script as
12027 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12028 # the gcc/collect-ld script. So we need to know how libtool works, or
12029 # exec-tool will fail.
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12035 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12040 macro_version
='2.2.7a'
12041 macro_revision
='1.3134'
12055 ltmain
="$ac_aux_dir/ltmain.sh"
12057 # Backslashify metacharacters that are still active within
12058 # double-quoted strings.
12059 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
12061 # Same as above, but do not quote variable references.
12062 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
12064 # Sed substitution to delay expansion of an escaped shell variable in a
12065 # double_quote_subst'ed string.
12066 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
12068 # Sed substitution to delay expansion of an escaped single quote.
12069 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
12071 # Sed substitution to avoid accidental globbing in evaled expressions
12072 no_glob_subst
='s/\*/\\\*/g'
12074 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12075 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12076 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12079 $as_echo_n "checking how to print strings... " >&6; }
12080 # Test print first, because it will be a builtin if present.
12081 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12082 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12084 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12087 # Use this function as a fallback that always works.
12088 func_fallback_echo ()
12090 eval 'cat <<_LTECHO_EOF
12094 ECHO='func_fallback_echo
'
12097 # func_echo_all arg...
12098 # Invoke $ECHO with all args, space-separated.
12105 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12106 $as_echo "printf" >&6; } ;;
12107 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12108 $as_echo "print -r" >&6; } ;;
12109 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12110 $as_echo "cat" >&6; } ;;
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12127 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12128 if test "${ac_cv_path_SED+set}" = set; then :
12129 $as_echo_n "(cached) " >&6
12131 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12132 for ac_i in 1 2 3 4 5 6 7; do
12133 ac_script="$ac_script$as_nl$ac_script"
12135 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12136 { ac_script=; unset ac_script;}
12137 if test -z "$SED"; then
12138 ac_path_SED_found=false
12139 # Loop through the user's path and
test for each of PROGNAME-LIST
12140 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12141 for as_dir
in $PATH
12144 test -z "$as_dir" && as_dir
=.
12145 for ac_prog
in sed gsed
; do
12146 for ac_exec_ext
in '' $ac_executable_extensions; do
12147 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12148 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
12149 # Check for GNU ac_path_SED and select it if it is found.
12150 # Check for GNU $ac_path_SED
12151 case `"$ac_path_SED" --version 2>&1` in
12153 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12156 $as_echo_n 0123456789 >"conftest.in"
12159 cat "conftest.in" "conftest.in" >"conftest.tmp"
12160 mv "conftest.tmp" "conftest.in"
12161 cp "conftest.in" "conftest.nl"
12162 $as_echo '' >> "conftest.nl"
12163 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12164 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12165 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12166 if test $ac_count -gt ${ac_path_SED_max-0}; then
12167 # Best one so far, save it but keep looking for a better one
12168 ac_cv_path_SED
="$ac_path_SED"
12169 ac_path_SED_max
=$ac_count
12171 # 10*(2^10) chars as input seems more than enough
12172 test $ac_count -gt 10 && break
12174 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12177 $ac_path_SED_found && break 3
12182 if test -z "$ac_cv_path_SED"; then
12183 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12186 ac_cv_path_SED
=$SED
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12191 $as_echo "$ac_cv_path_SED" >&6; }
12192 SED
="$ac_cv_path_SED"
12195 test -z "$SED" && SED
=sed
12196 Xsed
="$SED -e 1s/^X//"
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12209 $as_echo_n "checking for fgrep... " >&6; }
12210 if test "${ac_cv_path_FGREP+set}" = set; then :
12211 $as_echo_n "(cached) " >&6
12213 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12214 then ac_cv_path_FGREP
="$GREP -F"
12216 if test -z "$FGREP"; then
12217 ac_path_FGREP_found
=false
12218 # Loop through the user's path and test for each of PROGNAME-LIST
12219 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12220 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12223 test -z "$as_dir" && as_dir
=.
12224 for ac_prog
in fgrep
; do
12225 for ac_exec_ext
in '' $ac_executable_extensions; do
12226 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12227 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
12228 # Check for GNU ac_path_FGREP and select it if it is found.
12229 # Check for GNU $ac_path_FGREP
12230 case `"$ac_path_FGREP" --version 2>&1` in
12232 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12235 $as_echo_n 0123456789 >"conftest.in"
12238 cat "conftest.in" "conftest.in" >"conftest.tmp"
12239 mv "conftest.tmp" "conftest.in"
12240 cp "conftest.in" "conftest.nl"
12241 $as_echo 'FGREP' >> "conftest.nl"
12242 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12243 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12244 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12245 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12246 # Best one so far, save it but keep looking for a better one
12247 ac_cv_path_FGREP
="$ac_path_FGREP"
12248 ac_path_FGREP_max
=$ac_count
12250 # 10*(2^10) chars as input seems more than enough
12251 test $ac_count -gt 10 && break
12253 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12256 $ac_path_FGREP_found && break 3
12261 if test -z "$ac_cv_path_FGREP"; then
12262 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12265 ac_cv_path_FGREP
=$FGREP
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12271 $as_echo "$ac_cv_path_FGREP" >&6; }
12272 FGREP
="$ac_cv_path_FGREP"
12275 test -z "$GREP" && GREP
=grep
12295 # Check whether --with-gnu-ld was given.
12296 if test "${with_gnu_ld+set}" = set; then :
12297 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12303 if test "$GCC" = yes; then
12304 # Check if gcc -print-prog-name=ld gives a path.
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12306 $as_echo_n "checking for ld used by $CC... " >&6; }
12309 # gcc leaves a trailing carriage return which upsets mingw
12310 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12312 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12315 # Accept absolute paths.
12317 re_direlt
='/[^/][^/]*/\.\./'
12318 # Canonicalize the pathname of ld
12319 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12320 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12321 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12323 test -z "$LD" && LD
="$ac_prog"
12326 # If it fails, then pretend we aren't using GCC.
12330 # If it is relative, then search for the first ld in PATH.
12331 with_gnu_ld
=unknown
12334 elif test "$with_gnu_ld" = yes; then
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12336 $as_echo_n "checking for GNU ld... " >&6; }
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12339 $as_echo_n "checking for non-GNU ld... " >&6; }
12341 if test "${lt_cv_path_LD+set}" = set; then :
12342 $as_echo_n "(cached) " >&6
12344 if test -z "$LD"; then
12345 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12346 for ac_dir
in $PATH; do
12348 test -z "$ac_dir" && ac_dir
=.
12349 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12350 lt_cv_path_LD
="$ac_dir/$ac_prog"
12351 # Check to see if the program is GNU ld. I'd rather use --version,
12352 # but apparently some variants of GNU ld only accept -v.
12353 # Break only if it was the GNU/non-GNU ld that we prefer.
12354 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12355 *GNU
* |
*'with BFD'*)
12356 test "$with_gnu_ld" != no
&& break
12359 test "$with_gnu_ld" != yes && break
12366 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12370 LD
="$lt_cv_path_LD"
12371 if test -n "$LD"; then
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12373 $as_echo "$LD" >&6; }
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12376 $as_echo "no" >&6; }
12378 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12380 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12381 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12382 $as_echo_n "(cached) " >&6
12384 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12385 case `$LD -v 2>&1 </dev/null` in
12386 *GNU
* |
*'with BFD'*)
12387 lt_cv_prog_gnu_ld
=yes
12390 lt_cv_prog_gnu_ld
=no
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12395 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12396 with_gnu_ld
=$lt_cv_prog_gnu_ld
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12407 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12408 if test "${lt_cv_path_NM+set}" = set; then :
12409 $as_echo_n "(cached) " >&6
12411 if test -n "$NM"; then
12412 # Let the user override the test.
12413 lt_cv_path_NM
="$NM"
12415 lt_nm_to_check
="${ac_tool_prefix}nm"
12416 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12417 lt_nm_to_check
="$lt_nm_to_check nm"
12419 for lt_tmp_nm
in $lt_nm_to_check; do
12420 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12421 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12423 test -z "$ac_dir" && ac_dir
=.
12424 tmp_nm
="$ac_dir/$lt_tmp_nm"
12425 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12426 # Check to see if the nm accepts a BSD-compat flag.
12427 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12428 # nm: unknown option "B" ignored
12429 # Tru64's nm complains that /dev/null is an invalid object file
12430 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12431 */dev
/null
* |
*'Invalid file or object type'*)
12432 lt_cv_path_NM
="$tmp_nm -B"
12436 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12438 lt_cv_path_NM
="$tmp_nm -p"
12442 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12443 continue # so that we can try to find one that supports BSD flags
12452 : ${lt_cv_path_NM=no}
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12456 $as_echo "$lt_cv_path_NM" >&6; }
12457 if test "$lt_cv_path_NM" != "no"; then
12458 NM
="$lt_cv_path_NM"
12460 # Didn't find any BSD compatible name lister, look for dumpbin.
12461 if test -n "$DUMPBIN"; then :
12462 # Let the user override the test.
12464 if test -n "$ac_tool_prefix"; then
12465 for ac_prog
in dumpbin
"link -dump"
12467 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12468 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12470 $as_echo_n "checking for $ac_word... " >&6; }
12471 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12472 $as_echo_n "(cached) " >&6
12474 if test -n "$DUMPBIN"; then
12475 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12477 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12478 for as_dir
in $PATH
12481 test -z "$as_dir" && as_dir
=.
12482 for ac_exec_ext
in '' $ac_executable_extensions; do
12483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12484 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12494 DUMPBIN
=$ac_cv_prog_DUMPBIN
12495 if test -n "$DUMPBIN"; then
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12497 $as_echo "$DUMPBIN" >&6; }
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12500 $as_echo "no" >&6; }
12504 test -n "$DUMPBIN" && break
12507 if test -z "$DUMPBIN"; then
12508 ac_ct_DUMPBIN
=$DUMPBIN
12509 for ac_prog
in dumpbin
"link -dump"
12511 # Extract the first word of "$ac_prog", so it can be a program name with args.
12512 set dummy
$ac_prog; ac_word
=$2
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12514 $as_echo_n "checking for $ac_word... " >&6; }
12515 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12516 $as_echo_n "(cached) " >&6
12518 if test -n "$ac_ct_DUMPBIN"; then
12519 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12521 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12522 for as_dir
in $PATH
12525 test -z "$as_dir" && as_dir
=.
12526 for ac_exec_ext
in '' $ac_executable_extensions; do
12527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12528 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12538 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12539 if test -n "$ac_ct_DUMPBIN"; then
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12541 $as_echo "$ac_ct_DUMPBIN" >&6; }
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12544 $as_echo "no" >&6; }
12548 test -n "$ac_ct_DUMPBIN" && break
12551 if test "x$ac_ct_DUMPBIN" = x
; then
12554 case $cross_compiling:$ac_tool_warned in
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12558 ac_tool_warned
=yes ;;
12560 DUMPBIN
=$ac_ct_DUMPBIN
12564 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12566 DUMPBIN
="$DUMPBIN -symbols"
12574 if test "$DUMPBIN" != ":"; then
12578 test -z "$NM" && NM
=nm
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12586 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12587 if test "${lt_cv_nm_interface+set}" = set; then :
12588 $as_echo_n "(cached) " >&6
12590 lt_cv_nm_interface
="BSD nm"
12591 echo "int some_variable = 0;" > conftest.
$ac_ext
12592 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12593 (eval "$ac_compile" 2>conftest.err
)
12594 cat conftest.err
>&5
12595 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12596 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12597 cat conftest.err
>&5
12598 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12599 cat conftest.out
>&5
12600 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12601 lt_cv_nm_interface
="MS dumpbin"
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12606 $as_echo "$lt_cv_nm_interface" >&6; }
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12609 $as_echo_n "checking whether ln -s works... " >&6; }
12611 if test "$LN_S" = "ln -s"; then
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12613 $as_echo "yes" >&6; }
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12616 $as_echo "no, using $LN_S" >&6; }
12619 # find the maximum length of command line arguments
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12621 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12622 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12623 $as_echo_n "(cached) " >&6
12630 # On DJGPP, this test can blow up pretty badly due to problems in libc
12631 # (any single argument exceeding 2000 bytes causes a buffer overrun
12632 # during glob expansion). Even if it were fixed, the result of this
12633 # check would be larger than it should be.
12634 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12638 # Under GNU Hurd, this test is not required because there is
12639 # no limit to the length of command line arguments.
12640 # Libtool will interpret -1 as no limit whatsoever
12641 lt_cv_sys_max_cmd_len
=-1;
12644 cygwin
* | mingw
* | cegcc
*)
12645 # On Win9x/ME, this test blows up -- it succeeds, but takes
12646 # about 5 minutes as the teststring grows exponentially.
12647 # Worse, since 9x/ME are not pre-emptively multitasking,
12648 # you end up with a "frozen" computer, even though with patience
12649 # the test eventually succeeds (with a max line length of 256k).
12650 # Instead, let's just punt: use the minimum linelength reported by
12651 # all of the supported platforms: 8192 (on NT/2K/XP).
12652 lt_cv_sys_max_cmd_len
=8192;
12656 # On MiNT this can take a long time and run out of memory.
12657 lt_cv_sys_max_cmd_len
=8192;
12661 # On AmigaOS with pdksh, this test takes hours, literally.
12662 # So we just punt and use a minimum line length of 8192.
12663 lt_cv_sys_max_cmd_len
=8192;
12666 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12667 # This has been around since 386BSD, at least. Likely further.
12668 if test -x /sbin
/sysctl
; then
12669 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12670 elif test -x /usr
/sbin
/sysctl
; then
12671 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
12673 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
12675 # And add a safety zone
12676 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12677 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12681 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12682 lt_cv_sys_max_cmd_len
=196608
12686 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12687 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12688 # nice to cause kernel panics so lets avoid the loop below.
12689 # First set a reasonable default.
12690 lt_cv_sys_max_cmd_len
=16384
12692 if test -x /sbin
/sysconfig
; then
12693 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12694 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
12699 lt_cv_sys_max_cmd_len
=102400
12701 sysv5
* | sco5v6
* | sysv4.2uw2
*)
12702 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12703 if test -n "$kargmax"; then
12704 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
12706 lt_cv_sys_max_cmd_len
=32768
12710 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
12711 if test -n "$lt_cv_sys_max_cmd_len"; then
12712 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12713 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12715 # Make teststring a little bigger before we do anything with it.
12716 # a 1K string should be a reasonable start.
12717 for i
in 1 2 3 4 5 6 7 8 ; do
12718 teststring
=$teststring$teststring
12720 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
12721 # If test is not a shell built-in, we'll probably end up computing a
12722 # maximum length that is only half of the actual maximum length, but
12724 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12725 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
12726 test $i != 17 # 1/2 MB should be enough
12729 teststring
=$teststring$teststring
12731 # Only check the string length outside the loop.
12732 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
12734 # Add a significant safety factor because C++ compilers can tack on
12735 # massive amounts of additional arguments before passing them to the
12736 # linker. It appears as though 1/2 is a usable value.
12737 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
12744 if test -n $lt_cv_sys_max_cmd_len ; then
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12746 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12749 $as_echo "none" >&6; }
12751 max_cmd_len
=$lt_cv_sys_max_cmd_len
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12763 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12764 # Try some XSI features
12766 ( _lt_dummy
="a/b/c"
12767 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12769 && eval 'test $(( 1 + 1 )) -eq 2 \
12770 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
12773 $as_echo "$xsi_shell" >&6; }
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
12777 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
12779 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
12781 && lt_shell_append=yes
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
12783 $as_echo "$lt_shell_append" >&6; }
12786 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12796 # test EBCDIC or ASCII
12797 case `echo X|tr X '\101'` in
12798 A) # ASCII based system
12799 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12800 lt_SP2NL='tr \040 \012'
12801 lt_NL2SP='tr \015\012 \040\040'
12803 *) # EBCDIC based system
12804 lt_SP2NL='tr \100 \n'
12805 lt_NL2SP='tr \r\n \100\100'
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
12818 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
12819 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12820 $as_echo_n "(cached
) " >&6
12822 lt_cv_ld_reload_flag='-r'
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
12825 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12826 reload_flag=$lt_cv_ld_reload_flag
12827 case $reload_flag in
12829 *) reload_flag=" $reload_flag" ;;
12831 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12834 if test "$GCC" = yes; then
12835 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12837 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12850 if test -n "$ac_tool_prefix"; then
12851 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
12852 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12854 $as_echo_n "checking
for $ac_word...
" >&6; }
12855 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12856 $as_echo_n "(cached
) " >&6
12858 if test -n "$OBJDUMP"; then
12859 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12862 for as_dir in $PATH
12865 test -z "$as_dir" && as_dir=.
12866 for ac_exec_ext in '' $ac_executable_extensions; do
12867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12868 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
12869 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12878 OBJDUMP=$ac_cv_prog_OBJDUMP
12879 if test -n "$OBJDUMP"; then
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12881 $as_echo "$OBJDUMP" >&6; }
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12884 $as_echo "no
" >&6; }
12889 if test -z "$ac_cv_prog_OBJDUMP"; then
12890 ac_ct_OBJDUMP=$OBJDUMP
12891 # Extract the first word of "objdump
", so it can be a program name with args.
12892 set dummy objdump; ac_word=$2
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12894 $as_echo_n "checking
for $ac_word...
" >&6; }
12895 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12896 $as_echo_n "(cached
) " >&6
12898 if test -n "$ac_ct_OBJDUMP"; then
12899 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12902 for as_dir in $PATH
12905 test -z "$as_dir" && as_dir=.
12906 for ac_exec_ext in '' $ac_executable_extensions; do
12907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12908 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
12909 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12918 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12919 if test -n "$ac_ct_OBJDUMP"; then
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
12921 $as_echo "$ac_ct_OBJDUMP" >&6; }
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12924 $as_echo "no
" >&6; }
12927 if test "x
$ac_ct_OBJDUMP" = x; then
12930 case $cross_compiling:$ac_tool_warned in
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12933 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12934 ac_tool_warned=yes ;;
12936 OBJDUMP=$ac_ct_OBJDUMP
12939 OBJDUMP="$ac_cv_prog_OBJDUMP"
12942 test -z "$OBJDUMP" && OBJDUMP=objdump
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
12953 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
12954 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12955 $as_echo_n "(cached
) " >&6
12957 lt_cv_file_magic_cmd='$MAGIC_CMD'
12958 lt_cv_file_magic_test_file=
12959 lt_cv_deplibs_check_method='unknown'
12960 # Need to set the preceding variable on all platforms that support
12961 # interlibrary dependencies.
12962 # 'none' -- dependencies not supported.
12963 # `unknown' -- same as none, but documents that we really don't know.
12964 # 'pass_all' -- all dependencies passed with no checks.
12965 # 'test_compile' -- check by making test program.
12966 # 'file_magic [[regex]]' -- check by looking for files in library path
12967 # which responds to the $file_magic_cmd with a given extended regex.
12968 # If you have `file' or equivalent on your system and you're not sure
12969 # whether `pass_all' will *always* work, you probably want this one.
12973 lt_cv_deplibs_check_method=pass_all
12977 lt_cv_deplibs_check_method=pass_all
12981 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12982 lt_cv_file_magic_cmd='/usr/bin/file -L'
12983 lt_cv_file_magic_test_file=/shlib/libc.so
12987 # func_win32_libid is a shell function defined in ltmain.sh
12988 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12989 lt_cv_file_magic_cmd='func_win32_libid'
12993 # Base MSYS/MinGW do not provide the 'file' command needed by
12994 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12995 # unless we find 'file', for example because we are cross-compiling.
12996 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12997 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
12998 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12999 lt_cv_file_magic_cmd='func_win32_libid'
13001 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13002 lt_cv_file_magic_cmd='$OBJDUMP -f'
13007 # use the weaker test based on 'objdump'. See mingw*.
13008 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13009 lt_cv_file_magic_cmd='$OBJDUMP -f'
13012 darwin* | rhapsody*)
13013 lt_cv_deplibs_check_method=pass_all
13016 freebsd* | dragonfly*)
13017 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13020 # Not sure whether the presence of OpenBSD here was a mistake.
13021 # Let's accept both of them until this is cleared up.
13022 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13023 lt_cv_file_magic_cmd=/usr/bin/file
13024 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13028 lt_cv_deplibs_check_method=pass_all
13033 lt_cv_deplibs_check_method=pass_all
13037 lt_cv_deplibs_check_method=pass_all
13040 hpux10.20* | hpux11*)
13041 lt_cv_file_magic_cmd=/usr/bin/file
13044 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13045 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13048 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]'
13049 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13052 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13053 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13059 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13060 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13063 irix5* | irix6* | nonstopux*)
13065 *-32|*"-32 ") libmagic=32-bit;;
13066 *-n32|*"-n32 ") libmagic=N32;;
13067 *-64|*"-64 ") libmagic=64-bit;;
13068 *) libmagic=never-match;;
13070 lt_cv_deplibs_check_method=pass_all
13073 # This must be Linux ELF.
13074 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13075 lt_cv_deplibs_check_method=pass_all
13079 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13080 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13082 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13087 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13088 lt_cv_file_magic_cmd=/usr/bin/file
13089 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13093 lt_cv_deplibs_check_method=pass_all
13097 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
13098 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13100 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13104 osf3* | osf4* | osf5*)
13105 lt_cv_deplibs_check_method=pass_all
13109 lt_cv_deplibs_check_method=pass_all
13113 lt_cv_deplibs_check_method=pass_all
13116 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13117 lt_cv_deplibs_check_method=pass_all
13121 case $host_vendor in
13123 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]'
13124 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13127 lt_cv_deplibs_check_method=pass_all
13130 lt_cv_file_magic_cmd='/bin/file'
13131 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13134 lt_cv_file_magic_cmd='/bin/file'
13135 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
13136 lt_cv_file_magic_test_file=/lib/libc.so
13139 lt_cv_deplibs_check_method=pass_all
13142 lt_cv_deplibs_check_method=pass_all
13148 lt_cv_deplibs_check_method=pass_all
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
13154 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13155 file_magic_cmd=$lt_cv_file_magic_cmd
13156 deplibs_check_method=$lt_cv_deplibs_check_method
13157 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13170 if test -n "$ac_tool_prefix"; then
13171 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13172 set dummy ${ac_tool_prefix}ar; ac_word=$2
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13174 $as_echo_n "checking
for $ac_word...
" >&6; }
13175 if test "${ac_cv_prog_AR+set}" = set; then :
13176 $as_echo_n "(cached
) " >&6
13178 if test -n "$AR"; then
13179 ac_cv_prog_AR="$AR" # Let the user override the test.
13181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13182 for as_dir in $PATH
13185 test -z "$as_dir" && as_dir=.
13186 for ac_exec_ext in '' $ac_executable_extensions; do
13187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13188 ac_cv_prog_AR="${ac_tool_prefix}ar"
13189 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13199 if test -n "$AR"; then
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13201 $as_echo "$AR" >&6; }
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13204 $as_echo "no
" >&6; }
13209 if test -z "$ac_cv_prog_AR"; then
13211 # Extract the first word of "ar", so it can be a program name with args.
13212 set dummy ar; ac_word=$2
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13214 $as_echo_n "checking
for $ac_word...
" >&6; }
13215 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13216 $as_echo_n "(cached
) " >&6
13218 if test -n "$ac_ct_AR"; then
13219 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13222 for as_dir in $PATH
13225 test -z "$as_dir" && as_dir=.
13226 for ac_exec_ext in '' $ac_executable_extensions; do
13227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13228 ac_cv_prog_ac_ct_AR="ar"
13229 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13238 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13239 if test -n "$ac_ct_AR"; then
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13241 $as_echo "$ac_ct_AR" >&6; }
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13244 $as_echo "no
" >&6; }
13247 if test "x
$ac_ct_AR" = x; then
13250 case $cross_compiling:$ac_tool_warned in
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13253 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13254 ac_tool_warned=yes ;;
13259 AR="$ac_cv_prog_AR"
13262 test -z "$AR" && AR=ar
13263 test -z "$AR_FLAGS" && AR_FLAGS=cru
13275 if test -n "$ac_tool_prefix"; then
13276 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13277 set dummy ${ac_tool_prefix}strip; ac_word=$2
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13279 $as_echo_n "checking
for $ac_word...
" >&6; }
13280 if test "${ac_cv_prog_STRIP+set}" = set; then :
13281 $as_echo_n "(cached
) " >&6
13283 if test -n "$STRIP"; then
13284 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13287 for as_dir in $PATH
13290 test -z "$as_dir" && as_dir=.
13291 for ac_exec_ext in '' $ac_executable_extensions; do
13292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13293 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13294 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13303 STRIP=$ac_cv_prog_STRIP
13304 if test -n "$STRIP"; then
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13306 $as_echo "$STRIP" >&6; }
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13309 $as_echo "no
" >&6; }
13314 if test -z "$ac_cv_prog_STRIP"; then
13316 # Extract the first word of "strip
", so it can be a program name with args.
13317 set dummy strip; ac_word=$2
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13319 $as_echo_n "checking
for $ac_word...
" >&6; }
13320 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13321 $as_echo_n "(cached
) " >&6
13323 if test -n "$ac_ct_STRIP"; then
13324 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13327 for as_dir in $PATH
13330 test -z "$as_dir" && as_dir=.
13331 for ac_exec_ext in '' $ac_executable_extensions; do
13332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13333 ac_cv_prog_ac_ct_STRIP="strip
"
13334 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13343 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13344 if test -n "$ac_ct_STRIP"; then
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13346 $as_echo "$ac_ct_STRIP" >&6; }
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13349 $as_echo "no
" >&6; }
13352 if test "x
$ac_ct_STRIP" = x; then
13355 case $cross_compiling:$ac_tool_warned in
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13358 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13359 ac_tool_warned=yes ;;
13364 STRIP="$ac_cv_prog_STRIP"
13367 test -z "$STRIP" && STRIP=:
13374 if test -n "$ac_tool_prefix"; then
13375 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13376 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13378 $as_echo_n "checking
for $ac_word...
" >&6; }
13379 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13380 $as_echo_n "(cached
) " >&6
13382 if test -n "$RANLIB"; then
13383 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13386 for as_dir in $PATH
13389 test -z "$as_dir" && as_dir=.
13390 for ac_exec_ext in '' $ac_executable_extensions; do
13391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13392 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13393 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13402 RANLIB=$ac_cv_prog_RANLIB
13403 if test -n "$RANLIB"; then
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13405 $as_echo "$RANLIB" >&6; }
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13408 $as_echo "no
" >&6; }
13413 if test -z "$ac_cv_prog_RANLIB"; then
13414 ac_ct_RANLIB=$RANLIB
13415 # Extract the first word of "ranlib
", so it can be a program name with args.
13416 set dummy ranlib; ac_word=$2
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13418 $as_echo_n "checking
for $ac_word...
" >&6; }
13419 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13420 $as_echo_n "(cached
) " >&6
13422 if test -n "$ac_ct_RANLIB"; then
13423 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13426 for as_dir in $PATH
13429 test -z "$as_dir" && as_dir=.
13430 for ac_exec_ext in '' $ac_executable_extensions; do
13431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13432 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13433 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13442 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13443 if test -n "$ac_ct_RANLIB"; then
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13445 $as_echo "$ac_ct_RANLIB" >&6; }
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13448 $as_echo "no
" >&6; }
13451 if test "x
$ac_ct_RANLIB" = x; then
13454 case $cross_compiling:$ac_tool_warned in
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13457 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13458 ac_tool_warned=yes ;;
13460 RANLIB=$ac_ct_RANLIB
13463 RANLIB="$ac_cv_prog_RANLIB"
13466 test -z "$RANLIB" && RANLIB=:
13473 # Determine commands to create old-style static archives.
13474 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13475 old_postinstall_cmds='chmod 644 $oldlib'
13476 old_postuninstall_cmds=
13478 if test -n "$RANLIB"; then
13481 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13484 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13487 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13492 lock_old_archive_extraction=yes ;;
13494 lock_old_archive_extraction=no ;;
13535 # If no C compiler was specified, use CC.
13538 # If no C compiler flags were specified, use CFLAGS.
13539 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13541 # Allow CC to be a program name with arguments.
13545 # Check for command to grab the raw symbol name followed by C symbol from nm.
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13547 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13548 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13549 $as_echo_n "(cached
) " >&6
13552 # These are sane defaults that work on at least a few old systems.
13553 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13555 # Character class describing NM global symbol codes.
13556 symcode='[BCDEGRST]'
13558 # Regexp to match symbols that can be accessed directly from C.
13559 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13561 # Define system-specific variables.
13566 cygwin* | mingw* | pw32* | cegcc*)
13567 symcode='[ABCDGISTW]'
13570 if test "$host_cpu" = ia64; then
13571 symcode='[ABCDEGRST]'
13574 irix* | nonstopux*)
13575 symcode='[BCDEGRST]'
13578 symcode='[BCDEGQRST]'
13589 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13597 # If we're using GNU nm, then use its standard symbol codes.
13598 case `$NM -V 2>&1` in
13599 *GNU* | *'with BFD'*)
13600 symcode='[ABCDGIRSTW]' ;;
13603 # Transform an extracted symbol line into a proper C declaration.
13604 # Some systems (esp. on ia64) link data and code symbols differently,
13605 # so use this general approach.
13606 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13608 # Transform an extracted symbol line into symbol name and symbol address
13609 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13610 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'"
13612 # Handle CRLF in mingw tool chain
13616 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13620 # Try without a prefix underscore, then with it.
13621 for ac_symprfx in "" "_
"; do
13623 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13624 symxfrm="\\1 $ac_symprfx\\2 \\2"
13626 # Write the raw and C identifiers.
13627 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13628 # Fake it for dumpbin and say T for any non-static function
13629 # and D for any global variable.
13630 # Also find C++ and __fastcall symbols from MSVC++,
13631 # which start with @ or ?.
13632 lt_cv_sys_global_symbol_pipe="$AWK '"\
13633 " {last_section=section; section=\$ 3};"\
13634 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13635 " \$ 0!~/External *\|/{next};"\
13636 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13637 " {if(hide[section]) next};"\
13638 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13639 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13640 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13641 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13642 " ' prfx
=^
$ac_symprfx"
13644 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13647 # Check to see that the pipe works correctly.
13651 cat > conftest.$ac_ext <<_LT_EOF
13656 void nm_test_func(void);
13657 void nm_test_func(void){}
13661 int main(){nm_test_var='a';nm_test_func();return(0);}
13664 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13665 (eval $ac_compile) 2>&5
13667 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13668 test $ac_status = 0; }; then
13669 # Now try to grab the symbols.
13671 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
13672 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13674 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13675 test $ac_status = 0; } && test -s "$nlist"; then
13676 # Try sorting and uniquifying the output.
13677 if sort "$nlist" | uniq > "$nlist"T; then
13678 mv -f "$nlist"T "$nlist"
13683 # Make sure that we snagged all the symbols we need.
13684 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13685 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13686 cat <<_LT_EOF > conftest.$ac_ext
13692 # Now generate the symbol file.
13693 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13695 cat <<_LT_EOF >> conftest.$ac_ext
13697 /* The mapping between symbol names and symbols. */
13702 lt__PROGRAM__LTX_preloaded_symbols[] =
13704 { "@PROGRAM@
", (void *) 0 },
13706 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13707 cat <<\_LT_EOF >> conftest.$ac_ext
13711 /* This works around a problem in FreeBSD linker */
13712 #ifdef FREEBSD_WORKAROUND
13713 static const void *lt_preloaded_setup() {
13714 return lt__PROGRAM__LTX_preloaded_symbols;
13722 # Now try linking the two files.
13723 mv conftest.$ac_objext conftstm.$ac_objext
13724 lt_save_LIBS="$LIBS"
13725 lt_save_CFLAGS="$CFLAGS"
13726 LIBS="conftstm.
$ac_objext"
13727 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13728 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13729 (eval $ac_link) 2>&5
13731 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13732 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13735 LIBS="$lt_save_LIBS"
13736 CFLAGS="$lt_save_CFLAGS"
13738 echo "cannot
find nm_test_func
in $nlist" >&5
13741 echo "cannot
find nm_test_var
in $nlist" >&5
13744 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
13747 echo "$progname: failed program was
:" >&5
13748 cat conftest.$ac_ext >&5
13750 rm -rf conftest* conftst*
13752 # Do not use the global_symbol_pipe unless it works.
13753 if test "$pipe_works" = yes; then
13756 lt_cv_sys_global_symbol_pipe=
13762 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13763 lt_cv_sys_global_symbol_to_cdecl=
13765 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
13767 $as_echo "failed
" >&6; }
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
13770 $as_echo "ok
" >&6; }
13794 # Check whether --enable-libtool-lock was given.
13795 if test "${enable_libtool_lock+set}" = set; then :
13796 enableval=$enable_libtool_lock;
13799 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
13801 # Some flags need to be propagated to the compiler or linker for good
13805 # Find out which ABI we are using.
13806 echo 'int i;' > conftest.$ac_ext
13807 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13808 (eval $ac_compile) 2>&5
13810 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13811 test $ac_status = 0; }; then
13812 case `/usr/bin/file conftest.$ac_objext` in
13814 HPUX_IA64_MODE="32"
13817 HPUX_IA64_MODE="64"
13824 # Find out which ABI we are using.
13825 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
13826 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13827 (eval $ac_compile) 2>&5
13829 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13830 test $ac_status = 0; }; then
13831 if test "$lt_cv_prog_gnu_ld" = yes; then
13832 case `/usr/bin/file conftest.$ac_objext` in
13834 LD="${LD-ld} -melf32bsmip"
13837 LD="${LD-ld} -melf32bmipn32"
13840 LD="${LD-ld} -melf64bmip"
13844 case `/usr/bin/file conftest.$ac_objext` in
13860 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13861 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13862 # Find out which ABI we are using.
13863 echo 'int i;' > conftest.$ac_ext
13864 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13865 (eval $ac_compile) 2>&5
13867 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13868 test $ac_status = 0; }; then
13869 case `/usr/bin/file conftest.o` in
13872 x86_64-*kfreebsd*-gnu)
13873 LD="${LD-ld} -m elf_i386_fbsd
"
13876 LD="${LD-ld} -m elf_i386
"
13878 ppc64-*linux*|powerpc64-*linux*)
13879 LD="${LD-ld} -m elf32ppclinux
"
13882 LD="${LD-ld} -m elf_s390
"
13885 LD="${LD-ld} -m elf32_sparc
"
13891 x86_64-*kfreebsd*-gnu)
13892 LD="${LD-ld} -m elf_x86_64_fbsd
"
13895 LD="${LD-ld} -m elf_x86_64
"
13897 ppc*-*linux*|powerpc*-*linux*)
13898 LD="${LD-ld} -m elf64ppc
"
13900 s390*-*linux*|s390*-*tpf*)
13901 LD="${LD-ld} -m elf64_s390
"
13904 LD="${LD-ld} -m elf64_sparc
"
13914 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13915 SAVE_CFLAGS="$CFLAGS"
13916 CFLAGS="$CFLAGS -belf"
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
13918 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
13919 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13920 $as_echo_n "(cached
) " >&6
13923 ac_cpp='$CPP $CPPFLAGS'
13924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13929 /* end confdefs.h. */
13939 if ac_fn_c_try_link "$LINENO"; then :
13940 lt_cv_cc_needs_belf=yes
13942 lt_cv_cc_needs_belf=no
13944 rm -f core conftest.err conftest.$ac_objext \
13945 conftest$ac_exeext conftest.$ac_ext
13947 ac_cpp='$CPP $CPPFLAGS'
13948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
13954 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13955 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13956 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13957 CFLAGS="$SAVE_CFLAGS"
13961 # Find out which ABI we are using.
13962 echo 'int i;' > conftest.$ac_ext
13963 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13964 (eval $ac_compile) 2>&5
13966 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13967 test $ac_status = 0; }; then
13968 case `/usr/bin/file conftest.o` in
13970 case $lt_cv_prog_gnu_ld in
13971 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
13973 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13985 need_locks="$enable_libtool_lock"
13989 rhapsody* | darwin*)
13990 if test -n "$ac_tool_prefix"; then
13991 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
13992 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13994 $as_echo_n "checking
for $ac_word...
" >&6; }
13995 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13996 $as_echo_n "(cached
) " >&6
13998 if test -n "$DSYMUTIL"; then
13999 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14002 for as_dir in $PATH
14005 test -z "$as_dir" && as_dir=.
14006 for ac_exec_ext in '' $ac_executable_extensions; do
14007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14008 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
14009 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14018 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14019 if test -n "$DSYMUTIL"; then
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
14021 $as_echo "$DSYMUTIL" >&6; }
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14024 $as_echo "no
" >&6; }
14029 if test -z "$ac_cv_prog_DSYMUTIL"; then
14030 ac_ct_DSYMUTIL=$DSYMUTIL
14031 # Extract the first word of "dsymutil
", so it can be a program name with args.
14032 set dummy dsymutil; ac_word=$2
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14034 $as_echo_n "checking
for $ac_word...
" >&6; }
14035 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14036 $as_echo_n "(cached
) " >&6
14038 if test -n "$ac_ct_DSYMUTIL"; then
14039 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14042 for as_dir in $PATH
14045 test -z "$as_dir" && as_dir=.
14046 for ac_exec_ext in '' $ac_executable_extensions; do
14047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14048 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
14049 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14058 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14059 if test -n "$ac_ct_DSYMUTIL"; then
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
14061 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14064 $as_echo "no
" >&6; }
14067 if test "x
$ac_ct_DSYMUTIL" = x; then
14070 case $cross_compiling:$ac_tool_warned in
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14073 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14074 ac_tool_warned=yes ;;
14076 DSYMUTIL=$ac_ct_DSYMUTIL
14079 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14082 if test -n "$ac_tool_prefix"; then
14083 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
14084 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14086 $as_echo_n "checking
for $ac_word...
" >&6; }
14087 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14088 $as_echo_n "(cached
) " >&6
14090 if test -n "$NMEDIT"; then
14091 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14094 for as_dir in $PATH
14097 test -z "$as_dir" && as_dir=.
14098 for ac_exec_ext in '' $ac_executable_extensions; do
14099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14100 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
14101 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14110 NMEDIT=$ac_cv_prog_NMEDIT
14111 if test -n "$NMEDIT"; then
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
14113 $as_echo "$NMEDIT" >&6; }
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14116 $as_echo "no
" >&6; }
14121 if test -z "$ac_cv_prog_NMEDIT"; then
14122 ac_ct_NMEDIT=$NMEDIT
14123 # Extract the first word of "nmedit
", so it can be a program name with args.
14124 set dummy nmedit; ac_word=$2
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14126 $as_echo_n "checking
for $ac_word...
" >&6; }
14127 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14128 $as_echo_n "(cached
) " >&6
14130 if test -n "$ac_ct_NMEDIT"; then
14131 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14134 for as_dir in $PATH
14137 test -z "$as_dir" && as_dir=.
14138 for ac_exec_ext in '' $ac_executable_extensions; do
14139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14140 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
14141 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14150 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14151 if test -n "$ac_ct_NMEDIT"; then
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
14153 $as_echo "$ac_ct_NMEDIT" >&6; }
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14156 $as_echo "no
" >&6; }
14159 if test "x
$ac_ct_NMEDIT" = x; then
14162 case $cross_compiling:$ac_tool_warned in
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14165 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14166 ac_tool_warned=yes ;;
14168 NMEDIT=$ac_ct_NMEDIT
14171 NMEDIT="$ac_cv_prog_NMEDIT"
14174 if test -n "$ac_tool_prefix"; then
14175 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
14176 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14178 $as_echo_n "checking
for $ac_word...
" >&6; }
14179 if test "${ac_cv_prog_LIPO+set}" = set; then :
14180 $as_echo_n "(cached
) " >&6
14182 if test -n "$LIPO"; then
14183 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14186 for as_dir in $PATH
14189 test -z "$as_dir" && as_dir=.
14190 for ac_exec_ext in '' $ac_executable_extensions; do
14191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14192 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
14193 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14202 LIPO=$ac_cv_prog_LIPO
14203 if test -n "$LIPO"; then
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14205 $as_echo "$LIPO" >&6; }
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14208 $as_echo "no
" >&6; }
14213 if test -z "$ac_cv_prog_LIPO"; then
14215 # Extract the first word of "lipo
", so it can be a program name with args.
14216 set dummy lipo; ac_word=$2
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14218 $as_echo_n "checking
for $ac_word...
" >&6; }
14219 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14220 $as_echo_n "(cached
) " >&6
14222 if test -n "$ac_ct_LIPO"; then
14223 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14226 for as_dir in $PATH
14229 test -z "$as_dir" && as_dir=.
14230 for ac_exec_ext in '' $ac_executable_extensions; do
14231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14232 ac_cv_prog_ac_ct_LIPO="lipo
"
14233 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14242 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14243 if test -n "$ac_ct_LIPO"; then
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14245 $as_echo "$ac_ct_LIPO" >&6; }
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14248 $as_echo "no
" >&6; }
14251 if test "x
$ac_ct_LIPO" = x; then
14254 case $cross_compiling:$ac_tool_warned in
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14257 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14258 ac_tool_warned=yes ;;
14263 LIPO="$ac_cv_prog_LIPO"
14266 if test -n "$ac_tool_prefix"; then
14267 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14268 set dummy ${ac_tool_prefix}otool; ac_word=$2
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14270 $as_echo_n "checking
for $ac_word...
" >&6; }
14271 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14272 $as_echo_n "(cached
) " >&6
14274 if test -n "$OTOOL"; then
14275 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14278 for as_dir in $PATH
14281 test -z "$as_dir" && as_dir=.
14282 for ac_exec_ext in '' $ac_executable_extensions; do
14283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14284 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14285 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14294 OTOOL=$ac_cv_prog_OTOOL
14295 if test -n "$OTOOL"; then
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14297 $as_echo "$OTOOL" >&6; }
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14300 $as_echo "no
" >&6; }
14305 if test -z "$ac_cv_prog_OTOOL"; then
14307 # Extract the first word of "otool
", so it can be a program name with args.
14308 set dummy otool; ac_word=$2
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14310 $as_echo_n "checking
for $ac_word...
" >&6; }
14311 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14312 $as_echo_n "(cached
) " >&6
14314 if test -n "$ac_ct_OTOOL"; then
14315 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14318 for as_dir in $PATH
14321 test -z "$as_dir" && as_dir=.
14322 for ac_exec_ext in '' $ac_executable_extensions; do
14323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14324 ac_cv_prog_ac_ct_OTOOL="otool
"
14325 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14334 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14335 if test -n "$ac_ct_OTOOL"; then
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14337 $as_echo "$ac_ct_OTOOL" >&6; }
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14340 $as_echo "no
" >&6; }
14343 if test "x
$ac_ct_OTOOL" = x; then
14346 case $cross_compiling:$ac_tool_warned in
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14349 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14350 ac_tool_warned=yes ;;
14355 OTOOL="$ac_cv_prog_OTOOL"
14358 if test -n "$ac_tool_prefix"; then
14359 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14360 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14362 $as_echo_n "checking
for $ac_word...
" >&6; }
14363 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14364 $as_echo_n "(cached
) " >&6
14366 if test -n "$OTOOL64"; then
14367 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14370 for as_dir in $PATH
14373 test -z "$as_dir" && as_dir=.
14374 for ac_exec_ext in '' $ac_executable_extensions; do
14375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14376 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14377 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14386 OTOOL64=$ac_cv_prog_OTOOL64
14387 if test -n "$OTOOL64"; then
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14389 $as_echo "$OTOOL64" >&6; }
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14392 $as_echo "no
" >&6; }
14397 if test -z "$ac_cv_prog_OTOOL64"; then
14398 ac_ct_OTOOL64=$OTOOL64
14399 # Extract the first word of "otool64
", so it can be a program name with args.
14400 set dummy otool64; ac_word=$2
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14402 $as_echo_n "checking
for $ac_word...
" >&6; }
14403 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14404 $as_echo_n "(cached
) " >&6
14406 if test -n "$ac_ct_OTOOL64"; then
14407 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14410 for as_dir in $PATH
14413 test -z "$as_dir" && as_dir=.
14414 for ac_exec_ext in '' $ac_executable_extensions; do
14415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14416 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14417 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14426 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14427 if test -n "$ac_ct_OTOOL64"; then
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14429 $as_echo "$ac_ct_OTOOL64" >&6; }
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14432 $as_echo "no
" >&6; }
14435 if test "x
$ac_ct_OTOOL64" = x; then
14438 case $cross_compiling:$ac_tool_warned in
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14441 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14442 ac_tool_warned=yes ;;
14444 OTOOL64=$ac_ct_OTOOL64
14447 OTOOL64="$ac_cv_prog_OTOOL64"
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14477 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14478 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14479 $as_echo_n "(cached
) " >&6
14481 lt_cv_apple_cc_single_mod=no
14482 if test -z "${LT_MULTI_MODULE}"; then
14483 # By default we will add the -single_module flag. You can override
14484 # by either setting the environment variable LT_MULTI_MODULE
14485 # non-empty at configure time, or by adding -multi_module to the
14487 rm -rf libconftest.dylib*
14488 echo "int foo
(void
){return 1;}" > conftest.c
14489 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14490 -dynamiclib -Wl,-single_module conftest.c
" >&5
14491 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14492 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14494 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14495 lt_cv_apple_cc_single_mod=yes
14497 cat conftest.err >&5
14499 rm -rf libconftest.dylib*
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14504 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14506 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14507 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14508 $as_echo_n "(cached
) " >&6
14510 lt_cv_ld_exported_symbols_list=no
14511 save_LDFLAGS=$LDFLAGS
14512 echo "_main
" > conftest.sym
14513 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14515 /* end confdefs.h. */
14525 if ac_fn_c_try_link "$LINENO"; then :
14526 lt_cv_ld_exported_symbols_list=yes
14528 lt_cv_ld_exported_symbols_list=no
14530 rm -f core conftest.err conftest.$ac_objext \
14531 conftest$ac_exeext conftest.$ac_ext
14532 LDFLAGS="$save_LDFLAGS"
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14536 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14538 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14539 if test "${lt_cv_ld_force_load+set}" = set; then :
14540 $as_echo_n "(cached
) " >&6
14542 lt_cv_ld_force_load=no
14543 cat > conftest.c << _LT_EOF
14544 int forced_loaded() { return 2;}
14546 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14547 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14548 echo "$AR cru libconftest.a conftest.o
" >&5
14549 $AR cru libconftest.a conftest.o 2>&5
14550 cat > conftest.c << _LT_EOF
14551 int main() { return 0;}
14553 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14554 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14556 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14557 lt_cv_ld_force_load=yes
14559 cat conftest.err >&5
14561 rm -f conftest.err libconftest.a conftest conftest.c
14562 rm -rf conftest.dSYM
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14566 $as_echo "$lt_cv_ld_force_load" >&6; }
14568 rhapsody* | darwin1.[012])
14569 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14571 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14572 darwin*) # darwin 5.x on
14573 # if running on 10.5 or later, the deployment target defaults
14574 # to the OS version, if on x86, and 10.4, the deployment
14575 # target defaults to 10.4. Don't you love it?
14576 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14577 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14578 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14580 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14582 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14586 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14587 _lt_dar_single_mod='$single_module'
14589 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14590 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14592 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14594 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14595 _lt_dsymutil='~$DSYMUTIL $lib || :'
14602 for ac_header in dlfcn.h
14604 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14605 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14606 cat >>confdefs.h <<_ACEOF
14607 #define HAVE_DLFCN_H 1
14624 enable_win32_dll=no
14627 # Check whether --enable-shared was given.
14628 if test "${enable_shared+set}" = set; then :
14629 enableval=$enable_shared; p=${PACKAGE-default}
14631 yes) enable_shared=yes ;;
14632 no) enable_shared=no ;;
14635 # Look at the argument we got. We use all the common list separators.
14636 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14637 for pkg in $enableval; do
14639 if test "X
$pkg" = "X
$p"; then
14658 # Check whether --enable-static was given.
14659 if test "${enable_static+set}" = set; then :
14660 enableval=$enable_static; p=${PACKAGE-default}
14662 yes) enable_static=yes ;;
14663 no) enable_static=no ;;
14666 # Look at the argument we got. We use all the common list separators.
14667 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14668 for pkg in $enableval; do
14670 if test "X
$pkg" = "X
$p"; then
14690 # Check whether --with-pic was given.
14691 if test "${with_pic+set}" = set; then :
14692 withval=$with_pic; pic_mode="$withval"
14698 test -z "$pic_mode" && pic_mode=default
14706 # Check whether --enable-fast-install was given.
14707 if test "${enable_fast_install+set}" = set; then :
14708 enableval=$enable_fast_install; p=${PACKAGE-default}
14710 yes) enable_fast_install=yes ;;
14711 no) enable_fast_install=no ;;
14713 enable_fast_install=no
14714 # Look at the argument we got. We use all the common list separators.
14715 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14716 for pkg in $enableval; do
14718 if test "X
$pkg" = "X
$p"; then
14719 enable_fast_install=yes
14726 enable_fast_install=yes
14739 # This can be used to rebuild libtool when needed
14740 LIBTOOL_DEPS="$ltmain"
14742 # Always use our own libtool.
14743 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14770 test -z "$LN_S" && LN_S="ln -s"
14785 if test -n "${ZSH_VERSION+set}" ; then
14786 setopt NO_GLOB_SUBST
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
14790 $as_echo_n "checking
for objdir...
" >&6; }
14791 if test "${lt_cv_objdir+set}" = set; then :
14792 $as_echo_n "(cached
) " >&6
14794 rm -f .libs 2>/dev/null
14795 mkdir .libs 2>/dev/null
14796 if test -d .libs; then
14799 # MS-DOS does not allow filenames that begin with a dot.
14802 rmdir .libs 2>/dev/null
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
14805 $as_echo "$lt_cv_objdir" >&6; }
14806 objdir=$lt_cv_objdir
14812 cat >>confdefs.h <<_ACEOF
14813 #define LT_OBJDIR "$lt_cv_objdir/"
14821 # AIX sometimes has problems with the GCC collect2 program. For some
14822 # reason, if we set the COLLECT_NAMES environment variable, the problems
14823 # vanish in a puff of smoke.
14824 if test "X
${COLLECT_NAMES+set}" != Xset; then
14826 export COLLECT_NAMES
14831 # Global variables:
14833 can_build_shared=yes
14835 # All known linkers require a `.a' archive for static linking (except MSVC,
14836 # which needs '.lib').
14839 with_gnu_ld="$lt_cv_prog_gnu_ld"
14842 old_CFLAGS="$CFLAGS"
14844 # Set sane defaults for various variables
14845 test -z "$CC" && CC=cc
14846 test -z "$LTCC" && LTCC=$CC
14847 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14848 test -z "$LD" && LD=ld
14849 test -z "$ac_objext" && ac_objext=o
14851 for cc_temp in $compiler""; do
14853 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14854 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14859 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
14862 # Only perform the check for file, if the check method requires it
14863 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14864 case $deplibs_check_method in
14866 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
14868 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
14869 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14870 $as_echo_n "(cached
) " >&6
14874 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14877 lt_save_MAGIC_CMD="$MAGIC_CMD"
14878 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14879 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14880 for ac_dir in $ac_dummy; do
14882 test -z "$ac_dir" && ac_dir=.
14883 if test -f $ac_dir/${ac_tool_prefix}file; then
14884 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14885 if test -n "$file_magic_test_file"; then
14886 case $deplibs_check_method in
14888 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14889 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14890 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14891 $EGREP "$file_magic_regex" > /dev/null; then
14896 *** Warning: the command libtool uses to detect shared libraries,
14897 *** $file_magic_cmd, produces output that libtool cannot recognize.
14898 *** The result is that libtool may fail to recognize shared libraries
14899 *** as such. This will affect the creation of libtool libraries that
14900 *** depend on shared libraries, but programs linked with such libtool
14901 *** libraries will work regardless of this problem. Nevertheless, you
14902 *** may want to report the problem to your system manager and/or to
14903 *** bug-libtool@gnu.org
14913 MAGIC_CMD="$lt_save_MAGIC_CMD"
14918 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14919 if test -n "$MAGIC_CMD"; then
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14921 $as_echo "$MAGIC_CMD" >&6; }
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14924 $as_echo "no
" >&6; }
14931 if test -z "$lt_cv_path_MAGIC_CMD"; then
14932 if test -n "$ac_tool_prefix"; then
14933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
14934 $as_echo_n "checking
for file...
" >&6; }
14935 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14936 $as_echo_n "(cached
) " >&6
14940 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14943 lt_save_MAGIC_CMD="$MAGIC_CMD"
14944 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14945 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14946 for ac_dir in $ac_dummy; do
14948 test -z "$ac_dir" && ac_dir=.
14949 if test -f $ac_dir/file; then
14950 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14951 if test -n "$file_magic_test_file"; then
14952 case $deplibs_check_method in
14954 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14955 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14956 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14957 $EGREP "$file_magic_regex" > /dev/null; then
14962 *** Warning: the command libtool uses to detect shared libraries,
14963 *** $file_magic_cmd, produces output that libtool cannot recognize.
14964 *** The result is that libtool may fail to recognize shared libraries
14965 *** as such. This will affect the creation of libtool libraries that
14966 *** depend on shared libraries, but programs linked with such libtool
14967 *** libraries will work regardless of this problem. Nevertheless, you
14968 *** may want to report the problem to your system manager and/or to
14969 *** bug-libtool@gnu.org
14979 MAGIC_CMD="$lt_save_MAGIC_CMD"
14984 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14985 if test -n "$MAGIC_CMD"; then
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14987 $as_echo "$MAGIC_CMD" >&6; }
14989 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14990 $as_echo "no
" >&6; }
15003 # Use C for the default configuration in the libtool script
15007 ac_cpp='$CPP $CPPFLAGS'
15008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15013 # Source file extension for C test sources.
15016 # Object file extension for compiled C test sources.
15020 # Code to be used in simple compile tests
15021 lt_simple_compile_test_code="int some_variable
= 0;"
15023 # Code to be used in simple link tests
15024 lt_simple_link_test_code='int main(){return(0);}'
15032 # If no C compiler was specified, use CC.
15035 # If no C compiler flags were specified, use CFLAGS.
15036 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15038 # Allow CC to be a program name with arguments.
15041 # Save the default compiler, since it gets overwritten when the other
15042 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15043 compiler_DEFAULT=$CC
15045 # save warnings/boilerplate of simple test code
15046 ac_outfile=conftest.$ac_objext
15047 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15048 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15049 _lt_compiler_boilerplate=`cat conftest.err`
15052 ac_outfile=conftest.$ac_objext
15053 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15054 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15055 _lt_linker_boilerplate=`cat conftest.err`
15060 ## There is no encapsulation within the following macros, do not change
15061 ## the running order or otherwise move them around unless you know exactly
15062 ## what you are doing...
15063 if test -n "$compiler"; then
15065 lt_prog_compiler_no_builtin_flag=
15067 if test "$GCC" = yes; then
15068 case $cc_basename in
15070 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15072 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
15076 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
15077 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15078 $as_echo_n "(cached
) " >&6
15080 lt_cv_prog_compiler_rtti_exceptions=no
15081 ac_outfile=conftest.$ac_objext
15082 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15083 lt_compiler_flag="-fno-rtti -fno-exceptions"
15084 # Insert the option either (1) after the last *FLAGS variable, or
15085 # (2) before a word containing "conftest.
", or (3) at the end.
15086 # Note that $ac_compile itself does not contain backslashes and begins
15087 # with a dollar sign (not a hyphen), so the echo should work correctly.
15088 # The option is referenced via a variable to avoid confusing sed.
15089 lt_compile=`echo "$ac_compile" | $SED \
15090 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15091 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15092 -e 's:$: $lt_compiler_flag:'`
15093 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15094 (eval "$lt_compile" 2>conftest.err)
15096 cat conftest.err >&5
15097 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15098 if (exit $ac_status) && test -s "$ac_outfile"; then
15099 # The compiler can only warn and ignore the option if not recognized
15100 # So say no if there are warnings other than the usual output.
15101 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15102 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15103 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15104 lt_cv_prog_compiler_rtti_exceptions=yes
15110 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
15111 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15113 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15114 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15126 lt_prog_compiler_wl=
15127 lt_prog_compiler_pic=
15128 lt_prog_compiler_static=
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
15131 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
15133 if test "$GCC" = yes; then
15134 lt_prog_compiler_wl='-Wl,'
15135 lt_prog_compiler_static='-static'
15139 # All AIX code is PIC.
15140 if test "$host_cpu" = ia64; then
15141 # AIX 5 now supports IA64 processor
15142 lt_prog_compiler_static='-Bstatic'
15149 # see comment about AmigaOS4 .so support
15150 lt_prog_compiler_pic='-fPIC'
15153 # FIXME: we need at least 68020 code to build shared libraries, but
15154 # adding the `-m68020' flag to GCC prevents building anything better,
15156 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15161 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15162 # PIC is the default for these OSes.
15165 mingw* | cygwin* | pw32* | os2* | cegcc*)
15166 # This hack is so that the source file can tell whether it is being
15167 # built for inclusion in a dll (and should export symbols for example).
15168 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15169 # (--disable-auto-import) libraries
15170 lt_prog_compiler_pic='-DDLL_EXPORT'
15173 darwin* | rhapsody*)
15174 # PIC is the default on this platform
15175 # Common symbols not allowed in MH_DYLIB files
15176 lt_prog_compiler_pic='-fno-common'
15180 # PIC is the default for Haiku.
15181 # The "-static" flag exists, but is broken.
15182 lt_prog_compiler_static=
15186 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15187 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15188 # sets the default TLS model and affects inlining.
15194 lt_prog_compiler_pic='-fPIC'
15200 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15201 # Instead, we relocate shared libraries at runtime.
15205 # Just because we use GCC doesn't mean we suddenly get shared libraries
15206 # on systems that don't support them.
15207 lt_prog_compiler_can_build_shared=no
15212 # QNX uses GNU C++, but need to define -shared option too, otherwise
15213 # it will coredump.
15214 lt_prog_compiler_pic='-fPIC -shared'
15218 if test -d /usr/nec; then
15219 lt_prog_compiler_pic=-Kconform_pic
15224 lt_prog_compiler_pic='-fPIC'
15228 case $cc_basename in
15229 nvcc*) # Cuda Compiler Driver 2.2
15230 lt_prog_compiler_wl='-Xlinker '
15231 lt_prog_compiler_pic='-Xcompiler -fPIC'
15235 # PORTME Check for flag to pass linker flags through the system compiler.
15238 lt_prog_compiler_wl='-Wl,'
15239 if test "$host_cpu" = ia64; then
15240 # AIX 5 now supports IA64 processor
15241 lt_prog_compiler_static='-Bstatic'
15243 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15247 mingw* | cygwin* | pw32* | os2* | cegcc*)
15248 # This hack is so that the source file can tell whether it is being
15249 # built for inclusion in a dll (and should export symbols for example).
15250 lt_prog_compiler_pic='-DDLL_EXPORT'
15253 hpux9* | hpux10* | hpux11*)
15254 lt_prog_compiler_wl='-Wl,'
15255 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15256 # not for PA HP-UX.
15262 lt_prog_compiler_pic='+Z'
15265 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15266 lt_prog_compiler_static='${wl}-a ${wl}archive'
15269 irix5* | irix6* | nonstopux*)
15270 lt_prog_compiler_wl='-Wl,'
15271 # PIC (with -KPIC) is the default.
15272 lt_prog_compiler_static='-non_shared'
15275 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15276 case $cc_basename in
15277 # old Intel for x86_64 which still supported -KPIC.
15279 lt_prog_compiler_wl='-Wl,'
15280 lt_prog_compiler_pic='-KPIC'
15281 lt_prog_compiler_static='-static'
15283 # icc used to be incompatible with GCC.
15284 # ICC 10 doesn't accept -KPIC any more.
15286 lt_prog_compiler_wl='-Wl,'
15287 lt_prog_compiler_pic='-fPIC'
15288 lt_prog_compiler_static='-static'
15290 # Lahey Fortran 8.1.
15292 lt_prog_compiler_wl='-Wl,'
15293 lt_prog_compiler_pic='--shared'
15294 lt_prog_compiler_static='--static'
15296 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15297 # Portland Group compilers (*not* the Pentium gcc compiler,
15298 # which looks to be a dead project)
15299 lt_prog_compiler_wl='-Wl,'
15300 lt_prog_compiler_pic='-fpic'
15301 lt_prog_compiler_static='-Bstatic'
15304 lt_prog_compiler_wl='-Wl,'
15305 # All Alpha code is PIC.
15306 lt_prog_compiler_static='-non_shared'
15308 xl* | bgxl* | bgf* | mpixl*)
15309 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15310 lt_prog_compiler_wl='-Wl,'
15311 lt_prog_compiler_pic='-qpic'
15312 lt_prog_compiler_static='-qstaticlink'
15315 case `$CC -V 2>&1 | sed 5q` in
15316 *Sun\ F* | *Sun*Fortran*)
15317 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15318 lt_prog_compiler_pic='-KPIC'
15319 lt_prog_compiler_static='-Bstatic'
15320 lt_prog_compiler_wl=''
15324 lt_prog_compiler_pic='-KPIC'
15325 lt_prog_compiler_static='-Bstatic'
15326 lt_prog_compiler_wl='-Wl,'
15334 lt_prog_compiler_pic='-KPIC'
15335 lt_prog_compiler_static='-Bstatic'
15339 # QNX uses GNU C++, but need to define -shared option too, otherwise
15340 # it will coredump.
15341 lt_prog_compiler_pic='-fPIC -shared'
15344 osf3* | osf4* | osf5*)
15345 lt_prog_compiler_wl='-Wl,'
15346 # All OSF/1 code is PIC.
15347 lt_prog_compiler_static='-non_shared'
15351 lt_prog_compiler_static='-non_shared'
15355 lt_prog_compiler_pic='-KPIC'
15356 lt_prog_compiler_static='-Bstatic'
15357 case $cc_basename in
15358 f77* | f90* | f95*)
15359 lt_prog_compiler_wl='-Qoption ld ';;
15361 lt_prog_compiler_wl='-Wl,';;
15366 lt_prog_compiler_wl='-Qoption ld '
15367 lt_prog_compiler_pic='-PIC'
15368 lt_prog_compiler_static='-Bstatic'
15371 sysv4 | sysv4.2uw2* | sysv4.3*)
15372 lt_prog_compiler_wl='-Wl,'
15373 lt_prog_compiler_pic='-KPIC'
15374 lt_prog_compiler_static='-Bstatic'
15378 if test -d /usr/nec ;then
15379 lt_prog_compiler_pic='-Kconform_pic'
15380 lt_prog_compiler_static='-Bstatic'
15384 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15385 lt_prog_compiler_wl='-Wl,'
15386 lt_prog_compiler_pic='-KPIC'
15387 lt_prog_compiler_static='-Bstatic'
15391 lt_prog_compiler_wl='-Wl,'
15392 lt_prog_compiler_can_build_shared=no
15396 lt_prog_compiler_pic='-pic'
15397 lt_prog_compiler_static='-Bstatic'
15401 lt_prog_compiler_can_build_shared=no
15407 # For platforms which do not support PIC, -DPIC is meaningless:
15409 lt_prog_compiler_pic=
15412 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15415 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15416 $as_echo "$lt_prog_compiler_pic" >&6; }
15424 # Check to make sure the PIC flag actually works.
15426 if test -n "$lt_prog_compiler_pic"; then
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15428 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15429 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15430 $as_echo_n "(cached
) " >&6
15432 lt_cv_prog_compiler_pic_works=no
15433 ac_outfile=conftest.$ac_objext
15434 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15435 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15436 # Insert the option either (1) after the last *FLAGS variable, or
15437 # (2) before a word containing "conftest.
", or (3) at the end.
15438 # Note that $ac_compile itself does not contain backslashes and begins
15439 # with a dollar sign (not a hyphen), so the echo should work correctly.
15440 # The option is referenced via a variable to avoid confusing sed.
15441 lt_compile=`echo "$ac_compile" | $SED \
15442 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15443 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15444 -e 's:$: $lt_compiler_flag:'`
15445 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15446 (eval "$lt_compile" 2>conftest.err)
15448 cat conftest.err >&5
15449 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15450 if (exit $ac_status) && test -s "$ac_outfile"; then
15451 # The compiler can only warn and ignore the option if not recognized
15452 # So say no if there are warnings other than the usual output.
15453 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15454 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15455 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15456 lt_cv_prog_compiler_pic_works=yes
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15463 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15465 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15466 case $lt_prog_compiler_pic in
15468 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15471 lt_prog_compiler_pic=
15472 lt_prog_compiler_can_build_shared=no
15483 # Check to make sure the static flag actually works.
15485 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15487 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15488 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15489 $as_echo_n "(cached
) " >&6
15491 lt_cv_prog_compiler_static_works=no
15492 save_LDFLAGS="$LDFLAGS"
15493 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15494 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15495 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15496 # The linker can only warn and ignore the option if not recognized
15497 # So say no if there are warnings
15498 if test -s conftest.err; then
15499 # Append any errors to the config.log.
15500 cat conftest.err 1>&5
15501 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15502 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15503 if diff conftest.exp conftest.er2 >/dev/null; then
15504 lt_cv_prog_compiler_static_works=yes
15507 lt_cv_prog_compiler_static_works=yes
15511 LDFLAGS="$save_LDFLAGS"
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15515 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15517 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15520 lt_prog_compiler_static=
15529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15530 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15531 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15532 $as_echo_n "(cached
) " >&6
15534 lt_cv_prog_compiler_c_o=no
15535 $RM -r conftest 2>/dev/null
15539 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15541 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15542 # Insert the option either (1) after the last *FLAGS variable, or
15543 # (2) before a word containing "conftest.
", or (3) at the end.
15544 # Note that $ac_compile itself does not contain backslashes and begins
15545 # with a dollar sign (not a hyphen), so the echo should work correctly.
15546 lt_compile=`echo "$ac_compile" | $SED \
15547 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15548 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15549 -e 's:$: $lt_compiler_flag:'`
15550 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15551 (eval "$lt_compile" 2>out/conftest.err)
15553 cat out/conftest.err >&5
15554 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15555 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15557 # The compiler can only warn and ignore the option if not recognized
15558 # So say no if there are warnings
15559 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15560 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15561 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15562 lt_cv_prog_compiler_c_o=yes
15567 # SGI C++ compiler will create directory out/ii_files/ for
15568 # template instantiation
15569 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15570 $RM out/* && rmdir out
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15577 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15585 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15586 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15587 $as_echo_n "(cached
) " >&6
15589 lt_cv_prog_compiler_c_o=no
15590 $RM -r conftest 2>/dev/null
15594 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15596 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15597 # Insert the option either (1) after the last *FLAGS variable, or
15598 # (2) before a word containing "conftest.
", or (3) at the end.
15599 # Note that $ac_compile itself does not contain backslashes and begins
15600 # with a dollar sign (not a hyphen), so the echo should work correctly.
15601 lt_compile=`echo "$ac_compile" | $SED \
15602 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15603 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15604 -e 's:$: $lt_compiler_flag:'`
15605 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15606 (eval "$lt_compile" 2>out/conftest.err)
15608 cat out/conftest.err >&5
15609 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15610 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15612 # The compiler can only warn and ignore the option if not recognized
15613 # So say no if there are warnings
15614 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15615 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15616 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15617 lt_cv_prog_compiler_c_o=yes
15622 # SGI C++ compiler will create directory out/ii_files/ for
15623 # template instantiation
15624 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15625 $RM out/* && rmdir out
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15632 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15637 hard_links="nottested
"
15638 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15639 # do not overwrite the value of need_locks provided by the user
15640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15641 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15644 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15646 ln conftest.a conftest.b 2>&5 || hard_links=no
15647 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15649 $as_echo "$hard_links" >&6; }
15650 if test "$hard_links" = no; then
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15652 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15665 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
15668 allow_undefined_flag=
15669 always_export_symbols=no
15671 archive_expsym_cmds=
15672 compiler_needs_object=no
15673 enable_shared_with_static_runtimes=no
15674 export_dynamic_flag_spec=
15675 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15676 hardcode_automatic=no
15678 hardcode_direct_absolute=no
15679 hardcode_libdir_flag_spec=
15680 hardcode_libdir_flag_spec_ld=
15681 hardcode_libdir_separator=
15682 hardcode_minus_L=no
15683 hardcode_shlibpath_var=unsupported
15685 link_all_deplibs=unknown
15687 module_expsym_cmds=
15688 old_archive_from_new_cmds=
15689 old_archive_from_expsyms_cmds=
15690 thread_safe_flag_spec=
15691 whole_archive_flag_spec=
15692 # include_expsyms should be a list of space-separated symbols to be *always*
15693 # included in the symbol list
15695 # exclude_expsyms can be an extended regexp of symbols to exclude
15696 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15697 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15698 # as well as any symbol that contains `d'.
15699 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15700 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15701 # platforms (ab)use it in PIC code, but their linkers get confused if
15702 # the symbol is explicitly referenced. Since portable code cannot
15703 # rely on this symbol name, it's probably fine to never include it in
15704 # preloaded symbol tables.
15705 # Exclude shared library initialization/finalization symbols.
15706 extract_expsyms_cmds=
15709 cygwin* | mingw* | pw32* | cegcc*)
15710 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15711 # When not using gcc, we currently assume that we are using
15712 # Microsoft Visual C++.
15713 if test "$GCC" != yes; then
15718 # we just hope/assume this is gcc and not c89 (= MSVC++)
15728 # On some targets, GNU ld is compatible enough with the native linker
15729 # that we're better off using the native interface for both.
15730 lt_use_gnu_ld_interface=no
15731 if test "$with_gnu_ld" = yes; then
15734 # The AIX port of GNU ld has always aspired to compatibility
15735 # with the native linker. However, as the warning in the GNU ld
15736 # block says, versions before 2.19.5* couldn't really create working
15737 # shared libraries, regardless of the interface used.
15738 case `$LD -v 2>&1` in
15739 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15740 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15741 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15743 lt_use_gnu_ld_interface=yes
15748 lt_use_gnu_ld_interface=yes
15753 if test "$lt_use_gnu_ld_interface" = yes; then
15754 # If archive_cmds runs LD, not CC, wlarc should be empty
15757 # Set some defaults for GNU ld with shared library support. These
15758 # are reset later if shared libraries are not supported. Putting them
15759 # here allows them to be overridden if necessary.
15760 runpath_var=LD_RUN_PATH
15761 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15762 export_dynamic_flag_spec='${wl}--export-dynamic'
15763 # ancient GNU ld didn't support --whole-archive et. al.
15764 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15765 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15767 whole_archive_flag_spec=
15769 supports_anon_versioning=no
15770 case `$LD -v 2>&1` in
15771 *GNU\ gold*) supports_anon_versioning=yes ;;
15772 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15773 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15774 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15775 *\ 2.11.*) ;; # other 2.11 versions
15776 *) supports_anon_versioning=yes ;;
15779 # See if GNU ld supports shared libraries.
15782 # On AIX/PPC, the GNU linker is very broken
15783 if test "$host_cpu" != ia64; then
15787 *** Warning: the GNU linker, at least up to release 2.19, is reported
15788 *** to be unable to reliably create shared libraries on AIX.
15789 *** Therefore, libtool is disabling shared libraries support. If you
15790 *** really care for shared libraries, you may want to install binutils
15791 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15792 *** You will then need to restart the configuration process.
15801 # see comment about AmigaOS4 .so support
15802 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15803 archive_expsym_cmds=''
15806 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)'
15807 hardcode_libdir_flag_spec
='-L$libdir'
15808 hardcode_minus_L
=yes
15814 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15815 allow_undefined_flag
=unsupported
15816 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15817 # support --undefined. This deserves some investigation. FIXME
15818 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15824 cygwin
* | mingw
* | pw32
* | cegcc
*)
15825 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15826 # as there is no search path for DLLs.
15827 hardcode_libdir_flag_spec
='-L$libdir'
15828 export_dynamic_flag_spec
='${wl}--export-all-symbols'
15829 allow_undefined_flag
=unsupported
15830 always_export_symbols
=no
15831 enable_shared_with_static_runtimes
=yes
15832 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15834 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
15835 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15836 # If the export-symbols file already is a .def file (1st line
15837 # is EXPORTS), use it as is; otherwise, prepend...
15838 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15839 cp $export_symbols $output_objdir/$soname.def;
15841 echo EXPORTS > $output_objdir/$soname.def;
15842 cat $export_symbols >> $output_objdir/$soname.def;
15844 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15851 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15852 link_all_deplibs
=yes
15857 hardcode_shlibpath_var
=no
15858 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15859 export_dynamic_flag_spec
='${wl}-E'
15860 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15861 # Instead, shared libraries are loaded at an image base (0x10000000 by
15862 # default) and relocated if they conflict, which is a slow very memory
15863 # consuming and fragmenting process. To avoid this, we pick a random,
15864 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15865 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15866 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15867 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'
15870 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
15872 if test "$host_os" = linux-dietlibc
; then
15873 case $cc_basename in
15874 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
15877 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
15878 && test "$tmp_diet" = no
15881 tmp_sharedflag
='-shared'
15882 case $cc_basename,$host_cpu in
15883 pgcc
*) # Portland Group C compiler
15884 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'
15885 tmp_addflag
=' $pic_flag'
15887 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
15888 # Portland Group f77 and f90 compilers
15889 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'
15890 tmp_addflag
=' $pic_flag -Mnomain' ;;
15891 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15892 tmp_addflag
=' -i_dynamic' ;;
15893 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15894 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15895 ifc
* | ifort
*) # Intel Fortran compiler
15896 tmp_addflag
=' -nofor_main' ;;
15897 lf95
*) # Lahey Fortran 8.1
15898 whole_archive_flag_spec
=
15899 tmp_sharedflag
='--shared' ;;
15900 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15901 tmp_sharedflag
='-qmkshrobj'
15903 nvcc
*) # Cuda Compiler Driver 2.2
15904 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'
15905 compiler_needs_object
=yes
15908 case `$CC -V 2>&1 | sed 5q` in
15909 *Sun\ C
*) # Sun C 5.9
15910 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'
15911 compiler_needs_object
=yes
15912 tmp_sharedflag
='-G' ;;
15913 *Sun\ F
*) # Sun Fortran 8.3
15914 tmp_sharedflag
='-G' ;;
15916 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15918 if test "x$supports_anon_versioning" = xyes
; then
15919 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15920 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15921 echo "local: *; };" >> $output_objdir/$libname.ver~
15922 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15925 case $cc_basename in
15926 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
15927 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15928 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
15929 hardcode_libdir_flag_spec
=
15930 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15931 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15932 if test "x$supports_anon_versioning" = xyes
; then
15933 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15934 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15935 echo "local: *; };" >> $output_objdir/$libname.ver~
15936 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15946 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15947 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15950 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15951 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15956 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
15960 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15961 *** create shared libraries on Solaris systems. Therefore, libtool
15962 *** is disabling shared libraries support. We urge you to upgrade GNU
15963 *** binutils to release 2.9.1 or newer. Another option is to modify
15964 *** your PATH or compiler configuration so that the native linker is
15965 *** used, and then restart.
15968 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15969 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15970 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15976 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15977 case `$LD -v 2>&1` in
15978 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
15982 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15983 *** reliably create shared libraries on SCO systems. Therefore, libtool
15984 *** is disabling shared libraries support. We urge you to upgrade GNU
15985 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15986 *** your PATH or compiler configuration so that the native linker is
15987 *** used, and then restart.
15992 # For security reasons, it is highly recommended that you always
15993 # use absolute paths for naming shared libraries, and exclude the
15994 # DT_RUNPATH tag from executables and libraries. But doing so
15995 # requires that you compile everything twice, which is a pain.
15996 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15997 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15998 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15999 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16008 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16010 hardcode_direct
=yes
16011 hardcode_shlibpath_var
=no
16015 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16016 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16017 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16024 if test "$ld_shlibs" = no
; then
16026 hardcode_libdir_flag_spec
=
16027 export_dynamic_flag_spec
=
16028 whole_archive_flag_spec
=
16031 # PORTME fill in a description of your system's linker (not GNU ld)
16034 allow_undefined_flag
=unsupported
16035 always_export_symbols
=yes
16036 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'
16037 # Note: this linker hardcodes the directories in LIBPATH if there
16038 # are no directories specified by -L.
16039 hardcode_minus_L
=yes
16040 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16041 # Neither direct hardcoding nor static linking is supported with a
16043 hardcode_direct
=unsupported
16048 if test "$host_cpu" = ia64
; then
16049 # On IA64, the linker does run time linking by default, so we don't
16050 # have to do anything special.
16051 aix_use_runtimelinking
=no
16052 exp_sym_flag
='-Bexport'
16055 # If we're using GNU nm, then we don't want the "-C" option.
16056 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16057 # Also, AIX nm treats weak defined symbols like other global
16058 # defined symbols, whereas GNU nm marks them as "W".
16059 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
16060 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'
16062 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'
16064 aix_use_runtimelinking
=no
16066 # Test if we are trying to use run time linking or normal
16067 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16068 # need to do runtime linking.
16069 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
16070 for ld_flag
in $LDFLAGS; do
16071 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16072 aix_use_runtimelinking
=yes
16079 exp_sym_flag
='-bexport'
16080 no_entry_flag
='-bnoentry'
16083 # When large executables or shared objects are built, AIX ld can
16084 # have problems creating the table of contents. If linking a library
16085 # or program results in "error TOC overflow" add -mminimal-toc to
16086 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16087 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16090 hardcode_direct
=yes
16091 hardcode_direct_absolute
=yes
16092 hardcode_libdir_separator
=':'
16093 link_all_deplibs
=yes
16094 file_list_spec
='${wl}-f,'
16096 if test "$GCC" = yes; then
16097 case $host_os in aix4.
[012]|aix4.
[012].
*)
16098 # We only want to do this on AIX 4.2 and lower, the check
16099 # below for broken collect2 doesn't work under 4.3+
16100 collect2name
=`${CC} -print-prog-name=collect2`
16101 if test -f "$collect2name" &&
16102 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
16104 # We have reworked collect2
16107 # We have old collect2
16108 hardcode_direct
=unsupported
16109 # It fails to find uninstalled libraries when the uninstalled
16110 # path is not listed in the libpath. Setting hardcode_minus_L
16111 # to unsupported forces relinking
16112 hardcode_minus_L
=yes
16113 hardcode_libdir_flag_spec
='-L$libdir'
16114 hardcode_libdir_separator
=
16118 shared_flag
='-shared'
16119 if test "$aix_use_runtimelinking" = yes; then
16120 shared_flag
="$shared_flag "'${wl}-G'
16124 if test "$host_cpu" = ia64
; then
16125 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16126 # chokes on -Wl,-G. The following line is correct:
16129 if test "$aix_use_runtimelinking" = yes; then
16130 shared_flag
='${wl}-G'
16132 shared_flag
='${wl}-bM:SRE'
16137 export_dynamic_flag_spec
='${wl}-bexpall'
16138 # It seems that -bexpall does not export symbols beginning with
16139 # underscore (_), so it is better to generate a list of symbols to export.
16140 always_export_symbols
=yes
16141 if test "$aix_use_runtimelinking" = yes; then
16142 # Warning - without using the other runtime loading flags (-brtl),
16143 # -berok will link without error, but may produce a broken library.
16144 allow_undefined_flag
='-berok'
16145 # Determine the default libpath from the value encoded in an
16146 # empty executable.
16147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16148 /* end confdefs.h. */
16158 if ac_fn_c_try_link
"$LINENO"; then :
16160 lt_aix_libpath_sed
='
16161 /Import File Strings/,/^$/ {
16167 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16168 # Check for a 64-bit object if we didn't find anything.
16169 if test -z "$aix_libpath"; then
16170 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16173 rm -f core conftest.err conftest.
$ac_objext \
16174 conftest
$ac_exeext conftest.
$ac_ext
16175 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16177 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16178 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"
16180 if test "$host_cpu" = ia64
; then
16181 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
16182 allow_undefined_flag
="-z nodefs"
16183 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"
16185 # Determine the default libpath from the value encoded in an
16186 # empty executable.
16187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16188 /* end confdefs.h. */
16198 if ac_fn_c_try_link
"$LINENO"; then :
16200 lt_aix_libpath_sed
='
16201 /Import File Strings/,/^$/ {
16207 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16208 # Check for a 64-bit object if we didn't find anything.
16209 if test -z "$aix_libpath"; then
16210 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16213 rm -f core conftest.err conftest.
$ac_objext \
16214 conftest
$ac_exeext conftest.
$ac_ext
16215 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16217 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16218 # Warning - without using the other run time loading flags,
16219 # -berok will link without error, but may produce a broken library.
16220 no_undefined_flag
=' ${wl}-bernotok'
16221 allow_undefined_flag
=' ${wl}-berok'
16222 if test "$with_gnu_ld" = yes; then
16223 # We only use this code for GNU lds that support --whole-archive.
16224 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16226 # Exported symbols can be pulled into shared objects from archives
16227 whole_archive_flag_spec
='$convenience'
16229 archive_cmds_need_lc
=yes
16230 # This is similar to how AIX traditionally builds its shared libraries.
16231 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'
16239 # see comment about AmigaOS4 .so support
16240 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16241 archive_expsym_cmds
=''
16244 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)'
16245 hardcode_libdir_flag_spec
='-L$libdir'
16246 hardcode_minus_L
=yes
16252 export_dynamic_flag_spec
=-rdynamic
16255 cygwin
* | mingw
* | pw32
* | cegcc
*)
16256 # When not using gcc, we currently assume that we are using
16257 # Microsoft Visual C++.
16258 # hardcode_libdir_flag_spec is actually meaningless, as there is
16259 # no search path for DLLs.
16260 hardcode_libdir_flag_spec
=' '
16261 allow_undefined_flag
=unsupported
16262 # Tell ltmain to make .lib files, not .a files.
16264 # Tell ltmain to make .dll files, not .so files.
16266 # FIXME: Setting linknames here is a bad hack.
16267 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16268 # The linker will automatically build a .lib file if we build a DLL.
16269 old_archive_from_new_cmds
='true'
16270 # FIXME: Should let the user specify the lib program.
16271 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16272 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16273 enable_shared_with_static_runtimes
=yes
16276 darwin
* | rhapsody
*)
16279 archive_cmds_need_lc
=no
16281 hardcode_automatic
=yes
16282 hardcode_shlibpath_var
=unsupported
16283 if test "$lt_cv_ld_force_load" = "yes"; then
16284 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\"`'
16286 whole_archive_flag_spec
=''
16288 link_all_deplibs
=yes
16289 allow_undefined_flag
="$_lt_dar_allow_undefined"
16290 case $cc_basename in
16291 ifort
*) _lt_dar_can_shared
=yes ;;
16292 *) _lt_dar_can_shared
=$GCC ;;
16294 if test "$_lt_dar_can_shared" = "yes"; then
16295 output_verbose_link_cmd
=func_echo_all
16296 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16297 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16298 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}"
16299 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}"
16308 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16309 hardcode_libdir_flag_spec
='-L$libdir'
16310 hardcode_shlibpath_var
=no
16313 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16314 # support. Future versions do this automatically, but an explicit c++rt0.o
16315 # does not break anything, and helps significantly (at the cost of a little
16318 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16319 hardcode_libdir_flag_spec
='-R$libdir'
16320 hardcode_direct
=yes
16321 hardcode_shlibpath_var
=no
16324 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16326 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16327 hardcode_direct
=yes
16328 hardcode_minus_L
=yes
16329 hardcode_shlibpath_var
=no
16332 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16333 freebsd
* | dragonfly
*)
16334 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16335 hardcode_libdir_flag_spec
='-R$libdir'
16336 hardcode_direct
=yes
16337 hardcode_shlibpath_var
=no
16341 if test "$GCC" = yes; then
16342 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'
16344 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'
16346 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16347 hardcode_libdir_separator
=:
16348 hardcode_direct
=yes
16350 # hardcode_minus_L: Not really in the search PATH,
16351 # but as the default location of the library.
16352 hardcode_minus_L
=yes
16353 export_dynamic_flag_spec
='${wl}-E'
16357 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16358 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16360 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16362 if test "$with_gnu_ld" = no
; then
16363 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16364 hardcode_libdir_flag_spec_ld
='+b $libdir'
16365 hardcode_libdir_separator
=:
16366 hardcode_direct
=yes
16367 hardcode_direct_absolute
=yes
16368 export_dynamic_flag_spec
='${wl}-E'
16369 # hardcode_minus_L: Not really in the search PATH,
16370 # but as the default location of the library.
16371 hardcode_minus_L
=yes
16376 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16379 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16382 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16385 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16391 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16394 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16398 # Older versions of the 11.00 compiler do not understand -b yet
16399 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16401 $as_echo_n "checking if $CC understands -b... " >&6; }
16402 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16403 $as_echo_n "(cached) " >&6
16405 lt_cv_prog_compiler__b
=no
16406 save_LDFLAGS
="$LDFLAGS"
16407 LDFLAGS
="$LDFLAGS -b"
16408 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16409 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16410 # The linker can only warn and ignore the option if not recognized
16411 # So say no if there are warnings
16412 if test -s conftest.err
; then
16413 # Append any errors to the config.log.
16414 cat conftest.err
1>&5
16415 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16416 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16417 if diff conftest.exp conftest.er2
>/dev
/null
; then
16418 lt_cv_prog_compiler__b
=yes
16421 lt_cv_prog_compiler__b
=yes
16425 LDFLAGS
="$save_LDFLAGS"
16428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16429 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16431 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16432 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16434 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16440 if test "$with_gnu_ld" = no
; then
16441 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16442 hardcode_libdir_separator
=:
16447 hardcode_shlibpath_var
=no
16450 hardcode_direct
=yes
16451 hardcode_direct_absolute
=yes
16452 export_dynamic_flag_spec
='${wl}-E'
16454 # hardcode_minus_L: Not really in the search PATH,
16455 # but as the default location of the library.
16456 hardcode_minus_L
=yes
16462 irix5
* | irix6
* | nonstopux
*)
16463 if test "$GCC" = yes; then
16464 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'
16465 # Try to use the -exported_symbol ld option, if it does not
16466 # work, assume that -exports_file does not work either and
16467 # implicitly export all symbols.
16468 save_LDFLAGS
="$LDFLAGS"
16469 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16471 /* end confdefs.h. */
16474 if ac_fn_c_try_link
"$LINENO"; then :
16475 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'
16478 rm -f core conftest.err conftest.
$ac_objext \
16479 conftest
$ac_exeext conftest.
$ac_ext
16480 LDFLAGS
="$save_LDFLAGS"
16482 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'
16483 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'
16485 archive_cmds_need_lc
='no'
16486 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16487 hardcode_libdir_separator
=:
16489 link_all_deplibs
=yes
16493 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16494 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16496 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16498 hardcode_libdir_flag_spec
='-R$libdir'
16499 hardcode_direct
=yes
16500 hardcode_shlibpath_var
=no
16504 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16505 hardcode_direct
=yes
16506 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16507 hardcode_libdir_separator
=:
16508 hardcode_shlibpath_var
=no
16515 if test -f /usr
/libexec
/ld.so
; then
16516 hardcode_direct
=yes
16517 hardcode_shlibpath_var
=no
16518 hardcode_direct_absolute
=yes
16519 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16520 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16521 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16522 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16523 export_dynamic_flag_spec
='${wl}-E'
16526 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16527 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16528 hardcode_libdir_flag_spec
='-R$libdir'
16531 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16532 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16542 hardcode_libdir_flag_spec
='-L$libdir'
16543 hardcode_minus_L
=yes
16544 allow_undefined_flag
=unsupported
16545 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'
16546 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16550 if test "$GCC" = yes; then
16551 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16552 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'
16554 allow_undefined_flag
=' -expect_unresolved \*'
16555 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'
16557 archive_cmds_need_lc
='no'
16558 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16559 hardcode_libdir_separator
=:
16562 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16563 if test "$GCC" = yes; then
16564 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16565 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'
16566 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16568 allow_undefined_flag
=' -expect_unresolved \*'
16569 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'
16570 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~
16571 $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'
16573 # Both c and cxx compiler support -rpath directly
16574 hardcode_libdir_flag_spec
='-rpath $libdir'
16576 archive_cmds_need_lc
='no'
16577 hardcode_libdir_separator
=:
16581 no_undefined_flag
=' -z defs'
16582 if test "$GCC" = yes; then
16584 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16585 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16586 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16588 case `$CC -V 2>&1` in
16591 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16592 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16593 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16597 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16598 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16599 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16603 hardcode_libdir_flag_spec
='-R$libdir'
16604 hardcode_shlibpath_var
=no
16606 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16608 # The compiler driver will combine and reorder linker options,
16609 # but understands `-z linker_flag'. GCC discards it without `$wl',
16610 # but is careful enough not to reorder.
16611 # Supported since Solaris 2.6 (maybe 2.5.1?)
16612 if test "$GCC" = yes; then
16613 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16615 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16619 link_all_deplibs
=yes
16623 if test "x$host_vendor" = xsequent
; then
16624 # Use $CC to link under sequent, because it throws in some extra .o
16625 # files that make .init and .fini sections work.
16626 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16628 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16630 hardcode_libdir_flag_spec
='-L$libdir'
16631 hardcode_direct
=yes
16632 hardcode_minus_L
=yes
16633 hardcode_shlibpath_var
=no
16637 case $host_vendor in
16639 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16640 hardcode_direct
=yes # is this really true???
16643 ## LD is ld it makes a PLAMLIB
16644 ## CC just makes a GrossModule.
16645 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16646 reload_cmds
='$CC -r -o $output$reload_objs'
16650 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16651 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16654 runpath_var
='LD_RUN_PATH'
16655 hardcode_shlibpath_var
=no
16659 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16660 hardcode_shlibpath_var
=no
16661 export_dynamic_flag_spec
='-Bexport'
16665 if test -d /usr
/nec
; then
16666 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16667 hardcode_shlibpath_var
=no
16668 runpath_var
=LD_RUN_PATH
16669 hardcode_runpath_var
=yes
16674 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16675 no_undefined_flag
='${wl}-z,text'
16676 archive_cmds_need_lc
=no
16677 hardcode_shlibpath_var
=no
16678 runpath_var
='LD_RUN_PATH'
16680 if test "$GCC" = yes; then
16681 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16682 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16684 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16685 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16689 sysv5
* | sco3.2v5
* | sco5v6
*)
16690 # Note: We can NOT use -z defs as we might desire, because we do not
16691 # link with -lc, and that would cause any symbols used from libc to
16692 # always be unresolved, which means just about no library would
16693 # ever link correctly. If we're not using GNU ld we use -z text
16694 # though, which does catch some bad symbols but isn't as heavy-handed
16696 no_undefined_flag
='${wl}-z,text'
16697 allow_undefined_flag
='${wl}-z,nodefs'
16698 archive_cmds_need_lc
=no
16699 hardcode_shlibpath_var
=no
16700 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
16701 hardcode_libdir_separator
=':'
16702 link_all_deplibs
=yes
16703 export_dynamic_flag_spec
='${wl}-Bexport'
16704 runpath_var
='LD_RUN_PATH'
16706 if test "$GCC" = yes; then
16707 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16708 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16710 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16711 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16716 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16717 hardcode_libdir_flag_spec
='-L$libdir'
16718 hardcode_shlibpath_var
=no
16726 if test x
$host_vendor = xsni
; then
16728 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
16729 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16736 $as_echo "$ld_shlibs" >&6; }
16737 test "$ld_shlibs" = no
&& can_build_shared
=no
16739 with_gnu_ld
=$with_gnu_ld
16756 # Do we need to explicitly link libc?
16758 case "x$archive_cmds_need_lc" in
16760 # Assume -lc should be added
16761 archive_cmds_need_lc
=yes
16763 if test "$enable_shared" = yes && test "$GCC" = yes; then
16764 case $archive_cmds in
16766 # FIXME: we may have to deal with multi-command sequences.
16769 # Test whether the compiler implicitly links with -lc since on some
16770 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16771 # to ld, don't add -lc before -lgcc.
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16773 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16774 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16775 $as_echo_n "(cached) " >&6
16778 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16780 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16781 (eval $ac_compile) 2>&5
16783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16784 test $ac_status = 0; } 2>conftest.err
; then
16787 libobjs
=conftest.
$ac_objext
16789 wl
=$lt_prog_compiler_wl
16790 pic_flag
=$lt_prog_compiler_pic
16796 lt_save_allow_undefined_flag
=$allow_undefined_flag
16797 allow_undefined_flag
=
16798 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16799 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16802 test $ac_status = 0; }
16804 lt_cv_archive_cmds_need_lc
=no
16806 lt_cv_archive_cmds_need_lc
=yes
16808 allow_undefined_flag
=$lt_save_allow_undefined_flag
16810 cat conftest.err
1>&5
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16816 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16817 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16981 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16983 if test "$GCC" = yes; then
16985 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
16986 *) lt_awk_arg
="/^libraries:/" ;;
16989 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
16990 *) lt_sed_strip_eq
="s,=/,/,g" ;;
16992 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16993 case $lt_search_path_spec in
16995 # if the path contains ";" then we assume it to be the separator
16996 # otherwise default to the standard path separator (i.e. ":") - it is
16997 # assumed that no part of a normal pathname contains ";" but that should
16998 # okay in the real world where ";" in dirpaths is itself problematic.
16999 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17002 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17005 # Ok, now we have the path, separated by spaces, we can step through it
17006 # and add multilib dir if necessary.
17007 lt_tmp_lt_search_path_spec
=
17008 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17009 for lt_sys_path
in $lt_search_path_spec; do
17010 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17011 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17013 test -d "$lt_sys_path" && \
17014 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
17017 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17018 BEGIN {RS=" "; FS="/|\n";} {
17021 for (lt_i = NF; lt_i > 0; lt_i--) {
17022 if ($lt_i != "" && $lt_i != ".") {
17023 if ($lt_i == "..") {
17026 if (lt_count == 0) {
17027 lt_foo="/" $lt_i lt_foo;
17034 if (lt_foo != "") { lt_freq[lt_foo]++; }
17035 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17037 # AWK program above erroneously prepends '/' to C:/dos/paths
17040 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
17041 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17043 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17045 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17047 library_names_spec
=
17048 libname_spec
='lib$name'
17052 postuninstall_cmds
=
17056 shlibpath_overrides_runpath
=unknown
17058 dynamic_linker
="$host_os ld.so"
17059 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17060 need_lib_prefix
=unknown
17061 hardcode_into_libs
=no
17063 # when you set need_version to no, make sure it does not cause -set_version
17064 # flags to be left without arguments
17065 need_version
=unknown
17070 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17071 shlibpath_var
=LIBPATH
17073 # AIX 3 has no versioning support, so we append a major version to the name.
17074 soname_spec
='${libname}${release}${shared_ext}$major'
17081 hardcode_into_libs
=yes
17082 if test "$host_cpu" = ia64
; then
17083 # AIX 5 supports IA64
17084 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17085 shlibpath_var
=LD_LIBRARY_PATH
17087 # With GCC up to 2.95.x, collect2 would create an import file
17088 # for dependence libraries. The import file would start with
17089 # the line `#! .'. This would cause the generated library to
17090 # depend on `.', always an invalid library. This was fixed in
17091 # development snapshots of GCC prior to 3.0.
17093 aix4 | aix4.
[01] | aix4.
[01].
*)
17094 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17096 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
17099 can_build_shared
=no
17103 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17104 # soname into executable. Probably we can add versioning support to
17105 # collect2, so additional links can be useful in future.
17106 if test "$aix_use_runtimelinking" = yes; then
17107 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17108 # instead of lib<name>.a to let people know that these are not
17109 # typical AIX shared libraries.
17110 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17112 # We preserve .a as extension for shared libraries through AIX4.2
17113 # and later when we are not doing run time linking.
17114 library_names_spec
='${libname}${release}.a $libname.a'
17115 soname_spec
='${libname}${release}${shared_ext}$major'
17117 shlibpath_var
=LIBPATH
17124 # Since July 2007 AmigaOS4 officially supports .so libraries.
17125 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17126 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17129 library_names_spec
='$libname.ixlibrary $libname.a'
17130 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17131 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'
17137 library_names_spec
='${libname}${shared_ext}'
17138 dynamic_linker
="$host_os ld.so"
17139 shlibpath_var
=LIBRARY_PATH
17145 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17146 soname_spec
='${libname}${release}${shared_ext}$major'
17147 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17148 shlibpath_var
=LD_LIBRARY_PATH
17149 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17150 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17151 # the default ld.so.conf also contains /usr/contrib/lib and
17152 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17153 # libtool to hard-code these into programs
17156 cygwin
* | mingw
* | pw32
* | cegcc
*)
17157 version_type
=windows
17162 case $GCC,$host_os in
17163 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
17164 library_names_spec
='$libname.dll.a'
17165 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17166 postinstall_cmds
='base_file=`basename \${file}`~
17167 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17168 dldir=$destdir/`dirname \$dlpath`~
17169 test -d \$dldir || mkdir -p \$dldir~
17170 $install_prog $dir/$dlname \$dldir/$dlname~
17171 chmod a+x \$dldir/$dlname~
17172 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17173 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17175 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17176 dlpath=$dir/\$dldll~
17178 shlibpath_overrides_runpath
=yes
17182 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17183 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17185 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
17188 # MinGW DLLs use traditional 'lib' prefix
17189 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17192 # pw32 DLLs use 'pw' prefix rather than 'lib'
17193 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17199 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17202 dynamic_linker
='Win32 ld.exe'
17203 # FIXME: first we should search . and the directory the executable is in
17207 darwin
* | rhapsody
*)
17208 dynamic_linker
="$host_os dyld"
17209 version_type
=darwin
17212 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17213 soname_spec
='${libname}${release}${major}$shared_ext'
17214 shlibpath_overrides_runpath
=yes
17215 shlibpath_var
=DYLD_LIBRARY_PATH
17216 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17218 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17219 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17226 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17227 soname_spec
='${libname}${release}${shared_ext}$major'
17228 shlibpath_var
=LD_LIBRARY_PATH
17231 freebsd
* | dragonfly
*)
17232 # DragonFly does not have aout. When/if they implement a new
17233 # versioning mechanism, adjust this.
17234 if test -x /usr
/bin
/objformat
; then
17235 objformat
=`/usr/bin/objformat`
17238 freebsd
[123]*) objformat
=aout
;;
17239 *) objformat
=elf
;;
17242 version_type
=freebsd-
$objformat
17243 case $version_type in
17245 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17250 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17254 shlibpath_var
=LD_LIBRARY_PATH
17257 shlibpath_overrides_runpath
=yes
17259 freebsd3.
[01]* | freebsdelf3.
[01]*)
17260 shlibpath_overrides_runpath
=yes
17261 hardcode_into_libs
=yes
17263 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17264 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17265 shlibpath_overrides_runpath
=no
17266 hardcode_into_libs
=yes
17268 *) # from 4.6 on, and DragonFly
17269 shlibpath_overrides_runpath
=yes
17270 hardcode_into_libs
=yes
17279 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17280 soname_spec
='${libname}${release}${shared_ext}$major'
17281 shlibpath_var
=LD_LIBRARY_PATH
17282 hardcode_into_libs
=yes
17289 dynamic_linker
="$host_os runtime_loader"
17290 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17291 soname_spec
='${libname}${release}${shared_ext}$major'
17292 shlibpath_var
=LIBRARY_PATH
17293 shlibpath_overrides_runpath
=yes
17294 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17295 hardcode_into_libs
=yes
17298 hpux9
* | hpux10
* | hpux11
*)
17299 # Give a soname corresponding to the major version so that dld.sl refuses to
17300 # link against other versions.
17307 hardcode_into_libs
=yes
17308 dynamic_linker
="$host_os dld.so"
17309 shlibpath_var
=LD_LIBRARY_PATH
17310 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17311 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17312 soname_spec
='${libname}${release}${shared_ext}$major'
17313 if test "X$HPUX_IA64_MODE" = X32
; then
17314 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17316 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17318 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17322 hardcode_into_libs
=yes
17323 dynamic_linker
="$host_os dld.sl"
17324 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17325 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17326 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17327 soname_spec
='${libname}${release}${shared_ext}$major'
17328 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17329 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17333 dynamic_linker
="$host_os dld.sl"
17334 shlibpath_var
=SHLIB_PATH
17335 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17336 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17337 soname_spec
='${libname}${release}${shared_ext}$major'
17340 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17341 postinstall_cmds
='chmod 555 $lib'
17342 # or fails outright, so override atomically:
17343 install_override_mode
=555
17350 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17351 soname_spec
='${libname}${release}${shared_ext}$major'
17352 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17353 shlibpath_var
=LD_LIBRARY_PATH
17354 shlibpath_overrides_runpath
=no
17355 hardcode_into_libs
=yes
17358 irix5
* | irix6
* | nonstopux
*)
17360 nonstopux
*) version_type
=nonstopux
;;
17362 if test "$lt_cv_prog_gnu_ld" = yes; then
17370 soname_spec
='${libname}${release}${shared_ext}$major'
17371 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17373 irix5
* | nonstopux
*)
17374 libsuff
= shlibsuff
=
17377 case $LD in # libtool.m4 will add one of these switches to LD
17378 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17379 libsuff
= shlibsuff
= libmagic
=32-bit;;
17380 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17381 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17382 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17383 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17384 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17388 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17389 shlibpath_overrides_runpath
=no
17390 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17391 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17392 hardcode_into_libs
=yes
17395 # No shared lib support for Linux oldld, aout, or coff.
17396 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17400 # This must be Linux ELF.
17401 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17405 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17406 soname_spec
='${libname}${release}${shared_ext}$major'
17407 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17408 shlibpath_var
=LD_LIBRARY_PATH
17409 shlibpath_overrides_runpath
=no
17411 # Some binutils ld are patched to set DT_RUNPATH
17412 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17413 $as_echo_n "(cached) " >&6
17415 lt_cv_shlibpath_overrides_runpath
=no
17416 save_LDFLAGS
=$LDFLAGS
17417 save_libdir
=$libdir
17418 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17419 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17421 /* end confdefs.h. */
17431 if ac_fn_c_try_link
"$LINENO"; then :
17432 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17433 lt_cv_shlibpath_overrides_runpath
=yes
17436 rm -f core conftest.err conftest.
$ac_objext \
17437 conftest
$ac_exeext conftest.
$ac_ext
17438 LDFLAGS
=$save_LDFLAGS
17439 libdir
=$save_libdir
17443 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17445 # This implies no fast_install, which is unacceptable.
17446 # Some rework will be needed to allow for fast_install
17447 # before this can be enabled.
17448 hardcode_into_libs
=yes
17450 # Append ld.so.conf contents to the search path
17451 if test -f /etc
/ld.so.conf
; then
17452 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' ' '`
17453 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17456 # We used to test for /lib/ld.so.1 and disable shared libraries on
17457 # powerpc, because MkLinux only supported shared libraries with the
17458 # GNU dynamic linker. Since this was broken with cross compilers,
17459 # most powerpc-linux boxes support dynamic linking these days and
17460 # people can always --disable-shared, the test was removed, and we
17461 # assume the GNU/Linux dynamic linker is in use.
17462 dynamic_linker
='GNU/Linux ld.so'
17469 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17470 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17471 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17472 dynamic_linker
='NetBSD (a.out) ld.so'
17474 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17475 soname_spec
='${libname}${release}${shared_ext}$major'
17476 dynamic_linker
='NetBSD ld.elf_so'
17478 shlibpath_var
=LD_LIBRARY_PATH
17479 shlibpath_overrides_runpath
=yes
17480 hardcode_into_libs
=yes
17485 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17486 shlibpath_var
=LD_LIBRARY_PATH
17487 shlibpath_overrides_runpath
=yes
17494 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17495 soname_spec
='${libname}${release}${shared_ext}$major'
17496 shlibpath_var
=LD_LIBRARY_PATH
17497 shlibpath_overrides_runpath
=no
17498 hardcode_into_libs
=yes
17499 dynamic_linker
='ldqnx.so'
17504 sys_lib_dlsearch_path_spec
="/usr/lib"
17506 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17508 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17509 *) need_version
=no
;;
17511 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17512 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17513 shlibpath_var
=LD_LIBRARY_PATH
17514 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17516 openbsd2.
[89] | openbsd2.
[89].
*)
17517 shlibpath_overrides_runpath
=no
17520 shlibpath_overrides_runpath
=yes
17524 shlibpath_overrides_runpath
=yes
17529 libname_spec
='$name'
17532 library_names_spec
='$libname${shared_ext} $libname.a'
17533 dynamic_linker
='OS/2 ld.exe'
17534 shlibpath_var
=LIBPATH
17537 osf3
* | osf4
* | osf5
*)
17541 soname_spec
='${libname}${release}${shared_ext}$major'
17542 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17543 shlibpath_var
=LD_LIBRARY_PATH
17544 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17545 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17556 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17557 soname_spec
='${libname}${release}${shared_ext}$major'
17558 shlibpath_var
=LD_LIBRARY_PATH
17559 shlibpath_overrides_runpath
=yes
17560 hardcode_into_libs
=yes
17561 # ldd complains unless libraries are executable
17562 postinstall_cmds
='chmod +x $lib'
17567 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17568 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17569 shlibpath_var
=LD_LIBRARY_PATH
17570 shlibpath_overrides_runpath
=yes
17571 if test "$with_gnu_ld" = yes; then
17579 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17580 soname_spec
='${libname}${release}${shared_ext}$major'
17581 shlibpath_var
=LD_LIBRARY_PATH
17582 case $host_vendor in
17584 shlibpath_overrides_runpath
=no
17586 runpath_var
=LD_RUN_PATH
17594 shlibpath_overrides_runpath
=no
17595 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17601 if test -d /usr
/nec
;then
17603 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17604 soname_spec
='$libname${shared_ext}.$major'
17605 shlibpath_var
=LD_LIBRARY_PATH
17609 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17610 version_type
=freebsd-elf
17613 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17614 soname_spec
='${libname}${release}${shared_ext}$major'
17615 shlibpath_var
=LD_LIBRARY_PATH
17616 shlibpath_overrides_runpath
=yes
17617 hardcode_into_libs
=yes
17618 if test "$with_gnu_ld" = yes; then
17619 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17621 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17624 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17628 sys_lib_dlsearch_path_spec
='/usr/lib'
17632 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17636 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17637 shlibpath_var
=LD_LIBRARY_PATH
17638 shlibpath_overrides_runpath
=no
17639 hardcode_into_libs
=yes
17644 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17645 soname_spec
='${libname}${release}${shared_ext}$major'
17646 shlibpath_var
=LD_LIBRARY_PATH
17653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17654 $as_echo "$dynamic_linker" >&6; }
17655 test "$dynamic_linker" = no
&& can_build_shared
=no
17657 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17658 if test "$GCC" = yes; then
17659 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17662 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17663 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17665 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17666 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
17760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17761 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17763 if test -n "$hardcode_libdir_flag_spec" ||
17764 test -n "$runpath_var" ||
17765 test "X$hardcode_automatic" = "Xyes" ; then
17767 # We can hardcode non-existent directories.
17768 if test "$hardcode_direct" != no
&&
17769 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17770 # have to relink, otherwise we might link with an installed library
17771 # when we should be linking with a yet-to-be-installed one
17772 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17773 test "$hardcode_minus_L" != no
; then
17774 # Linking always hardcodes the temporary library directory.
17775 hardcode_action
=relink
17777 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17778 hardcode_action
=immediate
17781 # We cannot hardcode anything, or else we can only hardcode existing
17783 hardcode_action
=unsupported
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17786 $as_echo "$hardcode_action" >&6; }
17788 if test "$hardcode_action" = relink ||
17789 test "$inherit_rpath" = yes; then
17790 # Fast installation is not supported
17791 enable_fast_install
=no
17792 elif test "$shlibpath_overrides_runpath" = yes ||
17793 test "$enable_shared" = no
; then
17794 # Fast installation is not necessary
17795 enable_fast_install
=needless
17803 if test "x$enable_dlopen" != xyes
; then
17804 enable_dlopen
=unknown
17805 enable_dlopen_self
=unknown
17806 enable_dlopen_self_static
=unknown
17813 lt_cv_dlopen
="load_add_on"
17815 lt_cv_dlopen_self
=yes
17818 mingw
* | pw32
* | cegcc
*)
17819 lt_cv_dlopen
="LoadLibrary"
17824 lt_cv_dlopen
="dlopen"
17829 # if libdl is installed we need to link against it
17830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17831 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17832 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17833 $as_echo_n "(cached) " >&6
17835 ac_check_lib_save_LIBS
=$LIBS
17837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17838 /* end confdefs.h. */
17840 /* Override any GCC internal prototype to avoid an error.
17841 Use char because int might match the return type of a GCC
17842 builtin and then its argument prototype would still apply. */
17855 if ac_fn_c_try_link
"$LINENO"; then :
17856 ac_cv_lib_dl_dlopen
=yes
17858 ac_cv_lib_dl_dlopen
=no
17860 rm -f core conftest.err conftest.
$ac_objext \
17861 conftest
$ac_exeext conftest.
$ac_ext
17862 LIBS
=$ac_check_lib_save_LIBS
17864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17865 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17866 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17867 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17870 lt_cv_dlopen
="dyld"
17872 lt_cv_dlopen_self
=yes
17879 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
17880 if test "x$ac_cv_func_shl_load" = x
""yes; then :
17881 lt_cv_dlopen
="shl_load"
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17884 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17885 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17886 $as_echo_n "(cached) " >&6
17888 ac_check_lib_save_LIBS
=$LIBS
17890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17891 /* end confdefs.h. */
17893 /* Override any GCC internal prototype to avoid an error.
17894 Use char because int might match the return type of a GCC
17895 builtin and then its argument prototype would still apply. */
17903 return shl_load ();
17908 if ac_fn_c_try_link
"$LINENO"; then :
17909 ac_cv_lib_dld_shl_load
=yes
17911 ac_cv_lib_dld_shl_load
=no
17913 rm -f core conftest.err conftest.
$ac_objext \
17914 conftest
$ac_exeext conftest.
$ac_ext
17915 LIBS
=$ac_check_lib_save_LIBS
17917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17918 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17919 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
17920 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
17922 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
17923 if test "x$ac_cv_func_dlopen" = x
""yes; then :
17924 lt_cv_dlopen
="dlopen"
17926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17927 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17928 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17929 $as_echo_n "(cached) " >&6
17931 ac_check_lib_save_LIBS
=$LIBS
17933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17934 /* end confdefs.h. */
17936 /* Override any GCC internal prototype to avoid an error.
17937 Use char because int might match the return type of a GCC
17938 builtin and then its argument prototype would still apply. */
17951 if ac_fn_c_try_link
"$LINENO"; then :
17952 ac_cv_lib_dl_dlopen
=yes
17954 ac_cv_lib_dl_dlopen
=no
17956 rm -f core conftest.err conftest.
$ac_objext \
17957 conftest
$ac_exeext conftest.
$ac_ext
17958 LIBS
=$ac_check_lib_save_LIBS
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17961 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17962 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17963 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17966 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17967 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17968 $as_echo_n "(cached) " >&6
17970 ac_check_lib_save_LIBS
=$LIBS
17971 LIBS
="-lsvld $LIBS"
17972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17973 /* end confdefs.h. */
17975 /* Override any GCC internal prototype to avoid an error.
17976 Use char because int might match the return type of a GCC
17977 builtin and then its argument prototype would still apply. */
17990 if ac_fn_c_try_link
"$LINENO"; then :
17991 ac_cv_lib_svld_dlopen
=yes
17993 ac_cv_lib_svld_dlopen
=no
17995 rm -f core conftest.err conftest.
$ac_objext \
17996 conftest
$ac_exeext conftest.
$ac_ext
17997 LIBS
=$ac_check_lib_save_LIBS
17999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18000 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18001 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
18002 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
18004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18005 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18006 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18007 $as_echo_n "(cached) " >&6
18009 ac_check_lib_save_LIBS
=$LIBS
18011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18012 /* end confdefs.h. */
18014 /* Override any GCC internal prototype to avoid an error.
18015 Use char because int might match the return type of a GCC
18016 builtin and then its argument prototype would still apply. */
18024 return dld_link ();
18029 if ac_fn_c_try_link
"$LINENO"; then :
18030 ac_cv_lib_dld_dld_link
=yes
18032 ac_cv_lib_dld_dld_link
=no
18034 rm -f core conftest.err conftest.
$ac_objext \
18035 conftest
$ac_exeext conftest.
$ac_ext
18036 LIBS
=$ac_check_lib_save_LIBS
18038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18039 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18040 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
18041 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
18062 if test "x$lt_cv_dlopen" != xno
; then
18068 case $lt_cv_dlopen in
18070 save_CPPFLAGS
="$CPPFLAGS"
18071 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
18073 save_LDFLAGS
="$LDFLAGS"
18074 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
18077 LIBS
="$lt_cv_dlopen_libs $LIBS"
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18080 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18081 if test "${lt_cv_dlopen_self+set}" = set; then :
18082 $as_echo_n "(cached) " >&6
18084 if test "$cross_compiling" = yes; then :
18085 lt_cv_dlopen_self
=cross
18087 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18088 lt_status
=$lt_dlunknown
18089 cat > conftest.
$ac_ext <<_LT_EOF
18090 #line 18090 "configure"
18091 #include "confdefs.h"
18100 # define LT_DLGLOBAL RTLD_GLOBAL
18103 # define LT_DLGLOBAL DL_GLOBAL
18105 # define LT_DLGLOBAL 0
18109 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18110 find out it does not work in some platform. */
18111 #ifndef LT_DLLAZY_OR_NOW
18113 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18116 # define LT_DLLAZY_OR_NOW DL_LAZY
18119 # define LT_DLLAZY_OR_NOW RTLD_NOW
18122 # define LT_DLLAZY_OR_NOW DL_NOW
18124 # define LT_DLLAZY_OR_NOW 0
18131 /* When -fvisbility=hidden is used, assume the code has been annotated
18132 correspondingly for the symbols needed. */
18133 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18134 void fnord () __attribute__((visibility("default")));
18137 void fnord () { int i=42; }
18140 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18141 int status = $lt_dlunknown;
18145 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18148 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18149 else puts (dlerror ());
18151 /* dlclose (self); */
18159 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18160 (eval $ac_link) 2>&5
18162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18163 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18164 (.
/conftest
; exit; ) >&5 2>/dev
/null
18166 case x
$lt_status in
18167 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
18168 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
18169 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
18172 # compilation failed
18173 lt_cv_dlopen_self
=no
18180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18181 $as_echo "$lt_cv_dlopen_self" >&6; }
18183 if test "x$lt_cv_dlopen_self" = xyes
; then
18184 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
18185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18186 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18187 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18188 $as_echo_n "(cached) " >&6
18190 if test "$cross_compiling" = yes; then :
18191 lt_cv_dlopen_self_static
=cross
18193 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18194 lt_status
=$lt_dlunknown
18195 cat > conftest.
$ac_ext <<_LT_EOF
18196 #line 18196 "configure"
18197 #include "confdefs.h"
18206 # define LT_DLGLOBAL RTLD_GLOBAL
18209 # define LT_DLGLOBAL DL_GLOBAL
18211 # define LT_DLGLOBAL 0
18215 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18216 find out it does not work in some platform. */
18217 #ifndef LT_DLLAZY_OR_NOW
18219 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18222 # define LT_DLLAZY_OR_NOW DL_LAZY
18225 # define LT_DLLAZY_OR_NOW RTLD_NOW
18228 # define LT_DLLAZY_OR_NOW DL_NOW
18230 # define LT_DLLAZY_OR_NOW 0
18237 /* When -fvisbility=hidden is used, assume the code has been annotated
18238 correspondingly for the symbols needed. */
18239 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18240 void fnord () __attribute__((visibility("default")));
18243 void fnord () { int i=42; }
18246 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18247 int status = $lt_dlunknown;
18251 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18254 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18255 else puts (dlerror ());
18257 /* dlclose (self); */
18265 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18266 (eval $ac_link) 2>&5
18268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18269 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18270 (.
/conftest
; exit; ) >&5 2>/dev
/null
18272 case x
$lt_status in
18273 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18274 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18275 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18278 # compilation failed
18279 lt_cv_dlopen_self_static
=no
18286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18287 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18290 CPPFLAGS
="$save_CPPFLAGS"
18291 LDFLAGS
="$save_LDFLAGS"
18296 case $lt_cv_dlopen_self in
18297 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18298 *) enable_dlopen_self
=unknown
;;
18301 case $lt_cv_dlopen_self_static in
18302 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18303 *) enable_dlopen_self_static
=unknown
;;
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18326 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18327 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18328 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18329 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18331 $as_echo "yes" >&6; }
18333 # FIXME - insert some real tests, host_os isn't really good enough
18336 if test -n "$STRIP" ; then
18337 striplib
="$STRIP -x"
18338 old_striplib
="$STRIP -S"
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18340 $as_echo "yes" >&6; }
18342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18343 $as_echo "no" >&6; }
18347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18348 $as_echo "no" >&6; }
18364 # Report which library types will actually be built
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18366 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18368 $as_echo "$can_build_shared" >&6; }
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18371 $as_echo_n "checking whether to build shared libraries... " >&6; }
18372 test "$can_build_shared" = "no" && enable_shared
=no
18374 # On AIX, shared libraries and static libraries use the same namespace, and
18375 # are all built from PIC.
18378 test "$enable_shared" = yes && enable_static
=no
18379 if test -n "$RANLIB"; then
18380 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18381 postinstall_cmds
='$RANLIB $lib'
18386 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18387 test "$enable_shared" = yes && enable_static
=no
18391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18392 $as_echo "$enable_shared" >&6; }
18394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18395 $as_echo_n "checking whether to build static libraries... " >&6; }
18396 # Make sure either enable_shared or enable_static is yes.
18397 test "$enable_shared" = yes || enable_static
=yes
18398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18399 $as_echo "$enable_static" >&6; }
18406 ac_cpp
='$CPP $CPPFLAGS'
18407 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18408 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18409 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18413 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18414 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18415 (test "X$CXX" != "Xg++"))) ; then
18417 ac_cpp
='$CXXCPP $CPPFLAGS'
18418 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18419 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18420 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18422 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18423 if test -z "$CXXCPP"; then
18424 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18425 $as_echo_n "(cached) " >&6
18427 # Double quotes because CXXCPP needs to be expanded
18428 for CXXCPP
in "$CXX -E" "/lib/cpp"
18430 ac_preproc_ok
=false
18431 for ac_cxx_preproc_warn_flag
in '' yes
18433 # Use a header file that comes with gcc, so configuring glibc
18434 # with a fresh cross-compiler works.
18435 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18436 # <limits.h> exists even on freestanding compilers.
18437 # On the NeXT, cc -E runs the code through the compiler's parser,
18438 # not just through cpp. "Syntax error" is here to catch this case.
18439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18440 /* end confdefs.h. */
18442 # include <limits.h>
18444 # include <assert.h>
18448 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18451 # Broken: fails on valid input.
18454 rm -f conftest.err conftest.
$ac_ext
18456 # OK, works on sane cases. Now check whether nonexistent headers
18457 # can be detected and how.
18458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18459 /* end confdefs.h. */
18460 #include <ac_nonexistent.h>
18462 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18463 # Broken: success on invalid input.
18466 # Passes both tests.
18470 rm -f conftest.err conftest.
$ac_ext
18473 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18474 rm -f conftest.err conftest.
$ac_ext
18475 if $ac_preproc_ok; then :
18480 ac_cv_prog_CXXCPP
=$CXXCPP
18483 CXXCPP
=$ac_cv_prog_CXXCPP
18485 ac_cv_prog_CXXCPP
=$CXXCPP
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18488 $as_echo "$CXXCPP" >&6; }
18489 ac_preproc_ok
=false
18490 for ac_cxx_preproc_warn_flag
in '' yes
18492 # Use a header file that comes with gcc, so configuring glibc
18493 # with a fresh cross-compiler works.
18494 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18495 # <limits.h> exists even on freestanding compilers.
18496 # On the NeXT, cc -E runs the code through the compiler's parser,
18497 # not just through cpp. "Syntax error" is here to catch this case.
18498 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18499 /* end confdefs.h. */
18501 # include <limits.h>
18503 # include <assert.h>
18507 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18510 # Broken: fails on valid input.
18513 rm -f conftest.err conftest.
$ac_ext
18515 # OK, works on sane cases. Now check whether nonexistent headers
18516 # can be detected and how.
18517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18518 /* end confdefs.h. */
18519 #include <ac_nonexistent.h>
18521 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18522 # Broken: success on invalid input.
18525 # Passes both tests.
18529 rm -f conftest.err conftest.
$ac_ext
18532 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18533 rm -f conftest.err conftest.
$ac_ext
18534 if $ac_preproc_ok; then :
18537 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18539 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18540 See \`config.log' for more details." "$LINENO" 5; }
18544 ac_cpp
='$CPP $CPPFLAGS'
18545 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18546 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18547 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18550 _lt_caught_CXX_error
=yes
18554 ac_cpp
='$CXXCPP $CPPFLAGS'
18555 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18556 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18557 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18559 archive_cmds_need_lc_CXX
=no
18560 allow_undefined_flag_CXX
=
18561 always_export_symbols_CXX
=no
18562 archive_expsym_cmds_CXX
=
18563 compiler_needs_object_CXX
=no
18564 export_dynamic_flag_spec_CXX
=
18565 hardcode_direct_CXX
=no
18566 hardcode_direct_absolute_CXX
=no
18567 hardcode_libdir_flag_spec_CXX
=
18568 hardcode_libdir_flag_spec_ld_CXX
=
18569 hardcode_libdir_separator_CXX
=
18570 hardcode_minus_L_CXX
=no
18571 hardcode_shlibpath_var_CXX
=unsupported
18572 hardcode_automatic_CXX
=no
18573 inherit_rpath_CXX
=no
18575 module_expsym_cmds_CXX
=
18576 link_all_deplibs_CXX
=unknown
18577 old_archive_cmds_CXX
=$old_archive_cmds
18578 reload_flag_CXX
=$reload_flag
18579 reload_cmds_CXX
=$reload_cmds
18580 no_undefined_flag_CXX
=
18581 whole_archive_flag_spec_CXX
=
18582 enable_shared_with_static_runtimes_CXX
=no
18584 # Source file extension for C++ test sources.
18587 # Object file extension for compiled C++ test sources.
18591 # No sense in running all these tests if we already determined that
18592 # the CXX compiler isn't working. Some variables (like enable_shared)
18593 # are currently assumed to apply to all compilers on this platform,
18594 # and will be corrupted by setting them based on a non-working compiler.
18595 if test "$_lt_caught_CXX_error" != yes; then
18596 # Code to be used in simple compile tests
18597 lt_simple_compile_test_code
="int some_variable = 0;"
18599 # Code to be used in simple link tests
18600 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18602 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18609 # If no C compiler was specified, use CC.
18612 # If no C compiler flags were specified, use CFLAGS.
18613 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18615 # Allow CC to be a program name with arguments.
18619 # save warnings/boilerplate of simple test code
18620 ac_outfile
=conftest.
$ac_objext
18621 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18622 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18623 _lt_compiler_boilerplate
=`cat conftest.err`
18626 ac_outfile
=conftest.
$ac_objext
18627 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18628 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18629 _lt_linker_boilerplate
=`cat conftest.err`
18633 # Allow CC to be a program name with arguments.
18638 lt_save_with_gnu_ld
=$with_gnu_ld
18639 lt_save_path_LD
=$lt_cv_path_LD
18640 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18641 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18643 $as_unset lt_cv_prog_gnu_ld
18645 if test -n "${lt_cv_path_LDCXX+set}"; then
18646 lt_cv_path_LD
=$lt_cv_path_LDCXX
18648 $as_unset lt_cv_path_LD
18650 test -z "${LDCXX+set}" || LD
=$LDCXX
18654 for cc_temp
in $compiler""; do
18656 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18657 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18662 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18665 if test -n "$compiler"; then
18666 # We don't want -fno-exception when compiling C++ code, so set the
18667 # no_builtin_flag separately
18668 if test "$GXX" = yes; then
18669 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
18671 lt_prog_compiler_no_builtin_flag_CXX
=
18674 if test "$GXX" = yes; then
18675 # Set up default GNU C++ configuration
18679 # Check whether --with-gnu-ld was given.
18680 if test "${with_gnu_ld+set}" = set; then :
18681 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
18687 if test "$GCC" = yes; then
18688 # Check if gcc -print-prog-name=ld gives a path.
18689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18690 $as_echo_n "checking for ld used by $CC... " >&6; }
18693 # gcc leaves a trailing carriage return which upsets mingw
18694 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18696 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
18699 # Accept absolute paths.
18701 re_direlt
='/[^/][^/]*/\.\./'
18702 # Canonicalize the pathname of ld
18703 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18704 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
18705 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18707 test -z "$LD" && LD
="$ac_prog"
18710 # If it fails, then pretend we aren't using GCC.
18714 # If it is relative, then search for the first ld in PATH.
18715 with_gnu_ld
=unknown
18718 elif test "$with_gnu_ld" = yes; then
18719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18720 $as_echo_n "checking for GNU ld... " >&6; }
18722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18723 $as_echo_n "checking for non-GNU ld... " >&6; }
18725 if test "${lt_cv_path_LD+set}" = set; then :
18726 $as_echo_n "(cached) " >&6
18728 if test -z "$LD"; then
18729 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
18730 for ac_dir
in $PATH; do
18732 test -z "$ac_dir" && ac_dir
=.
18733 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
18734 lt_cv_path_LD
="$ac_dir/$ac_prog"
18735 # Check to see if the program is GNU ld. I'd rather use --version,
18736 # but apparently some variants of GNU ld only accept -v.
18737 # Break only if it was the GNU/non-GNU ld that we prefer.
18738 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18739 *GNU
* |
*'with BFD'*)
18740 test "$with_gnu_ld" != no
&& break
18743 test "$with_gnu_ld" != yes && break
18750 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
18754 LD
="$lt_cv_path_LD"
18755 if test -n "$LD"; then
18756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18757 $as_echo "$LD" >&6; }
18759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18760 $as_echo "no" >&6; }
18762 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
18763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18764 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18765 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18766 $as_echo_n "(cached) " >&6
18768 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18769 case `$LD -v 2>&1 </dev/null` in
18770 *GNU
* |
*'with BFD'*)
18771 lt_cv_prog_gnu_ld
=yes
18774 lt_cv_prog_gnu_ld
=no
18778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18779 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18780 with_gnu_ld
=$lt_cv_prog_gnu_ld
18788 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18789 # archiving commands below assume that GNU ld is being used.
18790 if test "$with_gnu_ld" = yes; then
18791 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18792 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'
18794 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18795 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18797 # If archive_cmds runs LD, not CC, wlarc should be empty
18798 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18799 # investigate it a little bit more. (MM)
18802 # ancient GNU ld didn't support --whole-archive et. al.
18803 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18804 $GREP 'no-whole-archive' > /dev
/null
; then
18805 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18807 whole_archive_flag_spec_CXX
=
18813 # A generic and very simple default shared library creation
18814 # command for GNU C++ for the case where it uses the native
18815 # linker, instead of GNU ld. If possible, this setting should
18816 # overridden to take advantage of the native linker features on
18817 # the platform it is being used on.
18818 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18821 # Commands to make compiler produce verbose output that lists
18822 # what "hidden" libraries, object files and flags are used when
18823 # linking a shared library.
18824 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18832 # PORTME: fill in a description of your system's C++ link characteristics
18833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18834 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18838 # FIXME: insert proper C++ library support
18842 if test "$host_cpu" = ia64
; then
18843 # On IA64, the linker does run time linking by default, so we don't
18844 # have to do anything special.
18845 aix_use_runtimelinking
=no
18846 exp_sym_flag
='-Bexport'
18849 aix_use_runtimelinking
=no
18851 # Test if we are trying to use run time linking or normal
18852 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18853 # need to do runtime linking.
18854 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
18855 for ld_flag
in $LDFLAGS; do
18858 aix_use_runtimelinking
=yes
18866 exp_sym_flag
='-bexport'
18867 no_entry_flag
='-bnoentry'
18870 # When large executables or shared objects are built, AIX ld can
18871 # have problems creating the table of contents. If linking a library
18872 # or program results in "error TOC overflow" add -mminimal-toc to
18873 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18874 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18876 archive_cmds_CXX
=''
18877 hardcode_direct_CXX
=yes
18878 hardcode_direct_absolute_CXX
=yes
18879 hardcode_libdir_separator_CXX
=':'
18880 link_all_deplibs_CXX
=yes
18881 file_list_spec_CXX
='${wl}-f,'
18883 if test "$GXX" = yes; then
18884 case $host_os in aix4.
[012]|aix4.
[012].
*)
18885 # We only want to do this on AIX 4.2 and lower, the check
18886 # below for broken collect2 doesn't work under 4.3+
18887 collect2name
=`${CC} -print-prog-name=collect2`
18888 if test -f "$collect2name" &&
18889 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
18891 # We have reworked collect2
18894 # We have old collect2
18895 hardcode_direct_CXX
=unsupported
18896 # It fails to find uninstalled libraries when the uninstalled
18897 # path is not listed in the libpath. Setting hardcode_minus_L
18898 # to unsupported forces relinking
18899 hardcode_minus_L_CXX
=yes
18900 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18901 hardcode_libdir_separator_CXX
=
18904 shared_flag
='-shared'
18905 if test "$aix_use_runtimelinking" = yes; then
18906 shared_flag
="$shared_flag "'${wl}-G'
18910 if test "$host_cpu" = ia64
; then
18911 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18912 # chokes on -Wl,-G. The following line is correct:
18915 if test "$aix_use_runtimelinking" = yes; then
18916 shared_flag
='${wl}-G'
18918 shared_flag
='${wl}-bM:SRE'
18923 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
18924 # It seems that -bexpall does not export symbols beginning with
18925 # underscore (_), so it is better to generate a list of symbols to
18927 always_export_symbols_CXX
=yes
18928 if test "$aix_use_runtimelinking" = yes; then
18929 # Warning - without using the other runtime loading flags (-brtl),
18930 # -berok will link without error, but may produce a broken library.
18931 allow_undefined_flag_CXX
='-berok'
18932 # Determine the default libpath from the value encoded in an empty
18934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18935 /* end confdefs.h. */
18945 if ac_fn_cxx_try_link
"$LINENO"; then :
18947 lt_aix_libpath_sed
='
18948 /Import File Strings/,/^$/ {
18954 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18955 # Check for a 64-bit object if we didn't find anything.
18956 if test -z "$aix_libpath"; then
18957 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18960 rm -f core conftest.err conftest.
$ac_objext \
18961 conftest
$ac_exeext conftest.
$ac_ext
18962 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18964 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18966 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"
18968 if test "$host_cpu" = ia64
; then
18969 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18970 allow_undefined_flag_CXX
="-z nodefs"
18971 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"
18973 # Determine the default libpath from the value encoded in an
18974 # empty executable.
18975 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18976 /* end confdefs.h. */
18986 if ac_fn_cxx_try_link
"$LINENO"; then :
18988 lt_aix_libpath_sed
='
18989 /Import File Strings/,/^$/ {
18995 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18996 # Check for a 64-bit object if we didn't find anything.
18997 if test -z "$aix_libpath"; then
18998 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19001 rm -f core conftest.err conftest.
$ac_objext \
19002 conftest
$ac_exeext conftest.
$ac_ext
19003 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19005 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19006 # Warning - without using the other run time loading flags,
19007 # -berok will link without error, but may produce a broken library.
19008 no_undefined_flag_CXX
=' ${wl}-bernotok'
19009 allow_undefined_flag_CXX
=' ${wl}-berok'
19010 if test "$with_gnu_ld" = yes; then
19011 # We only use this code for GNU lds that support --whole-archive.
19012 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19014 # Exported symbols can be pulled into shared objects from archives
19015 whole_archive_flag_spec_CXX
='$convenience'
19017 archive_cmds_need_lc_CXX
=yes
19018 # This is similar to how AIX traditionally builds its shared
19020 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'
19026 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19027 allow_undefined_flag_CXX
=unsupported
19028 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19029 # support --undefined. This deserves some investigation. FIXME
19030 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19037 case $cc_basename in
19039 # FIXME: insert proper C++ library support
19045 cygwin
* | mingw
* | pw32
* | cegcc
*)
19046 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19047 # as there is no search path for DLLs.
19048 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19049 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
19050 allow_undefined_flag_CXX
=unsupported
19051 always_export_symbols_CXX
=no
19052 enable_shared_with_static_runtimes_CXX
=yes
19054 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
19055 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'
19056 # If the export-symbols file already is a .def file (1st line
19057 # is EXPORTS), use it as is; otherwise, prepend...
19058 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19059 cp $export_symbols $output_objdir/$soname.def;
19061 echo EXPORTS > $output_objdir/$soname.def;
19062 cat $export_symbols >> $output_objdir/$soname.def;
19064 $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'
19069 darwin
* | rhapsody
*)
19072 archive_cmds_need_lc_CXX
=no
19073 hardcode_direct_CXX
=no
19074 hardcode_automatic_CXX
=yes
19075 hardcode_shlibpath_var_CXX
=unsupported
19076 if test "$lt_cv_ld_force_load" = "yes"; then
19077 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\"`'
19079 whole_archive_flag_spec_CXX
=''
19081 link_all_deplibs_CXX
=yes
19082 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
19083 case $cc_basename in
19084 ifort
*) _lt_dar_can_shared
=yes ;;
19085 *) _lt_dar_can_shared
=$GCC ;;
19087 if test "$_lt_dar_can_shared" = "yes"; then
19088 output_verbose_link_cmd
=func_echo_all
19089 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}"
19090 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19091 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}"
19092 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}"
19093 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19094 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}"
19095 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}"
19105 case $cc_basename in
19107 # FIXME: insert proper C++ library support
19111 # Green Hills C++ Compiler
19112 # FIXME: insert proper C++ library support
19116 # FIXME: insert proper C++ library support
19123 # C++ shared libraries reported to be fairly broken before
19129 archive_cmds_need_lc_CXX
=no
19132 freebsd
* | dragonfly
*)
19133 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19142 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19143 link_all_deplibs_CXX
=yes
19147 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19148 hardcode_libdir_separator_CXX
=:
19149 export_dynamic_flag_spec_CXX
='${wl}-E'
19150 hardcode_direct_CXX
=yes
19151 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19152 # but as the default
19153 # location of the library.
19155 case $cc_basename in
19157 # FIXME: insert proper C++ library support
19161 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'
19162 # Commands to make compiler produce verbose output that lists
19163 # what "hidden" libraries, object files and flags are used when
19164 # linking a shared library.
19166 # There doesn't appear to be a way to prevent this compiler from
19167 # explicitly linking system object files so we need to strip them
19168 # from the output so that they don't get included in the library
19170 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"'
19173 if test "$GXX" = yes; then
19174 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'
19176 # FIXME: insert proper C++ library support
19184 if test $with_gnu_ld = no
; then
19185 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19186 hardcode_libdir_separator_CXX
=:
19192 export_dynamic_flag_spec_CXX
='${wl}-E'
19198 hardcode_direct_CXX
=no
19199 hardcode_shlibpath_var_CXX
=no
19202 hardcode_direct_CXX
=yes
19203 hardcode_direct_absolute_CXX
=yes
19204 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19205 # but as the default
19206 # location of the library.
19210 case $cc_basename in
19212 # FIXME: insert proper C++ library support
19218 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19221 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19224 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19227 # Commands to make compiler produce verbose output that lists
19228 # what "hidden" libraries, object files and flags are used when
19229 # linking a shared library.
19231 # There doesn't appear to be a way to prevent this compiler from
19232 # explicitly linking system object files so we need to strip them
19233 # from the output so that they don't get included in the library
19235 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"'
19238 if test "$GXX" = yes; then
19239 if test $with_gnu_ld = no
; then
19242 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19245 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19248 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'
19253 # FIXME: insert proper C++ library support
19261 hardcode_direct_CXX
=no
19262 hardcode_shlibpath_var_CXX
=no
19263 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19264 export_dynamic_flag_spec_CXX
='${wl}-E'
19265 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19266 # Instead, shared libraries are loaded at an image base (0x10000000 by
19267 # default) and relocated if they conflict, which is a slow very memory
19268 # consuming and fragmenting process. To avoid this, we pick a random,
19269 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19270 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19271 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'
19272 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'
19275 case $cc_basename in
19278 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'
19280 # Archives containing C++ object files must be created using
19281 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19282 # necessary to make sure instantiated templates are included
19284 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19287 if test "$GXX" = yes; then
19288 if test "$with_gnu_ld" = no
; then
19289 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'
19291 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'
19294 link_all_deplibs_CXX
=yes
19297 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19298 hardcode_libdir_separator_CXX
=:
19299 inherit_rpath_CXX
=yes
19302 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19303 case $cc_basename in
19305 # Kuck and Associates, Inc. (KAI) C++ Compiler
19307 # KCC will only create a shared library if the output file
19308 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19309 # to its proper name (with version) after linking.
19310 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'
19311 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'
19312 # Commands to make compiler produce verbose output that lists
19313 # what "hidden" libraries, object files and flags are used when
19314 # linking a shared library.
19316 # There doesn't appear to be a way to prevent this compiler from
19317 # explicitly linking system object files so we need to strip them
19318 # from the output so that they don't get included in the library
19320 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"'
19322 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19323 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19325 # Archives containing C++ object files must be created using
19326 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19327 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19332 # version 8.0 and above of icpc choke on multiply defined symbols
19333 # if we add $predep_objects and $postdep_objects, however 7.1 and
19334 # earlier do not add the objects themselves.
19335 case `$CC -V 2>&1` in
19337 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19338 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'
19340 *) # Version 8.0 or newer
19343 ia64
*) tmp_idyn
=' -i_dynamic';;
19345 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19346 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'
19349 archive_cmds_need_lc_CXX
=no
19350 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19351 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19352 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19355 # Portland Group C++ compiler
19357 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19358 prelink_cmds_CXX
='tpldir=Template.dir~
19360 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19361 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19362 old_archive_cmds_CXX
='tpldir=Template.dir~
19364 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19365 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19367 archive_cmds_CXX
='tpldir=Template.dir~
19369 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19370 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19371 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19373 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19374 $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'
19376 *) # Version 6 and above use weak symbols
19377 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19378 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'
19382 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19383 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19384 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'
19388 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19389 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'
19391 runpath_var
=LD_RUN_PATH
19392 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19393 hardcode_libdir_separator_CXX
=:
19395 # Commands to make compiler produce verbose output that lists
19396 # what "hidden" libraries, object files and flags are used when
19397 # linking a shared library.
19399 # There doesn't appear to be a way to prevent this compiler from
19400 # explicitly linking system object files so we need to strip them
19401 # from the output so that they don't get included in the library
19403 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'
19405 xl
* | mpixl
* | bgxl
*)
19406 # IBM XL 8.0 on PPC, with GNU ld
19407 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19408 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19409 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19410 if test "x$supports_anon_versioning" = xyes
; then
19411 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19412 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19413 echo "local: *; };" >> $output_objdir/$libname.ver~
19414 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19418 case `$CC -V 2>&1 | sed 5q` in
19421 no_undefined_flag_CXX
=' -zdefs'
19422 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19423 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'
19424 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19425 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'
19426 compiler_needs_object_CXX
=yes
19428 # Not sure whether something based on
19429 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19431 output_verbose_link_cmd
='func_echo_all'
19433 # Archives containing C++ object files must be created using
19434 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19435 # necessary to make sure instantiated templates are included
19437 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19445 # FIXME: insert proper C++ library support
19450 # FIXME: insert proper C++ library support
19455 case $cc_basename in
19457 # FIXME: insert proper C++ library support
19461 # FIXME: insert proper C++ library support
19468 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19469 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19471 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19472 hardcode_direct_CXX
=yes
19473 hardcode_shlibpath_var_CXX
=no
19475 # Workaround some broken pre-1.5 toolchains
19476 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19484 # C++ shared libraries are fairly broken
19489 if test -f /usr
/libexec
/ld.so
; then
19490 hardcode_direct_CXX
=yes
19491 hardcode_shlibpath_var_CXX
=no
19492 hardcode_direct_absolute_CXX
=yes
19493 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19494 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19495 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19496 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19497 export_dynamic_flag_spec_CXX
='${wl}-E'
19498 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19500 output_verbose_link_cmd
=func_echo_all
19506 osf3
* | osf4
* | osf5
*)
19507 case $cc_basename in
19509 # Kuck and Associates, Inc. (KAI) C++ Compiler
19511 # KCC will only create a shared library if the output file
19512 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19513 # to its proper name (with version) after linking.
19514 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'
19516 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19517 hardcode_libdir_separator_CXX
=:
19519 # Archives containing C++ object files must be created using
19520 # the KAI C++ compiler.
19522 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19523 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19527 # Rational C++ 2.4.1
19528 # FIXME: insert proper C++ library support
19534 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19535 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'
19536 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19539 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19540 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'
19541 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19542 echo "-hidden">> $lib.exp~
19543 $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~
19545 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19549 hardcode_libdir_separator_CXX
=:
19551 # Commands to make compiler produce verbose output that lists
19552 # what "hidden" libraries, object files and flags are used when
19553 # linking a shared library.
19555 # There doesn't appear to be a way to prevent this compiler from
19556 # explicitly linking system object files so we need to strip them
19557 # from the output so that they don't get included in the library
19559 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"'
19562 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19563 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19566 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'
19569 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'
19573 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19574 hardcode_libdir_separator_CXX
=:
19576 # Commands to make compiler produce verbose output that lists
19577 # what "hidden" libraries, object files and flags are used when
19578 # linking a shared library.
19579 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19582 # FIXME: insert proper C++ library support
19590 # FIXME: insert proper C++ library support
19595 case $cc_basename in
19598 # FIXME: insert proper C++ library support
19603 # FIXME: insert proper C++ library support
19607 # FIXME: insert proper C++ library support
19614 case $cc_basename in
19616 # Sun C++ 4.2, 5.x and Centerline C++
19617 archive_cmds_need_lc_CXX
=yes
19618 no_undefined_flag_CXX
=' -zdefs'
19619 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19620 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19621 $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'
19623 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19624 hardcode_shlibpath_var_CXX
=no
19626 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19628 # The compiler driver will combine and reorder linker options,
19629 # but understands `-z linker_flag'.
19630 # Supported since Solaris 2.6 (maybe 2.5.1?)
19631 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19634 link_all_deplibs_CXX
=yes
19636 output_verbose_link_cmd
='func_echo_all'
19638 # Archives containing C++ object files must be created using
19639 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19640 # necessary to make sure instantiated templates are included
19642 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19645 # Green Hills C++ Compiler
19646 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19648 # The C++ compiler must be used to create the archive.
19649 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19652 # GNU C++ compiler with Solaris linker
19653 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19654 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19655 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19656 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19657 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19658 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19660 # Commands to make compiler produce verbose output that lists
19661 # what "hidden" libraries, object files and flags are used when
19662 # linking a shared library.
19663 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19665 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19667 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19668 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19669 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19671 # Commands to make compiler produce verbose output that lists
19672 # what "hidden" libraries, object files and flags are used when
19673 # linking a shared library.
19674 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19677 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19679 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19681 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19689 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19690 no_undefined_flag_CXX
='${wl}-z,text'
19691 archive_cmds_need_lc_CXX
=no
19692 hardcode_shlibpath_var_CXX
=no
19693 runpath_var
='LD_RUN_PATH'
19695 case $cc_basename in
19697 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19698 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19701 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19702 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19707 sysv5
* | sco3.2v5
* | sco5v6
*)
19708 # Note: We can NOT use -z defs as we might desire, because we do not
19709 # link with -lc, and that would cause any symbols used from libc to
19710 # always be unresolved, which means just about no library would
19711 # ever link correctly. If we're not using GNU ld we use -z text
19712 # though, which does catch some bad symbols but isn't as heavy-handed
19714 no_undefined_flag_CXX
='${wl}-z,text'
19715 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19716 archive_cmds_need_lc_CXX
=no
19717 hardcode_shlibpath_var_CXX
=no
19718 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
19719 hardcode_libdir_separator_CXX
=':'
19720 link_all_deplibs_CXX
=yes
19721 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19722 runpath_var
='LD_RUN_PATH'
19724 case $cc_basename in
19726 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19727 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19728 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
19729 '"$old_archive_cmds_CXX"
19730 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
19731 '"$reload_cmds_CXX"
19734 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19735 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19741 case $cc_basename in
19743 # NonStop-UX NCC 3.20
19744 # FIXME: insert proper C++ library support
19748 # FIXME: insert proper C++ library support
19755 # FIXME: insert proper C++ library support
19760 # FIXME: insert proper C++ library support
19765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19766 $as_echo "$ld_shlibs_CXX" >&6; }
19767 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19773 ## There is no encapsulation within the following macros, do not change
19774 ## the running order or otherwise move them around unless you know exactly
19775 ## what you are doing...
19776 # Dependencies to place before and after the object being linked:
19777 predep_objects_CXX
=
19778 postdep_objects_CXX
=
19781 compiler_lib_search_path_CXX
=
19783 cat > conftest.
$ac_ext <<_LT_EOF
19787 Foo (void) { a = 0; }
19793 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19794 (eval $ac_compile) 2>&5
19796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19797 test $ac_status = 0; }; then
19798 # Parse the compiler output and extract the necessary
19799 # objects, libraries and library flags.
19801 # Sentinel used to keep track of whether or not we are before
19802 # the conftest object file.
19803 pre_test_object_deps_done
=no
19805 for p
in `eval "$output_verbose_link_cmd"`; do
19809 # Some compilers place space between "-{L,R}" and the path.
19810 # Remove the space.
19811 if test $p = "-L" ||
19812 test $p = "-R"; then
19819 if test "$pre_test_object_deps_done" = no
; then
19822 # Internal compiler library paths should come after those
19823 # provided the user. The postdeps already come after the
19824 # user supplied libs so there is no need to process them.
19825 if test -z "$compiler_lib_search_path_CXX"; then
19826 compiler_lib_search_path_CXX
="${prev}${p}"
19828 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19831 # The "-l" case would never come before the object being
19832 # linked, so don't bother handling this case.
19835 if test -z "$postdeps_CXX"; then
19836 postdeps_CXX
="${prev}${p}"
19838 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19844 # This assumes that the test object file only shows up
19845 # once in the compiler output.
19846 if test "$p" = "conftest.$objext"; then
19847 pre_test_object_deps_done
=yes
19851 if test "$pre_test_object_deps_done" = no
; then
19852 if test -z "$predep_objects_CXX"; then
19853 predep_objects_CXX
="$p"
19855 predep_objects_CXX
="$predep_objects_CXX $p"
19858 if test -z "$postdep_objects_CXX"; then
19859 postdep_objects_CXX
="$p"
19861 postdep_objects_CXX
="$postdep_objects_CXX $p"
19866 *) ;; # Ignore the rest.
19874 echo "libtool.m4: error: problem compiling CXX test program"
19877 $RM -f confest.
$objext
19879 # PORTME: override above test on systems where it is broken
19882 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19883 # hack all around it, let's just trust "g++" to DTRT.
19884 predep_objects_CXX
=
19885 postdep_objects_CXX
=
19890 case `$CC -V 2>&1 | sed 5q` in
19894 # The more standards-conforming stlport4 library is
19895 # incompatible with the Cstd library. Avoid specifying
19896 # it if it's in CXXFLAGS. Ignore libCrun as
19897 # -library=stlport4 depends on it.
19898 case " $CXX $CXXFLAGS " in
19899 *" -library=stlport4 "*)
19900 solaris_use_stlport4
=yes
19904 if test "$solaris_use_stlport4" != yes; then
19905 postdeps_CXX
='-library=Cstd -library=Crun'
19912 case $cc_basename in
19914 # The more standards-conforming stlport4 library is
19915 # incompatible with the Cstd library. Avoid specifying
19916 # it if it's in CXXFLAGS. Ignore libCrun as
19917 # -library=stlport4 depends on it.
19918 case " $CXX $CXXFLAGS " in
19919 *" -library=stlport4 "*)
19920 solaris_use_stlport4
=yes
19924 # Adding this requires a known-good setup of shared libraries for
19925 # Sun compiler versions before 5.6, else PIC objects from an old
19926 # archive will be linked into the output, leading to subtle bugs.
19927 if test "$solaris_use_stlport4" != yes; then
19928 postdeps_CXX
='-library=Cstd -library=Crun'
19936 case " $postdeps_CXX " in
19937 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19939 compiler_lib_search_dirs_CXX
=
19940 if test -n "${compiler_lib_search_path_CXX}"; then
19941 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19974 lt_prog_compiler_wl_CXX
=
19975 lt_prog_compiler_pic_CXX
=
19976 lt_prog_compiler_static_CXX
=
19978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19979 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19981 # C++ specific cases for pic, static, wl, etc.
19982 if test "$GXX" = yes; then
19983 lt_prog_compiler_wl_CXX
='-Wl,'
19984 lt_prog_compiler_static_CXX
='-static'
19988 # All AIX code is PIC.
19989 if test "$host_cpu" = ia64
; then
19990 # AIX 5 now supports IA64 processor
19991 lt_prog_compiler_static_CXX
='-Bstatic'
19998 # see comment about AmigaOS4 .so support
19999 lt_prog_compiler_pic_CXX
='-fPIC'
20002 # FIXME: we need at least 68020 code to build shared libraries, but
20003 # adding the `-m68020' flag to GCC prevents building anything better,
20005 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
20010 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
20011 # PIC is the default for these OSes.
20013 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
20014 # This hack is so that the source file can tell whether it is being
20015 # built for inclusion in a dll (and should export symbols for example).
20016 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20017 # (--disable-auto-import) libraries
20018 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
20020 darwin
* | rhapsody
*)
20021 # PIC is the default on this platform
20022 # Common symbols not allowed in MH_DYLIB files
20023 lt_prog_compiler_pic_CXX
='-fno-common'
20026 # DJGPP does not support shared libraries at all
20027 lt_prog_compiler_pic_CXX
=
20030 # PIC is the default for Haiku.
20031 # The "-static" flag exists, but is broken.
20032 lt_prog_compiler_static_CXX
=
20035 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20036 # Instead, we relocate shared libraries at runtime.
20039 if test -d /usr
/nec
; then
20040 lt_prog_compiler_pic_CXX
=-Kconform_pic
20044 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20045 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20046 # sets the default TLS model and affects inlining.
20051 lt_prog_compiler_pic_CXX
='-fPIC'
20056 # QNX uses GNU C++, but need to define -shared option too, otherwise
20057 # it will coredump.
20058 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20061 lt_prog_compiler_pic_CXX
='-fPIC'
20067 # All AIX code is PIC.
20068 if test "$host_cpu" = ia64
; then
20069 # AIX 5 now supports IA64 processor
20070 lt_prog_compiler_static_CXX
='-Bstatic'
20072 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
20076 case $cc_basename in
20078 # Green Hills C++ Compiler
20079 # _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"
20084 case $cc_basename in
20086 lt_prog_compiler_pic_CXX
='-KPIC'
20089 # Green Hills C++ Compiler
20090 lt_prog_compiler_pic_CXX
='-pic'
20096 freebsd
* | dragonfly
*)
20097 # FreeBSD uses GNU C++
20099 hpux9
* | hpux10
* | hpux11
*)
20100 case $cc_basename in
20102 lt_prog_compiler_wl_CXX
='-Wl,'
20103 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20104 if test "$host_cpu" != ia64
; then
20105 lt_prog_compiler_pic_CXX
='+Z'
20109 lt_prog_compiler_wl_CXX
='-Wl,'
20110 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20116 lt_prog_compiler_pic_CXX
='+Z'
20125 # This is c89, which is MS Visual C++ (no shared libs)
20126 # Anyone wants to do a port?
20128 irix5
* | irix6
* | nonstopux
*)
20129 case $cc_basename in
20131 lt_prog_compiler_wl_CXX
='-Wl,'
20132 lt_prog_compiler_static_CXX
='-non_shared'
20133 # CC pic flag -KPIC is the default.
20139 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20140 case $cc_basename in
20143 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20144 lt_prog_compiler_pic_CXX
='-fPIC'
20147 # old Intel C++ for x86_64 which still supported -KPIC.
20148 lt_prog_compiler_wl_CXX
='-Wl,'
20149 lt_prog_compiler_pic_CXX
='-KPIC'
20150 lt_prog_compiler_static_CXX
='-static'
20153 # Intel C++, used to be incompatible with GCC.
20154 # ICC 10 doesn't accept -KPIC any more.
20155 lt_prog_compiler_wl_CXX
='-Wl,'
20156 lt_prog_compiler_pic_CXX
='-fPIC'
20157 lt_prog_compiler_static_CXX
='-static'
20160 # Portland Group C++ compiler
20161 lt_prog_compiler_wl_CXX
='-Wl,'
20162 lt_prog_compiler_pic_CXX
='-fpic'
20163 lt_prog_compiler_static_CXX
='-Bstatic'
20167 # Make sure the PIC flag is empty. It appears that all Alpha
20168 # Linux and Compaq Tru64 Unix objects are PIC.
20169 lt_prog_compiler_pic_CXX
=
20170 lt_prog_compiler_static_CXX
='-non_shared'
20172 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
20173 # IBM XL 8.0, 9.0 on PPC and BlueGene
20174 lt_prog_compiler_wl_CXX
='-Wl,'
20175 lt_prog_compiler_pic_CXX
='-qpic'
20176 lt_prog_compiler_static_CXX
='-qstaticlink'
20179 case `$CC -V 2>&1 | sed 5q` in
20182 lt_prog_compiler_pic_CXX
='-KPIC'
20183 lt_prog_compiler_static_CXX
='-Bstatic'
20184 lt_prog_compiler_wl_CXX
='-Qoption ld '
20195 case $cc_basename in
20197 lt_prog_compiler_pic_CXX
='-W c,exportall'
20206 # QNX uses GNU C++, but need to define -shared option too, otherwise
20207 # it will coredump.
20208 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20210 osf3
* | osf4
* | osf5
*)
20211 case $cc_basename in
20213 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20216 # Rational C++ 2.4.1
20217 lt_prog_compiler_pic_CXX
='-pic'
20220 # Digital/Compaq C++
20221 lt_prog_compiler_wl_CXX
='-Wl,'
20222 # Make sure the PIC flag is empty. It appears that all Alpha
20223 # Linux and Compaq Tru64 Unix objects are PIC.
20224 lt_prog_compiler_pic_CXX
=
20225 lt_prog_compiler_static_CXX
='-non_shared'
20234 case $cc_basename in
20236 # Sun C++ 4.2, 5.x and Centerline C++
20237 lt_prog_compiler_pic_CXX
='-KPIC'
20238 lt_prog_compiler_static_CXX
='-Bstatic'
20239 lt_prog_compiler_wl_CXX
='-Qoption ld '
20242 # Green Hills C++ Compiler
20243 lt_prog_compiler_pic_CXX
='-PIC'
20250 case $cc_basename in
20253 lt_prog_compiler_pic_CXX
='-pic'
20254 lt_prog_compiler_static_CXX
='-Bstatic'
20258 lt_prog_compiler_pic_CXX
='-pic'
20264 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20265 case $cc_basename in
20267 lt_prog_compiler_wl_CXX
='-Wl,'
20268 lt_prog_compiler_pic_CXX
='-KPIC'
20269 lt_prog_compiler_static_CXX
='-Bstatic'
20274 case $cc_basename in
20276 # NonStop-UX NCC 3.20
20277 lt_prog_compiler_pic_CXX
='-KPIC'
20286 lt_prog_compiler_can_build_shared_CXX
=no
20292 # For platforms which do not support PIC, -DPIC is meaningless:
20294 lt_prog_compiler_pic_CXX
=
20297 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20301 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20306 # Check to make sure the PIC flag actually works.
20308 if test -n "$lt_prog_compiler_pic_CXX"; then
20309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20310 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20311 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20312 $as_echo_n "(cached) " >&6
20314 lt_cv_prog_compiler_pic_works_CXX
=no
20315 ac_outfile
=conftest.
$ac_objext
20316 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20317 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20318 # Insert the option either (1) after the last *FLAGS variable, or
20319 # (2) before a word containing "conftest.", or (3) at the end.
20320 # Note that $ac_compile itself does not contain backslashes and begins
20321 # with a dollar sign (not a hyphen), so the echo should work correctly.
20322 # The option is referenced via a variable to avoid confusing sed.
20323 lt_compile
=`echo "$ac_compile" | $SED \
20324 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20325 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20326 -e 's:$: $lt_compiler_flag:'`
20327 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20328 (eval "$lt_compile" 2>conftest.err
)
20330 cat conftest.err
>&5
20331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332 if (exit $ac_status) && test -s "$ac_outfile"; then
20333 # The compiler can only warn and ignore the option if not recognized
20334 # So say no if there are warnings other than the usual output.
20335 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20336 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20337 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20338 lt_cv_prog_compiler_pic_works_CXX
=yes
20344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20345 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20347 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20348 case $lt_prog_compiler_pic_CXX in
20350 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20353 lt_prog_compiler_pic_CXX
=
20354 lt_prog_compiler_can_build_shared_CXX
=no
20362 # Check to make sure the static flag actually works.
20364 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20366 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20367 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20368 $as_echo_n "(cached) " >&6
20370 lt_cv_prog_compiler_static_works_CXX
=no
20371 save_LDFLAGS
="$LDFLAGS"
20372 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20373 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20374 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20375 # The linker can only warn and ignore the option if not recognized
20376 # So say no if there are warnings
20377 if test -s conftest.err
; then
20378 # Append any errors to the config.log.
20379 cat conftest.err
1>&5
20380 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20381 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20382 if diff conftest.exp conftest.er2
>/dev
/null
; then
20383 lt_cv_prog_compiler_static_works_CXX
=yes
20386 lt_cv_prog_compiler_static_works_CXX
=yes
20390 LDFLAGS
="$save_LDFLAGS"
20393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20394 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20396 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20399 lt_prog_compiler_static_CXX
=
20405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20406 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20407 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20408 $as_echo_n "(cached) " >&6
20410 lt_cv_prog_compiler_c_o_CXX
=no
20411 $RM -r conftest
2>/dev
/null
20415 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20417 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20418 # Insert the option either (1) after the last *FLAGS variable, or
20419 # (2) before a word containing "conftest.", or (3) at the end.
20420 # Note that $ac_compile itself does not contain backslashes and begins
20421 # with a dollar sign (not a hyphen), so the echo should work correctly.
20422 lt_compile
=`echo "$ac_compile" | $SED \
20423 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20424 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20425 -e 's:$: $lt_compiler_flag:'`
20426 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20427 (eval "$lt_compile" 2>out
/conftest.err
)
20429 cat out
/conftest.err
>&5
20430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20433 # The compiler can only warn and ignore the option if not recognized
20434 # So say no if there are warnings
20435 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20436 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20437 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20438 lt_cv_prog_compiler_c_o_CXX
=yes
20443 # SGI C++ compiler will create directory out/ii_files/ for
20444 # template instantiation
20445 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20446 $RM out
/* && rmdir out
20452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20453 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20458 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20459 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20460 $as_echo_n "(cached) " >&6
20462 lt_cv_prog_compiler_c_o_CXX
=no
20463 $RM -r conftest
2>/dev
/null
20467 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20469 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20470 # Insert the option either (1) after the last *FLAGS variable, or
20471 # (2) before a word containing "conftest.", or (3) at the end.
20472 # Note that $ac_compile itself does not contain backslashes and begins
20473 # with a dollar sign (not a hyphen), so the echo should work correctly.
20474 lt_compile
=`echo "$ac_compile" | $SED \
20475 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20476 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20477 -e 's:$: $lt_compiler_flag:'`
20478 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20479 (eval "$lt_compile" 2>out
/conftest.err
)
20481 cat out
/conftest.err
>&5
20482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20485 # The compiler can only warn and ignore the option if not recognized
20486 # So say no if there are warnings
20487 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20488 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20489 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20490 lt_cv_prog_compiler_c_o_CXX
=yes
20495 # SGI C++ compiler will create directory out/ii_files/ for
20496 # template instantiation
20497 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20498 $RM out
/* && rmdir out
20504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20505 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20510 hard_links
="nottested"
20511 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20512 # do not overwrite the value of need_locks provided by the user
20513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20514 $as_echo_n "checking if we can lock with hard links... " >&6; }
20517 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20519 ln conftest.a conftest.b
2>&5 || hard_links
=no
20520 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20522 $as_echo "$hard_links" >&6; }
20523 if test "$hard_links" = no
; then
20524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20525 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20535 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20537 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20540 # If we're using GNU nm, then we don't want the "-C" option.
20541 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20542 # Also, AIX nm treats weak defined symbols like other global defined
20543 # symbols, whereas GNU nm marks them as "W".
20544 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20545 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'
20547 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'
20551 export_symbols_cmds_CXX
="$ltdll_cmds"
20553 cygwin
* | mingw
* | cegcc
*)
20554 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'
20557 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20560 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20563 $as_echo "$ld_shlibs_CXX" >&6; }
20564 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20566 with_gnu_ld_CXX
=$with_gnu_ld
20574 # Do we need to explicitly link libc?
20576 case "x$archive_cmds_need_lc_CXX" in
20578 # Assume -lc should be added
20579 archive_cmds_need_lc_CXX
=yes
20581 if test "$enable_shared" = yes && test "$GCC" = yes; then
20582 case $archive_cmds_CXX in
20584 # FIXME: we may have to deal with multi-command sequences.
20587 # Test whether the compiler implicitly links with -lc since on some
20588 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20589 # to ld, don't add -lc before -lgcc.
20590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20591 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20592 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20593 $as_echo_n "(cached) " >&6
20596 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20598 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20599 (eval $ac_compile) 2>&5
20601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20602 test $ac_status = 0; } 2>conftest.err
; then
20605 libobjs
=conftest.
$ac_objext
20607 wl
=$lt_prog_compiler_wl_CXX
20608 pic_flag
=$lt_prog_compiler_pic_CXX
20614 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20615 allow_undefined_flag_CXX
=
20616 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20617 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20620 test $ac_status = 0; }
20622 lt_cv_archive_cmds_need_lc_CXX
=no
20624 lt_cv_archive_cmds_need_lc_CXX
=yes
20626 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20628 cat conftest.err
1>&5
20633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20634 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20635 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
20705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20706 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20708 library_names_spec
=
20709 libname_spec
='lib$name'
20713 postuninstall_cmds
=
20717 shlibpath_overrides_runpath
=unknown
20719 dynamic_linker
="$host_os ld.so"
20720 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20721 need_lib_prefix
=unknown
20722 hardcode_into_libs
=no
20724 # when you set need_version to no, make sure it does not cause -set_version
20725 # flags to be left without arguments
20726 need_version
=unknown
20731 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20732 shlibpath_var
=LIBPATH
20734 # AIX 3 has no versioning support, so we append a major version to the name.
20735 soname_spec
='${libname}${release}${shared_ext}$major'
20742 hardcode_into_libs
=yes
20743 if test "$host_cpu" = ia64
; then
20744 # AIX 5 supports IA64
20745 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20746 shlibpath_var
=LD_LIBRARY_PATH
20748 # With GCC up to 2.95.x, collect2 would create an import file
20749 # for dependence libraries. The import file would start with
20750 # the line `#! .'. This would cause the generated library to
20751 # depend on `.', always an invalid library. This was fixed in
20752 # development snapshots of GCC prior to 3.0.
20754 aix4 | aix4.
[01] | aix4.
[01].
*)
20755 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20757 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
20760 can_build_shared
=no
20764 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20765 # soname into executable. Probably we can add versioning support to
20766 # collect2, so additional links can be useful in future.
20767 if test "$aix_use_runtimelinking" = yes; then
20768 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20769 # instead of lib<name>.a to let people know that these are not
20770 # typical AIX shared libraries.
20771 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20773 # We preserve .a as extension for shared libraries through AIX4.2
20774 # and later when we are not doing run time linking.
20775 library_names_spec
='${libname}${release}.a $libname.a'
20776 soname_spec
='${libname}${release}${shared_ext}$major'
20778 shlibpath_var
=LIBPATH
20785 # Since July 2007 AmigaOS4 officially supports .so libraries.
20786 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20787 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20790 library_names_spec
='$libname.ixlibrary $libname.a'
20791 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20792 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'
20798 library_names_spec
='${libname}${shared_ext}'
20799 dynamic_linker
="$host_os ld.so"
20800 shlibpath_var
=LIBRARY_PATH
20806 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20807 soname_spec
='${libname}${release}${shared_ext}$major'
20808 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20809 shlibpath_var
=LD_LIBRARY_PATH
20810 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20811 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20812 # the default ld.so.conf also contains /usr/contrib/lib and
20813 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20814 # libtool to hard-code these into programs
20817 cygwin
* | mingw
* | pw32
* | cegcc
*)
20818 version_type
=windows
20823 case $GCC,$host_os in
20824 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
20825 library_names_spec
='$libname.dll.a'
20826 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20827 postinstall_cmds
='base_file=`basename \${file}`~
20828 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20829 dldir=$destdir/`dirname \$dlpath`~
20830 test -d \$dldir || mkdir -p \$dldir~
20831 $install_prog $dir/$dlname \$dldir/$dlname~
20832 chmod a+x \$dldir/$dlname~
20833 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20834 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20836 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20837 dlpath=$dir/\$dldll~
20839 shlibpath_overrides_runpath
=yes
20843 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20844 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20848 # MinGW DLLs use traditional 'lib' prefix
20849 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20852 # pw32 DLLs use 'pw' prefix rather than 'lib'
20853 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20859 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20862 dynamic_linker
='Win32 ld.exe'
20863 # FIXME: first we should search . and the directory the executable is in
20867 darwin
* | rhapsody
*)
20868 dynamic_linker
="$host_os dyld"
20869 version_type
=darwin
20872 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20873 soname_spec
='${libname}${release}${major}$shared_ext'
20874 shlibpath_overrides_runpath
=yes
20875 shlibpath_var
=DYLD_LIBRARY_PATH
20876 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
20878 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20885 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20886 soname_spec
='${libname}${release}${shared_ext}$major'
20887 shlibpath_var
=LD_LIBRARY_PATH
20890 freebsd
* | dragonfly
*)
20891 # DragonFly does not have aout. When/if they implement a new
20892 # versioning mechanism, adjust this.
20893 if test -x /usr
/bin
/objformat
; then
20894 objformat
=`/usr/bin/objformat`
20897 freebsd
[123]*) objformat
=aout
;;
20898 *) objformat
=elf
;;
20901 version_type
=freebsd-
$objformat
20902 case $version_type in
20904 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20909 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20913 shlibpath_var
=LD_LIBRARY_PATH
20916 shlibpath_overrides_runpath
=yes
20918 freebsd3.
[01]* | freebsdelf3.
[01]*)
20919 shlibpath_overrides_runpath
=yes
20920 hardcode_into_libs
=yes
20922 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20923 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20924 shlibpath_overrides_runpath
=no
20925 hardcode_into_libs
=yes
20927 *) # from 4.6 on, and DragonFly
20928 shlibpath_overrides_runpath
=yes
20929 hardcode_into_libs
=yes
20938 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20939 soname_spec
='${libname}${release}${shared_ext}$major'
20940 shlibpath_var
=LD_LIBRARY_PATH
20941 hardcode_into_libs
=yes
20948 dynamic_linker
="$host_os runtime_loader"
20949 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20950 soname_spec
='${libname}${release}${shared_ext}$major'
20951 shlibpath_var
=LIBRARY_PATH
20952 shlibpath_overrides_runpath
=yes
20953 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20954 hardcode_into_libs
=yes
20957 hpux9
* | hpux10
* | hpux11
*)
20958 # Give a soname corresponding to the major version so that dld.sl refuses to
20959 # link against other versions.
20966 hardcode_into_libs
=yes
20967 dynamic_linker
="$host_os dld.so"
20968 shlibpath_var
=LD_LIBRARY_PATH
20969 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20970 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20971 soname_spec
='${libname}${release}${shared_ext}$major'
20972 if test "X$HPUX_IA64_MODE" = X32
; then
20973 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20975 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20977 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20981 hardcode_into_libs
=yes
20982 dynamic_linker
="$host_os dld.sl"
20983 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20984 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20985 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20986 soname_spec
='${libname}${release}${shared_ext}$major'
20987 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20988 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20992 dynamic_linker
="$host_os dld.sl"
20993 shlibpath_var
=SHLIB_PATH
20994 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20995 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20996 soname_spec
='${libname}${release}${shared_ext}$major'
20999 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21000 postinstall_cmds
='chmod 555 $lib'
21001 # or fails outright, so override atomically:
21002 install_override_mode
=555
21009 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21010 soname_spec
='${libname}${release}${shared_ext}$major'
21011 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
21012 shlibpath_var
=LD_LIBRARY_PATH
21013 shlibpath_overrides_runpath
=no
21014 hardcode_into_libs
=yes
21017 irix5
* | irix6
* | nonstopux
*)
21019 nonstopux
*) version_type
=nonstopux
;;
21021 if test "$lt_cv_prog_gnu_ld" = yes; then
21029 soname_spec
='${libname}${release}${shared_ext}$major'
21030 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21032 irix5
* | nonstopux
*)
21033 libsuff
= shlibsuff
=
21036 case $LD in # libtool.m4 will add one of these switches to LD
21037 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
21038 libsuff
= shlibsuff
= libmagic
=32-bit;;
21039 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
21040 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
21041 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
21042 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
21043 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
21047 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
21048 shlibpath_overrides_runpath
=no
21049 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21050 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
21051 hardcode_into_libs
=yes
21054 # No shared lib support for Linux oldld, aout, or coff.
21055 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
21059 # This must be Linux ELF.
21060 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21064 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21065 soname_spec
='${libname}${release}${shared_ext}$major'
21066 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21067 shlibpath_var
=LD_LIBRARY_PATH
21068 shlibpath_overrides_runpath
=no
21070 # Some binutils ld are patched to set DT_RUNPATH
21071 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21072 $as_echo_n "(cached) " >&6
21074 lt_cv_shlibpath_overrides_runpath
=no
21075 save_LDFLAGS
=$LDFLAGS
21076 save_libdir
=$libdir
21077 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21078 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21080 /* end confdefs.h. */
21090 if ac_fn_cxx_try_link
"$LINENO"; then :
21091 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
21092 lt_cv_shlibpath_overrides_runpath
=yes
21095 rm -f core conftest.err conftest.
$ac_objext \
21096 conftest
$ac_exeext conftest.
$ac_ext
21097 LDFLAGS
=$save_LDFLAGS
21098 libdir
=$save_libdir
21102 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
21104 # This implies no fast_install, which is unacceptable.
21105 # Some rework will be needed to allow for fast_install
21106 # before this can be enabled.
21107 hardcode_into_libs
=yes
21109 # Append ld.so.conf contents to the search path
21110 if test -f /etc
/ld.so.conf
; then
21111 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' ' '`
21112 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
21115 # We used to test for /lib/ld.so.1 and disable shared libraries on
21116 # powerpc, because MkLinux only supported shared libraries with the
21117 # GNU dynamic linker. Since this was broken with cross compilers,
21118 # most powerpc-linux boxes support dynamic linking these days and
21119 # people can always --disable-shared, the test was removed, and we
21120 # assume the GNU/Linux dynamic linker is in use.
21121 dynamic_linker
='GNU/Linux ld.so'
21128 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21129 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21130 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21131 dynamic_linker
='NetBSD (a.out) ld.so'
21133 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21134 soname_spec
='${libname}${release}${shared_ext}$major'
21135 dynamic_linker
='NetBSD ld.elf_so'
21137 shlibpath_var
=LD_LIBRARY_PATH
21138 shlibpath_overrides_runpath
=yes
21139 hardcode_into_libs
=yes
21144 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21145 shlibpath_var
=LD_LIBRARY_PATH
21146 shlibpath_overrides_runpath
=yes
21153 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21154 soname_spec
='${libname}${release}${shared_ext}$major'
21155 shlibpath_var
=LD_LIBRARY_PATH
21156 shlibpath_overrides_runpath
=no
21157 hardcode_into_libs
=yes
21158 dynamic_linker
='ldqnx.so'
21163 sys_lib_dlsearch_path_spec
="/usr/lib"
21165 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21167 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
21168 *) need_version
=no
;;
21170 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21171 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21172 shlibpath_var
=LD_LIBRARY_PATH
21173 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21175 openbsd2.
[89] | openbsd2.
[89].
*)
21176 shlibpath_overrides_runpath
=no
21179 shlibpath_overrides_runpath
=yes
21183 shlibpath_overrides_runpath
=yes
21188 libname_spec
='$name'
21191 library_names_spec
='$libname${shared_ext} $libname.a'
21192 dynamic_linker
='OS/2 ld.exe'
21193 shlibpath_var
=LIBPATH
21196 osf3
* | osf4
* | osf5
*)
21200 soname_spec
='${libname}${release}${shared_ext}$major'
21201 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21202 shlibpath_var
=LD_LIBRARY_PATH
21203 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21204 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21215 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21216 soname_spec
='${libname}${release}${shared_ext}$major'
21217 shlibpath_var
=LD_LIBRARY_PATH
21218 shlibpath_overrides_runpath
=yes
21219 hardcode_into_libs
=yes
21220 # ldd complains unless libraries are executable
21221 postinstall_cmds
='chmod +x $lib'
21226 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21227 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21228 shlibpath_var
=LD_LIBRARY_PATH
21229 shlibpath_overrides_runpath
=yes
21230 if test "$with_gnu_ld" = yes; then
21238 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21239 soname_spec
='${libname}${release}${shared_ext}$major'
21240 shlibpath_var
=LD_LIBRARY_PATH
21241 case $host_vendor in
21243 shlibpath_overrides_runpath
=no
21245 runpath_var
=LD_RUN_PATH
21253 shlibpath_overrides_runpath
=no
21254 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21260 if test -d /usr
/nec
;then
21262 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21263 soname_spec
='$libname${shared_ext}.$major'
21264 shlibpath_var
=LD_LIBRARY_PATH
21268 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21269 version_type
=freebsd-elf
21272 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21273 soname_spec
='${libname}${release}${shared_ext}$major'
21274 shlibpath_var
=LD_LIBRARY_PATH
21275 shlibpath_overrides_runpath
=yes
21276 hardcode_into_libs
=yes
21277 if test "$with_gnu_ld" = yes; then
21278 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21280 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21283 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21287 sys_lib_dlsearch_path_spec
='/usr/lib'
21291 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21295 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21296 shlibpath_var
=LD_LIBRARY_PATH
21297 shlibpath_overrides_runpath
=no
21298 hardcode_into_libs
=yes
21303 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21304 soname_spec
='${libname}${release}${shared_ext}$major'
21305 shlibpath_var
=LD_LIBRARY_PATH
21312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21313 $as_echo "$dynamic_linker" >&6; }
21314 test "$dynamic_linker" = no
&& can_build_shared
=no
21316 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21317 if test "$GCC" = yes; then
21318 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21321 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21322 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21324 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21325 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21366 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21367 hardcode_action_CXX
=
21368 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21369 test -n "$runpath_var_CXX" ||
21370 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21372 # We can hardcode non-existent directories.
21373 if test "$hardcode_direct_CXX" != no
&&
21374 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21375 # have to relink, otherwise we might link with an installed library
21376 # when we should be linking with a yet-to-be-installed one
21377 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21378 test "$hardcode_minus_L_CXX" != no
; then
21379 # Linking always hardcodes the temporary library directory.
21380 hardcode_action_CXX
=relink
21382 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21383 hardcode_action_CXX
=immediate
21386 # We cannot hardcode anything, or else we can only hardcode existing
21388 hardcode_action_CXX
=unsupported
21390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21391 $as_echo "$hardcode_action_CXX" >&6; }
21393 if test "$hardcode_action_CXX" = relink ||
21394 test "$inherit_rpath_CXX" = yes; then
21395 # Fast installation is not supported
21396 enable_fast_install
=no
21397 elif test "$shlibpath_overrides_runpath" = yes ||
21398 test "$enable_shared" = no
; then
21399 # Fast installation is not necessary
21400 enable_fast_install
=needless
21409 fi # test -n "$compiler"
21415 with_gnu_ld
=$lt_save_with_gnu_ld
21416 lt_cv_path_LDCXX
=$lt_cv_path_LD
21417 lt_cv_path_LD
=$lt_save_path_LD
21418 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21419 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21420 fi # test "$_lt_caught_CXX_error" != yes
21423 ac_cpp
='$CPP $CPPFLAGS'
21424 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21425 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21426 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21443 # Only expand once:
21449 # Identify the assembler which will work hand-in-glove with the newly
21450 # built GCC, so that we can examine its features. This is the assembler
21451 # which will be driven by the driver program.
21453 # If build != host, and we aren't building gas in-tree, we identify a
21454 # build->target assembler and hope that it will have the same features
21455 # as the host->target assembler we'll be using.
21456 gcc_cv_gas_major_version
=
21457 gcc_cv_gas_minor_version
=
21458 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21460 if test "${gcc_cv_as+set}" = set; then :
21464 if test -x "$DEFAULT_ASSEMBLER"; then
21465 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21466 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
21467 && test -f ..
/gas
/Makefile \
21468 && test x
$build = x
$host; then
21469 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21470 elif test -x as
$build_exeext; then
21471 # Build using assembler in the current directory.
21472 gcc_cv_as
=.
/as
$build_exeext
21473 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21474 gcc_cv_as
="$AS_FOR_TARGET"
21476 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21477 set dummy
$AS_FOR_TARGET; ac_word
=$2
21478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21479 $as_echo_n "checking for $ac_word... " >&6; }
21480 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21481 $as_echo_n "(cached) " >&6
21485 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21488 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21489 for as_dir
in $PATH
21492 test -z "$as_dir" && as_dir
=.
21493 for ac_exec_ext
in '' $ac_executable_extensions; do
21494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21495 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21506 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21507 if test -n "$gcc_cv_as"; then
21508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21509 $as_echo "$gcc_cv_as" >&6; }
21511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21512 $as_echo "no" >&6; }
21519 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21521 case "$ORIGINAL_AS_FOR_TARGET" in
21522 .
/as | .
/as
$build_exeext) ;;
21523 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21528 $as_echo_n "checking what assembler to use... " >&6; }
21529 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21530 # Single tree build which includes gas. We want to prefer it
21531 # over whatever linker top-level may have detected, since
21532 # we'll use what we're building after installation anyway.
21533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21534 $as_echo "newly built gas" >&6; }
21536 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21537 for f
in $gcc_cv_as_bfd_srcdir/configure \
21538 $gcc_cv_as_gas_srcdir/configure \
21539 $gcc_cv_as_gas_srcdir/configure.
in \
21540 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21541 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21542 if test x
$gcc_cv_gas_version != x
; then
21546 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21547 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21548 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21549 case $gcc_cv_gas_patch_version in
21550 "") gcc_cv_gas_patch_version
="0" ;;
21552 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21553 + $gcc_cv_gas_minor_version \) \* 1000 \
21554 + $gcc_cv_gas_patch_version`
21556 in_tree_gas_is_elf
=no
21557 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21558 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21559 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21561 in_tree_gas_is_elf
=yes
21564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21565 $as_echo "$gcc_cv_as" >&6; }
21569 # Identify the linker which will work hand-in-glove with the newly
21570 # built GCC, so that we can examine its features. This is the linker
21571 # which will be driven by the driver program.
21573 # If build != host, and we aren't building gas in-tree, we identify a
21574 # build->target linker and hope that it will have the same features
21575 # as the host->target linker we'll be using.
21576 gcc_cv_gld_major_version
=
21577 gcc_cv_gld_minor_version
=
21578 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21579 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21581 if test "${gcc_cv_ld+set}" = set; then :
21585 if test -x "$DEFAULT_LINKER"; then
21586 gcc_cv_ld
="$DEFAULT_LINKER"
21587 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
21588 && test -f ..
/ld
/Makefile \
21589 && test x
$build = x
$host; then
21590 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21591 elif test -x collect-ld
$build_exeext; then
21592 # Build using linker in the current directory.
21593 gcc_cv_ld
=.
/collect-ld
$build_exeext
21594 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21595 gcc_cv_ld
="$LD_FOR_TARGET"
21597 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21598 set dummy
$LD_FOR_TARGET; ac_word
=$2
21599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21600 $as_echo_n "checking for $ac_word... " >&6; }
21601 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21602 $as_echo_n "(cached) " >&6
21606 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21609 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21610 for as_dir
in $PATH
21613 test -z "$as_dir" && as_dir
=.
21614 for ac_exec_ext
in '' $ac_executable_extensions; do
21615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21616 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
21617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21627 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
21628 if test -n "$gcc_cv_ld"; then
21629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21630 $as_echo "$gcc_cv_ld" >&6; }
21632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21633 $as_echo "no" >&6; }
21640 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
21641 PLUGIN_LD
=`basename $gcc_cv_ld`
21643 # Check whether --with-plugin-ld was given.
21644 if test "${with_plugin_ld+set}" = set; then :
21645 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
21646 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
21647 PLUGIN_LD
="$withval"
21653 cat >>confdefs.h
<<_ACEOF
21654 #define PLUGIN_LD "$PLUGIN_LD"
21658 # Check to see if we are using gold instead of ld
21659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21660 $as_echo_n "checking whether we are using gold... " >&6; }
21662 if test x
$gcc_cv_ld != x
; then
21663 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
21664 |
grep "GNU gold" > /dev
/null
; then
21668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21669 $as_echo "$ld_is_gold" >&6; }
21671 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
21673 case "$ORIGINAL_LD_FOR_TARGET" in
21674 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
21675 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
21679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21680 $as_echo_n "checking what linker to use... " >&6; }
21681 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
21682 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
21683 # Single tree build which includes ld. We want to prefer it
21684 # over whatever linker top-level may have detected, since
21685 # we'll use what we're building after installation anyway.
21686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21687 $as_echo "newly built ld" >&6; }
21689 in_tree_ld_is_elf
=no
21690 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
21691 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
21692 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
21693 in_tree_ld_is_elf
=yes
21694 elif test "$ld_is_gold" = yes; then
21695 in_tree_ld_is_elf
=yes
21697 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
21699 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21700 if test x
$gcc_cv_gld_version != x
; then
21704 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21705 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21708 $as_echo "$gcc_cv_ld" >&6; }
21712 # Figure out what nm we will be using.
21713 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21714 if test "${gcc_cv_nm+set}" = set; then :
21718 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21719 && test -f ..
/binutils
/Makefile \
21720 && test x
$build = x
$host; then
21721 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
21722 elif test -x nm
$build_exeext; then
21723 gcc_cv_nm
=.
/nm
$build_exeext
21724 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
21725 gcc_cv_nm
="$NM_FOR_TARGET"
21727 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21728 set dummy
$NM_FOR_TARGET; ac_word
=$2
21729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21730 $as_echo_n "checking for $ac_word... " >&6; }
21731 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21732 $as_echo_n "(cached) " >&6
21736 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
21739 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21740 for as_dir
in $PATH
21743 test -z "$as_dir" && as_dir
=.
21744 for ac_exec_ext
in '' $ac_executable_extensions; do
21745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21746 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
21747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21757 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
21758 if test -n "$gcc_cv_nm"; then
21759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21760 $as_echo "$gcc_cv_nm" >&6; }
21762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21763 $as_echo "no" >&6; }
21770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21771 $as_echo_n "checking what nm to use... " >&6; }
21772 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
21773 # Single tree build which includes binutils.
21774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21775 $as_echo "newly built nm" >&6; }
21778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21779 $as_echo "$gcc_cv_nm" >&6; }
21783 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
21785 case "$ORIGINAL_NM_FOR_TARGET" in
21786 .
/nm | .
/nm
$build_exeext) ;;
21787 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
21792 # Figure out what objdump we will be using.
21793 if test "${gcc_cv_objdump+set}" = set; then :
21797 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21798 && test -f ..
/binutils
/Makefile \
21799 && test x
$build = x
$host; then
21800 # Single tree build which includes binutils.
21801 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
21802 elif test -x objdump
$build_exeext; then
21803 gcc_cv_objdump
=.
/objdump
$build_exeext
21804 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
21805 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
21807 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21808 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
21809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21810 $as_echo_n "checking for $ac_word... " >&6; }
21811 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21812 $as_echo_n "(cached) " >&6
21814 case $gcc_cv_objdump in
21816 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
21819 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21820 for as_dir
in $PATH
21823 test -z "$as_dir" && as_dir
=.
21824 for ac_exec_ext
in '' $ac_executable_extensions; do
21825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21826 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
21827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21837 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
21838 if test -n "$gcc_cv_objdump"; then
21839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21840 $as_echo "$gcc_cv_objdump" >&6; }
21842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21843 $as_echo "no" >&6; }
21850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21851 $as_echo_n "checking what objdump to use... " >&6; }
21852 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
21853 # Single tree build which includes binutils.
21854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21855 $as_echo "newly built objdump" >&6; }
21856 elif test x
$gcc_cv_objdump = x
; then
21857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21858 $as_echo "not found" >&6; }
21860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21861 $as_echo "$gcc_cv_objdump" >&6; }
21864 # Figure out what readelf we will be using.
21865 if test "${gcc_cv_readelf+set}" = set; then :
21869 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21870 && test -f ..
/binutils
/Makefile \
21871 && test x
$build = x
$host; then
21872 # Single tree build which includes binutils.
21873 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
21874 elif test -x readelf
$build_exeext; then
21875 gcc_cv_readelf
=.
/readelf
$build_exeext
21877 # Extract the first word of "readelf", so it can be a program name with args.
21878 set dummy readelf
; ac_word
=$2
21879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21880 $as_echo_n "checking for $ac_word... " >&6; }
21881 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21882 $as_echo_n "(cached) " >&6
21884 case $gcc_cv_readelf in
21886 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
21889 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21890 for as_dir
in $PATH
21893 test -z "$as_dir" && as_dir
=.
21894 for ac_exec_ext
in '' $ac_executable_extensions; do
21895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21896 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
21897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21907 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
21908 if test -n "$gcc_cv_readelf"; then
21909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21910 $as_echo "$gcc_cv_readelf" >&6; }
21912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21913 $as_echo "no" >&6; }
21920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21921 $as_echo_n "checking what readelf to use... " >&6; }
21922 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
21923 # Single tree build which includes binutils.
21924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21925 $as_echo "newly built readelf" >&6; }
21926 elif test x
$gcc_cv_readelf = x
; then
21927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21928 $as_echo "not found" >&6; }
21930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21931 $as_echo "$gcc_cv_readelf" >&6; }
21934 # Figure out what assembler alignment features are present.
21935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21936 $as_echo_n "checking assembler flags... " >&6; }
21937 if test "${gcc_cv_as_flags+set}" = set; then :
21938 $as_echo_n "(cached) " >&6
21941 i
[34567]86-*-linux*)
21942 gcc_cv_as_flags
="--32"
21944 powerpc
*-*-darwin*)
21945 gcc_cv_as_flags
="-arch ppc"
21948 gcc_cv_as_flags
=" "
21952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21953 $as_echo "$gcc_cv_as_flags" >&6; }
21955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21956 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21957 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21958 $as_echo_n "(cached) " >&6
21960 gcc_cv_as_balign_and_p2align
=no
21961 if test $in_tree_gas = yes; then
21962 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21963 then gcc_cv_as_balign_and_p2align
=yes
21965 elif test x
$gcc_cv_as != x
; then
21966 $as_echo '.balign 4
21967 .p2align 2' > conftest.s
21968 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21970 (eval $ac_try) 2>&5
21972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21973 test $ac_status = 0; }; }
21975 gcc_cv_as_balign_and_p2align
=yes
21977 echo "configure: failed program was" >&5
21980 rm -f conftest.o conftest.s
21983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21984 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21985 if test $gcc_cv_as_balign_and_p2align = yes; then
21987 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21992 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21993 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21994 $as_echo_n "(cached) " >&6
21996 gcc_cv_as_max_skip_p2align
=no
21997 if test $in_tree_gas = yes; then
21998 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21999 then gcc_cv_as_max_skip_p2align
=yes
22001 elif test x
$gcc_cv_as != x
; then
22002 $as_echo '.p2align 4,,7' > conftest.s
22003 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22004 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22005 (eval $ac_try) 2>&5
22007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22008 test $ac_status = 0; }; }
22010 gcc_cv_as_max_skip_p2align
=yes
22012 echo "configure: failed program was" >&5
22015 rm -f conftest.o conftest.s
22018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22019 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22020 if test $gcc_cv_as_max_skip_p2align = yes; then
22022 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22027 $as_echo_n "checking assembler for .literal16... " >&6; }
22028 if test "${gcc_cv_as_literal16+set}" = set; then :
22029 $as_echo_n "(cached) " >&6
22031 gcc_cv_as_literal16
=no
22032 if test $in_tree_gas = yes; then
22033 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22034 then gcc_cv_as_literal16
=yes
22036 elif test x
$gcc_cv_as != x
; then
22037 $as_echo '.literal16' > conftest.s
22038 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22040 (eval $ac_try) 2>&5
22042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22043 test $ac_status = 0; }; }
22045 gcc_cv_as_literal16
=yes
22047 echo "configure: failed program was" >&5
22050 rm -f conftest.o conftest.s
22053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22054 $as_echo "$gcc_cv_as_literal16" >&6; }
22055 if test $gcc_cv_as_literal16 = yes; then
22057 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22062 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22063 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22064 $as_echo_n "(cached) " >&6
22066 gcc_cv_as_subsection_m1
=no
22067 if test $in_tree_gas = yes; then
22068 if test $in_tree_gas_is_elf = yes \
22069 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22070 then gcc_cv_as_subsection_m1
=yes
22072 elif test x
$gcc_cv_as != x
; then
22073 $as_echo 'conftest_label1: .word 0
22075 conftest_label2: .word 0
22076 .previous' > conftest.s
22077 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22078 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22079 (eval $ac_try) 2>&5
22081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22082 test $ac_status = 0; }; }
22084 if test x
$gcc_cv_nm != x
; then
22085 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
22086 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
22087 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
22089 else gcc_cv_as_subsection_m1
=yes
22091 rm -f conftest.nm1 conftest.nm2
22094 echo "configure: failed program was" >&5
22097 rm -f conftest.o conftest.s
22100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22101 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22102 if test $gcc_cv_as_subsection_m1 = yes; then
22104 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22109 $as_echo_n "checking assembler for .weak... " >&6; }
22110 if test "${gcc_cv_as_weak+set}" = set; then :
22111 $as_echo_n "(cached) " >&6
22114 if test $in_tree_gas = yes; then
22115 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22116 then gcc_cv_as_weak
=yes
22118 elif test x
$gcc_cv_as != x
; then
22119 $as_echo ' .weak foobar' > conftest.s
22120 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22121 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22122 (eval $ac_try) 2>&5
22124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22125 test $ac_status = 0; }; }
22129 echo "configure: failed program was" >&5
22132 rm -f conftest.o conftest.s
22135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22136 $as_echo "$gcc_cv_as_weak" >&6; }
22137 if test $gcc_cv_as_weak = yes; then
22139 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22144 $as_echo_n "checking assembler for .weakref... " >&6; }
22145 if test "${gcc_cv_as_weakref+set}" = set; then :
22146 $as_echo_n "(cached) " >&6
22148 gcc_cv_as_weakref
=no
22149 if test $in_tree_gas = yes; then
22150 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22151 then gcc_cv_as_weakref
=yes
22153 elif test x
$gcc_cv_as != x
; then
22154 $as_echo ' .weakref foobar, barfnot' > conftest.s
22155 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22156 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22157 (eval $ac_try) 2>&5
22159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22160 test $ac_status = 0; }; }
22162 gcc_cv_as_weakref
=yes
22164 echo "configure: failed program was" >&5
22167 rm -f conftest.o conftest.s
22170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22171 $as_echo "$gcc_cv_as_weakref" >&6; }
22172 if test $gcc_cv_as_weakref = yes; then
22174 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22179 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22180 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22181 $as_echo_n "(cached) " >&6
22183 gcc_cv_as_nsubspa_comdat
=no
22184 if test $in_tree_gas = yes; then
22185 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22186 then gcc_cv_as_nsubspa_comdat
=yes
22188 elif test x
$gcc_cv_as != x
; then
22189 $as_echo ' .SPACE $TEXT$
22190 .NSUBSPA $CODE$,COMDAT' > conftest.s
22191 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22192 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22193 (eval $ac_try) 2>&5
22195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22196 test $ac_status = 0; }; }
22198 gcc_cv_as_nsubspa_comdat
=yes
22200 echo "configure: failed program was" >&5
22203 rm -f conftest.o conftest.s
22206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22207 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22208 if test $gcc_cv_as_nsubspa_comdat = yes; then
22210 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22214 # .hidden needs to be supported in both the assembler and the linker,
22215 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22216 # This is irritatingly difficult to feature test for; we have to check the
22217 # date string after the version number. If we've got an in-tree
22218 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22220 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22222 $as_echo_n "checking assembler for .hidden... " >&6; }
22223 if test "${gcc_cv_as_hidden+set}" = set; then :
22224 $as_echo_n "(cached) " >&6
22226 gcc_cv_as_hidden
=no
22227 if test $in_tree_gas = yes; then
22228 if test $in_tree_gas_is_elf = yes \
22229 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22230 then gcc_cv_as_hidden
=yes
22232 elif test x
$gcc_cv_as != x
; then
22233 $as_echo ' .hidden foobar
22234 foobar:' > conftest.s
22235 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22236 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22237 (eval $ac_try) 2>&5
22239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22240 test $ac_status = 0; }; }
22243 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22244 # STV_HIDDEN, so disable .hidden support if so.
22245 case "${target}" in
22246 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
22247 if test x
$gcc_cv_as != x
&& test x
$gcc_cv_objdump != x
; then
22248 cat > conftest.s
<<EOF
22253 .set default,hidden
22255 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22256 && $gcc_cv_objdump -t conftest.o
2>/dev
/null | \
22257 grep '\.hidden default' > /dev
/null
; then
22258 gcc_cv_as_hidden
=no
22260 gcc_cv_as_hidden
=yes
22263 # Assume bug is present if objdump is missing.
22264 gcc_cv_as_hidden
=no
22268 gcc_cv_as_hidden
=yes
22272 echo "configure: failed program was" >&5
22275 rm -f conftest.o conftest.s
22278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22279 $as_echo "$gcc_cv_as_hidden" >&6; }
22281 case "${target}" in
22283 # Darwin as has some visibility support, though with a different syntax.
22284 gcc_cv_as_hidden
=yes
22288 # gnu_indirect_function type is an extension proposed at
22289 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22290 # selection of function implementation
22291 # Check whether --enable-gnu-indirect-function was given.
22292 if test "${enable_gnu_indirect_function+set}" = set; then :
22293 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22295 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22296 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22299 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22302 if test x
$enable_gnu_indirect_function = xyes
; then
22304 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22308 if test $in_tree_ld != yes ; then
22309 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22310 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22311 if test x
"$ld_is_gold" = xyes
; then
22312 # GNU gold --version looks like this:
22314 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22316 # We extract the binutils version which is more familiar and specific
22317 # than the gold version.
22318 ld_vers
=`echo $ld_ver | sed -n \
22319 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22321 # GNU ld --version looks like this:
22323 # GNU ld (GNU Binutils) 2.21.51.20110225
22324 ld_vers
=`echo $ld_ver | sed -n \
22325 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22327 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'`
22328 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22329 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22330 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22332 case "${target}" in
22335 # Solaris 2 ld -V output looks like this for a regular version:
22337 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22339 # but test versions add stuff at the end:
22341 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22343 ld_ver
=`$gcc_cv_ld -V 2>&1`
22344 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22345 ld_vers
=`echo $ld_ver | sed -n \
22346 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22347 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22348 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22356 $as_echo_n "checking linker for .hidden support... " >&6; }
22357 if test "${gcc_cv_ld_hidden+set}" = set; then :
22358 $as_echo_n "(cached) " >&6
22360 if test $in_tree_ld = yes ; then
22361 gcc_cv_ld_hidden
=no
22362 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 \
22363 && test $in_tree_ld_is_elf = yes; then
22364 gcc_cv_ld_hidden
=yes
22367 gcc_cv_ld_hidden
=yes
22368 if test x
"$ld_is_gold" = xyes
; then
22370 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22371 if test 0"$ld_date" -lt 20020404; then
22372 if test -n "$ld_date"; then
22373 # If there was date string, but was earlier than 2002-04-04, fail
22374 gcc_cv_ld_hidden
=no
22375 elif test -z "$ld_vers"; then
22376 # If there was no date string nor ld version number, something is wrong
22377 gcc_cv_ld_hidden
=no
22379 test -z "$ld_vers_patch" && ld_vers_patch
=0
22380 if test "$ld_vers_major" -lt 2; then
22381 gcc_cv_ld_hidden
=no
22382 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22383 gcc_cv_ld_hidden
="no"
22384 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22385 gcc_cv_ld_hidden
=no
22390 case "${target}" in
22392 # Darwin ld has some visibility support.
22393 gcc_cv_ld_hidden
=yes
22395 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22396 gcc_cv_ld_hidden
=yes
22399 # .hidden support was backported to Solaris 8, starting with ld
22401 if test "$ld_vers_minor" -ge 276; then
22402 gcc_cv_ld_hidden
=yes
22404 gcc_cv_ld_hidden
=no
22407 *-*-solaris2.9
* |
*-*-solaris2.1
[0-9]*)
22408 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22409 # .symbolic was only added in Solaris 9 12/02.
22410 gcc_cv_ld_hidden
=yes
22413 gcc_cv_ld_hidden
=no
22419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22420 $as_echo "$gcc_cv_ld_hidden" >&6; }
22421 libgcc_visibility
=no
22424 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22425 libgcc_visibility
=yes
22427 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22432 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22433 gcc_cv_ld_ro_rw_mix
=unknown
22434 if test $in_tree_ld = yes ; then
22435 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 \
22436 && test $in_tree_ld_is_elf = yes; then
22437 gcc_cv_ld_ro_rw_mix
=read-write
22439 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22440 echo '.section myfoosect, "a"' > conftest1.s
22441 echo '.section myfoosect, "aw"' > conftest2.s
22442 echo '.byte 1' >> conftest2.s
22443 echo '.section myfoosect, "a"' > conftest3.s
22444 echo '.byte 0' >> conftest3.s
22445 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22446 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22447 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22448 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22449 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22450 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22451 | sed -e '/myfoosect/!d' -e N`
22452 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22453 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22454 gcc_cv_ld_ro_rw_mix
=read-only
22456 gcc_cv_ld_ro_rw_mix
=read-write
22460 rm -f conftest.
* conftest
[123].
*
22462 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22464 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22468 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22470 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22472 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22473 if test "${gcc_cv_as_leb128+set}" = set; then :
22474 $as_echo_n "(cached) " >&6
22476 gcc_cv_as_leb128
=no
22477 if test $in_tree_gas = yes; then
22478 if test $in_tree_gas_is_elf = yes \
22479 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22480 then gcc_cv_as_leb128
=yes
22482 elif test x
$gcc_cv_as != x
; then
22489 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22490 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22491 (eval $ac_try) 2>&5
22493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22494 test $ac_status = 0; }; }
22496 # GAS versions before 2.11 do not support uleb128,
22497 # despite appearing to.
22498 # ??? There exists an elf-specific test that will crash
22499 # the assembler. Perhaps it's better to figure out whether
22500 # arbitrary sections are supported and try the test.
22501 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22502 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
22503 as_vers
=`echo $as_ver | sed -n \
22504 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22505 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
22506 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22507 if test $as_major -eq 2 && test $as_minor -lt 11
22509 else gcc_cv_as_leb128
=yes
22513 echo "configure: failed program was" >&5
22516 rm -f conftest.o conftest.s
22519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22520 $as_echo "$gcc_cv_as_leb128" >&6; }
22521 if test $gcc_cv_as_leb128 = yes; then
22523 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22527 # Check if we have assembler support for unwind directives.
22528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22529 $as_echo_n "checking assembler for cfi directives... " >&6; }
22530 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22531 $as_echo_n "(cached) " >&6
22533 gcc_cv_as_cfi_directive
=no
22534 if test x
$gcc_cv_as != x
; then
22540 .cfi_escape 1, 2, 3, 4, 5
22541 .cfi_endproc' > conftest.s
22542 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22543 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22544 (eval $ac_try) 2>&5
22546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22547 test $ac_status = 0; }; }
22551 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22552 # read-only and read-write sections, we need to make sure that the
22553 # assembler used emits read-write .eh_frame sections.
22554 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
22555 if test "x$gcc_cv_objdump" != x
; then
22556 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22557 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
22558 gcc_cv_as_cfi_directive
=no
22561 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
22562 # On Solaris/x86, make sure that GCC and gas agree on using
22563 # read-only .eh_frame sections for 64-bit.
22564 if $gcc_cv_as --64 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
22565 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22566 sed -e /.eh_frame
/!d
-e N | \
22567 grep READONLY
> /dev
/null
; then
22568 gcc_cv_as_cfi_directive
=yes
22570 gcc_cv_as_cfi_directive
=no
22574 gcc_cv_as_cfi_directive
=yes
22579 # no objdump, err on the side of caution
22580 gcc_cv_as_cfi_directive
=no
22583 gcc_cv_as_cfi_directive
=yes
22587 gcc_cv_as_cfi_directive
=yes
22591 echo "configure: failed program was" >&5
22594 rm -f conftest.o conftest.s
22597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22598 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22600 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
22601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22602 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22603 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22604 $as_echo_n "(cached) " >&6
22606 gcc_cv_as_cfi_advance_working
=no
22607 if test x
$gcc_cv_as != x
; then
22610 .cfi_adjust_cfa_offset 64
22612 .cfi_adjust_cfa_offset 128
22613 .cfi_endproc' > conftest.s
22614 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22615 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22616 (eval $ac_try) 2>&5
22618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22619 test $ac_status = 0; }; }
22622 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
22623 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
22624 gcc_cv_as_cfi_advance_working
=yes
22628 echo "configure: failed program was" >&5
22631 rm -f conftest.o conftest.s
22634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22635 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22638 # no objdump, err on the side of caution
22639 gcc_cv_as_cfi_advance_working
=no
22643 cat >>confdefs.h
<<_ACEOF
22644 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22645 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22651 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22652 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22653 $as_echo_n "(cached) " >&6
22655 gcc_cv_as_cfi_personality_directive
=no
22656 if test x
$gcc_cv_as != x
; then
22659 .cfi_personality 0, symbol
22660 .cfi_endproc' > conftest.s
22661 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22663 (eval $ac_try) 2>&5
22665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22666 test $ac_status = 0; }; }
22668 gcc_cv_as_cfi_personality_directive
=yes
22670 echo "configure: failed program was" >&5
22673 rm -f conftest.o conftest.s
22676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22677 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22680 cat >>confdefs.h
<<_ACEOF
22681 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22682 then echo 1; else echo 0; fi`
22686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22687 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22688 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22689 $as_echo_n "(cached) " >&6
22691 gcc_cv_as_cfi_sections_directive
=no
22692 if test x
$gcc_cv_as != x
; then
22694 .cfi_sections .debug_frame, .eh_frame
22696 .cfi_endproc' > conftest.s
22697 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22699 (eval $ac_try) 2>&5
22701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22702 test $ac_status = 0; }; }
22705 win32 | pe | cygwin
* | mingw32
* | uwin
*)
22706 # Need to check that we generated the correct relocation for the
22707 # .debug_frame section. This was fixed for binutils 2.21.
22708 gcc_cv_as_cfi_sections_directive
=no
22709 if test "x$gcc_cv_objdump" != x
; then
22710 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
22711 grep secrel
> /dev
/null
; then
22712 gcc_cv_as_cfi_sections_directive
=yes
22717 gcc_cv_as_cfi_sections_directive
=yes
22721 echo "configure: failed program was" >&5
22724 rm -f conftest.o conftest.s
22727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22728 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22732 cat >>confdefs.h
<<_ACEOF
22733 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22734 then echo 1; else echo 0; fi`
22738 # GAS versions up to and including 2.11.0 may mis-optimize
22740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22741 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22742 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22743 $as_echo_n "(cached) " >&6
22745 gcc_cv_as_eh_frame
=no
22746 if test $in_tree_gas = yes; then
22747 if test $in_tree_gas_is_elf = yes \
22748 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22749 then gcc_cv_as_eh_frame
=yes
22751 elif test x
$gcc_cv_as != x
; then
22758 .section .eh_frame,"aw",@progbits
22760 .4byte .LECIE1-.LSCIE1
22774 .4byte .LEFDE1-.LASFDE1
22776 .4byte .LASFDE1-__FRAME_BEGIN__
22783 .LEFDE1:' > conftest.s
22784 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22785 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22786 (eval $ac_try) 2>&5
22788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22789 test $ac_status = 0; }; }
22791 cat > conftest.lit
<<EOF
22792 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22793 0010 01000000 12000000 18000000 00000000 ................
22794 0020 08000000 04080000 0044 .........D
22796 cat > conftest.big
<<EOF
22797 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22798 0010 00000001 00000012 00000018 00000000 ................
22799 0020 00000008 04000000 0844 .........D
22801 # If the assembler didn't choke, and we can objdump,
22802 # and we got the correct data, then succeed.
22803 # The text in the here-document typically retains its unix-style line
22804 # endings, while the output of objdump will use host line endings.
22805 # Therefore, use diff -b for the comparisons.
22806 if test x
$gcc_cv_objdump != x \
22807 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
22808 |
tail -3 > conftest.got \
22809 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
22810 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
22812 gcc_cv_as_eh_frame
=yes
22813 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22814 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22815 (eval $ac_try) 2>&5
22817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22818 test $ac_status = 0; }; }; then
22819 gcc_cv_as_eh_frame
=buggy
22821 # Uh oh, what do we do now?
22822 gcc_cv_as_eh_frame
=no
22825 echo "configure: failed program was" >&5
22828 rm -f conftest.o conftest.s
22831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22832 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22835 if test $gcc_cv_as_eh_frame = buggy
; then
22837 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22842 $as_echo_n "checking assembler for section merging support... " >&6; }
22843 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22844 $as_echo_n "(cached) " >&6
22846 gcc_cv_as_shf_merge
=no
22847 if test $in_tree_gas = yes; then
22848 if test $in_tree_gas_is_elf = yes \
22849 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22850 then gcc_cv_as_shf_merge
=yes
22852 elif test x
$gcc_cv_as != x
; then
22853 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22854 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22855 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22856 (eval $ac_try) 2>&5
22858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22859 test $ac_status = 0; }; }
22861 gcc_cv_as_shf_merge
=yes
22863 echo "configure: failed program was" >&5
22866 rm -f conftest.o conftest.s
22869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22870 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22872 if test $gcc_cv_as_shf_merge = no
; then
22873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22874 $as_echo_n "checking assembler for section merging support... " >&6; }
22875 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22876 $as_echo_n "(cached) " >&6
22878 gcc_cv_as_shf_merge
=no
22879 if test $in_tree_gas = yes; then
22880 if test $in_tree_gas_is_elf = yes \
22881 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22882 then gcc_cv_as_shf_merge
=yes
22884 elif test x
$gcc_cv_as != x
; then
22885 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22886 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22888 (eval $ac_try) 2>&5
22890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22891 test $ac_status = 0; }; }
22893 gcc_cv_as_shf_merge
=yes
22895 echo "configure: failed program was" >&5
22898 rm -f conftest.o conftest.s
22901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22902 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22906 cat >>confdefs.h
<<_ACEOF
22907 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22912 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22913 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22914 $as_echo_n "(cached) " >&6
22916 gcc_cv_as_comdat_group
=no
22917 if test $in_tree_gas = yes; then
22918 if test $in_tree_gas_is_elf = yes \
22919 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22920 then gcc_cv_as_comdat_group
=yes
22922 elif test x
$gcc_cv_as != x
; then
22923 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22924 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22925 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22926 (eval $ac_try) 2>&5
22928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22929 test $ac_status = 0; }; }
22931 gcc_cv_as_comdat_group
=yes
22933 echo "configure: failed program was" >&5
22936 rm -f conftest.o conftest.s
22939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22940 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22942 if test $gcc_cv_as_comdat_group = yes; then
22943 gcc_cv_as_comdat_group_percent
=no
22944 gcc_cv_as_comdat_group_group
=no
22946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22947 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22948 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22949 $as_echo_n "(cached) " >&6
22951 gcc_cv_as_comdat_group_percent
=no
22952 if test $in_tree_gas = yes; then
22953 if test $in_tree_gas_is_elf = yes \
22954 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22955 then gcc_cv_as_comdat_group_percent
=yes
22957 elif test x
$gcc_cv_as != x
; then
22958 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22959 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22961 (eval $ac_try) 2>&5
22963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22964 test $ac_status = 0; }; }
22966 gcc_cv_as_comdat_group_percent
=yes
22968 echo "configure: failed program was" >&5
22971 rm -f conftest.o conftest.s
22974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22975 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22977 if test $gcc_cv_as_comdat_group_percent = yes; then
22978 gcc_cv_as_comdat_group_group
=no
22980 case "${target}" in
22981 # Sun as uses a completely different syntax.
22983 case "${target}" in
22984 sparc
*-*-solaris2*)
22986 .group foo,".text%foo",#comdat
22987 .section ".text%foo", #alloc,#execinstr,#progbits
22992 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
22994 .group foo,.text%foo,#comdat
22995 .section .text%foo, "ax", @progbits
23001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23002 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23003 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23004 $as_echo_n "(cached) " >&6
23006 gcc_cv_as_comdat_group_group
=no
23007 if test x
$gcc_cv_as != x
; then
23008 $as_echo "$conftest_s" > conftest.s
23009 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23010 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23011 (eval $ac_try) 2>&5
23013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23014 test $ac_status = 0; }; }
23016 gcc_cv_as_comdat_group_group
=yes
23018 echo "configure: failed program was" >&5
23021 rm -f conftest.o conftest.s
23024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23025 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23031 if test x
"$ld_is_gold" = xyes
; then
23033 elif test $in_tree_ld = yes ; then
23035 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 \
23036 && test $in_tree_ld_is_elf = yes; then
23039 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23041 if test 0"$ld_date" -lt 20050308; then
23042 if test -n "$ld_date"; then
23043 # If there was date string, but was earlier than 2005-03-08, fail
23045 elif test "$ld_vers_major" -lt 2; then
23047 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23052 case "${target}" in
23053 *-*-solaris2.1
[1-9]*)
23055 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23056 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23059 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23060 # least ld version 1.2267.
23061 if test "$ld_vers_major" -gt 1; then
23063 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
23065 elif test "$ld_vers_minor" -ge 2267; then
23070 # Assume linkers other than GNU ld don't support COMDAT group.
23075 # Allow overriding the automatic COMDAT group tests above.
23076 # Check whether --enable-comdat was given.
23077 if test "${enable_comdat+set}" = set; then :
23078 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
23081 if test $comdat_group = no
; then
23082 gcc_cv_as_comdat_group
=no
23083 gcc_cv_as_comdat_group_percent
=no
23084 gcc_cv_as_comdat_group_group
=no
23087 cat >>confdefs.h
<<_ACEOF
23088 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23089 || test $gcc_cv_as_comdat_group_percent = yes \
23090 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23095 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23096 if test "${gcc_cv_as_discriminator+set}" = set; then :
23097 $as_echo_n "(cached) " >&6
23099 gcc_cv_as_discriminator
=no
23100 if test $in_tree_gas = yes; then
23101 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23102 then gcc_cv_as_discriminator
=yes
23104 elif test x
$gcc_cv_as != x
; then
23107 .loc 1 1 0 discriminator 1' > conftest.s
23108 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23110 (eval $ac_try) 2>&5
23112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23113 test $ac_status = 0; }; }
23115 gcc_cv_as_discriminator
=yes
23117 echo "configure: failed program was" >&5
23120 rm -f conftest.o conftest.s
23123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23124 $as_echo "$gcc_cv_as_discriminator" >&6; }
23125 if test $gcc_cv_as_discriminator = yes; then
23127 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23131 # Thread-local storage - the check is heavily parameterized.
23139 .section ".tdata","awT",@progbits
23142 ldq $27,__tls_get_addr($29) !literal!1
23143 lda $16,foo($29) !tlsgd!1
23144 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23145 ldq $27,__tls_get_addr($29) !literal!2
23146 lda $16,foo($29) !tlsldm!2
23147 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23148 ldq $1,foo($29) !gotdtprel
23149 ldah $2,foo($29) !dtprelhi
23150 lda $3,foo($2) !dtprello
23151 lda $4,foo($29) !dtprel
23152 ldq $1,foo($29) !gottprel
23153 ldah $2,foo($29) !tprelhi
23154 lda $3,foo($2) !tprello
23155 lda $4,foo($29) !tprel'
23158 tls_as_opt
=--fatal-warnings
23160 cris-
*-*|crisv32-
*-*)
23162 .section ".tdata","awT",@progbits
23169 tls_as_opt
=--fatal-warnings
23173 .section ".tdata","awT",@progbits
23176 call #gettlsoff(x)'
23185 .section ".tdata","awT",@progbits
23189 addil LT%foo-$tls_gdidx$,gp
23190 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23193 addil LT%foo-$tls_ldidx$,gp
23195 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23196 addil LR%foo-$tls_dtpoff$,%ret0
23197 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23199 addil LT%foo-$tls_ieoff$,gp
23200 ldw RT%foo-$tls_ieoff$(%r1),%t2
23203 addil LR%foo-$tls_leoff$,%t1
23204 ldo RR%foo-$tls_leoff$(%r1),%t2'
23207 tls_as_opt
=--fatal-warnings
23211 .section ".tdata","awT",%progbits
23214 .word foo(gottpoff)
23222 i
[34567]86-*-* | x86_64-
*-solaris2.1
[0-9]*)
23224 i
[34567]86-*-solaris2.
*)
23226 tga_func
=___tls_get_addr
23228 x86_64-
*-solaris2.1
[0-9]*)
23230 tga_func
=__tls_get_addr
23236 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23238 .section .tdata,"awt",@progbits'
23242 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23246 .section ".tdata","awT",@progbits'
23249 tls_as_opt
="--fatal-warnings"
23251 conftest_s
="$conftest_s
23255 leal foo@tlsgd(,%ebx,1), %eax
23256 leal foo@tlsldm(%ebx), %eax
23257 leal foo@dtpoff(%eax), %edx
23258 movl foo@gottpoff(%ebx), %eax
23259 subl foo@gottpoff(%ebx), %eax
23260 addl foo@gotntpoff(%ebx), %eax
23261 movl foo@indntpoff, %eax
23262 movl \$foo@tpoff, %eax
23263 subl \$foo@tpoff, %eax
23264 leal foo@ntpoff(%ecx), %eax"
23268 .section ".tdata","awT",@progbits
23272 leaq foo@TLSGD(%rip), %rdi
23273 leaq foo@TLSLD(%rip), %rdi
23274 leaq foo@DTPOFF(%rax), %rdx
23275 movq foo@GOTTPOFF(%rip), %rax
23276 movq $foo@TPOFF, %rax'
23279 tls_as_opt
=--fatal-warnings
23283 .section ".tdata","awT",@progbits
23286 addl r16 = @ltoff(@dtpmod(foo#)), gp
23287 addl r17 = @ltoff(@dtprel(foo#)), gp
23288 addl r18 = @ltoff(@tprel(foo#)), gp
23289 addl r19 = @dtprel(foo#), gp
23290 adds r21 = @dtprel(foo#), r13
23291 movl r23 = @dtprel(foo#)
23292 addl r20 = @tprel(foo#), gp
23293 adds r22 = @tprel(foo#), r13
23294 movl r24 = @tprel(foo#)'
23297 tls_as_opt
=--fatal-warnings
23301 .section .tdata,"awT",@progbits
23305 addiu $4, $28, %tlsgd(x)
23306 addiu $4, $28, %tlsldm(x)
23307 lui $4, %dtprel_hi(x)
23308 addiu $4, $4, %dtprel_lo(x)
23309 lw $4, %gottprel(x)($28)
23310 lui $4, %tprel_hi(x)
23311 addiu $4, $4, %tprel_lo(x)'
23314 tls_as_opt
='-32 --fatal-warnings'
23318 .section .tdata,"awT",@progbits
23323 move.l x@TLSGD(%a5),%a0
23324 move.l x@TLSLDM(%a5),%a0
23325 move.l x@TLSLDO(%a5),%a0
23326 move.l x@TLSIE(%a5),%a0
23327 move.l x@TLSLE(%a5),%a0'
23330 tls_as_opt
='--fatal-warnings'
23334 .section ".tdata","awT",@progbits
23342 addi 3,31,ld0@got@tlsgd
23344 addi 3,31,x1@got@tlsld
23347 addis 9,3,x2@dtprel@ha
23348 addi 9,9,x2@dtprel@l
23349 lwz 9,x3@got@tprel(31)
23352 addis 9,2,x2@tprel@ha
23353 addi 9,9,x2@tprel@l'
23356 tls_as_opt
="-a32 --fatal-warnings"
23360 .section ".tdata","awT",@progbits
23368 addi 3,2,ld0@got@tlsgd
23374 addi 3,2,x1@got@tlsld
23380 addis 9,3,x2@dtprel@ha
23381 addi 9,9,x2@dtprel@l
23384 ld 9,x3@got@dtprel(2)
23390 tls_as_opt
="-a64 --fatal-warnings"
23394 .section ".tdata","awT",@progbits
23401 .long foo@GOTNTPOFF
23402 .long foo@INDNTPOFF
23403 l %r1,foo@GOTNTPOFF(%r12)
23404 l %r1,0(%r1):tls_load:foo
23405 bas %r14,0(%r1,%r13):tls_gdcall:foo
23406 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23409 tls_as_opt
="-m31 --fatal-warnings"
23413 .section ".tdata","awT",@progbits
23420 .quad foo@GOTNTPOFF
23421 lg %r1,foo@GOTNTPOFF(%r12)
23422 larl %r1,foo@INDNTPOFF
23423 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23424 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23427 tls_as_opt
="-m64 -Aesame --fatal-warnings"
23429 sh-
*-* | sh
[34]-*-*)
23431 .section ".tdata","awT",@progbits
23441 tls_as_opt
=--fatal-warnings
23445 sparc
*-sun-solaris2.
*)
23447 tga_func
=__tls_get_addr
23453 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23455 .section ".tdata",#alloc,#write,#tls'
23460 .section ".tdata","awT",@progbits'
23463 tls_as_opt
="-32 --fatal-warnings"
23465 conftest_s
="$conftest_s
23468 sethi %tgd_hi22(foo), %o0
23469 add %o0, %tgd_lo10(foo), %o1
23470 add %l7, %o1, %o0, %tgd_add(foo)
23471 call __tls_get_addr, %tgd_call(foo)
23472 sethi %tldm_hi22(foo), %l1
23473 add %l1, %tldm_lo10(foo), %l2
23474 add %l7, %l2, %o0, %tldm_add(foo)
23475 call __tls_get_addr, %tldm_call(foo)
23476 sethi %tldo_hix22(foo), %l3
23477 xor %l3, %tldo_lox10(foo), %l4
23478 add %o0, %l4, %l5, %tldo_add(foo)
23479 sethi %tie_hi22(foo), %o3
23480 add %o3, %tie_lo10(foo), %o3
23481 ld [%l7 + %o3], %o2, %tie_ld(foo)
23482 add %g7, %o2, %o4, %tie_add(foo)
23483 sethi %tle_hix22(foo), %l1
23484 xor %l1, %tle_lox10(foo), %o5
23485 ld [%g7 + %o5], %o1"
23489 .section ".tdata","awT",@progbits
23492 movi a8, foo@TLSFUNC
23493 movi a10, foo@TLSARG
23494 callx8.tls a8, foo@TLSCALL'
23500 if test "x$enable_tls" = xno
; then
23501 : # TLS explicitly disabled.
23502 elif test "x$enable_tls" = xyes
; then
23503 set_have_as_tls
=yes # TLS explicitly enabled.
23504 elif test -z "$tls_first_major"; then
23505 : # If we don't have a check, assume no support.
23507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23508 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23509 if test "${gcc_cv_as_tls+set}" = set; then :
23510 $as_echo_n "(cached) " >&6
23513 if test $in_tree_gas = yes; then
23514 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23515 then gcc_cv_as_tls
=yes
23517 elif test x
$gcc_cv_as != x
; then
23518 $as_echo "$conftest_s" > conftest.s
23519 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23521 (eval $ac_try) 2>&5
23523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23524 test $ac_status = 0; }; }
23528 echo "configure: failed program was" >&5
23531 rm -f conftest.o conftest.s
23534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23535 $as_echo "$gcc_cv_as_tls" >&6; }
23536 if test $gcc_cv_as_tls = yes; then
23537 set_have_as_tls
=yes
23542 # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
23543 # with TLS support are in use, native TLS cannot work.
23547 # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
23548 # gld with TLS support are in use, native TLS cannot work.
23551 # TLS was introduced in the Solaris 9 FCS release and backported to
23552 # Solaris 8 patches. Support for GNU-style TLS on x86 was only
23553 # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
23554 # ld and GCC don't support any longer.
23556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23557 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23559 # Check ld and ld.so.1 TLS support.
23560 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23561 # Assume all interesting versions of GNU ld have TLS support.
23562 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23566 # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
23568 min_tls_ld_vers_minor
=280
23570 # Solaris 8/SPARC ld has TLS support since version 1.272.
23571 sparc
*-*-solaris2.8
)
23572 min_tls_ld_vers_minor
=272
23574 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23576 min_tls_ld_vers_minor
=374
23578 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23579 sparc
*-*-solaris2.9 |
*-*-solaris2.1
[0-9]*)
23580 min_tls_ld_vers_minor
=343
23583 if test "$ld_vers_major" -gt 1 || \
23584 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23591 $as_echo "$ld_tls_support" >&6; }
23594 save_LDFLAGS
="$LDFLAGS"
23598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
23599 $as_echo_n "checking alternate thread library... " >&6; }
23601 # TLS support was backported to Solaris 8 patches, but only lives in
23602 # the alternate thread library which became the default in Solaris 9.
23603 # We want to always use that, irrespective of TLS support.
23605 # Take multilib subdir into account. There's no spec to handle
23606 # this. The 64 symlink exists since Solaris 8.
23607 lwp_dir
=/usr
/lib
/lwp
23608 lwp_spec
="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
23609 LDFLAGS
="-L$lwp_dir -R$lwp_dir"
23616 # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
23618 cat >>confdefs.h
<<_ACEOF
23619 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
23622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
23623 $as_echo "$lwp_dir" >&6; }
23625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23626 $as_echo_n "checking library containing $tga_func... " >&6; }
23627 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23628 # (32-bit x86) only lived in libthread, so check for that. Keep
23629 # set_have_as_tls if found, disable if not.
23630 as_ac_Search
=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23632 $as_echo_n "checking for library containing $tga_func... " >&6; }
23633 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23634 $as_echo_n "(cached) " >&6
23636 ac_func_search_save_LIBS
=$LIBS
23637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23638 /* end confdefs.h. */
23640 /* Override any GCC internal prototype to avoid an error.
23641 Use char because int might match the return type of a GCC
23642 builtin and then its argument prototype would still apply. */
23650 return $tga_func ();
23655 for ac_lib
in '' thread
; do
23656 if test -z "$ac_lib"; then
23657 ac_res
="none required"
23660 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
23662 if ac_fn_c_try_link
"$LINENO"; then :
23663 eval "$as_ac_Search=\$ac_res"
23665 rm -f core conftest.err conftest.
$ac_objext \
23667 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23671 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23674 eval "$as_ac_Search=no"
23676 rm conftest.
$ac_ext
23677 LIBS
=$ac_func_search_save_LIBS
23679 eval ac_res
=\$
$as_ac_Search
23680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23681 $as_echo "$ac_res" >&6; }
23682 eval ac_res
=\$
$as_ac_Search
23683 if test "$ac_res" != no
; then :
23684 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
23690 # Clear LIBS if we cannot support TLS.
23691 if test $set_have_as_tls = no
; then
23694 # Always define LIB_TLS_SPEC, even without TLS support.
23696 cat >>confdefs.h
<<_ACEOF
23697 #define LIB_TLS_SPEC "$LIBS"
23700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23701 $as_echo "$LIBS" >&6; }
23704 LDFLAGS
="$save_LDFLAGS"
23707 if test $set_have_as_tls = yes ; then
23709 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23713 # Target-specific assembler checks.
23715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23716 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23717 gcc_cv_ld_static_dynamic
=no
23718 gcc_cv_ld_static_option
='-Bstatic'
23719 gcc_cv_ld_dynamic_option
='-Bdynamic'
23720 if test $in_tree_ld = yes ; then
23721 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
23722 gcc_cv_ld_static_dynamic
=yes
23724 elif test x
$gcc_cv_ld != x
; then
23725 # Check if linker supports -Bstatic/-Bdynamic option
23726 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
23727 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
23728 gcc_cv_ld_static_dynamic
=yes
23731 # Tru64 UNIX support -noso/-so_archive instead of -Bstatic/-Bdynamic.
23733 gcc_cv_ld_static_dynamic
=yes
23734 gcc_cv_ld_static_option
="-noso"
23735 gcc_cv_ld_dynamic_option
="-so_archive"
23737 # HP-UX ld uses -a flags to select between shared and archive.
23739 if test x
"$gnu_ld" = xno
; then
23740 gcc_cv_ld_static_dynamic
=yes
23741 gcc_cv_ld_static_option
="-aarchive_shared"
23742 gcc_cv_ld_dynamic_option
="-adefault"
23745 # IRIX 6 ld supports -Bstatic/-Bdynamic.
23747 gcc_cv_ld_static_dynamic
=yes
23749 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23751 gcc_cv_ld_static_dynamic
=yes
23756 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
23758 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23761 cat >>confdefs.h
<<_ACEOF
23762 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23766 cat >>confdefs.h
<<_ACEOF
23767 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23772 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23774 if test x
"$demangler_in_ld" = xyes
; then
23775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23776 $as_echo_n "checking linker --demangle support... " >&6; }
23777 gcc_cv_ld_demangle
=no
23778 if test $in_tree_ld = yes; then
23779 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 \
23780 gcc_cv_ld_demangle
=yes
23782 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
23783 # Check if the GNU linker supports --demangle option
23784 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
23785 gcc_cv_ld_demangle
=yes
23788 if test x
"$gcc_cv_ld_demangle" = xyes
; then
23790 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23794 $as_echo "$gcc_cv_ld_demangle" >&6; }
23797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23798 $as_echo_n "checking linker plugin support... " >&6; }
23799 gcc_cv_lto_plugin
=0
23800 if test -f liblto_plugin.la
; then
23801 save_ld_ver
="$ld_ver"
23802 save_ld_vers_major
="$ld_vers_major"
23803 save_ld_vers_minor
="$ld_vers_minor"
23804 save_ld_is_gold
="$ld_is_gold"
23808 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
23810 # FIXME: ld_is_gold?
23811 ld_vers_major
="$gcc_cv_gld_major_version"
23812 ld_vers_minor
="$gcc_cv_gld_minor_version"
23814 # Determine plugin linker version.
23815 # FIXME: Partial duplicate from above, generalize.
23816 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23817 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23818 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
23820 ld_vers
=`echo $ld_ver | sed -n \
23821 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23823 ld_vers
=`echo $ld_ver | sed -n \
23824 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23826 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23827 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23831 # Determine plugin support.
23832 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23833 # Require GNU ld or gold 2.21+ for plugin support by default.
23834 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23835 gcc_cv_lto_plugin
=2
23836 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23837 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23838 gcc_cv_lto_plugin
=1
23842 ld_ver
="$save_ld_ver"
23843 ld_vers_major
="$save_ld_vers_major"
23844 ld_vers_minor
="$save_ld_vers_minor"
23845 ld_is_gold
="$save_ld_is_gold"
23848 cat >>confdefs.h
<<_ACEOF
23849 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23853 $as_echo "$gcc_cv_lto_plugin" >&6; }
23856 # All TARGET_ABI_OSF targets.
23857 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
23858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23859 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23860 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23861 $as_echo_n "(cached) " >&6
23863 gcc_cv_as_alpha_explicit_relocs
=no
23864 if test $in_tree_gas = yes; then
23865 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23866 then gcc_cv_as_alpha_explicit_relocs
=yes
23868 elif test x
$gcc_cv_as != x
; then
23869 $as_echo ' .set nomacro
23871 extbl $3, $2, $3 !lituse_bytoff!1
23872 ldq $2, a($29) !literal!1
23873 ldq $4, b($29) !literal!2
23874 ldq_u $3, 0($2) !lituse_base!1
23875 ldq $27, f($29) !literal!5
23876 jsr $26, ($27), f !lituse_jsr!5
23877 ldah $29, 0($26) !gpdisp!3
23878 lda $0, c($29) !gprel
23879 ldah $1, d($29) !gprelhigh
23880 lda $1, d($1) !gprellow
23881 lda $29, 0($29) !gpdisp!3' > conftest.s
23882 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23883 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23884 (eval $ac_try) 2>&5
23886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23887 test $ac_status = 0; }; }
23889 gcc_cv_as_alpha_explicit_relocs
=yes
23891 echo "configure: failed program was" >&5
23894 rm -f conftest.o conftest.s
23897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23898 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23899 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23901 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23905 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23906 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23907 $as_echo_n "(cached) " >&6
23909 gcc_cv_as_alpha_jsrdirect_relocs
=no
23910 if test $in_tree_gas = yes; then
23911 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23912 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
23914 elif test x
$gcc_cv_as != x
; then
23915 $as_echo ' .set nomacro
23917 ldq $27, a($29) !literal!1
23918 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23919 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23920 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23921 (eval $ac_try) 2>&5
23923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23924 test $ac_status = 0; }; }
23926 gcc_cv_as_alpha_jsrdirect_relocs
=yes
23928 echo "configure: failed program was" >&5
23931 rm -f conftest.o conftest.s
23934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23935 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23936 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23938 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23945 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23946 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23947 $as_echo_n "(cached) " >&6
23949 gcc_cv_as_cris_no_mul_bug
=no
23950 if test $in_tree_gas = yes; then
23951 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23952 then gcc_cv_as_cris_no_mul_bug
=yes
23954 elif test x
$gcc_cv_as != x
; then
23955 $as_echo '.text' > conftest.s
23956 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23957 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23958 (eval $ac_try) 2>&5
23960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23961 test $ac_status = 0; }; }
23963 gcc_cv_as_cris_no_mul_bug
=yes
23965 echo "configure: failed program was" >&5
23968 rm -f conftest.o conftest.s
23971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23972 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23973 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23975 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23982 $as_echo_n "checking assembler for .register... " >&6; }
23983 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23984 $as_echo_n "(cached) " >&6
23986 gcc_cv_as_sparc_register_op
=no
23987 if test x
$gcc_cv_as != x
; then
23988 $as_echo '.register %g2, #scratch' > conftest.s
23989 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23991 (eval $ac_try) 2>&5
23993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23994 test $ac_status = 0; }; }
23996 gcc_cv_as_sparc_register_op
=yes
23998 echo "configure: failed program was" >&5
24001 rm -f conftest.o conftest.s
24004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24005 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24006 if test $gcc_cv_as_sparc_register_op = yes; then
24008 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24013 $as_echo_n "checking assembler for -relax option... " >&6; }
24014 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24015 $as_echo_n "(cached) " >&6
24017 gcc_cv_as_sparc_relax
=no
24018 if test x
$gcc_cv_as != x
; then
24019 $as_echo '.text' > conftest.s
24020 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24021 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24022 (eval $ac_try) 2>&5
24024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24025 test $ac_status = 0; }; }
24027 gcc_cv_as_sparc_relax
=yes
24029 echo "configure: failed program was" >&5
24032 rm -f conftest.o conftest.s
24035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24036 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24037 if test $gcc_cv_as_sparc_relax = yes; then
24039 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24044 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24045 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24046 $as_echo_n "(cached) " >&6
24048 gcc_cv_as_sparc_gotdata_op
=no
24049 if test x
$gcc_cv_as != x
; then
24055 sethi %gdop_hix22(foo), %g1
24056 xor %g1, %gdop_lox10(foo), %g1
24057 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24058 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24060 (eval $ac_try) 2>&5
24062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24063 test $ac_status = 0; }; }
24065 if test x
$gcc_cv_ld != x \
24066 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24067 if test x
$gcc_cv_objdump != x
; then
24068 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
24069 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
24070 gcc_cv_as_sparc_gotdata_op
=no
24072 gcc_cv_as_sparc_gotdata_op
=yes
24078 echo "configure: failed program was" >&5
24081 rm -f conftest.o conftest.s
24084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24085 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24086 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24088 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24093 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24094 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24095 $as_echo_n "(cached) " >&6
24097 gcc_cv_as_sparc_ua_pcrel
=no
24098 if test x
$gcc_cv_as != x
; then
24105 .uaword %r_disp32(foo)' > conftest.s
24106 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24108 (eval $ac_try) 2>&5
24110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24111 test $ac_status = 0; }; }
24113 if test x
$gcc_cv_ld != x \
24114 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24115 gcc_cv_as_sparc_ua_pcrel
=yes
24119 echo "configure: failed program was" >&5
24122 rm -f conftest.o conftest.s
24125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24126 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24127 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24129 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24133 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24134 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24135 $as_echo_n "(cached) " >&6
24137 gcc_cv_as_sparc_ua_pcrel_hidden
=no
24138 if test x
$gcc_cv_as != x
; then
24142 .uaword %r_disp32(foo)
24143 .byte 0x32, 0x33, 0x34
24147 .skip 4' > conftest.s
24148 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24150 (eval $ac_try) 2>&5
24152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24153 test $ac_status = 0; }; }
24155 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
24156 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
24157 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
24158 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
24159 if $gcc_cv_objdump -R conftest
2> /dev
/null \
24160 |
grep 'DISP32' > /dev
/null
2>&1; then
24163 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
24168 echo "configure: failed program was" >&5
24171 rm -f conftest.o conftest.s
24174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24175 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24176 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24178 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24182 fi # unaligned pcrel relocs
24184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24185 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24186 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24187 $as_echo_n "(cached) " >&6
24189 gcc_cv_as_sparc_offsetable_lo10
=no
24190 if test x
$gcc_cv_as != x
; then
24192 or %g1, %lo(ab) + 12, %g1
24193 or %g1, %lo(ab + 12), %g1' > conftest.s
24194 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24195 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24196 (eval $ac_try) 2>&5
24198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24199 test $ac_status = 0; }; }
24201 if test x
$gcc_cv_objdump != x \
24202 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
24203 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
24204 gcc_cv_as_sparc_offsetable_lo10
=yes
24207 echo "configure: failed program was" >&5
24210 rm -f conftest.o conftest.s
24213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24214 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24215 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24217 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24222 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24223 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24224 $as_echo_n "(cached) " >&6
24226 gcc_cv_as_sparc_fmaf
=no
24227 if test x
$gcc_cv_as != x
; then
24229 .register %g2, #scratch
24230 .register %g3, #scratch
24232 fmaddd %f0, %f2, %f4, %f6
24233 addxccc %g1, %g2, %g3
24234 fsrl32 %f2, %f4, %f8
24235 fnaddd %f10, %f12, %f14' > conftest.s
24236 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24237 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24238 (eval $ac_try) 2>&5
24240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24241 test $ac_status = 0; }; }
24243 gcc_cv_as_sparc_fmaf
=yes
24245 echo "configure: failed program was" >&5
24248 rm -f conftest.o conftest.s
24251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24252 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24253 if test $gcc_cv_as_sparc_fmaf = yes; then
24255 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24260 i
[34567]86-*-* | x86_64-
*-*)
24263 # Full C++ conformance when using a shared libstdc++-v3 requires some
24264 # support from the Cygwin DLL, which in more recent versions exports
24265 # wrappers to aid in interposing and redirecting operators new, delete,
24266 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24267 # are configuring for a version of Cygwin that exports the wrappers.
24268 if test x
$host = x
$target; then
24269 ac_fn_c_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24270 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
24271 gcc_ac_cygwin_dll_wrappers
=yes
24273 gcc_ac_cygwin_dll_wrappers
=no
24277 # Can't check presence of libc functions during cross-compile, so
24278 # we just have to assume we're building for an up-to-date target.
24279 gcc_ac_cygwin_dll_wrappers
=yes
24282 cat >>confdefs.h
<<_ACEOF
24283 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24288 cygwin
* | pe | mingw32
*)
24289 # Recent binutils allows the three-operand form of ".comm" on PE. This
24290 # definition is used unconditionally to initialise the default state of
24291 # the target option variable that governs usage of the feature.
24292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24293 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24294 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24295 $as_echo_n "(cached) " >&6
24297 gcc_cv_as_comm_has_align
=no
24298 if test $in_tree_gas = yes; then
24299 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24300 then gcc_cv_as_comm_has_align
=yes
24302 elif test x
$gcc_cv_as != x
; then
24303 $as_echo '.comm foo,1,32' > conftest.s
24304 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24305 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24306 (eval $ac_try) 2>&5
24308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24309 test $ac_status = 0; }; }
24311 gcc_cv_as_comm_has_align
=yes
24313 echo "configure: failed program was" >&5
24316 rm -f conftest.o conftest.s
24319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24320 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24323 cat >>confdefs.h
<<_ACEOF
24324 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24327 # Used for DWARF 2 in PE
24328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24329 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24330 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24331 $as_echo_n "(cached) " >&6
24333 gcc_cv_as_ix86_pe_secrel32
=no
24334 if test $in_tree_gas = yes; then
24335 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24336 then gcc_cv_as_ix86_pe_secrel32
=yes
24338 elif test x
$gcc_cv_as != x
; then
24342 .secrel32 foo' > conftest.s
24343 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24345 (eval $ac_try) 2>&5
24347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24348 test $ac_status = 0; }; }
24350 if test x
$gcc_cv_ld != x \
24351 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
24352 gcc_cv_as_ix86_pe_secrel32
=yes
24356 echo "configure: failed program was" >&5
24359 rm -f conftest.o conftest.s
24362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24363 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24364 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24366 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24369 # Test if the assembler supports the extended form of the .section
24370 # directive that specifies section alignment. LTO support uses this,
24371 # but normally only after installation, so we warn but don't fail the
24372 # configure if LTO is enabled but the assembler does not support it.
24373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24374 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24375 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24376 $as_echo_n "(cached) " >&6
24378 gcc_cv_as_section_has_align
=no
24379 if test $in_tree_gas = yes; then
24380 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24381 then gcc_cv_as_section_has_align
=yes
24383 elif test x
$gcc_cv_as != x
; then
24384 $as_echo '.section lto_test,"dr0"' > conftest.s
24385 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24386 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24387 (eval $ac_try) 2>&5
24389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24390 test $ac_status = 0; }; }
24392 gcc_cv_as_section_has_align
=yes
24394 echo "configure: failed program was" >&5
24397 rm -f conftest.o conftest.s
24400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24401 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24403 if test x
$gcc_cv_as_section_has_align != xyes
; then
24404 case ",$enable_languages," in
24406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO for $target requires binutils >= 2.20.1, but version found appears insufficient; LTO will not work until binutils is upgraded." >&5
24407 $as_echo "$as_me: WARNING: LTO for $target requires binutils >= 2.20.1, but version found appears insufficient; LTO will not work until binutils is upgraded." >&2;}
24411 # Test if the assembler supports the section flag 'e' for specifying
24412 # an excluded section.
24413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24414 $as_echo_n "checking assembler for .section with e... " >&6; }
24415 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24416 $as_echo_n "(cached) " >&6
24418 gcc_cv_as_section_has_e
=no
24419 if test $in_tree_gas = yes; then
24420 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24421 then gcc_cv_as_section_has_e
=yes
24423 elif test x
$gcc_cv_as != x
; then
24424 $as_echo '.section foo1,"e"
24425 .byte 0,0,0,0' > conftest.s
24426 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24427 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24428 (eval $ac_try) 2>&5
24430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24431 test $ac_status = 0; }; }
24433 gcc_cv_as_section_has_e
=yes
24435 echo "configure: failed program was" >&5
24438 rm -f conftest.o conftest.s
24441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24442 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24445 cat >>confdefs.h
<<_ACEOF
24446 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24453 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24454 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24455 $as_echo_n "(cached) " >&6
24457 gcc_cv_as_ix86_filds
=no
24458 if test x
$gcc_cv_as != x
; then
24459 $as_echo 'filds mem; fists mem' > conftest.s
24460 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24462 (eval $ac_try) 2>&5
24464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24465 test $ac_status = 0; }; }
24467 gcc_cv_as_ix86_filds
=yes
24469 echo "configure: failed program was" >&5
24472 rm -f conftest.o conftest.s
24475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24476 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24477 if test $gcc_cv_as_ix86_filds = yes; then
24479 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24484 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24485 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24486 $as_echo_n "(cached) " >&6
24488 gcc_cv_as_ix86_fildq
=no
24489 if test x
$gcc_cv_as != x
; then
24490 $as_echo 'fildq mem; fistpq mem' > conftest.s
24491 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24493 (eval $ac_try) 2>&5
24495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24496 test $ac_status = 0; }; }
24498 gcc_cv_as_ix86_fildq
=yes
24500 echo "configure: failed program was" >&5
24503 rm -f conftest.o conftest.s
24506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24507 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24508 if test $gcc_cv_as_ix86_fildq = yes; then
24510 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24515 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24516 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24517 $as_echo_n "(cached) " >&6
24519 gcc_cv_as_ix86_cmov_sun_syntax
=no
24520 if test x
$gcc_cv_as != x
; then
24521 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24522 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24523 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24524 (eval $ac_try) 2>&5
24526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24527 test $ac_status = 0; }; }
24529 gcc_cv_as_ix86_cmov_sun_syntax
=yes
24531 echo "configure: failed program was" >&5
24534 rm -f conftest.o conftest.s
24537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24538 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24539 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24541 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24546 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24547 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24548 $as_echo_n "(cached) " >&6
24550 gcc_cv_as_ix86_ffreep
=no
24551 if test x
$gcc_cv_as != x
; then
24552 $as_echo 'ffreep %st(1)' > conftest.s
24553 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24554 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24555 (eval $ac_try) 2>&5
24557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24558 test $ac_status = 0; }; }
24560 gcc_cv_as_ix86_ffreep
=yes
24562 echo "configure: failed program was" >&5
24565 rm -f conftest.o conftest.s
24568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24569 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24570 if test $gcc_cv_as_ix86_ffreep = yes; then
24572 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24577 $as_echo_n "checking assembler for .quad directive... " >&6; }
24578 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24579 $as_echo_n "(cached) " >&6
24581 gcc_cv_as_ix86_quad
=no
24582 if test x
$gcc_cv_as != x
; then
24583 $as_echo '.quad 0' > conftest.s
24584 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24585 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24586 (eval $ac_try) 2>&5
24588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24589 test $ac_status = 0; }; }
24591 gcc_cv_as_ix86_quad
=yes
24593 echo "configure: failed program was" >&5
24596 rm -f conftest.o conftest.s
24599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24600 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24601 if test $gcc_cv_as_ix86_quad = yes; then
24603 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24608 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24609 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24610 $as_echo_n "(cached) " >&6
24612 gcc_cv_as_ix86_sahf
=no
24613 if test x
$gcc_cv_as != x
; then
24616 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24618 (eval $ac_try) 2>&5
24620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24621 test $ac_status = 0; }; }
24623 gcc_cv_as_ix86_sahf
=yes
24625 echo "configure: failed program was" >&5
24628 rm -f conftest.o conftest.s
24631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24632 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24633 if test $gcc_cv_as_ix86_sahf = yes; then
24635 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24640 $as_echo_n "checking assembler for swap suffix... " >&6; }
24641 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24642 $as_echo_n "(cached) " >&6
24644 gcc_cv_as_ix86_swap
=no
24645 if test x
$gcc_cv_as != x
; then
24646 $as_echo 'movl.s %esp, %ebp' > conftest.s
24647 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24649 (eval $ac_try) 2>&5
24651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24652 test $ac_status = 0; }; }
24654 gcc_cv_as_ix86_swap
=yes
24656 echo "configure: failed program was" >&5
24659 rm -f conftest.o conftest.s
24662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24663 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24664 if test $gcc_cv_as_ix86_swap = yes; then
24666 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24671 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24672 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24673 $as_echo_n "(cached) " >&6
24675 gcc_cv_as_ix86_diff_sect_delta
=no
24676 if test x
$gcc_cv_as != x
; then
24677 $as_echo '.section .rodata
24683 .L2: nop' > conftest.s
24684 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24685 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24686 (eval $ac_try) 2>&5
24688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24689 test $ac_status = 0; }; }
24691 gcc_cv_as_ix86_diff_sect_delta
=yes
24693 echo "configure: failed program was" >&5
24696 rm -f conftest.o conftest.s
24699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24700 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24701 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24703 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24707 # These two are used unconditionally by i386.[ch]; it is to be defined
24708 # to 1 if the feature is present, 0 otherwise.
24709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24710 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24711 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24712 $as_echo_n "(cached) " >&6
24714 gcc_cv_as_ix86_gotoff_in_data
=no
24715 if test $in_tree_gas = yes; then
24716 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24717 then gcc_cv_as_ix86_gotoff_in_data
=yes
24719 elif test x
$gcc_cv_as != x
; then
24724 .long .L0@GOTOFF' > conftest.s
24725 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24726 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24727 (eval $ac_try) 2>&5
24729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24730 test $ac_status = 0; }; }
24732 gcc_cv_as_ix86_gotoff_in_data
=yes
24734 echo "configure: failed program was" >&5
24737 rm -f conftest.o conftest.s
24740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24741 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24744 cat >>confdefs.h
<<_ACEOF
24745 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24750 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24751 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24752 $as_echo_n "(cached) " >&6
24754 gcc_cv_as_ix86_rep_lock_prefix
=no
24755 if test x
$gcc_cv_as != x
; then
24756 $as_echo 'rep movsl
24757 lock addl %edi, (%eax,%esi)
24758 lock orl $0, (%esp)' > conftest.s
24759 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24760 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24761 (eval $ac_try) 2>&5
24763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24764 test $ac_status = 0; }; }
24766 gcc_cv_as_ix86_rep_lock_prefix
=yes
24768 echo "configure: failed program was" >&5
24771 rm -f conftest.o conftest.s
24774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24775 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24776 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24778 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24783 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24784 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24785 $as_echo_n "(cached) " >&6
24787 gcc_cv_as_ix86_tlsgdplt
=no
24788 if test x
$gcc_cv_as != x
; then
24789 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24790 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24791 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24792 (eval $ac_try) 2>&5
24794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24795 test $ac_status = 0; }; }
24797 gcc_cv_as_ix86_tlsgdplt
=yes
24799 echo "configure: failed program was" >&5
24802 rm -f conftest.o conftest.s
24805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24806 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24807 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24809 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24814 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24815 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24816 $as_echo_n "(cached) " >&6
24818 gcc_cv_as_ix86_tlsldmplt
=no
24819 if test x
$gcc_cv_as != x
; then
24820 $as_echo 'call tls_ld@tlsldmplt' > conftest.s
24821 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24822 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24823 (eval $ac_try) 2>&5
24825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24826 test $ac_status = 0; }; }
24828 gcc_cv_as_ix86_tlsldmplt
=yes
24830 echo "configure: failed program was" >&5
24833 rm -f conftest.o conftest.s
24836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24837 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24838 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24840 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24848 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24849 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24850 $as_echo_n "(cached) " >&6
24852 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
24853 if test $in_tree_gas = yes; then
24854 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24855 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
24857 elif test x
$gcc_cv_as != x
; then
24859 addl r15 = @ltoffx(x#), gp
24861 ld8.mov r16 = [r15], x#' > conftest.s
24862 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24863 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24864 (eval $ac_try) 2>&5
24866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24867 test $ac_status = 0; }; }
24869 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
24871 echo "configure: failed program was" >&5
24874 rm -f conftest.o conftest.s
24877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24878 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24879 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24881 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24889 *-*-aix*) conftest_s
=' .machine "pwr5"
24893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24894 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24895 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24896 $as_echo_n "(cached) " >&6
24898 gcc_cv_as_machine_directive
=no
24899 if test x
$gcc_cv_as != x
; then
24900 $as_echo ' .machine ppc7400' > conftest.s
24901 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24903 (eval $ac_try) 2>&5
24905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24906 test $ac_status = 0; }; }
24908 gcc_cv_as_machine_directive
=yes
24910 echo "configure: failed program was" >&5
24913 rm -f conftest.o conftest.s
24916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24917 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24919 if test x
$gcc_cv_as_machine_directive != xyes
; then
24920 echo "*** This target requires an assembler supporting \".machine\"" >&2
24921 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
24922 test x
$build = x
$target && exit 1
24926 *) conftest_s
=' .machine power4
24931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24932 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24933 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24934 $as_echo_n "(cached) " >&6
24936 gcc_cv_as_powerpc_mfcrf
=no
24937 if test $in_tree_gas = yes; then
24938 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24939 then gcc_cv_as_powerpc_mfcrf
=yes
24941 elif test x
$gcc_cv_as != x
; then
24942 $as_echo "$conftest_s" > conftest.s
24943 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24944 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24945 (eval $ac_try) 2>&5
24947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24948 test $ac_status = 0; }; }
24950 gcc_cv_as_powerpc_mfcrf
=yes
24952 echo "configure: failed program was" >&5
24955 rm -f conftest.o conftest.s
24958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24959 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24960 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24962 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24967 *-*-aix*) conftest_s
=' .machine "pwr5"
24970 *) conftest_s
=' .machine power5
24975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24976 $as_echo_n "checking assembler for popcntb support... " >&6; }
24977 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24978 $as_echo_n "(cached) " >&6
24980 gcc_cv_as_powerpc_popcntb
=no
24981 if test $in_tree_gas = yes; then
24982 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24983 then gcc_cv_as_powerpc_popcntb
=yes
24985 elif test x
$gcc_cv_as != x
; then
24986 $as_echo "$conftest_s" > conftest.s
24987 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24988 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24989 (eval $ac_try) 2>&5
24991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24992 test $ac_status = 0; }; }
24994 gcc_cv_as_powerpc_popcntb
=yes
24996 echo "configure: failed program was" >&5
24999 rm -f conftest.o conftest.s
25002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25003 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25004 if test $gcc_cv_as_powerpc_popcntb = yes; then
25006 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25011 *-*-aix*) conftest_s
=' .machine "pwr5x"
25014 *) conftest_s
=' .machine power5
25019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25020 $as_echo_n "checking assembler for fp round support... " >&6; }
25021 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25022 $as_echo_n "(cached) " >&6
25024 gcc_cv_as_powerpc_fprnd
=no
25025 if test $in_tree_gas = yes; then
25026 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25027 then gcc_cv_as_powerpc_fprnd
=yes
25029 elif test x
$gcc_cv_as != x
; then
25030 $as_echo "$conftest_s" > conftest.s
25031 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25032 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25033 (eval $ac_try) 2>&5
25035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25036 test $ac_status = 0; }; }
25038 gcc_cv_as_powerpc_fprnd
=yes
25040 echo "configure: failed program was" >&5
25043 rm -f conftest.o conftest.s
25046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25047 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25048 if test $gcc_cv_as_powerpc_fprnd = yes; then
25050 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25055 *-*-aix*) conftest_s
=' .machine "pwr6"
25058 *) conftest_s
=' .machine power6
25063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25064 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25065 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25066 $as_echo_n "(cached) " >&6
25068 gcc_cv_as_powerpc_mfpgpr
=no
25069 if test $in_tree_gas = yes; then
25070 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25071 then gcc_cv_as_powerpc_mfpgpr
=yes
25073 elif test x
$gcc_cv_as != x
; then
25074 $as_echo "$conftest_s" > conftest.s
25075 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25076 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25077 (eval $ac_try) 2>&5
25079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25080 test $ac_status = 0; }; }
25082 gcc_cv_as_powerpc_mfpgpr
=yes
25084 echo "configure: failed program was" >&5
25087 rm -f conftest.o conftest.s
25090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25091 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25092 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25094 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25099 *-*-aix*) conftest_s
=' .csect .text[PR]
25101 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25105 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25106 *) conftest_s
=' .text
25108 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25112 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25113 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25114 $as_echo_n "(cached) " >&6
25116 gcc_cv_as_powerpc_rel16
=no
25117 if test $in_tree_gas = yes; then
25118 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25119 then gcc_cv_as_powerpc_rel16
=yes
25121 elif test x
$gcc_cv_as != x
; then
25122 $as_echo "$conftest_s" > conftest.s
25123 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25124 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25125 (eval $ac_try) 2>&5
25127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25128 test $ac_status = 0; }; }
25130 gcc_cv_as_powerpc_rel16
=yes
25132 echo "configure: failed program was" >&5
25135 rm -f conftest.o conftest.s
25138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25139 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25140 if test $gcc_cv_as_powerpc_rel16 = yes; then
25142 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25147 *-*-aix*) conftest_s
=' .machine "pwr6"
25150 *) conftest_s
=' .machine power6
25155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25156 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25157 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25158 $as_echo_n "(cached) " >&6
25160 gcc_cv_as_powerpc_cmpb
=no
25161 if test $in_tree_gas = yes; then
25162 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25163 then gcc_cv_as_powerpc_cmpb
=yes
25165 elif test x
$gcc_cv_as != x
; then
25166 $as_echo "$conftest_s" > conftest.s
25167 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25168 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25169 (eval $ac_try) 2>&5
25171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25172 test $ac_status = 0; }; }
25174 gcc_cv_as_powerpc_cmpb
=yes
25176 echo "configure: failed program was" >&5
25179 rm -f conftest.o conftest.s
25182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25183 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25184 if test $gcc_cv_as_powerpc_cmpb = yes; then
25186 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25191 *-*-aix*) conftest_s
=' .machine "pwr6"
25194 *) conftest_s
=' .machine power6
25199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25200 $as_echo_n "checking assembler for decimal float support... " >&6; }
25201 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25202 $as_echo_n "(cached) " >&6
25204 gcc_cv_as_powerpc_dfp
=no
25205 if test $in_tree_gas = yes; then
25206 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25207 then gcc_cv_as_powerpc_dfp
=yes
25209 elif test x
$gcc_cv_as != x
; then
25210 $as_echo "$conftest_s" > conftest.s
25211 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25212 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25213 (eval $ac_try) 2>&5
25215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25216 test $ac_status = 0; }; }
25218 gcc_cv_as_powerpc_dfp
=yes
25220 echo "configure: failed program was" >&5
25223 rm -f conftest.o conftest.s
25226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25227 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25228 if test $gcc_cv_as_powerpc_dfp = yes; then
25230 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25235 *-*-aix*) conftest_s
=' .machine "pwr7"
25238 *) conftest_s
=' .machine power7
25243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25244 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25245 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25246 $as_echo_n "(cached) " >&6
25248 gcc_cv_as_powerpc_vsx
=no
25249 if test $in_tree_gas = yes; then
25250 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25251 then gcc_cv_as_powerpc_vsx
=yes
25253 elif test x
$gcc_cv_as != x
; then
25254 $as_echo "$conftest_s" > conftest.s
25255 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25257 (eval $ac_try) 2>&5
25259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25260 test $ac_status = 0; }; }
25262 gcc_cv_as_powerpc_vsx
=yes
25264 echo "configure: failed program was" >&5
25267 rm -f conftest.o conftest.s
25270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25271 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25272 if test $gcc_cv_as_powerpc_vsx = yes; then
25274 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25279 *-*-aix*) conftest_s
=' .machine "pwr7"
25282 *) conftest_s
=' .machine power7
25287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25288 $as_echo_n "checking assembler for popcntd support... " >&6; }
25289 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25290 $as_echo_n "(cached) " >&6
25292 gcc_cv_as_powerpc_popcntd
=no
25293 if test $in_tree_gas = yes; then
25294 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25295 then gcc_cv_as_powerpc_popcntd
=yes
25297 elif test x
$gcc_cv_as != x
; then
25298 $as_echo "$conftest_s" > conftest.s
25299 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25300 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25301 (eval $ac_try) 2>&5
25303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25304 test $ac_status = 0; }; }
25306 gcc_cv_as_powerpc_popcntd
=yes
25308 echo "configure: failed program was" >&5
25311 rm -f conftest.o conftest.s
25314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25315 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25316 if test $gcc_cv_as_powerpc_popcntd = yes; then
25318 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25323 *-*-aix*) conftest_s
=' .csect .text[PR]
25325 *) conftest_s
=' .text
25329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25330 $as_echo_n "checking assembler for lwsync support... " >&6; }
25331 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25332 $as_echo_n "(cached) " >&6
25334 gcc_cv_as_powerpc_lwsync
=no
25335 if test $in_tree_gas = yes; then
25336 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25337 then gcc_cv_as_powerpc_lwsync
=yes
25339 elif test x
$gcc_cv_as != x
; then
25340 $as_echo "$conftest_s" > conftest.s
25341 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25342 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25343 (eval $ac_try) 2>&5
25345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25346 test $ac_status = 0; }; }
25348 gcc_cv_as_powerpc_lwsync
=yes
25350 echo "configure: failed program was" >&5
25353 rm -f conftest.o conftest.s
25356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25357 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25358 if test $gcc_cv_as_powerpc_lwsync = yes; then
25360 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25365 *-*-aix*) conftest_s
=' .machine "476"
25368 *) conftest_s
=' .machine "476"
25373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25374 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25375 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25376 $as_echo_n "(cached) " >&6
25378 gcc_cv_as_powerpc_dci
=no
25379 if test $in_tree_gas = yes; then
25380 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25381 then gcc_cv_as_powerpc_dci
=yes
25383 elif test x
$gcc_cv_as != x
; then
25384 $as_echo "$conftest_s" > conftest.s
25385 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25386 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25387 (eval $ac_try) 2>&5
25389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25390 test $ac_status = 0; }; }
25392 gcc_cv_as_powerpc_dci
=yes
25394 echo "configure: failed program was" >&5
25397 rm -f conftest.o conftest.s
25400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25401 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25402 if test $gcc_cv_as_powerpc_dci = yes; then
25404 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25409 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25410 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25411 $as_echo_n "(cached) " >&6
25413 gcc_cv_as_powerpc_gnu_attribute
=no
25414 if test $in_tree_gas = yes; then
25415 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25416 then gcc_cv_as_powerpc_gnu_attribute
=yes
25418 elif test x
$gcc_cv_as != x
; then
25419 $as_echo '.gnu_attribute 4,1' > conftest.s
25420 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25421 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25422 (eval $ac_try) 2>&5
25424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25425 test $ac_status = 0; }; }
25427 gcc_cv_as_powerpc_gnu_attribute
=yes
25429 echo "configure: failed program was" >&5
25432 rm -f conftest.o conftest.s
25435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25436 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25437 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25439 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25444 $as_echo_n "checking assembler for tls marker support... " >&6; }
25445 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25446 $as_echo_n "(cached) " >&6
25448 gcc_cv_as_powerpc_tls_markers
=no
25449 if test $in_tree_gas = yes; then
25450 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25451 then gcc_cv_as_powerpc_tls_markers
=yes
25453 elif test x
$gcc_cv_as != x
; then
25454 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25455 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25456 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25457 (eval $ac_try) 2>&5
25459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25460 test $ac_status = 0; }; }
25462 gcc_cv_as_powerpc_tls_markers
=yes
25464 echo "configure: failed program was" >&5
25467 rm -f conftest.o conftest.s
25470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25471 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25472 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25474 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25481 $as_echo_n "checking assembler for .ref support... " >&6; }
25482 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25483 $as_echo_n "(cached) " >&6
25485 gcc_cv_as_aix_ref
=no
25486 if test $in_tree_gas = yes; then
25487 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
25490 elif test x
$gcc_cv_as != x
; then
25491 $as_echo ' .csect stuff[rw]
25497 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25498 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25499 (eval $ac_try) 2>&5
25501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25502 test $ac_status = 0; }; }
25504 gcc_cv_as_aix_ref
=yes
25506 echo "configure: failed program was" >&5
25509 rm -f conftest.o conftest.s
25512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25513 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25514 if test $gcc_cv_as_aix_ref = yes; then
25516 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25525 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25526 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25527 $as_echo_n "(cached) " >&6
25529 gcc_cv_as_mips_explicit_relocs
=no
25530 if test $in_tree_gas = yes; then
25531 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25532 then gcc_cv_as_mips_explicit_relocs
=yes
25534 elif test x
$gcc_cv_as != x
; then
25535 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25536 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25537 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25538 (eval $ac_try) 2>&5
25540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25541 test $ac_status = 0; }; }
25543 gcc_cv_as_mips_explicit_relocs
=yes
25545 echo "configure: failed program was" >&5
25548 rm -f conftest.o conftest.s
25551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25552 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25553 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25554 if test x
$target_cpu_default = x
25555 then target_cpu_default
=MASK_EXPLICIT_RELOCS
25556 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25560 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25561 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25562 $as_echo_n "(cached) " >&6
25564 gcc_cv_as_mips_no_shared
=no
25565 if test $in_tree_gas = yes; then
25566 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25567 then gcc_cv_as_mips_no_shared
=yes
25569 elif test x
$gcc_cv_as != x
; then
25570 $as_echo 'nop' > conftest.s
25571 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25572 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25573 (eval $ac_try) 2>&5
25575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25576 test $ac_status = 0; }; }
25578 gcc_cv_as_mips_no_shared
=yes
25580 echo "configure: failed program was" >&5
25583 rm -f conftest.o conftest.s
25586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25587 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25588 if test $gcc_cv_as_mips_no_shared = yes; then
25590 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25595 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25596 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25597 $as_echo_n "(cached) " >&6
25599 gcc_cv_as_mips_gnu_attribute
=no
25600 if test $in_tree_gas = yes; then
25601 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25602 then gcc_cv_as_mips_gnu_attribute
=yes
25604 elif test x
$gcc_cv_as != x
; then
25605 $as_echo '.gnu_attribute 4,1' > conftest.s
25606 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25608 (eval $ac_try) 2>&5
25610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25611 test $ac_status = 0; }; }
25613 gcc_cv_as_mips_gnu_attribute
=yes
25615 echo "configure: failed program was" >&5
25618 rm -f conftest.o conftest.s
25621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25622 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25623 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25625 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25630 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25631 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25632 $as_echo_n "(cached) " >&6
25634 gcc_cv_as_mips_dtprelword
=no
25635 if test $in_tree_gas = yes; then
25636 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25637 then gcc_cv_as_mips_dtprelword
=yes
25639 elif test x
$gcc_cv_as != x
; then
25640 $as_echo '.section .tdata,"awT",@progbits
25644 .dtprelword x+0x8000' > conftest.s
25645 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25646 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25647 (eval $ac_try) 2>&5
25649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25650 test $ac_status = 0; }; }
25652 gcc_cv_as_mips_dtprelword
=yes
25654 echo "configure: failed program was" >&5
25657 rm -f conftest.o conftest.s
25660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25661 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25662 if test $gcc_cv_as_mips_dtprelword = yes; then
25664 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25669 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25670 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25671 $as_echo_n "(cached) " >&6
25673 gcc_cv_as_mips_dspr1_mult
=no
25674 if test x
$gcc_cv_as != x
; then
25675 $as_echo ' .set mips32r2
25683 multu $ac3,$4,$5' > conftest.s
25684 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25685 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25686 (eval $ac_try) 2>&5
25688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25689 test $ac_status = 0; }; }
25691 gcc_cv_as_mips_dspr1_mult
=yes
25693 echo "configure: failed program was" >&5
25696 rm -f conftest.o conftest.s
25699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25700 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25701 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25703 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25708 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25709 gcc_cv_as_ld_jalr_reloc
=no
25710 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25711 if test $in_tree_ld = yes ; then
25712 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 \
25713 && test $in_tree_ld_is_elf = yes; then
25714 gcc_cv_as_ld_jalr_reloc
=yes
25716 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
25717 echo ' .ent x' > conftest.s
25718 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25719 echo ' ld $25,%call16(y)($28)' >> conftest.s
25720 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25721 echo '1: jalr $25' >> conftest.s
25722 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25723 echo '1: jalr $25' >> conftest.s
25724 echo ' .end x' >> conftest.s
25725 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
25726 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
25727 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
25728 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
25729 gcc_cv_as_ld_jalr_reloc
=yes
25735 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25736 if test x
$target_cpu_default = x
; then
25737 target_cpu_default
=MASK_RELAX_PIC_CALLS
25739 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25743 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25746 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25747 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25748 $as_echo_n "(cached) " >&6
25750 gcc_cv_ld_mips_personality_relaxation
=no
25751 if test $in_tree_ld = yes ; then
25752 if test "$gcc_cv_gld_major_version" -eq 2 \
25753 -a "$gcc_cv_gld_minor_version" -ge 21 \
25754 -o "$gcc_cv_gld_major_version" -gt 2; then
25755 gcc_cv_ld_mips_personality_relaxation
=yes
25757 elif test x
$gcc_cv_as != x \
25758 -a x
$gcc_cv_ld != x \
25759 -a x
$gcc_cv_readelf != x
; then
25760 cat > conftest.s
<<EOF
25762 .cfi_personality 0x80,indirect_ptr
25769 .section .data,"aw",@progbits
25773 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
25774 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
25775 if $gcc_cv_readelf -d conftest
2>&1 \
25776 |
grep TEXTREL
> /dev
/null
2>&1; then
25778 elif $gcc_cv_readelf --relocs conftest
2>&1 \
25779 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
25782 gcc_cv_ld_mips_personality_relaxation
=yes
25786 rm -f conftest.s conftest.o conftest
25788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25789 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25790 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
25792 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25798 # Mips and HP-UX need the GNU assembler.
25799 # Linux on IA64 might be able to use the Intel assembler.
25802 mips
*-*-* |
*-*-hpux* )
25803 if test x
$gas_flag = xyes \
25804 ||
test x
"$host" != x
"$build" \
25805 ||
test ! -x "$gcc_cv_as" \
25806 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
25809 echo "*** This configuration requires the GNU assembler" >&2
25815 # ??? Not all targets support dwarf2 debug_line, even within a version
25816 # of gas. Moreover, we need to emit a valid instruction to trigger any
25817 # info to the output file. So, as supported targets are added to gas 2.11,
25818 # add some instruction here to (also) show we expect this might work.
25819 # ??? Once 2.11 is released, probably need to add first known working
25820 # version to the per-target configury.
25821 case "$cpu_type" in
25822 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25823 | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa
)
25833 if test x
"$insn" != x
; then
25835 .file 1 \"conftest.s\"
25838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25839 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25840 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25841 $as_echo_n "(cached) " >&6
25843 gcc_cv_as_dwarf2_debug_line
=no
25844 if test $in_tree_gas = yes; then
25845 if test $in_tree_gas_is_elf = yes \
25846 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25847 then gcc_cv_as_dwarf2_debug_line
=yes
25849 elif test x
$gcc_cv_as != x
; then
25850 $as_echo "$conftest_s" > conftest.s
25851 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25852 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25853 (eval $ac_try) 2>&5
25855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25856 test $ac_status = 0; }; }
25858 if test x
$gcc_cv_objdump != x \
25859 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
25860 |
grep debug_line
> /dev
/null
2>&1; then
25861 gcc_cv_as_dwarf2_debug_line
=yes
25864 echo "configure: failed program was" >&5
25867 rm -f conftest.o conftest.s
25870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25871 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25874 # The .debug_line file table must be in the exact order that
25875 # we specified the files, since these indices are also used
25876 # by DW_AT_decl_file. Approximate this test by testing if
25877 # the assembler bitches if the same index is assigned twice.
25878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25879 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25880 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25881 $as_echo_n "(cached) " >&6
25883 gcc_cv_as_dwarf2_file_buggy
=no
25884 if test x
$gcc_cv_as != x
; then
25885 $as_echo ' .file 1 "foo.s"
25886 .file 1 "bar.s"' > conftest.s
25887 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25888 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25889 (eval $ac_try) 2>&5
25891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25892 test $ac_status = 0; }; }
25894 gcc_cv_as_dwarf2_file_buggy
=yes
25896 echo "configure: failed program was" >&5
25899 rm -f conftest.o conftest.s
25902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25903 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25906 if test $gcc_cv_as_dwarf2_debug_line = yes \
25907 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
25909 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25914 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25915 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25916 $as_echo_n "(cached) " >&6
25918 gcc_cv_as_gdwarf2_flag
=no
25919 if test $in_tree_gas = yes; then
25920 if test $in_tree_gas_is_elf = yes \
25921 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25922 then gcc_cv_as_gdwarf2_flag
=yes
25924 elif test x
$gcc_cv_as != x
; then
25925 $as_echo "$insn" > conftest.s
25926 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25927 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25928 (eval $ac_try) 2>&5
25930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25931 test $ac_status = 0; }; }
25933 gcc_cv_as_gdwarf2_flag
=yes
25935 echo "configure: failed program was" >&5
25938 rm -f conftest.o conftest.s
25941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25942 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25943 if test $gcc_cv_as_gdwarf2_flag = yes; then
25945 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25950 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25951 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25952 $as_echo_n "(cached) " >&6
25954 gcc_cv_as_gstabs_flag
=no
25955 if test $in_tree_gas = yes; then
25956 if test $in_tree_gas_is_elf = yes \
25957 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25958 then gcc_cv_as_gstabs_flag
=yes
25960 elif test x
$gcc_cv_as != x
; then
25961 $as_echo "$insn" > conftest.s
25962 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25963 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25964 (eval $ac_try) 2>&5
25966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25967 test $ac_status = 0; }; }
25969 # The native Solaris 9/Intel assembler doesn't understand --gstabs
25970 # and warns about it, but still exits successfully. So check for
25972 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25973 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25974 (eval $ac_try) 2>&5
25976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25977 test $ac_status = 0; }; }
25979 else gcc_cv_as_gstabs_flag
=yes
25982 echo "configure: failed program was" >&5
25985 rm -f conftest.o conftest.s
25988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
25989 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
25990 if test $gcc_cv_as_gstabs_flag = yes; then
25992 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
25996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
25997 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
25998 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
25999 $as_echo_n "(cached) " >&6
26001 gcc_cv_as_debug_prefix_map_flag
=no
26002 if test $in_tree_gas = yes; then
26003 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26004 then gcc_cv_as_debug_prefix_map_flag
=yes
26006 elif test x
$gcc_cv_as != x
; then
26007 $as_echo "$insn" > conftest.s
26008 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26009 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26010 (eval $ac_try) 2>&5
26012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26013 test $ac_status = 0; }; }
26015 gcc_cv_as_debug_prefix_map_flag
=yes
26017 echo "configure: failed program was" >&5
26020 rm -f conftest.o conftest.s
26023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26024 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26025 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26027 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26033 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26034 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26035 $as_echo_n "(cached) " >&6
26037 gcc_cv_as_lcomm_with_alignment
=no
26038 if test x
$gcc_cv_as != x
; then
26039 $as_echo '.lcomm bar,4,16' > conftest.s
26040 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26041 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26042 (eval $ac_try) 2>&5
26044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26045 test $ac_status = 0; }; }
26047 gcc_cv_as_lcomm_with_alignment
=yes
26049 echo "configure: failed program was" >&5
26052 rm -f conftest.o conftest.s
26055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26056 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26057 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26059 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26063 # Check whether --enable-gnu-unique-object was given.
26064 if test "${enable_gnu_unique_object+set}" = set; then :
26065 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26067 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26068 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26072 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26073 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26074 $as_echo_n "(cached) " >&6
26076 gcc_cv_as_gnu_unique_object
=no
26077 if test $in_tree_gas = yes; then
26078 if test $in_tree_gas_is_elf = yes \
26079 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26080 then gcc_cv_as_gnu_unique_object
=yes
26082 elif test x
$gcc_cv_as != x
; then
26083 $as_echo '.type foo, @gnu_unique_object' > conftest.s
26084 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26085 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26086 (eval $ac_try) 2>&5
26088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26089 test $ac_status = 0; }; }
26091 gcc_cv_as_gnu_unique_object
=yes
26093 echo "configure: failed program was" >&5
26096 rm -f conftest.o conftest.s
26099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26100 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26101 if test $gcc_cv_as_gnu_unique_object = yes; then
26102 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26103 if test x
$host = x
$build -a x
$host = x
$target &&
26104 ldd
--version 2>/dev
/null
&&
26105 glibcver
=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26106 glibcmajor
=`expr "$glibcver" : "\([0-9]*\)"`
26107 glibcminor
=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26108 glibcnum
=`expr $glibcmajor \* 1000 + $glibcminor`
26109 if test "$glibcnum" -ge 2011 ; then
26110 enable_gnu_unique_object
=yes
26116 if test x
$enable_gnu_unique_object = xyes
; then
26118 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26123 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26124 if test "${gcc_cv_as_line_zero+set}" = set; then :
26125 $as_echo_n "(cached) " >&6
26127 gcc_cv_as_line_zero
=no
26128 if test $in_tree_gas = yes; then
26129 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26130 then gcc_cv_as_line_zero
=yes
26132 elif test "x$gcc_cv_as" != x
; then
26133 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26134 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26135 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26136 (eval $ac_try) 2>&5
26138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26139 test $ac_status = 0; }; } &&
26140 test "x`cat conftest.out`" = x
26142 gcc_cv_as_line_zero
=yes
26144 echo "configure: failed program was" >&5
26146 echo "configure: error output was" >&5
26147 cat conftest.out
>&5
26149 rm -f conftest.o conftest.s conftest.out
26152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26153 $as_echo "$gcc_cv_as_line_zero" >&6; }
26154 if test "x$gcc_cv_as_line_zero" = xyes
; then
26156 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26161 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26162 gcc_cv_ld_eh_frame_hdr
=no
26163 if test $in_tree_ld = yes ; then
26164 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 \
26165 && test $in_tree_ld_is_elf = yes; then
26166 gcc_cv_ld_eh_frame_hdr
=yes
26168 elif test x
$gcc_cv_ld != x
; then
26169 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26170 # Check if linker supports --eh-frame-hdr option
26171 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
26172 gcc_cv_ld_eh_frame_hdr
=yes
26177 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26178 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
26179 gcc_cv_ld_eh_frame_hdr
=yes
26186 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
26188 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26192 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26195 $as_echo_n "checking linker position independent executable support... " >&6; }
26197 if test $in_tree_ld = yes ; then
26198 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 \
26199 && test $in_tree_ld_is_elf = yes; then
26202 elif test x
$gcc_cv_ld != x
; then
26203 # Check if linker supports -pie option
26204 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
26208 if test x
"$gcc_cv_ld_pie" = xyes
; then
26210 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26214 $as_echo "$gcc_cv_ld_pie" >&6; }
26216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26217 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26218 gcc_cv_ld_eh_gc_sections
=no
26219 if test $in_tree_ld = yes ; then
26220 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 \
26221 && test $in_tree_ld_is_elf = yes; then
26222 gcc_cv_ld_eh_gc_sections
=yes
26224 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26225 cat > conftest.s
<<EOF
26228 .type _start, @function
26231 .size _start, .-_start
26232 .section .text.foo,"ax",@progbits
26233 .type foo, @function
26237 .section .gcc_except_table.foo,"a",@progbits
26240 .section .eh_frame,"a",@progbits
26243 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26244 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26245 |
grep "gc-sections option ignored" > /dev
/null
; then
26246 gcc_cv_ld_eh_gc_sections
=no
26247 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26248 |
grep gcc_except_table
> /dev
/null
; then
26249 gcc_cv_ld_eh_gc_sections
=yes
26250 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26251 if test x
$gcc_cv_as_comdat_group != xyes
; then
26252 gcc_cv_ld_eh_gc_sections
=no
26253 cat > conftest.s
<<EOF
26256 .type _start, @function
26259 .size _start, .-_start
26260 .section .gnu.linkonce.t.foo,"ax",@progbits
26261 .type foo, @function
26265 .section .gcc_except_table.foo,"a",@progbits
26268 .section .eh_frame,"a",@progbits
26271 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26272 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26273 |
grep "gc-sections option ignored" > /dev
/null
; then
26274 gcc_cv_ld_eh_gc_sections
=no
26275 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26276 |
grep gcc_except_table
> /dev
/null
; then
26277 gcc_cv_ld_eh_gc_sections
=yes
26283 rm -f conftest.s conftest.o conftest
26287 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26288 gcc_cv_ld_eh_gc_sections
=no
26291 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
26293 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26297 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26300 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26301 gcc_cv_ld_eh_gc_sections_bug
=no
26302 if test $in_tree_ld = yes ; then
26303 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -lt 19 -o "$gcc_cv_gld_major_version" -lt 2 \
26304 && test $in_tree_ld_is_elf = yes; then
26305 gcc_cv_ld_eh_gc_sections_bug
=yes
26307 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
-a x
$gcc_cv_as_comdat_group = xyes
; then
26308 gcc_cv_ld_eh_gc_sections_bug
=yes
26309 cat > conftest.s
<<EOF
26312 .type _start, @function
26315 .size _start, .-_start
26316 .section .text.startup.foo,"ax",@progbits
26317 .type foo, @function
26321 .section .gcc_except_table.foo,"a",@progbits
26324 .section .eh_frame,"a",@progbits
26327 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26328 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26329 |
grep "gc-sections option ignored" > /dev
/null
; then
26331 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26332 |
grep gcc_except_table
> /dev
/null
; then
26333 gcc_cv_ld_eh_gc_sections_bug
=no
26336 rm -f conftest.s conftest.o conftest
26338 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
26340 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26344 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26351 $as_echo_n "checking linker --as-needed support... " >&6; }
26352 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26353 $as_echo_n "(cached) " >&6
26355 gcc_cv_ld_as_needed
=no
26356 if test $in_tree_ld = yes ; then
26357 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 \
26358 && test $in_tree_ld_is_elf = yes; then
26359 gcc_cv_ld_as_needed
=yes
26361 elif test x
$gcc_cv_ld != x
; then
26362 # Check if linker supports --as-needed and --no-as-needed options
26363 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
26364 gcc_cv_ld_as_needed
=yes
26369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26370 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26371 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
26373 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26377 case "$target:$tm_file" in
26378 powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
26379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26380 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26381 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26382 $as_echo_n "(cached) " >&6
26384 gcc_cv_ld_no_dot_syms
=no
26385 if test $in_tree_ld = yes ; then
26386 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
26387 gcc_cv_ld_no_dot_syms
=yes
26389 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26390 cat > conftest1.s
<<EOF
26394 cat > conftest2.s
<<EOF
26395 .section ".opd","aw"
26398 .type foo,@function
26400 .quad .LEfoo,.TOC.@tocbase,0
26406 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
26407 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
26408 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
26409 gcc_cv_ld_no_dot_syms
=yes
26411 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26416 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26417 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
26419 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26424 $as_echo_n "checking linker large toc support... " >&6; }
26425 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26426 $as_echo_n "(cached) " >&6
26428 gcc_cv_ld_large_toc
=no
26429 if test $in_tree_ld = yes ; then
26430 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 21 -o "$gcc_cv_gld_major_version" -gt 2; then
26431 gcc_cv_ld_large_toc
=yes
26433 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26434 cat > conftest.s
<<EOF
26435 .section ".tbss","awT",@nobits
26441 addis 9,13,ie0@got@tprel@ha
26442 ld 9,ie0@got@tprel@l(9)
26444 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
26445 && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
26446 gcc_cv_ld_large_toc
=yes
26448 rm -f conftest conftest.o conftest.s
26452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26453 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26454 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
26456 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26463 $as_echo_n "checking linker --build-id support... " >&6; }
26464 if test "${gcc_cv_ld_buildid+set}" = set; then :
26465 $as_echo_n "(cached) " >&6
26467 gcc_cv_ld_buildid
=no
26468 if test $in_tree_ld = yes ; then
26469 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26470 "$gcc_cv_gld_minor_version" -ge 18 -o \
26471 "$gcc_cv_gld_major_version" -gt 2 \
26472 && test $in_tree_ld_is_elf = yes; then
26473 gcc_cv_ld_buildid
=yes
26475 elif test x
$gcc_cv_ld != x
; then
26476 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
26477 gcc_cv_ld_buildid
=yes
26481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26482 $as_echo "$gcc_cv_ld_buildid" >&6; }
26483 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26485 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26489 # Check whether --enable-linker-build-id was given.
26490 if test "${enable_linker_build_id+set}" = set; then :
26491 enableval
=$enable_linker_build_id;
26493 enable_linker_build_id
=no
26497 if test x
"$enable_linker_build_id" = xyes
; then
26498 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26500 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26504 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26508 # In binutils 2.21, GNU ld gained support for new emulations fully
26509 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26511 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26512 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26513 $as_echo_n "(cached) " >&6
26515 gcc_cv_ld_sol2_emulation
=no
26516 if test $in_tree_ld = yes ; then
26517 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26518 "$gcc_cv_gld_minor_version" -ge 21 -o \
26519 "$gcc_cv_gld_major_version" -gt 2 \
26520 && test $in_tree_ld_is_elf = yes; then
26521 gcc_cv_ld_sol2_emulation
=yes
26523 elif test x
$gcc_cv_ld != x
; then
26524 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
26525 grep _sol2
> /dev
/null
; then
26526 gcc_cv_ld_sol2_emulation
=yes
26530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26531 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26532 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
26534 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26539 $as_echo_n "checking linker --sysroot support... " >&6; }
26540 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26541 $as_echo_n "(cached) " >&6
26543 gcc_cv_ld_sysroot
=no
26544 if test $in_tree_ld = yes ; then
26545 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
26546 gcc_cv_ld_sysroot
=yes
26548 elif test x
$gcc_cv_ld != x
; then
26549 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
26550 gcc_cv_ld_sysroot
=yes
26554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26555 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26556 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
26558 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26562 if test x
$with_sysroot = x
&& test x
$host = x
$target \
26563 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26564 && test "$prefix" != "NONE"; then
26566 cat >>confdefs.h
<<_ACEOF
26567 #define PREFIX_INCLUDE_DIR "$prefix/include"
26572 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
26573 if test "x$with_headers" != x
; then
26574 target_header_dir
=$with_headers
26575 elif test "x$with_sysroot" = x
; then
26576 target_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
26577 elif test "x$with_build_sysroot" != "x"; then
26578 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
26579 elif test "x$with_sysroot" = xyes
; then
26580 target_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26582 target_header_dir
="${with_sysroot}${native_system_header_dir}"
26585 target_header_dir
=${native_system_header_dir}
26588 # Test for stack protector support in target C library.
26589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26590 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26591 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26592 $as_echo_n "(cached) " >&6
26594 gcc_cv_libc_provides_ssp
=no
26596 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
26597 # glibc 2.4 and later provides __stack_chk_fail and
26598 # either __stack_chk_guard, or TLS access to stack guard canary.
26599 if test -f $target_header_dir/features.h \
26600 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26601 $target_header_dir/features.h
> /dev
/null
; then
26602 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26603 $target_header_dir/features.h
> /dev
/null
; then
26604 gcc_cv_libc_provides_ssp
=yes
26605 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26606 $target_header_dir/features.h
> /dev
/null \
26607 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26608 $target_header_dir/features.h
> /dev
/null
; then
26609 gcc_cv_libc_provides_ssp
=yes
26610 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26611 $target_header_dir/features.h
> /dev
/null
&& \
26612 test -f $target_header_dir/bits
/uClibc_config.h
&& \
26613 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26614 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
26615 gcc_cv_libc_provides_ssp
=yes
26620 # Avoid complicated tests (see
26621 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26622 # simply assert that glibc does provide this, which is true for all
26623 # realistically usable GNU/Hurd configurations.
26624 gcc_cv_libc_provides_ssp
=yes;;
26625 *-*-darwin* |
*-*-freebsd*)
26626 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26627 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
26628 gcc_cv_libc_provides_ssp
=yes
26630 echo "no __stack_chk_fail on this target"
26634 *) gcc_cv_libc_provides_ssp
=no
;;
26637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26638 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26640 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
26642 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26646 # Test for <sys/sdt.h> on the target.
26648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26649 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26651 if test -f $target_header_dir/sys
/sdt.h
; then
26654 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26658 $as_echo "$have_sys_sdt_h" >&6; }
26660 # Check if TFmode long double should be used by default or not.
26661 # Some glibc targets used DFmode long double, but with glibc 2.4
26662 # and later they can use TFmode.
26664 powerpc
*-*-linux* | \
26665 sparc
*-*-linux* | \
26669 # Check whether --with-long-double-128 was given.
26670 if test "${with_long_double_128+set}" = set; then :
26671 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
26673 gcc_cv_target_ldbl128
=no
26674 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26675 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
26676 && gcc_cv_target_ldbl128
=yes
26682 if test x
$gcc_cv_target_ldbl128 = xyes
; then
26684 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26689 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26690 gcc_cv_target_dl_iterate_phdr
=unknown
26693 # <link.h> needs both a dl_iterate_phdr declaration and support for
26694 # compilation with largefile support.
26695 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
26696 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
26697 gcc_cv_target_dl_iterate_phdr
=yes
26699 gcc_cv_target_dl_iterate_phdr
=no
26704 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
26706 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26710 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26712 # Find out what GC implementation we want, or may, use.
26714 # Check whether --with-gc was given.
26715 if test "${with_gc+set}" = set; then :
26716 withval
=$with_gc; case "$withval" in
26723 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26727 as_fn_error
"$withval is an invalid option to --with-gc" "$LINENO" 5
26735 echo "Using $GGC for garbage collection."
26737 # Libraries to use on the host. This will normally be set by the top
26738 # level Makefile. Here we simply capture the value for our Makefile.
26739 if test -z "${HOST_LIBS+set}"; then
26744 # Use the system's zlib library.
26746 zlibinc
="-I\$(srcdir)/../zlib"
26748 # Check whether --with-system-zlib was given.
26749 if test "${with_system_zlib+set}" = set; then :
26750 withval
=$with_system_zlib; zlibdir
=
26759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26760 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26761 # Check whether --enable-maintainer-mode was given.
26762 if test "${enable_maintainer_mode+set}" = set; then :
26763 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
26769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26770 $as_echo "$maintainer_mode" >&6; }
26772 if test "$maintainer_mode" = "yes"; then
26782 # Make empty files to contain the specs and options for each language.
26783 # Then add #include lines to for a compiler that has specs and/or options.
26789 # These (without "all_") are set in each config-lang.in.
26790 # `language' must be a single word so is spelled singularly.
26793 all_outputs
='Makefile'
26794 # List of language makefile fragments.
26795 all_lang_makefrags
=
26796 # Additional files for gengtype
26797 all_gtfiles
="$target_gtfiles"
26799 # These are the languages that are set in --enable-languages,
26800 # and are available in the GCC tree.
26801 all_selected_languages
=
26803 # Add the language fragments.
26804 # Languages are added via two mechanisms. Some information must be
26805 # recorded in makefile variables, these are defined in config-lang.in.
26806 # We accumulate them and plug them into the main Makefile.
26807 # The other mechanism is a set of hooks for each of the main targets
26808 # like `clean', `install', etc.
26810 language_hooks
="Make-hooks"
26812 for lang
in ${srcdir}/*/config-lang.
in
26814 test "$lang" = "${srcdir}/*/config-lang.in" && continue
26816 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
26817 if test "x$lang_alias" = x
26819 echo "$lang doesn't set \$language." 1>&2
26822 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26823 subdirs
="$subdirs $subdir"
26825 # $gcc_subdir is where the gcc integration files are to be found
26826 # for a language, both for internal compiler purposes (compiler
26827 # sources implementing front-end to GCC tree converters), and for
26828 # build infrastructure purposes (Make-lang.in, etc.)
26830 # This will be <subdir> (relative to $srcdir) if a line like
26831 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26832 # is found in <langdir>/config-lang.in, and will remain <langdir>
26835 # Except for the language alias (fetched above), the regular
26836 # "config-lang.in" contents are always retrieved from $gcc_subdir,
26837 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26838 # only this and the language alias.
26840 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
26841 if [ "$gcc_subdir" = "" ]; then
26842 gcc_subdir
="$subdir"
26845 case ",$enable_languages," in
26847 all_selected_languages
="$all_selected_languages $lang_alias"
26848 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
26849 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26860 .
${srcdir}/$gcc_subdir/config-lang.
in
26861 if test "x$language" = x
26863 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26868 case ",$enable_languages," in
26869 *,$lang_alias,*) ;;
26871 for i
in $subdir_requires; do
26872 test -f "${srcdir}/$i/config-lang.in" && continue
26880 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26881 if test -f $srcdir/$gcc_subdir/lang.opt
; then
26882 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26883 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26885 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
26886 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26888 all_languages
="$all_languages $language"
26889 all_compilers
="$all_compilers $compilers"
26890 all_outputs
="$all_outputs $outputs"
26891 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
26892 case ",$enable_languages," in
26895 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26904 # Pick up gtfiles for c
26906 .
${srcdir}/c-config-lang.
in
26907 all_gtfiles
="$all_gtfiles [c] $gtfiles"
26910 for language
in $all_selected_languages
26912 check_languages
="$check_languages check-$language"
26915 # We link each language in with a set of hooks, reached indirectly via
26916 # lang.${target}. Only do so for selected languages.
26920 target_list
="all.cross start.encap rest.encap tags \
26921 install-common install-man install-info install-pdf install-html dvi \
26922 pdf html uninstall info man srcextra srcman srcinfo \
26923 mostlyclean clean distclean maintainer-clean install-plugin"
26925 for t
in $target_list
26928 for lang
in $all_selected_languages
26932 echo "lang.$t: $x" >> Make-hooks
26936 # Option include files
26939 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
26940 option_includes
="option-includes.mk"
26949 echo "dir ." > .gdbinit
26950 echo "dir ${srcdir}" >> .gdbinit
26951 if test x
$gdb_needs_out_file_path = xyes
26953 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
26955 if test "x$subdirs" != x
; then
26958 echo "dir ${srcdir}/$s" >> .gdbinit
26961 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
26963 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
26967 # Find a directory in which to install a shared libgcc.
26969 # Check whether --enable-version-specific-runtime-libs was given.
26970 if test "${enable_version_specific_runtime_libs+set}" = set; then :
26971 enableval
=$enable_version_specific_runtime_libs;
26975 # Substitute configuration variables
27039 if test x
${build} = x
${host} ; then
27040 if test x
${host} = x
${target} ; then
27041 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27043 echo "Links are now set up to build a cross-compiler" 1>&2
27044 echo " from ${host} to ${target}." 1>&2
27047 if test x
${host} = x
${target} ; then
27048 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27049 echo " for ${target}." 1>&2
27051 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27052 echo " from ${host} to ${target}." 1>&2
27064 if test "x${CLOOGLIBS}" != "x" ; then
27066 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27070 # Check for plugin support
27071 # Check whether --enable-plugin was given.
27072 if test "${enable_plugin+set}" = set; then :
27073 enableval
=$enable_plugin; enable_plugin
=$enableval
27075 enable_plugin
=yes; default_plugin
=yes
27083 if test x
$build = x
$host; then
27084 export_sym_check
="nm${exeext} -g"
27085 elif test x
$host = x
$target; then
27086 export_sym_check
="$gcc_cv_nm -g"
27092 if test x
$build = x
$host; then
27093 export_sym_check
="objdump${exeext} -T"
27094 elif test x
$host = x
$target; then
27095 export_sym_check
="$gcc_cv_objdump -T"
27102 if test x
"$enable_plugin" = x
"yes"; then
27104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27105 $as_echo_n "checking for exported symbols... " >&6; }
27106 if test "x$export_sym_check" != x
; then
27107 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27108 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
> /dev
/null
2>&1
27109 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
27110 : # No need to use a flag
27111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27112 $as_echo "yes" >&6; }
27114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27115 $as_echo "yes" >&6; }
27116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27117 $as_echo_n "checking for -rdynamic... " >&6; }
27118 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
> /dev
/null
2>&1
27119 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
27120 plugin_rdynamic
=yes
27121 pluginlibs
="-rdynamic"
27126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27127 $as_echo "$plugin_rdynamic" >&6; }
27130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27131 $as_echo "unable to check" >&6; }
27136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27137 $as_echo_n "checking for library containing dlopen... " >&6; }
27138 if test "${ac_cv_search_dlopen+set}" = set; then :
27139 $as_echo_n "(cached) " >&6
27141 ac_func_search_save_LIBS
=$LIBS
27142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27143 /* end confdefs.h. */
27145 /* Override any GCC internal prototype to avoid an error.
27146 Use char because int might match the return type of a GCC
27147 builtin and then its argument prototype would still apply. */
27160 for ac_lib
in '' dl
; do
27161 if test -z "$ac_lib"; then
27162 ac_res
="none required"
27165 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27167 if ac_fn_c_try_link
"$LINENO"; then :
27168 ac_cv_search_dlopen
=$ac_res
27170 rm -f core conftest.err conftest.
$ac_objext \
27172 if test "${ac_cv_search_dlopen+set}" = set; then :
27176 if test "${ac_cv_search_dlopen+set}" = set; then :
27179 ac_cv_search_dlopen
=no
27181 rm conftest.
$ac_ext
27182 LIBS
=$ac_func_search_save_LIBS
27184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27185 $as_echo "$ac_cv_search_dlopen" >&6; }
27186 ac_res
=$ac_cv_search_dlopen
27187 if test "$ac_res" != no
; then :
27188 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27192 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
27193 pluginlibs
="$pluginlibs -ldl"
27197 # Check that we can build shared objects with -fPIC -shared
27198 saved_LDFLAGS
="$LDFLAGS"
27199 saved_CFLAGS
="$CFLAGS"
27202 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27203 CFLAGS
="$CFLAGS -fPIC"
27204 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
27207 CFLAGS
="$CFLAGS -fPIC"
27208 LDFLAGS
="$LDFLAGS -fPIC -shared"
27211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27212 $as_echo_n "checking for -fPIC -shared... " >&6; }
27213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27214 /* end confdefs.h. */
27224 if ac_fn_c_try_link
"$LINENO"; then :
27225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27226 $as_echo "yes" >&6; }; have_pic_shared
=yes
27228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27229 $as_echo "no" >&6; }; have_pic_shared
=no
27231 rm -f core conftest.err conftest.
$ac_objext \
27232 conftest
$ac_exeext conftest.
$ac_ext
27233 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
27237 LDFLAGS
="$saved_LDFLAGS"
27238 CFLAGS
="$saved_CFLAGS"
27240 # If plugin support had been requested but not available, fail.
27241 if test x
"$enable_plugin" = x
"no" ; then
27242 if test x
"$default_plugin" != x
"yes"; then
27244 Building GCC with plugin support requires a host that supports
27245 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27252 if test x
"$enable_plugin" = x
"yes"; then
27254 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27259 # Check whether --enable-libquadmath-support was given.
27260 if test "${enable_libquadmath_support+set}" = set; then :
27261 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
27263 ENABLE_LIBQUADMATH_SUPPORT
=yes
27266 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27268 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27273 # Specify what hash style to use by default.
27275 # Check whether --with-linker-hash-style was given.
27276 if test "${with_linker_hash_style+set}" = set; then :
27277 withval
=$with_linker_hash_style; case x
"$withval" in
27279 LINKER_HASH_STYLE
=sysv
27282 LINKER_HASH_STYLE
=gnu
27285 LINKER_HASH_STYLE
=both
27288 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27292 LINKER_HASH_STYLE
=''
27295 if test x
"${LINKER_HASH_STYLE}" != x
; then
27297 cat >>confdefs.h
<<_ACEOF
27298 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27303 # Configure the subdirectories
27304 # AC_CONFIG_SUBDIRS($subdirs)
27306 # Create the Makefile
27307 # and configure language subdirectories
27308 ac_config_files
="$ac_config_files $all_outputs"
27311 ac_config_commands
="$ac_config_commands default"
27313 cat >confcache
<<\_ACEOF
27314 # This file is a shell script that caches the results of configure
27315 # tests run on this system so they can be shared between configure
27316 # scripts and configure runs, see configure's option --config-cache.
27317 # It is not useful on other systems. If it contains results you don't
27318 # want to keep, you may remove or edit it.
27320 # config.status only pays attention to the cache file if you give it
27321 # the --recheck option to rerun configure.
27323 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27324 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27325 # following values.
27329 # The following way of writing the cache mishandles newlines in values,
27330 # but we know of no workaround that is simple, portable, and efficient.
27331 # So, we kill variables containing newlines.
27332 # Ultrix sh set writes to stderr and can't be redirected directly,
27333 # and sets the high bit in the cache file unless we assign to the vars.
27335 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27336 eval ac_val
=\$
$ac_var
27340 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27341 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27344 _ | IFS | as_nl
) ;; #(
27345 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
27346 *) { eval $ac_var=; unset $ac_var;} ;;
27352 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27353 *${as_nl}ac_space
=\
*)
27354 # `set' does not quote correctly, so add quotes: double-quote
27355 # substitution turns \\\\ into \\, and sed turns \\ into \.
27358 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27361 # `set' quotes correctly as required by POSIX, so do not add quotes.
27362 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27371 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27373 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27375 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
27376 if test -w "$cache_file"; then
27377 test "x$cache_file" != "x/dev/null" &&
27378 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27379 $as_echo "$as_me: updating cache $cache_file" >&6;}
27380 cat confcache
>$cache_file
27382 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27383 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27388 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
27389 # Let make expand exec_prefix.
27390 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27392 DEFS
=-DHAVE_CONFIG_H
27396 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
27397 # 1. Remove the extension, and $U if already installed.
27398 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
27399 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
27400 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27401 # will be set to the directory where LIBOBJS objects are built.
27402 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27403 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
27405 LIBOBJS
=$ac_libobjs
27407 LTLIBOBJS
=$ac_ltlibobjs
27412 : ${CONFIG_STATUS=./config.status}
27414 ac_clean_files_save
=$ac_clean_files
27415 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
27416 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27417 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27419 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27421 # Generated by $as_me.
27422 # Run this file to recreate the current configuration.
27423 # Compiler output produced by configure, useful for debugging
27424 # configure, is in config.log if it exists.
27427 ac_cs_recheck=false
27430 SHELL=\${CONFIG_SHELL-$SHELL}
27433 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
27434 ## -------------------- ##
27435 ## M4sh Initialization. ##
27436 ## -------------------- ##
27438 # Be more Bourne compatible
27439 DUALCASE
=1; export DUALCASE
# for MKS sh
27440 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
27443 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27444 # is contrary to our usage. Disable this feature.
27445 alias -g '${1+"$@"}'='"$@"'
27446 setopt NO_GLOB_SUBST
27448 case `(set -o) 2>/dev/null` in #(
27460 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27461 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27462 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27463 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27464 # Prefer a ksh shell builtin over an external printf program on Solaris,
27465 # but without wasting forks for bash or zsh.
27466 if test -z "$BASH_VERSION$ZSH_VERSION" \
27467 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27468 as_echo='print
-r --'
27469 as_echo_n='print
-rn --'
27470 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27471 as_echo='printf %s
\n'
27472 as_echo_n='printf %s
'
27474 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27475 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
27476 as_echo_n='/usr
/ucb
/echo -n'
27478 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27479 as_echo_n_body='eval
27483 expr "X$arg" : "X\\(.*\\)$as_nl";
27484 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27486 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
27488 export as_echo_n_body
27489 as_echo_n='sh
-c $as_echo_n_body as_echo
'
27491 export as_echo_body
27492 as_echo='sh
-c $as_echo_body as_echo
'
27495 # The user is always right.
27496 if test "${PATH_SEPARATOR+set}" != set; then
27498 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27499 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27506 # We need space, tab and new line, in precisely that order. Quoting is
27507 # there to prevent editors from complaining about space-tab.
27508 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27509 # splitting by setting IFS to empty value.)
27512 # Find who we are. Look in the path if we contain no directory separator.
27514 *[\\/]* ) as_myself=$0 ;;
27515 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27516 for as_dir in $PATH
27519 test -z "$as_dir" && as_dir=.
27520 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27526 # We did not find ourselves, most probably we were run as `sh COMMAND'
27527 # in which case we are not to be found in the path.
27528 if test "x$as_myself" = x
; then
27531 if test ! -f "$as_myself"; then
27532 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27536 # Unset variables that we do not need and which cause bugs (e.g. in
27537 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27538 # suppresses any "Segmentation fault" message there. '((' could
27539 # trigger a bug in pdksh 5.2.14.
27540 for as_var
in BASH_ENV ENV MAIL MAILPATH
27541 do eval test x\
${$as_var+set} = xset \
27542 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
27555 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
27558 # as_fn_error ERROR [LINENO LOG_FD]
27559 # ---------------------------------
27560 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27561 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27562 # script with status $?, using 1 if that was 0.
27565 as_status
=$?
; test $as_status -eq 0 && as_status
=1
27567 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
27568 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27570 $as_echo "$as_me: error: $1" >&2
27571 as_fn_exit
$as_status
27575 # as_fn_set_status STATUS
27576 # -----------------------
27577 # Set $? to STATUS, without forking.
27578 as_fn_set_status
()
27581 } # as_fn_set_status
27583 # as_fn_exit STATUS
27584 # -----------------
27585 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27589 as_fn_set_status
$1
27595 # Portably unset VAR.
27598 { eval $1=; unset $1;}
27600 as_unset
=as_fn_unset
27601 # as_fn_append VAR VALUE
27602 # ----------------------
27603 # Append the text in VALUE to the end of the definition contained in VAR. Take
27604 # advantage of any shell optimizations that allow amortized linear growth over
27605 # repeated appends, instead of the typical quadratic growth present in naive
27607 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
27608 eval 'as_fn_append ()
27619 # as_fn_arith ARG...
27620 # ------------------
27621 # Perform arithmetic evaluation on the ARGs, and store the result in the
27622 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27623 # must be portable across $(()) and expr.
27624 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
27625 eval 'as_fn_arith ()
27632 as_val
=`expr "$@" || test $? -eq 1`
27637 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27638 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27644 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27645 as_basename
=basename
27650 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27656 as_me
=`$as_basename -- "$0" ||
27657 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27658 X"$0" : 'X\(//\)$' \| \
27659 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27661 sed '/^.*\/\([^/][^/]*\)\/*$/{
27675 # Avoid depending upon Character Ranges.
27676 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
27677 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27678 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
27679 as_cr_digits
='0123456789'
27680 as_cr_alnum
=$as_cr_Letters$as_cr_digits
27682 ECHO_C
= ECHO_N
= ECHO_T
=
27683 case `echo -n x` in #(((((
27685 case `echo 'xy\c'` in
27686 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27688 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
27695 rm -f conf$$ conf$$.exe conf$$.
file
27696 if test -d conf$$.dir
; then
27697 rm -f conf$$.dir
/conf$$.
file
27700 mkdir conf$$.dir
2>/dev
/null
27702 if (echo >conf$$.
file) 2>/dev
/null
; then
27703 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27705 # ... but there are two gotchas:
27706 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27707 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27708 # In both cases, we have to default to `cp -p'.
27709 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27711 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27719 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27720 rmdir conf$$.dir
2>/dev
/null
27725 # Create "$as_dir" as a directory, including parents if necessary.
27730 -*) as_dir
=.
/$as_dir;;
27732 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
27736 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27737 *) as_qdir
=$as_dir;;
27739 as_dirs
="'$as_qdir' $as_dirs"
27740 as_dir
=`$as_dirname -- "$as_dir" ||
27741 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27742 X"$as_dir" : 'X\(//\)[^/]' \| \
27743 X"$as_dir" : 'X\(//\)$' \| \
27744 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27745 $as_echo X"$as_dir" |
27746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27750 /^X\(\/\/\)[^/].*/{
27763 test -d "$as_dir" && break
27765 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27766 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
27770 if mkdir
-p .
2>/dev
/null
; then
27771 as_mkdir_p
='mkdir -p "$as_dir"'
27773 test -d .
/-p && rmdir .
/-p
27777 if test -x / >/dev
/null
2>&1; then
27778 as_test_x
='test -x'
27780 if ls -dL / >/dev
/null
2>&1; then
27787 if test -d "$1"; then
27793 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27794 ???[sx]*):;;*)false;;esac;fi
27798 as_executable_p
=$as_test_x
27800 # Sed expression to map a string onto a valid CPP name.
27801 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27803 # Sed expression to map a string onto a valid variable name.
27804 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27808 ## ----------------------------------- ##
27809 ## Main body of $CONFIG_STATUS script. ##
27810 ## ----------------------------------- ##
27812 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
27814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27815 # Save the log message, to keep $0 and so on meaningful, and to
27816 # report actual input values of CONFIG_FILES etc. instead of their
27817 # values after options handling.
27819 This file was extended by $as_me, which was
27820 generated by GNU Autoconf 2.64. Invocation command line was
27822 CONFIG_FILES = $CONFIG_FILES
27823 CONFIG_HEADERS = $CONFIG_HEADERS
27824 CONFIG_LINKS = $CONFIG_LINKS
27825 CONFIG_COMMANDS = $CONFIG_COMMANDS
27828 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27833 case $ac_config_files in *"
27834 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
27837 case $ac_config_headers in *"
27838 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
27842 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27843 # Files that config.status was made for.
27844 config_files="$ac_config_files"
27845 config_headers="$ac_config_headers"
27846 config_commands="$ac_config_commands"
27850 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27852 \`$as_me' instantiates files and other configuration actions
27853 from templates according to the current configuration. Unless the files
27854 and actions are specified as TAGs, all are instantiated by default.
27856 Usage: $0 [OPTION]... [TAG]...
27858 -h, --help print this help, then exit
27859 -V, --version print version number and configuration settings, then exit
27860 -q, --quiet, --silent
27861 do not print progress messages
27862 -d, --debug don't remove temporary files
27863 --recheck update $as_me by reconfiguring in the same conditions
27864 --file=FILE[:TEMPLATE]
27865 instantiate the configuration file FILE
27866 --header=FILE[:TEMPLATE]
27867 instantiate the configuration header FILE
27869 Configuration files:
27872 Configuration headers:
27875 Configuration commands:
27878 Report bugs to the package provider."
27881 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27884 configured by $0, generated by GNU Autoconf 2.64,
27885 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27887 Copyright (C) 2009 Free Software Foundation, Inc.
27888 This config.status script is free software; the Free Software Foundation
27889 gives unlimited permission to copy, distribute and modify it."
27894 test -n "\$AWK" || AWK=awk
27897 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27898 # The default lists apply if the user does not specify any file.
27904 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
27905 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
27916 # Handling of the options.
27917 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
27919 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
27920 $as_echo "$ac_cs_version"; exit ;;
27921 --debug |
--debu |
--deb |
--de |
--d |
-d )
27923 --file |
--fil |
--fi |
--f )
27926 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27928 as_fn_append CONFIG_FILES
" '$ac_optarg'"
27929 ac_need_defaults
=false
;;
27930 --header |
--heade |
--head |
--hea )
27933 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27935 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
27936 ac_need_defaults
=false
;;
27938 # Conflict between --help and --header
27939 as_fn_error
"ambiguous option: \`$1'
27940 Try \`$0 --help' for more information.";;
27941 --help |
--hel |
-h )
27942 $as_echo "$ac_cs_usage"; exit ;;
27943 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
27944 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
27947 # This is an error.
27948 -*) as_fn_error
"unrecognized option: \`$1'
27949 Try \`$0 --help' for more information." ;;
27951 *) as_fn_append ac_config_targets
" $1"
27952 ac_need_defaults
=false
;;
27958 ac_configure_extra_args
=
27960 if $ac_cs_silent; then
27962 ac_configure_extra_args
="$ac_configure_extra_args --silent"
27966 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27967 if \$ac_cs_recheck; then
27968 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27970 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27971 CONFIG_SHELL='$SHELL'
27972 export CONFIG_SHELL
27977 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27981 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27982 ## Running $as_me. ##
27988 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27998 # Handling of arguments.
27999 for ac_config_target
in $ac_config_targets
28001 case $ac_config_target in
28002 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
28003 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
28004 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28005 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
28006 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
28007 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
28009 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28014 # If the user did not use the arguments to specify the items to instantiate,
28015 # then the envvar interface is used. Set only those that are not.
28016 # We use the long form for the default assignment because of an extremely
28017 # bizarre bug on SunOS 4.1.3.
28018 if $ac_need_defaults; then
28019 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
28020 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
28021 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
28024 # Have a temporary directory for convenience. Make it in the build tree
28025 # simply because there is no reason against having it here, and in addition,
28026 # creating and moving files from /tmp can sometimes cause problems.
28027 # Hook for its removal unless debugging.
28028 # Note that there is a small window in which the directory will not be cleaned:
28029 # after its creation but before its name has been assigned to `$tmp'.
28033 trap 'exit_status=$?
28034 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28036 trap 'as_fn_exit 1' 1 2 13 15
28038 # Create a (secure) tmp directory for tmp files.
28041 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28042 test -n "$tmp" && test -d "$tmp"
28045 tmp
=.
/conf$$
-$RANDOM
28046 (umask 077 && mkdir
"$tmp")
28047 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
28049 # Set up the scripts for CONFIG_FILES section.
28050 # No need to generate them if there are no CONFIG_FILES.
28051 # This happens for instance with `./config.status config.h'.
28052 if test -n "$CONFIG_FILES"; then
28054 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
28055 ac_cs_awk_getline
=:
28056 ac_cs_awk_pipe_init
=
28057 ac_cs_awk_read_file
='
28058 while ((getline aline < (F[key])) > 0)
28061 ac_cs_awk_pipe_fini
=
28063 ac_cs_awk_getline
=false
28064 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
28065 ac_cs_awk_read_file
='
28067 print "cat " F[key] " &&"
28068 '$ac_cs_awk_pipe_init
28069 # The final `:' finishes the AND list.
28070 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
28072 ac_cr
=`echo X | tr X '\015'`
28073 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28074 # But we know of no other shell where ac_cr would be empty at this
28075 # point, so we can use a bashism as a fallback.
28076 if test "x$ac_cr" = x
; then
28077 eval ac_cr
=\$
\'\\r
\'
28079 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28080 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28083 ac_cs_awk_cr
=$ac_cr
28086 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28089 # Create commands to substitute file output variables.
28091 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28092 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28093 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
28096 } >conf$
$files.sh
&&
28097 . .
/conf$
$files.sh ||
28098 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
28099 rm -f conf$
$files.sh
28102 echo "cat >conf$$subs.awk <<_ACEOF" &&
28103 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28105 } >conf$$subs.sh ||
28106 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28107 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28109 for ac_last_try in false false false false false :; do
28110 . ./conf$$subs.sh ||
28111 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28113 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
28114 if test $ac_delim_n = $ac_delim_num; then
28116 elif $ac_last_try; then
28117 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28119 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28122 rm -f conf$$subs.sh
28124 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28125 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
28129 s/^/S["/; s
/!.
*/"]=/
28139 s/\(.\{148\}\).*/\1/
28141 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
28146 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28153 s/\(.\{148\}\).*/\1/
28155 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
28159 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28164 ' <conf$$subs.awk | sed '
28169 ' >>$CONFIG_STATUS || ac_write_fail=1
28170 rm -f conf$$subs.awk
28171 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28173 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
28174 for (key in S) S_is_set[key] = 1
28176 \$ac_cs_awk_pipe_init
28180 nfields = split(line, field, "@
")
28182 len = length(field[1])
28183 for (i = 2; i < nfields; i++) {
28185 keylen = length(key)
28186 if (S_is_set[key]) {
28188 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28189 len += length(value) + length(field[++i])
28194 if (nfields == 3 && !substed) {
28196 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28197 \$ac_cs_awk_read_file
28203 \$ac_cs_awk_pipe_fini
28206 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28207 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28208 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
28211 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
28212 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
28215 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28216 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
28217 # trailing colons and then remove the whole line if VPATH becomes empty
28218 # (actually we leave an empty line to preserve line numbers).
28219 if test "x
$srcdir" = x.; then
28220 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28221 s/:*\$(srcdir):*/:/
28222 s/:*\${srcdir}:*/:/
28224 s/^\([^=]*=[ ]*\):*/\1/
28230 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28231 fi # test -n "$CONFIG_FILES"
28233 # Set up the scripts for CONFIG_HEADERS section.
28234 # No need to generate them if there are no CONFIG_HEADERS.
28235 # This happens for instance with `./config.status Makefile'.
28236 if test -n "$CONFIG_HEADERS"; then
28237 cat >"$tmp/defines.
awk" <<\_ACAWK ||
28241 # Transform confdefs.h into an awk script `defines.awk', embedded as
28242 # here-document in config.status, that substitutes the proper values into
28243 # config.h.in to produce config.h.
28245 # Create a delimiter string that does not exist in confdefs.h, to ease
28246 # handling of long lines.
28248 for ac_last_try in false false :; do
28249 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
28250 if test -z "$ac_t"; then
28252 elif $ac_last_try; then
28253 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
28255 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28259 # For the awk script, D is an array of macro values keyed by name,
28260 # likewise P contains macro parameters if any. Preserve backslash
28261 # newline sequences.
28263 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28265 s/.\{148\}/&'"$ac_delim"'/g
28268 s/^[ ]*#[ ]*define[ ][ ]*/ /
28275 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
28277 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
28281 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
28282 D["\
1"]=" \
3\\\\\\n
"\\/p
28284 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
28289 s/.\{148\}/&'"$ac_delim"'/g
28294 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
28297 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
28299 ' <confdefs.h | sed '
28300 s/'"$ac_delim"'/"\\\
28301 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28303 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28304 for (key in D) D_is_set[key] = 1
28307 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28309 split(line, arg, " ")
28310 if (arg[1] == "#") {
28314 defundef
= substr
(arg
[1], 2)
28317 split(mac1
, mac2
, "(") #)
28319 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
28320 if (D_is_set
[macro
]) {
28321 # Preserve the white space surrounding the "#".
28322 print prefix
"define", macro P
[macro
] D
[macro
]
28325 # Replace #undef with comments. This is necessary, for example,
28326 # in the case of _POSIX_SOURCE, which is predefined and required
28327 # on some systems where configure will not decide to define it.
28328 if (defundef
== "undef") {
28329 print
"/*", prefix defundef
, macro
, "*/"
28337 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28338 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
28339 fi # test -n "$CONFIG_HEADERS"
28342 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28347 :[FHLC
]) ac_mode
=$ac_tag; continue;;
28349 case $ac_mode$ac_tag in
28351 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
28352 :[FH
]-) ac_tag
=-:-;;
28353 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
28370 -) ac_f
="$tmp/stdin";;
28371 *) # Look for the file first in the build tree, then in the source tree
28372 # (if the path is not absolute). The absolute path cannot be DOS-style,
28373 # because $ac_f cannot contain `:'.
28377 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
28379 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
28381 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28382 as_fn_append ac_file_inputs
" '$ac_f'"
28385 # Let's still pretend it is `configure' which instantiates (i.e., don't
28386 # use $as_me), people would be surprised to read:
28387 # /* config.h. Generated by config.status. */
28388 configure_input
='Generated from '`
28389 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28391 if test x
"$ac_file" != x-
; then
28392 configure_input
="$ac_file. $configure_input"
28393 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28394 $as_echo "$as_me: creating $ac_file" >&6;}
28396 # Neutralize special characters interpreted by sed in replacement strings.
28397 case $configure_input in #(
28398 *\
&* |
*\|
* |
*\\* )
28399 ac_sed_conf_input
=`$as_echo "$configure_input" |
28400 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28401 *) ac_sed_conf_input
=$configure_input;;
28405 *:-:* |
*:-) cat >"$tmp/stdin" \
28406 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
28411 ac_dir
=`$as_dirname -- "$ac_file" ||
28412 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28413 X"$ac_file" : 'X\(//\)[^/]' \| \
28414 X"$ac_file" : 'X\(//\)$' \| \
28415 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28416 $as_echo X"$ac_file" |
28417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28421 /^X\(\/\/\)[^/].*/{
28434 as_dir
="$ac_dir"; as_fn_mkdir_p
28438 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28440 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28441 # A ".." for each directory in $ac_dir_suffix.
28442 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28443 case $ac_top_builddir_sub in
28444 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28445 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
28448 ac_abs_top_builddir
=$ac_pwd
28449 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
28450 # for backward compatibility:
28451 ac_top_builddir
=$ac_top_build_prefix
28454 .
) # We are building in place.
28456 ac_top_srcdir
=$ac_top_builddir_sub
28457 ac_abs_top_srcdir
=$ac_pwd ;;
28458 [\\/]* | ?
:[\\/]* ) # Absolute name.
28459 ac_srcdir
=$srcdir$ac_dir_suffix;
28460 ac_top_srcdir
=$srcdir
28461 ac_abs_top_srcdir
=$srcdir ;;
28462 *) # Relative name.
28463 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
28464 ac_top_srcdir
=$ac_top_build_prefix$srcdir
28465 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
28467 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28478 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28479 # If the template does not know about datarootdir, expand it.
28480 # FIXME: This hack should be removed a few years after 2.60.
28481 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28492 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28493 *datarootdir
*) ac_datarootdir_seen
=yes;;
28494 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28496 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28498 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28499 ac_datarootdir_hack='
28500 s&@datadir@&$datadir&g
28501 s&@docdir@&$docdir&g
28502 s&@infodir@&$infodir&g
28503 s&@localedir@&$localedir&g
28504 s&@mandir@&$mandir&g
28505 s&\\\${datarootdir}&$datarootdir&g' ;;
28509 # Neutralize VPATH when `$srcdir' = `.'.
28510 # Shell code in configure.ac might set extrasub.
28511 # FIXME: do we really want to maintain this feature?
28512 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28513 ac_sed_extra="$ac_vpsub
28516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28518 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28519 s|@configure_input@|
$ac_sed_conf_input|
;t t
28520 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
28521 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
28522 s
&@srcdir@
&$ac_srcdir&;t t
28523 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
28524 s
&@top_srcdir@
&$ac_top_srcdir&;t t
28525 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
28526 s
&@builddir@
&$ac_builddir&;t t
28527 s
&@abs_builddir@
&$ac_abs_builddir&;t t
28528 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
28529 $ac_datarootdir_hack
28531 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28532 if $ac_cs_awk_getline; then
28533 $AWK -f "$tmp/subs.
awk"
28535 $AWK -f "$tmp/subs.
awk" | $SHELL
28537 || as_fn_error "could not create
$ac_file" "$LINENO" 5
28539 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28540 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
28541 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
28542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
28543 which seems to be undefined. Please make sure it is defined." >&5
28544 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
28545 which seems to be undefined. Please make sure it is defined." >&2;}
28549 -) cat "$tmp/out" && rm -f "$tmp/out";;
28550 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28552 || as_fn_error "could not create $ac_file" "$LINENO" 5
28558 if test x"$ac_file" != x-; then
28560 $as_echo "/* $configure_input */" \
28561 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28562 } >"$tmp/config.h" \
28563 || as_fn_error "could not create $ac_file" "$LINENO" 5
28564 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28565 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28566 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28569 mv "$tmp/config.h" "$ac_file" \
28570 || as_fn_error "could not create $ac_file" "$LINENO" 5
28573 $as_echo "/* $configure_input */" \
28574 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28575 || as_fn_error "could not create -" "$LINENO" 5
28579 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28580 $as_echo "$as_me: executing $ac_file commands" >&6;}
28585 case $ac_file$ac_mode in
28586 "as":F) chmod +x as ;;
28587 "collect-ld":F) chmod +x collect-ld ;;
28588 "nm":F) chmod +x nm ;;
28590 case ${CONFIG_HEADERS} in
28591 *auto-host.h:config.in*)
28594 # Make sure all the subdirs exist.
28595 for d in $subdirs doc build common c-family
28597 test -d $d || mkdir $d
28607 ac_clean_files=$ac_clean_files_save
28609 test $ac_write_fail = 0 ||
28610 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28613 # configure is writing to config.log, and then calls config.status.
28614 # config.status does its own redirection, appending to config.log.
28615 # Unfortunately, on DOS this fails, as config.log is still kept open
28616 # by configure, so config.status won't be able to
write to it
; its
28617 # output is simply discarded. So we exec the FD to /dev/null,
28618 # effectively closing config.log, so it can be properly (re)opened and
28619 # appended to by config.status. When coming back to configure, we
28620 # need to make the FD available again.
28621 if test "$no_create" != yes; then
28623 ac_config_status_args
=
28624 test "$silent" = yes &&
28625 ac_config_status_args
="$ac_config_status_args --quiet"
28627 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28629 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28630 # would make configure fail if this is the last instruction.
28631 $ac_cs_success || as_fn_exit $?
28633 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
28634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28635 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}