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"
173 if (eval "$as_required") 2>/dev/null; then :
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 test -z "$as_dir" && as_dir=.
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
238 SHELL=${CONFIG_SHELL-/bin/sh}
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
249 # Portably unset VAR.
252 { eval $1=; unset $1;}
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 # Create "$as_dir" as a directory, including parents if necessary.
281 -*) as_dir=./$as_dir;;
283 test -d "$as_dir" || eval $as_mkdir_p || {
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
314 test -d "$as_dir" && break
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
352 as_val=`expr "$@" || test $? -eq 1`
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
364 as_status=$?; test $as_status -eq 0 && as_status=1
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
446 # Exit status is that of the last command.
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
479 elif ln conf$$.file conf$$ 2>/dev/null; then
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
493 test -d ./-p && rmdir ./-p
497 if test -x / >/dev/null 2>&1; then
500 if ls -dL / >/dev/null 2>&1; then
507 if test -d "$1"; then
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
528 # Check that we are running under the correct shell.
529 SHELL=${CONFIG_SHELL-/bin/sh}
533 # Remove one level of quotation (which was required for Make).
534 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
539 if test "X$1" = X--no-reexec; then
540 # Discard the --no-reexec flag, and continue.
542 elif test "X$1" = X--fallback-echo; then
543 # Avoid inline document here, it may be left over
545 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
546 # Yippee, $ECHO works!
549 # Restart under the correct shell.
550 exec $SHELL "$0" --no-reexec ${1+"$@"}
553 if test "X$1" = X--fallback-echo; then
554 # used as fallback echo
562 # The HP-UX ksh and POSIX shell print the target directory to stdout
564 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
566 if test -z "$lt_ECHO"; then
567 if test "X${echo_test_string+set}" != Xset; then
568 # find a string as large as possible, as long as the shell can cope with it
569 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
570 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
571 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
572 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
579 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
580 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
581 test "X$echo_testing_string" = "X$echo_test_string"; then
584 # The Solaris, AIX, and Digital Unix default echo programs unquote
585 # backslashes. This makes it impossible to quote backslashes using
586 # echo "$something" | sed 's/\\/\\\\/g'
588 # So, first we look for a working echo in the user's PATH.
590 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
591 for dir in $PATH /usr/ucb; do
593 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
594 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
603 if test "X$ECHO" = Xecho; then
604 # We didn't find a better echo, so look for alternatives.
605 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
608 # This shell has a builtin print -r that does the trick.
610 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
611 test "X$CONFIG_SHELL" != X/bin/ksh; then
612 # If we have ksh, try running configure again with it.
613 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
614 export ORIGINAL_CONFIG_SHELL
615 CONFIG_SHELL=/bin/ksh
617 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
621 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
622 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
623 test "X$echo_testing_string" = "X$echo_test_string"; then
626 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
627 test "X$echo_testing_string" = 'X\t' &&
628 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
629 test "X$echo_testing_string" = "X$echo_test_string"; then
630 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
632 SHELL="$CONFIG_SHELL"
634 ECHO="$CONFIG_SHELL $0 --fallback-echo"
635 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
636 test "X$echo_testing_string" = 'X\t' &&
637 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
641 # maybe with a smaller string...
644 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
645 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
652 if test "$prev" != 'sed 50q "$0"'; then
653 echo_test_string=`eval $prev`
654 export echo_test_string
655 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
657 # Oops. We lost completely, so just stick with echo.
666 # Copy echo and quote the copy suitably for passing to libtool from
667 # the Makefile, instead of quoting the original, which is used later.
669 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
670 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676 exec 7<&0 </dev/null 6>&1
679 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
680 # so uname gets run too.
681 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
686 ac_default_prefix=/usr/local
688 ac_config_libobj_dir=.
695 # Identity of this package.
703 ac_unique_file="tree.c"
704 # Factoring default headers for most tests.
705 ac_includes_default="\
707 #ifdef HAVE_SYS_TYPES_H
708 # include <sys/types.h>
710 #ifdef HAVE_SYS_STAT_H
711 # include <sys/stat.h>
717 # ifdef HAVE_STDLIB_H
722 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
727 #ifdef HAVE_STRINGS_H
728 # include <strings.h>
730 #ifdef HAVE_INTTYPES_H
731 # include <inttypes.h>
740 ac_subst_vars='LTLIBOBJS
787 TM_MULTILIB_EXCEPTIONS_CONFIG
796 build_xm_include_list
798 build_install_headers_dir
800 all_selected_languages
819 ORIGINAL_NM_FOR_TARGET
821 ORIGINAL_LD_FOR_TARGET
823 ORIGINAL_AS_FOR_TARGET
896 CROSS_SYSTEM_HEADER_DIR
897 TARGET_SYSTEM_ROOT_DEFINE
903 ENABLE_BUILD_WITH_CXX
906 valgrind_path_defines
978 program_transform_name
989 ac_subst_files='language_hooks'
991 enable_option_checking
996 enable_generated_files_in_srcdir
1002 enable_werror_always
1005 enable_gather_detailed_mem_stats
1006 enable_build_with_cxx
1010 enable_decimal_float
1025 with_libiconv_prefix
1026 enable_initfini_array
1027 enable_sjlj_exceptions
1028 with_system_libunwind
1031 enable_win32_registry
1036 enable_gnu_unique_object
1037 enable_linker_build_id
1038 with_long_double_128
1041 enable_maintainer_mode
1042 enable_version_specific_runtime_libs
1046 ac_precious_vars='build_alias
1067 # Initialize some variables set by options.
1069 ac_init_version=false
1070 ac_unrecognized_opts=
1071 ac_unrecognized_sep=
1072 # The variables have the same names as the options, with
1073 # dashes changed to underlines.
1074 cache_file=/dev/null
1081 program_transform_name=s,x,x,
1089 # Installation directory options.
1090 # These are left unexpanded so users can "make install exec_prefix=/foo"
1091 # and all the variables that are supposed to be based on exec_prefix
1092 # by default will actually change.
1093 # Use braces instead of parens because sh, perl, etc. also accept them.
1094 # (The list follows the same order as the GNU Coding Standards.)
1095 bindir='${exec_prefix}/bin'
1096 sbindir='${exec_prefix}/sbin'
1097 libexecdir='${exec_prefix}/libexec'
1098 datarootdir='${prefix}/share'
1099 datadir='${datarootdir}'
1100 sysconfdir='${prefix}/etc'
1101 sharedstatedir='${prefix}/com'
1102 localstatedir='${prefix}/var'
1103 includedir='${prefix}/include'
1104 oldincludedir='/usr/include'
1105 docdir='${datarootdir}/doc/${PACKAGE}'
1106 infodir='${datarootdir}/info'
1111 libdir='${exec_prefix}/lib'
1112 localedir='${datarootdir}/locale'
1113 mandir='${datarootdir}/man'
1119 # If the previous option needs an argument, assign it.
1120 if test -n "$ac_prev"; then
1121 eval $ac_prev=\$ac_option
1127 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1131 # Accept the important Cygnus configure options, so we can diagnose typos.
1133 case $ac_dashdash$ac_option in
1137 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1139 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1140 bindir=$ac_optarg ;;
1142 -build | --build | --buil | --bui | --bu)
1143 ac_prev=build_alias ;;
1144 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1145 build_alias=$ac_optarg ;;
1147 -cache-file | --cache-file | --cache-fil | --cache-fi \
1148 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1149 ac_prev=cache_file ;;
1150 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1151 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1152 cache_file=$ac_optarg ;;
1154 --config-cache | -C)
1155 cache_file=config.cache ;;
1157 -datadir | --datadir | --datadi | --datad)
1159 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1160 datadir=$ac_optarg ;;
1162 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1163 | --dataroo | --dataro | --datar)
1164 ac_prev=datarootdir ;;
1165 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1166 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1167 datarootdir=$ac_optarg ;;
1169 -disable-* | --disable-*)
1170 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173 as_fn_error "invalid feature name: $ac_useropt"
1174 ac_useropt_orig=$ac_useropt
1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1178 "enable_$ac_useropt"
1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1181 ac_unrecognized_sep=', ';;
1183 eval enable_$ac_useropt=no ;;
1185 -docdir | --docdir | --docdi | --doc | --do)
1187 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1188 docdir=$ac_optarg ;;
1190 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1192 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1193 dvidir=$ac_optarg ;;
1195 -enable-* | --enable-*)
1196 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199 as_fn_error "invalid feature name: $ac_useropt"
1200 ac_useropt_orig=$ac_useropt
1201 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202 case $ac_user_opts in
1204 "enable_$ac_useropt"
1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1207 ac_unrecognized_sep=', ';;
1209 eval enable_$ac_useropt=\$ac_optarg ;;
1211 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1212 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1213 | --exec | --exe | --ex)
1214 ac_prev=exec_prefix ;;
1215 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1216 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1217 | --exec=* | --exe=* | --ex=*)
1218 exec_prefix=$ac_optarg ;;
1220 -gas | --gas | --ga | --g)
1221 # Obsolete; use --with-gas.
1224 -help | --help | --hel | --he | -h)
1225 ac_init_help=long ;;
1226 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1227 ac_init_help=recursive ;;
1228 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1229 ac_init_help=short ;;
1231 -host | --host | --hos | --ho)
1232 ac_prev=host_alias ;;
1233 -host=* | --host=* | --hos=* | --ho=*)
1234 host_alias=$ac_optarg ;;
1236 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1238 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1240 htmldir=$ac_optarg ;;
1242 -includedir | --includedir | --includedi | --included | --include \
1243 | --includ | --inclu | --incl | --inc)
1244 ac_prev=includedir ;;
1245 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1246 | --includ=* | --inclu=* | --incl=* | --inc=*)
1247 includedir=$ac_optarg ;;
1249 -infodir | --infodir | --infodi | --infod | --info | --inf)
1251 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1252 infodir=$ac_optarg ;;
1254 -libdir | --libdir | --libdi | --libd)
1256 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1257 libdir=$ac_optarg ;;
1259 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1260 | --libexe | --libex | --libe)
1261 ac_prev=libexecdir ;;
1262 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1263 | --libexe=* | --libex=* | --libe=*)
1264 libexecdir=$ac_optarg ;;
1266 -localedir | --localedir | --localedi | --localed | --locale)
1267 ac_prev=localedir ;;
1268 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1269 localedir=$ac_optarg ;;
1271 -localstatedir | --localstatedir | --localstatedi | --localstated \
1272 | --localstate | --localstat | --localsta | --localst | --locals)
1273 ac_prev=localstatedir ;;
1274 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1275 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1276 localstatedir=$ac_optarg ;;
1278 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1280 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1281 mandir=$ac_optarg ;;
1283 -nfp | --nfp | --nf)
1284 # Obsolete; use --without-fp.
1287 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1288 | --no-cr | --no-c | -n)
1291 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1292 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1295 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1296 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1297 | --oldin | --oldi | --old | --ol | --o)
1298 ac_prev=oldincludedir ;;
1299 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1300 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1301 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1302 oldincludedir=$ac_optarg ;;
1304 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1306 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1307 prefix=$ac_optarg ;;
1309 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1310 | --program-pre | --program-pr | --program-p)
1311 ac_prev=program_prefix ;;
1312 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1313 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1314 program_prefix=$ac_optarg ;;
1316 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1317 | --program-suf | --program-su | --program-s)
1318 ac_prev=program_suffix ;;
1319 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1320 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1321 program_suffix=$ac_optarg ;;
1323 -program-transform-name | --program-transform-name \
1324 | --program-transform-nam | --program-transform-na \
1325 | --program-transform-n | --program-transform- \
1326 | --program-transform | --program-transfor \
1327 | --program-transfo | --program-transf \
1328 | --program-trans | --program-tran \
1329 | --progr-tra | --program-tr | --program-t)
1330 ac_prev=program_transform_name ;;
1331 -program-transform-name=* | --program-transform-name=* \
1332 | --program-transform-nam=* | --program-transform-na=* \
1333 | --program-transform-n=* | --program-transform-=* \
1334 | --program-transform=* | --program-transfor=* \
1335 | --program-transfo=* | --program-transf=* \
1336 | --program-trans=* | --program-tran=* \
1337 | --progr-tra=* | --program-tr=* | --program-t=*)
1338 program_transform_name=$ac_optarg ;;
1340 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1342 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1343 pdfdir=$ac_optarg ;;
1345 -psdir | --psdir | --psdi | --psd | --ps)
1347 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1350 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1351 | -silent | --silent | --silen | --sile | --sil)
1354 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1356 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1358 sbindir=$ac_optarg ;;
1360 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1361 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1362 | --sharedst | --shareds | --shared | --share | --shar \
1364 ac_prev=sharedstatedir ;;
1365 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1366 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1367 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1369 sharedstatedir=$ac_optarg ;;
1371 -site | --site | --sit)
1373 -site=* | --site=* | --sit=*)
1376 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1378 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1379 srcdir=$ac_optarg ;;
1381 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1382 | --syscon | --sysco | --sysc | --sys | --sy)
1383 ac_prev=sysconfdir ;;
1384 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1385 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1386 sysconfdir=$ac_optarg ;;
1388 -target | --target | --targe | --targ | --tar | --ta | --t)
1389 ac_prev=target_alias ;;
1390 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1391 target_alias=$ac_optarg ;;
1393 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1396 -version | --version | --versio | --versi | --vers | -V)
1397 ac_init_version=: ;;
1400 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1401 # Reject names that are not valid shell variable names.
1402 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1403 as_fn_error "invalid package name: $ac_useropt"
1404 ac_useropt_orig=$ac_useropt
1405 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1406 case $ac_user_opts in
1410 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1411 ac_unrecognized_sep=', ';;
1413 eval with_$ac_useropt=\$ac_optarg ;;
1415 -without-* | --without-*)
1416 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1417 # Reject names that are not valid shell variable names.
1418 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1419 as_fn_error "invalid package name: $ac_useropt"
1420 ac_useropt_orig=$ac_useropt
1421 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1422 case $ac_user_opts in
1426 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1427 ac_unrecognized_sep=', ';;
1429 eval with_$ac_useropt=no ;;
1432 # Obsolete; use --with-x.
1435 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1436 | --x-incl | --x-inc | --x-in | --x-i)
1437 ac_prev=x_includes ;;
1438 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1439 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1440 x_includes=$ac_optarg ;;
1442 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1443 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1444 ac_prev=x_libraries ;;
1445 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1446 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1447 x_libraries=$ac_optarg ;;
1449 -*) as_fn_error "unrecognized option: \`$ac_option'
1450 Try \`$0 --help' for more information."
1454 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1455 # Reject names that are not valid shell variable names.
1456 case $ac_envvar in #(
1457 '' | [0-9]* | *[!_$as_cr_alnum]* )
1458 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1460 eval $ac_envvar=\$ac_optarg
1461 export $ac_envvar ;;
1464 # FIXME: should be removed in autoconf 3.0.
1465 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1466 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1467 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1468 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1474 if test -n "$ac_prev"; then
1475 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1476 as_fn_error "missing argument to $ac_option"
1479 if test -n "$ac_unrecognized_opts"; then
1480 case $enable_option_checking in
1482 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1483 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1487 # Check all directory arguments for consistency.
1488 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1489 datadir sysconfdir sharedstatedir localstatedir includedir \
1490 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1491 libdir localedir mandir
1493 eval ac_val=\$$ac_var
1494 # Remove trailing slashes.
1497 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1498 eval $ac_var=\$ac_val;;
1500 # Be sure to have absolute directory names.
1502 [\\/$]* | ?:[\\/]* ) continue;;
1503 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1505 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1508 # There might be people who depend on the old broken behavior: `$host'
1509 # used to hold the argument of --host etc.
1510 # FIXME: To remove some day.
1513 target=$target_alias
1515 # FIXME: To remove some day.
1516 if test "x$host_alias" != x; then
1517 if test "x$build_alias" = x; then
1518 cross_compiling=maybe
1519 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1520 If a cross compiler is detected then cross compile mode will be used." >&2
1521 elif test "x$build_alias" != "x$host_alias"; then
1527 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1529 test "$silent" = yes && exec 6>/dev/null
1532 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1533 ac_ls_di=`ls -di .` &&
1534 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1535 as_fn_error "working directory cannot be determined"
1536 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1537 as_fn_error "pwd does not report name of working directory"
1540 # Find the source files, if location was not specified.
1541 if test -z "$srcdir"; then
1542 ac_srcdir_defaulted=yes
1543 # Try the directory containing this script, then the parent directory.
1544 ac_confdir=`$as_dirname -- "$as_myself" ||
1545 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1546 X"$as_myself" : 'X\(//\)[^/]' \| \
1547 X"$as_myself" : 'X\(//\)$' \| \
1548 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1549 $as_echo X"$as_myself" |
1550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1568 if test ! -r "$srcdir/$ac_unique_file"; then
1572 ac_srcdir_defaulted=no
1574 if test ! -r "$srcdir/$ac_unique_file"; then
1575 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1576 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1578 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1580 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1582 # When building in place, set srcdir=.
1583 if test "$ac_abs_confdir" = "$ac_pwd"; then
1586 # Remove unnecessary trailing slashes from srcdir.
1587 # Double slashes in file names in object file debugging info
1588 # mess up M-x gdb in Emacs.
1590 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1592 for ac_var in $ac_precious_vars; do
1593 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1594 eval ac_env_${ac_var}_value=\$${ac_var}
1595 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1596 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1600 # Report the --help message.
1602 if test "$ac_init_help" = "long"; then
1603 # Omit some internal or obsolete options to make the list less imposing.
1604 # This message is too long to be a string in the A/UX 3.1 sh.
1606 \`configure' configures this package to adapt to many kinds of systems.
1608 Usage: $0 [OPTION]... [VAR=VALUE]...
1610 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1611 VAR=VALUE. See below for descriptions of some of the useful variables.
1613 Defaults for the options are specified in brackets.
1616 -h, --help display this help and exit
1617 --help=short display options specific to this package
1618 --help=recursive display the short help of all the included packages
1619 -V, --version display version information and exit
1620 -q, --quiet, --silent do not print \`checking...' messages
1621 --cache-file=FILE cache test results in FILE [disabled]
1622 -C, --config-cache alias for \`--cache-file=config.cache'
1623 -n, --no-create do not create output files
1624 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1626 Installation directories:
1627 --prefix=PREFIX install architecture-independent files in PREFIX
1628 [$ac_default_prefix]
1629 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1632 By default, \`make install' will install all the files in
1633 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1634 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1635 for instance \`--prefix=\$HOME'.
1637 For better control, use the options below.
1639 Fine tuning of the installation directories:
1640 --bindir=DIR user executables [EPREFIX/bin]
1641 --sbindir=DIR system admin executables [EPREFIX/sbin]
1642 --libexecdir=DIR program executables [EPREFIX/libexec]
1643 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1644 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1645 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1646 --libdir=DIR object code libraries [EPREFIX/lib]
1647 --includedir=DIR C header files [PREFIX/include]
1648 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1649 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1650 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1651 --infodir=DIR info documentation [DATAROOTDIR/info]
1652 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1653 --mandir=DIR man documentation [DATAROOTDIR/man]
1654 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1655 --htmldir=DIR html documentation [DOCDIR]
1656 --dvidir=DIR dvi documentation [DOCDIR]
1657 --pdfdir=DIR pdf documentation [DOCDIR]
1658 --psdir=DIR ps documentation [DOCDIR]
1664 --program-prefix=PREFIX prepend PREFIX to installed program names
1665 --program-suffix=SUFFIX append SUFFIX to installed program names
1666 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1669 --build=BUILD configure for building on BUILD [guessed]
1670 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1671 --target=TARGET configure for building compilers for TARGET [HOST]
1675 if test -n "$ac_init_help"; then
1680 --disable-option-checking ignore unrecognized --enable/--with options
1681 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1682 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1683 --enable-generated-files-in-srcdir
1684 put copies of generated files in source dir
1685 intended for creating source tarballs for users
1686 without texinfo bison or flex.
1687 --enable-werror-always enable -Werror despite compiler version
1688 --enable-checking=LIST
1689 enable expensive run-time checks. With LIST,
1690 enable only specific categories of checks.
1691 Categories are: yes,no,all,none,release.
1692 Flags are: assert,df,fold,gc,gcac,gimple,misc,
1693 rtlflag,rtl,runtime,tree,valgrind,types.
1694 --enable-coverage=LEVEL
1695 enable compiler's code coverage collection.
1696 Use to measure compiler performance and locate
1697 unused parts of the compiler. With LEVEL, specify
1698 optimization. Values are opt, noopt,
1700 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1701 --enable-build-with-cxx build with C++ compiler instead of C compiler
1702 --enable-multilib enable library support for multiple ABIs
1703 --enable-__cxa_atexit enable __cxa_atexit for C++
1704 --enable-decimal-float={no,yes,bid,dpd}
1705 enable decimal float extension to C. Selecting 'bid'
1706 or 'dpd' choses which decimal floating point format
1708 --enable-fixed-point enable fixed-point arithmetic extension to C
1709 --enable-threads enable thread usage for target GCC
1710 --enable-threads=LIB use LIB thread package for target GCC
1711 --enable-tls enable or disable generation of tls code
1712 overriding the assembler check for tls support
1713 --enable-objc-gc enable the use of Boehm's garbage collector with
1714 the GNU Objective-C runtime
1715 --disable-shared don't provide a shared libgcc
1716 --enable-intermodule build the compiler in one step
1717 --enable-languages=LIST specify which front-ends to build
1718 --disable-rpath do not hardcode runtime library paths
1719 --enable-initfini-array use .init_array/.fini_array sections
1720 --enable-sjlj-exceptions
1721 arrange to use setjmp/longjmp exception handling
1722 --enable-secureplt enable -msecure-plt by default for PowerPC
1723 --enable-cld enable -mcld by default for 32bit x86
1724 --disable-win32-registry
1725 disable lookup of installation paths in the
1726 Registry on Windows hosts
1727 --enable-win32-registry enable registry lookup (default)
1728 --enable-win32-registry=KEY
1729 use KEY instead of GCC version as the last portion
1731 --enable-shared[=PKGS] build shared libraries [default=yes]
1732 --enable-static[=PKGS] build static libraries [default=yes]
1733 --enable-fast-install[=PKGS]
1734 optimize for fast installation [default=yes]
1735 --disable-libtool-lock avoid locking (might break parallel builds)
1736 --enable-gnu-unique-object enable the use of the @gnu_unique_object ELF extension on
1738 --enable-linker-build-id
1739 compiler will always pass --build-id to linker
1740 --enable-maintainer-mode
1741 enable make rules and dependencies not useful
1742 (and sometimes confusing) to the casual installer
1743 --enable-version-specific-runtime-libs
1744 specify that runtime libraries should be
1745 installed in a compiler-specific directory
1746 --enable-plugin enable plugin support
1749 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1750 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1751 --with-build-libsubdir=DIR Directory where to find libraries for build system
1752 --with-local-prefix=DIR specifies directory to put local include
1753 --with-gxx-include-dir=DIR
1754 specifies directory to put g++ header files
1755 --with-cpp-install-dir=DIR
1756 install the user visible C preprocessor in DIR
1757 (relative to PREFIX) as well as PREFIX/bin
1758 --with-gnu-ld arrange to work with GNU ld.
1759 --with-ld arrange to use the specified ld (full pathname)
1760 --with-demangler-in-ld try to use demangler in GNU ld.
1761 --with-gnu-as arrange to work with GNU as
1762 --with-as arrange to use the specified as (full pathname)
1763 --with-stabs arrange to use stabs instead of host debug format
1764 --with-dwarf2 force the default debug format to be DWARF 2
1765 --with-build-sysroot=sysroot
1766 use sysroot as the system root during the build
1767 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1768 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1769 --with-bugurl=URL Direct users to URL to report a bug
1770 --with-multilib-list Select multilibs (SH only)
1771 --with-gnu-ld assume the C compiler uses GNU ld default=no
1772 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1773 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1774 --with-system-libunwind use installed libunwind
1775 --with-pic try to use only PIC/non-PIC objects [default=use
1777 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1778 --with-long-double-128 Use 128-bit long double by default.
1779 --with-gc={page,zone} choose the garbage collection mechanism to use
1781 --with-system-zlib use installed libz
1782 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
1784 Some influential environment variables:
1785 CC C compiler command
1786 CFLAGS C compiler flags
1787 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1788 nonstandard directory <lib dir>
1789 LIBS libraries to pass to the linker, e.g. -l<library>
1790 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1791 you have headers in a nonstandard directory <include dir>
1792 CXX C++ compiler command
1793 CXXFLAGS C++ compiler flags
1795 CXXCPP C++ preprocessor
1796 GMPLIBS How to link GMP
1797 GMPINC How to find GMP include files
1798 PPLLIBS How to link PPL
1799 PPLINC How to find PPL include files
1800 CLOOGLIBS How to link CLOOG
1801 CLOOGINC How to find CLOOG include files
1803 Use these variables to override the choices made by `configure' or to help
1804 it to find libraries and programs with nonstandard names/locations.
1806 Report bugs to the package provider.
1811 if test "$ac_init_help" = "recursive"; then
1812 # If there are subdirs, report their specific --help.
1813 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1814 test -d "$ac_dir" ||
1815 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1820 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1822 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1823 # A ".." for each directory in $ac_dir_suffix.
1824 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1825 case $ac_top_builddir_sub in
1826 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1827 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1830 ac_abs_top_builddir=$ac_pwd
1831 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1832 # for backward compatibility:
1833 ac_top_builddir=$ac_top_build_prefix
1836 .) # We are building in place.
1838 ac_top_srcdir=$ac_top_builddir_sub
1839 ac_abs_top_srcdir=$ac_pwd ;;
1840 [\\/]* | ?:[\\/]* ) # Absolute name.
1841 ac_srcdir=$srcdir$ac_dir_suffix;
1842 ac_top_srcdir=$srcdir
1843 ac_abs_top_srcdir=$srcdir ;;
1845 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1846 ac_top_srcdir=$ac_top_build_prefix$srcdir
1847 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1849 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1851 cd "$ac_dir" || { ac_status=$?; continue; }
1852 # Check for guested configure.
1853 if test -f "$ac_srcdir/configure.gnu"; then
1855 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1856 elif test -f "$ac_srcdir/configure"; then
1858 $SHELL "$ac_srcdir/configure" --help=recursive
1860 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1862 cd "$ac_pwd" || { ac_status=$?; break; }
1866 test -n "$ac_init_help" && exit $ac_status
1867 if $ac_init_version; then
1870 generated by GNU Autoconf 2.64
1872 Copyright (C) 2009 Free Software Foundation, Inc.
1873 This configure script is free software; the Free Software Foundation
1874 gives unlimited permission to copy, distribute and modify it.
1879 ## ------------------------ ##
1880 ## Autoconf initialization. ##
1881 ## ------------------------ ##
1883 # ac_fn_c_try_compile LINENO
1884 # --------------------------
1885 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1886 ac_fn_c_try_compile ()
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 rm -f conftest.$ac_objext
1890 if { { ac_try="$ac_compile"
1892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893 *) ac_try_echo=$ac_try;;
1895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896 $as_echo "$ac_try_echo"; } >&5
1897 (eval "$ac_compile") 2>conftest.err
1899 if test -s conftest.err; then
1900 grep -v '^ *+' conftest.err >conftest.er1
1901 cat conftest.er1 >&5
1902 mv -f conftest.er1 conftest.err
1904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905 test $ac_status = 0; } && {
1906 test -z "$ac_c_werror_flag" ||
1907 test ! -s conftest.err
1908 } && test -s conftest.$ac_objext; then :
1911 $as_echo "$as_me: failed program was:" >&5
1912 sed 's/^/| /' conftest.$ac_ext >&5
1916 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1919 } # ac_fn_c_try_compile
1921 # ac_fn_cxx_try_compile LINENO
1922 # ----------------------------
1923 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1924 ac_fn_cxx_try_compile ()
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 rm -f conftest.$ac_objext
1928 if { { ac_try="$ac_compile"
1930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1931 *) ac_try_echo=$ac_try;;
1933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1934 $as_echo "$ac_try_echo"; } >&5
1935 (eval "$ac_compile") 2>conftest.err
1937 if test -s conftest.err; then
1938 grep -v '^ *+' conftest.err >conftest.er1
1939 cat conftest.er1 >&5
1940 mv -f conftest.er1 conftest.err
1942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1943 test $ac_status = 0; } && {
1944 test -z "$ac_cxx_werror_flag" ||
1945 test ! -s conftest.err
1946 } && test -s conftest.$ac_objext; then :
1949 $as_echo "$as_me: failed program was:" >&5
1950 sed 's/^/| /' conftest.$ac_ext >&5
1954 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1957 } # ac_fn_cxx_try_compile
1959 # ac_fn_c_try_cpp LINENO
1960 # ----------------------
1961 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1964 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965 if { { ac_try="$ac_cpp conftest.$ac_ext"
1967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1968 *) ac_try_echo=$ac_try;;
1970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1971 $as_echo "$ac_try_echo"; } >&5
1972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1974 if test -s conftest.err; then
1975 grep -v '^ *+' conftest.err >conftest.er1
1976 cat conftest.er1 >&5
1977 mv -f conftest.er1 conftest.err
1979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1980 test $ac_status = 0; } >/dev/null && {
1981 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1982 test ! -s conftest.err
1986 $as_echo "$as_me: failed program was:" >&5
1987 sed 's/^/| /' conftest.$ac_ext >&5
1991 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1996 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1997 # -------------------------------------------------------
1998 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1999 # the include files in INCLUDES and setting the cache variable VAR
2001 ac_fn_c_check_header_mongrel ()
2003 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2004 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2006 $as_echo_n "checking for $2... " >&6; }
2007 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2008 $as_echo_n "(cached) " >&6
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2012 $as_echo "$ac_res" >&6; }
2014 # Is the header compilable?
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2016 $as_echo_n "checking $2 usability... " >&6; }
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2022 if ac_fn_c_try_compile "$LINENO"; then :
2023 ac_header_compiler=yes
2025 ac_header_compiler=no
2027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2029 $as_echo "$ac_header_compiler" >&6; }
2031 # Is the header present?
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2033 $as_echo_n "checking $2 presence... " >&6; }
2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h. */
2038 if ac_fn_c_try_cpp "$LINENO"; then :
2039 ac_header_preproc=yes
2041 ac_header_preproc=no
2043 rm -f conftest.err conftest.$ac_ext
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2045 $as_echo "$ac_header_preproc" >&6; }
2047 # So? What about this header?
2048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2051 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2053 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2057 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2059 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2061 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2063 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2065 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2069 $as_echo_n "checking for $2... " >&6; }
2070 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2071 $as_echo_n "(cached) " >&6
2073 eval "$3=\$ac_header_compiler"
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2077 $as_echo "$ac_res" >&6; }
2079 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2081 } # ac_fn_c_check_header_mongrel
2083 # ac_fn_c_try_run LINENO
2084 # ----------------------
2085 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2086 # that executables *can* be run.
2089 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2090 if { { ac_try="$ac_link"
2092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2093 *) ac_try_echo=$ac_try;;
2095 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2096 $as_echo "$ac_try_echo"; } >&5
2097 (eval "$ac_link") 2>&5
2099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2100 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2101 { { case "(($ac_try" in
2102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2103 *) ac_try_echo=$ac_try;;
2105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2106 $as_echo "$ac_try_echo"; } >&5
2107 (eval "$ac_try") 2>&5
2109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2110 test $ac_status = 0; }; }; then :
2113 $as_echo "$as_me: program exited with status $ac_status" >&5
2114 $as_echo "$as_me: failed program was:" >&5
2115 sed 's/^/| /' conftest.$ac_ext >&5
2117 ac_retval=$ac_status
2119 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2120 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2125 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2126 # -------------------------------------------------------
2127 # Tests whether HEADER exists and can be compiled using the include files in
2128 # INCLUDES, setting the cache variable VAR accordingly.
2129 ac_fn_c_check_header_compile ()
2131 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2133 $as_echo_n "checking for $2... " >&6; }
2134 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2135 $as_echo_n "(cached) " >&6
2137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138 /* end confdefs.h. */
2142 if ac_fn_c_try_compile "$LINENO"; then :
2147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2151 $as_echo "$ac_res" >&6; }
2152 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2154 } # ac_fn_c_check_header_compile
2156 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2157 # --------------------------------------------
2158 # Tries to find the compile-time value of EXPR in a program that includes
2159 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2161 ac_fn_c_compute_int ()
2163 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2164 if test "$cross_compiling" = yes; then
2165 # Depending upon the size, compute the lo and hi bounds.
2166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2167 /* end confdefs.h. */
2172 static int test_array [1 - 2 * !(($2) >= 0)];
2179 if ac_fn_c_try_compile "$LINENO"; then :
2182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h. */
2188 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2195 if ac_fn_c_try_compile "$LINENO"; then :
2196 ac_hi=$ac_mid; break
2198 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2199 if test $ac_lo -le $ac_mid; then
2203 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209 /* end confdefs.h. */
2214 static int test_array [1 - 2 * !(($2) < 0)];
2221 if ac_fn_c_try_compile "$LINENO"; then :
2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225 /* end confdefs.h. */
2230 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2237 if ac_fn_c_try_compile "$LINENO"; then :
2238 ac_lo=$ac_mid; break
2240 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2241 if test $ac_mid -le $ac_hi; then
2245 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2255 # Binary search between lo and hi bounds.
2256 while test "x$ac_lo" != "x$ac_hi"; do
2257 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2259 /* end confdefs.h. */
2264 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2271 if ac_fn_c_try_compile "$LINENO"; then :
2274 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2279 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2284 /* end confdefs.h. */
2286 static long int longval () { return $2; }
2287 static unsigned long int ulongval () { return $2; }
2294 FILE *f = fopen ("conftest.val", "w");
2299 long int i = longval ();
2302 fprintf (f, "%ld", i);
2306 unsigned long int i = ulongval ();
2309 fprintf (f, "%lu", i);
2311 /* Do not output a trailing newline, as this causes \r\n confusion
2312 on some platforms. */
2313 return ferror (f) || fclose (f) != 0;
2319 if ac_fn_c_try_run "$LINENO"; then :
2320 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2324 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2325 conftest.$ac_objext conftest.beam conftest.$ac_ext
2329 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2332 } # ac_fn_c_compute_int
2334 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2335 # -------------------------------------------
2336 # Tests whether TYPE exists after having included INCLUDES, setting cache
2337 # variable VAR accordingly.
2338 ac_fn_c_check_type ()
2340 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2342 $as_echo_n "checking for $2... " >&6; }
2343 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2344 $as_echo_n "(cached) " >&6
2347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2348 /* end confdefs.h. */
2359 if ac_fn_c_try_compile "$LINENO"; then :
2360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2361 /* end confdefs.h. */
2372 if ac_fn_c_try_compile "$LINENO"; then :
2377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2383 $as_echo "$ac_res" >&6; }
2384 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2386 } # ac_fn_c_check_type
2388 # ac_fn_c_find_intX_t LINENO BITS VAR
2389 # -----------------------------------
2390 # Finds a signed integer type with width BITS, setting cache variable VAR
2392 ac_fn_c_find_intX_t ()
2394 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2396 $as_echo_n "checking for int$2_t... " >&6; }
2397 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2398 $as_echo_n "(cached) " >&6
2401 for ac_type in int$2_t 'int' 'long int' \
2402 'long long int' 'short int' 'signed char'; do
2403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2404 /* end confdefs.h. */
2405 $ac_includes_default
2409 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2416 if ac_fn_c_try_compile "$LINENO"; then :
2417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2418 /* end confdefs.h. */
2419 $ac_includes_default
2423 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2424 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2431 if ac_fn_c_try_compile "$LINENO"; then :
2438 eval "$3=\$ac_type" ;;
2441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2445 if test "x$as_val" = x""no; then :
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2454 $as_echo "$ac_res" >&6; }
2455 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2457 } # ac_fn_c_find_intX_t
2459 # ac_fn_c_try_link LINENO
2460 # -----------------------
2461 # Try to link conftest.$ac_ext, and return whether this succeeded.
2464 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2465 rm -f conftest.$ac_objext conftest$ac_exeext
2466 if { { ac_try="$ac_link"
2468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2469 *) ac_try_echo=$ac_try;;
2471 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2472 $as_echo "$ac_try_echo"; } >&5
2473 (eval "$ac_link") 2>conftest.err
2475 if test -s conftest.err; then
2476 grep -v '^ *+' conftest.err >conftest.er1
2477 cat conftest.er1 >&5
2478 mv -f conftest.er1 conftest.err
2480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2481 test $ac_status = 0; } && {
2482 test -z "$ac_c_werror_flag" ||
2483 test ! -s conftest.err
2484 } && test -s conftest$ac_exeext && {
2485 test "$cross_compiling" = yes ||
2486 $as_test_x conftest$ac_exeext
2490 $as_echo "$as_me: failed program was:" >&5
2491 sed 's/^/| /' conftest.$ac_ext >&5
2495 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2496 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2497 # interfere with the next link command; also delete a directory that is
2498 # left behind by Apple's compiler. We do this before executing the actions.
2499 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2500 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2503 } # ac_fn_c_try_link
2505 # ac_fn_c_find_uintX_t LINENO BITS VAR
2506 # ------------------------------------
2507 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2509 ac_fn_c_find_uintX_t ()
2511 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2513 $as_echo_n "checking for uint$2_t... " >&6; }
2514 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2515 $as_echo_n "(cached) " >&6
2518 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2519 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2521 /* end confdefs.h. */
2522 $ac_includes_default
2526 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2533 if ac_fn_c_try_compile "$LINENO"; then :
2538 eval "$3=\$ac_type" ;;
2541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2543 if test "x$as_val" = x""no; then :
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2552 $as_echo "$ac_res" >&6; }
2553 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2555 } # ac_fn_c_find_uintX_t
2557 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2558 # ----------------------------------------------
2559 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2560 ac_fn_c_check_header_preproc ()
2562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2564 $as_echo_n "checking for $2... " >&6; }
2565 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2566 $as_echo_n "(cached) " >&6
2568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2569 /* end confdefs.h. */
2572 if ac_fn_c_try_cpp "$LINENO"; then :
2577 rm -f conftest.err conftest.$ac_ext
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2581 $as_echo "$ac_res" >&6; }
2582 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2584 } # ac_fn_c_check_header_preproc
2586 # ac_fn_c_check_func LINENO FUNC VAR
2587 # ----------------------------------
2588 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2589 ac_fn_c_check_func ()
2591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2593 $as_echo_n "checking for $2... " >&6; }
2594 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2595 $as_echo_n "(cached) " >&6
2597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2598 /* end confdefs.h. */
2599 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2601 #define $2 innocuous_$2
2603 /* System header to define __stub macros and hopefully few prototypes,
2604 which can conflict with char $2 (); below.
2605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2606 <limits.h> exists even on freestanding compilers. */
2609 # include <limits.h>
2611 # include <assert.h>
2616 /* Override any GCC internal prototype to avoid an error.
2617 Use char because int might match the return type of a GCC
2618 builtin and then its argument prototype would still apply. */
2623 /* The GNU C library defines this for functions which it implements
2624 to always fail with ENOSYS. Some functions are actually named
2625 something starting with __ and the normal name is an alias. */
2626 #if defined __stub_$2 || defined __stub___$2
2638 if ac_fn_c_try_link "$LINENO"; then :
2643 rm -f core conftest.err conftest.$ac_objext \
2644 conftest$ac_exeext conftest.$ac_ext
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2648 $as_echo "$ac_res" >&6; }
2649 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2651 } # ac_fn_c_check_func
2653 # ac_fn_cxx_try_cpp LINENO
2654 # ------------------------
2655 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2656 ac_fn_cxx_try_cpp ()
2658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2659 if { { ac_try="$ac_cpp conftest.$ac_ext"
2661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2662 *) ac_try_echo=$ac_try;;
2664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2665 $as_echo "$ac_try_echo"; } >&5
2666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2668 if test -s conftest.err; then
2669 grep -v '^ *+' conftest.err >conftest.er1
2670 cat conftest.er1 >&5
2671 mv -f conftest.er1 conftest.err
2673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2674 test $ac_status = 0; } >/dev/null && {
2675 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2676 test ! -s conftest.err
2680 $as_echo "$as_me: failed program was:" >&5
2681 sed 's/^/| /' conftest.$ac_ext >&5
2685 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2688 } # ac_fn_cxx_try_cpp
2690 # ac_fn_cxx_try_link LINENO
2691 # -------------------------
2692 # Try to link conftest.$ac_ext, and return whether this succeeded.
2693 ac_fn_cxx_try_link ()
2695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2696 rm -f conftest.$ac_objext conftest$ac_exeext
2697 if { { ac_try="$ac_link"
2699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2700 *) ac_try_echo=$ac_try;;
2702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2703 $as_echo "$ac_try_echo"; } >&5
2704 (eval "$ac_link") 2>conftest.err
2706 if test -s conftest.err; then
2707 grep -v '^ *+' conftest.err >conftest.er1
2708 cat conftest.er1 >&5
2709 mv -f conftest.er1 conftest.err
2711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2712 test $ac_status = 0; } && {
2713 test -z "$ac_cxx_werror_flag" ||
2714 test ! -s conftest.err
2715 } && test -s conftest$ac_exeext && {
2716 test "$cross_compiling" = yes ||
2717 $as_test_x conftest$ac_exeext
2721 $as_echo "$as_me: failed program was:" >&5
2722 sed 's/^/| /' conftest.$ac_ext >&5
2726 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2727 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2728 # interfere with the next link command; also delete a directory that is
2729 # left behind by Apple's compiler. We do this before executing the actions.
2730 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2731 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2734 } # ac_fn_cxx_try_link
2735 cat >config.log <<_ACEOF
2736 This file contains any messages produced by compilers while
2737 running configure, to aid debugging if configure makes a mistake.
2739 It was created by $as_me, which was
2740 generated by GNU Autoconf 2.64. Invocation command line was
2752 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2753 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2754 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2755 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2756 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2758 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2759 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2761 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2762 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2763 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2764 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2765 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2766 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2767 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775 test -z "$as_dir" && as_dir=.
2776 $as_echo "PATH: $as_dir"
2792 # Keep a trace of the command line.
2793 # Strip out --no-create and --no-recursion so they do not pile up.
2794 # Strip out --silent because we don't want to record it for future runs.
2795 # Also quote any args containing shell meta-characters.
2796 # Make two passes to allow for proper duplicate-argument suppression.
2800 ac_must_keep_next=false
2806 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2807 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2808 | -silent | --silent | --silen | --sile | --sil)
2811 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2814 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2816 as_fn_append ac_configure_args1 " '$ac_arg'"
2817 if test $ac_must_keep_next = true; then
2818 ac_must_keep_next=false # Got value, back to normal.
2821 *=* | --config-cache | -C | -disable-* | --disable-* \
2822 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2823 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2824 | -with-* | --with-* | -without-* | --without-* | --x)
2825 case "$ac_configure_args0 " in
2826 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2829 -* ) ac_must_keep_next=true ;;
2832 as_fn_append ac_configure_args " '$ac_arg'"
2837 { ac_configure_args0=; unset ac_configure_args0;}
2838 { ac_configure_args1=; unset ac_configure_args1;}
2840 # When interrupted or exit'd, cleanup temporary files, and complete
2841 # config.log. We remove comments because anyway the quotes in there
2842 # would cause problems or look ugly.
2843 # WARNING: Use '\'' to represent an apostrophe within the trap.
2844 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2845 trap 'exit_status=$?
2846 # Save into config.log some information that might help in debugging.
2851 ## ---------------- ##
2852 ## Cache variables. ##
2853 ## ---------------- ##
2856 # The following way of writing the cache mishandles newlines in values,
2858 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2859 eval ac_val=\$$ac_var
2863 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2864 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2867 _ | IFS | as_nl) ;; #(
2868 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2869 *) { eval $ac_var=; unset $ac_var;} ;;
2874 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2875 *${as_nl}ac_space=\ *)
2877 "s/'\''/'\''\\\\'\'''\''/g;
2878 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2881 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2889 ## ----------------- ##
2890 ## Output variables. ##
2891 ## ----------------- ##
2894 for ac_var in $ac_subst_vars
2896 eval ac_val=\$$ac_var
2898 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2900 $as_echo "$ac_var='\''$ac_val'\''"
2904 if test -n "$ac_subst_files"; then
2906 ## ------------------- ##
2907 ## File substitutions. ##
2908 ## ------------------- ##
2911 for ac_var in $ac_subst_files
2913 eval ac_val=\$$ac_var
2915 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2917 $as_echo "$ac_var='\''$ac_val'\''"
2922 if test -s confdefs.h; then
2932 test "$ac_signal" != 0 &&
2933 $as_echo "$as_me: caught signal $ac_signal"
2934 $as_echo "$as_me: exit $exit_status"
2936 rm -f core *.core core.conftest.* &&
2937 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2940 for ac_signal in 1 2 13 15; do
2941 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2945 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2946 rm -f -r conftest* confdefs.h
2948 $as_echo "/* confdefs.h */" > confdefs.h
2950 # Predefined preprocessor variables.
2952 cat >>confdefs.h <<_ACEOF
2953 #define PACKAGE_NAME "$PACKAGE_NAME"
2956 cat >>confdefs.h <<_ACEOF
2957 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2960 cat >>confdefs.h <<_ACEOF
2961 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2964 cat >>confdefs.h <<_ACEOF
2965 #define PACKAGE_STRING "$PACKAGE_STRING"
2968 cat >>confdefs.h <<_ACEOF
2969 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2972 cat >>confdefs.h <<_ACEOF
2973 #define PACKAGE_URL "$PACKAGE_URL"
2977 # Let the site file select an alternate cache file if it wants to.
2978 # Prefer an explicitly selected file to automatically selected ones.
2981 if test -n "$CONFIG_SITE"; then
2982 ac_site_file1=$CONFIG_SITE
2983 elif test "x$prefix" != xNONE; then
2984 ac_site_file1=$prefix/share/config.site
2985 ac_site_file2=$prefix/etc/config.site
2987 ac_site_file1=$ac_default_prefix/share/config.site
2988 ac_site_file2=$ac_default_prefix/etc/config.site
2990 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2992 test "x$ac_site_file" = xNONE && continue
2993 if test -r "$ac_site_file"; then
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2995 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2996 sed 's/^/| /' "$ac_site_file" >&5
3001 if test -r "$cache_file"; then
3002 # Some versions of bash will fail to source /dev/null (special
3003 # files actually), so we avoid doing that.
3004 if test -f "$cache_file"; then
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3006 $as_echo "$as_me: loading cache $cache_file" >&6;}
3008 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3009 *) . "./$cache_file";;
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3014 $as_echo "$as_me: creating cache $cache_file" >&6;}
3018 # Check that the precious variables saved in the cache have kept the same
3020 ac_cache_corrupted=false
3021 for ac_var in $ac_precious_vars; do
3022 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3023 eval ac_new_set=\$ac_env_${ac_var}_set
3024 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3025 eval ac_new_val=\$ac_env_${ac_var}_value
3026 case $ac_old_set,$ac_new_set in
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3029 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3030 ac_cache_corrupted=: ;;
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3033 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3034 ac_cache_corrupted=: ;;
3037 if test "x$ac_old_val" != "x$ac_new_val"; then
3038 # differences in whitespace do not lead to failure.
3039 ac_old_val_w=`echo x $ac_old_val`
3040 ac_new_val_w=`echo x $ac_new_val`
3041 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3043 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3044 ac_cache_corrupted=:
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3047 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3048 eval $ac_var=\$ac_old_val
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3051 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3053 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3056 # Pass precious variables to config.status.
3057 if test "$ac_new_set" = set; then
3059 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3060 *) ac_arg=$ac_var=$ac_new_val ;;
3062 case " $ac_configure_args " in
3063 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3064 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3068 if $ac_cache_corrupted; then
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3072 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3073 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3075 ## -------------------- ##
3076 ## Main body of script. ##
3077 ## -------------------- ##
3080 ac_cpp='$CPP $CPPFLAGS'
3081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3090 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3093 gcc_version=`cat $srcdir/BASE-VER`
3095 # Determine the host, build, and target systems
3097 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3098 for ac_t in install-sh install.sh shtool; do
3099 if test -f "$ac_dir/$ac_t"; then
3101 ac_install_sh="$ac_aux_dir/$ac_t -c"
3106 if test -z "$ac_aux_dir"; then
3107 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3110 # These three variables are undocumented and unsupported,
3111 # and are intended to be withdrawn in a future Autoconf release.
3112 # They can cause serious problems if a builder's source tree is in a directory
3113 # whose full name contains unusual characters.
3114 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3115 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3116 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3119 # Make sure we can run config.sub.
3120 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3121 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3124 $as_echo_n "checking build system type... " >&6; }
3125 if test "${ac_cv_build+set}" = set; then :
3126 $as_echo_n "(cached) " >&6
3128 ac_build_alias=$build_alias
3129 test "x$ac_build_alias" = x &&
3130 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3131 test "x$ac_build_alias" = x &&
3132 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3133 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3134 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3138 $as_echo "$ac_cv_build" >&6; }
3139 case $ac_cv_build in
3141 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3144 ac_save_IFS=$IFS; IFS='-'
3150 # Remember, the first character of IFS is used to create $*,
3151 # except with old shells:
3154 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3158 $as_echo_n "checking host system type... " >&6; }
3159 if test "${ac_cv_host+set}" = set; then :
3160 $as_echo_n "(cached) " >&6
3162 if test "x$host_alias" = x; then
3163 ac_cv_host=$ac_cv_build
3165 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3166 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3171 $as_echo "$ac_cv_host" >&6; }
3174 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3177 ac_save_IFS=$IFS; IFS='-'
3183 # Remember, the first character of IFS is used to create $*,
3184 # except with old shells:
3187 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3191 $as_echo_n "checking target system type... " >&6; }
3192 if test "${ac_cv_target+set}" = set; then :
3193 $as_echo_n "(cached) " >&6
3195 if test "x$target_alias" = x; then
3196 ac_cv_target=$ac_cv_host
3198 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3199 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3204 $as_echo "$ac_cv_target" >&6; }
3205 case $ac_cv_target in
3207 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3209 target=$ac_cv_target
3210 ac_save_IFS=$IFS; IFS='-'
3216 # Remember, the first character of IFS is used to create $*,
3217 # except with old shells:
3220 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3223 # The aliases save the names the user supplied, while $host etc.
3224 # will get canonicalized.
3225 test -n "$target_alias" &&
3226 test "$program_prefix$program_suffix$program_transform_name" = \
3228 program_prefix=${target_alias}-
3230 # Determine the noncanonical target name, for directory use.
3231 case ${build_alias} in
3232 "") build_noncanonical=${build} ;;
3233 *) build_noncanonical=${build_alias} ;;
3236 case ${host_alias} in
3237 "") host_noncanonical=${build_noncanonical} ;;
3238 *) host_noncanonical=${host_alias} ;;
3241 case ${target_alias} in
3242 "") target_noncanonical=${host_noncanonical} ;;
3243 *) target_noncanonical=${target_alias} ;;
3249 # Determine the target- and build-specific subdirectories
3251 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3252 # have matching libraries, they should use host libraries: Makefile.tpl
3253 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3254 # However, they still use the build modules, because the corresponding
3255 # host modules (e.g. bison) are only built for the host when bootstrap
3257 # - build_subdir is where we find build modules, and never changes.
3258 # - build_libsubdir is where we find build libraries, and can be overridden.
3260 # Prefix 'build-' so this never conflicts with target_subdir.
3261 build_subdir="build-${build_noncanonical}"
3263 # Check whether --with-build-libsubdir was given.
3264 if test "${with_build_libsubdir+set}" = set; then :
3265 withval=$with_build_libsubdir; build_libsubdir="$withval"
3267 build_libsubdir="$build_subdir"
3270 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3271 if ( test $srcdir = . && test -d gcc ) \
3272 || test -d $srcdir/../host-${host_noncanonical}; then
3273 host_subdir="host-${host_noncanonical}"
3278 target_subdir=${target_noncanonical}
3281 # Set program_transform_name
3282 test "$program_prefix" != NONE &&
3283 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3284 # Use a double $ so make ignores it.
3285 test "$program_suffix" != NONE &&
3286 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3287 # Double any \ or $.
3288 # By default was `s,x,x', remove it if useless.
3289 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3290 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3293 # Check for bogus environment variables.
3294 # Test if LIBRARY_PATH contains the notation for the current directory
3295 # since this would lead to problems installing/building glibc.
3296 # LIBRARY_PATH contains the current directory if one of the following
3298 # - one of the terminals (":" and ";") is the first or last sign
3299 # - two terminals occur directly after each other
3300 # - the path contains an element with a dot in it
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3302 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3303 case ${LIBRARY_PATH} in
3304 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3305 library_path_setting="contains current directory"
3308 library_path_setting="ok"
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3312 $as_echo "$library_path_setting" >&6; }
3313 if test "$library_path_setting" != "ok"; then
3315 *** LIBRARY_PATH shouldn't contain the current directory when
3316 *** building gcc. Please change the environment variable
3317 *** and run configure again." "$LINENO" 5
3320 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3321 # since this would lead to problems installing/building glibc.
3322 # GCC_EXEC_PREFIX contains the current directory if one of the following
3324 # - one of the terminals (":" and ";") is the first or last sign
3325 # - two terminals occur directly after each other
3326 # - the path contains an element with a dot in it
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3328 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3329 case ${GCC_EXEC_PREFIX} in
3330 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3331 gcc_exec_prefix_setting="contains current directory"
3334 gcc_exec_prefix_setting="ok"
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3338 $as_echo "$gcc_exec_prefix_setting" >&6; }
3339 if test "$gcc_exec_prefix_setting" != "ok"; then
3341 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3342 *** building gcc. Please change the environment variable
3343 *** and run configure again." "$LINENO" 5
3350 # Specify the local prefix
3353 # Check whether --with-local-prefix was given.
3354 if test "${with_local_prefix+set}" = set; then :
3355 withval=$with_local_prefix; case "${withval}" in
3356 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3358 *) local_prefix=$with_local_prefix ;;
3363 # Default local prefix if it is empty
3364 if test x$local_prefix = x; then
3365 local_prefix=/usr/local
3368 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3369 # passed in by the toplevel make and thus we'd get different behavior
3370 # depending on where we built the sources.
3371 gcc_gxx_include_dir=
3372 # Specify the g++ header file directory
3374 # Check whether --with-gxx-include-dir was given.
3375 if test "${with_gxx_include_dir+set}" = set; then :
3376 withval=$with_gxx_include_dir; case "${withval}" in
3377 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3379 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3384 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3385 if test x${gcc_gxx_include_dir} = x; then
3386 if test x${enable_version_specific_runtime_libs} = xyes; then
3387 gcc_gxx_include_dir='${libsubdir}/include/c++'
3389 libstdcxx_incdir='include/c++/$(version)'
3390 if test x$host != x$target; then
3391 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3393 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3398 # Check whether --with-cpp_install_dir was given.
3399 if test "${with_cpp_install_dir+set}" = set; then :
3400 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3401 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3402 elif test x$withval != xno; then
3403 cpp_install_dir=$withval
3408 # We would like to our source tree to be readonly. However when releases or
3409 # pre-releases are generated, the flex/bison generated files as well as the
3410 # various formats of manuals need to be included along with the rest of the
3411 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3415 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3416 # Check whether --enable-generated-files-in-srcdir was given.
3417 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3418 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3420 generated_files_in_srcdir=no
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3425 $as_echo "$generated_files_in_srcdir" >&6; }
3427 if test "$generated_files_in_srcdir" = "yes"; then
3434 # -------------------
3435 # Find default linker
3436 # -------------------
3440 # Check whether --with-gnu-ld was given.
3441 if test "${with_gnu_ld+set}" = set; then :
3442 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3448 # With pre-defined ld
3450 # Check whether --with-ld was given.
3451 if test "${with_ld+set}" = set; then :
3452 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3455 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3456 if test ! -x "$DEFAULT_LINKER"; then
3457 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3458 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3462 cat >>confdefs.h <<_ACEOF
3463 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3468 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3470 cat >>confdefs.h <<_ACEOF
3471 #define HAVE_GNU_LD $gnu_ld
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3476 $as_echo_n "checking whether a default linker was specified... " >&6; }
3477 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3478 if test x"$gnu_ld_flag" = x"no"; then
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3480 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3483 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3487 $as_echo "no" >&6; }
3490 # With demangler in GNU ld
3492 # Check whether --with-demangler-in-ld was given.
3493 if test "${with_demangler_in_ld+set}" = set; then :
3494 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3500 # ----------------------
3501 # Find default assembler
3502 # ----------------------
3506 # Check whether --with-gnu-as was given.
3507 if test "${with_gnu_as+set}" = set; then :
3508 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3515 # Check whether --with-as was given.
3516 if test "${with_as+set}" = set; then :
3517 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3520 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3521 if test ! -x "$DEFAULT_ASSEMBLER"; then
3522 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3523 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3527 cat >>confdefs.h <<_ACEOF
3528 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3533 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3535 cat >>confdefs.h <<_ACEOF
3536 #define HAVE_GNU_AS $gnu_as
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3541 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3542 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3543 if test x"$gas_flag" = x"no"; then
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3545 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3548 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3552 $as_echo "no" >&6; }
3559 # If a non-executable a.out is present (e.g. created by GNU as above even if
3560 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3561 # file, even when creating an executable, so an execution test fails.
3562 # Remove possible default executable files to avoid this.
3564 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3565 # Autoconf includes it.
3566 rm -f a.out a.exe b.out
3568 # Find the native compiler
3570 ac_cpp='$CPP $CPPFLAGS'
3571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3574 if test -n "$ac_tool_prefix"; then
3575 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3576 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3578 $as_echo_n "checking for $ac_word... " >&6; }
3579 if test "${ac_cv_prog_CC+set}" = set; then :
3580 $as_echo_n "(cached) " >&6
3582 if test -n "$CC"; then
3583 ac_cv_prog_CC="$CC" # Let the user override the test.
3585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3589 test -z "$as_dir" && as_dir=.
3590 for ac_exec_ext in '' $ac_executable_extensions; do
3591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3592 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3603 if test -n "$CC"; then
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3605 $as_echo "$CC" >&6; }
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3608 $as_echo "no" >&6; }
3613 if test -z "$ac_cv_prog_CC"; then
3615 # Extract the first word of "gcc", so it can be a program name with args.
3616 set dummy gcc; ac_word=$2
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3618 $as_echo_n "checking for $ac_word... " >&6; }
3619 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3620 $as_echo_n "(cached) " >&6
3622 if test -n "$ac_ct_CC"; then
3623 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3629 test -z "$as_dir" && as_dir=.
3630 for ac_exec_ext in '' $ac_executable_extensions; do
3631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3632 ac_cv_prog_ac_ct_CC="gcc"
3633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3642 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3643 if test -n "$ac_ct_CC"; then
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3645 $as_echo "$ac_ct_CC" >&6; }
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3648 $as_echo "no" >&6; }
3651 if test "x$ac_ct_CC" = x; then
3654 case $cross_compiling:$ac_tool_warned in
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3658 ac_tool_warned=yes ;;
3666 if test -z "$CC"; then
3667 if test -n "$ac_tool_prefix"; then
3668 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3669 set dummy ${ac_tool_prefix}cc; ac_word=$2
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3671 $as_echo_n "checking for $ac_word... " >&6; }
3672 if test "${ac_cv_prog_CC+set}" = set; then :
3673 $as_echo_n "(cached) " >&6
3675 if test -n "$CC"; then
3676 ac_cv_prog_CC="$CC" # Let the user override the test.
3678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3682 test -z "$as_dir" && as_dir=.
3683 for ac_exec_ext in '' $ac_executable_extensions; do
3684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3685 ac_cv_prog_CC="${ac_tool_prefix}cc"
3686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3696 if test -n "$CC"; then
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3698 $as_echo "$CC" >&6; }
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3701 $as_echo "no" >&6; }
3707 if test -z "$CC"; then
3708 # Extract the first word of "cc", so it can be a program name with args.
3709 set dummy cc; ac_word=$2
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3711 $as_echo_n "checking for $ac_word... " >&6; }
3712 if test "${ac_cv_prog_CC+set}" = set; then :
3713 $as_echo_n "(cached) " >&6
3715 if test -n "$CC"; then
3716 ac_cv_prog_CC="$CC" # Let the user override the test.
3719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3723 test -z "$as_dir" && as_dir=.
3724 for ac_exec_ext in '' $ac_executable_extensions; do
3725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3726 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3727 ac_prog_rejected=yes
3731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3738 if test $ac_prog_rejected = yes; then
3739 # We found a bogon in the path, so make sure we never use it.
3740 set dummy $ac_cv_prog_CC
3742 if test $# != 0; then
3743 # We chose a different compiler from the bogus one.
3744 # However, it has the same basename, so the bogon will be chosen
3745 # first if we set CC to just the basename; use the full file name.
3747 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3753 if test -n "$CC"; then
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3755 $as_echo "$CC" >&6; }
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3758 $as_echo "no" >&6; }
3763 if test -z "$CC"; then
3764 if test -n "$ac_tool_prefix"; then
3765 for ac_prog in cl.exe
3767 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3768 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3770 $as_echo_n "checking for $ac_word... " >&6; }
3771 if test "${ac_cv_prog_CC+set}" = set; then :
3772 $as_echo_n "(cached) " >&6
3774 if test -n "$CC"; then
3775 ac_cv_prog_CC="$CC" # Let the user override the test.
3777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3781 test -z "$as_dir" && as_dir=.
3782 for ac_exec_ext in '' $ac_executable_extensions; do
3783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3784 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3795 if test -n "$CC"; then
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3797 $as_echo "$CC" >&6; }
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3800 $as_echo "no" >&6; }
3804 test -n "$CC" && break
3807 if test -z "$CC"; then
3809 for ac_prog in cl.exe
3811 # Extract the first word of "$ac_prog", so it can be a program name with args.
3812 set dummy $ac_prog; ac_word=$2
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3814 $as_echo_n "checking for $ac_word... " >&6; }
3815 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3816 $as_echo_n "(cached) " >&6
3818 if test -n "$ac_ct_CC"; then
3819 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3825 test -z "$as_dir" && as_dir=.
3826 for ac_exec_ext in '' $ac_executable_extensions; do
3827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3828 ac_cv_prog_ac_ct_CC="$ac_prog"
3829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3838 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3839 if test -n "$ac_ct_CC"; then
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3841 $as_echo "$ac_ct_CC" >&6; }
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3844 $as_echo "no" >&6; }
3848 test -n "$ac_ct_CC" && break
3851 if test "x$ac_ct_CC" = x; then
3854 case $cross_compiling:$ac_tool_warned in
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3857 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3858 ac_tool_warned=yes ;;
3867 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3868 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3869 as_fn_error "no acceptable C compiler found in \$PATH
3870 See \`config.log' for more details." "$LINENO" 5; }
3872 # Provide some information about the compiler.
3873 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3876 for ac_option in --version -v -V -qversion; do
3877 { { ac_try="$ac_compiler $ac_option >&5"
3879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3883 $as_echo "$ac_try_echo"; } >&5
3884 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3886 if test -s conftest.err; then
3888 ... rest of stderr output deleted ...
3889 10q' conftest.err >conftest.er1
3890 cat conftest.er1 >&5
3891 rm -f conftest.er1 conftest.err
3893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3894 test $ac_status = 0; }
3897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3898 /* end confdefs.h. */
3908 ac_clean_files_save=$ac_clean_files
3909 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3910 # Try to create an executable without -o first, disregard a.out.
3911 # It will help us diagnose broken compilers, and finding out an intuition
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3914 $as_echo_n "checking for C compiler default output file name... " >&6; }
3915 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3917 # The possible output files:
3918 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3921 for ac_file in $ac_files
3924 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3925 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3930 if { { ac_try="$ac_link_default"
3932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3933 *) ac_try_echo=$ac_try;;
3935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3936 $as_echo "$ac_try_echo"; } >&5
3937 (eval "$ac_link_default") 2>&5
3939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3940 test $ac_status = 0; }; then :
3941 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3942 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3943 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3944 # so that the user can short-circuit this test for compilers unknown to
3946 for ac_file in $ac_files ''
3948 test -f "$ac_file" || continue
3950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3953 # We found the default executable, but exeext='' is most
3957 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3959 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3961 # We set ac_cv_exeext here because the later test for it is not
3962 # safe: cross compilers may not add the suffix if given an `-o'
3963 # argument, so we may need to know it at that point already.
3964 # Even if this section looks crufty: it has the advantage of
3971 test "$ac_cv_exeext" = no && ac_cv_exeext=
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3977 $as_echo "$ac_file" >&6; }
3978 if test -z "$ac_file"; then :
3979 $as_echo "$as_me: failed program was:" >&5
3980 sed 's/^/| /' conftest.$ac_ext >&5
3982 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3984 { as_fn_set_status 77
3985 as_fn_error "C compiler cannot create executables
3986 See \`config.log' for more details." "$LINENO" 5; }; }
3988 ac_exeext=$ac_cv_exeext
3990 # Check that the compiler produces executables we can run. If not, either
3991 # the compiler is broken, or we cross compile.
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3993 $as_echo_n "checking whether the C compiler works... " >&6; }
3994 # If not cross compiling, check that we can run a simple program.
3995 if test "$cross_compiling" != yes; then
3996 if { ac_try='./$ac_file'
3997 { { case "(($ac_try" in
3998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3999 *) ac_try_echo=$ac_try;;
4001 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4002 $as_echo "$ac_try_echo"; } >&5
4003 (eval "$ac_try") 2>&5
4005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4006 test $ac_status = 0; }; }; then
4009 if test "$cross_compiling" = maybe; then
4012 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4013 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4014 as_fn_error "cannot run C compiled programs.
4015 If you meant to cross compile, use \`--host'.
4016 See \`config.log' for more details." "$LINENO" 5; }
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4021 $as_echo "yes" >&6; }
4023 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4024 ac_clean_files=$ac_clean_files_save
4025 # Check that the compiler produces executables we can run. If not, either
4026 # the compiler is broken, or we cross compile.
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4028 $as_echo_n "checking whether we are cross compiling... " >&6; }
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4030 $as_echo "$cross_compiling" >&6; }
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4033 $as_echo_n "checking for suffix of executables... " >&6; }
4034 if { { ac_try="$ac_link"
4036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037 *) ac_try_echo=$ac_try;;
4039 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4040 $as_echo "$ac_try_echo"; } >&5
4041 (eval "$ac_link") 2>&5
4043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4044 test $ac_status = 0; }; then :
4045 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4046 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4047 # work properly (i.e., refer to `conftest.exe'), while it won't with
4049 for ac_file in conftest.exe conftest conftest.*; do
4050 test -f "$ac_file" || continue
4052 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4053 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4060 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4061 as_fn_error "cannot compute suffix of executables: cannot compile and link
4062 See \`config.log' for more details." "$LINENO" 5; }
4064 rm -f conftest$ac_cv_exeext
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4066 $as_echo "$ac_cv_exeext" >&6; }
4068 rm -f conftest.$ac_ext
4069 EXEEXT=$ac_cv_exeext
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4072 $as_echo_n "checking for suffix of object files... " >&6; }
4073 if test "${ac_cv_objext+set}" = set; then :
4074 $as_echo_n "(cached) " >&6
4076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077 /* end confdefs.h. */
4087 rm -f conftest.o conftest.obj
4088 if { { ac_try="$ac_compile"
4090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091 *) ac_try_echo=$ac_try;;
4093 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4094 $as_echo "$ac_try_echo"; } >&5
4095 (eval "$ac_compile") 2>&5
4097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4098 test $ac_status = 0; }; then :
4099 for ac_file in conftest.o conftest.obj conftest.*; do
4100 test -f "$ac_file" || continue;
4102 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4103 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4108 $as_echo "$as_me: failed program was:" >&5
4109 sed 's/^/| /' conftest.$ac_ext >&5
4111 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4112 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4113 as_fn_error "cannot compute suffix of object files: cannot compile
4114 See \`config.log' for more details." "$LINENO" 5; }
4116 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4119 $as_echo "$ac_cv_objext" >&6; }
4120 OBJEXT=$ac_cv_objext
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4123 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4124 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4125 $as_echo_n "(cached) " >&6
4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h. */
4141 if ac_fn_c_try_compile "$LINENO"; then :
4146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4147 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4151 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4152 if test $ac_compiler_gnu = yes; then
4157 ac_test_CFLAGS=${CFLAGS+set}
4158 ac_save_CFLAGS=$CFLAGS
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4160 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4161 if test "${ac_cv_prog_cc_g+set}" = set; then :
4162 $as_echo_n "(cached) " >&6
4164 ac_save_c_werror_flag=$ac_c_werror_flag
4165 ac_c_werror_flag=yes
4168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4169 /* end confdefs.h. */
4179 if ac_fn_c_try_compile "$LINENO"; then :
4183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184 /* end confdefs.h. */
4194 if ac_fn_c_try_compile "$LINENO"; then :
4197 ac_c_werror_flag=$ac_save_c_werror_flag
4199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200 /* end confdefs.h. */
4210 if ac_fn_c_try_compile "$LINENO"; then :
4213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4218 ac_c_werror_flag=$ac_save_c_werror_flag
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4221 $as_echo "$ac_cv_prog_cc_g" >&6; }
4222 if test "$ac_test_CFLAGS" = set; then
4223 CFLAGS=$ac_save_CFLAGS
4224 elif test $ac_cv_prog_cc_g = yes; then
4225 if test "$GCC" = yes; then
4231 if test "$GCC" = yes; then
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4238 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4239 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4240 $as_echo_n "(cached) " >&6
4242 ac_cv_prog_cc_c89=no
4244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4245 /* end confdefs.h. */
4248 #include <sys/types.h>
4249 #include <sys/stat.h>
4250 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4251 struct buf { int x; };
4252 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4253 static char *e (p, i)
4259 static char *f (char * (*g) (char **, int), char **p, ...)
4264 s = g (p, va_arg (v,int));
4269 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4270 function prototypes and stuff, but not '\xHH' hex character constants.
4271 These don't provoke an error unfortunately, instead are silently treated
4272 as 'x'. The following induces an error, until -std is added to get
4273 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4274 array size at least. It's necessary to write '\x00'==0 to get something
4275 that's true only with -std. */
4276 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4278 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4279 inside strings and character constants. */
4281 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4283 int test (int i, double x);
4284 struct s1 {int (*f) (int a);};
4285 struct s2 {int (*f) (double a);};
4286 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4292 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4297 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4298 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4300 CC="$ac_save_CC $ac_arg"
4301 if ac_fn_c_try_compile "$LINENO"; then :
4302 ac_cv_prog_cc_c89=$ac_arg
4304 rm -f core conftest.err conftest.$ac_objext
4305 test "x$ac_cv_prog_cc_c89" != "xno" && break
4307 rm -f conftest.$ac_ext
4312 case "x$ac_cv_prog_cc_c89" in
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4315 $as_echo "none needed" >&6; } ;;
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4318 $as_echo "unsupported" >&6; } ;;
4320 CC="$CC $ac_cv_prog_cc_c89"
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4322 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4324 if test "x$ac_cv_prog_cc_c89" != xno; then :
4329 ac_cpp='$CPP $CPPFLAGS'
4330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4334 if test "x$CC" != xcc; then
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4336 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4339 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4341 set dummy $CC; ac_cc=`$as_echo "$2" |
4342 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4343 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4344 $as_echo_n "(cached) " >&6
4346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4347 /* end confdefs.h. */
4357 # Make sure it works both with $CC and with simple cc.
4358 # We do the test twice because some compilers refuse to overwrite an
4359 # existing .o file with -o, though they will create one.
4360 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4362 if { { case "(($ac_try" in
4363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4364 *) ac_try_echo=$ac_try;;
4366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4367 $as_echo "$ac_try_echo"; } >&5
4368 (eval "$ac_try") 2>&5
4370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4371 test $ac_status = 0; } &&
4372 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4374 *) ac_try_echo=$ac_try;;
4376 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4377 $as_echo "$ac_try_echo"; } >&5
4378 (eval "$ac_try") 2>&5
4380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4381 test $ac_status = 0; };
4383 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4384 if test "x$CC" != xcc; then
4385 # Test first that cc exists at all.
4386 if { ac_try='cc -c conftest.$ac_ext >&5'
4387 { { case "(($ac_try" in
4388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4389 *) ac_try_echo=$ac_try;;
4391 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4392 $as_echo "$ac_try_echo"; } >&5
4393 (eval "$ac_try") 2>&5
4395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4396 test $ac_status = 0; }; }; then
4397 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4399 if { { case "(($ac_try" in
4400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4401 *) ac_try_echo=$ac_try;;
4403 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4404 $as_echo "$ac_try_echo"; } >&5
4405 (eval "$ac_try") 2>&5
4407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4408 test $ac_status = 0; } &&
4409 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411 *) ac_try_echo=$ac_try;;
4413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4414 $as_echo "$ac_try_echo"; } >&5
4415 (eval "$ac_try") 2>&5
4417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4418 test $ac_status = 0; };
4423 # cc exists but doesn't like -o.
4424 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4429 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4431 rm -f core conftest*
4434 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4436 $as_echo "yes" >&6; }
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4439 $as_echo "no" >&6; }
4441 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4445 # expand $ac_aux_dir to an absolute path
4446 am_aux_dir=`cd $ac_aux_dir && pwd`
4448 # FIXME: we rely on the cache variable name because
4449 # there is no other way.
4451 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4452 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4453 if test "$am_t" != yes; then
4454 # Losing compiler, so override with the script.
4455 # FIXME: It is wrong to rewrite CC.
4456 # But if we don't then we get into trouble of one sort or another.
4457 # A longer-term fix would be to have automake use am__CC in this case,
4458 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4459 CC="$am_aux_dir/compile $CC"
4464 ac_cpp='$CXXCPP $CPPFLAGS'
4465 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4466 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4467 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4468 if test -z "$CXX"; then
4469 if test -n "$CCC"; then
4472 if test -n "$ac_tool_prefix"; then
4473 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4475 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4476 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4478 $as_echo_n "checking for $ac_word... " >&6; }
4479 if test "${ac_cv_prog_CXX+set}" = set; then :
4480 $as_echo_n "(cached) " >&6
4482 if test -n "$CXX"; then
4483 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489 test -z "$as_dir" && as_dir=.
4490 for ac_exec_ext in '' $ac_executable_extensions; do
4491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4492 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4503 if test -n "$CXX"; then
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4505 $as_echo "$CXX" >&6; }
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4508 $as_echo "no" >&6; }
4512 test -n "$CXX" && break
4515 if test -z "$CXX"; then
4517 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4519 # Extract the first word of "$ac_prog", so it can be a program name with args.
4520 set dummy $ac_prog; ac_word=$2
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4522 $as_echo_n "checking for $ac_word... " >&6; }
4523 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4524 $as_echo_n "(cached) " >&6
4526 if test -n "$ac_ct_CXX"; then
4527 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4533 test -z "$as_dir" && as_dir=.
4534 for ac_exec_ext in '' $ac_executable_extensions; do
4535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4536 ac_cv_prog_ac_ct_CXX="$ac_prog"
4537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4546 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4547 if test -n "$ac_ct_CXX"; then
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4549 $as_echo "$ac_ct_CXX" >&6; }
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4552 $as_echo "no" >&6; }
4556 test -n "$ac_ct_CXX" && break
4559 if test "x$ac_ct_CXX" = x; then
4562 case $cross_compiling:$ac_tool_warned in
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4566 ac_tool_warned=yes ;;
4574 # Provide some information about the compiler.
4575 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4578 for ac_option in --version -v -V -qversion; do
4579 { { ac_try="$ac_compiler $ac_option >&5"
4581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4582 *) ac_try_echo=$ac_try;;
4584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4585 $as_echo "$ac_try_echo"; } >&5
4586 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4588 if test -s conftest.err; then
4590 ... rest of stderr output deleted ...
4591 10q' conftest.err >conftest.er1
4592 cat conftest.er1 >&5
4593 rm -f conftest.er1 conftest.err
4595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4596 test $ac_status = 0; }
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4600 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4601 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4602 $as_echo_n "(cached) " >&6
4604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4605 /* end confdefs.h. */
4618 if ac_fn_cxx_try_compile "$LINENO"; then :
4623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4624 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4628 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4629 if test $ac_compiler_gnu = yes; then
4634 ac_test_CXXFLAGS=${CXXFLAGS+set}
4635 ac_save_CXXFLAGS=$CXXFLAGS
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4637 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4638 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4639 $as_echo_n "(cached) " >&6
4641 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4642 ac_cxx_werror_flag=yes
4645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4646 /* end confdefs.h. */
4656 if ac_fn_cxx_try_compile "$LINENO"; then :
4657 ac_cv_prog_cxx_g=yes
4660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661 /* end confdefs.h. */
4671 if ac_fn_cxx_try_compile "$LINENO"; then :
4674 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4677 /* end confdefs.h. */
4687 if ac_fn_cxx_try_compile "$LINENO"; then :
4688 ac_cv_prog_cxx_g=yes
4690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4695 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4698 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4699 if test "$ac_test_CXXFLAGS" = set; then
4700 CXXFLAGS=$ac_save_CXXFLAGS
4701 elif test $ac_cv_prog_cxx_g = yes; then
4702 if test "$GXX" = yes; then
4708 if test "$GXX" = yes; then
4715 ac_cpp='$CPP $CPPFLAGS'
4716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4723 if test -n "$ac_tool_prefix"; then
4724 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4725 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4727 $as_echo_n "checking for $ac_word... " >&6; }
4728 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4729 $as_echo_n "(cached) " >&6
4731 if test -n "$GNATBIND"; then
4732 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738 test -z "$as_dir" && as_dir=.
4739 for ac_exec_ext in '' $ac_executable_extensions; do
4740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4741 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4751 GNATBIND=$ac_cv_prog_GNATBIND
4752 if test -n "$GNATBIND"; then
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4754 $as_echo "$GNATBIND" >&6; }
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4757 $as_echo "no" >&6; }
4762 if test -z "$ac_cv_prog_GNATBIND"; then
4763 ac_ct_GNATBIND=$GNATBIND
4764 # Extract the first word of "gnatbind", so it can be a program name with args.
4765 set dummy gnatbind; ac_word=$2
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4767 $as_echo_n "checking for $ac_word... " >&6; }
4768 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4769 $as_echo_n "(cached) " >&6
4771 if test -n "$ac_ct_GNATBIND"; then
4772 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778 test -z "$as_dir" && as_dir=.
4779 for ac_exec_ext in '' $ac_executable_extensions; do
4780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4781 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4791 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4792 if test -n "$ac_ct_GNATBIND"; then
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4794 $as_echo "$ac_ct_GNATBIND" >&6; }
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4797 $as_echo "no" >&6; }
4800 if test "x$ac_ct_GNATBIND" = x; then
4803 case $cross_compiling:$ac_tool_warned in
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4807 ac_tool_warned=yes ;;
4809 GNATBIND=$ac_ct_GNATBIND
4812 GNATBIND="$ac_cv_prog_GNATBIND"
4815 if test -n "$ac_tool_prefix"; then
4816 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4817 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4819 $as_echo_n "checking for $ac_word... " >&6; }
4820 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4821 $as_echo_n "(cached) " >&6
4823 if test -n "$GNATMAKE"; then
4824 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830 test -z "$as_dir" && as_dir=.
4831 for ac_exec_ext in '' $ac_executable_extensions; do
4832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4833 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4843 GNATMAKE=$ac_cv_prog_GNATMAKE
4844 if test -n "$GNATMAKE"; then
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4846 $as_echo "$GNATMAKE" >&6; }
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4849 $as_echo "no" >&6; }
4854 if test -z "$ac_cv_prog_GNATMAKE"; then
4855 ac_ct_GNATMAKE=$GNATMAKE
4856 # Extract the first word of "gnatmake", so it can be a program name with args.
4857 set dummy gnatmake; ac_word=$2
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4859 $as_echo_n "checking for $ac_word... " >&6; }
4860 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4861 $as_echo_n "(cached) " >&6
4863 if test -n "$ac_ct_GNATMAKE"; then
4864 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870 test -z "$as_dir" && as_dir=.
4871 for ac_exec_ext in '' $ac_executable_extensions; do
4872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4873 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4883 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4884 if test -n "$ac_ct_GNATMAKE"; then
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4886 $as_echo "$ac_ct_GNATMAKE" >&6; }
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4889 $as_echo "no" >&6; }
4892 if test "x$ac_ct_GNATMAKE" = x; then
4895 case $cross_compiling:$ac_tool_warned in
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4899 ac_tool_warned=yes ;;
4901 GNATMAKE=$ac_ct_GNATMAKE
4904 GNATMAKE="$ac_cv_prog_GNATMAKE"
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4908 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4909 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4910 $as_echo_n "(cached) " >&6
4912 cat >conftest.adb <<EOF
4913 procedure conftest is begin null; end conftest;
4915 acx_cv_cc_gcc_supports_ada=no
4916 # There is a bug in old released versions of GCC which causes the
4917 # driver to exit successfully when the appropriate language module
4918 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4919 # Therefore we must check for the error message as well as an
4920 # unsuccessful exit.
4921 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4922 # given a .adb file, but produce no object file. So we must check
4923 # if an object file was really produced to guard against this.
4924 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4925 if test x"$errors" = x && test -f conftest.$ac_objext; then
4926 acx_cv_cc_gcc_supports_ada=yes
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4931 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4933 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4940 # autoconf is lame and doesn't give us any substitution variable for this.
4941 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4942 NO_MINUS_C_MINUS_O=yes
4944 OUTPUT_OPTION='-o $@'
4949 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4950 # optimizations to be activated explicitly by the toplevel.
4952 */prev-gcc/xgcc*) ;;
4953 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4957 # -------------------------
4958 # Check C compiler features
4959 # -------------------------
4963 ac_cpp='$CPP $CPPFLAGS'
4964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4968 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4969 # On Suns, sometimes $CPP names a directory.
4970 if test -n "$CPP" && test -d "$CPP"; then
4973 if test -z "$CPP"; then
4974 if test "${ac_cv_prog_CPP+set}" = set; then :
4975 $as_echo_n "(cached) " >&6
4977 # Double quotes because CPP needs to be expanded
4978 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4981 for ac_c_preproc_warn_flag in '' yes
4983 # Use a header file that comes with gcc, so configuring glibc
4984 # with a fresh cross-compiler works.
4985 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4986 # <limits.h> exists even on freestanding compilers.
4987 # On the NeXT, cc -E runs the code through the compiler's parser,
4988 # not just through cpp. "Syntax error" is here to catch this case.
4989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4990 /* end confdefs.h. */
4992 # include <limits.h>
4994 # include <assert.h>
4998 if ac_fn_c_try_cpp "$LINENO"; then :
5001 # Broken: fails on valid input.
5004 rm -f conftest.err conftest.$ac_ext
5006 # OK, works on sane cases. Now check whether nonexistent headers
5007 # can be detected and how.
5008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5009 /* end confdefs.h. */
5010 #include <ac_nonexistent.h>
5012 if ac_fn_c_try_cpp "$LINENO"; then :
5013 # Broken: success on invalid input.
5016 # Passes both tests.
5020 rm -f conftest.err conftest.$ac_ext
5023 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5024 rm -f conftest.err conftest.$ac_ext
5025 if $ac_preproc_ok; then :
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5038 $as_echo "$CPP" >&6; }
5040 for ac_c_preproc_warn_flag in '' yes
5042 # Use a header file that comes with gcc, so configuring glibc
5043 # with a fresh cross-compiler works.
5044 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5045 # <limits.h> exists even on freestanding compilers.
5046 # On the NeXT, cc -E runs the code through the compiler's parser,
5047 # not just through cpp. "Syntax error" is here to catch this case.
5048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5049 /* end confdefs.h. */
5051 # include <limits.h>
5053 # include <assert.h>
5057 if ac_fn_c_try_cpp "$LINENO"; then :
5060 # Broken: fails on valid input.
5063 rm -f conftest.err conftest.$ac_ext
5065 # OK, works on sane cases. Now check whether nonexistent headers
5066 # can be detected and how.
5067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5068 /* end confdefs.h. */
5069 #include <ac_nonexistent.h>
5071 if ac_fn_c_try_cpp "$LINENO"; then :
5072 # Broken: success on invalid input.
5075 # Passes both tests.
5079 rm -f conftest.err conftest.$ac_ext
5082 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5083 rm -f conftest.err conftest.$ac_ext
5084 if $ac_preproc_ok; then :
5087 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5089 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5090 See \`config.log' for more details." "$LINENO" 5; }
5094 ac_cpp='$CPP $CPPFLAGS'
5095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5101 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5102 if test "${ac_cv_path_GREP+set}" = set; then :
5103 $as_echo_n "(cached) " >&6
5105 if test -z "$GREP"; then
5106 ac_path_GREP_found=false
5107 # Loop through the user's path and test for each of PROGNAME-LIST
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5112 test -z "$as_dir" && as_dir=.
5113 for ac_prog in grep ggrep; do
5114 for ac_exec_ext in '' $ac_executable_extensions; do
5115 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5116 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5117 # Check for GNU ac_path_GREP and select it if it is found.
5118 # Check for GNU $ac_path_GREP
5119 case `"$ac_path_GREP" --version 2>&1` in
5121 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5124 $as_echo_n 0123456789 >"conftest.in"
5127 cat "conftest.in" "conftest.in" >"conftest.tmp"
5128 mv "conftest.tmp" "conftest.in"
5129 cp "conftest.in" "conftest.nl"
5130 $as_echo 'GREP' >> "conftest.nl"
5131 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5132 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5133 as_fn_arith $ac_count + 1 && ac_count=$as_val
5134 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5135 # Best one so far, save it but keep looking for a better one
5136 ac_cv_path_GREP="$ac_path_GREP"
5137 ac_path_GREP_max=$ac_count
5139 # 10*(2^10) chars as input seems more than enough
5140 test $ac_count -gt 10 && break
5142 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5145 $ac_path_GREP_found && break 3
5150 if test -z "$ac_cv_path_GREP"; then
5151 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5154 ac_cv_path_GREP=$GREP
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5159 $as_echo "$ac_cv_path_GREP" >&6; }
5160 GREP="$ac_cv_path_GREP"
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5164 $as_echo_n "checking for egrep... " >&6; }
5165 if test "${ac_cv_path_EGREP+set}" = set; then :
5166 $as_echo_n "(cached) " >&6
5168 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5169 then ac_cv_path_EGREP="$GREP -E"
5171 if test -z "$EGREP"; then
5172 ac_path_EGREP_found=false
5173 # Loop through the user's path and test for each of PROGNAME-LIST
5174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5178 test -z "$as_dir" && as_dir=.
5179 for ac_prog in egrep; do
5180 for ac_exec_ext in '' $ac_executable_extensions; do
5181 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5182 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5183 # Check for GNU ac_path_EGREP and select it if it is found.
5184 # Check for GNU $ac_path_EGREP
5185 case `"$ac_path_EGREP" --version 2>&1` in
5187 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5190 $as_echo_n 0123456789 >"conftest.in"
5193 cat "conftest.in" "conftest.in" >"conftest.tmp"
5194 mv "conftest.tmp" "conftest.in"
5195 cp "conftest.in" "conftest.nl"
5196 $as_echo 'EGREP' >> "conftest.nl"
5197 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5198 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5199 as_fn_arith $ac_count + 1 && ac_count=$as_val
5200 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5201 # Best one so far, save it but keep looking for a better one
5202 ac_cv_path_EGREP="$ac_path_EGREP"
5203 ac_path_EGREP_max=$ac_count
5205 # 10*(2^10) chars as input seems more than enough
5206 test $ac_count -gt 10 && break
5208 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5211 $ac_path_EGREP_found && break 3
5216 if test -z "$ac_cv_path_EGREP"; then
5217 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5220 ac_cv_path_EGREP=$EGREP
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5226 $as_echo "$ac_cv_path_EGREP" >&6; }
5227 EGREP="$ac_cv_path_EGREP"
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5231 $as_echo_n "checking for ANSI C header files... " >&6; }
5232 if test "${ac_cv_header_stdc+set}" = set; then :
5233 $as_echo_n "(cached) " >&6
5235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5236 /* end confdefs.h. */
5250 if ac_fn_c_try_compile "$LINENO"; then :
5251 ac_cv_header_stdc=yes
5253 ac_cv_header_stdc=no
5255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5257 if test $ac_cv_header_stdc = yes; then
5258 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5260 /* end confdefs.h. */
5264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5265 $EGREP "memchr" >/dev/null 2>&1; then :
5268 ac_cv_header_stdc=no
5274 if test $ac_cv_header_stdc = yes; then
5275 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277 /* end confdefs.h. */
5281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5282 $EGREP "free" >/dev/null 2>&1; then :
5285 ac_cv_header_stdc=no
5291 if test $ac_cv_header_stdc = yes; then
5292 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5293 if test "$cross_compiling" = yes; then :
5296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5297 /* end confdefs.h. */
5300 #if ((' ' & 0x0FF) == 0x020)
5301 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5302 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5304 # define ISLOWER(c) \
5305 (('a' <= (c) && (c) <= 'i') \
5306 || ('j' <= (c) && (c) <= 'r') \
5307 || ('s' <= (c) && (c) <= 'z'))
5308 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5311 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5316 for (i = 0; i < 256; i++)
5317 if (XOR (islower (i), ISLOWER (i))
5318 || toupper (i) != TOUPPER (i))
5323 if ac_fn_c_try_run "$LINENO"; then :
5326 ac_cv_header_stdc=no
5328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5329 conftest.$ac_objext conftest.beam conftest.$ac_ext
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5335 $as_echo "$ac_cv_header_stdc" >&6; }
5336 if test $ac_cv_header_stdc = yes; then
5338 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5342 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5343 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5344 inttypes.h stdint.h unistd.h
5346 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5347 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5349 eval as_val=\$$as_ac_Header
5350 if test "x$as_val" = x""yes; then :
5351 cat >>confdefs.h <<_ACEOF
5352 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5361 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5362 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5369 if test "$MINIX" = yes; then
5371 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5374 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5377 $as_echo "#define _MINIX 1" >>confdefs.h
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5383 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5384 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5385 $as_echo_n "(cached) " >&6
5387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388 /* end confdefs.h. */
5390 # define __EXTENSIONS__ 1
5391 $ac_includes_default
5400 if ac_fn_c_try_compile "$LINENO"; then :
5401 ac_cv_safe_to_define___extensions__=yes
5403 ac_cv_safe_to_define___extensions__=no
5405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5408 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5409 test $ac_cv_safe_to_define___extensions__ = yes &&
5410 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5412 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5414 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5416 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5418 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5422 ac_cpp='$CPP $CPPFLAGS'
5423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5427 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5428 # On Suns, sometimes $CPP names a directory.
5429 if test -n "$CPP" && test -d "$CPP"; then
5432 if test -z "$CPP"; then
5433 if test "${ac_cv_prog_CPP+set}" = set; then :
5434 $as_echo_n "(cached) " >&6
5436 # Double quotes because CPP needs to be expanded
5437 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5440 for ac_c_preproc_warn_flag in '' yes
5442 # Use a header file that comes with gcc, so configuring glibc
5443 # with a fresh cross-compiler works.
5444 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5445 # <limits.h> exists even on freestanding compilers.
5446 # On the NeXT, cc -E runs the code through the compiler's parser,
5447 # not just through cpp. "Syntax error" is here to catch this case.
5448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5449 /* end confdefs.h. */
5451 # include <limits.h>
5453 # include <assert.h>
5457 if ac_fn_c_try_cpp "$LINENO"; then :
5460 # Broken: fails on valid input.
5463 rm -f conftest.err conftest.$ac_ext
5465 # OK, works on sane cases. Now check whether nonexistent headers
5466 # can be detected and how.
5467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5468 /* end confdefs.h. */
5469 #include <ac_nonexistent.h>
5471 if ac_fn_c_try_cpp "$LINENO"; then :
5472 # Broken: success on invalid input.
5475 # Passes both tests.
5479 rm -f conftest.err conftest.$ac_ext
5482 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5483 rm -f conftest.err conftest.$ac_ext
5484 if $ac_preproc_ok; then :
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5497 $as_echo "$CPP" >&6; }
5499 for ac_c_preproc_warn_flag in '' yes
5501 # Use a header file that comes with gcc, so configuring glibc
5502 # with a fresh cross-compiler works.
5503 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5504 # <limits.h> exists even on freestanding compilers.
5505 # On the NeXT, cc -E runs the code through the compiler's parser,
5506 # not just through cpp. "Syntax error" is here to catch this case.
5507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5508 /* end confdefs.h. */
5510 # include <limits.h>
5512 # include <assert.h>
5516 if ac_fn_c_try_cpp "$LINENO"; then :
5519 # Broken: fails on valid input.
5522 rm -f conftest.err conftest.$ac_ext
5524 # OK, works on sane cases. Now check whether nonexistent headers
5525 # can be detected and how.
5526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5527 /* end confdefs.h. */
5528 #include <ac_nonexistent.h>
5530 if ac_fn_c_try_cpp "$LINENO"; then :
5531 # Broken: success on invalid input.
5534 # Passes both tests.
5538 rm -f conftest.err conftest.$ac_ext
5541 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5542 rm -f conftest.err conftest.$ac_ext
5543 if $ac_preproc_ok; then :
5546 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5548 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5549 See \`config.log' for more details." "$LINENO" 5; }
5553 ac_cpp='$CPP $CPPFLAGS'
5554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5559 $as_echo_n "checking for inline... " >&6; }
5560 if test "${ac_cv_c_inline+set}" = set; then :
5561 $as_echo_n "(cached) " >&6
5564 for ac_kw in inline __inline__ __inline; do
5565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5566 /* end confdefs.h. */
5569 static $ac_kw foo_t static_foo () {return 0; }
5570 $ac_kw foo_t foo () {return 0; }
5574 if ac_fn_c_try_compile "$LINENO"; then :
5575 ac_cv_c_inline=$ac_kw
5577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5578 test "$ac_cv_c_inline" != no && break
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5583 $as_echo "$ac_cv_c_inline" >&6; }
5585 case $ac_cv_c_inline in
5588 case $ac_cv_c_inline in
5590 *) ac_val=$ac_cv_c_inline;;
5592 cat >>confdefs.h <<_ACEOF
5594 #define inline $ac_val
5601 # sizeof(char) is 1 by definition.
5602 # The cast to long int works around a bug in the HP C Compiler
5603 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5604 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5605 # This bug is HP SR number 8606223364.
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5607 $as_echo_n "checking size of void *... " >&6; }
5608 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5609 $as_echo_n "(cached) " >&6
5611 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5614 if test "$ac_cv_type_void_p" = yes; then
5615 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5616 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5617 { as_fn_set_status 77
5618 as_fn_error "cannot compute sizeof (void *)
5619 See \`config.log' for more details." "$LINENO" 5; }; }
5621 ac_cv_sizeof_void_p=0
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5627 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5631 cat >>confdefs.h <<_ACEOF
5632 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5636 # The cast to long int works around a bug in the HP C Compiler
5637 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5638 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5639 # This bug is HP SR number 8606223364.
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5641 $as_echo_n "checking size of short... " >&6; }
5642 if test "${ac_cv_sizeof_short+set}" = set; then :
5643 $as_echo_n "(cached) " >&6
5645 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5648 if test "$ac_cv_type_short" = yes; then
5649 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5651 { as_fn_set_status 77
5652 as_fn_error "cannot compute sizeof (short)
5653 See \`config.log' for more details." "$LINENO" 5; }; }
5655 ac_cv_sizeof_short=0
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5661 $as_echo "$ac_cv_sizeof_short" >&6; }
5665 cat >>confdefs.h <<_ACEOF
5666 #define SIZEOF_SHORT $ac_cv_sizeof_short
5670 # The cast to long int works around a bug in the HP C Compiler
5671 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5672 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5673 # This bug is HP SR number 8606223364.
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5675 $as_echo_n "checking size of int... " >&6; }
5676 if test "${ac_cv_sizeof_int+set}" = set; then :
5677 $as_echo_n "(cached) " >&6
5679 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5682 if test "$ac_cv_type_int" = yes; then
5683 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5684 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5685 { as_fn_set_status 77
5686 as_fn_error "cannot compute sizeof (int)
5687 See \`config.log' for more details." "$LINENO" 5; }; }
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5695 $as_echo "$ac_cv_sizeof_int" >&6; }
5699 cat >>confdefs.h <<_ACEOF
5700 #define SIZEOF_INT $ac_cv_sizeof_int
5704 # The cast to long int works around a bug in the HP C Compiler
5705 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5706 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5707 # This bug is HP SR number 8606223364.
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5709 $as_echo_n "checking size of long... " >&6; }
5710 if test "${ac_cv_sizeof_long+set}" = set; then :
5711 $as_echo_n "(cached) " >&6
5713 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5716 if test "$ac_cv_type_long" = yes; then
5717 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5718 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5719 { as_fn_set_status 77
5720 as_fn_error "cannot compute sizeof (long)
5721 See \`config.log' for more details." "$LINENO" 5; }; }
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5729 $as_echo "$ac_cv_sizeof_long" >&6; }
5733 cat >>confdefs.h <<_ACEOF
5734 #define SIZEOF_LONG $ac_cv_sizeof_long
5738 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5739 if test "x$ac_cv_type_long_long" = x""yes; then :
5741 cat >>confdefs.h <<_ACEOF
5742 #define HAVE_LONG_LONG 1
5745 # The cast to long int works around a bug in the HP C Compiler
5746 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5747 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5748 # This bug is HP SR number 8606223364.
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5750 $as_echo_n "checking size of long long... " >&6; }
5751 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5752 $as_echo_n "(cached) " >&6
5754 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5757 if test "$ac_cv_type_long_long" = yes; then
5758 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5759 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5760 { as_fn_set_status 77
5761 as_fn_error "cannot compute sizeof (long long)
5762 See \`config.log' for more details." "$LINENO" 5; }; }
5764 ac_cv_sizeof_long_long=0
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5770 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5774 cat >>confdefs.h <<_ACEOF
5775 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5781 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5782 if test "x$ac_cv_type___int64" = x""yes; then :
5784 cat >>confdefs.h <<_ACEOF
5785 #define HAVE___INT64 1
5788 # The cast to long int works around a bug in the HP C Compiler
5789 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5790 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5791 # This bug is HP SR number 8606223364.
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5793 $as_echo_n "checking size of __int64... " >&6; }
5794 if test "${ac_cv_sizeof___int64+set}" = set; then :
5795 $as_echo_n "(cached) " >&6
5797 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5800 if test "$ac_cv_type___int64" = yes; then
5801 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5802 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5803 { as_fn_set_status 77
5804 as_fn_error "cannot compute sizeof (__int64)
5805 See \`config.log' for more details." "$LINENO" 5; }; }
5807 ac_cv_sizeof___int64=0
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5813 $as_echo "$ac_cv_sizeof___int64" >&6; }
5817 cat >>confdefs.h <<_ACEOF
5818 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5824 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5825 case $ac_cv_c_int8_t in #(
5829 cat >>confdefs.h <<_ACEOF
5830 #define int8_t $ac_cv_c_int8_t
5835 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5836 case $ac_cv_c_int16_t in #(
5840 cat >>confdefs.h <<_ACEOF
5841 #define int16_t $ac_cv_c_int16_t
5846 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5847 case $ac_cv_c_int32_t in #(
5851 cat >>confdefs.h <<_ACEOF
5852 #define int32_t $ac_cv_c_int32_t
5857 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5858 case $ac_cv_c_int64_t in #(
5862 cat >>confdefs.h <<_ACEOF
5863 #define int64_t $ac_cv_c_int64_t
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5870 $as_echo_n "checking for long long int... " >&6; }
5871 if test "${ac_cv_type_long_long_int+set}" = set; then :
5872 $as_echo_n "(cached) " >&6
5874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5875 /* end confdefs.h. */
5877 /* For now, do not test the preprocessor; as of 2007 there are too many
5878 implementations with broken preprocessors. Perhaps this can
5879 be revisited in 2012. In the meantime, code should not expect
5880 #if to work with literals wider than 32 bits. */
5881 /* Test literals. */
5882 long long int ll = 9223372036854775807ll;
5883 long long int nll = -9223372036854775807LL;
5884 unsigned long long int ull = 18446744073709551615ULL;
5885 /* Test constant expressions. */
5886 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5888 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5894 /* Test availability of runtime routines for shift and division. */
5895 long long int llmax = 9223372036854775807ll;
5896 unsigned long long int ullmax = 18446744073709551615ull;
5897 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5898 | (llmax / ll) | (llmax % ll)
5899 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5900 | (ullmax / ull) | (ullmax % ull));
5906 if ac_fn_c_try_link "$LINENO"; then :
5907 if test "$cross_compiling" = yes; then :
5908 ac_cv_type_long_long_int=yes
5910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5911 /* end confdefs.h. */
5915 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5916 # define LLONG_MAX (HALF - 1 + HALF)
5921 long long int n = 1;
5925 long long int m = n << i;
5928 if (LLONG_MAX / 2 < m)
5936 if ac_fn_c_try_run "$LINENO"; then :
5937 ac_cv_type_long_long_int=yes
5939 ac_cv_type_long_long_int=no
5941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5942 conftest.$ac_objext conftest.beam conftest.$ac_ext
5946 ac_cv_type_long_long_int=no
5948 rm -f core conftest.err conftest.$ac_objext \
5949 conftest$ac_exeext conftest.$ac_ext
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5952 $as_echo "$ac_cv_type_long_long_int" >&6; }
5953 if test $ac_cv_type_long_long_int = yes; then
5955 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5961 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
5962 if test "x$ac_cv_type_intmax_t" = x""yes; then :
5964 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
5967 test $ac_cv_type_long_long_int = yes \
5968 && ac_type='long long int' \
5969 || ac_type='long int'
5971 cat >>confdefs.h <<_ACEOF
5972 #define intmax_t $ac_type
5979 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
5980 if test "x$ac_cv_type_intptr_t" = x""yes; then :
5982 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
5985 for ac_type in 'int' 'long int' 'long long int'; do
5986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5987 /* end confdefs.h. */
5988 $ac_includes_default
5992 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5999 if ac_fn_c_try_compile "$LINENO"; then :
6001 cat >>confdefs.h <<_ACEOF
6002 #define intptr_t $ac_type
6007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6008 test -z "$ac_type" && break
6013 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6014 case $ac_cv_c_uint8_t in #(
6018 $as_echo "#define _UINT8_T 1" >>confdefs.h
6021 cat >>confdefs.h <<_ACEOF
6022 #define uint8_t $ac_cv_c_uint8_t
6027 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6028 case $ac_cv_c_uint16_t in #(
6033 cat >>confdefs.h <<_ACEOF
6034 #define uint16_t $ac_cv_c_uint16_t
6039 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6040 case $ac_cv_c_uint32_t in #(
6044 $as_echo "#define _UINT32_T 1" >>confdefs.h
6047 cat >>confdefs.h <<_ACEOF
6048 #define uint32_t $ac_cv_c_uint32_t
6053 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6054 case $ac_cv_c_uint64_t in #(
6058 $as_echo "#define _UINT64_T 1" >>confdefs.h
6061 cat >>confdefs.h <<_ACEOF
6062 #define uint64_t $ac_cv_c_uint64_t
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6069 $as_echo_n "checking for unsigned long long int... " >&6; }
6070 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6071 $as_echo_n "(cached) " >&6
6073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6074 /* end confdefs.h. */
6076 /* For now, do not test the preprocessor; as of 2007 there are too many
6077 implementations with broken preprocessors. Perhaps this can
6078 be revisited in 2012. In the meantime, code should not expect
6079 #if to work with literals wider than 32 bits. */
6080 /* Test literals. */
6081 long long int ll = 9223372036854775807ll;
6082 long long int nll = -9223372036854775807LL;
6083 unsigned long long int ull = 18446744073709551615ULL;
6084 /* Test constant expressions. */
6085 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6087 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6093 /* Test availability of runtime routines for shift and division. */
6094 long long int llmax = 9223372036854775807ll;
6095 unsigned long long int ullmax = 18446744073709551615ull;
6096 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6097 | (llmax / ll) | (llmax % ll)
6098 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6099 | (ullmax / ull) | (ullmax % ull));
6105 if ac_fn_c_try_link "$LINENO"; then :
6106 ac_cv_type_unsigned_long_long_int=yes
6108 ac_cv_type_unsigned_long_long_int=no
6110 rm -f core conftest.err conftest.$ac_objext \
6111 conftest$ac_exeext conftest.$ac_ext
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6114 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6115 if test $ac_cv_type_unsigned_long_long_int = yes; then
6117 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6123 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6124 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6126 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6129 test $ac_cv_type_unsigned_long_long_int = yes \
6130 && ac_type='unsigned long long int' \
6131 || ac_type='unsigned long int'
6133 cat >>confdefs.h <<_ACEOF
6134 #define uintmax_t $ac_type
6141 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6142 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6144 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6147 for ac_type in 'unsigned int' 'unsigned long int' \
6148 'unsigned long long int'; do
6149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6150 /* end confdefs.h. */
6151 $ac_includes_default
6155 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6162 if ac_fn_c_try_compile "$LINENO"; then :
6164 cat >>confdefs.h <<_ACEOF
6165 #define uintptr_t $ac_type
6170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6171 test -z "$ac_type" && break
6189 # ---------------------
6190 # Warnings and checking
6191 # ---------------------
6193 # Check $CC warning features (if it's GCC).
6194 # We want to use -pedantic, but we don't want warnings about
6197 # * overlong strings
6198 # So, we only use -pedantic if we can disable those warnings.
6201 save_CFLAGS="$CFLAGS"
6202 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
6203 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6206 $as_echo_n "checking whether $CC supports $option... " >&6; }
6207 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6208 $as_echo_n "(cached) " >&6
6211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6212 /* end confdefs.h. */
6222 if ac_fn_c_try_compile "$LINENO"; then :
6223 eval "$as_acx_Woption=yes"
6225 eval "$as_acx_Woption=no"
6227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6230 eval ac_res=\$$as_acx_Woption
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6232 $as_echo "$ac_res" >&6; }
6233 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6234 loose_warn="$loose_warn${loose_warn:+ }$option"
6237 CFLAGS="$save_CFLAGS"
6240 save_CFLAGS="$CFLAGS"
6241 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6242 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6245 $as_echo_n "checking whether $CC supports $option... " >&6; }
6246 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6247 $as_echo_n "(cached) " >&6
6250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6251 /* end confdefs.h. */
6261 if ac_fn_c_try_compile "$LINENO"; then :
6262 eval "$as_acx_Woption=yes"
6264 eval "$as_acx_Woption=no"
6266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6269 eval ac_res=\$$as_acx_Woption
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6271 $as_echo "$ac_res" >&6; }
6272 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6273 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6276 CFLAGS="$save_CFLAGS"
6279 save_CFLAGS="$CFLAGS"
6280 for option in -Wmissing-format-attribute; do
6281 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6284 $as_echo_n "checking whether $CC supports $option... " >&6; }
6285 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6286 $as_echo_n "(cached) " >&6
6289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6290 /* end confdefs.h. */
6300 if ac_fn_c_try_compile "$LINENO"; then :
6301 eval "$as_acx_Woption=yes"
6303 eval "$as_acx_Woption=no"
6305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6308 eval ac_res=\$$as_acx_Woption
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6310 $as_echo "$ac_res" >&6; }
6311 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6312 strict_warn="$strict_warn${strict_warn:+ }$option"
6315 CFLAGS="$save_CFLAGS"
6318 save_CFLAGS="$CFLAGS"
6319 for option in -Wold-style-definition -Wc++-compat; do
6320 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6323 $as_echo_n "checking whether $CC supports $option... " >&6; }
6324 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6325 $as_echo_n "(cached) " >&6
6328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6329 /* end confdefs.h. */
6339 if ac_fn_c_try_compile "$LINENO"; then :
6340 eval "$as_acx_Woption=yes"
6342 eval "$as_acx_Woption=no"
6344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6347 eval ac_res=\$$as_acx_Woption
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6349 $as_echo "$ac_res" >&6; }
6350 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6351 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6354 CFLAGS="$save_CFLAGS"
6356 if test "$GCC" = yes; then :
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6358 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6359 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6360 $as_echo_n "(cached) " >&6
6362 save_CFLAGS="$CFLAGS"
6363 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6365 /* end confdefs.h. */
6375 if ac_fn_c_try_compile "$LINENO"; then :
6376 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6378 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6381 CFLAGS="$save_CFLAGS"
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6384 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6385 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6386 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6391 # Check whether --enable-werror-always was given.
6392 if test "${enable_werror_always+set}" = set; then :
6393 enableval=$enable_werror_always;
6395 enable_werror_always=no
6398 if test $enable_werror_always = yes; then :
6399 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6404 # The above macros do nothing if the compiler is not GCC. However, the
6405 # Makefile has more goo to add other flags, so these variables are used
6406 # to enable warnings only for GCC.
6409 if test "x$GCC" = "xyes"; then
6410 warn_cflags='$(GCC_WARN_CFLAGS)'
6411 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6416 # Enable expensive internal checks
6418 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6422 # Check whether --enable-checking was given.
6423 if test "${enable_checking+set}" = set; then :
6424 enableval=$enable_checking; ac_checking_flags="${enableval}"
6427 # Determine the default checks.
6428 if test x$is_release = x ; then
6429 ac_checking_flags=yes
6431 ac_checking_flags=release
6435 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6436 for check in release $ac_checking_flags
6439 # these set all the flags to specific states
6440 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6441 ac_fold_checking= ; ac_gc_checking=1 ;
6442 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6443 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6444 ac_tree_checking=1 ; ac_valgrind_checking= ;
6445 ac_types_checking=1 ;;
6446 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6447 ac_fold_checking= ; ac_gc_checking= ;
6448 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6449 ac_rtlflag_checking= ; ac_runtime_checking= ;
6450 ac_tree_checking= ; ac_valgrind_checking= ;
6451 ac_types_checking= ;;
6452 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6453 ac_fold_checking=1 ; ac_gc_checking=1 ;
6454 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6455 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6456 ac_tree_checking=1 ; ac_valgrind_checking= ;
6457 ac_types_checking=1 ;;
6458 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6459 ac_fold_checking= ; ac_gc_checking= ;
6460 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6461 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6462 ac_tree_checking= ; ac_valgrind_checking= ;
6463 ac_types_checking= ;;
6464 # these enable particular checks
6465 assert) ac_assert_checking=1 ;;
6466 df) ac_df_checking=1 ;;
6467 fold) ac_fold_checking=1 ;;
6468 gc) ac_gc_checking=1 ;;
6469 gcac) ac_gc_always_collect=1 ;;
6470 gimple) ac_gimple_checking=1 ;;
6471 misc) ac_checking=1 ;;
6472 rtl) ac_rtl_checking=1 ;;
6473 rtlflag) ac_rtlflag_checking=1 ;;
6474 runtime) ac_runtime_checking=1 ;;
6475 tree) ac_tree_checking=1 ;;
6476 types) ac_types_checking=1 ;;
6477 valgrind) ac_valgrind_checking=1 ;;
6478 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6484 if test x$ac_checking != x ; then
6486 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6488 nocommon_flag=-fno-common
6491 if test x$ac_df_checking != x ; then
6493 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6496 if test x$ac_assert_checking != x ; then
6498 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6501 if test x$ac_gimple_checking != x ; then
6503 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6507 if test x$ac_runtime_checking != x ; then
6509 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6512 if test x$ac_tree_checking != x ; then
6514 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6516 TREEBROWSER=tree-browser.o
6518 if test x$ac_types_checking != x ; then
6520 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6524 if test x$ac_rtl_checking != x ; then
6526 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6529 if test x$ac_rtlflag_checking != x ; then
6531 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6534 if test x$ac_gc_checking != x ; then
6536 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6539 if test x$ac_gc_always_collect != x ; then
6541 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6544 if test x$ac_fold_checking != x ; then
6546 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6549 valgrind_path_defines=
6552 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6553 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6561 if test x$ac_valgrind_checking != x ; then
6562 # It is certainly possible that there's valgrind but no valgrind.h.
6563 # GCC relies on making annotations so we must have both.
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6565 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6567 /* end confdefs.h. */
6568 #include <valgrind/memcheck.h>
6569 #ifndef VALGRIND_DISCARD
6570 #error VALGRIND_DISCARD not defined
6573 if ac_fn_c_try_cpp "$LINENO"; then :
6574 gcc_cv_header_valgrind_memcheck_h=yes
6576 gcc_cv_header_valgrind_memcheck_h=no
6578 rm -f conftest.err conftest.$ac_ext
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6580 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6582 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6584 /* end confdefs.h. */
6585 #include <memcheck.h>
6586 #ifndef VALGRIND_DISCARD
6587 #error VALGRIND_DISCARD not defined
6590 if ac_fn_c_try_cpp "$LINENO"; then :
6591 gcc_cv_header_memcheck_h=yes
6593 gcc_cv_header_memcheck_h=no
6595 rm -f conftest.err conftest.$ac_ext
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6597 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6599 # Prepare PATH_SEPARATOR.
6600 # The user is always right.
6601 if test "${PATH_SEPARATOR+set}" != set; then
6602 echo "#! /bin/sh" >conf$$.sh
6603 echo "exit 0" >>conf$$.sh
6605 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6613 # Find out how to test for executable files. Don't use a zero-byte file,
6614 # as systems may use methods other than mode bits to determine executability.
6615 cat >conf$$.file <<_ASEOF
6619 chmod +x conf$$.file
6620 if test -x conf$$.file >/dev/null 2>&1; then
6621 ac_executable_p="test -x"
6623 ac_executable_p="test -f"
6627 # Extract the first word of "valgrind", so it can be a program name with args.
6628 set dummy valgrind; ac_word=$2
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6630 $as_echo_n "checking for $ac_word... " >&6; }
6631 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6632 $as_echo_n "(cached) " >&6
6634 case "$valgrind_path" in
6636 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6639 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6640 for ac_dir in $PATH; do
6642 test -z "$ac_dir" && ac_dir=.
6643 for ac_exec_ext in '' $ac_executable_extensions; do
6644 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6645 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6646 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6656 valgrind_path="$ac_cv_path_valgrind_path"
6657 if test -n "$valgrind_path"; then
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6659 $as_echo "$valgrind_path" >&6; }
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6662 $as_echo "no" >&6; }
6665 if test "x$valgrind_path" = "x" \
6666 || (test $have_valgrind_h = no \
6667 && test $gcc_cv_header_memcheck_h = no \
6668 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6669 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6671 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6672 valgrind_command="$valgrind_path -q"
6674 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6676 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6678 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6681 if test $gcc_cv_header_memcheck_h = yes; then
6683 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6690 # Enable code coverage collection
6691 # Check whether --enable-coverage was given.
6692 if test "${enable_coverage+set}" = set; then :
6693 enableval=$enable_coverage; case "${enableval}" in
6695 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6698 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6701 # a.k.a. --disable-coverage
6705 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6714 # Check whether --enable-gather-detailed-mem-stats was given.
6715 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6716 enableval=$enable_gather_detailed_mem_stats;
6718 enable_gather_detailed_mem_stats=no
6721 if test x$enable_gather_detailed_mem_stats = xyes ; then
6723 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6727 # -------------------------------
6728 # Miscenalleous configure options
6729 # -------------------------------
6731 # See if we are building gcc with C++.
6732 # Check whether --enable-build-with-cxx was given.
6733 if test "${enable_build_with_cxx+set}" = set; then :
6734 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6736 ENABLE_BUILD_WITH_CXX=no
6743 # Check whether --with-stabs was given.
6744 if test "${with_stabs+set}" = set; then :
6745 withval=$with_stabs; stabs="$with_stabs"
6751 # Determine whether or not multilibs are enabled.
6752 # Check whether --enable-multilib was given.
6753 if test "${enable_multilib+set}" = set; then :
6754 enableval=$enable_multilib;
6761 # Enable __cxa_atexit for C++.
6762 # Check whether --enable-__cxa_atexit was given.
6763 if test "${enable___cxa_atexit+set}" = set; then :
6764 enableval=$enable___cxa_atexit;
6768 # Enable C extension for decimal float if target supports it.
6769 # Check whether --enable-decimal-float was given.
6770 if test "${enable_decimal_float+set}" = set; then :
6771 enableval=$enable_decimal_float;
6772 case $enable_decimal_float in
6773 yes | no | bid | dpd) ;;
6774 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6775 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6781 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
6782 enable_decimal_float=yes
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target" >&5
6786 $as_echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
6787 enable_decimal_float=no
6794 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6796 cat >>confdefs.h <<_ACEOF
6797 #define ENABLE_DECIMAL_FLOAT $dfp
6801 # x86's use BID format instead of DPD
6802 case x$enable_decimal_float in
6805 i?86*-*-linux* | x86_64*-*-linux*)
6806 enable_decimal_float=bid
6809 enable_decimal_float=dpd
6814 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6815 # dependency on libdecnumber.
6816 enable_decimal_float=dpd
6821 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6823 cat >>confdefs.h <<_ACEOF
6824 #define ENABLE_DECIMAL_BID_FORMAT $bid
6828 # Enable C extension for fixed-point arithmetic.
6829 # Check whether --enable-fixed-point was given.
6830 if test "${enable_fixed_point+set}" = set; then :
6831 enableval=$enable_fixed_point;
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX" >&5
6840 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
6841 enable_fixed_point=no
6844 enable_fixed_point=yes
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target" >&5
6850 $as_echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
6851 enable_fixed_point=no
6859 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6861 cat >>confdefs.h <<_ACEOF
6862 #define ENABLE_FIXED_POINT $fixedpoint
6867 # Pass with no value to take the default
6868 # Pass with a value to specify a thread package
6869 # Check whether --enable-threads was given.
6870 if test "${enable_threads+set}" = set; then :
6871 enableval=$enable_threads;
6877 # Check whether --enable-tls was given.
6878 if test "${enable_tls+set}" = set; then :
6879 enableval=$enable_tls;
6882 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
6883 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
6891 # Check whether --enable-objc-gc was given.
6892 if test "${enable_objc_gc+set}" = set; then :
6893 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
6904 # Check whether --with-dwarf2 was given.
6905 if test "${with_dwarf2+set}" = set; then :
6906 withval=$with_dwarf2; dwarf2="$with_dwarf2"
6912 # Check whether --enable-shared was given.
6913 if test "${enable_shared+set}" = set; then :
6914 enableval=$enable_shared;
6915 case $enable_shared in
6919 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6920 for pkg in $enableval; do
6921 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
6936 # Check whether --with-build-sysroot was given.
6937 if test "${with_build_sysroot+set}" = set; then :
6938 withval=$with_build_sysroot;
6943 # Check whether --with-sysroot was given.
6944 if test "${with_sysroot+set}" = set; then :
6945 withval=$with_sysroot;
6946 case ${with_sysroot} in
6947 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6948 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
6951 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6952 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
6954 if test "x$prefix" = xNONE; then
6955 test_prefix=/usr/local
6959 if test "x$exec_prefix" = xNONE; then
6960 test_exec_prefix=$test_prefix
6962 test_exec_prefix=$exec_prefix
6964 case ${TARGET_SYSTEM_ROOT} in
6965 "${test_prefix}"|"${test_prefix}/"*|\
6966 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
6967 '${prefix}'|'${prefix}/'*|\
6968 '${exec_prefix}'|'${exec_prefix}/'*)
6969 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6970 TARGET_SYSTEM_ROOT_DEFINE="$t"
6977 TARGET_SYSTEM_ROOT_DEFINE=
6978 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
6986 # Build with intermodule optimisations
6987 # Check whether --enable-intermodule was given.
6988 if test "${enable_intermodule+set}" = set; then :
6989 enableval=$enable_intermodule; case ${enable_intermodule} in
6990 yes) onestep="-onestep";;
7001 # Check whether --with-pkgversion was given.
7002 if test "${with_pkgversion+set}" = set; then :
7003 withval=$with_pkgversion; case "$withval" in
7004 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7006 *) PKGVERSION="($withval) " ;;
7017 # Check whether --with-bugurl was given.
7018 if test "${with_bugurl+set}" = set; then :
7019 withval=$with_bugurl; case "$withval" in
7020 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7023 *) BUGURL="$withval"
7027 BUGURL="http://gcc.gnu.org/bugs.html"
7037 REPORT_BUGS_TO="<$BUGURL>"
7038 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7045 # Sanity check enable_languages in case someone does not run the toplevel
7046 # configure # script.
7047 # Check whether --enable-languages was given.
7048 if test "${enable_languages+set}" = set; then :
7049 enableval=$enable_languages; case ,${enable_languages}, in
7051 # go safe -- we cannot be much sure without the toplevel
7053 # analysis of which target libs are present and usable
7057 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7062 enable_languages=c,${enable_languages}
7071 # Check whether --with-multilib-list was given.
7072 if test "${with_multilib_list+set}" = set; then :
7073 withval=$with_multilib_list; :
7075 with_multilib_list=default
7079 # -------------------------
7080 # Checks for other programs
7081 # -------------------------
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7084 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7086 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7087 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7088 $as_echo_n "(cached) " >&6
7090 cat >conftest.make <<\_ACEOF
7093 @echo '@@@%%%=$(MAKE)=@@@%%%'
7095 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7096 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7098 eval ac_cv_prog_make_${ac_make}_set=yes;;
7100 eval ac_cv_prog_make_${ac_make}_set=no;;
7104 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7106 $as_echo "yes" >&6; }
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7110 $as_echo "no" >&6; }
7111 SET_MAKE="MAKE=${MAKE-make}"
7115 # Find some useful tools
7116 for ac_prog in gawk mawk nawk awk
7118 # Extract the first word of "$ac_prog", so it can be a program name with args.
7119 set dummy $ac_prog; ac_word=$2
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7121 $as_echo_n "checking for $ac_word... " >&6; }
7122 if test "${ac_cv_prog_AWK+set}" = set; then :
7123 $as_echo_n "(cached) " >&6
7125 if test -n "$AWK"; then
7126 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132 test -z "$as_dir" && as_dir=.
7133 for ac_exec_ext in '' $ac_executable_extensions; do
7134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7135 ac_cv_prog_AWK="$ac_prog"
7136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7146 if test -n "$AWK"; then
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7148 $as_echo "$AWK" >&6; }
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7151 $as_echo "no" >&6; }
7155 test -n "$AWK" && break
7158 # We need awk to create options.c and options.h.
7159 # Bail out if it's missing.
7161 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7165 $as_echo_n "checking whether ln -s works... " >&6; }
7166 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7167 $as_echo_n "(cached) " >&6
7169 rm -f conftestdata_t
7170 echo >conftestdata_f
7171 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7173 gcc_cv_prog_LN_S="ln -s"
7175 if ln conftestdata_f conftestdata_t 2>/dev/null
7179 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7181 gcc_cv_prog_LN_S="cp -p"
7187 rm -f conftestdata_f conftestdata_t
7190 LN_S="$gcc_cv_prog_LN_S"
7191 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7193 $as_echo "yes" >&6; }
7195 if test "$gcc_cv_prog_LN_S" = "ln"; then
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7197 $as_echo "no, using ln" >&6; }
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7200 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7205 $as_echo_n "checking whether ln works... " >&6; }
7206 if test "${acx_cv_prog_LN+set}" = set; then :
7207 $as_echo_n "(cached) " >&6
7209 rm -f conftestdata_t
7210 echo >conftestdata_f
7211 if ln conftestdata_f conftestdata_t 2>/dev/null
7217 rm -f conftestdata_f conftestdata_t
7220 if test $acx_cv_prog_LN = no; then
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7223 $as_echo "no, using $LN" >&6; }
7225 LN="$acx_cv_prog_LN"
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7227 $as_echo "yes" >&6; }
7230 if test -n "$ac_tool_prefix"; then
7231 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7232 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7234 $as_echo_n "checking for $ac_word... " >&6; }
7235 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7236 $as_echo_n "(cached) " >&6
7238 if test -n "$RANLIB"; then
7239 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245 test -z "$as_dir" && as_dir=.
7246 for ac_exec_ext in '' $ac_executable_extensions; do
7247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7248 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7258 RANLIB=$ac_cv_prog_RANLIB
7259 if test -n "$RANLIB"; then
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7261 $as_echo "$RANLIB" >&6; }
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7264 $as_echo "no" >&6; }
7269 if test -z "$ac_cv_prog_RANLIB"; then
7270 ac_ct_RANLIB=$RANLIB
7271 # Extract the first word of "ranlib", so it can be a program name with args.
7272 set dummy ranlib; ac_word=$2
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7274 $as_echo_n "checking for $ac_word... " >&6; }
7275 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7276 $as_echo_n "(cached) " >&6
7278 if test -n "$ac_ct_RANLIB"; then
7279 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7285 test -z "$as_dir" && as_dir=.
7286 for ac_exec_ext in '' $ac_executable_extensions; do
7287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7288 ac_cv_prog_ac_ct_RANLIB="ranlib"
7289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7298 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7299 if test -n "$ac_ct_RANLIB"; then
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7301 $as_echo "$ac_ct_RANLIB" >&6; }
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7304 $as_echo "no" >&6; }
7307 if test "x$ac_ct_RANLIB" = x; then
7310 case $cross_compiling:$ac_tool_warned in
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7313 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7314 ac_tool_warned=yes ;;
7316 RANLIB=$ac_ct_RANLIB
7319 RANLIB="$ac_cv_prog_RANLIB"
7324 # By default, the Darwin ranlib will not treat common symbols as
7325 # definitions when building the archive table of contents. Other
7326 # ranlibs do that; pass an option to the Darwin ranlib that makes
7327 # it behave similarly.
7335 # Find a good install program. We prefer a C program (faster),
7336 # so one script is as good as another. But avoid the broken or
7337 # incompatible versions:
7338 # SysV /etc/install, /usr/sbin/install
7339 # SunOS /usr/etc/install
7340 # IRIX /sbin/install
7342 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7343 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7344 # ./install, which can be erroneously created by make from ./install.sh.
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7346 $as_echo_n "checking for a BSD compatible install... " >&6; }
7347 if test -z "$INSTALL"; then
7348 if test "${ac_cv_path_install+set}" = set; then :
7349 $as_echo_n "(cached) " >&6
7351 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7352 for ac_dir in $PATH; do
7353 # Account for people who put trailing slashes in PATH elements.
7355 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7357 # OSF1 and SCO ODT 3.0 have their own names for install.
7358 for ac_prog in ginstall scoinst install; do
7359 if test -f $ac_dir/$ac_prog; then
7360 if test $ac_prog = install &&
7361 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7362 # AIX install. It has an incompatible calling convention.
7363 # OSF/1 installbsd also uses dspmsg, but is usable.
7366 ac_cv_path_install="$ac_dir/$ac_prog -c"
7377 if test "${ac_cv_path_install+set}" = set; then
7378 INSTALL="$ac_cv_path_install"
7380 # As a last resort, use the slow shell script. We don't cache a
7381 # path for INSTALL within a source directory, because that will
7382 # break other packages using the cache if that directory is
7383 # removed, or if the path is relative.
7384 INSTALL="$ac_install_sh"
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7388 $as_echo "$INSTALL" >&6; }
7390 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7391 # It thinks the first close brace ends the variable substitution.
7392 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7394 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7397 # See if cmp has --ignore-initial.
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7399 $as_echo_n "checking for cmp's capabilities... " >&6; }
7400 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7401 $as_echo_n "(cached) " >&6
7405 gcc_cv_prog_cmp_skip=slowcompare
7406 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7407 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7410 gcc_cv_prog_cmp_skip=gnucompare
7413 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7414 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7415 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7418 gcc_cv_prog_cmp_skip=fastcompare
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7426 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7427 make_compare_target=$gcc_cv_prog_cmp_skip
7431 # See if we have the mktemp command.
7432 # Extract the first word of "mktemp", so it can be a program name with args.
7433 set dummy mktemp; ac_word=$2
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7435 $as_echo_n "checking for $ac_word... " >&6; }
7436 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7437 $as_echo_n "(cached) " >&6
7439 if test -n "$have_mktemp_command"; then
7440 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446 test -z "$as_dir" && as_dir=.
7447 for ac_exec_ext in '' $ac_executable_extensions; do
7448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7449 ac_cv_prog_have_mktemp_command="yes"
7450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7457 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7460 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7461 if test -n "$have_mktemp_command"; then
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7463 $as_echo "$have_mktemp_command" >&6; }
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7466 $as_echo "no" >&6; }
7471 # See if makeinfo has been installed and is modern enough
7472 # that we can use it.
7474 # Extract the first word of "makeinfo", so it can be a program name with args.
7475 set dummy makeinfo; ac_word=$2
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7477 $as_echo_n "checking for $ac_word... " >&6; }
7478 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7479 $as_echo_n "(cached) " >&6
7481 if test -n "$MAKEINFO"; then
7482 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7488 test -z "$as_dir" && as_dir=.
7489 for ac_exec_ext in '' $ac_executable_extensions; do
7490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7491 ac_cv_prog_MAKEINFO="makeinfo"
7492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7501 MAKEINFO=$ac_cv_prog_MAKEINFO
7502 if test -n "$MAKEINFO"; then
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7504 $as_echo "$MAKEINFO" >&6; }
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7507 $as_echo "no" >&6; }
7511 if test -n "$MAKEINFO"; then
7512 # Found it, now check the version.
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7514 $as_echo_n "checking for modern makeinfo... " >&6; }
7515 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7516 $as_echo_n "(cached) " >&6
7518 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7519 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7521 case $ac_prog_version in
7522 '') gcc_cv_prog_makeinfo_modern=no;;
7523 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7524 *) gcc_cv_prog_makeinfo_modern=no;;
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7529 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7531 gcc_cv_prog_makeinfo_modern=no
7533 if test $gcc_cv_prog_makeinfo_modern = no; then
7534 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7537 if test $gcc_cv_prog_makeinfo_modern = no; then
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7539 *** Makeinfo is missing or too old.
7540 *** Info documentation will not be built." >&5
7541 $as_echo "$as_me: WARNING:
7542 *** Makeinfo is missing or too old.
7543 *** Info documentation will not be built." >&2;}
7550 # Is pod2man recent enough to regenerate manpages?
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7552 $as_echo_n "checking for recent Pod::Man... " >&6; }
7553 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7555 $as_echo "yes" >&6; }
7556 GENERATED_MANPAGES=generated-manpages
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7559 $as_echo "no" >&6; }
7564 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7569 # Extract the first word of "$ac_prog", so it can be a program name with args.
7570 set dummy $ac_prog; ac_word=$2
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7572 $as_echo_n "checking for $ac_word... " >&6; }
7573 if test "${ac_cv_prog_FLEX+set}" = set; then :
7574 $as_echo_n "(cached) " >&6
7576 if test -n "$FLEX"; then
7577 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7583 test -z "$as_dir" && as_dir=.
7584 for ac_exec_ext in '' $ac_executable_extensions; do
7585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7586 ac_cv_prog_FLEX="$ac_prog"
7587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7596 FLEX=$ac_cv_prog_FLEX
7597 if test -n "$FLEX"; then
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7599 $as_echo "$FLEX" >&6; }
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7602 $as_echo "no" >&6; }
7606 test -n "$FLEX" && break
7608 test -n "$FLEX" || FLEX="$MISSING flex"
7612 for ac_prog in bison
7614 # Extract the first word of "$ac_prog", so it can be a program name with args.
7615 set dummy $ac_prog; ac_word=$2
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7617 $as_echo_n "checking for $ac_word... " >&6; }
7618 if test "${ac_cv_prog_BISON+set}" = set; then :
7619 $as_echo_n "(cached) " >&6
7621 if test -n "$BISON"; then
7622 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7628 test -z "$as_dir" && as_dir=.
7629 for ac_exec_ext in '' $ac_executable_extensions; do
7630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7631 ac_cv_prog_BISON="$ac_prog"
7632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7641 BISON=$ac_cv_prog_BISON
7642 if test -n "$BISON"; then
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7644 $as_echo "$BISON" >&6; }
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7647 $as_echo "no" >&6; }
7651 test -n "$BISON" && break
7653 test -n "$BISON" || BISON="$MISSING bison"
7656 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7657 # check for build == host before using them.
7660 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7661 && test -d ../binutils ; then
7662 NM='$(objdir)/../binutils/nm-new'
7664 # Extract the first word of "nm", so it can be a program name with args.
7665 set dummy nm; ac_word=$2
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7667 $as_echo_n "checking for $ac_word... " >&6; }
7668 if test "${ac_cv_prog_NM+set}" = set; then :
7669 $as_echo_n "(cached) " >&6
7671 if test -n "$NM"; then
7672 ac_cv_prog_NM="$NM" # Let the user override the test.
7674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678 test -z "$as_dir" && as_dir=.
7679 for ac_exec_ext in '' $ac_executable_extensions; do
7680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7689 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7693 if test -n "$NM"; then
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7695 $as_echo "$NM" >&6; }
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7698 $as_echo "no" >&6; }
7705 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7706 && test -d ../binutils ; then
7707 AR='$(objdir)/../binutils/ar'
7709 # Extract the first word of "ar", so it can be a program name with args.
7710 set dummy ar; ac_word=$2
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7712 $as_echo_n "checking for $ac_word... " >&6; }
7713 if test "${ac_cv_prog_AR+set}" = set; then :
7714 $as_echo_n "(cached) " >&6
7716 if test -n "$AR"; then
7717 ac_cv_prog_AR="$AR" # Let the user override the test.
7719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7723 test -z "$as_dir" && as_dir=.
7724 for ac_exec_ext in '' $ac_executable_extensions; do
7725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7734 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7738 if test -n "$AR"; then
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7740 $as_echo "$AR" >&6; }
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7743 $as_echo "no" >&6; }
7750 # --------------------
7751 # Checks for C headers
7752 # --------------------
7754 # Need to reject headers which give warnings, so that the -Werror bootstrap
7755 # works later. *sigh* This needs to come before all header checks.
7757 ac_c_preproc_warn_flag=yes
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7760 $as_echo_n "checking for ANSI C header files... " >&6; }
7761 if test "${ac_cv_header_stdc+set}" = set; then :
7762 $as_echo_n "(cached) " >&6
7764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7765 /* end confdefs.h. */
7779 if ac_fn_c_try_compile "$LINENO"; then :
7780 ac_cv_header_stdc=yes
7782 ac_cv_header_stdc=no
7784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7786 if test $ac_cv_header_stdc = yes; then
7787 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7789 /* end confdefs.h. */
7793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7794 $EGREP "memchr" >/dev/null 2>&1; then :
7797 ac_cv_header_stdc=no
7803 if test $ac_cv_header_stdc = yes; then
7804 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7806 /* end confdefs.h. */
7810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7811 $EGREP "free" >/dev/null 2>&1; then :
7814 ac_cv_header_stdc=no
7820 if test $ac_cv_header_stdc = yes; then
7821 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7822 if test "$cross_compiling" = yes; then :
7825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7826 /* end confdefs.h. */
7829 #if ((' ' & 0x0FF) == 0x020)
7830 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7831 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7833 # define ISLOWER(c) \
7834 (('a' <= (c) && (c) <= 'i') \
7835 || ('j' <= (c) && (c) <= 'r') \
7836 || ('s' <= (c) && (c) <= 'z'))
7837 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7840 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7845 for (i = 0; i < 256; i++)
7846 if (XOR (islower (i), ISLOWER (i))
7847 || toupper (i) != TOUPPER (i))
7852 if ac_fn_c_try_run "$LINENO"; then :
7855 ac_cv_header_stdc=no
7857 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7858 conftest.$ac_objext conftest.beam conftest.$ac_ext
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7864 $as_echo "$ac_cv_header_stdc" >&6; }
7865 if test $ac_cv_header_stdc = yes; then
7867 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7872 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7873 if test "${ac_cv_header_time+set}" = set; then :
7874 $as_echo_n "(cached) " >&6
7876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7877 /* end confdefs.h. */
7878 #include <sys/types.h>
7879 #include <sys/time.h>
7885 if ((struct tm *) 0)
7891 if ac_fn_c_try_compile "$LINENO"; then :
7892 ac_cv_header_time=yes
7894 ac_cv_header_time=no
7896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7899 $as_echo "$ac_cv_header_time" >&6; }
7900 if test $ac_cv_header_time = yes; then
7902 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
7907 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
7908 if test "${gcc_cv_header_string+set}" = set; then :
7909 $as_echo_n "(cached) " >&6
7911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7912 /* end confdefs.h. */
7914 #include <strings.h>
7923 if ac_fn_c_try_compile "$LINENO"; then :
7924 gcc_cv_header_string=yes
7926 gcc_cv_header_string=no
7928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
7931 $as_echo "$gcc_cv_header_string" >&6; }
7932 if test $gcc_cv_header_string = yes; then
7934 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7939 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7940 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7941 $as_echo_n "(cached) " >&6
7943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7944 /* end confdefs.h. */
7945 #include <sys/types.h>
7946 #include <sys/wait.h>
7948 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7951 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7959 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7964 if ac_fn_c_try_compile "$LINENO"; then :
7965 ac_cv_header_sys_wait_h=yes
7967 ac_cv_header_sys_wait_h=no
7969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7972 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7973 if test $ac_cv_header_sys_wait_h = yes; then
7975 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7979 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
7980 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
7981 sys/resource.h sys/param.h sys/times.h sys/stat.h \
7982 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
7984 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7985 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
7986 eval as_val=\$$as_ac_Header
7987 if test "x$as_val" = x""yes; then :
7988 cat >>confdefs.h <<_ACEOF
7989 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7996 # Check for thread headers.
7997 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
7998 if test "x$ac_cv_header_thread_h" = x""yes; then :
8004 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8005 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8012 # These tests can't be done till we know if we have limits.h.
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8014 $as_echo_n "checking for CHAR_BIT... " >&6; }
8015 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8016 $as_echo_n "(cached) " >&6
8018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8019 /* end confdefs.h. */
8020 #ifdef HAVE_LIMITS_H
8027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8028 $EGREP "found" >/dev/null 2>&1; then :
8029 gcc_cv_decl_char_bit=yes
8031 gcc_cv_decl_char_bit=no
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8038 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8039 if test $gcc_cv_decl_char_bit = no; then
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8041 $as_echo_n "checking number of bits in a byte... " >&6; }
8042 if test "${gcc_cv_c_nbby+set}" = set; then :
8043 $as_echo_n "(cached) " >&6
8047 while test $i -lt 65; do
8048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8049 /* end confdefs.h. */
8055 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8056 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8062 if ac_fn_c_try_compile "$LINENO"; then :
8063 gcc_cv_c_nbby=$i; break
8065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8068 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8072 $as_echo "$gcc_cv_c_nbby" >&6; }
8073 if test $gcc_cv_c_nbby = failed; then
8074 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8077 cat >>confdefs.h <<_ACEOF
8078 #define CHAR_BIT $gcc_cv_c_nbby
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8084 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8085 if test "${ac_cv_c_bigendian+set}" = set; then :
8086 $as_echo_n "(cached) " >&6
8088 ac_cv_c_bigendian=unknown
8089 # See if we're dealing with a universal compiler.
8090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8091 /* end confdefs.h. */
8092 #ifndef __APPLE_CC__
8093 not a universal capable compiler
8098 if ac_fn_c_try_compile "$LINENO"; then :
8100 # Check for potential -arch flags. It is not universal unless
8101 # there are at least two -arch flags with different values.
8104 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8105 if test -n "$ac_prev"; then
8107 i?86 | x86_64 | ppc | ppc64)
8108 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8111 ac_cv_c_bigendian=universal
8117 elif test "x$ac_word" = "x-arch"; then
8122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8123 if test $ac_cv_c_bigendian = unknown; then
8124 # See if sys/param.h defines the BYTE_ORDER macro.
8125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8126 /* end confdefs.h. */
8127 #include <sys/types.h>
8128 #include <sys/param.h>
8133 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8134 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8143 if ac_fn_c_try_compile "$LINENO"; then :
8144 # It does; now see whether it defined to BIG_ENDIAN or not.
8145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8146 /* end confdefs.h. */
8147 #include <sys/types.h>
8148 #include <sys/param.h>
8153 #if BYTE_ORDER != BIG_ENDIAN
8161 if ac_fn_c_try_compile "$LINENO"; then :
8162 ac_cv_c_bigendian=yes
8164 ac_cv_c_bigendian=no
8166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8170 if test $ac_cv_c_bigendian = unknown; then
8171 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8173 /* end confdefs.h. */
8179 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8187 if ac_fn_c_try_compile "$LINENO"; then :
8188 # It does; now see whether it defined to _BIG_ENDIAN or not.
8189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8190 /* end confdefs.h. */
8204 if ac_fn_c_try_compile "$LINENO"; then :
8205 ac_cv_c_bigendian=yes
8207 ac_cv_c_bigendian=no
8209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8213 if test $ac_cv_c_bigendian = unknown; then
8214 # Compile a test program.
8215 if test "$cross_compiling" = yes; then :
8216 # Try to guess by grepping values from an object file.
8217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8218 /* end confdefs.h. */
8219 short int ascii_mm[] =
8220 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8221 short int ascii_ii[] =
8222 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8223 int use_ascii (int i) {
8224 return ascii_mm[i] + ascii_ii[i];
8226 short int ebcdic_ii[] =
8227 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8228 short int ebcdic_mm[] =
8229 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8230 int use_ebcdic (int i) {
8231 return ebcdic_mm[i] + ebcdic_ii[i];
8238 return use_ascii (foo) == use_ebcdic (foo);
8243 if ac_fn_c_try_compile "$LINENO"; then :
8244 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8245 ac_cv_c_bigendian=yes
8247 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8248 if test "$ac_cv_c_bigendian" = unknown; then
8249 ac_cv_c_bigendian=no
8251 # finding both strings is unlikely to happen, but who knows?
8252 ac_cv_c_bigendian=unknown
8256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8259 /* end confdefs.h. */
8260 $ac_includes_default
8265 /* Are we little or big endian? From Harbison&Steele. */
8269 char c[sizeof (long int)];
8272 return u.c[sizeof (long int) - 1] == 1;
8278 if ac_fn_c_try_run "$LINENO"; then :
8279 ac_cv_c_bigendian=no
8281 ac_cv_c_bigendian=yes
8283 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8284 conftest.$ac_objext conftest.beam conftest.$ac_ext
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8290 $as_echo "$ac_cv_c_bigendian" >&6; }
8291 case $ac_cv_c_bigendian in #(
8293 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8299 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8303 as_fn_error "unknown endianness
8304 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8313 # These libraries may be used by collect2.
8314 # We may need a special search path to get them linked.
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8316 $as_echo_n "checking for collect2 libraries... " >&6; }
8317 if test "${gcc_cv_collect2_libs+set}" = set; then :
8318 $as_echo_n "(cached) " >&6
8321 for libs in '' -lld -lmld \
8322 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8323 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327 /* end confdefs.h. */
8329 /* Override any GCC internal prototype to avoid an error.
8330 Use char because int might match the return type of a GCC
8331 builtin and then its argument prototype would still apply. */
8344 if ac_fn_c_try_link "$LINENO"; then :
8345 gcc_cv_collect2_libs="$libs"; break
8347 rm -f core conftest.err conftest.$ac_objext \
8348 conftest$ac_exeext conftest.$ac_ext
8351 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8354 $as_echo "$gcc_cv_collect2_libs" >&6; }
8355 case $gcc_cv_collect2_libs in
8357 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8361 # When building Ada code on Alpha, we need exc_resume which is usually in
8362 # -lexc. So test for it.
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8366 $as_echo_n "checking for library containing exc_resume... " >&6; }
8367 if test "${ac_cv_search_exc_resume+set}" = set; then :
8368 $as_echo_n "(cached) " >&6
8370 ac_func_search_save_LIBS=$LIBS
8371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8372 /* end confdefs.h. */
8374 /* Override any GCC internal prototype to avoid an error.
8375 Use char because int might match the return type of a GCC
8376 builtin and then its argument prototype would still apply. */
8384 return exc_resume ();
8389 for ac_lib in '' exc; do
8390 if test -z "$ac_lib"; then
8391 ac_res="none required"
8394 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8396 if ac_fn_c_try_link "$LINENO"; then :
8397 ac_cv_search_exc_resume=$ac_res
8399 rm -f core conftest.err conftest.$ac_objext \
8401 if test "${ac_cv_search_exc_resume+set}" = set; then :
8405 if test "${ac_cv_search_exc_resume+set}" = set; then :
8408 ac_cv_search_exc_resume=no
8411 LIBS=$ac_func_search_save_LIBS
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8414 $as_echo "$ac_cv_search_exc_resume" >&6; }
8415 ac_res=$ac_cv_search_exc_resume
8416 if test "$ac_res" != no; then :
8417 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8425 # Some systems put ldexp and frexp in libm instead of libc; assume
8426 # they're both in the same place. jcf-dump needs them.
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8430 $as_echo_n "checking for library containing ldexp... " >&6; }
8431 if test "${ac_cv_search_ldexp+set}" = set; then :
8432 $as_echo_n "(cached) " >&6
8434 ac_func_search_save_LIBS=$LIBS
8435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8436 /* end confdefs.h. */
8438 /* Override any GCC internal prototype to avoid an error.
8439 Use char because int might match the return type of a GCC
8440 builtin and then its argument prototype would still apply. */
8453 for ac_lib in '' m; do
8454 if test -z "$ac_lib"; then
8455 ac_res="none required"
8458 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8460 if ac_fn_c_try_link "$LINENO"; then :
8461 ac_cv_search_ldexp=$ac_res
8463 rm -f core conftest.err conftest.$ac_objext \
8465 if test "${ac_cv_search_ldexp+set}" = set; then :
8469 if test "${ac_cv_search_ldexp+set}" = set; then :
8472 ac_cv_search_ldexp=no
8475 LIBS=$ac_func_search_save_LIBS
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8478 $as_echo "$ac_cv_search_ldexp" >&6; }
8479 ac_res=$ac_cv_search_ldexp
8480 if test "$ac_res" != no; then :
8481 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8489 # Use <inttypes.h> only if it exists,
8490 # doesn't clash with <sys/types.h>, and declares intmax_t.
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8492 $as_echo_n "checking for inttypes.h... " >&6; }
8493 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8494 $as_echo_n "(cached) " >&6
8496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8497 /* end confdefs.h. */
8498 #include <sys/types.h>
8499 #include <inttypes.h>
8508 if ac_fn_c_try_compile "$LINENO"; then :
8509 gcc_cv_header_inttypes_h=yes
8511 gcc_cv_header_inttypes_h=no
8513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8517 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8518 if test $gcc_cv_header_inttypes_h = yes; then
8520 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8526 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
8527 sysconf strsignal getrusage nl_langinfo \
8528 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
8529 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
8531 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8532 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8533 eval as_val=\$$as_ac_var
8534 if test "x$as_val" = x""yes; then :
8535 cat >>confdefs.h <<_ACEOF
8536 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8543 if test x$ac_cv_func_mbstowcs = xyes; then
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8545 $as_echo_n "checking whether mbstowcs works... " >&6; }
8546 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8547 $as_echo_n "(cached) " >&6
8549 if test "$cross_compiling" = yes; then :
8550 gcc_cv_func_mbstowcs_works=yes
8552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8553 /* end confdefs.h. */
8561 if ac_fn_c_try_run "$LINENO"; then :
8562 gcc_cv_func_mbstowcs_works=yes
8564 gcc_cv_func_mbstowcs_works=no
8566 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8567 conftest.$ac_objext conftest.beam conftest.$ac_ext
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8572 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8573 if test x$gcc_cv_func_mbstowcs_works = xyes; then
8575 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8580 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8581 if test "x$ac_cv_type_ssize_t" = x""yes; then :
8585 cat >>confdefs.h <<_ACEOF
8591 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8592 if test "x$ac_cv_type_caddr_t" = x""yes; then :
8596 cat >>confdefs.h <<_ACEOF
8597 #define caddr_t char *
8604 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8605 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
8606 gcc_header_sys_mman_h=yes
8608 gcc_header_sys_mman_h=no
8611 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8612 if test "x$ac_cv_func_mmap" = x""yes; then :
8618 if test "$gcc_header_sys_mman_h" != yes \
8619 || test "$gcc_func_mmap" != yes; then
8620 gcc_cv_func_mmap_file=no
8621 gcc_cv_func_mmap_dev_zero=no
8622 gcc_cv_func_mmap_anon=no
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8625 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8626 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8627 $as_echo_n "(cached) " >&6
8629 # Add a system to this blacklist if
8630 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8631 # memory area containing the same data that you'd get if you applied
8632 # read() to the same fd. The only system known to have a problem here
8633 # is VMS, where text files have record structure.
8636 gcc_cv_func_mmap_file=no ;;
8638 gcc_cv_func_mmap_file=yes;;
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8642 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8644 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8645 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8646 $as_echo_n "(cached) " >&6
8648 # Add a system to this blacklist if it has mmap() but /dev/zero
8649 # does not exist, or if mmapping /dev/zero does not give anonymous
8650 # zeroed pages with both the following properties:
8651 # 1. If you map N consecutive pages in with one call, and then
8652 # unmap any subset of those pages, the pages that were not
8653 # explicitly unmapped remain accessible.
8654 # 2. If you map two adjacent blocks of memory and then unmap them
8655 # both at once, they must both go away.
8656 # Systems known to be in this category are Windows (all variants),
8659 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
8660 gcc_cv_func_mmap_dev_zero=no ;;
8662 gcc_cv_func_mmap_dev_zero=yes;;
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8666 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8668 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8670 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8671 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8672 $as_echo_n "(cached) " >&6
8674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8675 /* end confdefs.h. */
8676 #include <sys/types.h>
8677 #include <sys/mman.h>
8680 #ifndef MAP_ANONYMOUS
8681 #define MAP_ANONYMOUS MAP_ANON
8687 int n = MAP_ANONYMOUS;
8692 if ac_fn_c_try_compile "$LINENO"; then :
8693 gcc_cv_decl_map_anon=yes
8695 gcc_cv_decl_map_anon=no
8697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
8700 $as_echo "$gcc_cv_decl_map_anon" >&6; }
8702 if test $gcc_cv_decl_map_anon = no; then
8703 gcc_cv_func_mmap_anon=no
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
8706 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
8707 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
8708 $as_echo_n "(cached) " >&6
8710 # Add a system to this blacklist if it has mmap() and MAP_ANON or
8711 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
8712 # doesn't give anonymous zeroed pages with the same properties listed
8713 # above for use of /dev/zero.
8714 # Systems known to be in this category are Windows, VMS, and SCO Unix.
8716 vms* | cygwin* | pe | mingw* | sco* | udk* )
8717 gcc_cv_func_mmap_anon=no ;;
8719 gcc_cv_func_mmap_anon=yes;;
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
8723 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
8727 if test $gcc_cv_func_mmap_file = yes; then
8729 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
8732 if test $gcc_cv_func_mmap_dev_zero = yes; then
8734 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
8737 if test $gcc_cv_func_mmap_anon = yes; then
8739 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
8746 # Under VMS, vfork works very differently than on Unix. The standard test
8747 # won't work, and it isn't easily adaptable. It makes more sense to
8749 ac_cv_func_vfork_works=yes
8752 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8753 if test "x$ac_cv_type_pid_t" = x""yes; then :
8757 cat >>confdefs.h <<_ACEOF
8763 for ac_header in vfork.h
8765 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
8766 if test "x$ac_cv_header_vfork_h" = x""yes; then :
8767 cat >>confdefs.h <<_ACEOF
8768 #define HAVE_VFORK_H 1
8774 for ac_func in fork vfork
8776 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8777 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8778 eval as_val=\$$as_ac_var
8779 if test "x$as_val" = x""yes; then :
8780 cat >>confdefs.h <<_ACEOF
8781 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8787 if test "x$ac_cv_func_fork" = xyes; then
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8789 $as_echo_n "checking for working fork... " >&6; }
8790 if test "${ac_cv_func_fork_works+set}" = set; then :
8791 $as_echo_n "(cached) " >&6
8793 if test "$cross_compiling" = yes; then :
8794 ac_cv_func_fork_works=cross
8796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8797 /* end confdefs.h. */
8798 $ac_includes_default
8803 /* By Ruediger Kuhlmann. */
8810 if ac_fn_c_try_run "$LINENO"; then :
8811 ac_cv_func_fork_works=yes
8813 ac_cv_func_fork_works=no
8815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8816 conftest.$ac_objext conftest.beam conftest.$ac_ext
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8821 $as_echo "$ac_cv_func_fork_works" >&6; }
8824 ac_cv_func_fork_works=$ac_cv_func_fork
8826 if test "x$ac_cv_func_fork_works" = xcross; then
8828 *-*-amigaos* | *-*-msdosdjgpp*)
8829 # Override, as these systems have only a dummy fork() stub
8830 ac_cv_func_fork_works=no
8833 ac_cv_func_fork_works=yes
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8837 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8839 ac_cv_func_vfork_works=$ac_cv_func_vfork
8840 if test "x$ac_cv_func_vfork" = xyes; then
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8842 $as_echo_n "checking for working vfork... " >&6; }
8843 if test "${ac_cv_func_vfork_works+set}" = set; then :
8844 $as_echo_n "(cached) " >&6
8846 if test "$cross_compiling" = yes; then :
8847 ac_cv_func_vfork_works=cross
8849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8850 /* end confdefs.h. */
8851 /* Thanks to Paul Eggert for this test. */
8852 $ac_includes_default
8853 #include <sys/wait.h>
8857 /* On some sparc systems, changes by the child to local and incoming
8858 argument registers are propagated back to the parent. The compiler
8859 is told about this with #include <vfork.h>, but some compilers
8860 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8861 static variable whose address is put into a register that is
8862 clobbered by the vfork. */
8865 sparc_address_test (int arg)
8867 sparc_address_test (arg) int arg;
8888 pid_t parent = getpid ();
8891 sparc_address_test (0);
8896 /* Here is another test for sparc vfork register problems. This
8897 test uses lots of local variables, at least as many local
8898 variables as main has allocated so far including compiler
8899 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8900 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8901 reuse the register of parent for one of the local variables,
8902 since it will think that parent can't possibly be used any more
8903 in this routine. Assigning to the local variable will thus
8904 munge parent in the parent process. */
8906 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8907 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8908 /* Convince the compiler that p..p7 are live; otherwise, it might
8909 use the same hardware register for all 8 local variables. */
8910 if (p != p1 || p != p2 || p != p3 || p != p4
8911 || p != p5 || p != p6 || p != p7)
8914 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8915 from child file descriptors. If the child closes a descriptor
8916 before it execs or exits, this munges the parent's descriptor
8917 as well. Test for this by closing stdout in the child. */
8918 _exit(close(fileno(stdout)) != 0);
8923 while (wait(&status) != child)
8926 /* Was there some problem with vforking? */
8929 /* Did the child fail? (This shouldn't happen.) */
8932 /* Did the vfork/compiler bug occur? */
8933 || parent != getpid()
8935 /* Did the file descriptor bug occur? */
8936 || fstat(fileno(stdout), &st) != 0
8941 if ac_fn_c_try_run "$LINENO"; then :
8942 ac_cv_func_vfork_works=yes
8944 ac_cv_func_vfork_works=no
8946 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8947 conftest.$ac_objext conftest.beam conftest.$ac_ext
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8952 $as_echo "$ac_cv_func_vfork_works" >&6; }
8955 if test "x$ac_cv_func_fork_works" = xcross; then
8956 ac_cv_func_vfork_works=$ac_cv_func_vfork
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8958 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8961 if test "x$ac_cv_func_vfork_works" = xyes; then
8963 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8967 $as_echo "#define vfork fork" >>confdefs.h
8970 if test "x$ac_cv_func_fork_works" = xyes; then
8972 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8978 if test "X$prefix" = "XNONE"; then
8979 acl_final_prefix="$ac_default_prefix"
8981 acl_final_prefix="$prefix"
8983 if test "X$exec_prefix" = "XNONE"; then
8984 acl_final_exec_prefix='${prefix}'
8986 acl_final_exec_prefix="$exec_prefix"
8988 acl_save_prefix="$prefix"
8989 prefix="$acl_final_prefix"
8990 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8991 prefix="$acl_save_prefix"
8994 # Check whether --with-gnu-ld was given.
8995 if test "${with_gnu_ld+set}" = set; then :
8996 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9001 # Prepare PATH_SEPARATOR.
9002 # The user is always right.
9003 if test "${PATH_SEPARATOR+set}" != set; then
9004 echo "#! /bin/sh" >conf$$.sh
9005 echo "exit 0" >>conf$$.sh
9007 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9015 if test "$GCC" = yes; then
9016 # Check if gcc -print-prog-name=ld gives a path.
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9018 $as_echo_n "checking for ld used by GCC... " >&6; }
9021 # gcc leaves a trailing carriage return which upsets mingw
9022 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9024 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9027 # Accept absolute paths.
9028 [\\/]* | [A-Za-z]:[\\/]*)
9029 re_direlt='/[^/][^/]*/\.\./'
9030 # Canonicalize the path of ld
9031 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9032 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9033 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9035 test -z "$LD" && LD="$ac_prog"
9038 # If it fails, then pretend we aren't using GCC.
9042 # If it is relative, then search for the first ld in PATH.
9046 elif test "$with_gnu_ld" = yes; then
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9048 $as_echo_n "checking for GNU ld... " >&6; }
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9051 $as_echo_n "checking for non-GNU ld... " >&6; }
9053 if test "${acl_cv_path_LD+set}" = set; then :
9054 $as_echo_n "(cached) " >&6
9056 if test -z "$LD"; then
9057 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9058 for ac_dir in $PATH; do
9059 test -z "$ac_dir" && ac_dir=.
9060 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9061 acl_cv_path_LD="$ac_dir/$ac_prog"
9062 # Check to see if the program is GNU ld. I'd rather use --version,
9063 # but apparently some GNU ld's only accept -v.
9064 # Break only if it was the GNU/non-GNU ld that we prefer.
9065 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9066 test "$with_gnu_ld" != no && break
9068 test "$with_gnu_ld" != yes && break
9074 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9078 LD="$acl_cv_path_LD"
9079 if test -n "$LD"; then
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9081 $as_echo "$LD" >&6; }
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9084 $as_echo "no" >&6; }
9086 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9088 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9089 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9090 $as_echo_n "(cached) " >&6
9092 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9093 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9094 acl_cv_prog_gnu_ld=yes
9096 acl_cv_prog_gnu_ld=no
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9100 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9101 with_gnu_ld=$acl_cv_prog_gnu_ld
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9106 $as_echo_n "checking for shared library run path origin... " >&6; }
9107 if test "${acl_cv_rpath+set}" = set; then :
9108 $as_echo_n "(cached) " >&6
9111 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9112 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9119 $as_echo "$acl_cv_rpath" >&6; }
9121 libext="$acl_cv_libext"
9122 shlibext="$acl_cv_shlibext"
9123 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9124 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9125 hardcode_direct="$acl_cv_hardcode_direct"
9126 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9127 # Check whether --enable-rpath was given.
9128 if test "${enable_rpath+set}" = set; then :
9129 enableval=$enable_rpath; :
9143 acl_save_prefix="$prefix"
9144 prefix="$acl_final_prefix"
9145 acl_save_exec_prefix="$exec_prefix"
9146 exec_prefix="$acl_final_exec_prefix"
9148 eval additional_includedir=\"$includedir\"
9149 eval additional_libdir=\"$libdir\"
9151 exec_prefix="$acl_save_exec_prefix"
9152 prefix="$acl_save_prefix"
9155 # Check whether --with-libiconv-prefix was given.
9156 if test "${with_libiconv_prefix+set}" = set; then :
9157 withval=$with_libiconv_prefix;
9158 if test "X$withval" = "Xno"; then
9161 if test "X$withval" = "X"; then
9163 acl_save_prefix="$prefix"
9164 prefix="$acl_final_prefix"
9165 acl_save_exec_prefix="$exec_prefix"
9166 exec_prefix="$acl_final_exec_prefix"
9168 eval additional_includedir=\"$includedir\"
9169 eval additional_libdir=\"$libdir\"
9171 exec_prefix="$acl_save_exec_prefix"
9172 prefix="$acl_save_prefix"
9175 additional_includedir="$withval/include"
9176 additional_libdir="$withval/lib"
9187 names_already_handled=
9188 names_next_round='iconv '
9189 while test -n "$names_next_round"; do
9190 names_this_round="$names_next_round"
9192 for name in $names_this_round; do
9194 for n in $names_already_handled; do
9195 if test "$n" = "$name"; then
9200 if test -z "$already_handled"; then
9201 names_already_handled="$names_already_handled $name"
9202 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9203 eval value=\"\$HAVE_LIB$uppername\"
9204 if test -n "$value"; then
9205 if test "$value" = yes; then
9206 eval value=\"\$LIB$uppername\"
9207 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9208 eval value=\"\$LTLIB$uppername\"
9209 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9218 if test $use_additional = yes; then
9219 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9220 found_dir="$additional_libdir"
9221 found_so="$additional_libdir/lib$name.$shlibext"
9222 if test -f "$additional_libdir/lib$name.la"; then
9223 found_la="$additional_libdir/lib$name.la"
9226 if test -f "$additional_libdir/lib$name.$libext"; then
9227 found_dir="$additional_libdir"
9228 found_a="$additional_libdir/lib$name.$libext"
9229 if test -f "$additional_libdir/lib$name.la"; then
9230 found_la="$additional_libdir/lib$name.la"
9235 if test "X$found_dir" = "X"; then
9236 for x in $LDFLAGS $LTLIBICONV; do
9238 acl_save_prefix="$prefix"
9239 prefix="$acl_final_prefix"
9240 acl_save_exec_prefix="$exec_prefix"
9241 exec_prefix="$acl_final_exec_prefix"
9243 exec_prefix="$acl_save_exec_prefix"
9244 prefix="$acl_save_prefix"
9248 dir=`echo "X$x" | sed -e 's/^X-L//'`
9249 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9251 found_so="$dir/lib$name.$shlibext"
9252 if test -f "$dir/lib$name.la"; then
9253 found_la="$dir/lib$name.la"
9256 if test -f "$dir/lib$name.$libext"; then
9258 found_a="$dir/lib$name.$libext"
9259 if test -f "$dir/lib$name.la"; then
9260 found_la="$dir/lib$name.la"
9266 if test "X$found_dir" != "X"; then
9271 if test "X$found_dir" != "X"; then
9272 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9273 if test "X$found_so" != "X"; then
9274 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9275 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9278 for x in $ltrpathdirs; do
9279 if test "X$x" = "X$found_dir"; then
9284 if test -z "$haveit"; then
9285 ltrpathdirs="$ltrpathdirs $found_dir"
9287 if test "$hardcode_direct" = yes; then
9288 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9290 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9291 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9293 for x in $rpathdirs; do
9294 if test "X$x" = "X$found_dir"; then
9299 if test -z "$haveit"; then
9300 rpathdirs="$rpathdirs $found_dir"
9304 for x in $LDFLAGS $LIBICONV; do
9306 acl_save_prefix="$prefix"
9307 prefix="$acl_final_prefix"
9308 acl_save_exec_prefix="$exec_prefix"
9309 exec_prefix="$acl_final_exec_prefix"
9311 exec_prefix="$acl_save_exec_prefix"
9312 prefix="$acl_save_prefix"
9314 if test "X$x" = "X-L$found_dir"; then
9319 if test -z "$haveit"; then
9320 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9322 if test "$hardcode_minus_L" != no; then
9323 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9325 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9331 if test "X$found_a" != "X"; then
9332 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9334 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9337 additional_includedir=
9338 case "$found_dir" in
9340 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9341 additional_includedir="$basedir/include"
9344 if test "X$additional_includedir" != "X"; then
9345 if test "X$additional_includedir" != "X/usr/include"; then
9347 if test "X$additional_includedir" = "X/usr/local/include"; then
9348 if test -n "$GCC"; then
9350 linux*) haveit=yes;;
9354 if test -z "$haveit"; then
9355 for x in $CPPFLAGS $INCICONV; do
9357 acl_save_prefix="$prefix"
9358 prefix="$acl_final_prefix"
9359 acl_save_exec_prefix="$exec_prefix"
9360 exec_prefix="$acl_final_exec_prefix"
9362 exec_prefix="$acl_save_exec_prefix"
9363 prefix="$acl_save_prefix"
9365 if test "X$x" = "X-I$additional_includedir"; then
9370 if test -z "$haveit"; then
9371 if test -d "$additional_includedir"; then
9372 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9378 if test -n "$found_la"; then
9379 save_libdir="$libdir"
9381 */* | *\\*) . "$found_la" ;;
9382 *) . "./$found_la" ;;
9384 libdir="$save_libdir"
9385 for dep in $dependency_libs; do
9388 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9389 if test "X$additional_libdir" != "X/usr/lib"; then
9391 if test "X$additional_libdir" = "X/usr/local/lib"; then
9392 if test -n "$GCC"; then
9394 linux*) haveit=yes;;
9398 if test -z "$haveit"; then
9400 for x in $LDFLAGS $LIBICONV; do
9402 acl_save_prefix="$prefix"
9403 prefix="$acl_final_prefix"
9404 acl_save_exec_prefix="$exec_prefix"
9405 exec_prefix="$acl_final_exec_prefix"
9407 exec_prefix="$acl_save_exec_prefix"
9408 prefix="$acl_save_prefix"
9410 if test "X$x" = "X-L$additional_libdir"; then
9415 if test -z "$haveit"; then
9416 if test -d "$additional_libdir"; then
9417 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9421 for x in $LDFLAGS $LTLIBICONV; do
9423 acl_save_prefix="$prefix"
9424 prefix="$acl_final_prefix"
9425 acl_save_exec_prefix="$exec_prefix"
9426 exec_prefix="$acl_final_exec_prefix"
9428 exec_prefix="$acl_save_exec_prefix"
9429 prefix="$acl_save_prefix"
9431 if test "X$x" = "X-L$additional_libdir"; then
9436 if test -z "$haveit"; then
9437 if test -d "$additional_libdir"; then
9438 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9445 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9446 if test "$enable_rpath" != no; then
9448 for x in $rpathdirs; do
9449 if test "X$x" = "X$dir"; then
9454 if test -z "$haveit"; then
9455 rpathdirs="$rpathdirs $dir"
9458 for x in $ltrpathdirs; do
9459 if test "X$x" = "X$dir"; then
9464 if test -z "$haveit"; then
9465 ltrpathdirs="$ltrpathdirs $dir"
9470 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9473 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9476 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9477 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9483 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9484 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9490 if test "X$rpathdirs" != "X"; then
9491 if test -n "$hardcode_libdir_separator"; then
9493 for found_dir in $rpathdirs; do
9494 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9496 acl_save_libdir="$libdir"
9498 eval flag=\"$hardcode_libdir_flag_spec\"
9499 libdir="$acl_save_libdir"
9500 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9502 for found_dir in $rpathdirs; do
9503 acl_save_libdir="$libdir"
9505 eval flag=\"$hardcode_libdir_flag_spec\"
9506 libdir="$acl_save_libdir"
9507 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9511 if test "X$ltrpathdirs" != "X"; then
9512 for found_dir in $ltrpathdirs; do
9513 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9523 am_save_CPPFLAGS="$CPPFLAGS"
9525 for element in $INCICONV; do
9527 for x in $CPPFLAGS; do
9529 acl_save_prefix="$prefix"
9530 prefix="$acl_final_prefix"
9531 acl_save_exec_prefix="$exec_prefix"
9532 exec_prefix="$acl_final_exec_prefix"
9534 exec_prefix="$acl_save_exec_prefix"
9535 prefix="$acl_save_prefix"
9537 if test "X$x" = "X$element"; then
9542 if test -z "$haveit"; then
9543 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9549 $as_echo_n "checking for iconv... " >&6; }
9550 if test "${am_cv_func_iconv+set}" = set; then :
9551 $as_echo_n "(cached) " >&6
9554 am_cv_func_iconv="no, consider installing GNU libiconv"
9556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9557 /* end confdefs.h. */
9563 iconv_t cd = iconv_open("","");
9564 iconv(cd,NULL,NULL,NULL,NULL);
9570 if ac_fn_c_try_link "$LINENO"; then :
9571 am_cv_func_iconv=yes
9573 rm -f core conftest.err conftest.$ac_objext \
9574 conftest$ac_exeext conftest.$ac_ext
9575 if test "$am_cv_func_iconv" != yes; then
9576 am_save_LIBS="$LIBS"
9577 LIBS="$LIBS $LIBICONV"
9578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9579 /* end confdefs.h. */
9585 iconv_t cd = iconv_open("","");
9586 iconv(cd,NULL,NULL,NULL,NULL);
9592 if ac_fn_c_try_link "$LINENO"; then :
9594 am_cv_func_iconv=yes
9596 rm -f core conftest.err conftest.$ac_objext \
9597 conftest$ac_exeext conftest.$ac_ext
9598 LIBS="$am_save_LIBS"
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9603 $as_echo "$am_cv_func_iconv" >&6; }
9604 if test "$am_cv_func_iconv" = yes; then
9606 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9609 if test "$am_cv_lib_iconv" = yes; then
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9611 $as_echo_n "checking how to link with libiconv... " >&6; }
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9613 $as_echo "$LIBICONV" >&6; }
9615 CPPFLAGS="$am_save_CPPFLAGS"
9622 if test "$am_cv_func_iconv" = yes; then
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9624 $as_echo_n "checking for iconv declaration... " >&6; }
9625 if test "${am_cv_proto_iconv+set}" = set; then :
9626 $as_echo_n "(cached) " >&6
9629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9630 /* end confdefs.h. */
9638 #if defined(__STDC__) || defined(__cplusplus)
9639 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9652 if ac_fn_c_try_compile "$LINENO"; then :
9653 am_cv_proto_iconv_arg1=""
9655 am_cv_proto_iconv_arg1="const"
9657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9658 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);"
9661 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9663 }$am_cv_proto_iconv" >&5
9665 }$am_cv_proto_iconv" >&6; }
9667 cat >>confdefs.h <<_ACEOF
9668 #define ICONV_CONST $am_cv_proto_iconv_arg1
9673 # Until we have in-tree GNU iconv:
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9679 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9680 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9681 $as_echo_n "(cached) " >&6
9683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9684 /* end confdefs.h. */
9694 if ac_fn_c_try_link "$LINENO"; then :
9695 am_cv_val_LC_MESSAGES=yes
9697 am_cv_val_LC_MESSAGES=no
9699 rm -f core conftest.err conftest.$ac_objext \
9700 conftest$ac_exeext conftest.$ac_ext
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9703 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9704 if test $am_cv_val_LC_MESSAGES = yes; then
9706 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9713 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9714 if test "${am_cv_langinfo_codeset+set}" = set; then :
9715 $as_echo_n "(cached) " >&6
9717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9718 /* end confdefs.h. */
9719 #include <langinfo.h>
9723 char* cs = nl_langinfo(CODESET);
9728 if ac_fn_c_try_link "$LINENO"; then :
9729 am_cv_langinfo_codeset=yes
9731 am_cv_langinfo_codeset=no
9733 rm -f core conftest.err conftest.$ac_objext \
9734 conftest$ac_exeext conftest.$ac_ext
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9738 $as_echo "$am_cv_langinfo_codeset" >&6; }
9739 if test $am_cv_langinfo_codeset = yes; then
9741 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9746 # We will need to find libiberty.h and ansidecl.h
9747 saved_CFLAGS="$CFLAGS"
9748 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
9749 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
9750 strsignal strstr strverscmp \
9751 errno snprintf vsnprintf vasprintf malloc realloc calloc \
9752 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
9754 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9756 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9757 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9758 $as_echo_n "(cached) " >&6
9760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9761 /* end confdefs.h. */
9763 #define $ac_tr_decl 1
9765 #include "ansidecl.h"
9772 char *(*pfn) = (char *(*)) $ac_func ;
9778 if ac_fn_c_try_compile "$LINENO"; then :
9779 eval "gcc_cv_have_decl_$ac_func=yes"
9781 eval "gcc_cv_have_decl_$ac_func=no"
9783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9786 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9788 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9789 #define $ac_tr_decl 1
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9794 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9795 #define $ac_tr_decl 0
9803 for ac_func in getrlimit setrlimit getrusage
9805 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9807 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9808 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9809 $as_echo_n "(cached) " >&6
9811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9812 /* end confdefs.h. */
9814 #define $ac_tr_decl 1
9816 #include "ansidecl.h"
9818 #ifdef HAVE_SYS_RESOURCE_H
9819 #include <sys/resource.h>
9827 char *(*pfn) = (char *(*)) $ac_func ;
9833 if ac_fn_c_try_compile "$LINENO"; then :
9834 eval "gcc_cv_have_decl_$ac_func=yes"
9836 eval "gcc_cv_have_decl_$ac_func=no"
9838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9841 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9843 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9844 #define $ac_tr_decl 1
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9849 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9850 #define $ac_tr_decl 0
9858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9859 /* end confdefs.h. */
9861 #include "ansidecl.h"
9863 #ifdef HAVE_SYS_RESOURCE_H
9864 #include <sys/resource.h>
9875 if ac_fn_c_try_compile "$LINENO"; then :
9879 $as_echo "#define rlim_t long" >>confdefs.h
9882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9884 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
9885 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
9886 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
9887 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
9888 for ac_func in ldgetname
9890 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9892 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9893 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9894 $as_echo_n "(cached) " >&6
9896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9897 /* end confdefs.h. */
9899 #define $ac_tr_decl 1
9901 #include "ansidecl.h"
9914 char *(*pfn) = (char *(*)) $ac_func ;
9920 if ac_fn_c_try_compile "$LINENO"; then :
9921 eval "gcc_cv_have_decl_$ac_func=yes"
9923 eval "gcc_cv_have_decl_$ac_func=no"
9925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9928 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9930 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9931 #define $ac_tr_decl 1
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9936 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9937 #define $ac_tr_decl 0
9945 for ac_func in times
9947 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9949 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9950 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9951 $as_echo_n "(cached) " >&6
9953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9954 /* end confdefs.h. */
9956 #define $ac_tr_decl 1
9958 #include "ansidecl.h"
9960 #ifdef HAVE_SYS_TIMES_H
9961 #include <sys/times.h>
9969 char *(*pfn) = (char *(*)) $ac_func ;
9975 if ac_fn_c_try_compile "$LINENO"; then :
9976 eval "gcc_cv_have_decl_$ac_func=yes"
9978 eval "gcc_cv_have_decl_$ac_func=no"
9980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9983 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9985 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9986 #define $ac_tr_decl 1
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9991 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9992 #define $ac_tr_decl 0
10000 for ac_func in sigaltstack
10002 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10004 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10005 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10006 $as_echo_n "(cached) " >&6
10008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10009 /* end confdefs.h. */
10011 #define $ac_tr_decl 1
10013 #include "ansidecl.h"
10014 #include "system.h"
10015 #include <signal.h>
10022 char *(*pfn) = (char *(*)) $ac_func ;
10028 if ac_fn_c_try_compile "$LINENO"; then :
10029 eval "gcc_cv_have_decl_$ac_func=yes"
10031 eval "gcc_cv_have_decl_$ac_func=no"
10033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10036 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10038 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10039 #define $ac_tr_decl 1
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10044 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10045 #define $ac_tr_decl 0
10053 # More time-related stuff.
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10055 $as_echo_n "checking for struct tms... " >&6; }
10056 if test "${ac_cv_struct_tms+set}" = set; then :
10057 $as_echo_n "(cached) " >&6
10060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10061 /* end confdefs.h. */
10063 #include "ansidecl.h"
10064 #include "system.h"
10065 #ifdef HAVE_SYS_TIMES_H
10066 #include <sys/times.h>
10077 if ac_fn_c_try_compile "$LINENO"; then :
10078 ac_cv_struct_tms=yes
10080 ac_cv_struct_tms=no
10082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10085 $as_echo "$ac_cv_struct_tms" >&6; }
10086 if test $ac_cv_struct_tms = yes; then
10088 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10092 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10093 # revisit after autoconf 2.50.
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10095 $as_echo_n "checking for clock_t... " >&6; }
10096 if test "${gcc_cv_type_clock_t+set}" = set; then :
10097 $as_echo_n "(cached) " >&6
10100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10101 /* end confdefs.h. */
10103 #include "ansidecl.h"
10104 #include "system.h"
10114 if ac_fn_c_try_compile "$LINENO"; then :
10115 gcc_cv_type_clock_t=yes
10117 gcc_cv_type_clock_t=no
10119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10122 $as_echo "$gcc_cv_type_clock_t" >&6; }
10123 if test $gcc_cv_type_clock_t = yes; then
10125 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10129 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10130 CFLAGS="$saved_CFLAGS"
10132 # Check whether --enable-initfini-array was given.
10133 if test "${enable_initfini_array+set}" = set; then :
10134 enableval=$enable_initfini_array;
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10138 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10139 if test "${gcc_cv_initfini_array+set}" = set; then :
10140 $as_echo_n "(cached) " >&6
10142 if test "$cross_compiling" = yes; then :
10143 gcc_cv_initfini_array=no
10145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10146 /* end confdefs.h. */
10149 int main (void) { return x; }
10150 int foo (void) { x = 0; }
10151 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10153 if ac_fn_c_try_run "$LINENO"; then :
10154 gcc_cv_initfini_array=yes
10156 gcc_cv_initfini_array=no
10158 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10159 conftest.$ac_objext conftest.beam conftest.$ac_ext
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10164 $as_echo "$gcc_cv_initfini_array" >&6; }
10165 enable_initfini_array=$gcc_cv_initfini_array
10169 if test $enable_initfini_array = yes; then
10171 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10175 # mkdir takes a single argument on some systems.
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10177 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10178 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10179 $as_echo_n "(cached) " >&6
10181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10182 /* end confdefs.h. */
10184 #include <sys/types.h>
10185 #ifdef HAVE_SYS_STAT_H
10186 # include <sys/stat.h>
10188 #ifdef HAVE_UNISTD_H
10189 # include <unistd.h>
10191 #ifdef HAVE_DIRECT_H
10192 # include <direct.h>
10202 if ac_fn_c_try_compile "$LINENO"; then :
10203 gcc_cv_mkdir_takes_one_arg=no
10205 gcc_cv_mkdir_takes_one_arg=yes
10207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10210 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10211 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10213 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10224 # With Setjmp/Longjmp based exception handling.
10225 # Check whether --enable-sjlj-exceptions was given.
10226 if test "${enable_sjlj_exceptions+set}" = set; then :
10227 enableval=$enable_sjlj_exceptions; case $target in
10229 if test $enableval != yes; then
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10231 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10236 force_sjlj_exceptions=yes
10240 force_sjlj_exceptions=yes
10244 force_sjlj_exceptions=no
10249 if test $force_sjlj_exceptions = yes; then
10250 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10252 cat >>confdefs.h <<_ACEOF
10253 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10258 # For platforms with the unwind ABI which includes an unwind library,
10259 # libunwind, we can choose to use the system libunwind.
10260 # config.gcc also contains tests of with_system_libunwind.
10263 # Check whether --with-system-libunwind was given.
10264 if test "${with_system_libunwind+set}" = set; then :
10265 withval=$with_system_libunwind;
10268 # If system-libunwind was not specifically set, pick a default setting.
10269 if test x$with_system_libunwind = x; then
10271 ia64-*-hpux*) with_system_libunwind=yes ;;
10272 *) with_system_libunwind=no ;;
10275 # Based on system-libunwind and target, do we have ipinfo?
10276 if test x$with_system_libunwind = xyes; then
10278 ia64-*-*) have_unwind_getipinfo=no ;;
10279 *) have_unwind_getipinfo=yes ;;
10282 # Darwin before version 9 does not have _Unwind_GetIPInfo.
10285 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
10286 *) have_unwind_getipinfo=yes ;;
10291 if test x$have_unwind_getipinfo = xyes; then
10293 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10298 # --------------------------------------------------------
10299 # Build, host, and target specific configuration fragments
10300 # --------------------------------------------------------
10302 # Collect build-machine-specific information.
10303 . ${srcdir}/config.build
10305 # Collect host-machine-specific information.
10306 . ${srcdir}/config.host
10310 # Collect target-machine-specific information.
10311 . ${srcdir}/config.gcc
10313 extra_objs="${host_extra_objs} ${extra_objs}"
10314 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10316 # Default the target-machine variables that were not explicitly set.
10317 if test x"$tm_file" = x
10318 then tm_file=$cpu_type/$cpu_type.h; fi
10320 if test x"$extra_headers" = x
10321 then extra_headers=; fi
10323 if test x$md_file = x
10324 then md_file=$cpu_type/$cpu_type.md; fi
10326 if test x$out_file = x
10327 then out_file=$cpu_type/$cpu_type.c; fi
10329 if test x"$tmake_file" = x
10330 then tmake_file=$cpu_type/t-$cpu_type
10333 if test x"$dwarf2" = xyes
10334 then tm_file="$tm_file tm-dwarf2.h"
10337 # Say what files are being used for the output code and MD file.
10338 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10339 echo "Using \`$srcdir/config/$md_file' as machine description file."
10341 # If any of the xm_file variables contain nonexistent files, warn
10342 # about them and drop them.
10345 for x in $build_xm_file; do
10346 if test -f $srcdir/config/$x
10348 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10349 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10352 build_xm_file="$bx"
10355 for x in $host_xm_file; do
10356 if test -f $srcdir/config/$x
10358 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10359 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10365 for x in $xm_file; do
10366 if test -f $srcdir/config/$x
10368 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10369 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10375 for f in $tm_file; do
10378 if test $count = ax; then
10379 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10381 echo "Using the following target machine macro files:"
10382 for f in $tm_file; do
10383 echo " $srcdir/config/$f"
10387 if test x$need_64bit_hwint = xyes; then
10389 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10393 if test x$use_long_long_for_widest_fast_int = xyes; then
10395 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10400 for f in $host_xm_file; do
10403 if test $count = a; then
10405 elif test $count = ax; then
10406 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10408 echo "Using the following host machine macro files:"
10409 for f in $host_xm_file; do
10410 echo " $srcdir/config/$f"
10413 echo "Using ${out_host_hook_obj} for host machine hooks."
10415 if test "$host_xm_file" != "$build_xm_file"; then
10417 for f in $build_xm_file; do
10420 if test $count = a; then
10422 elif test $count = ax; then
10423 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10425 echo "Using the following build machine macro files:"
10426 for f in $build_xm_file; do
10427 echo " $srcdir/config/$f"
10433 powerpc*-*-darwin*)
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10435 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10436 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
10437 $as_echo_n "(cached) " >&6
10439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10440 /* end confdefs.h. */
10442 #include <sys/cdefs.h>
10443 #include <sys/signal.h>
10444 #include <ucontext.h>
10445 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
10448 if ac_fn_c_try_compile "$LINENO"; then :
10449 gcc_cv_mcontext_underscores=no
10451 gcc_cv_mcontext_underscores=yes
10453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
10456 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
10457 if test $gcc_cv_mcontext_underscores = yes; then
10459 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
10469 # Check if a valid thread package
10470 case ${enable_threads} in
10473 target_thread_file='single'
10477 target_thread_file='single'
10479 aix | dce | gnat | irix | posix | posix95 | rtems | \
10480 single | solaris | vxworks | win32 | mipssde)
10481 target_thread_file=${enable_threads}
10484 echo "${enable_threads} is an unknown thread package" 1>&2
10489 if test x${thread_file} = x; then
10490 # No thread file set by target-specific clauses in config.gcc,
10491 # so use file chosen by default logic above
10492 thread_file=${target_thread_file}
10495 # Make gthr-default.h if we have a thread file.
10497 if test $thread_file != single; then
10498 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10499 if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
10500 rm -f gthr-default.h-t
10502 mv -f gthr-default.h-t gthr-default.h
10504 gthread_flags=-DHAVE_GTHR_DEFAULT
10513 if test x$enable___cxa_atexit = xyes || \
10514 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
10515 if test x$host = x$target; then
10517 # mingw32 doesn't have __cxa_atexit but uses atexit registration
10518 # keyed to flag_use_cxa_atexit
10523 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10524 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
10527 echo "__cxa_atexit can't be enabled on this target"
10533 # We can't check for __cxa_atexit when building a cross, so assume
10537 if test x$use_cxa_atexit = xyes; then
10539 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10544 # Look for a file containing extra machine modes.
10545 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
10546 extra_modes_file='$(srcdir)'/config/${extra_modes}
10549 cat >>confdefs.h <<_ACEOF
10550 #define EXTRA_MODES_FILE "config/$extra_modes"
10555 # Convert extra_options into a form suitable for Makefile use.
10557 for f in $extra_options; do
10558 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
10562 # auto-host.h is the file containing items generated by autoconf and is
10563 # the first file included by config.h.
10564 # If host=build, it is correct to have bconfig include auto-host.h
10565 # as well. If host!=build, we are in error and need to do more
10566 # work to find out the build config parameters.
10567 if test x$host = x$build
10569 build_auto=auto-host.h
10571 # We create a subdir, then run autoconf in the subdir.
10572 # To prevent recursion we set host and build for the new
10573 # invocation of configure to the build for this invocation
10580 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
10581 *) realsrcdir=../${srcdir};;
10583 saved_CFLAGS="${CFLAGS}"
10584 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
10585 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
10586 ${realsrcdir}/configure \
10587 --enable-languages=${enable_languages-all} \
10588 --target=$target_alias --host=$build_alias --build=$build_alias
10589 CFLAGS="${saved_CFLAGS}"
10591 # We just finished tests for the build machine, so rename
10592 # the file auto-build.h in the gcc directory.
10593 mv auto-host.h ../auto-build.h
10596 build_auto=auto-build.h
10600 tm_file="${tm_file} defaults.h"
10601 tm_p_file="${tm_p_file} tm-preds.h"
10602 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
10603 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
10604 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
10605 # put this back in temporarily.
10606 xm_file="auto-host.h ansidecl.h ${xm_file}"
10612 # Compile in configure arguments.
10613 if test -f configargs.h ; then
10614 # Being re-configured.
10615 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
10616 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
10618 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
10621 # Double all backslashes and backslash all quotes to turn
10622 # gcc_config_arguments into a C string.
10623 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
10624 $gcc_config_arguments
10626 gcc_config_arguments_str=`cat conftest.out`
10629 cat > configargs.h <<EOF
10630 /* Generated automatically. */
10631 static const char configuration_arguments[] = "$gcc_config_arguments_str";
10632 static const char thread_model[] = "$thread_file";
10634 static const struct {
10635 const char *name, *value;
10636 } configure_default_options[] = $configure_default_options;
10639 gcc_BASEVER=`cat $srcdir/BASE-VER`
10640 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
10641 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
10642 if test -f $srcdir/REVISION ; then
10643 gcc_REVISION=`cat $srcdir/REVISION`
10647 cat > plugin-version.h <<EOF
10648 #include "configargs.h"
10650 static char basever[] = "$gcc_BASEVER";
10651 static char datestamp[] = "$gcc_DATESTAMP";
10652 static char devphase[] = "$gcc_DEVPHASE";
10653 static char revision[] = "$gcc_REVISION";
10655 /* FIXME plugins: We should make the version information more precise.
10656 One way to do is to add a checksum. */
10658 static struct plugin_gcc_version gcc_version = {basever, datestamp,
10659 devphase, revision,
10660 configuration_arguments};
10663 # Internationalization
10664 # If we haven't got the data from the intl directory,
10665 # assume NLS is disabled.
10674 if test -f ../intl/config.intl; then
10675 . ../intl/config.intl
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10678 $as_echo_n "checking whether NLS is requested... " >&6; }
10679 if test x"$USE_NLS" != xyes; then
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10681 $as_echo "no" >&6; }
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10684 $as_echo "yes" >&6; }
10686 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
10690 $as_echo_n "checking for catalogs to be installed... " >&6; }
10691 # Look for .po and .gmo files in the source directory.
10694 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10695 # If there aren't any .gmo files the shell will give us the
10696 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10698 case "$cat" in *\**)
10701 # The quadruple backslash is collapsed to a double backslash
10702 # by the backticks, then collapsed again by the double quotes,
10703 # leaving us with one backslash in the sed expression (right
10704 # before the dot that mustn't act as a wildcard).
10705 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10706 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10707 # The user is allowed to set LINGUAS to a list of languages to
10708 # install catalogs for. If it's empty that means "all of them."
10709 if test "x$LINGUAS" = x; then
10710 CATALOGS="$CATALOGS $cat"
10711 XLINGUAS="$XLINGUAS $lang"
10713 case "$LINGUAS" in *$lang*)
10714 CATALOGS="$CATALOGS $cat"
10715 XLINGUAS="$XLINGUAS $lang"
10720 LINGUAS="$XLINGUAS"
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
10722 $as_echo "$LINGUAS" >&6; }
10735 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
10736 # -liconv on the link line twice.
10737 case "$LIBINTL" in *$LIBICONV*)
10741 # Check whether --enable-secureplt was given.
10742 if test "${enable_secureplt+set}" = set; then :
10743 enableval=$enable_secureplt;
10747 # Check whether --enable-cld was given.
10748 if test "${enable_cld+set}" = set; then :
10749 enableval=$enable_cld;
10755 # Windows32 Registry support for specifying GCC installation paths.
10756 # Check whether --enable-win32-registry was given.
10757 if test "${enable_win32_registry+set}" = set; then :
10758 enableval=$enable_win32_registry;
10763 win32 | pe | cygwin* | mingw32* | uwin*)
10764 if test "x$enable_win32_registry" != xno; then
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
10766 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
10767 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10768 $as_echo_n "(cached) " >&6
10770 ac_func_search_save_LIBS=$LIBS
10771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10772 /* end confdefs.h. */
10774 /* Override any GCC internal prototype to avoid an error.
10775 Use char because int might match the return type of a GCC
10776 builtin and then its argument prototype would still apply. */
10780 char RegOpenKeyExA ();
10784 return RegOpenKeyExA ();
10789 for ac_lib in '' advapi32; do
10790 if test -z "$ac_lib"; then
10791 ac_res="none required"
10794 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10796 if ac_fn_c_try_link "$LINENO"; then :
10797 ac_cv_search_RegOpenKeyExA=$ac_res
10799 rm -f core conftest.err conftest.$ac_objext \
10801 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10805 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10808 ac_cv_search_RegOpenKeyExA=no
10810 rm conftest.$ac_ext
10811 LIBS=$ac_func_search_save_LIBS
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
10814 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
10815 ac_res=$ac_cv_search_RegOpenKeyExA
10816 if test "$ac_res" != no; then :
10817 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10820 enable_win32_registry=no
10825 if test "x$enable_win32_registry" != xno; then
10827 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
10830 if test "x$enable_win32_registry" != xyes \
10831 && test "x$enable_win32_registry" != x; then
10833 cat >>confdefs.h <<_ACEOF
10834 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
10842 # Get an absolute path to the GCC top-level source directory
10843 holddir=`${PWDCMD-pwd}`
10845 topdir=`${PWDCMD-pwd}`
10848 # Conditionalize the makefile for this host machine.
10850 for f in ${host_xmake_file}
10852 if test -f ${srcdir}/config/$f
10854 xmake_file="${xmake_file} \$(srcdir)/config/$f"
10858 # Conditionalize the makefile for this target machine.
10860 for f in ${tmake_file}
10862 if test -f ${srcdir}/config/$f
10864 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
10867 tmake_file="${tmake_file_}"
10869 out_object_file=`basename $out_file .c`.o
10871 tm_file_list="options.h"
10872 tm_include_list="options.h"
10873 for f in $tm_file; do
10876 f=`echo $f | sed 's/^..//'`
10877 tm_file_list="${tm_file_list} $f"
10878 tm_include_list="${tm_include_list} $f"
10881 tm_file_list="${tm_file_list} \$(srcdir)/$f"
10882 tm_include_list="${tm_include_list} $f"
10885 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
10886 tm_include_list="${tm_include_list} config/$f"
10893 for f in $tm_p_file; do
10896 tm_p_file_list="${tm_p_file_list} $f"
10897 tm_p_include_list="${tm_p_include_list} $f"
10900 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
10901 tm_p_include_list="${tm_p_include_list} config/$f"
10907 for f in $xm_file; do
10910 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
10911 xm_include_list="${xm_include_list} $f"
10914 xm_file_list="${xm_file_list} $f"
10915 xm_include_list="${xm_include_list} $f"
10918 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
10919 xm_include_list="${xm_include_list} config/$f"
10925 host_xm_include_list=
10926 for f in $host_xm_file; do
10929 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
10930 host_xm_include_list="${host_xm_include_list} $f"
10933 host_xm_file_list="${host_xm_file_list} $f"
10934 host_xm_include_list="${host_xm_include_list} $f"
10937 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
10938 host_xm_include_list="${host_xm_include_list} config/$f"
10943 build_xm_file_list=
10944 for f in $build_xm_file; do
10947 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
10948 build_xm_include_list="${build_xm_include_list} $f"
10950 auto-build.h | auto-host.h )
10951 build_xm_file_list="${build_xm_file_list} $f"
10952 build_xm_include_list="${build_xm_include_list} $f"
10955 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
10956 build_xm_include_list="${build_xm_include_list} config/$f"
10961 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
10962 # cross-compiler which does not use the native headers and libraries.
10963 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
10966 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10968 if test "x$with_build_sysroot" != x; then
10969 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
10971 # This value is used, even on a native system, because
10972 # CROSS_SYSTEM_HEADER_DIR is just
10973 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
10974 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
10977 if test x$host != x$target
10979 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
10981 SYSTEM_HEADER_DIR=$build_system_header_dir
10982 case "$host","$target" in
10983 # Darwin crosses can use the host system's libraries and headers,
10984 # because of the fat library support. Of course, it must be the
10985 # same version of Darwin on both sides. Allow the user to
10986 # just say --target=foo-darwin without a version number to mean
10987 # "the version on this system".
10988 *-*-darwin*,*-*-darwin*)
10989 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
10990 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
10991 if test $hostos = $targetos -o $targetos = darwin ; then
10993 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10998 i?86-*-*,x86_64-*-* \
10999 | powerpc*-*-*,powerpc64*-*-*)
11000 CROSS="$CROSS -DNATIVE_CROSS" ;;
11002 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11003 SYSTEM_HEADER_DIR=$build_system_header_dir
11006 # If this is a cross-compiler that does not
11007 # have its own set of headers then define
11010 # If this is using newlib, without having the headers available now,
11011 # then define inhibit_libc in LIBGCC2_CFLAGS.
11012 # This prevents libgcc2 from containing any code which requires libc
11014 : ${inhibit_libc=false}
11015 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11016 test x$with_newlib = xyes ; } &&
11017 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11022 # When building gcc with a cross-compiler, we need to adjust things so
11023 # that the generator programs are still built with the native compiler.
11024 # Also, we cannot run fixincludes.
11026 # These are the normal (build=host) settings:
11027 CC_FOR_BUILD='$(CC)'
11028 BUILD_CFLAGS='$(ALL_CFLAGS)'
11029 BUILD_LDFLAGS='$(LDFLAGS)'
11030 STMP_FIXINC=stmp-fixinc
11032 # And these apply if build != host, or we are generating coverage data
11033 if test x$build != x$host || test "x$coverage_flags" != x
11035 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11036 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11039 # Expand extra_headers to include complete path.
11040 # This substitutes for lots of t-* files.
11041 extra_headers_list=
11042 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11043 for file in ${extra_headers} ; do
11044 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11047 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11048 if test x"$use_gcc_tgmath" = xyes
11049 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11052 # Define collect2 in Makefile.
11053 case $host_can_use_collect2 in
11055 *) collect2='collect2$(exeext)' ;;
11059 # Add a definition of USE_COLLECT2 if system wants one.
11060 case $use_collect2 in
11061 no) use_collect2= ;;
11064 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11065 xm_defines="${xm_defines} USE_COLLECT2"
11066 case $host_can_use_collect2 in
11068 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11074 # ---------------------------
11075 # Assembler & linker features
11076 # ---------------------------
11078 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11079 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11080 # However when ld-new is first executed from the build tree, libtool will
11081 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11082 # to the build tree. While doing this we need to use the previous-stage
11083 # linker, or we have an infinite loop. The presence of a shell script as
11084 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11085 # the gcc/collect-ld script. So we need to know how libtool works, or
11086 # exec-tool will fail.
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11092 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11097 macro_version='2.2.6'
11098 macro_revision='1.3012'
11112 ltmain="$ac_aux_dir/ltmain.sh"
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11115 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11116 if test "${ac_cv_path_SED+set}" = set; then :
11117 $as_echo_n "(cached) " >&6
11119 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11120 for ac_i in 1 2 3 4 5 6 7; do
11121 ac_script="$ac_script$as_nl$ac_script"
11123 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11124 { ac_script=; unset ac_script;}
11125 if test -z "$SED"; then
11126 ac_path_SED_found=false
11127 # Loop through the user's path and test for each of PROGNAME-LIST
11128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11129 for as_dir in $PATH
11132 test -z "$as_dir" && as_dir=.
11133 for ac_prog in sed gsed; do
11134 for ac_exec_ext in '' $ac_executable_extensions; do
11135 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11136 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11137 # Check for GNU ac_path_SED and select it if it is found.
11138 # Check for GNU $ac_path_SED
11139 case `"$ac_path_SED" --version 2>&1` in
11141 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11144 $as_echo_n 0123456789 >"conftest.in"
11147 cat "conftest.in" "conftest.in" >"conftest.tmp"
11148 mv "conftest.tmp" "conftest.in"
11149 cp "conftest.in" "conftest.nl"
11150 $as_echo '' >> "conftest.nl"
11151 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11152 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11153 as_fn_arith $ac_count + 1 && ac_count=$as_val
11154 if test $ac_count -gt ${ac_path_SED_max-0}; then
11155 # Best one so far, save it but keep looking for a better one
11156 ac_cv_path_SED="$ac_path_SED"
11157 ac_path_SED_max=$ac_count
11159 # 10*(2^10) chars as input seems more than enough
11160 test $ac_count -gt 10 && break
11162 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11165 $ac_path_SED_found && break 3
11170 if test -z "$ac_cv_path_SED"; then
11171 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11174 ac_cv_path_SED=$SED
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11179 $as_echo "$ac_cv_path_SED" >&6; }
11180 SED="$ac_cv_path_SED"
11183 test -z "$SED" && SED=sed
11184 Xsed="$SED -e 1s/^X//"
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11197 $as_echo_n "checking for fgrep... " >&6; }
11198 if test "${ac_cv_path_FGREP+set}" = set; then :
11199 $as_echo_n "(cached) " >&6
11201 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11202 then ac_cv_path_FGREP="$GREP -F"
11204 if test -z "$FGREP"; then
11205 ac_path_FGREP_found=false
11206 # Loop through the user's path and test for each of PROGNAME-LIST
11207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11208 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11211 test -z "$as_dir" && as_dir=.
11212 for ac_prog in fgrep; do
11213 for ac_exec_ext in '' $ac_executable_extensions; do
11214 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11215 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11216 # Check for GNU ac_path_FGREP and select it if it is found.
11217 # Check for GNU $ac_path_FGREP
11218 case `"$ac_path_FGREP" --version 2>&1` in
11220 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11223 $as_echo_n 0123456789 >"conftest.in"
11226 cat "conftest.in" "conftest.in" >"conftest.tmp"
11227 mv "conftest.tmp" "conftest.in"
11228 cp "conftest.in" "conftest.nl"
11229 $as_echo 'FGREP' >> "conftest.nl"
11230 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11231 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11232 as_fn_arith $ac_count + 1 && ac_count=$as_val
11233 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11234 # Best one so far, save it but keep looking for a better one
11235 ac_cv_path_FGREP="$ac_path_FGREP"
11236 ac_path_FGREP_max=$ac_count
11238 # 10*(2^10) chars as input seems more than enough
11239 test $ac_count -gt 10 && break
11241 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11244 $ac_path_FGREP_found && break 3
11249 if test -z "$ac_cv_path_FGREP"; then
11250 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11253 ac_cv_path_FGREP=$FGREP
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11259 $as_echo "$ac_cv_path_FGREP" >&6; }
11260 FGREP="$ac_cv_path_FGREP"
11263 test -z "$GREP" && GREP=grep
11283 # Check whether --with-gnu-ld was given.
11284 if test "${with_gnu_ld+set}" = set; then :
11285 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11291 if test "$GCC" = yes; then
11292 # Check if gcc -print-prog-name=ld gives a path.
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11294 $as_echo_n "checking for ld used by $CC... " >&6; }
11297 # gcc leaves a trailing carriage return which upsets mingw
11298 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11300 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11303 # Accept absolute paths.
11305 re_direlt='/[^/][^/]*/\.\./'
11306 # Canonicalize the pathname of ld
11307 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11308 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11309 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11311 test -z "$LD" && LD="$ac_prog"
11314 # If it fails, then pretend we aren't using GCC.
11318 # If it is relative, then search for the first ld in PATH.
11319 with_gnu_ld=unknown
11322 elif test "$with_gnu_ld" = yes; then
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11324 $as_echo_n "checking for GNU ld... " >&6; }
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11327 $as_echo_n "checking for non-GNU ld... " >&6; }
11329 if test "${lt_cv_path_LD+set}" = set; then :
11330 $as_echo_n "(cached) " >&6
11332 if test -z "$LD"; then
11333 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11334 for ac_dir in $PATH; do
11336 test -z "$ac_dir" && ac_dir=.
11337 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11338 lt_cv_path_LD="$ac_dir/$ac_prog"
11339 # Check to see if the program is GNU ld. I'd rather use --version,
11340 # but apparently some variants of GNU ld only accept -v.
11341 # Break only if it was the GNU/non-GNU ld that we prefer.
11342 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11343 *GNU* | *'with BFD'*)
11344 test "$with_gnu_ld" != no && break
11347 test "$with_gnu_ld" != yes && break
11354 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11358 LD="$lt_cv_path_LD"
11359 if test -n "$LD"; then
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11361 $as_echo "$LD" >&6; }
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11364 $as_echo "no" >&6; }
11366 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11368 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11369 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11370 $as_echo_n "(cached) " >&6
11372 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11373 case `$LD -v 2>&1 </dev/null` in
11374 *GNU* | *'with BFD'*)
11375 lt_cv_prog_gnu_ld=yes
11378 lt_cv_prog_gnu_ld=no
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11383 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11384 with_gnu_ld=$lt_cv_prog_gnu_ld
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11395 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11396 if test "${lt_cv_path_NM+set}" = set; then :
11397 $as_echo_n "(cached) " >&6
11399 if test -n "$NM"; then
11400 # Let the user override the test.
11401 lt_cv_path_NM="$NM"
11403 lt_nm_to_check="${ac_tool_prefix}nm"
11404 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11405 lt_nm_to_check="$lt_nm_to_check nm"
11407 for lt_tmp_nm in $lt_nm_to_check; do
11408 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11409 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11411 test -z "$ac_dir" && ac_dir=.
11412 tmp_nm="$ac_dir/$lt_tmp_nm"
11413 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11414 # Check to see if the nm accepts a BSD-compat flag.
11415 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11416 # nm: unknown option "B" ignored
11417 # Tru64's nm complains that /dev/null is an invalid object file
11418 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11419 */dev/null* | *'Invalid file or object type'*)
11420 lt_cv_path_NM="$tmp_nm -B"
11424 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11426 lt_cv_path_NM="$tmp_nm -p"
11430 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11431 continue # so that we can try to find one that supports BSD flags
11440 : ${lt_cv_path_NM=no}
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11444 $as_echo "$lt_cv_path_NM" >&6; }
11445 if test "$lt_cv_path_NM" != "no"; then
11446 NM="$lt_cv_path_NM"
11448 # Didn't find any BSD compatible name lister, look for dumpbin.
11449 if test -n "$ac_tool_prefix"; then
11450 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
11452 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11453 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11455 $as_echo_n "checking for $ac_word... " >&6; }
11456 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11457 $as_echo_n "(cached) " >&6
11459 if test -n "$DUMPBIN"; then
11460 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11463 for as_dir in $PATH
11466 test -z "$as_dir" && as_dir=.
11467 for ac_exec_ext in '' $ac_executable_extensions; do
11468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11469 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11479 DUMPBIN=$ac_cv_prog_DUMPBIN
11480 if test -n "$DUMPBIN"; then
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11482 $as_echo "$DUMPBIN" >&6; }
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11485 $as_echo "no" >&6; }
11489 test -n "$DUMPBIN" && break
11492 if test -z "$DUMPBIN"; then
11493 ac_ct_DUMPBIN=$DUMPBIN
11494 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
11496 # Extract the first word of "$ac_prog", so it can be a program name with args.
11497 set dummy $ac_prog; ac_word=$2
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11499 $as_echo_n "checking for $ac_word... " >&6; }
11500 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11501 $as_echo_n "(cached) " >&6
11503 if test -n "$ac_ct_DUMPBIN"; then
11504 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11507 for as_dir in $PATH
11510 test -z "$as_dir" && as_dir=.
11511 for ac_exec_ext in '' $ac_executable_extensions; do
11512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11513 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11523 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11524 if test -n "$ac_ct_DUMPBIN"; then
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11526 $as_echo "$ac_ct_DUMPBIN" >&6; }
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11529 $as_echo "no" >&6; }
11533 test -n "$ac_ct_DUMPBIN" && break
11536 if test "x$ac_ct_DUMPBIN" = x; then
11539 case $cross_compiling:$ac_tool_warned in
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11543 ac_tool_warned=yes ;;
11545 DUMPBIN=$ac_ct_DUMPBIN
11550 if test "$DUMPBIN" != ":"; then
11554 test -z "$NM" && NM=nm
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11562 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11563 if test "${lt_cv_nm_interface+set}" = set; then :
11564 $as_echo_n "(cached) " >&6
11566 lt_cv_nm_interface="BSD nm"
11567 echo "int some_variable = 0;" > conftest.$ac_ext
11568 (eval echo "\"\$as_me:11568: $ac_compile\"" >&5)
11569 (eval "$ac_compile" 2>conftest.err)
11570 cat conftest.err >&5
11571 (eval echo "\"\$as_me:11571: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11572 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11573 cat conftest.err >&5
11574 (eval echo "\"\$as_me:11574: output\"" >&5)
11575 cat conftest.out >&5
11576 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11577 lt_cv_nm_interface="MS dumpbin"
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11582 $as_echo "$lt_cv_nm_interface" >&6; }
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11585 $as_echo_n "checking whether ln -s works... " >&6; }
11587 if test "$LN_S" = "ln -s"; then
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11589 $as_echo "yes" >&6; }
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11592 $as_echo "no, using $LN_S" >&6; }
11595 # find the maximum length of command line arguments
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11597 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11598 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
11599 $as_echo_n "(cached) " >&6
11606 # On DJGPP, this test can blow up pretty badly due to problems in libc
11607 # (any single argument exceeding 2000 bytes causes a buffer overrun
11608 # during glob expansion). Even if it were fixed, the result of this
11609 # check would be larger than it should be.
11610 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11614 # Under GNU Hurd, this test is not required because there is
11615 # no limit to the length of command line arguments.
11616 # Libtool will interpret -1 as no limit whatsoever
11617 lt_cv_sys_max_cmd_len=-1;
11620 cygwin* | mingw* | cegcc*)
11621 # On Win9x/ME, this test blows up -- it succeeds, but takes
11622 # about 5 minutes as the teststring grows exponentially.
11623 # Worse, since 9x/ME are not pre-emptively multitasking,
11624 # you end up with a "frozen" computer, even though with patience
11625 # the test eventually succeeds (with a max line length of 256k).
11626 # Instead, let's just punt: use the minimum linelength reported by
11627 # all of the supported platforms: 8192 (on NT/2K/XP).
11628 lt_cv_sys_max_cmd_len=8192;
11632 # On AmigaOS with pdksh, this test takes hours, literally.
11633 # So we just punt and use a minimum line length of 8192.
11634 lt_cv_sys_max_cmd_len=8192;
11637 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11638 # This has been around since 386BSD, at least. Likely further.
11639 if test -x /sbin/sysctl; then
11640 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11641 elif test -x /usr/sbin/sysctl; then
11642 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11644 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11646 # And add a safety zone
11647 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11648 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11652 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11653 lt_cv_sys_max_cmd_len=196608
11657 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11658 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11659 # nice to cause kernel panics so lets avoid the loop below.
11660 # First set a reasonable default.
11661 lt_cv_sys_max_cmd_len=16384
11663 if test -x /sbin/sysconfig; then
11664 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11665 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11670 lt_cv_sys_max_cmd_len=102400
11672 sysv5* | sco5v6* | sysv4.2uw2*)
11673 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11674 if test -n "$kargmax"; then
11675 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11677 lt_cv_sys_max_cmd_len=32768
11681 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11682 if test -n "$lt_cv_sys_max_cmd_len"; then
11683 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11684 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11686 # Make teststring a little bigger before we do anything with it.
11687 # a 1K string should be a reasonable start.
11688 for i in 1 2 3 4 5 6 7 8 ; do
11689 teststring=$teststring$teststring
11691 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11692 # If test is not a shell built-in, we'll probably end up computing a
11693 # maximum length that is only half of the actual maximum length, but
11695 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
11696 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
11697 test $i != 17 # 1/2 MB should be enough
11700 teststring=$teststring$teststring
11702 # Only check the string length outside the loop.
11703 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11705 # Add a significant safety factor because C++ compilers can tack on
11706 # massive amounts of additional arguments before passing them to the
11707 # linker. It appears as though 1/2 is a usable value.
11708 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11715 if test -n $lt_cv_sys_max_cmd_len ; then
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11717 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11720 $as_echo "none" >&6; }
11722 max_cmd_len=$lt_cv_sys_max_cmd_len
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11734 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11735 # Try some XSI features
11737 ( _lt_dummy="a/b/c"
11738 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
11740 && eval 'test $(( 1 + 1 )) -eq 2 \
11741 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11744 $as_echo "$xsi_shell" >&6; }
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11748 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11750 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11752 && lt_shell_append=yes
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11754 $as_echo "$lt_shell_append" >&6; }
11757 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11767 # test EBCDIC or ASCII
11768 case `echo X|tr X '\101'` in
11769 A) # ASCII based system
11770 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11771 lt_SP2NL='tr \040 \012'
11772 lt_NL2SP='tr \015\012 \040\040'
11774 *) # EBCDIC based system
11775 lt_SP2NL='tr \100 \n'
11776 lt_NL2SP='tr \r\n \100\100'
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11789 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11790 if test "${lt_cv_ld_reload_flag+set}" = set; then :
11791 $as_echo_n "(cached) " >&6
11793 lt_cv_ld_reload_flag='-r'
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11796 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11797 reload_flag=$lt_cv_ld_reload_flag
11798 case $reload_flag in
11800 *) reload_flag=" $reload_flag" ;;
11802 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11805 if test "$GCC" = yes; then
11806 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11808 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11821 if test -n "$ac_tool_prefix"; then
11822 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11823 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11825 $as_echo_n "checking for $ac_word... " >&6; }
11826 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
11827 $as_echo_n "(cached) " >&6
11829 if test -n "$OBJDUMP"; then
11830 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11833 for as_dir in $PATH
11836 test -z "$as_dir" && as_dir=.
11837 for ac_exec_ext in '' $ac_executable_extensions; do
11838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11839 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11849 OBJDUMP=$ac_cv_prog_OBJDUMP
11850 if test -n "$OBJDUMP"; then
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11852 $as_echo "$OBJDUMP" >&6; }
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11855 $as_echo "no" >&6; }
11860 if test -z "$ac_cv_prog_OBJDUMP"; then
11861 ac_ct_OBJDUMP=$OBJDUMP
11862 # Extract the first word of "objdump", so it can be a program name with args.
11863 set dummy objdump; ac_word=$2
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11865 $as_echo_n "checking for $ac_word... " >&6; }
11866 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
11867 $as_echo_n "(cached) " >&6
11869 if test -n "$ac_ct_OBJDUMP"; then
11870 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11873 for as_dir in $PATH
11876 test -z "$as_dir" && as_dir=.
11877 for ac_exec_ext in '' $ac_executable_extensions; do
11878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11879 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11889 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11890 if test -n "$ac_ct_OBJDUMP"; then
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11892 $as_echo "$ac_ct_OBJDUMP" >&6; }
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11895 $as_echo "no" >&6; }
11898 if test "x$ac_ct_OBJDUMP" = x; then
11901 case $cross_compiling:$ac_tool_warned in
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11905 ac_tool_warned=yes ;;
11907 OBJDUMP=$ac_ct_OBJDUMP
11910 OBJDUMP="$ac_cv_prog_OBJDUMP"
11913 test -z "$OBJDUMP" && OBJDUMP=objdump
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11924 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11925 if test "${lt_cv_deplibs_check_method+set}" = set; then :
11926 $as_echo_n "(cached) " >&6
11928 lt_cv_file_magic_cmd='$MAGIC_CMD'
11929 lt_cv_file_magic_test_file=
11930 lt_cv_deplibs_check_method='unknown'
11931 # Need to set the preceding variable on all platforms that support
11932 # interlibrary dependencies.
11933 # 'none' -- dependencies not supported.
11934 # `unknown' -- same as none, but documents that we really don't know.
11935 # 'pass_all' -- all dependencies passed with no checks.
11936 # 'test_compile' -- check by making test program.
11937 # 'file_magic [[regex]]' -- check by looking for files in library path
11938 # which responds to the $file_magic_cmd with a given extended regex.
11939 # If you have `file' or equivalent on your system and you're not sure
11940 # whether `pass_all' will *always* work, you probably want this one.
11944 lt_cv_deplibs_check_method=pass_all
11948 lt_cv_deplibs_check_method=pass_all
11952 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11953 lt_cv_file_magic_cmd='/usr/bin/file -L'
11954 lt_cv_file_magic_test_file=/shlib/libc.so
11958 # func_win32_libid is a shell function defined in ltmain.sh
11959 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11960 lt_cv_file_magic_cmd='func_win32_libid'
11964 # Base MSYS/MinGW do not provide the 'file' command needed by
11965 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11966 # unless we find 'file', for example because we are cross-compiling.
11967 if ( file / ) >/dev/null 2>&1; then
11968 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11969 lt_cv_file_magic_cmd='func_win32_libid'
11971 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
11972 lt_cv_file_magic_cmd='$OBJDUMP -f'
11977 # use the weaker test based on 'objdump'. See mingw*.
11978 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11979 lt_cv_file_magic_cmd='$OBJDUMP -f'
11982 darwin* | rhapsody*)
11983 lt_cv_deplibs_check_method=pass_all
11986 freebsd* | dragonfly*)
11987 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11990 # Not sure whether the presence of OpenBSD here was a mistake.
11991 # Let's accept both of them until this is cleared up.
11992 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11993 lt_cv_file_magic_cmd=/usr/bin/file
11994 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11998 lt_cv_deplibs_check_method=pass_all
12003 lt_cv_deplibs_check_method=pass_all
12006 hpux10.20* | hpux11*)
12007 lt_cv_file_magic_cmd=/usr/bin/file
12010 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12011 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12014 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
12015 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12018 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12019 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12025 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12026 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12029 irix5* | irix6* | nonstopux*)
12031 *-32|*"-32 ") libmagic=32-bit;;
12032 *-n32|*"-n32 ") libmagic=N32;;
12033 *-64|*"-64 ") libmagic=64-bit;;
12034 *) libmagic=never-match;;
12036 lt_cv_deplibs_check_method=pass_all
12039 # This must be Linux ELF.
12040 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12041 lt_cv_deplibs_check_method=pass_all
12045 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12046 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12048 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12053 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12054 lt_cv_file_magic_cmd=/usr/bin/file
12055 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12059 lt_cv_deplibs_check_method=pass_all
12063 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12064 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12066 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12070 osf3* | osf4* | osf5*)
12071 lt_cv_deplibs_check_method=pass_all
12075 lt_cv_deplibs_check_method=pass_all
12079 lt_cv_deplibs_check_method=pass_all
12082 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12083 lt_cv_deplibs_check_method=pass_all
12087 case $host_vendor in
12089 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]'
12090 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12093 lt_cv_deplibs_check_method=pass_all
12096 lt_cv_file_magic_cmd='/bin/file'
12097 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12100 lt_cv_file_magic_cmd='/bin/file'
12101 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12102 lt_cv_file_magic_test_file=/lib/libc.so
12105 lt_cv_deplibs_check_method=pass_all
12108 lt_cv_deplibs_check_method=pass_all
12114 lt_cv_deplibs_check_method=pass_all
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12120 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12121 file_magic_cmd=$lt_cv_file_magic_cmd
12122 deplibs_check_method=$lt_cv_deplibs_check_method
12123 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12136 if test -n "$ac_tool_prefix"; then
12137 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12138 set dummy ${ac_tool_prefix}ar; ac_word=$2
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12140 $as_echo_n "checking for $ac_word... " >&6; }
12141 if test "${ac_cv_prog_AR+set}" = set; then :
12142 $as_echo_n "(cached) " >&6
12144 if test -n "$AR"; then
12145 ac_cv_prog_AR="$AR" # Let the user override the test.
12147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12148 for as_dir in $PATH
12151 test -z "$as_dir" && as_dir=.
12152 for ac_exec_ext in '' $ac_executable_extensions; do
12153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12154 ac_cv_prog_AR="${ac_tool_prefix}ar"
12155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12165 if test -n "$AR"; then
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12167 $as_echo "$AR" >&6; }
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12170 $as_echo "no" >&6; }
12175 if test -z "$ac_cv_prog_AR"; then
12177 # Extract the first word of "ar", so it can be a program name with args.
12178 set dummy ar; ac_word=$2
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12180 $as_echo_n "checking for $ac_word... " >&6; }
12181 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12182 $as_echo_n "(cached) " >&6
12184 if test -n "$ac_ct_AR"; then
12185 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12188 for as_dir in $PATH
12191 test -z "$as_dir" && as_dir=.
12192 for ac_exec_ext in '' $ac_executable_extensions; do
12193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12194 ac_cv_prog_ac_ct_AR="ar"
12195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12204 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12205 if test -n "$ac_ct_AR"; then
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12207 $as_echo "$ac_ct_AR" >&6; }
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12210 $as_echo "no" >&6; }
12213 if test "x$ac_ct_AR" = x; then
12216 case $cross_compiling:$ac_tool_warned in
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12219 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12220 ac_tool_warned=yes ;;
12225 AR="$ac_cv_prog_AR"
12228 test -z "$AR" && AR=ar
12229 test -z "$AR_FLAGS" && AR_FLAGS=cru
12241 if test -n "$ac_tool_prefix"; then
12242 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12243 set dummy ${ac_tool_prefix}strip; ac_word=$2
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12245 $as_echo_n "checking for $ac_word... " >&6; }
12246 if test "${ac_cv_prog_STRIP+set}" = set; then :
12247 $as_echo_n "(cached) " >&6
12249 if test -n "$STRIP"; then
12250 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12253 for as_dir in $PATH
12256 test -z "$as_dir" && as_dir=.
12257 for ac_exec_ext in '' $ac_executable_extensions; do
12258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12259 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12269 STRIP=$ac_cv_prog_STRIP
12270 if test -n "$STRIP"; then
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12272 $as_echo "$STRIP" >&6; }
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12275 $as_echo "no" >&6; }
12280 if test -z "$ac_cv_prog_STRIP"; then
12282 # Extract the first word of "strip", so it can be a program name with args.
12283 set dummy strip; ac_word=$2
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12285 $as_echo_n "checking for $ac_word... " >&6; }
12286 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12287 $as_echo_n "(cached) " >&6
12289 if test -n "$ac_ct_STRIP"; then
12290 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12293 for as_dir in $PATH
12296 test -z "$as_dir" && as_dir=.
12297 for ac_exec_ext in '' $ac_executable_extensions; do
12298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12299 ac_cv_prog_ac_ct_STRIP="strip"
12300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12309 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12310 if test -n "$ac_ct_STRIP"; then
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12312 $as_echo "$ac_ct_STRIP" >&6; }
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12315 $as_echo "no" >&6; }
12318 if test "x$ac_ct_STRIP" = x; then
12321 case $cross_compiling:$ac_tool_warned in
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12325 ac_tool_warned=yes ;;
12330 STRIP="$ac_cv_prog_STRIP"
12333 test -z "$STRIP" && STRIP=:
12340 if test -n "$ac_tool_prefix"; then
12341 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12342 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12344 $as_echo_n "checking for $ac_word... " >&6; }
12345 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12346 $as_echo_n "(cached) " >&6
12348 if test -n "$RANLIB"; then
12349 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12352 for as_dir in $PATH
12355 test -z "$as_dir" && as_dir=.
12356 for ac_exec_ext in '' $ac_executable_extensions; do
12357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12358 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12368 RANLIB=$ac_cv_prog_RANLIB
12369 if test -n "$RANLIB"; then
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12371 $as_echo "$RANLIB" >&6; }
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12374 $as_echo "no" >&6; }
12379 if test -z "$ac_cv_prog_RANLIB"; then
12380 ac_ct_RANLIB=$RANLIB
12381 # Extract the first word of "ranlib", so it can be a program name with args.
12382 set dummy ranlib; ac_word=$2
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12384 $as_echo_n "checking for $ac_word... " >&6; }
12385 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12386 $as_echo_n "(cached) " >&6
12388 if test -n "$ac_ct_RANLIB"; then
12389 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12392 for as_dir in $PATH
12395 test -z "$as_dir" && as_dir=.
12396 for ac_exec_ext in '' $ac_executable_extensions; do
12397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12398 ac_cv_prog_ac_ct_RANLIB="ranlib"
12399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12408 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12409 if test -n "$ac_ct_RANLIB"; then
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12411 $as_echo "$ac_ct_RANLIB" >&6; }
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12414 $as_echo "no" >&6; }
12417 if test "x$ac_ct_RANLIB" = x; then
12420 case $cross_compiling:$ac_tool_warned in
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12424 ac_tool_warned=yes ;;
12426 RANLIB=$ac_ct_RANLIB
12429 RANLIB="$ac_cv_prog_RANLIB"
12432 test -z "$RANLIB" && RANLIB=:
12439 # Determine commands to create old-style static archives.
12440 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12441 old_postinstall_cmds='chmod 644 $oldlib'
12442 old_postuninstall_cmds=
12444 if test -n "$RANLIB"; then
12447 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
12450 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
12453 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12489 # If no C compiler was specified, use CC.
12492 # If no C compiler flags were specified, use CFLAGS.
12493 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12495 # Allow CC to be a program name with arguments.
12499 # Check for command to grab the raw symbol name followed by C symbol from nm.
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12501 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12502 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
12503 $as_echo_n "(cached) " >&6
12506 # These are sane defaults that work on at least a few old systems.
12507 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12509 # Character class describing NM global symbol codes.
12510 symcode='[BCDEGRST]'
12512 # Regexp to match symbols that can be accessed directly from C.
12513 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12515 # Define system-specific variables.
12520 cygwin* | mingw* | pw32* | cegcc*)
12521 symcode='[ABCDGISTW]'
12524 if test "$host_cpu" = ia64; then
12525 symcode='[ABCDEGRST]'
12528 irix* | nonstopux*)
12529 symcode='[BCDEGRST]'
12532 symcode='[BCDEGQRST]'
12543 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12551 # If we're using GNU nm, then use its standard symbol codes.
12552 case `$NM -V 2>&1` in
12553 *GNU* | *'with BFD'*)
12554 symcode='[ABCDGIRSTW]' ;;
12557 # Transform an extracted symbol line into a proper C declaration.
12558 # Some systems (esp. on ia64) link data and code symbols differently,
12559 # so use this general approach.
12560 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12562 # Transform an extracted symbol line into symbol name and symbol address
12563 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12564 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'"
12566 # Handle CRLF in mingw tool chain
12570 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12574 # Try without a prefix underscore, then with it.
12575 for ac_symprfx in "" "_"; do
12577 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12578 symxfrm="\\1 $ac_symprfx\\2 \\2"
12580 # Write the raw and C identifiers.
12581 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12582 # Fake it for dumpbin and say T for any non-static function
12583 # and D for any global variable.
12584 # Also find C++ and __fastcall symbols from MSVC++,
12585 # which start with @ or ?.
12586 lt_cv_sys_global_symbol_pipe="$AWK '"\
12587 " {last_section=section; section=\$ 3};"\
12588 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12589 " \$ 0!~/External *\|/{next};"\
12590 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12591 " {if(hide[section]) next};"\
12592 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12593 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12594 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12595 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12596 " ' prfx=^$ac_symprfx"
12598 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12601 # Check to see that the pipe works correctly.
12605 cat > conftest.$ac_ext <<_LT_EOF
12610 void nm_test_func(void);
12611 void nm_test_func(void){}
12615 int main(){nm_test_var='a';nm_test_func();return(0);}
12618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12619 (eval $ac_compile) 2>&5
12621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12622 test $ac_status = 0; }; then
12623 # Now try to grab the symbols.
12625 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
12626 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
12628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12629 test $ac_status = 0; } && test -s "$nlist"; then
12630 # Try sorting and uniquifying the output.
12631 if sort "$nlist" | uniq > "$nlist"T; then
12632 mv -f "$nlist"T "$nlist"
12637 # Make sure that we snagged all the symbols we need.
12638 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12639 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12640 cat <<_LT_EOF > conftest.$ac_ext
12646 # Now generate the symbol file.
12647 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12649 cat <<_LT_EOF >> conftest.$ac_ext
12651 /* The mapping between symbol names and symbols. */
12656 lt__PROGRAM__LTX_preloaded_symbols[] =
12658 { "@PROGRAM@", (void *) 0 },
12660 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12661 cat <<\_LT_EOF >> conftest.$ac_ext
12665 /* This works around a problem in FreeBSD linker */
12666 #ifdef FREEBSD_WORKAROUND
12667 static const void *lt_preloaded_setup() {
12668 return lt__PROGRAM__LTX_preloaded_symbols;
12676 # Now try linking the two files.
12677 mv conftest.$ac_objext conftstm.$ac_objext
12678 lt_save_LIBS="$LIBS"
12679 lt_save_CFLAGS="$CFLAGS"
12680 LIBS="conftstm.$ac_objext"
12681 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12682 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12683 (eval $ac_link) 2>&5
12685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12686 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12689 LIBS="$lt_save_LIBS"
12690 CFLAGS="$lt_save_CFLAGS"
12692 echo "cannot find nm_test_func in $nlist" >&5
12695 echo "cannot find nm_test_var in $nlist" >&5
12698 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12701 echo "$progname: failed program was:" >&5
12702 cat conftest.$ac_ext >&5
12704 rm -rf conftest* conftst*
12706 # Do not use the global_symbol_pipe unless it works.
12707 if test "$pipe_works" = yes; then
12710 lt_cv_sys_global_symbol_pipe=
12716 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12717 lt_cv_sys_global_symbol_to_cdecl=
12719 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12721 $as_echo "failed" >&6; }
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12724 $as_echo "ok" >&6; }
12748 # Check whether --enable-libtool-lock was given.
12749 if test "${enable_libtool_lock+set}" = set; then :
12750 enableval=$enable_libtool_lock;
12753 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12755 # Some flags need to be propagated to the compiler or linker for good
12759 # Find out which ABI we are using.
12760 echo 'int i;' > conftest.$ac_ext
12761 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12762 (eval $ac_compile) 2>&5
12764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12765 test $ac_status = 0; }; then
12766 case `/usr/bin/file conftest.$ac_objext` in
12768 HPUX_IA64_MODE="32"
12771 HPUX_IA64_MODE="64"
12778 # Find out which ABI we are using.
12779 echo '#line 12779 "configure"' > conftest.$ac_ext
12780 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12781 (eval $ac_compile) 2>&5
12783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12784 test $ac_status = 0; }; then
12785 if test "$lt_cv_prog_gnu_ld" = yes; then
12786 case `/usr/bin/file conftest.$ac_objext` in
12788 LD="${LD-ld} -melf32bsmip"
12791 LD="${LD-ld} -melf32bmipn32"
12794 LD="${LD-ld} -melf64bmip"
12798 case `/usr/bin/file conftest.$ac_objext` in
12814 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12815 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12816 # Find out which ABI we are using.
12817 echo 'int i;' > conftest.$ac_ext
12818 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12819 (eval $ac_compile) 2>&5
12821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12822 test $ac_status = 0; }; then
12823 case `/usr/bin/file conftest.o` in
12826 x86_64-*kfreebsd*-gnu)
12827 LD="${LD-ld} -m elf_i386_fbsd"
12830 LD="${LD-ld} -m elf_i386"
12832 ppc64-*linux*|powerpc64-*linux*)
12833 LD="${LD-ld} -m elf32ppclinux"
12836 LD="${LD-ld} -m elf_s390"
12839 LD="${LD-ld} -m elf32_sparc"
12845 x86_64-*kfreebsd*-gnu)
12846 LD="${LD-ld} -m elf_x86_64_fbsd"
12849 LD="${LD-ld} -m elf_x86_64"
12851 ppc*-*linux*|powerpc*-*linux*)
12852 LD="${LD-ld} -m elf64ppc"
12854 s390*-*linux*|s390*-*tpf*)
12855 LD="${LD-ld} -m elf64_s390"
12858 LD="${LD-ld} -m elf64_sparc"
12868 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12869 SAVE_CFLAGS="$CFLAGS"
12870 CFLAGS="$CFLAGS -belf"
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12872 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12873 if test "${lt_cv_cc_needs_belf+set}" = set; then :
12874 $as_echo_n "(cached) " >&6
12877 ac_cpp='$CPP $CPPFLAGS'
12878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12883 /* end confdefs.h. */
12893 if ac_fn_c_try_link "$LINENO"; then :
12894 lt_cv_cc_needs_belf=yes
12896 lt_cv_cc_needs_belf=no
12898 rm -f core conftest.err conftest.$ac_objext \
12899 conftest$ac_exeext conftest.$ac_ext
12901 ac_cpp='$CPP $CPPFLAGS'
12902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12908 $as_echo "$lt_cv_cc_needs_belf" >&6; }
12909 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12910 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12911 CFLAGS="$SAVE_CFLAGS"
12915 # Find out which ABI we are using.
12916 echo 'int i;' > conftest.$ac_ext
12917 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12918 (eval $ac_compile) 2>&5
12920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12921 test $ac_status = 0; }; then
12922 case `/usr/bin/file conftest.o` in
12924 case $lt_cv_prog_gnu_ld in
12925 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12927 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12939 need_locks="$enable_libtool_lock"
12943 rhapsody* | darwin*)
12944 if test -n "$ac_tool_prefix"; then
12945 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12946 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12948 $as_echo_n "checking for $ac_word... " >&6; }
12949 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
12950 $as_echo_n "(cached) " >&6
12952 if test -n "$DSYMUTIL"; then
12953 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12956 for as_dir in $PATH
12959 test -z "$as_dir" && as_dir=.
12960 for ac_exec_ext in '' $ac_executable_extensions; do
12961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12962 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12972 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12973 if test -n "$DSYMUTIL"; then
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12975 $as_echo "$DSYMUTIL" >&6; }
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12978 $as_echo "no" >&6; }
12983 if test -z "$ac_cv_prog_DSYMUTIL"; then
12984 ac_ct_DSYMUTIL=$DSYMUTIL
12985 # Extract the first word of "dsymutil", so it can be a program name with args.
12986 set dummy dsymutil; ac_word=$2
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12988 $as_echo_n "checking for $ac_word... " >&6; }
12989 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
12990 $as_echo_n "(cached) " >&6
12992 if test -n "$ac_ct_DSYMUTIL"; then
12993 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12996 for as_dir in $PATH
12999 test -z "$as_dir" && as_dir=.
13000 for ac_exec_ext in '' $ac_executable_extensions; do
13001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13002 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13012 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13013 if test -n "$ac_ct_DSYMUTIL"; then
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13015 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13018 $as_echo "no" >&6; }
13021 if test "x$ac_ct_DSYMUTIL" = x; then
13024 case $cross_compiling:$ac_tool_warned in
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13028 ac_tool_warned=yes ;;
13030 DSYMUTIL=$ac_ct_DSYMUTIL
13033 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13036 if test -n "$ac_tool_prefix"; then
13037 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13038 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13040 $as_echo_n "checking for $ac_word... " >&6; }
13041 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13042 $as_echo_n "(cached) " >&6
13044 if test -n "$NMEDIT"; then
13045 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13048 for as_dir in $PATH
13051 test -z "$as_dir" && as_dir=.
13052 for ac_exec_ext in '' $ac_executable_extensions; do
13053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13054 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13064 NMEDIT=$ac_cv_prog_NMEDIT
13065 if test -n "$NMEDIT"; then
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13067 $as_echo "$NMEDIT" >&6; }
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13070 $as_echo "no" >&6; }
13075 if test -z "$ac_cv_prog_NMEDIT"; then
13076 ac_ct_NMEDIT=$NMEDIT
13077 # Extract the first word of "nmedit", so it can be a program name with args.
13078 set dummy nmedit; ac_word=$2
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13080 $as_echo_n "checking for $ac_word... " >&6; }
13081 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13082 $as_echo_n "(cached) " >&6
13084 if test -n "$ac_ct_NMEDIT"; then
13085 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13088 for as_dir in $PATH
13091 test -z "$as_dir" && as_dir=.
13092 for ac_exec_ext in '' $ac_executable_extensions; do
13093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13094 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13104 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13105 if test -n "$ac_ct_NMEDIT"; then
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13107 $as_echo "$ac_ct_NMEDIT" >&6; }
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13110 $as_echo "no" >&6; }
13113 if test "x$ac_ct_NMEDIT" = x; then
13116 case $cross_compiling:$ac_tool_warned in
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13120 ac_tool_warned=yes ;;
13122 NMEDIT=$ac_ct_NMEDIT
13125 NMEDIT="$ac_cv_prog_NMEDIT"
13128 if test -n "$ac_tool_prefix"; then
13129 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13130 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13132 $as_echo_n "checking for $ac_word... " >&6; }
13133 if test "${ac_cv_prog_LIPO+set}" = set; then :
13134 $as_echo_n "(cached) " >&6
13136 if test -n "$LIPO"; then
13137 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13140 for as_dir in $PATH
13143 test -z "$as_dir" && as_dir=.
13144 for ac_exec_ext in '' $ac_executable_extensions; do
13145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13146 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13156 LIPO=$ac_cv_prog_LIPO
13157 if test -n "$LIPO"; then
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13159 $as_echo "$LIPO" >&6; }
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13162 $as_echo "no" >&6; }
13167 if test -z "$ac_cv_prog_LIPO"; then
13169 # Extract the first word of "lipo", so it can be a program name with args.
13170 set dummy lipo; ac_word=$2
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13172 $as_echo_n "checking for $ac_word... " >&6; }
13173 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13174 $as_echo_n "(cached) " >&6
13176 if test -n "$ac_ct_LIPO"; then
13177 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13180 for as_dir in $PATH
13183 test -z "$as_dir" && as_dir=.
13184 for ac_exec_ext in '' $ac_executable_extensions; do
13185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13186 ac_cv_prog_ac_ct_LIPO="lipo"
13187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13196 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13197 if test -n "$ac_ct_LIPO"; then
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13199 $as_echo "$ac_ct_LIPO" >&6; }
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13202 $as_echo "no" >&6; }
13205 if test "x$ac_ct_LIPO" = x; then
13208 case $cross_compiling:$ac_tool_warned in
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13212 ac_tool_warned=yes ;;
13217 LIPO="$ac_cv_prog_LIPO"
13220 if test -n "$ac_tool_prefix"; then
13221 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13222 set dummy ${ac_tool_prefix}otool; ac_word=$2
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13224 $as_echo_n "checking for $ac_word... " >&6; }
13225 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13226 $as_echo_n "(cached) " >&6
13228 if test -n "$OTOOL"; then
13229 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13232 for as_dir in $PATH
13235 test -z "$as_dir" && as_dir=.
13236 for ac_exec_ext in '' $ac_executable_extensions; do
13237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13238 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13248 OTOOL=$ac_cv_prog_OTOOL
13249 if test -n "$OTOOL"; then
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13251 $as_echo "$OTOOL" >&6; }
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13254 $as_echo "no" >&6; }
13259 if test -z "$ac_cv_prog_OTOOL"; then
13261 # Extract the first word of "otool", so it can be a program name with args.
13262 set dummy otool; ac_word=$2
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13264 $as_echo_n "checking for $ac_word... " >&6; }
13265 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13266 $as_echo_n "(cached) " >&6
13268 if test -n "$ac_ct_OTOOL"; then
13269 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13272 for as_dir in $PATH
13275 test -z "$as_dir" && as_dir=.
13276 for ac_exec_ext in '' $ac_executable_extensions; do
13277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13278 ac_cv_prog_ac_ct_OTOOL="otool"
13279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13288 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13289 if test -n "$ac_ct_OTOOL"; then
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13291 $as_echo "$ac_ct_OTOOL" >&6; }
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13294 $as_echo "no" >&6; }
13297 if test "x$ac_ct_OTOOL" = x; then
13300 case $cross_compiling:$ac_tool_warned in
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13304 ac_tool_warned=yes ;;
13309 OTOOL="$ac_cv_prog_OTOOL"
13312 if test -n "$ac_tool_prefix"; then
13313 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13314 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13316 $as_echo_n "checking for $ac_word... " >&6; }
13317 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
13318 $as_echo_n "(cached) " >&6
13320 if test -n "$OTOOL64"; then
13321 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13324 for as_dir in $PATH
13327 test -z "$as_dir" && as_dir=.
13328 for ac_exec_ext in '' $ac_executable_extensions; do
13329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13330 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13340 OTOOL64=$ac_cv_prog_OTOOL64
13341 if test -n "$OTOOL64"; then
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13343 $as_echo "$OTOOL64" >&6; }
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13346 $as_echo "no" >&6; }
13351 if test -z "$ac_cv_prog_OTOOL64"; then
13352 ac_ct_OTOOL64=$OTOOL64
13353 # Extract the first word of "otool64", so it can be a program name with args.
13354 set dummy otool64; ac_word=$2
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13356 $as_echo_n "checking for $ac_word... " >&6; }
13357 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
13358 $as_echo_n "(cached) " >&6
13360 if test -n "$ac_ct_OTOOL64"; then
13361 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13364 for as_dir in $PATH
13367 test -z "$as_dir" && as_dir=.
13368 for ac_exec_ext in '' $ac_executable_extensions; do
13369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13370 ac_cv_prog_ac_ct_OTOOL64="otool64"
13371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13380 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13381 if test -n "$ac_ct_OTOOL64"; then
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13383 $as_echo "$ac_ct_OTOOL64" >&6; }
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13386 $as_echo "no" >&6; }
13389 if test "x$ac_ct_OTOOL64" = x; then
13392 case $cross_compiling:$ac_tool_warned in
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13396 ac_tool_warned=yes ;;
13398 OTOOL64=$ac_ct_OTOOL64
13401 OTOOL64="$ac_cv_prog_OTOOL64"
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13431 $as_echo_n "checking for -single_module linker flag... " >&6; }
13432 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
13433 $as_echo_n "(cached) " >&6
13435 lt_cv_apple_cc_single_mod=no
13436 if test -z "${LT_MULTI_MODULE}"; then
13437 # By default we will add the -single_module flag. You can override
13438 # by either setting the environment variable LT_MULTI_MODULE
13439 # non-empty at configure time, or by adding -multi_module to the
13441 rm -rf libconftest.dylib*
13442 echo "int foo(void){return 1;}" > conftest.c
13443 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13444 -dynamiclib -Wl,-single_module conftest.c" >&5
13445 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13446 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13448 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
13449 lt_cv_apple_cc_single_mod=yes
13451 cat conftest.err >&5
13453 rm -rf libconftest.dylib*
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13458 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13460 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13461 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
13462 $as_echo_n "(cached) " >&6
13464 lt_cv_ld_exported_symbols_list=no
13465 save_LDFLAGS=$LDFLAGS
13466 echo "_main" > conftest.sym
13467 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13469 /* end confdefs.h. */
13479 if ac_fn_c_try_link "$LINENO"; then :
13480 lt_cv_ld_exported_symbols_list=yes
13482 lt_cv_ld_exported_symbols_list=no
13484 rm -f core conftest.err conftest.$ac_objext \
13485 conftest$ac_exeext conftest.$ac_ext
13486 LDFLAGS="$save_LDFLAGS"
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13490 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13492 rhapsody* | darwin1.[012])
13493 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13495 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13496 darwin*) # darwin 5.x on
13497 # if running on 10.5 or later, the deployment target defaults
13498 # to the OS version, if on x86, and 10.4, the deployment
13499 # target defaults to 10.4. Don't you love it?
13500 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13501 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13502 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13504 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13506 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13510 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13511 _lt_dar_single_mod='$single_module'
13513 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13514 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13516 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13518 if test "$DSYMUTIL" != ":"; then
13519 _lt_dsymutil='~$DSYMUTIL $lib || :'
13526 for ac_header in dlfcn.h
13528 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
13529 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
13530 cat >>confdefs.h <<_ACEOF
13531 #define HAVE_DLFCN_H 1
13540 ac_cpp='$CXXCPP $CPPFLAGS'
13541 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13542 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13543 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13544 if test -z "$CXX"; then
13545 if test -n "$CCC"; then
13548 if test -n "$ac_tool_prefix"; then
13549 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13551 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13552 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13554 $as_echo_n "checking for $ac_word... " >&6; }
13555 if test "${ac_cv_prog_CXX+set}" = set; then :
13556 $as_echo_n "(cached) " >&6
13558 if test -n "$CXX"; then
13559 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13562 for as_dir in $PATH
13565 test -z "$as_dir" && as_dir=.
13566 for ac_exec_ext in '' $ac_executable_extensions; do
13567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13568 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13578 CXX=$ac_cv_prog_CXX
13579 if test -n "$CXX"; then
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13581 $as_echo "$CXX" >&6; }
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13584 $as_echo "no" >&6; }
13588 test -n "$CXX" && break
13591 if test -z "$CXX"; then
13593 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13595 # Extract the first word of "$ac_prog", so it can be a program name with args.
13596 set dummy $ac_prog; ac_word=$2
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13598 $as_echo_n "checking for $ac_word... " >&6; }
13599 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
13600 $as_echo_n "(cached) " >&6
13602 if test -n "$ac_ct_CXX"; then
13603 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13606 for as_dir in $PATH
13609 test -z "$as_dir" && as_dir=.
13610 for ac_exec_ext in '' $ac_executable_extensions; do
13611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13612 ac_cv_prog_ac_ct_CXX="$ac_prog"
13613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13622 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13623 if test -n "$ac_ct_CXX"; then
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13625 $as_echo "$ac_ct_CXX" >&6; }
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13628 $as_echo "no" >&6; }
13632 test -n "$ac_ct_CXX" && break
13635 if test "x$ac_ct_CXX" = x; then
13638 case $cross_compiling:$ac_tool_warned in
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13642 ac_tool_warned=yes ;;
13650 # Provide some information about the compiler.
13651 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13654 for ac_option in --version -v -V -qversion; do
13655 { { ac_try="$ac_compiler $ac_option >&5"
13656 case "(($ac_try" in
13657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13658 *) ac_try_echo=$ac_try;;
13660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13661 $as_echo "$ac_try_echo"; } >&5
13662 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13664 if test -s conftest.err; then
13666 ... rest of stderr output deleted ...
13667 10q' conftest.err >conftest.er1
13668 cat conftest.er1 >&5
13669 rm -f conftest.er1 conftest.err
13671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13672 test $ac_status = 0; }
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13676 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13677 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
13678 $as_echo_n "(cached) " >&6
13680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13681 /* end confdefs.h. */
13694 if ac_fn_cxx_try_compile "$LINENO"; then :
13695 ac_compiler_gnu=yes
13699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13700 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13704 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13705 if test $ac_compiler_gnu = yes; then
13710 ac_test_CXXFLAGS=${CXXFLAGS+set}
13711 ac_save_CXXFLAGS=$CXXFLAGS
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13713 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
13714 if test "${ac_cv_prog_cxx_g+set}" = set; then :
13715 $as_echo_n "(cached) " >&6
13717 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13718 ac_cxx_werror_flag=yes
13719 ac_cv_prog_cxx_g=no
13721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13722 /* end confdefs.h. */
13732 if ac_fn_cxx_try_compile "$LINENO"; then :
13733 ac_cv_prog_cxx_g=yes
13736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13737 /* end confdefs.h. */
13747 if ac_fn_cxx_try_compile "$LINENO"; then :
13750 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13753 /* end confdefs.h. */
13763 if ac_fn_cxx_try_compile "$LINENO"; then :
13764 ac_cv_prog_cxx_g=yes
13766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13771 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13774 $as_echo "$ac_cv_prog_cxx_g" >&6; }
13775 if test "$ac_test_CXXFLAGS" = set; then
13776 CXXFLAGS=$ac_save_CXXFLAGS
13777 elif test $ac_cv_prog_cxx_g = yes; then
13778 if test "$GXX" = yes; then
13784 if test "$GXX" = yes; then
13791 ac_cpp='$CPP $CPPFLAGS'
13792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13796 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13797 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13798 (test "X$CXX" != "Xg++"))) ; then
13800 ac_cpp='$CXXCPP $CPPFLAGS'
13801 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13802 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13803 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13805 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13806 if test -z "$CXXCPP"; then
13807 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13808 $as_echo_n "(cached) " >&6
13810 # Double quotes because CXXCPP needs to be expanded
13811 for CXXCPP in "$CXX -E" "/lib/cpp"
13813 ac_preproc_ok=false
13814 for ac_cxx_preproc_warn_flag in '' yes
13816 # Use a header file that comes with gcc, so configuring glibc
13817 # with a fresh cross-compiler works.
13818 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13819 # <limits.h> exists even on freestanding compilers.
13820 # On the NeXT, cc -E runs the code through the compiler's parser,
13821 # not just through cpp. "Syntax error" is here to catch this case.
13822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13823 /* end confdefs.h. */
13825 # include <limits.h>
13827 # include <assert.h>
13831 if ac_fn_cxx_try_cpp "$LINENO"; then :
13834 # Broken: fails on valid input.
13837 rm -f conftest.err conftest.$ac_ext
13839 # OK, works on sane cases. Now check whether nonexistent headers
13840 # can be detected and how.
13841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13842 /* end confdefs.h. */
13843 #include <ac_nonexistent.h>
13845 if ac_fn_cxx_try_cpp "$LINENO"; then :
13846 # Broken: success on invalid input.
13849 # Passes both tests.
13853 rm -f conftest.err conftest.$ac_ext
13856 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13857 rm -f conftest.err conftest.$ac_ext
13858 if $ac_preproc_ok; then :
13863 ac_cv_prog_CXXCPP=$CXXCPP
13866 CXXCPP=$ac_cv_prog_CXXCPP
13868 ac_cv_prog_CXXCPP=$CXXCPP
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13871 $as_echo "$CXXCPP" >&6; }
13872 ac_preproc_ok=false
13873 for ac_cxx_preproc_warn_flag in '' yes
13875 # Use a header file that comes with gcc, so configuring glibc
13876 # with a fresh cross-compiler works.
13877 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13878 # <limits.h> exists even on freestanding compilers.
13879 # On the NeXT, cc -E runs the code through the compiler's parser,
13880 # not just through cpp. "Syntax error" is here to catch this case.
13881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13882 /* end confdefs.h. */
13884 # include <limits.h>
13886 # include <assert.h>
13890 if ac_fn_cxx_try_cpp "$LINENO"; then :
13893 # Broken: fails on valid input.
13896 rm -f conftest.err conftest.$ac_ext
13898 # OK, works on sane cases. Now check whether nonexistent headers
13899 # can be detected and how.
13900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13901 /* end confdefs.h. */
13902 #include <ac_nonexistent.h>
13904 if ac_fn_cxx_try_cpp "$LINENO"; then :
13905 # Broken: success on invalid input.
13908 # Passes both tests.
13912 rm -f conftest.err conftest.$ac_ext
13915 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13916 rm -f conftest.err conftest.$ac_ext
13917 if $ac_preproc_ok; then :
13920 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13922 _lt_caught_CXX_error=yes; }
13926 ac_cpp='$CPP $CPPFLAGS'
13927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13932 _lt_caught_CXX_error=yes
13946 enable_win32_dll=no
13949 # Check whether --enable-shared was given.
13950 if test "${enable_shared+set}" = set; then :
13951 enableval=$enable_shared; p=${PACKAGE-default}
13953 yes) enable_shared=yes ;;
13954 no) enable_shared=no ;;
13957 # Look at the argument we got. We use all the common list separators.
13958 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13959 for pkg in $enableval; do
13961 if test "X$pkg" = "X$p"; then
13980 # Check whether --enable-static was given.
13981 if test "${enable_static+set}" = set; then :
13982 enableval=$enable_static; p=${PACKAGE-default}
13984 yes) enable_static=yes ;;
13985 no) enable_static=no ;;
13988 # Look at the argument we got. We use all the common list separators.
13989 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13990 for pkg in $enableval; do
13992 if test "X$pkg" = "X$p"; then
14012 # Check whether --with-pic was given.
14013 if test "${with_pic+set}" = set; then :
14014 withval=$with_pic; pic_mode="$withval"
14020 test -z "$pic_mode" && pic_mode=default
14028 # Check whether --enable-fast-install was given.
14029 if test "${enable_fast_install+set}" = set; then :
14030 enableval=$enable_fast_install; p=${PACKAGE-default}
14032 yes) enable_fast_install=yes ;;
14033 no) enable_fast_install=no ;;
14035 enable_fast_install=no
14036 # Look at the argument we got. We use all the common list separators.
14037 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14038 for pkg in $enableval; do
14040 if test "X$pkg" = "X$p"; then
14041 enable_fast_install=yes
14048 enable_fast_install=yes
14061 # This can be used to rebuild libtool when needed
14062 LIBTOOL_DEPS="$ltmain"
14064 # Always use our own libtool.
14065 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14091 test -z "$LN_S" && LN_S="ln -s"
14106 if test -n "${ZSH_VERSION+set}" ; then
14107 setopt NO_GLOB_SUBST
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14111 $as_echo_n "checking for objdir... " >&6; }
14112 if test "${lt_cv_objdir+set}" = set; then :
14113 $as_echo_n "(cached) " >&6
14115 rm -f .libs 2>/dev/null
14116 mkdir .libs 2>/dev/null
14117 if test -d .libs; then
14120 # MS-DOS does not allow filenames that begin with a dot.
14123 rmdir .libs 2>/dev/null
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14126 $as_echo "$lt_cv_objdir" >&6; }
14127 objdir=$lt_cv_objdir
14133 cat >>confdefs.h <<_ACEOF
14134 #define LT_OBJDIR "$lt_cv_objdir/"
14155 # AIX sometimes has problems with the GCC collect2 program. For some
14156 # reason, if we set the COLLECT_NAMES environment variable, the problems
14157 # vanish in a puff of smoke.
14158 if test "X${COLLECT_NAMES+set}" != Xset; then
14160 export COLLECT_NAMES
14165 # Sed substitution that helps us do robust quoting. It backslashifies
14166 # metacharacters that are still active within double-quoted strings.
14167 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
14169 # Same as above, but do not quote variable references.
14170 double_quote_subst='s/\(["`\\]\)/\\\1/g'
14172 # Sed substitution to delay expansion of an escaped shell variable in a
14173 # double_quote_subst'ed string.
14174 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14176 # Sed substitution to delay expansion of an escaped single quote.
14177 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
14179 # Sed substitution to avoid accidental globbing in evaled expressions
14180 no_glob_subst='s/\*/\\\*/g'
14182 # Global variables:
14184 can_build_shared=yes
14186 # All known linkers require a `.a' archive for static linking (except MSVC,
14187 # which needs '.lib').
14190 with_gnu_ld="$lt_cv_prog_gnu_ld"
14193 old_CFLAGS="$CFLAGS"
14195 # Set sane defaults for various variables
14196 test -z "$CC" && CC=cc
14197 test -z "$LTCC" && LTCC=$CC
14198 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14199 test -z "$LD" && LD=ld
14200 test -z "$ac_objext" && ac_objext=o
14202 for cc_temp in $compiler""; do
14204 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14205 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14210 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14213 # Only perform the check for file, if the check method requires it
14214 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14215 case $deplibs_check_method in
14217 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14219 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14220 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14221 $as_echo_n "(cached) " >&6
14225 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14228 lt_save_MAGIC_CMD="$MAGIC_CMD"
14229 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14230 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14231 for ac_dir in $ac_dummy; do
14233 test -z "$ac_dir" && ac_dir=.
14234 if test -f $ac_dir/${ac_tool_prefix}file; then
14235 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14236 if test -n "$file_magic_test_file"; then
14237 case $deplibs_check_method in
14239 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14240 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14241 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14242 $EGREP "$file_magic_regex" > /dev/null; then
14247 *** Warning: the command libtool uses to detect shared libraries,
14248 *** $file_magic_cmd, produces output that libtool cannot recognize.
14249 *** The result is that libtool may fail to recognize shared libraries
14250 *** as such. This will affect the creation of libtool libraries that
14251 *** depend on shared libraries, but programs linked with such libtool
14252 *** libraries will work regardless of this problem. Nevertheless, you
14253 *** may want to report the problem to your system manager and/or to
14254 *** bug-libtool@gnu.org
14264 MAGIC_CMD="$lt_save_MAGIC_CMD"
14269 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14270 if test -n "$MAGIC_CMD"; then
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14272 $as_echo "$MAGIC_CMD" >&6; }
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14275 $as_echo "no" >&6; }
14282 if test -z "$lt_cv_path_MAGIC_CMD"; then
14283 if test -n "$ac_tool_prefix"; then
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14285 $as_echo_n "checking for file... " >&6; }
14286 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14287 $as_echo_n "(cached) " >&6
14291 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14294 lt_save_MAGIC_CMD="$MAGIC_CMD"
14295 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14296 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14297 for ac_dir in $ac_dummy; do
14299 test -z "$ac_dir" && ac_dir=.
14300 if test -f $ac_dir/file; then
14301 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14302 if test -n "$file_magic_test_file"; then
14303 case $deplibs_check_method in
14305 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14306 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14307 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14308 $EGREP "$file_magic_regex" > /dev/null; then
14313 *** Warning: the command libtool uses to detect shared libraries,
14314 *** $file_magic_cmd, produces output that libtool cannot recognize.
14315 *** The result is that libtool may fail to recognize shared libraries
14316 *** as such. This will affect the creation of libtool libraries that
14317 *** depend on shared libraries, but programs linked with such libtool
14318 *** libraries will work regardless of this problem. Nevertheless, you
14319 *** may want to report the problem to your system manager and/or to
14320 *** bug-libtool@gnu.org
14330 MAGIC_CMD="$lt_save_MAGIC_CMD"
14335 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14336 if test -n "$MAGIC_CMD"; then
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14338 $as_echo "$MAGIC_CMD" >&6; }
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14341 $as_echo "no" >&6; }
14354 # Use C for the default configuration in the libtool script
14358 ac_cpp='$CPP $CPPFLAGS'
14359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14364 # Source file extension for C test sources.
14367 # Object file extension for compiled C test sources.
14371 # Code to be used in simple compile tests
14372 lt_simple_compile_test_code="int some_variable = 0;"
14374 # Code to be used in simple link tests
14375 lt_simple_link_test_code='int main(){return(0);}'
14383 # If no C compiler was specified, use CC.
14386 # If no C compiler flags were specified, use CFLAGS.
14387 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14389 # Allow CC to be a program name with arguments.
14392 # Save the default compiler, since it gets overwritten when the other
14393 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14394 compiler_DEFAULT=$CC
14396 # save warnings/boilerplate of simple test code
14397 ac_outfile=conftest.$ac_objext
14398 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14399 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14400 _lt_compiler_boilerplate=`cat conftest.err`
14403 ac_outfile=conftest.$ac_objext
14404 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14405 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14406 _lt_linker_boilerplate=`cat conftest.err`
14411 ## There is no encapsulation within the following macros, do not change
14412 ## the running order or otherwise move them around unless you know exactly
14413 ## what you are doing...
14414 if test -n "$compiler"; then
14416 lt_prog_compiler_no_builtin_flag=
14418 if test "$GCC" = yes; then
14419 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14422 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14423 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14424 $as_echo_n "(cached) " >&6
14426 lt_cv_prog_compiler_rtti_exceptions=no
14427 ac_outfile=conftest.$ac_objext
14428 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14429 lt_compiler_flag="-fno-rtti -fno-exceptions"
14430 # Insert the option either (1) after the last *FLAGS variable, or
14431 # (2) before a word containing "conftest.", or (3) at the end.
14432 # Note that $ac_compile itself does not contain backslashes and begins
14433 # with a dollar sign (not a hyphen), so the echo should work correctly.
14434 # The option is referenced via a variable to avoid confusing sed.
14435 lt_compile=`echo "$ac_compile" | $SED \
14436 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14437 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14438 -e 's:$: $lt_compiler_flag:'`
14439 (eval echo "\"\$as_me:14439: $lt_compile\"" >&5)
14440 (eval "$lt_compile" 2>conftest.err)
14442 cat conftest.err >&5
14443 echo "$as_me:14443: \$? = $ac_status" >&5
14444 if (exit $ac_status) && test -s "$ac_outfile"; then
14445 # The compiler can only warn and ignore the option if not recognized
14446 # So say no if there are warnings other than the usual output.
14447 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14448 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14449 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14450 lt_cv_prog_compiler_rtti_exceptions=yes
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14457 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14459 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14460 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14472 lt_prog_compiler_wl=
14473 lt_prog_compiler_pic=
14474 lt_prog_compiler_static=
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14477 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14479 if test "$GCC" = yes; then
14480 lt_prog_compiler_wl='-Wl,'
14481 lt_prog_compiler_static='-static'
14485 # All AIX code is PIC.
14486 if test "$host_cpu" = ia64; then
14487 # AIX 5 now supports IA64 processor
14488 lt_prog_compiler_static='-Bstatic'
14495 # see comment about AmigaOS4 .so support
14496 lt_prog_compiler_pic='-fPIC'
14499 # FIXME: we need at least 68020 code to build shared libraries, but
14500 # adding the `-m68020' flag to GCC prevents building anything better,
14502 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14507 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14508 # PIC is the default for these OSes.
14511 mingw* | cygwin* | pw32* | os2* | cegcc*)
14512 # This hack is so that the source file can tell whether it is being
14513 # built for inclusion in a dll (and should export symbols for example).
14514 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14515 # (--disable-auto-import) libraries
14516 lt_prog_compiler_pic='-DDLL_EXPORT'
14519 darwin* | rhapsody*)
14520 # PIC is the default on this platform
14521 # Common symbols not allowed in MH_DYLIB files
14522 lt_prog_compiler_pic='-fno-common'
14526 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14527 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14528 # sets the default TLS model and affects inlining.
14534 lt_prog_compiler_pic='-fPIC'
14540 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14541 # Instead, we relocate shared libraries at runtime.
14545 # Just because we use GCC doesn't mean we suddenly get shared libraries
14546 # on systems that don't support them.
14547 lt_prog_compiler_can_build_shared=no
14552 # QNX uses GNU C++, but need to define -shared option too, otherwise
14553 # it will coredump.
14554 lt_prog_compiler_pic='-fPIC -shared'
14558 if test -d /usr/nec; then
14559 lt_prog_compiler_pic=-Kconform_pic
14564 lt_prog_compiler_pic='-fPIC'
14568 # PORTME Check for flag to pass linker flags through the system compiler.
14571 lt_prog_compiler_wl='-Wl,'
14572 if test "$host_cpu" = ia64; then
14573 # AIX 5 now supports IA64 processor
14574 lt_prog_compiler_static='-Bstatic'
14576 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14580 mingw* | cygwin* | pw32* | os2* | cegcc*)
14581 # This hack is so that the source file can tell whether it is being
14582 # built for inclusion in a dll (and should export symbols for example).
14583 lt_prog_compiler_pic='-DDLL_EXPORT'
14586 hpux9* | hpux10* | hpux11*)
14587 lt_prog_compiler_wl='-Wl,'
14588 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14589 # not for PA HP-UX.
14595 lt_prog_compiler_pic='+Z'
14598 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14599 lt_prog_compiler_static='${wl}-a ${wl}archive'
14602 irix5* | irix6* | nonstopux*)
14603 lt_prog_compiler_wl='-Wl,'
14604 # PIC (with -KPIC) is the default.
14605 lt_prog_compiler_static='-non_shared'
14608 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14609 case $cc_basename in
14610 # old Intel for x86_64 which still supported -KPIC.
14612 lt_prog_compiler_wl='-Wl,'
14613 lt_prog_compiler_pic='-KPIC'
14614 lt_prog_compiler_static='-static'
14616 # icc used to be incompatible with GCC.
14617 # ICC 10 doesn't accept -KPIC any more.
14619 lt_prog_compiler_wl='-Wl,'
14620 lt_prog_compiler_pic='-fPIC'
14621 lt_prog_compiler_static='-static'
14623 # Lahey Fortran 8.1.
14625 lt_prog_compiler_wl='-Wl,'
14626 lt_prog_compiler_pic='--shared'
14627 lt_prog_compiler_static='--static'
14629 pgcc* | pgf77* | pgf90* | pgf95*)
14630 # Portland Group compilers (*not* the Pentium gcc compiler,
14631 # which looks to be a dead project)
14632 lt_prog_compiler_wl='-Wl,'
14633 lt_prog_compiler_pic='-fpic'
14634 lt_prog_compiler_static='-Bstatic'
14637 lt_prog_compiler_wl='-Wl,'
14638 # All Alpha code is PIC.
14639 lt_prog_compiler_static='-non_shared'
14642 # IBM XL C 8.0/Fortran 10.1 on PPC
14643 lt_prog_compiler_wl='-Wl,'
14644 lt_prog_compiler_pic='-qpic'
14645 lt_prog_compiler_static='-qstaticlink'
14648 case `$CC -V 2>&1 | sed 5q` in
14651 lt_prog_compiler_pic='-KPIC'
14652 lt_prog_compiler_static='-Bstatic'
14653 lt_prog_compiler_wl='-Wl,'
14656 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14657 lt_prog_compiler_pic='-KPIC'
14658 lt_prog_compiler_static='-Bstatic'
14659 lt_prog_compiler_wl=''
14667 lt_prog_compiler_pic='-KPIC'
14668 lt_prog_compiler_static='-Bstatic'
14672 # QNX uses GNU C++, but need to define -shared option too, otherwise
14673 # it will coredump.
14674 lt_prog_compiler_pic='-fPIC -shared'
14677 osf3* | osf4* | osf5*)
14678 lt_prog_compiler_wl='-Wl,'
14679 # All OSF/1 code is PIC.
14680 lt_prog_compiler_static='-non_shared'
14684 lt_prog_compiler_static='-non_shared'
14688 lt_prog_compiler_pic='-KPIC'
14689 lt_prog_compiler_static='-Bstatic'
14690 case $cc_basename in
14691 f77* | f90* | f95*)
14692 lt_prog_compiler_wl='-Qoption ld ';;
14694 lt_prog_compiler_wl='-Wl,';;
14699 lt_prog_compiler_wl='-Qoption ld '
14700 lt_prog_compiler_pic='-PIC'
14701 lt_prog_compiler_static='-Bstatic'
14704 sysv4 | sysv4.2uw2* | sysv4.3*)
14705 lt_prog_compiler_wl='-Wl,'
14706 lt_prog_compiler_pic='-KPIC'
14707 lt_prog_compiler_static='-Bstatic'
14711 if test -d /usr/nec ;then
14712 lt_prog_compiler_pic='-Kconform_pic'
14713 lt_prog_compiler_static='-Bstatic'
14717 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14718 lt_prog_compiler_wl='-Wl,'
14719 lt_prog_compiler_pic='-KPIC'
14720 lt_prog_compiler_static='-Bstatic'
14724 lt_prog_compiler_wl='-Wl,'
14725 lt_prog_compiler_can_build_shared=no
14729 lt_prog_compiler_pic='-pic'
14730 lt_prog_compiler_static='-Bstatic'
14734 lt_prog_compiler_can_build_shared=no
14740 # For platforms which do not support PIC, -DPIC is meaningless:
14742 lt_prog_compiler_pic=
14745 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
14749 $as_echo "$lt_prog_compiler_pic" >&6; }
14757 # Check to make sure the PIC flag actually works.
14759 if test -n "$lt_prog_compiler_pic"; then
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14761 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14762 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14763 $as_echo_n "(cached) " >&6
14765 lt_cv_prog_compiler_pic_works=no
14766 ac_outfile=conftest.$ac_objext
14767 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14768 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14769 # Insert the option either (1) after the last *FLAGS variable, or
14770 # (2) before a word containing "conftest.", or (3) at the end.
14771 # Note that $ac_compile itself does not contain backslashes and begins
14772 # with a dollar sign (not a hyphen), so the echo should work correctly.
14773 # The option is referenced via a variable to avoid confusing sed.
14774 lt_compile=`echo "$ac_compile" | $SED \
14775 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14776 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14777 -e 's:$: $lt_compiler_flag:'`
14778 (eval echo "\"\$as_me:14778: $lt_compile\"" >&5)
14779 (eval "$lt_compile" 2>conftest.err)
14781 cat conftest.err >&5
14782 echo "$as_me:14782: \$? = $ac_status" >&5
14783 if (exit $ac_status) && test -s "$ac_outfile"; then
14784 # The compiler can only warn and ignore the option if not recognized
14785 # So say no if there are warnings other than the usual output.
14786 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14787 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14788 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14789 lt_cv_prog_compiler_pic_works=yes
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14796 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14798 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14799 case $lt_prog_compiler_pic in
14801 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14804 lt_prog_compiler_pic=
14805 lt_prog_compiler_can_build_shared=no
14816 # Check to make sure the static flag actually works.
14818 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14820 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14821 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
14822 $as_echo_n "(cached) " >&6
14824 lt_cv_prog_compiler_static_works=no
14825 save_LDFLAGS="$LDFLAGS"
14826 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14827 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14828 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14829 # The linker can only warn and ignore the option if not recognized
14830 # So say no if there are warnings
14831 if test -s conftest.err; then
14832 # Append any errors to the config.log.
14833 cat conftest.err 1>&5
14834 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14835 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14836 if diff conftest.exp conftest.er2 >/dev/null; then
14837 lt_cv_prog_compiler_static_works=yes
14840 lt_cv_prog_compiler_static_works=yes
14844 LDFLAGS="$save_LDFLAGS"
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14848 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14850 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14853 lt_prog_compiler_static=
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14863 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14864 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14865 $as_echo_n "(cached) " >&6
14867 lt_cv_prog_compiler_c_o=no
14868 $RM -r conftest 2>/dev/null
14872 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14874 lt_compiler_flag="-o out/conftest2.$ac_objext"
14875 # Insert the option either (1) after the last *FLAGS variable, or
14876 # (2) before a word containing "conftest.", or (3) at the end.
14877 # Note that $ac_compile itself does not contain backslashes and begins
14878 # with a dollar sign (not a hyphen), so the echo should work correctly.
14879 lt_compile=`echo "$ac_compile" | $SED \
14880 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14881 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14882 -e 's:$: $lt_compiler_flag:'`
14883 (eval echo "\"\$as_me:14883: $lt_compile\"" >&5)
14884 (eval "$lt_compile" 2>out/conftest.err)
14886 cat out/conftest.err >&5
14887 echo "$as_me:14887: \$? = $ac_status" >&5
14888 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14890 # The compiler can only warn and ignore the option if not recognized
14891 # So say no if there are warnings
14892 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14893 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14894 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14895 lt_cv_prog_compiler_c_o=yes
14900 # SGI C++ compiler will create directory out/ii_files/ for
14901 # template instantiation
14902 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14903 $RM out/* && rmdir out
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14910 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14918 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14919 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14920 $as_echo_n "(cached) " >&6
14922 lt_cv_prog_compiler_c_o=no
14923 $RM -r conftest 2>/dev/null
14927 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14929 lt_compiler_flag="-o out/conftest2.$ac_objext"
14930 # Insert the option either (1) after the last *FLAGS variable, or
14931 # (2) before a word containing "conftest.", or (3) at the end.
14932 # Note that $ac_compile itself does not contain backslashes and begins
14933 # with a dollar sign (not a hyphen), so the echo should work correctly.
14934 lt_compile=`echo "$ac_compile" | $SED \
14935 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14936 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14937 -e 's:$: $lt_compiler_flag:'`
14938 (eval echo "\"\$as_me:14938: $lt_compile\"" >&5)
14939 (eval "$lt_compile" 2>out/conftest.err)
14941 cat out/conftest.err >&5
14942 echo "$as_me:14942: \$? = $ac_status" >&5
14943 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14945 # The compiler can only warn and ignore the option if not recognized
14946 # So say no if there are warnings
14947 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14948 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14949 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14950 lt_cv_prog_compiler_c_o=yes
14955 # SGI C++ compiler will create directory out/ii_files/ for
14956 # template instantiation
14957 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14958 $RM out/* && rmdir out
14964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14965 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14970 hard_links="nottested"
14971 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14972 # do not overwrite the value of need_locks provided by the user
14973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14974 $as_echo_n "checking if we can lock with hard links... " >&6; }
14977 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14979 ln conftest.a conftest.b 2>&5 || hard_links=no
14980 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14982 $as_echo "$hard_links" >&6; }
14983 if test "$hard_links" = no; then
14984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14985 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14998 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15001 allow_undefined_flag=
15002 always_export_symbols=no
15004 archive_expsym_cmds=
15005 compiler_needs_object=no
15006 enable_shared_with_static_runtimes=no
15007 export_dynamic_flag_spec=
15008 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15009 hardcode_automatic=no
15011 hardcode_direct_absolute=no
15012 hardcode_libdir_flag_spec=
15013 hardcode_libdir_flag_spec_ld=
15014 hardcode_libdir_separator=
15015 hardcode_minus_L=no
15016 hardcode_shlibpath_var=unsupported
15018 link_all_deplibs=unknown
15020 module_expsym_cmds=
15021 old_archive_from_new_cmds=
15022 old_archive_from_expsyms_cmds=
15023 thread_safe_flag_spec=
15024 whole_archive_flag_spec=
15025 # include_expsyms should be a list of space-separated symbols to be *always*
15026 # included in the symbol list
15028 # exclude_expsyms can be an extended regexp of symbols to exclude
15029 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15030 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15031 # as well as any symbol that contains `d'.
15032 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15033 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15034 # platforms (ab)use it in PIC code, but their linkers get confused if
15035 # the symbol is explicitly referenced. Since portable code cannot
15036 # rely on this symbol name, it's probably fine to never include it in
15037 # preloaded symbol tables.
15038 # Exclude shared library initialization/finalization symbols.
15039 extract_expsyms_cmds=
15042 cygwin* | mingw* | pw32* | cegcc*)
15043 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15044 # When not using gcc, we currently assume that we are using
15045 # Microsoft Visual C++.
15046 if test "$GCC" != yes; then
15051 # we just hope/assume this is gcc and not c89 (= MSVC++)
15060 if test "$with_gnu_ld" = yes; then
15061 # If archive_cmds runs LD, not CC, wlarc should be empty
15064 # Set some defaults for GNU ld with shared library support. These
15065 # are reset later if shared libraries are not supported. Putting them
15066 # here allows them to be overridden if necessary.
15067 runpath_var=LD_RUN_PATH
15068 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15069 export_dynamic_flag_spec='${wl}--export-dynamic'
15070 # ancient GNU ld didn't support --whole-archive et. al.
15071 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15072 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15074 whole_archive_flag_spec=
15076 supports_anon_versioning=no
15077 case `$LD -v 2>&1` in
15078 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15079 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15080 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15081 *\ 2.11.*) ;; # other 2.11 versions
15082 *) supports_anon_versioning=yes ;;
15085 # See if GNU ld supports shared libraries.
15088 # On AIX/PPC, the GNU linker is very broken
15089 if test "$host_cpu" != ia64; then
15093 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15094 *** to be unable to reliably create shared libraries on AIX.
15095 *** Therefore, libtool is disabling shared libraries support. If you
15096 *** really care for shared libraries, you may want to modify your PATH
15097 *** so that a non-GNU linker is found, and then restart.
15106 # see comment about AmigaOS4 .so support
15107 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15108 archive_expsym_cmds=''
15111 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)'
15112 hardcode_libdir_flag_spec='-L$libdir'
15113 hardcode_minus_L=yes
15119 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15120 allow_undefined_flag=unsupported
15121 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15122 # support --undefined. This deserves some investigation. FIXME
15123 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15129 cygwin* | mingw* | pw32* | cegcc*)
15130 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15131 # as there is no search path for DLLs.
15132 hardcode_libdir_flag_spec='-L$libdir'
15133 allow_undefined_flag=unsupported
15134 always_export_symbols=no
15135 enable_shared_with_static_runtimes=yes
15136 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15138 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15139 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15140 # If the export-symbols file already is a .def file (1st line
15141 # is EXPORTS), use it as is; otherwise, prepend...
15142 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15143 cp $export_symbols $output_objdir/$soname.def;
15145 echo EXPORTS > $output_objdir/$soname.def;
15146 cat $export_symbols >> $output_objdir/$soname.def;
15148 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15156 hardcode_shlibpath_var=no
15157 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15158 export_dynamic_flag_spec='${wl}-E'
15159 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15160 # Instead, shared libraries are loaded at an image base (0x10000000 by
15161 # default) and relocated if they conflict, which is a slow very memory
15162 # consuming and fragmenting process. To avoid this, we pick a random,
15163 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15164 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15165 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15166 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'
15169 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15171 if test "$host_os" = linux-dietlibc; then
15172 case $cc_basename in
15173 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15176 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15177 && test "$tmp_diet" = no
15180 tmp_sharedflag='-shared'
15181 case $cc_basename,$host_cpu in
15182 pgcc*) # Portland Group C compiler
15183 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
15184 tmp_addflag=' $pic_flag'
15186 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15187 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
15188 tmp_addflag=' $pic_flag -Mnomain' ;;
15189 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15190 tmp_addflag=' -i_dynamic' ;;
15191 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15192 tmp_addflag=' -i_dynamic -nofor_main' ;;
15193 ifc* | ifort*) # Intel Fortran compiler
15194 tmp_addflag=' -nofor_main' ;;
15195 lf95*) # Lahey Fortran 8.1
15196 whole_archive_flag_spec=
15197 tmp_sharedflag='--shared' ;;
15198 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15199 tmp_sharedflag='-qmkshrobj'
15202 case `$CC -V 2>&1 | sed 5q` in
15203 *Sun\ C*) # Sun C 5.9
15204 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
15205 compiler_needs_object=yes
15206 tmp_sharedflag='-G' ;;
15207 *Sun\ F*) # Sun Fortran 8.3
15208 tmp_sharedflag='-G' ;;
15210 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15212 if test "x$supports_anon_versioning" = xyes; then
15213 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15214 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15215 echo "local: *; };" >> $output_objdir/$libname.ver~
15216 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15219 case $cc_basename in
15221 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15222 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15223 hardcode_libdir_flag_spec=
15224 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15225 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15226 if test "x$supports_anon_versioning" = xyes; then
15227 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15228 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15229 echo "local: *; };" >> $output_objdir/$libname.ver~
15230 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15240 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15241 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15244 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15245 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15250 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15254 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15255 *** create shared libraries on Solaris systems. Therefore, libtool
15256 *** is disabling shared libraries support. We urge you to upgrade GNU
15257 *** binutils to release 2.9.1 or newer. Another option is to modify
15258 *** your PATH or compiler configuration so that the native linker is
15259 *** used, and then restart.
15262 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15263 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15264 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15270 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15271 case `$LD -v 2>&1` in
15272 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15276 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15277 *** reliably create shared libraries on SCO systems. Therefore, libtool
15278 *** is disabling shared libraries support. We urge you to upgrade GNU
15279 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15280 *** your PATH or compiler configuration so that the native linker is
15281 *** used, and then restart.
15286 # For security reasons, it is highly recommended that you always
15287 # use absolute paths for naming shared libraries, and exclude the
15288 # DT_RUNPATH tag from executables and libraries. But doing so
15289 # requires that you compile everything twice, which is a pain.
15290 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15291 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15292 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15293 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15302 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15304 hardcode_direct=yes
15305 hardcode_shlibpath_var=no
15309 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15310 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15311 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15318 if test "$ld_shlibs" = no; then
15320 hardcode_libdir_flag_spec=
15321 export_dynamic_flag_spec=
15322 whole_archive_flag_spec=
15325 # PORTME fill in a description of your system's linker (not GNU ld)
15328 allow_undefined_flag=unsupported
15329 always_export_symbols=yes
15330 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'
15331 # Note: this linker hardcodes the directories in LIBPATH if there
15332 # are no directories specified by -L.
15333 hardcode_minus_L=yes
15334 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15335 # Neither direct hardcoding nor static linking is supported with a
15337 hardcode_direct=unsupported
15342 if test "$host_cpu" = ia64; then
15343 # On IA64, the linker does run time linking by default, so we don't
15344 # have to do anything special.
15345 aix_use_runtimelinking=no
15346 exp_sym_flag='-Bexport'
15349 # If we're using GNU nm, then we don't want the "-C" option.
15350 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15351 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15352 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15354 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'
15356 aix_use_runtimelinking=no
15358 # Test if we are trying to use run time linking or normal
15359 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15360 # need to do runtime linking.
15361 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15362 for ld_flag in $LDFLAGS; do
15363 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15364 aix_use_runtimelinking=yes
15371 exp_sym_flag='-bexport'
15372 no_entry_flag='-bnoentry'
15375 # When large executables or shared objects are built, AIX ld can
15376 # have problems creating the table of contents. If linking a library
15377 # or program results in "error TOC overflow" add -mminimal-toc to
15378 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15379 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15382 hardcode_direct=yes
15383 hardcode_direct_absolute=yes
15384 hardcode_libdir_separator=':'
15385 link_all_deplibs=yes
15386 file_list_spec='${wl}-f,'
15388 if test "$GCC" = yes; then
15389 case $host_os in aix4.[012]|aix4.[012].*)
15390 # We only want to do this on AIX 4.2 and lower, the check
15391 # below for broken collect2 doesn't work under 4.3+
15392 collect2name=`${CC} -print-prog-name=collect2`
15393 if test -f "$collect2name" &&
15394 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15396 # We have reworked collect2
15399 # We have old collect2
15400 hardcode_direct=unsupported
15401 # It fails to find uninstalled libraries when the uninstalled
15402 # path is not listed in the libpath. Setting hardcode_minus_L
15403 # to unsupported forces relinking
15404 hardcode_minus_L=yes
15405 hardcode_libdir_flag_spec='-L$libdir'
15406 hardcode_libdir_separator=
15410 shared_flag='-shared'
15411 if test "$aix_use_runtimelinking" = yes; then
15412 shared_flag="$shared_flag "'${wl}-G'
15416 if test "$host_cpu" = ia64; then
15417 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15418 # chokes on -Wl,-G. The following line is correct:
15421 if test "$aix_use_runtimelinking" = yes; then
15422 shared_flag='${wl}-G'
15424 shared_flag='${wl}-bM:SRE'
15429 export_dynamic_flag_spec='${wl}-bexpall'
15430 # It seems that -bexpall does not export symbols beginning with
15431 # underscore (_), so it is better to generate a list of symbols to export.
15432 always_export_symbols=yes
15433 if test "$aix_use_runtimelinking" = yes; then
15434 # Warning - without using the other runtime loading flags (-brtl),
15435 # -berok will link without error, but may produce a broken library.
15436 allow_undefined_flag='-berok'
15437 # Determine the default libpath from the value encoded in an
15438 # empty executable.
15439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15440 /* end confdefs.h. */
15450 if ac_fn_c_try_link "$LINENO"; then :
15452 lt_aix_libpath_sed='
15453 /Import File Strings/,/^$/ {
15459 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15460 # Check for a 64-bit object if we didn't find anything.
15461 if test -z "$aix_libpath"; then
15462 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15465 rm -f core conftest.err conftest.$ac_objext \
15466 conftest$ac_exeext conftest.$ac_ext
15467 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15469 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15470 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15472 if test "$host_cpu" = ia64; then
15473 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15474 allow_undefined_flag="-z nodefs"
15475 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"
15477 # Determine the default libpath from the value encoded in an
15478 # empty executable.
15479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15480 /* end confdefs.h. */
15490 if ac_fn_c_try_link "$LINENO"; then :
15492 lt_aix_libpath_sed='
15493 /Import File Strings/,/^$/ {
15499 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15500 # Check for a 64-bit object if we didn't find anything.
15501 if test -z "$aix_libpath"; then
15502 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15505 rm -f core conftest.err conftest.$ac_objext \
15506 conftest$ac_exeext conftest.$ac_ext
15507 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15509 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15510 # Warning - without using the other run time loading flags,
15511 # -berok will link without error, but may produce a broken library.
15512 no_undefined_flag=' ${wl}-bernotok'
15513 allow_undefined_flag=' ${wl}-berok'
15514 # Exported symbols can be pulled into shared objects from archives
15515 whole_archive_flag_spec='$convenience'
15516 archive_cmds_need_lc=yes
15517 # This is similar to how AIX traditionally builds its shared libraries.
15518 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'
15526 # see comment about AmigaOS4 .so support
15527 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15528 archive_expsym_cmds=''
15531 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)'
15532 hardcode_libdir_flag_spec='-L$libdir'
15533 hardcode_minus_L=yes
15539 export_dynamic_flag_spec=-rdynamic
15542 cygwin* | mingw* | pw32* | cegcc*)
15543 # When not using gcc, we currently assume that we are using
15544 # Microsoft Visual C++.
15545 # hardcode_libdir_flag_spec is actually meaningless, as there is
15546 # no search path for DLLs.
15547 hardcode_libdir_flag_spec=' '
15548 allow_undefined_flag=unsupported
15549 # Tell ltmain to make .lib files, not .a files.
15551 # Tell ltmain to make .dll files, not .so files.
15553 # FIXME: Setting linknames here is a bad hack.
15554 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
15555 # The linker will automatically build a .lib file if we build a DLL.
15556 old_archive_from_new_cmds='true'
15557 # FIXME: Should let the user specify the lib program.
15558 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15559 fix_srcfile_path='`cygpath -w "$srcfile"`'
15560 enable_shared_with_static_runtimes=yes
15563 darwin* | rhapsody*)
15566 archive_cmds_need_lc=no
15568 hardcode_automatic=yes
15569 hardcode_shlibpath_var=unsupported
15570 whole_archive_flag_spec=''
15571 link_all_deplibs=yes
15572 allow_undefined_flag="$_lt_dar_allow_undefined"
15573 case $cc_basename in
15574 ifort*) _lt_dar_can_shared=yes ;;
15575 *) _lt_dar_can_shared=$GCC ;;
15577 if test "$_lt_dar_can_shared" = "yes"; then
15578 output_verbose_link_cmd=echo
15579 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15580 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15581 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}"
15582 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}"
15591 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15592 hardcode_libdir_flag_spec='-L$libdir'
15593 hardcode_shlibpath_var=no
15600 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15601 # support. Future versions do this automatically, but an explicit c++rt0.o
15602 # does not break anything, and helps significantly (at the cost of a little
15605 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15606 hardcode_libdir_flag_spec='-R$libdir'
15607 hardcode_direct=yes
15608 hardcode_shlibpath_var=no
15611 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15613 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15614 hardcode_direct=yes
15615 hardcode_minus_L=yes
15616 hardcode_shlibpath_var=no
15619 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15620 freebsd* | dragonfly*)
15621 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15622 hardcode_libdir_flag_spec='-R$libdir'
15623 hardcode_direct=yes
15624 hardcode_shlibpath_var=no
15628 if test "$GCC" = yes; then
15629 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'
15631 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'
15633 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15634 hardcode_libdir_separator=:
15635 hardcode_direct=yes
15637 # hardcode_minus_L: Not really in the search PATH,
15638 # but as the default location of the library.
15639 hardcode_minus_L=yes
15640 export_dynamic_flag_spec='${wl}-E'
15644 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15645 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15647 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15649 if test "$with_gnu_ld" = no; then
15650 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15651 hardcode_libdir_flag_spec_ld='+b $libdir'
15652 hardcode_libdir_separator=:
15653 hardcode_direct=yes
15654 hardcode_direct_absolute=yes
15655 export_dynamic_flag_spec='${wl}-E'
15656 # hardcode_minus_L: Not really in the search PATH,
15657 # but as the default location of the library.
15658 hardcode_minus_L=yes
15663 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15666 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15669 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15672 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15678 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15681 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15684 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15688 if test "$with_gnu_ld" = no; then
15689 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15690 hardcode_libdir_separator=:
15695 hardcode_shlibpath_var=no
15698 hardcode_direct=yes
15699 hardcode_direct_absolute=yes
15700 export_dynamic_flag_spec='${wl}-E'
15702 # hardcode_minus_L: Not really in the search PATH,
15703 # but as the default location of the library.
15704 hardcode_minus_L=yes
15710 irix5* | irix6* | nonstopux*)
15711 if test "$GCC" = yes; then
15712 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15713 # Try to use the -exported_symbol ld option, if it does not
15714 # work, assume that -exports_file does not work either and
15715 # implicitly export all symbols.
15716 save_LDFLAGS="$LDFLAGS"
15717 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15719 /* end confdefs.h. */
15722 if ac_fn_c_try_link "$LINENO"; then :
15723 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
15726 rm -f core conftest.err conftest.$ac_objext \
15727 conftest$ac_exeext conftest.$ac_ext
15728 LDFLAGS="$save_LDFLAGS"
15730 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15731 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
15733 archive_cmds_need_lc='no'
15734 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15735 hardcode_libdir_separator=:
15737 link_all_deplibs=yes
15741 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15742 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15744 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15746 hardcode_libdir_flag_spec='-R$libdir'
15747 hardcode_direct=yes
15748 hardcode_shlibpath_var=no
15752 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15753 hardcode_direct=yes
15754 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15755 hardcode_libdir_separator=:
15756 hardcode_shlibpath_var=no
15763 if test -f /usr/libexec/ld.so; then
15764 hardcode_direct=yes
15765 hardcode_shlibpath_var=no
15766 hardcode_direct_absolute=yes
15767 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15768 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15769 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15770 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15771 export_dynamic_flag_spec='${wl}-E'
15774 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15775 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15776 hardcode_libdir_flag_spec='-R$libdir'
15779 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15780 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15790 hardcode_libdir_flag_spec='-L$libdir'
15791 hardcode_minus_L=yes
15792 allow_undefined_flag=unsupported
15793 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'
15794 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15798 if test "$GCC" = yes; then
15799 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15800 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15802 allow_undefined_flag=' -expect_unresolved \*'
15803 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15805 archive_cmds_need_lc='no'
15806 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15807 hardcode_libdir_separator=:
15810 osf4* | osf5*) # as osf3* with the addition of -msym flag
15811 if test "$GCC" = yes; then
15812 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15813 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15814 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15816 allow_undefined_flag=' -expect_unresolved \*'
15817 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15818 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~
15819 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
15821 # Both c and cxx compiler support -rpath directly
15822 hardcode_libdir_flag_spec='-rpath $libdir'
15824 archive_cmds_need_lc='no'
15825 hardcode_libdir_separator=:
15829 no_undefined_flag=' -z defs'
15830 if test "$GCC" = yes; then
15832 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15833 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15834 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15836 case `$CC -V 2>&1` in
15839 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15840 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15841 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15845 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15846 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15847 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15851 hardcode_libdir_flag_spec='-R$libdir'
15852 hardcode_shlibpath_var=no
15854 solaris2.[0-5] | solaris2.[0-5].*) ;;
15856 # The compiler driver will combine and reorder linker options,
15857 # but understands `-z linker_flag'. GCC discards it without `$wl',
15858 # but is careful enough not to reorder.
15859 # Supported since Solaris 2.6 (maybe 2.5.1?)
15860 if test "$GCC" = yes; then
15861 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15863 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15867 link_all_deplibs=yes
15871 if test "x$host_vendor" = xsequent; then
15872 # Use $CC to link under sequent, because it throws in some extra .o
15873 # files that make .init and .fini sections work.
15874 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15876 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15878 hardcode_libdir_flag_spec='-L$libdir'
15879 hardcode_direct=yes
15880 hardcode_minus_L=yes
15881 hardcode_shlibpath_var=no
15885 case $host_vendor in
15887 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15888 hardcode_direct=yes # is this really true???
15891 ## LD is ld it makes a PLAMLIB
15892 ## CC just makes a GrossModule.
15893 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15894 reload_cmds='$CC -r -o $output$reload_objs'
15898 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15899 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15902 runpath_var='LD_RUN_PATH'
15903 hardcode_shlibpath_var=no
15907 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15908 hardcode_shlibpath_var=no
15909 export_dynamic_flag_spec='-Bexport'
15913 if test -d /usr/nec; then
15914 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15915 hardcode_shlibpath_var=no
15916 runpath_var=LD_RUN_PATH
15917 hardcode_runpath_var=yes
15922 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15923 no_undefined_flag='${wl}-z,text'
15924 archive_cmds_need_lc=no
15925 hardcode_shlibpath_var=no
15926 runpath_var='LD_RUN_PATH'
15928 if test "$GCC" = yes; then
15929 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15930 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15932 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15933 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15937 sysv5* | sco3.2v5* | sco5v6*)
15938 # Note: We can NOT use -z defs as we might desire, because we do not
15939 # link with -lc, and that would cause any symbols used from libc to
15940 # always be unresolved, which means just about no library would
15941 # ever link correctly. If we're not using GNU ld we use -z text
15942 # though, which does catch some bad symbols but isn't as heavy-handed
15944 no_undefined_flag='${wl}-z,text'
15945 allow_undefined_flag='${wl}-z,nodefs'
15946 archive_cmds_need_lc=no
15947 hardcode_shlibpath_var=no
15948 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15949 hardcode_libdir_separator=':'
15950 link_all_deplibs=yes
15951 export_dynamic_flag_spec='${wl}-Bexport'
15952 runpath_var='LD_RUN_PATH'
15954 if test "$GCC" = yes; then
15955 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15956 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15958 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15959 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15964 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15965 hardcode_libdir_flag_spec='-L$libdir'
15966 hardcode_shlibpath_var=no
15974 if test x$host_vendor = xsni; then
15976 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15977 export_dynamic_flag_spec='${wl}-Blargedynsym'
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15984 $as_echo "$ld_shlibs" >&6; }
15985 test "$ld_shlibs" = no && can_build_shared=no
15987 with_gnu_ld=$with_gnu_ld
16004 # Do we need to explicitly link libc?
16006 case "x$archive_cmds_need_lc" in
16008 # Assume -lc should be added
16009 archive_cmds_need_lc=yes
16011 if test "$enable_shared" = yes && test "$GCC" = yes; then
16012 case $archive_cmds in
16014 # FIXME: we may have to deal with multi-command sequences.
16017 # Test whether the compiler implicitly links with -lc since on some
16018 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16019 # to ld, don't add -lc before -lgcc.
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16021 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16022 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16023 $as_echo_n "(cached) " >&6
16026 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16028 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16029 (eval $ac_compile) 2>&5
16031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16032 test $ac_status = 0; } 2>conftest.err; then
16035 libobjs=conftest.$ac_objext
16037 wl=$lt_prog_compiler_wl
16038 pic_flag=$lt_prog_compiler_pic
16044 lt_save_allow_undefined_flag=$allow_undefined_flag
16045 allow_undefined_flag=
16046 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16047 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16050 test $ac_status = 0; }
16052 lt_cv_archive_cmds_need_lc=no
16054 lt_cv_archive_cmds_need_lc=yes
16056 allow_undefined_flag=$lt_save_allow_undefined_flag
16058 cat conftest.err 1>&5
16063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16064 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16065 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16229 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16231 if test "$GCC" = yes; then
16233 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16234 *) lt_awk_arg="/^libraries:/" ;;
16236 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16237 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
16238 # if the path contains ";" then we assume it to be the separator
16239 # otherwise default to the standard path separator (i.e. ":") - it is
16240 # assumed that no part of a normal pathname contains ";" but that should
16241 # okay in the real world where ";" in dirpaths is itself problematic.
16242 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
16244 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16246 # Ok, now we have the path, separated by spaces, we can step through it
16247 # and add multilib dir if necessary.
16248 lt_tmp_lt_search_path_spec=
16249 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16250 for lt_sys_path in $lt_search_path_spec; do
16251 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16252 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16254 test -d "$lt_sys_path" && \
16255 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16258 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
16259 BEGIN {RS=" "; FS="/|\n";} {
16262 for (lt_i = NF; lt_i > 0; lt_i--) {
16263 if ($lt_i != "" && $lt_i != ".") {
16264 if ($lt_i == "..") {
16267 if (lt_count == 0) {
16268 lt_foo="/" $lt_i lt_foo;
16275 if (lt_foo != "") { lt_freq[lt_foo]++; }
16276 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16278 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
16280 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16282 library_names_spec=
16283 libname_spec='lib$name'
16287 postuninstall_cmds=
16291 shlibpath_overrides_runpath=unknown
16293 dynamic_linker="$host_os ld.so"
16294 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16295 need_lib_prefix=unknown
16296 hardcode_into_libs=no
16298 # when you set need_version to no, make sure it does not cause -set_version
16299 # flags to be left without arguments
16300 need_version=unknown
16305 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16306 shlibpath_var=LIBPATH
16308 # AIX 3 has no versioning support, so we append a major version to the name.
16309 soname_spec='${libname}${release}${shared_ext}$major'
16316 hardcode_into_libs=yes
16317 if test "$host_cpu" = ia64; then
16318 # AIX 5 supports IA64
16319 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16320 shlibpath_var=LD_LIBRARY_PATH
16322 # With GCC up to 2.95.x, collect2 would create an import file
16323 # for dependence libraries. The import file would start with
16324 # the line `#! .'. This would cause the generated library to
16325 # depend on `.', always an invalid library. This was fixed in
16326 # development snapshots of GCC prior to 3.0.
16328 aix4 | aix4.[01] | aix4.[01].*)
16329 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16331 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16334 can_build_shared=no
16338 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16339 # soname into executable. Probably we can add versioning support to
16340 # collect2, so additional links can be useful in future.
16341 if test "$aix_use_runtimelinking" = yes; then
16342 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16343 # instead of lib<name>.a to let people know that these are not
16344 # typical AIX shared libraries.
16345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16347 # We preserve .a as extension for shared libraries through AIX4.2
16348 # and later when we are not doing run time linking.
16349 library_names_spec='${libname}${release}.a $libname.a'
16350 soname_spec='${libname}${release}${shared_ext}$major'
16352 shlibpath_var=LIBPATH
16359 # Since July 2007 AmigaOS4 officially supports .so libraries.
16360 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16364 library_names_spec='$libname.ixlibrary $libname.a'
16365 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16366 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
16372 library_names_spec='${libname}${shared_ext}'
16373 dynamic_linker="$host_os ld.so"
16374 shlibpath_var=LIBRARY_PATH
16380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16381 soname_spec='${libname}${release}${shared_ext}$major'
16382 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16383 shlibpath_var=LD_LIBRARY_PATH
16384 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16385 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16386 # the default ld.so.conf also contains /usr/contrib/lib and
16387 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16388 # libtool to hard-code these into programs
16391 cygwin* | mingw* | pw32* | cegcc*)
16392 version_type=windows
16397 case $GCC,$host_os in
16398 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16399 library_names_spec='$libname.dll.a'
16400 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16401 postinstall_cmds='base_file=`basename \${file}`~
16402 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16403 dldir=$destdir/`dirname \$dlpath`~
16404 test -d \$dldir || mkdir -p \$dldir~
16405 $install_prog $dir/$dlname \$dldir/$dlname~
16406 chmod a+x \$dldir/$dlname~
16407 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16408 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16410 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16411 dlpath=$dir/\$dldll~
16413 shlibpath_overrides_runpath=yes
16417 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16418 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16419 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16422 # MinGW DLLs use traditional 'lib' prefix
16423 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16424 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16425 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16426 # It is most probably a Windows format PATH printed by
16427 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16428 # path with ; separators, and with drive letters. We can handle the
16429 # drive letters (cygwin fileutils understands them), so leave them,
16430 # especially as we might pass files found there to a mingw objdump,
16431 # which wouldn't understand a cygwinified path. Ahh.
16432 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16434 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16438 # pw32 DLLs use 'pw' prefix rather than 'lib'
16439 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16445 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16448 dynamic_linker='Win32 ld.exe'
16449 # FIXME: first we should search . and the directory the executable is in
16453 darwin* | rhapsody*)
16454 dynamic_linker="$host_os dyld"
16455 version_type=darwin
16458 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16459 soname_spec='${libname}${release}${major}$shared_ext'
16460 shlibpath_overrides_runpath=yes
16461 shlibpath_var=DYLD_LIBRARY_PATH
16462 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16464 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16465 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16473 soname_spec='${libname}${release}${shared_ext}$major'
16474 shlibpath_var=LD_LIBRARY_PATH
16481 freebsd* | dragonfly*)
16482 # DragonFly does not have aout. When/if they implement a new
16483 # versioning mechanism, adjust this.
16484 if test -x /usr/bin/objformat; then
16485 objformat=`/usr/bin/objformat`
16488 freebsd[123]*) objformat=aout ;;
16489 *) objformat=elf ;;
16492 version_type=freebsd-$objformat
16493 case $version_type in
16495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16500 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16504 shlibpath_var=LD_LIBRARY_PATH
16507 shlibpath_overrides_runpath=yes
16509 freebsd3.[01]* | freebsdelf3.[01]*)
16510 shlibpath_overrides_runpath=yes
16511 hardcode_into_libs=yes
16513 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16514 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16515 shlibpath_overrides_runpath=no
16516 hardcode_into_libs=yes
16518 *) # from 4.6 on, and DragonFly
16519 shlibpath_overrides_runpath=yes
16520 hardcode_into_libs=yes
16529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16530 soname_spec='${libname}${release}${shared_ext}$major'
16531 shlibpath_var=LD_LIBRARY_PATH
16532 hardcode_into_libs=yes
16535 hpux9* | hpux10* | hpux11*)
16536 # Give a soname corresponding to the major version so that dld.sl refuses to
16537 # link against other versions.
16544 hardcode_into_libs=yes
16545 dynamic_linker="$host_os dld.so"
16546 shlibpath_var=LD_LIBRARY_PATH
16547 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16549 soname_spec='${libname}${release}${shared_ext}$major'
16550 if test "X$HPUX_IA64_MODE" = X32; then
16551 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16553 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16555 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16559 hardcode_into_libs=yes
16560 dynamic_linker="$host_os dld.sl"
16561 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16562 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16564 soname_spec='${libname}${release}${shared_ext}$major'
16565 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16566 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16570 dynamic_linker="$host_os dld.sl"
16571 shlibpath_var=SHLIB_PATH
16572 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16574 soname_spec='${libname}${release}${shared_ext}$major'
16577 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16578 postinstall_cmds='chmod 555 $lib'
16585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16586 soname_spec='${libname}${release}${shared_ext}$major'
16587 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16588 shlibpath_var=LD_LIBRARY_PATH
16589 shlibpath_overrides_runpath=no
16590 hardcode_into_libs=yes
16593 irix5* | irix6* | nonstopux*)
16595 nonstopux*) version_type=nonstopux ;;
16597 if test "$lt_cv_prog_gnu_ld" = yes; then
16605 soname_spec='${libname}${release}${shared_ext}$major'
16606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16608 irix5* | nonstopux*)
16609 libsuff= shlibsuff=
16612 case $LD in # libtool.m4 will add one of these switches to LD
16613 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16614 libsuff= shlibsuff= libmagic=32-bit;;
16615 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16616 libsuff=32 shlibsuff=N32 libmagic=N32;;
16617 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16618 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16619 *) libsuff= shlibsuff= libmagic=never-match;;
16623 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16624 shlibpath_overrides_runpath=no
16625 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16626 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16627 hardcode_into_libs=yes
16630 # No shared lib support for Linux oldld, aout, or coff.
16631 linux*oldld* | linux*aout* | linux*coff*)
16635 # This must be Linux ELF.
16636 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16641 soname_spec='${libname}${release}${shared_ext}$major'
16642 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16643 shlibpath_var=LD_LIBRARY_PATH
16644 shlibpath_overrides_runpath=no
16646 # Some binutils ld are patched to set DT_RUNPATH
16647 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16648 $as_echo_n "(cached) " >&6
16650 lt_cv_shlibpath_overrides_runpath=no
16651 save_LDFLAGS=$LDFLAGS
16652 save_libdir=$libdir
16653 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16654 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16656 /* end confdefs.h. */
16666 if ac_fn_c_try_link "$LINENO"; then :
16667 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16668 lt_cv_shlibpath_overrides_runpath=yes
16671 rm -f core conftest.err conftest.$ac_objext \
16672 conftest$ac_exeext conftest.$ac_ext
16673 LDFLAGS=$save_LDFLAGS
16674 libdir=$save_libdir
16678 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16680 # This implies no fast_install, which is unacceptable.
16681 # Some rework will be needed to allow for fast_install
16682 # before this can be enabled.
16683 hardcode_into_libs=yes
16685 # Append ld.so.conf contents to the search path
16686 if test -f /etc/ld.so.conf; then
16687 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;/^$/d' | tr '\n' ' '`
16688 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16691 # We used to test for /lib/ld.so.1 and disable shared libraries on
16692 # powerpc, because MkLinux only supported shared libraries with the
16693 # GNU dynamic linker. Since this was broken with cross compilers,
16694 # most powerpc-linux boxes support dynamic linking these days and
16695 # people can always --disable-shared, the test was removed, and we
16696 # assume the GNU/Linux dynamic linker is in use.
16697 dynamic_linker='GNU/Linux ld.so'
16704 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16706 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16707 dynamic_linker='NetBSD (a.out) ld.so'
16709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16710 soname_spec='${libname}${release}${shared_ext}$major'
16711 dynamic_linker='NetBSD ld.elf_so'
16713 shlibpath_var=LD_LIBRARY_PATH
16714 shlibpath_overrides_runpath=yes
16715 hardcode_into_libs=yes
16720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16721 shlibpath_var=LD_LIBRARY_PATH
16722 shlibpath_overrides_runpath=yes
16729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16730 soname_spec='${libname}${release}${shared_ext}$major'
16731 shlibpath_var=LD_LIBRARY_PATH
16732 shlibpath_overrides_runpath=no
16733 hardcode_into_libs=yes
16734 dynamic_linker='ldqnx.so'
16739 sys_lib_dlsearch_path_spec="/usr/lib"
16741 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16743 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16744 *) need_version=no ;;
16746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16747 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16748 shlibpath_var=LD_LIBRARY_PATH
16749 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16751 openbsd2.[89] | openbsd2.[89].*)
16752 shlibpath_overrides_runpath=no
16755 shlibpath_overrides_runpath=yes
16759 shlibpath_overrides_runpath=yes
16764 libname_spec='$name'
16767 library_names_spec='$libname${shared_ext} $libname.a'
16768 dynamic_linker='OS/2 ld.exe'
16769 shlibpath_var=LIBPATH
16772 osf3* | osf4* | osf5*)
16776 soname_spec='${libname}${release}${shared_ext}$major'
16777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16778 shlibpath_var=LD_LIBRARY_PATH
16779 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16780 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16792 soname_spec='${libname}${release}${shared_ext}$major'
16793 shlibpath_var=LD_LIBRARY_PATH
16794 shlibpath_overrides_runpath=yes
16795 hardcode_into_libs=yes
16796 # ldd complains unless libraries are executable
16797 postinstall_cmds='chmod +x $lib'
16802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16803 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16804 shlibpath_var=LD_LIBRARY_PATH
16805 shlibpath_overrides_runpath=yes
16806 if test "$with_gnu_ld" = yes; then
16814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16815 soname_spec='${libname}${release}${shared_ext}$major'
16816 shlibpath_var=LD_LIBRARY_PATH
16817 case $host_vendor in
16819 shlibpath_overrides_runpath=no
16821 runpath_var=LD_RUN_PATH
16829 shlibpath_overrides_runpath=no
16830 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16836 if test -d /usr/nec ;then
16838 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16839 soname_spec='$libname${shared_ext}.$major'
16840 shlibpath_var=LD_LIBRARY_PATH
16844 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16845 version_type=freebsd-elf
16848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16849 soname_spec='${libname}${release}${shared_ext}$major'
16850 shlibpath_var=LD_LIBRARY_PATH
16851 shlibpath_overrides_runpath=yes
16852 hardcode_into_libs=yes
16853 if test "$with_gnu_ld" = yes; then
16854 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16856 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16859 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16863 sys_lib_dlsearch_path_spec='/usr/lib'
16867 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16872 shlibpath_var=LD_LIBRARY_PATH
16873 shlibpath_overrides_runpath=no
16874 hardcode_into_libs=yes
16879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16880 soname_spec='${libname}${release}${shared_ext}$major'
16881 shlibpath_var=LD_LIBRARY_PATH
16888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16889 $as_echo "$dynamic_linker" >&6; }
16890 test "$dynamic_linker" = no && can_build_shared=no
16892 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16893 if test "$GCC" = yes; then
16894 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16897 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16898 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16900 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16901 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16991 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16993 if test -n "$hardcode_libdir_flag_spec" ||
16994 test -n "$runpath_var" ||
16995 test "X$hardcode_automatic" = "Xyes" ; then
16997 # We can hardcode non-existent directories.
16998 if test "$hardcode_direct" != no &&
16999 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17000 # have to relink, otherwise we might link with an installed library
17001 # when we should be linking with a yet-to-be-installed one
17002 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17003 test "$hardcode_minus_L" != no; then
17004 # Linking always hardcodes the temporary library directory.
17005 hardcode_action=relink
17007 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17008 hardcode_action=immediate
17011 # We cannot hardcode anything, or else we can only hardcode existing
17013 hardcode_action=unsupported
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17016 $as_echo "$hardcode_action" >&6; }
17018 if test "$hardcode_action" = relink ||
17019 test "$inherit_rpath" = yes; then
17020 # Fast installation is not supported
17021 enable_fast_install=no
17022 elif test "$shlibpath_overrides_runpath" = yes ||
17023 test "$enable_shared" = no; then
17024 # Fast installation is not necessary
17025 enable_fast_install=needless
17033 if test "x$enable_dlopen" != xyes; then
17034 enable_dlopen=unknown
17035 enable_dlopen_self=unknown
17036 enable_dlopen_self_static=unknown
17043 lt_cv_dlopen="load_add_on"
17045 lt_cv_dlopen_self=yes
17048 mingw* | pw32* | cegcc*)
17049 lt_cv_dlopen="LoadLibrary"
17054 lt_cv_dlopen="dlopen"
17059 # if libdl is installed we need to link against it
17060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17061 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17062 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17063 $as_echo_n "(cached) " >&6
17065 ac_check_lib_save_LIBS=$LIBS
17067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17068 /* end confdefs.h. */
17070 /* Override any GCC internal prototype to avoid an error.
17071 Use char because int might match the return type of a GCC
17072 builtin and then its argument prototype would still apply. */
17085 if ac_fn_c_try_link "$LINENO"; then :
17086 ac_cv_lib_dl_dlopen=yes
17088 ac_cv_lib_dl_dlopen=no
17090 rm -f core conftest.err conftest.$ac_objext \
17091 conftest$ac_exeext conftest.$ac_ext
17092 LIBS=$ac_check_lib_save_LIBS
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17095 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17096 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17097 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17100 lt_cv_dlopen="dyld"
17102 lt_cv_dlopen_self=yes
17109 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17110 if test "x$ac_cv_func_shl_load" = x""yes; then :
17111 lt_cv_dlopen="shl_load"
17113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17114 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17115 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17116 $as_echo_n "(cached) " >&6
17118 ac_check_lib_save_LIBS=$LIBS
17120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17121 /* end confdefs.h. */
17123 /* Override any GCC internal prototype to avoid an error.
17124 Use char because int might match the return type of a GCC
17125 builtin and then its argument prototype would still apply. */
17133 return shl_load ();
17138 if ac_fn_c_try_link "$LINENO"; then :
17139 ac_cv_lib_dld_shl_load=yes
17141 ac_cv_lib_dld_shl_load=no
17143 rm -f core conftest.err conftest.$ac_objext \
17144 conftest$ac_exeext conftest.$ac_ext
17145 LIBS=$ac_check_lib_save_LIBS
17147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17148 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17149 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17150 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17152 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17153 if test "x$ac_cv_func_dlopen" = x""yes; then :
17154 lt_cv_dlopen="dlopen"
17156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17157 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17158 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17159 $as_echo_n "(cached) " >&6
17161 ac_check_lib_save_LIBS=$LIBS
17163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17164 /* end confdefs.h. */
17166 /* Override any GCC internal prototype to avoid an error.
17167 Use char because int might match the return type of a GCC
17168 builtin and then its argument prototype would still apply. */
17181 if ac_fn_c_try_link "$LINENO"; then :
17182 ac_cv_lib_dl_dlopen=yes
17184 ac_cv_lib_dl_dlopen=no
17186 rm -f core conftest.err conftest.$ac_objext \
17187 conftest$ac_exeext conftest.$ac_ext
17188 LIBS=$ac_check_lib_save_LIBS
17190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17191 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17192 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17193 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17196 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17197 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17198 $as_echo_n "(cached) " >&6
17200 ac_check_lib_save_LIBS=$LIBS
17201 LIBS="-lsvld $LIBS"
17202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17203 /* end confdefs.h. */
17205 /* Override any GCC internal prototype to avoid an error.
17206 Use char because int might match the return type of a GCC
17207 builtin and then its argument prototype would still apply. */
17220 if ac_fn_c_try_link "$LINENO"; then :
17221 ac_cv_lib_svld_dlopen=yes
17223 ac_cv_lib_svld_dlopen=no
17225 rm -f core conftest.err conftest.$ac_objext \
17226 conftest$ac_exeext conftest.$ac_ext
17227 LIBS=$ac_check_lib_save_LIBS
17229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17230 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17231 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17232 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17235 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17236 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17237 $as_echo_n "(cached) " >&6
17239 ac_check_lib_save_LIBS=$LIBS
17241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17242 /* end confdefs.h. */
17244 /* Override any GCC internal prototype to avoid an error.
17245 Use char because int might match the return type of a GCC
17246 builtin and then its argument prototype would still apply. */
17254 return dld_link ();
17259 if ac_fn_c_try_link "$LINENO"; then :
17260 ac_cv_lib_dld_dld_link=yes
17262 ac_cv_lib_dld_dld_link=no
17264 rm -f core conftest.err conftest.$ac_objext \
17265 conftest$ac_exeext conftest.$ac_ext
17266 LIBS=$ac_check_lib_save_LIBS
17268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17269 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17270 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17271 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17292 if test "x$lt_cv_dlopen" != xno; then
17298 case $lt_cv_dlopen in
17300 save_CPPFLAGS="$CPPFLAGS"
17301 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17303 save_LDFLAGS="$LDFLAGS"
17304 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17307 LIBS="$lt_cv_dlopen_libs $LIBS"
17309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17310 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17311 if test "${lt_cv_dlopen_self+set}" = set; then :
17312 $as_echo_n "(cached) " >&6
17314 if test "$cross_compiling" = yes; then :
17315 lt_cv_dlopen_self=cross
17317 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17318 lt_status=$lt_dlunknown
17319 cat > conftest.$ac_ext <<_LT_EOF
17320 #line 17320 "configure"
17321 #include "confdefs.h"
17330 # define LT_DLGLOBAL RTLD_GLOBAL
17333 # define LT_DLGLOBAL DL_GLOBAL
17335 # define LT_DLGLOBAL 0
17339 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17340 find out it does not work in some platform. */
17341 #ifndef LT_DLLAZY_OR_NOW
17343 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17346 # define LT_DLLAZY_OR_NOW DL_LAZY
17349 # define LT_DLLAZY_OR_NOW RTLD_NOW
17352 # define LT_DLLAZY_OR_NOW DL_NOW
17354 # define LT_DLLAZY_OR_NOW 0
17361 void fnord() { int i=42;}
17364 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17365 int status = $lt_dlunknown;
17369 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17370 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17371 /* dlclose (self); */
17379 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17380 (eval $ac_link) 2>&5
17382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17383 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17384 (./conftest; exit; ) >&5 2>/dev/null
17386 case x$lt_status in
17387 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17388 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17389 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17392 # compilation failed
17393 lt_cv_dlopen_self=no
17400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17401 $as_echo "$lt_cv_dlopen_self" >&6; }
17403 if test "x$lt_cv_dlopen_self" = xyes; then
17404 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17406 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17407 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17408 $as_echo_n "(cached) " >&6
17410 if test "$cross_compiling" = yes; then :
17411 lt_cv_dlopen_self_static=cross
17413 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17414 lt_status=$lt_dlunknown
17415 cat > conftest.$ac_ext <<_LT_EOF
17416 #line 17416 "configure"
17417 #include "confdefs.h"
17426 # define LT_DLGLOBAL RTLD_GLOBAL
17429 # define LT_DLGLOBAL DL_GLOBAL
17431 # define LT_DLGLOBAL 0
17435 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17436 find out it does not work in some platform. */
17437 #ifndef LT_DLLAZY_OR_NOW
17439 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17442 # define LT_DLLAZY_OR_NOW DL_LAZY
17445 # define LT_DLLAZY_OR_NOW RTLD_NOW
17448 # define LT_DLLAZY_OR_NOW DL_NOW
17450 # define LT_DLLAZY_OR_NOW 0
17457 void fnord() { int i=42;}
17460 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17461 int status = $lt_dlunknown;
17465 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17466 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17467 /* dlclose (self); */
17475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17476 (eval $ac_link) 2>&5
17478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17479 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17480 (./conftest; exit; ) >&5 2>/dev/null
17482 case x$lt_status in
17483 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17484 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17485 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17488 # compilation failed
17489 lt_cv_dlopen_self_static=no
17496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17497 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17500 CPPFLAGS="$save_CPPFLAGS"
17501 LDFLAGS="$save_LDFLAGS"
17506 case $lt_cv_dlopen_self in
17507 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17508 *) enable_dlopen_self=unknown ;;
17511 case $lt_cv_dlopen_self_static in
17512 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17513 *) enable_dlopen_self_static=unknown ;;
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17536 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17537 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17538 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17539 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17541 $as_echo "yes" >&6; }
17543 # FIXME - insert some real tests, host_os isn't really good enough
17546 if test -n "$STRIP" ; then
17547 striplib="$STRIP -x"
17548 old_striplib="$STRIP -S"
17549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17550 $as_echo "yes" >&6; }
17552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17553 $as_echo "no" >&6; }
17557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17558 $as_echo "no" >&6; }
17574 # Report which library types will actually be built
17575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17576 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17578 $as_echo "$can_build_shared" >&6; }
17580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17581 $as_echo_n "checking whether to build shared libraries... " >&6; }
17582 test "$can_build_shared" = "no" && enable_shared=no
17584 # On AIX, shared libraries and static libraries use the same namespace, and
17585 # are all built from PIC.
17588 test "$enable_shared" = yes && enable_static=no
17589 if test -n "$RANLIB"; then
17590 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17591 postinstall_cmds='$RANLIB $lib'
17596 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17597 test "$enable_shared" = yes && enable_static=no
17601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17602 $as_echo "$enable_shared" >&6; }
17604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17605 $as_echo_n "checking whether to build static libraries... " >&6; }
17606 # Make sure either enable_shared or enable_static is yes.
17607 test "$enable_shared" = yes || enable_static=yes
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17609 $as_echo "$enable_static" >&6; }
17616 ac_cpp='$CPP $CPPFLAGS'
17617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17625 ac_cpp='$CXXCPP $CPPFLAGS'
17626 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17627 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17628 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17630 archive_cmds_need_lc_CXX=no
17631 allow_undefined_flag_CXX=
17632 always_export_symbols_CXX=no
17633 archive_expsym_cmds_CXX=
17634 compiler_needs_object_CXX=no
17635 export_dynamic_flag_spec_CXX=
17636 hardcode_direct_CXX=no
17637 hardcode_direct_absolute_CXX=no
17638 hardcode_libdir_flag_spec_CXX=
17639 hardcode_libdir_flag_spec_ld_CXX=
17640 hardcode_libdir_separator_CXX=
17641 hardcode_minus_L_CXX=no
17642 hardcode_shlibpath_var_CXX=unsupported
17643 hardcode_automatic_CXX=no
17644 inherit_rpath_CXX=no
17646 module_expsym_cmds_CXX=
17647 link_all_deplibs_CXX=unknown
17648 old_archive_cmds_CXX=$old_archive_cmds
17649 no_undefined_flag_CXX=
17650 whole_archive_flag_spec_CXX=
17651 enable_shared_with_static_runtimes_CXX=no
17653 # Source file extension for C++ test sources.
17656 # Object file extension for compiled C++ test sources.
17660 # No sense in running all these tests if we already determined that
17661 # the CXX compiler isn't working. Some variables (like enable_shared)
17662 # are currently assumed to apply to all compilers on this platform,
17663 # and will be corrupted by setting them based on a non-working compiler.
17664 if test "$_lt_caught_CXX_error" != yes; then
17665 # Code to be used in simple compile tests
17666 lt_simple_compile_test_code="int some_variable = 0;"
17668 # Code to be used in simple link tests
17669 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17671 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17678 # If no C compiler was specified, use CC.
17681 # If no C compiler flags were specified, use CFLAGS.
17682 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17684 # Allow CC to be a program name with arguments.
17688 # save warnings/boilerplate of simple test code
17689 ac_outfile=conftest.$ac_objext
17690 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17691 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17692 _lt_compiler_boilerplate=`cat conftest.err`
17695 ac_outfile=conftest.$ac_objext
17696 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17697 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17698 _lt_linker_boilerplate=`cat conftest.err`
17702 # Allow CC to be a program name with arguments.
17707 lt_save_with_gnu_ld=$with_gnu_ld
17708 lt_save_path_LD=$lt_cv_path_LD
17709 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17710 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17712 $as_unset lt_cv_prog_gnu_ld
17714 if test -n "${lt_cv_path_LDCXX+set}"; then
17715 lt_cv_path_LD=$lt_cv_path_LDCXX
17717 $as_unset lt_cv_path_LD
17719 test -z "${LDCXX+set}" || LD=$LDCXX
17723 for cc_temp in $compiler""; do
17725 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17726 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17731 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17734 if test -n "$compiler"; then
17735 # We don't want -fno-exception when compiling C++ code, so set the
17736 # no_builtin_flag separately
17737 if test "$GXX" = yes; then
17738 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17740 lt_prog_compiler_no_builtin_flag_CXX=
17743 if test "$GXX" = yes; then
17744 # Set up default GNU C++ configuration
17748 # Check whether --with-gnu-ld was given.
17749 if test "${with_gnu_ld+set}" = set; then :
17750 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17756 if test "$GCC" = yes; then
17757 # Check if gcc -print-prog-name=ld gives a path.
17758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17759 $as_echo_n "checking for ld used by $CC... " >&6; }
17762 # gcc leaves a trailing carriage return which upsets mingw
17763 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17765 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17768 # Accept absolute paths.
17770 re_direlt='/[^/][^/]*/\.\./'
17771 # Canonicalize the pathname of ld
17772 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17773 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17774 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17776 test -z "$LD" && LD="$ac_prog"
17779 # If it fails, then pretend we aren't using GCC.
17783 # If it is relative, then search for the first ld in PATH.
17784 with_gnu_ld=unknown
17787 elif test "$with_gnu_ld" = yes; then
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17789 $as_echo_n "checking for GNU ld... " >&6; }
17791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17792 $as_echo_n "checking for non-GNU ld... " >&6; }
17794 if test "${lt_cv_path_LD+set}" = set; then :
17795 $as_echo_n "(cached) " >&6
17797 if test -z "$LD"; then
17798 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17799 for ac_dir in $PATH; do
17801 test -z "$ac_dir" && ac_dir=.
17802 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17803 lt_cv_path_LD="$ac_dir/$ac_prog"
17804 # Check to see if the program is GNU ld. I'd rather use --version,
17805 # but apparently some variants of GNU ld only accept -v.
17806 # Break only if it was the GNU/non-GNU ld that we prefer.
17807 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17808 *GNU* | *'with BFD'*)
17809 test "$with_gnu_ld" != no && break
17812 test "$with_gnu_ld" != yes && break
17819 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17823 LD="$lt_cv_path_LD"
17824 if test -n "$LD"; then
17825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17826 $as_echo "$LD" >&6; }
17828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17829 $as_echo "no" >&6; }
17831 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
17832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17833 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17834 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
17835 $as_echo_n "(cached) " >&6
17837 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17838 case `$LD -v 2>&1 </dev/null` in
17839 *GNU* | *'with BFD'*)
17840 lt_cv_prog_gnu_ld=yes
17843 lt_cv_prog_gnu_ld=no
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17848 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
17849 with_gnu_ld=$lt_cv_prog_gnu_ld
17857 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17858 # archiving commands below assume that GNU ld is being used.
17859 if test "$with_gnu_ld" = yes; then
17860 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17861 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'
17863 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17864 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17866 # If archive_cmds runs LD, not CC, wlarc should be empty
17867 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17868 # investigate it a little bit more. (MM)
17871 # ancient GNU ld didn't support --whole-archive et. al.
17872 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17873 $GREP 'no-whole-archive' > /dev/null; then
17874 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17876 whole_archive_flag_spec_CXX=
17882 # A generic and very simple default shared library creation
17883 # command for GNU C++ for the case where it uses the native
17884 # linker, instead of GNU ld. If possible, this setting should
17885 # overridden to take advantage of the native linker features on
17886 # the platform it is being used on.
17887 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17890 # Commands to make compiler produce verbose output that lists
17891 # what "hidden" libraries, object files and flags are used when
17892 # linking a shared library.
17893 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
17901 # PORTME: fill in a description of your system's C++ link characteristics
17902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17903 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17907 # FIXME: insert proper C++ library support
17911 if test "$host_cpu" = ia64; then
17912 # On IA64, the linker does run time linking by default, so we don't
17913 # have to do anything special.
17914 aix_use_runtimelinking=no
17915 exp_sym_flag='-Bexport'
17918 aix_use_runtimelinking=no
17920 # Test if we are trying to use run time linking or normal
17921 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17922 # need to do runtime linking.
17923 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17924 for ld_flag in $LDFLAGS; do
17927 aix_use_runtimelinking=yes
17935 exp_sym_flag='-bexport'
17936 no_entry_flag='-bnoentry'
17939 # When large executables or shared objects are built, AIX ld can
17940 # have problems creating the table of contents. If linking a library
17941 # or program results in "error TOC overflow" add -mminimal-toc to
17942 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17943 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17945 archive_cmds_CXX=''
17946 hardcode_direct_CXX=yes
17947 hardcode_direct_absolute_CXX=yes
17948 hardcode_libdir_separator_CXX=':'
17949 link_all_deplibs_CXX=yes
17950 file_list_spec_CXX='${wl}-f,'
17952 if test "$GXX" = yes; then
17953 case $host_os in aix4.[012]|aix4.[012].*)
17954 # We only want to do this on AIX 4.2 and lower, the check
17955 # below for broken collect2 doesn't work under 4.3+
17956 collect2name=`${CC} -print-prog-name=collect2`
17957 if test -f "$collect2name" &&
17958 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17960 # We have reworked collect2
17963 # We have old collect2
17964 hardcode_direct_CXX=unsupported
17965 # It fails to find uninstalled libraries when the uninstalled
17966 # path is not listed in the libpath. Setting hardcode_minus_L
17967 # to unsupported forces relinking
17968 hardcode_minus_L_CXX=yes
17969 hardcode_libdir_flag_spec_CXX='-L$libdir'
17970 hardcode_libdir_separator_CXX=
17973 shared_flag='-shared'
17974 if test "$aix_use_runtimelinking" = yes; then
17975 shared_flag="$shared_flag "'${wl}-G'
17979 if test "$host_cpu" = ia64; then
17980 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17981 # chokes on -Wl,-G. The following line is correct:
17984 if test "$aix_use_runtimelinking" = yes; then
17985 shared_flag='${wl}-G'
17987 shared_flag='${wl}-bM:SRE'
17992 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17993 # It seems that -bexpall does not export symbols beginning with
17994 # underscore (_), so it is better to generate a list of symbols to
17996 always_export_symbols_CXX=yes
17997 if test "$aix_use_runtimelinking" = yes; then
17998 # Warning - without using the other runtime loading flags (-brtl),
17999 # -berok will link without error, but may produce a broken library.
18000 allow_undefined_flag_CXX='-berok'
18001 # Determine the default libpath from the value encoded in an empty
18003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18004 /* end confdefs.h. */
18014 if ac_fn_cxx_try_link "$LINENO"; then :
18016 lt_aix_libpath_sed='
18017 /Import File Strings/,/^$/ {
18023 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18024 # Check for a 64-bit object if we didn't find anything.
18025 if test -z "$aix_libpath"; then
18026 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18029 rm -f core conftest.err conftest.$ac_objext \
18030 conftest$ac_exeext conftest.$ac_ext
18031 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18033 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18035 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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18037 if test "$host_cpu" = ia64; then
18038 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18039 allow_undefined_flag_CXX="-z nodefs"
18040 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"
18042 # Determine the default libpath from the value encoded in an
18043 # empty executable.
18044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18045 /* end confdefs.h. */
18055 if ac_fn_cxx_try_link "$LINENO"; then :
18057 lt_aix_libpath_sed='
18058 /Import File Strings/,/^$/ {
18064 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18065 # Check for a 64-bit object if we didn't find anything.
18066 if test -z "$aix_libpath"; then
18067 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18070 rm -f core conftest.err conftest.$ac_objext \
18071 conftest$ac_exeext conftest.$ac_ext
18072 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18074 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18075 # Warning - without using the other run time loading flags,
18076 # -berok will link without error, but may produce a broken library.
18077 no_undefined_flag_CXX=' ${wl}-bernotok'
18078 allow_undefined_flag_CXX=' ${wl}-berok'
18079 # Exported symbols can be pulled into shared objects from archives
18080 whole_archive_flag_spec_CXX='$convenience'
18081 archive_cmds_need_lc_CXX=yes
18082 # This is similar to how AIX traditionally builds its shared
18084 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'
18090 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18091 allow_undefined_flag_CXX=unsupported
18092 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18093 # support --undefined. This deserves some investigation. FIXME
18094 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18101 case $cc_basename in
18103 # FIXME: insert proper C++ library support
18109 cygwin* | mingw* | pw32* | cegcc*)
18110 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18111 # as there is no search path for DLLs.
18112 hardcode_libdir_flag_spec_CXX='-L$libdir'
18113 allow_undefined_flag_CXX=unsupported
18114 always_export_symbols_CXX=no
18115 enable_shared_with_static_runtimes_CXX=yes
18117 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18118 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'
18119 # If the export-symbols file already is a .def file (1st line
18120 # is EXPORTS), use it as is; otherwise, prepend...
18121 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18122 cp $export_symbols $output_objdir/$soname.def;
18124 echo EXPORTS > $output_objdir/$soname.def;
18125 cat $export_symbols >> $output_objdir/$soname.def;
18127 $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'
18132 darwin* | rhapsody*)
18135 archive_cmds_need_lc_CXX=no
18136 hardcode_direct_CXX=no
18137 hardcode_automatic_CXX=yes
18138 hardcode_shlibpath_var_CXX=unsupported
18139 whole_archive_flag_spec_CXX=''
18140 link_all_deplibs_CXX=yes
18141 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18142 case $cc_basename in
18143 ifort*) _lt_dar_can_shared=yes ;;
18144 *) _lt_dar_can_shared=$GCC ;;
18146 if test "$_lt_dar_can_shared" = "yes"; then
18147 output_verbose_link_cmd=echo
18148 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}"
18149 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18150 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}"
18151 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}"
18152 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18153 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}"
18154 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}"
18164 case $cc_basename in
18166 # FIXME: insert proper C++ library support
18170 # Green Hills C++ Compiler
18171 # FIXME: insert proper C++ library support
18175 # FIXME: insert proper C++ library support
18182 # C++ shared libraries reported to be fairly broken before
18188 archive_cmds_need_lc_CXX=no
18191 freebsd* | dragonfly*)
18192 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18201 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18202 hardcode_libdir_separator_CXX=:
18203 export_dynamic_flag_spec_CXX='${wl}-E'
18204 hardcode_direct_CXX=yes
18205 hardcode_minus_L_CXX=yes # Not in the search PATH,
18206 # but as the default
18207 # location of the library.
18209 case $cc_basename in
18211 # FIXME: insert proper C++ library support
18215 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'
18216 # Commands to make compiler produce verbose output that lists
18217 # what "hidden" libraries, object files and flags are used when
18218 # linking a shared library.
18220 # There doesn't appear to be a way to prevent this compiler from
18221 # explicitly linking system object files so we need to strip them
18222 # from the output so that they don't get included in the library
18224 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; $ECHO "X$list" | $Xsed'
18227 if test "$GXX" = yes; then
18228 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'
18230 # FIXME: insert proper C++ library support
18238 if test $with_gnu_ld = no; then
18239 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18240 hardcode_libdir_separator_CXX=:
18246 export_dynamic_flag_spec_CXX='${wl}-E'
18252 hardcode_direct_CXX=no
18253 hardcode_shlibpath_var_CXX=no
18256 hardcode_direct_CXX=yes
18257 hardcode_direct_absolute_CXX=yes
18258 hardcode_minus_L_CXX=yes # Not in the search PATH,
18259 # but as the default
18260 # location of the library.
18264 case $cc_basename in
18266 # FIXME: insert proper C++ library support
18272 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18275 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18278 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18281 # Commands to make compiler produce verbose output that lists
18282 # what "hidden" libraries, object files and flags are used when
18283 # linking a shared library.
18285 # There doesn't appear to be a way to prevent this compiler from
18286 # explicitly linking system object files so we need to strip them
18287 # from the output so that they don't get included in the library
18289 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; $ECHO "X$list" | $Xsed'
18292 if test "$GXX" = yes; then
18293 if test $with_gnu_ld = no; then
18296 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18299 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18302 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'
18307 # FIXME: insert proper C++ library support
18315 hardcode_direct_CXX=no
18316 hardcode_shlibpath_var_CXX=no
18317 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18318 export_dynamic_flag_spec_CXX='${wl}-E'
18319 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18320 # Instead, shared libraries are loaded at an image base (0x10000000 by
18321 # default) and relocated if they conflict, which is a slow very memory
18322 # consuming and fragmenting process. To avoid this, we pick a random,
18323 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18324 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18325 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'
18326 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'
18329 case $cc_basename in
18332 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
18334 # Archives containing C++ object files must be created using
18335 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18336 # necessary to make sure instantiated templates are included
18338 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18341 if test "$GXX" = yes; then
18342 if test "$with_gnu_ld" = no; then
18343 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18345 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
18348 link_all_deplibs_CXX=yes
18351 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18352 hardcode_libdir_separator_CXX=:
18353 inherit_rpath_CXX=yes
18356 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18357 case $cc_basename in
18359 # Kuck and Associates, Inc. (KAI) C++ Compiler
18361 # KCC will only create a shared library if the output file
18362 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18363 # to its proper name (with version) after linking.
18364 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'
18365 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'
18366 # Commands to make compiler produce verbose output that lists
18367 # what "hidden" libraries, object files and flags are used when
18368 # linking a shared library.
18370 # There doesn't appear to be a way to prevent this compiler from
18371 # explicitly linking system object files so we need to strip them
18372 # from the output so that they don't get included in the library
18374 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; $ECHO "X$list" | $Xsed'
18376 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18377 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18379 # Archives containing C++ object files must be created using
18380 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18381 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18386 # version 8.0 and above of icpc choke on multiply defined symbols
18387 # if we add $predep_objects and $postdep_objects, however 7.1 and
18388 # earlier do not add the objects themselves.
18389 case `$CC -V 2>&1` in
18391 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18392 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'
18394 *) # Version 8.0 or newer
18397 ia64*) tmp_idyn=' -i_dynamic';;
18399 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18400 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'
18403 archive_cmds_need_lc_CXX=no
18404 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18405 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18406 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18409 # Portland Group C++ compiler
18411 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
18412 prelink_cmds_CXX='tpldir=Template.dir~
18414 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18415 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
18416 old_archive_cmds_CXX='tpldir=Template.dir~
18418 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18419 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
18421 archive_cmds_CXX='tpldir=Template.dir~
18423 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18424 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18425 archive_expsym_cmds_CXX='tpldir=Template.dir~
18427 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18428 $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'
18430 *) # Version 6 will use weak symbols
18431 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18432 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'
18436 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18437 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18438 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
18442 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18443 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'
18445 runpath_var=LD_RUN_PATH
18446 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18447 hardcode_libdir_separator_CXX=:
18449 # Commands to make compiler produce verbose output that lists
18450 # what "hidden" libraries, object files and flags are used when
18451 # linking a shared library.
18453 # There doesn't appear to be a way to prevent this compiler from
18454 # explicitly linking system object files so we need to strip them
18455 # from the output so that they don't get included in the library
18457 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
18460 # IBM XL 8.0 on PPC, with GNU ld
18461 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18462 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18463 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18464 if test "x$supports_anon_versioning" = xyes; then
18465 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18466 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18467 echo "local: *; };" >> $output_objdir/$libname.ver~
18468 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18472 case `$CC -V 2>&1 | sed 5q` in
18475 no_undefined_flag_CXX=' -zdefs'
18476 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18477 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'
18478 hardcode_libdir_flag_spec_CXX='-R$libdir'
18479 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
18480 compiler_needs_object_CXX=yes
18482 # Not sure whether something based on
18483 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18485 output_verbose_link_cmd='echo'
18487 # Archives containing C++ object files must be created using
18488 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18489 # necessary to make sure instantiated templates are included
18491 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18499 # FIXME: insert proper C++ library support
18504 # FIXME: insert proper C++ library support
18509 case $cc_basename in
18511 # FIXME: insert proper C++ library support
18515 # FIXME: insert proper C++ library support
18522 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18523 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18525 hardcode_libdir_flag_spec_CXX='-R$libdir'
18526 hardcode_direct_CXX=yes
18527 hardcode_shlibpath_var_CXX=no
18529 # Workaround some broken pre-1.5 toolchains
18530 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18538 # C++ shared libraries are fairly broken
18543 if test -f /usr/libexec/ld.so; then
18544 hardcode_direct_CXX=yes
18545 hardcode_shlibpath_var_CXX=no
18546 hardcode_direct_absolute_CXX=yes
18547 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18548 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18549 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18550 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18551 export_dynamic_flag_spec_CXX='${wl}-E'
18552 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18554 output_verbose_link_cmd=echo
18560 osf3* | osf4* | osf5*)
18561 case $cc_basename in
18563 # Kuck and Associates, Inc. (KAI) C++ Compiler
18565 # KCC will only create a shared library if the output file
18566 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18567 # to its proper name (with version) after linking.
18568 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'
18570 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18571 hardcode_libdir_separator_CXX=:
18573 # Archives containing C++ object files must be created using
18574 # the KAI C++ compiler.
18576 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18577 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18581 # Rational C++ 2.4.1
18582 # FIXME: insert proper C++ library support
18588 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18589 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
18590 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18593 allow_undefined_flag_CXX=' -expect_unresolved \*'
18594 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
18595 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18596 echo "-hidden">> $lib.exp~
18597 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
18599 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18603 hardcode_libdir_separator_CXX=:
18605 # Commands to make compiler produce verbose output that lists
18606 # what "hidden" libraries, object files and flags are used when
18607 # linking a shared library.
18609 # There doesn't appear to be a way to prevent this compiler from
18610 # explicitly linking system object files so we need to strip them
18611 # from the output so that they don't get included in the library
18613 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
18616 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18617 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18620 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18623 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" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18627 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18628 hardcode_libdir_separator_CXX=:
18630 # Commands to make compiler produce verbose output that lists
18631 # what "hidden" libraries, object files and flags are used when
18632 # linking a shared library.
18633 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
18636 # FIXME: insert proper C++ library support
18644 # FIXME: insert proper C++ library support
18649 case $cc_basename in
18652 # FIXME: insert proper C++ library support
18657 # FIXME: insert proper C++ library support
18661 # FIXME: insert proper C++ library support
18668 case $cc_basename in
18670 # Sun C++ 4.2, 5.x and Centerline C++
18671 archive_cmds_need_lc_CXX=yes
18672 no_undefined_flag_CXX=' -zdefs'
18673 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18674 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18675 $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'
18677 hardcode_libdir_flag_spec_CXX='-R$libdir'
18678 hardcode_shlibpath_var_CXX=no
18680 solaris2.[0-5] | solaris2.[0-5].*) ;;
18682 # The compiler driver will combine and reorder linker options,
18683 # but understands `-z linker_flag'.
18684 # Supported since Solaris 2.6 (maybe 2.5.1?)
18685 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18688 link_all_deplibs_CXX=yes
18690 output_verbose_link_cmd='echo'
18692 # Archives containing C++ object files must be created using
18693 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18694 # necessary to make sure instantiated templates are included
18696 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18699 # Green Hills C++ Compiler
18700 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18702 # The C++ compiler must be used to create the archive.
18703 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18706 # GNU C++ compiler with Solaris linker
18707 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18708 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18709 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
18710 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18711 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18712 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18714 # Commands to make compiler produce verbose output that lists
18715 # what "hidden" libraries, object files and flags are used when
18716 # linking a shared library.
18717 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
18719 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18721 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18722 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18723 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18725 # Commands to make compiler produce verbose output that lists
18726 # what "hidden" libraries, object files and flags are used when
18727 # linking a shared library.
18728 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
18731 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18733 solaris2.[0-5] | solaris2.[0-5].*) ;;
18735 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18743 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18744 no_undefined_flag_CXX='${wl}-z,text'
18745 archive_cmds_need_lc_CXX=no
18746 hardcode_shlibpath_var_CXX=no
18747 runpath_var='LD_RUN_PATH'
18749 case $cc_basename in
18751 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18752 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18755 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18756 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18761 sysv5* | sco3.2v5* | sco5v6*)
18762 # Note: We can NOT use -z defs as we might desire, because we do not
18763 # link with -lc, and that would cause any symbols used from libc to
18764 # always be unresolved, which means just about no library would
18765 # ever link correctly. If we're not using GNU ld we use -z text
18766 # though, which does catch some bad symbols but isn't as heavy-handed
18768 no_undefined_flag_CXX='${wl}-z,text'
18769 allow_undefined_flag_CXX='${wl}-z,nodefs'
18770 archive_cmds_need_lc_CXX=no
18771 hardcode_shlibpath_var_CXX=no
18772 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18773 hardcode_libdir_separator_CXX=':'
18774 link_all_deplibs_CXX=yes
18775 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18776 runpath_var='LD_RUN_PATH'
18778 case $cc_basename in
18780 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18781 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18784 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18785 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18791 case $cc_basename in
18793 # NonStop-UX NCC 3.20
18794 # FIXME: insert proper C++ library support
18798 # FIXME: insert proper C++ library support
18805 # FIXME: insert proper C++ library support
18810 # FIXME: insert proper C++ library support
18815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18816 $as_echo "$ld_shlibs_CXX" >&6; }
18817 test "$ld_shlibs_CXX" = no && can_build_shared=no
18823 ## There is no encapsulation within the following macros, do not change
18824 ## the running order or otherwise move them around unless you know exactly
18825 ## what you are doing...
18826 # Dependencies to place before and after the object being linked:
18827 predep_objects_CXX=
18828 postdep_objects_CXX=
18831 compiler_lib_search_path_CXX=
18833 cat > conftest.$ac_ext <<_LT_EOF
18837 Foo (void) { a = 0; }
18843 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18844 (eval $ac_compile) 2>&5
18846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18847 test $ac_status = 0; }; then
18848 # Parse the compiler output and extract the necessary
18849 # objects, libraries and library flags.
18851 # Sentinel used to keep track of whether or not we are before
18852 # the conftest object file.
18853 pre_test_object_deps_done=no
18855 for p in `eval "$output_verbose_link_cmd"`; do
18859 # Some compilers place space between "-{L,R}" and the path.
18860 # Remove the space.
18861 if test $p = "-L" ||
18862 test $p = "-R"; then
18869 if test "$pre_test_object_deps_done" = no; then
18872 # Internal compiler library paths should come after those
18873 # provided the user. The postdeps already come after the
18874 # user supplied libs so there is no need to process them.
18875 if test -z "$compiler_lib_search_path_CXX"; then
18876 compiler_lib_search_path_CXX="${prev}${p}"
18878 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18881 # The "-l" case would never come before the object being
18882 # linked, so don't bother handling this case.
18885 if test -z "$postdeps_CXX"; then
18886 postdeps_CXX="${prev}${p}"
18888 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18894 # This assumes that the test object file only shows up
18895 # once in the compiler output.
18896 if test "$p" = "conftest.$objext"; then
18897 pre_test_object_deps_done=yes
18901 if test "$pre_test_object_deps_done" = no; then
18902 if test -z "$predep_objects_CXX"; then
18903 predep_objects_CXX="$p"
18905 predep_objects_CXX="$predep_objects_CXX $p"
18908 if test -z "$postdep_objects_CXX"; then
18909 postdep_objects_CXX="$p"
18911 postdep_objects_CXX="$postdep_objects_CXX $p"
18916 *) ;; # Ignore the rest.
18924 echo "libtool.m4: error: problem compiling CXX test program"
18927 $RM -f confest.$objext
18929 # PORTME: override above test on systems where it is broken
18932 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18933 # hack all around it, let's just trust "g++" to DTRT.
18934 predep_objects_CXX=
18935 postdep_objects_CXX=
18940 case `$CC -V 2>&1 | sed 5q` in
18944 # The more standards-conforming stlport4 library is
18945 # incompatible with the Cstd library. Avoid specifying
18946 # it if it's in CXXFLAGS. Ignore libCrun as
18947 # -library=stlport4 depends on it.
18948 case " $CXX $CXXFLAGS " in
18949 *" -library=stlport4 "*)
18950 solaris_use_stlport4=yes
18954 if test "$solaris_use_stlport4" != yes; then
18955 postdeps_CXX='-library=Cstd -library=Crun'
18962 case $cc_basename in
18964 # The more standards-conforming stlport4 library is
18965 # incompatible with the Cstd library. Avoid specifying
18966 # it if it's in CXXFLAGS. Ignore libCrun as
18967 # -library=stlport4 depends on it.
18968 case " $CXX $CXXFLAGS " in
18969 *" -library=stlport4 "*)
18970 solaris_use_stlport4=yes
18974 # Adding this requires a known-good setup of shared libraries for
18975 # Sun compiler versions before 5.6, else PIC objects from an old
18976 # archive will be linked into the output, leading to subtle bugs.
18977 if test "$solaris_use_stlport4" != yes; then
18978 postdeps_CXX='-library=Cstd -library=Crun'
18986 case " $postdeps_CXX " in
18987 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18989 compiler_lib_search_dirs_CXX=
18990 if test -n "${compiler_lib_search_path_CXX}"; then
18991 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19024 lt_prog_compiler_wl_CXX=
19025 lt_prog_compiler_pic_CXX=
19026 lt_prog_compiler_static_CXX=
19028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19029 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19031 # C++ specific cases for pic, static, wl, etc.
19032 if test "$GXX" = yes; then
19033 lt_prog_compiler_wl_CXX='-Wl,'
19034 lt_prog_compiler_static_CXX='-static'
19038 # All AIX code is PIC.
19039 if test "$host_cpu" = ia64; then
19040 # AIX 5 now supports IA64 processor
19041 lt_prog_compiler_static_CXX='-Bstatic'
19048 # see comment about AmigaOS4 .so support
19049 lt_prog_compiler_pic_CXX='-fPIC'
19052 # FIXME: we need at least 68020 code to build shared libraries, but
19053 # adding the `-m68020' flag to GCC prevents building anything better,
19055 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19060 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19061 # PIC is the default for these OSes.
19063 mingw* | cygwin* | os2* | pw32* | cegcc*)
19064 # This hack is so that the source file can tell whether it is being
19065 # built for inclusion in a dll (and should export symbols for example).
19066 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19067 # (--disable-auto-import) libraries
19068 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19070 darwin* | rhapsody*)
19071 # PIC is the default on this platform
19072 # Common symbols not allowed in MH_DYLIB files
19073 lt_prog_compiler_pic_CXX='-fno-common'
19076 # DJGPP does not support shared libraries at all
19077 lt_prog_compiler_pic_CXX=
19080 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19081 # Instead, we relocate shared libraries at runtime.
19084 if test -d /usr/nec; then
19085 lt_prog_compiler_pic_CXX=-Kconform_pic
19089 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19090 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19091 # sets the default TLS model and affects inlining.
19096 lt_prog_compiler_pic_CXX='-fPIC'
19101 # QNX uses GNU C++, but need to define -shared option too, otherwise
19102 # it will coredump.
19103 lt_prog_compiler_pic_CXX='-fPIC -shared'
19106 lt_prog_compiler_pic_CXX='-fPIC'
19112 # All AIX code is PIC.
19113 if test "$host_cpu" = ia64; then
19114 # AIX 5 now supports IA64 processor
19115 lt_prog_compiler_static_CXX='-Bstatic'
19117 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19121 case $cc_basename in
19123 # Green Hills C++ Compiler
19124 # _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"
19129 case $cc_basename in
19131 lt_prog_compiler_pic_CXX='-KPIC'
19134 # Green Hills C++ Compiler
19135 lt_prog_compiler_pic_CXX='-pic'
19141 freebsd* | dragonfly*)
19142 # FreeBSD uses GNU C++
19144 hpux9* | hpux10* | hpux11*)
19145 case $cc_basename in
19147 lt_prog_compiler_wl_CXX='-Wl,'
19148 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19149 if test "$host_cpu" != ia64; then
19150 lt_prog_compiler_pic_CXX='+Z'
19154 lt_prog_compiler_wl_CXX='-Wl,'
19155 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19161 lt_prog_compiler_pic_CXX='+Z'
19170 # This is c89, which is MS Visual C++ (no shared libs)
19171 # Anyone wants to do a port?
19173 irix5* | irix6* | nonstopux*)
19174 case $cc_basename in
19176 lt_prog_compiler_wl_CXX='-Wl,'
19177 lt_prog_compiler_static_CXX='-non_shared'
19178 # CC pic flag -KPIC is the default.
19184 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19185 case $cc_basename in
19188 lt_prog_compiler_wl_CXX='--backend -Wl,'
19189 lt_prog_compiler_pic_CXX='-fPIC'
19192 # old Intel C++ for x86_64 which still supported -KPIC.
19193 lt_prog_compiler_wl_CXX='-Wl,'
19194 lt_prog_compiler_pic_CXX='-KPIC'
19195 lt_prog_compiler_static_CXX='-static'
19198 # Intel C++, used to be incompatible with GCC.
19199 # ICC 10 doesn't accept -KPIC any more.
19200 lt_prog_compiler_wl_CXX='-Wl,'
19201 lt_prog_compiler_pic_CXX='-fPIC'
19202 lt_prog_compiler_static_CXX='-static'
19205 # Portland Group C++ compiler
19206 lt_prog_compiler_wl_CXX='-Wl,'
19207 lt_prog_compiler_pic_CXX='-fpic'
19208 lt_prog_compiler_static_CXX='-Bstatic'
19212 # Make sure the PIC flag is empty. It appears that all Alpha
19213 # Linux and Compaq Tru64 Unix objects are PIC.
19214 lt_prog_compiler_pic_CXX=
19215 lt_prog_compiler_static_CXX='-non_shared'
19218 # IBM XL 8.0 on PPC
19219 lt_prog_compiler_wl_CXX='-Wl,'
19220 lt_prog_compiler_pic_CXX='-qpic'
19221 lt_prog_compiler_static_CXX='-qstaticlink'
19224 case `$CC -V 2>&1 | sed 5q` in
19227 lt_prog_compiler_pic_CXX='-KPIC'
19228 lt_prog_compiler_static_CXX='-Bstatic'
19229 lt_prog_compiler_wl_CXX='-Qoption ld '
19240 case $cc_basename in
19242 lt_prog_compiler_pic_CXX='-W c,exportall'
19251 # QNX uses GNU C++, but need to define -shared option too, otherwise
19252 # it will coredump.
19253 lt_prog_compiler_pic_CXX='-fPIC -shared'
19255 osf3* | osf4* | osf5*)
19256 case $cc_basename in
19258 lt_prog_compiler_wl_CXX='--backend -Wl,'
19261 # Rational C++ 2.4.1
19262 lt_prog_compiler_pic_CXX='-pic'
19265 # Digital/Compaq C++
19266 lt_prog_compiler_wl_CXX='-Wl,'
19267 # Make sure the PIC flag is empty. It appears that all Alpha
19268 # Linux and Compaq Tru64 Unix objects are PIC.
19269 lt_prog_compiler_pic_CXX=
19270 lt_prog_compiler_static_CXX='-non_shared'
19279 case $cc_basename in
19281 # Sun C++ 4.2, 5.x and Centerline C++
19282 lt_prog_compiler_pic_CXX='-KPIC'
19283 lt_prog_compiler_static_CXX='-Bstatic'
19284 lt_prog_compiler_wl_CXX='-Qoption ld '
19287 # Green Hills C++ Compiler
19288 lt_prog_compiler_pic_CXX='-PIC'
19295 case $cc_basename in
19298 lt_prog_compiler_pic_CXX='-pic'
19299 lt_prog_compiler_static_CXX='-Bstatic'
19303 lt_prog_compiler_pic_CXX='-pic'
19309 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19310 case $cc_basename in
19312 lt_prog_compiler_wl_CXX='-Wl,'
19313 lt_prog_compiler_pic_CXX='-KPIC'
19314 lt_prog_compiler_static_CXX='-Bstatic'
19319 case $cc_basename in
19321 # NonStop-UX NCC 3.20
19322 lt_prog_compiler_pic_CXX='-KPIC'
19331 lt_prog_compiler_can_build_shared_CXX=no
19337 # For platforms which do not support PIC, -DPIC is meaningless:
19339 lt_prog_compiler_pic_CXX=
19342 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19346 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19351 # Check to make sure the PIC flag actually works.
19353 if test -n "$lt_prog_compiler_pic_CXX"; then
19354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19355 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19356 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19357 $as_echo_n "(cached) " >&6
19359 lt_cv_prog_compiler_pic_works_CXX=no
19360 ac_outfile=conftest.$ac_objext
19361 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19362 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19363 # Insert the option either (1) after the last *FLAGS variable, or
19364 # (2) before a word containing "conftest.", or (3) at the end.
19365 # Note that $ac_compile itself does not contain backslashes and begins
19366 # with a dollar sign (not a hyphen), so the echo should work correctly.
19367 # The option is referenced via a variable to avoid confusing sed.
19368 lt_compile=`echo "$ac_compile" | $SED \
19369 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19370 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19371 -e 's:$: $lt_compiler_flag:'`
19372 (eval echo "\"\$as_me:19372: $lt_compile\"" >&5)
19373 (eval "$lt_compile" 2>conftest.err)
19375 cat conftest.err >&5
19376 echo "$as_me:19376: \$? = $ac_status" >&5
19377 if (exit $ac_status) && test -s "$ac_outfile"; then
19378 # The compiler can only warn and ignore the option if not recognized
19379 # So say no if there are warnings other than the usual output.
19380 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19381 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19382 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19383 lt_cv_prog_compiler_pic_works_CXX=yes
19389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19390 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19392 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19393 case $lt_prog_compiler_pic_CXX in
19395 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19398 lt_prog_compiler_pic_CXX=
19399 lt_prog_compiler_can_build_shared_CXX=no
19407 # Check to make sure the static flag actually works.
19409 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19411 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19412 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
19413 $as_echo_n "(cached) " >&6
19415 lt_cv_prog_compiler_static_works_CXX=no
19416 save_LDFLAGS="$LDFLAGS"
19417 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19418 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19419 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19420 # The linker can only warn and ignore the option if not recognized
19421 # So say no if there are warnings
19422 if test -s conftest.err; then
19423 # Append any errors to the config.log.
19424 cat conftest.err 1>&5
19425 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19426 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19427 if diff conftest.exp conftest.er2 >/dev/null; then
19428 lt_cv_prog_compiler_static_works_CXX=yes
19431 lt_cv_prog_compiler_static_works_CXX=yes
19435 LDFLAGS="$save_LDFLAGS"
19438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19439 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19441 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19444 lt_prog_compiler_static_CXX=
19450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19451 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19452 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19453 $as_echo_n "(cached) " >&6
19455 lt_cv_prog_compiler_c_o_CXX=no
19456 $RM -r conftest 2>/dev/null
19460 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19462 lt_compiler_flag="-o out/conftest2.$ac_objext"
19463 # Insert the option either (1) after the last *FLAGS variable, or
19464 # (2) before a word containing "conftest.", or (3) at the end.
19465 # Note that $ac_compile itself does not contain backslashes and begins
19466 # with a dollar sign (not a hyphen), so the echo should work correctly.
19467 lt_compile=`echo "$ac_compile" | $SED \
19468 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19469 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19470 -e 's:$: $lt_compiler_flag:'`
19471 (eval echo "\"\$as_me:19471: $lt_compile\"" >&5)
19472 (eval "$lt_compile" 2>out/conftest.err)
19474 cat out/conftest.err >&5
19475 echo "$as_me:19475: \$? = $ac_status" >&5
19476 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19478 # The compiler can only warn and ignore the option if not recognized
19479 # So say no if there are warnings
19480 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19481 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19482 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19483 lt_cv_prog_compiler_c_o_CXX=yes
19488 # SGI C++ compiler will create directory out/ii_files/ for
19489 # template instantiation
19490 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19491 $RM out/* && rmdir out
19497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19498 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19503 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19504 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19505 $as_echo_n "(cached) " >&6
19507 lt_cv_prog_compiler_c_o_CXX=no
19508 $RM -r conftest 2>/dev/null
19512 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19514 lt_compiler_flag="-o out/conftest2.$ac_objext"
19515 # Insert the option either (1) after the last *FLAGS variable, or
19516 # (2) before a word containing "conftest.", or (3) at the end.
19517 # Note that $ac_compile itself does not contain backslashes and begins
19518 # with a dollar sign (not a hyphen), so the echo should work correctly.
19519 lt_compile=`echo "$ac_compile" | $SED \
19520 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19521 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19522 -e 's:$: $lt_compiler_flag:'`
19523 (eval echo "\"\$as_me:19523: $lt_compile\"" >&5)
19524 (eval "$lt_compile" 2>out/conftest.err)
19526 cat out/conftest.err >&5
19527 echo "$as_me:19527: \$? = $ac_status" >&5
19528 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19530 # The compiler can only warn and ignore the option if not recognized
19531 # So say no if there are warnings
19532 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19533 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19534 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19535 lt_cv_prog_compiler_c_o_CXX=yes
19540 # SGI C++ compiler will create directory out/ii_files/ for
19541 # template instantiation
19542 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19543 $RM out/* && rmdir out
19549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19550 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19555 hard_links="nottested"
19556 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19557 # do not overwrite the value of need_locks provided by the user
19558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19559 $as_echo_n "checking if we can lock with hard links... " >&6; }
19562 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19564 ln conftest.a conftest.b 2>&5 || hard_links=no
19565 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19567 $as_echo "$hard_links" >&6; }
19568 if test "$hard_links" = no; then
19569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19570 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19580 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19582 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19585 # If we're using GNU nm, then we don't want the "-C" option.
19586 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19587 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19588 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
19590 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'
19594 export_symbols_cmds_CXX="$ltdll_cmds"
19596 cygwin* | mingw* | cegcc*)
19597 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'
19600 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19603 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19606 $as_echo "$ld_shlibs_CXX" >&6; }
19607 test "$ld_shlibs_CXX" = no && can_build_shared=no
19609 with_gnu_ld_CXX=$with_gnu_ld
19617 # Do we need to explicitly link libc?
19619 case "x$archive_cmds_need_lc_CXX" in
19621 # Assume -lc should be added
19622 archive_cmds_need_lc_CXX=yes
19624 if test "$enable_shared" = yes && test "$GCC" = yes; then
19625 case $archive_cmds_CXX in
19627 # FIXME: we may have to deal with multi-command sequences.
19630 # Test whether the compiler implicitly links with -lc since on some
19631 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19632 # to ld, don't add -lc before -lgcc.
19633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19634 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19635 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
19636 $as_echo_n "(cached) " >&6
19639 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19641 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19642 (eval $ac_compile) 2>&5
19644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19645 test $ac_status = 0; } 2>conftest.err; then
19648 libobjs=conftest.$ac_objext
19650 wl=$lt_prog_compiler_wl_CXX
19651 pic_flag=$lt_prog_compiler_pic_CXX
19657 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19658 allow_undefined_flag_CXX=
19659 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19660 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19663 test $ac_status = 0; }
19665 lt_cv_archive_cmds_need_lc_CXX=no
19667 lt_cv_archive_cmds_need_lc_CXX=yes
19669 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19671 cat conftest.err 1>&5
19676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19677 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19678 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
19748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19749 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19751 library_names_spec=
19752 libname_spec='lib$name'
19756 postuninstall_cmds=
19760 shlibpath_overrides_runpath=unknown
19762 dynamic_linker="$host_os ld.so"
19763 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19764 need_lib_prefix=unknown
19765 hardcode_into_libs=no
19767 # when you set need_version to no, make sure it does not cause -set_version
19768 # flags to be left without arguments
19769 need_version=unknown
19774 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19775 shlibpath_var=LIBPATH
19777 # AIX 3 has no versioning support, so we append a major version to the name.
19778 soname_spec='${libname}${release}${shared_ext}$major'
19785 hardcode_into_libs=yes
19786 if test "$host_cpu" = ia64; then
19787 # AIX 5 supports IA64
19788 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19789 shlibpath_var=LD_LIBRARY_PATH
19791 # With GCC up to 2.95.x, collect2 would create an import file
19792 # for dependence libraries. The import file would start with
19793 # the line `#! .'. This would cause the generated library to
19794 # depend on `.', always an invalid library. This was fixed in
19795 # development snapshots of GCC prior to 3.0.
19797 aix4 | aix4.[01] | aix4.[01].*)
19798 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19800 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19803 can_build_shared=no
19807 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19808 # soname into executable. Probably we can add versioning support to
19809 # collect2, so additional links can be useful in future.
19810 if test "$aix_use_runtimelinking" = yes; then
19811 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19812 # instead of lib<name>.a to let people know that these are not
19813 # typical AIX shared libraries.
19814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19816 # We preserve .a as extension for shared libraries through AIX4.2
19817 # and later when we are not doing run time linking.
19818 library_names_spec='${libname}${release}.a $libname.a'
19819 soname_spec='${libname}${release}${shared_ext}$major'
19821 shlibpath_var=LIBPATH
19828 # Since July 2007 AmigaOS4 officially supports .so libraries.
19829 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19833 library_names_spec='$libname.ixlibrary $libname.a'
19834 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19835 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
19841 library_names_spec='${libname}${shared_ext}'
19842 dynamic_linker="$host_os ld.so"
19843 shlibpath_var=LIBRARY_PATH
19849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19850 soname_spec='${libname}${release}${shared_ext}$major'
19851 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19852 shlibpath_var=LD_LIBRARY_PATH
19853 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19854 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19855 # the default ld.so.conf also contains /usr/contrib/lib and
19856 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19857 # libtool to hard-code these into programs
19860 cygwin* | mingw* | pw32* | cegcc*)
19861 version_type=windows
19866 case $GCC,$host_os in
19867 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
19868 library_names_spec='$libname.dll.a'
19869 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19870 postinstall_cmds='base_file=`basename \${file}`~
19871 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19872 dldir=$destdir/`dirname \$dlpath`~
19873 test -d \$dldir || mkdir -p \$dldir~
19874 $install_prog $dir/$dlname \$dldir/$dlname~
19875 chmod a+x \$dldir/$dlname~
19876 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19877 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19879 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19880 dlpath=$dir/\$dldll~
19882 shlibpath_overrides_runpath=yes
19886 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19887 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19888 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19891 # MinGW DLLs use traditional 'lib' prefix
19892 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19893 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19894 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19895 # It is most probably a Windows format PATH printed by
19896 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19897 # path with ; separators, and with drive letters. We can handle the
19898 # drive letters (cygwin fileutils understands them), so leave them,
19899 # especially as we might pass files found there to a mingw objdump,
19900 # which wouldn't understand a cygwinified path. Ahh.
19901 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19903 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19907 # pw32 DLLs use 'pw' prefix rather than 'lib'
19908 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19914 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19917 dynamic_linker='Win32 ld.exe'
19918 # FIXME: first we should search . and the directory the executable is in
19922 darwin* | rhapsody*)
19923 dynamic_linker="$host_os dyld"
19924 version_type=darwin
19927 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19928 soname_spec='${libname}${release}${major}$shared_ext'
19929 shlibpath_overrides_runpath=yes
19930 shlibpath_var=DYLD_LIBRARY_PATH
19931 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19933 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19941 soname_spec='${libname}${release}${shared_ext}$major'
19942 shlibpath_var=LD_LIBRARY_PATH
19949 freebsd* | dragonfly*)
19950 # DragonFly does not have aout. When/if they implement a new
19951 # versioning mechanism, adjust this.
19952 if test -x /usr/bin/objformat; then
19953 objformat=`/usr/bin/objformat`
19956 freebsd[123]*) objformat=aout ;;
19957 *) objformat=elf ;;
19960 version_type=freebsd-$objformat
19961 case $version_type in
19963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19968 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19972 shlibpath_var=LD_LIBRARY_PATH
19975 shlibpath_overrides_runpath=yes
19977 freebsd3.[01]* | freebsdelf3.[01]*)
19978 shlibpath_overrides_runpath=yes
19979 hardcode_into_libs=yes
19981 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19982 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19983 shlibpath_overrides_runpath=no
19984 hardcode_into_libs=yes
19986 *) # from 4.6 on, and DragonFly
19987 shlibpath_overrides_runpath=yes
19988 hardcode_into_libs=yes
19997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19998 soname_spec='${libname}${release}${shared_ext}$major'
19999 shlibpath_var=LD_LIBRARY_PATH
20000 hardcode_into_libs=yes
20003 hpux9* | hpux10* | hpux11*)
20004 # Give a soname corresponding to the major version so that dld.sl refuses to
20005 # link against other versions.
20012 hardcode_into_libs=yes
20013 dynamic_linker="$host_os dld.so"
20014 shlibpath_var=LD_LIBRARY_PATH
20015 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20017 soname_spec='${libname}${release}${shared_ext}$major'
20018 if test "X$HPUX_IA64_MODE" = X32; then
20019 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20021 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20023 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20027 hardcode_into_libs=yes
20028 dynamic_linker="$host_os dld.sl"
20029 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20030 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20032 soname_spec='${libname}${release}${shared_ext}$major'
20033 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20034 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20038 dynamic_linker="$host_os dld.sl"
20039 shlibpath_var=SHLIB_PATH
20040 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20042 soname_spec='${libname}${release}${shared_ext}$major'
20045 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20046 postinstall_cmds='chmod 555 $lib'
20053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20054 soname_spec='${libname}${release}${shared_ext}$major'
20055 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20056 shlibpath_var=LD_LIBRARY_PATH
20057 shlibpath_overrides_runpath=no
20058 hardcode_into_libs=yes
20061 irix5* | irix6* | nonstopux*)
20063 nonstopux*) version_type=nonstopux ;;
20065 if test "$lt_cv_prog_gnu_ld" = yes; then
20073 soname_spec='${libname}${release}${shared_ext}$major'
20074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20076 irix5* | nonstopux*)
20077 libsuff= shlibsuff=
20080 case $LD in # libtool.m4 will add one of these switches to LD
20081 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20082 libsuff= shlibsuff= libmagic=32-bit;;
20083 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20084 libsuff=32 shlibsuff=N32 libmagic=N32;;
20085 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20086 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20087 *) libsuff= shlibsuff= libmagic=never-match;;
20091 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20092 shlibpath_overrides_runpath=no
20093 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20094 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20095 hardcode_into_libs=yes
20098 # No shared lib support for Linux oldld, aout, or coff.
20099 linux*oldld* | linux*aout* | linux*coff*)
20103 # This must be Linux ELF.
20104 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20109 soname_spec='${libname}${release}${shared_ext}$major'
20110 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20111 shlibpath_var=LD_LIBRARY_PATH
20112 shlibpath_overrides_runpath=no
20114 # Some binutils ld are patched to set DT_RUNPATH
20115 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20116 $as_echo_n "(cached) " >&6
20118 lt_cv_shlibpath_overrides_runpath=no
20119 save_LDFLAGS=$LDFLAGS
20120 save_libdir=$libdir
20121 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20122 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20124 /* end confdefs.h. */
20134 if ac_fn_cxx_try_link "$LINENO"; then :
20135 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20136 lt_cv_shlibpath_overrides_runpath=yes
20139 rm -f core conftest.err conftest.$ac_objext \
20140 conftest$ac_exeext conftest.$ac_ext
20141 LDFLAGS=$save_LDFLAGS
20142 libdir=$save_libdir
20146 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20148 # This implies no fast_install, which is unacceptable.
20149 # Some rework will be needed to allow for fast_install
20150 # before this can be enabled.
20151 hardcode_into_libs=yes
20153 # Append ld.so.conf contents to the search path
20154 if test -f /etc/ld.so.conf; then
20155 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;/^$/d' | tr '\n' ' '`
20156 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20159 # We used to test for /lib/ld.so.1 and disable shared libraries on
20160 # powerpc, because MkLinux only supported shared libraries with the
20161 # GNU dynamic linker. Since this was broken with cross compilers,
20162 # most powerpc-linux boxes support dynamic linking these days and
20163 # people can always --disable-shared, the test was removed, and we
20164 # assume the GNU/Linux dynamic linker is in use.
20165 dynamic_linker='GNU/Linux ld.so'
20172 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20174 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20175 dynamic_linker='NetBSD (a.out) ld.so'
20177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20178 soname_spec='${libname}${release}${shared_ext}$major'
20179 dynamic_linker='NetBSD ld.elf_so'
20181 shlibpath_var=LD_LIBRARY_PATH
20182 shlibpath_overrides_runpath=yes
20183 hardcode_into_libs=yes
20188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20189 shlibpath_var=LD_LIBRARY_PATH
20190 shlibpath_overrides_runpath=yes
20197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20198 soname_spec='${libname}${release}${shared_ext}$major'
20199 shlibpath_var=LD_LIBRARY_PATH
20200 shlibpath_overrides_runpath=no
20201 hardcode_into_libs=yes
20202 dynamic_linker='ldqnx.so'
20207 sys_lib_dlsearch_path_spec="/usr/lib"
20209 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20211 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20212 *) need_version=no ;;
20214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20215 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20216 shlibpath_var=LD_LIBRARY_PATH
20217 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20219 openbsd2.[89] | openbsd2.[89].*)
20220 shlibpath_overrides_runpath=no
20223 shlibpath_overrides_runpath=yes
20227 shlibpath_overrides_runpath=yes
20232 libname_spec='$name'
20235 library_names_spec='$libname${shared_ext} $libname.a'
20236 dynamic_linker='OS/2 ld.exe'
20237 shlibpath_var=LIBPATH
20240 osf3* | osf4* | osf5*)
20244 soname_spec='${libname}${release}${shared_ext}$major'
20245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20246 shlibpath_var=LD_LIBRARY_PATH
20247 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20248 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20260 soname_spec='${libname}${release}${shared_ext}$major'
20261 shlibpath_var=LD_LIBRARY_PATH
20262 shlibpath_overrides_runpath=yes
20263 hardcode_into_libs=yes
20264 # ldd complains unless libraries are executable
20265 postinstall_cmds='chmod +x $lib'
20270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20271 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20272 shlibpath_var=LD_LIBRARY_PATH
20273 shlibpath_overrides_runpath=yes
20274 if test "$with_gnu_ld" = yes; then
20282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20283 soname_spec='${libname}${release}${shared_ext}$major'
20284 shlibpath_var=LD_LIBRARY_PATH
20285 case $host_vendor in
20287 shlibpath_overrides_runpath=no
20289 runpath_var=LD_RUN_PATH
20297 shlibpath_overrides_runpath=no
20298 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20304 if test -d /usr/nec ;then
20306 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20307 soname_spec='$libname${shared_ext}.$major'
20308 shlibpath_var=LD_LIBRARY_PATH
20312 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20313 version_type=freebsd-elf
20316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20317 soname_spec='${libname}${release}${shared_ext}$major'
20318 shlibpath_var=LD_LIBRARY_PATH
20319 shlibpath_overrides_runpath=yes
20320 hardcode_into_libs=yes
20321 if test "$with_gnu_ld" = yes; then
20322 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20324 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20327 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20331 sys_lib_dlsearch_path_spec='/usr/lib'
20335 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20340 shlibpath_var=LD_LIBRARY_PATH
20341 shlibpath_overrides_runpath=no
20342 hardcode_into_libs=yes
20347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20348 soname_spec='${libname}${release}${shared_ext}$major'
20349 shlibpath_var=LD_LIBRARY_PATH
20356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20357 $as_echo "$dynamic_linker" >&6; }
20358 test "$dynamic_linker" = no && can_build_shared=no
20360 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20361 if test "$GCC" = yes; then
20362 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20365 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20366 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20368 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20369 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20408 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20409 hardcode_action_CXX=
20410 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20411 test -n "$runpath_var_CXX" ||
20412 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20414 # We can hardcode non-existent directories.
20415 if test "$hardcode_direct_CXX" != no &&
20416 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20417 # have to relink, otherwise we might link with an installed library
20418 # when we should be linking with a yet-to-be-installed one
20419 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20420 test "$hardcode_minus_L_CXX" != no; then
20421 # Linking always hardcodes the temporary library directory.
20422 hardcode_action_CXX=relink
20424 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20425 hardcode_action_CXX=immediate
20428 # We cannot hardcode anything, or else we can only hardcode existing
20430 hardcode_action_CXX=unsupported
20432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20433 $as_echo "$hardcode_action_CXX" >&6; }
20435 if test "$hardcode_action_CXX" = relink ||
20436 test "$inherit_rpath_CXX" = yes; then
20437 # Fast installation is not supported
20438 enable_fast_install=no
20439 elif test "$shlibpath_overrides_runpath" = yes ||
20440 test "$enable_shared" = no; then
20441 # Fast installation is not necessary
20442 enable_fast_install=needless
20451 fi # test -n "$compiler"
20457 with_gnu_ld=$lt_save_with_gnu_ld
20458 lt_cv_path_LDCXX=$lt_cv_path_LD
20459 lt_cv_path_LD=$lt_save_path_LD
20460 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20461 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20462 fi # test "$_lt_caught_CXX_error" != yes
20465 ac_cpp='$CPP $CPPFLAGS'
20466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20485 # Only expand once:
20491 # Identify the assembler which will work hand-in-glove with the newly
20492 # built GCC, so that we can examine its features. This is the assembler
20493 # which will be driven by the driver program.
20495 # If build != host, and we aren't building gas in-tree, we identify a
20496 # build->target assembler and hope that it will have the same features
20497 # as the host->target assembler we'll be using.
20498 gcc_cv_gas_major_version=
20499 gcc_cv_gas_minor_version=
20500 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20502 if test "${gcc_cv_as+set}" = set; then :
20506 if test -x "$DEFAULT_ASSEMBLER"; then
20507 gcc_cv_as="$DEFAULT_ASSEMBLER"
20508 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
20509 && test -f ../gas/Makefile \
20510 && test x$build = x$host; then
20511 gcc_cv_as=../gas/as-new$build_exeext
20512 elif test -x as$build_exeext; then
20513 # Build using assembler in the current directory.
20514 gcc_cv_as=./as$build_exeext
20515 elif test -x $AS_FOR_TARGET; then
20516 gcc_cv_as="$AS_FOR_TARGET"
20518 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20519 set dummy $AS_FOR_TARGET; ac_word=$2
20520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20521 $as_echo_n "checking for $ac_word... " >&6; }
20522 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
20523 $as_echo_n "(cached) " >&6
20527 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
20530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20531 for as_dir in $PATH
20534 test -z "$as_dir" && as_dir=.
20535 for ac_exec_ext in '' $ac_executable_extensions; do
20536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20537 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20548 gcc_cv_as=$ac_cv_path_gcc_cv_as
20549 if test -n "$gcc_cv_as"; then
20550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20551 $as_echo "$gcc_cv_as" >&6; }
20553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20554 $as_echo "no" >&6; }
20561 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20563 case "$ORIGINAL_AS_FOR_TARGET" in
20564 ./as | ./as$build_exeext) ;;
20565 *) ac_config_files="$ac_config_files as:exec-tool.in"
20569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
20570 $as_echo_n "checking what assembler to use... " >&6; }
20571 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
20572 # Single tree build which includes gas. We want to prefer it
20573 # over whatever linker top-level may have detected, since
20574 # we'll use what we're building after installation anyway.
20575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
20576 $as_echo "newly built gas" >&6; }
20578 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20579 for f in $gcc_cv_as_bfd_srcdir/configure \
20580 $gcc_cv_as_gas_srcdir/configure \
20581 $gcc_cv_as_gas_srcdir/configure.in \
20582 $gcc_cv_as_gas_srcdir/Makefile.in ; do
20583 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20584 if test x$gcc_cv_gas_version != x; then
20588 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20589 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20590 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20591 case $gcc_cv_gas_patch_version in
20592 "") gcc_cv_gas_patch_version="0" ;;
20594 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20595 + $gcc_cv_gas_minor_version \) \* 1000 \
20596 + $gcc_cv_gas_patch_version`
20598 in_tree_gas_is_elf=no
20599 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
20600 || (grep 'obj_format = multi' ../gas/Makefile \
20601 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
20603 in_tree_gas_is_elf=yes
20606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20607 $as_echo "$gcc_cv_as" >&6; }
20611 # Identify the linker which will work hand-in-glove with the newly
20612 # built GCC, so that we can examine its features. This is the linker
20613 # which will be driven by the driver program.
20615 # If build != host, and we aren't building gas in-tree, we identify a
20616 # build->target linker and hope that it will have the same features
20617 # as the host->target linker we'll be using.
20618 gcc_cv_gld_major_version=
20619 gcc_cv_gld_minor_version=
20620 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20621 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20623 if test "${gcc_cv_ld+set}" = set; then :
20627 if test -x "$DEFAULT_LINKER"; then
20628 gcc_cv_ld="$DEFAULT_LINKER"
20629 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
20630 && test -f ../ld/Makefile \
20631 && test x$build = x$host; then
20632 gcc_cv_ld=../ld/ld-new$build_exeext
20633 elif test -x collect-ld$build_exeext; then
20634 # Build using linker in the current directory.
20635 gcc_cv_ld=./collect-ld$build_exeext
20636 elif test -x $LD_FOR_TARGET; then
20637 gcc_cv_ld="$LD_FOR_TARGET"
20639 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20640 set dummy $LD_FOR_TARGET; ac_word=$2
20641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20642 $as_echo_n "checking for $ac_word... " >&6; }
20643 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
20644 $as_echo_n "(cached) " >&6
20648 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
20651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20652 for as_dir in $PATH
20655 test -z "$as_dir" && as_dir=.
20656 for ac_exec_ext in '' $ac_executable_extensions; do
20657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20658 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
20659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20669 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
20670 if test -n "$gcc_cv_ld"; then
20671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20672 $as_echo "$gcc_cv_ld" >&6; }
20674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20675 $as_echo "no" >&6; }
20682 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
20684 case "$ORIGINAL_LD_FOR_TARGET" in
20685 ./collect-ld | ./collect-ld$build_exeext) ;;
20686 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
20690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
20691 $as_echo_n "checking what linker to use... " >&6; }
20692 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
20693 # Single tree build which includes ld. We want to prefer it
20694 # over whatever linker top-level may have detected, since
20695 # we'll use what we're building after installation anyway.
20696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
20697 $as_echo "newly built ld" >&6; }
20699 in_tree_ld_is_elf=no
20700 if (grep 'EMUL = .*elf' ../ld/Makefile \
20701 || grep 'EMUL = .*linux' ../ld/Makefile \
20702 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
20703 in_tree_ld_is_elf=yes
20705 for f in $gcc_cv_ld_bfd_srcdir/configure $gcc_cv_ld_gld_srcdir/configure $gcc_cv_ld_gld_srcdir/configure.in $gcc_cv_ld_gld_srcdir/Makefile.in
20707 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20708 if test x$gcc_cv_gld_version != x; then
20712 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20713 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20716 $as_echo "$gcc_cv_ld" >&6; }
20720 # Figure out what nm we will be using.
20721 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20722 if test "${gcc_cv_nm+set}" = set; then :
20726 if test -f $gcc_cv_binutils_srcdir/configure.in \
20727 && test -f ../binutils/Makefile \
20728 && test x$build = x$host; then
20729 gcc_cv_nm=../binutils/nm-new$build_exeext
20730 elif test -x nm$build_exeext; then
20731 gcc_cv_nm=./nm$build_exeext
20732 elif test -x $NM_FOR_TARGET; then
20733 gcc_cv_nm="$NM_FOR_TARGET"
20735 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20736 set dummy $NM_FOR_TARGET; ac_word=$2
20737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20738 $as_echo_n "checking for $ac_word... " >&6; }
20739 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
20740 $as_echo_n "(cached) " >&6
20744 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
20747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20748 for as_dir in $PATH
20751 test -z "$as_dir" && as_dir=.
20752 for ac_exec_ext in '' $ac_executable_extensions; do
20753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20754 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
20755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20765 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
20766 if test -n "$gcc_cv_nm"; then
20767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20768 $as_echo "$gcc_cv_nm" >&6; }
20770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20771 $as_echo "no" >&6; }
20778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
20779 $as_echo_n "checking what nm to use... " >&6; }
20780 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
20781 # Single tree build which includes binutils.
20782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
20783 $as_echo "newly built nm" >&6; }
20786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20787 $as_echo "$gcc_cv_nm" >&6; }
20791 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
20793 case "$ORIGINAL_NM_FOR_TARGET" in
20794 ./nm | ./nm$build_exeext) ;;
20795 *) ac_config_files="$ac_config_files nm:exec-tool.in"
20800 # Figure out what objdump we will be using.
20801 if test "${gcc_cv_objdump+set}" = set; then :
20805 if test -f $gcc_cv_binutils_srcdir/configure.in \
20806 && test -f ../binutils/Makefile \
20807 && test x$build = x$host; then
20808 # Single tree build which includes binutils.
20809 gcc_cv_objdump=../binutils/objdump$build_exeext
20810 elif test -x objdump$build_exeext; then
20811 gcc_cv_objdump=./objdump$build_exeext
20812 elif test -x $OBJDUMP_FOR_TARGET; then
20813 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
20815 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20816 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
20817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20818 $as_echo_n "checking for $ac_word... " >&6; }
20819 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
20820 $as_echo_n "(cached) " >&6
20822 case $gcc_cv_objdump in
20824 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
20827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20828 for as_dir in $PATH
20831 test -z "$as_dir" && as_dir=.
20832 for ac_exec_ext in '' $ac_executable_extensions; do
20833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20834 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
20835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20845 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
20846 if test -n "$gcc_cv_objdump"; then
20847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20848 $as_echo "$gcc_cv_objdump" >&6; }
20850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20851 $as_echo "no" >&6; }
20858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
20859 $as_echo_n "checking what objdump to use... " >&6; }
20860 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
20861 # Single tree build which includes binutils.
20862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
20863 $as_echo "newly built objdump" >&6; }
20864 elif test x$gcc_cv_objdump = x; then
20865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20866 $as_echo "not found" >&6; }
20868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20869 $as_echo "$gcc_cv_objdump" >&6; }
20872 # Figure out what readelf we will be using.
20873 if test "${gcc_cv_readelf+set}" = set; then :
20877 if test -f $gcc_cv_binutils_srcdir/configure.in \
20878 && test -f ../binutils/Makefile \
20879 && test x$build = x$host; then
20880 # Single tree build which includes binutils.
20881 gcc_cv_readelf=../binutils/readelf$build_exeext
20882 elif test -x readelf$build_exeext; then
20883 gcc_cv_readelf=./readelf$build_exeext
20885 # Extract the first word of "readelf", so it can be a program name with args.
20886 set dummy readelf; ac_word=$2
20887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20888 $as_echo_n "checking for $ac_word... " >&6; }
20889 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
20890 $as_echo_n "(cached) " >&6
20892 case $gcc_cv_readelf in
20894 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
20897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20898 for as_dir in $PATH
20901 test -z "$as_dir" && as_dir=.
20902 for ac_exec_ext in '' $ac_executable_extensions; do
20903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20904 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
20905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20915 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
20916 if test -n "$gcc_cv_readelf"; then
20917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20918 $as_echo "$gcc_cv_readelf" >&6; }
20920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20921 $as_echo "no" >&6; }
20928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
20929 $as_echo_n "checking what readelf to use... " >&6; }
20930 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
20931 # Single tree build which includes binutils.
20932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
20933 $as_echo "newly built readelf" >&6; }
20934 elif test x$gcc_cv_readelf = x; then
20935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20936 $as_echo "not found" >&6; }
20938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20939 $as_echo "$gcc_cv_readelf" >&6; }
20942 # Figure out what assembler alignment features are present.
20943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
20944 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
20945 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
20946 $as_echo_n "(cached) " >&6
20948 gcc_cv_as_balign_and_p2align=no
20949 if test $in_tree_gas = yes; then
20950 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
20951 then gcc_cv_as_balign_and_p2align=yes
20953 elif test x$gcc_cv_as != x; then
20955 .p2align 2' > conftest.s
20956 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20957 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20958 (eval $ac_try) 2>&5
20960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20961 test $ac_status = 0; }; }
20963 gcc_cv_as_balign_and_p2align=yes
20965 echo "configure: failed program was" >&5
20968 rm -f conftest.o conftest.s
20971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
20972 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
20973 if test $gcc_cv_as_balign_and_p2align = yes; then
20975 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
20979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
20980 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
20981 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
20982 $as_echo_n "(cached) " >&6
20984 gcc_cv_as_max_skip_p2align=no
20985 if test $in_tree_gas = yes; then
20986 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20987 then gcc_cv_as_max_skip_p2align=yes
20989 elif test x$gcc_cv_as != x; then
20990 echo '.p2align 4,,7' > conftest.s
20991 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20992 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20993 (eval $ac_try) 2>&5
20995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20996 test $ac_status = 0; }; }
20998 gcc_cv_as_max_skip_p2align=yes
21000 echo "configure: failed program was" >&5
21003 rm -f conftest.o conftest.s
21006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21007 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21008 if test $gcc_cv_as_max_skip_p2align = yes; then
21010 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21015 $as_echo_n "checking assembler for .literal16... " >&6; }
21016 if test "${gcc_cv_as_literal16+set}" = set; then :
21017 $as_echo_n "(cached) " >&6
21019 gcc_cv_as_literal16=no
21020 if test $in_tree_gas = yes; then
21021 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21022 then gcc_cv_as_literal16=yes
21024 elif test x$gcc_cv_as != x; then
21025 echo '.literal16' > conftest.s
21026 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21027 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21028 (eval $ac_try) 2>&5
21030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21031 test $ac_status = 0; }; }
21033 gcc_cv_as_literal16=yes
21035 echo "configure: failed program was" >&5
21038 rm -f conftest.o conftest.s
21041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21042 $as_echo "$gcc_cv_as_literal16" >&6; }
21043 if test $gcc_cv_as_literal16 = yes; then
21045 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21050 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21051 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21052 $as_echo_n "(cached) " >&6
21054 gcc_cv_as_subsection_m1=no
21055 if test $in_tree_gas = yes; then
21056 if test $in_tree_gas_is_elf = yes \
21057 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21058 then gcc_cv_as_subsection_m1=yes
21060 elif test x$gcc_cv_as != x; then
21061 echo 'conftest_label1: .word 0
21063 conftest_label2: .word 0
21064 .previous' > conftest.s
21065 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21066 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21067 (eval $ac_try) 2>&5
21069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21070 test $ac_status = 0; }; }
21072 if test x$gcc_cv_nm != x; then
21073 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21074 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21075 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21077 else gcc_cv_as_subsection_m1=yes
21079 rm -f conftest.nm1 conftest.nm2
21082 echo "configure: failed program was" >&5
21085 rm -f conftest.o conftest.s
21088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21089 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21090 if test $gcc_cv_as_subsection_m1 = yes; then
21092 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21097 $as_echo_n "checking assembler for .weak... " >&6; }
21098 if test "${gcc_cv_as_weak+set}" = set; then :
21099 $as_echo_n "(cached) " >&6
21102 if test $in_tree_gas = yes; then
21103 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21104 then gcc_cv_as_weak=yes
21106 elif test x$gcc_cv_as != x; then
21107 echo ' .weak foobar' > conftest.s
21108 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21110 (eval $ac_try) 2>&5
21112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21113 test $ac_status = 0; }; }
21117 echo "configure: failed program was" >&5
21120 rm -f conftest.o conftest.s
21123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21124 $as_echo "$gcc_cv_as_weak" >&6; }
21125 if test $gcc_cv_as_weak = yes; then
21127 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21132 $as_echo_n "checking assembler for .weakref... " >&6; }
21133 if test "${gcc_cv_as_weakref+set}" = set; then :
21134 $as_echo_n "(cached) " >&6
21136 gcc_cv_as_weakref=no
21137 if test $in_tree_gas = yes; then
21138 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21139 then gcc_cv_as_weakref=yes
21141 elif test x$gcc_cv_as != x; then
21142 echo ' .weakref foobar, barfnot' > conftest.s
21143 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21145 (eval $ac_try) 2>&5
21147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21148 test $ac_status = 0; }; }
21150 gcc_cv_as_weakref=yes
21152 echo "configure: failed program was" >&5
21155 rm -f conftest.o conftest.s
21158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21159 $as_echo "$gcc_cv_as_weakref" >&6; }
21160 if test $gcc_cv_as_weakref = yes; then
21162 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21167 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21168 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21169 $as_echo_n "(cached) " >&6
21171 gcc_cv_as_nsubspa_comdat=no
21172 if test $in_tree_gas = yes; then
21173 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21174 then gcc_cv_as_nsubspa_comdat=yes
21176 elif test x$gcc_cv_as != x; then
21177 echo ' .SPACE $TEXT$
21178 .NSUBSPA $CODE$,COMDAT' > conftest.s
21179 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21180 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21181 (eval $ac_try) 2>&5
21183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21184 test $ac_status = 0; }; }
21186 gcc_cv_as_nsubspa_comdat=yes
21188 echo "configure: failed program was" >&5
21191 rm -f conftest.o conftest.s
21194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21195 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21196 if test $gcc_cv_as_nsubspa_comdat = yes; then
21198 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21202 # .hidden needs to be supported in both the assembler and the linker,
21203 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21204 # This is irritatingly difficult to feature test for; we have to check the
21205 # date string after the version number. If we've got an in-tree
21206 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21208 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21210 $as_echo_n "checking assembler for .hidden... " >&6; }
21211 if test "${gcc_cv_as_hidden+set}" = set; then :
21212 $as_echo_n "(cached) " >&6
21214 gcc_cv_as_hidden=no
21215 if test $in_tree_gas = yes; then
21216 if test $in_tree_gas_is_elf = yes \
21217 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21218 then gcc_cv_as_hidden=yes
21220 elif test x$gcc_cv_as != x; then
21221 echo ' .hidden foobar
21222 foobar:' > conftest.s
21223 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21224 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21225 (eval $ac_try) 2>&5
21227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21228 test $ac_status = 0; }; }
21230 gcc_cv_as_hidden=yes
21232 echo "configure: failed program was" >&5
21235 rm -f conftest.o conftest.s
21238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21239 $as_echo "$gcc_cv_as_hidden" >&6; }
21242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
21243 $as_echo_n "checking linker for .hidden support... " >&6; }
21244 if test "${gcc_cv_ld_hidden+set}" = set; then :
21245 $as_echo_n "(cached) " >&6
21247 if test $in_tree_ld = yes ; then
21248 gcc_cv_ld_hidden=no
21249 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 \
21250 && test $in_tree_ld_is_elf = yes; then
21251 gcc_cv_ld_hidden=yes
21254 gcc_cv_ld_hidden=yes
21255 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21256 if echo "$ld_ver" | grep GNU > /dev/null; then
21257 ld_vers=`echo $ld_ver | sed -n \
21258 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21259 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'`
21260 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21261 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21262 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21263 if test 0"$ld_date" -lt 20020404; then
21264 if test -n "$ld_date"; then
21265 # If there was date string, but was earlier than 2002-04-04, fail
21266 gcc_cv_ld_hidden=no
21267 elif test -z "$ld_vers"; then
21268 # If there was no date string nor ld version number, something is wrong
21269 gcc_cv_ld_hidden=no
21271 test -z "$ld_vers_patch" && ld_vers_patch=0
21272 if test "$ld_vers_major" -lt 2; then
21273 gcc_cv_ld_hidden=no
21274 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21275 gcc_cv_ld_hidden="no"
21276 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21277 gcc_cv_ld_hidden=no
21282 case "${target}" in
21283 hppa64*-*-hpux* | ia64*-*-hpux*)
21284 gcc_cv_ld_hidden=yes
21286 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
21287 gcc_cv_ld_hidden=yes
21290 gcc_cv_ld_hidden=no
21296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
21297 $as_echo "$gcc_cv_ld_hidden" >&6; }
21298 libgcc_visibility=no
21301 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21302 libgcc_visibility=yes
21304 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
21308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
21309 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
21310 gcc_cv_ld_ro_rw_mix=unknown
21311 if test $in_tree_ld = yes ; then
21312 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 \
21313 && test $in_tree_ld_is_elf = yes; then
21314 gcc_cv_ld_ro_rw_mix=read-write
21316 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
21317 echo '.section myfoosect, "a"' > conftest1.s
21318 echo '.section myfoosect, "aw"' > conftest2.s
21319 echo '.byte 1' >> conftest2.s
21320 echo '.section myfoosect, "a"' > conftest3.s
21321 echo '.byte 0' >> conftest3.s
21322 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
21323 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
21324 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
21325 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21326 conftest2.o conftest3.o > /dev/null 2>&1; then
21327 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
21328 | sed -e '/myfoosect/!d' -e N`
21329 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
21330 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
21331 gcc_cv_ld_ro_rw_mix=read-only
21333 gcc_cv_ld_ro_rw_mix=read-write
21337 rm -f conftest.* conftest[123].*
21339 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
21341 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
21344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
21345 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
21347 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
21349 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
21350 if test "${gcc_cv_as_leb128+set}" = set; then :
21351 $as_echo_n "(cached) " >&6
21353 gcc_cv_as_leb128=no
21354 if test $in_tree_gas = yes; then
21355 if test $in_tree_gas_is_elf = yes \
21356 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21357 then gcc_cv_as_leb128=yes
21359 elif test x$gcc_cv_as != x; then
21366 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21367 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21368 (eval $ac_try) 2>&5
21370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21371 test $ac_status = 0; }; }
21373 # GAS versions before 2.11 do not support uleb128,
21374 # despite appearing to.
21375 # ??? There exists an elf-specific test that will crash
21376 # the assembler. Perhaps it's better to figure out whether
21377 # arbitrary sections are supported and try the test.
21378 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21379 if echo "$as_ver" | grep GNU > /dev/null; then
21380 as_vers=`echo $as_ver | sed -n \
21381 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21382 as_major=`expr "$as_vers" : '\([0-9]*\)'`
21383 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21384 if test $as_major -eq 2 && test $as_minor -lt 11
21386 else gcc_cv_as_leb128=yes
21390 echo "configure: failed program was" >&5
21393 rm -f conftest.o conftest.s
21396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
21397 $as_echo "$gcc_cv_as_leb128" >&6; }
21398 if test $gcc_cv_as_leb128 = yes; then
21400 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
21404 # Check if we have assembler support for unwind directives.
21405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
21406 $as_echo_n "checking assembler for cfi directives... " >&6; }
21407 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
21408 $as_echo_n "(cached) " >&6
21410 gcc_cv_as_cfi_directive=no
21411 if test x$gcc_cv_as != x; then
21417 .cfi_escape 1, 2, 3, 4, 5
21418 .cfi_endproc' > conftest.s
21419 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21420 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21421 (eval $ac_try) 2>&5
21423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21424 test $ac_status = 0; }; }
21428 # If the linker used on Solaris (like Sun ld) isn't capable of merging
21429 # read-only and read-write sections, we need to make sure that the
21430 # assembler used emits read-write .eh_frame sections.
21431 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
21432 if test "x$gcc_cv_objdump" != x; then
21433 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21434 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
21435 gcc_cv_as_cfi_directive=no
21437 gcc_cv_as_cfi_directive=yes
21440 # no objdump, err on the side of caution
21441 gcc_cv_as_cfi_directive=no
21444 gcc_cv_as_cfi_directive=yes
21448 gcc_cv_as_cfi_directive=yes
21452 echo "configure: failed program was" >&5
21455 rm -f conftest.o conftest.s
21458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
21459 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
21461 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_readelf != x; then
21462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
21463 $as_echo_n "checking assembler for working cfi advance... " >&6; }
21464 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
21465 $as_echo_n "(cached) " >&6
21467 gcc_cv_as_cfi_advance_working=no
21468 if test x$gcc_cv_as != x; then
21471 .cfi_adjust_cfa_offset 64
21473 .cfi_adjust_cfa_offset 128
21474 .cfi_endproc' > conftest.s
21475 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21476 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21477 (eval $ac_try) 2>&5
21479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21480 test $ac_status = 0; }; }
21483 if $gcc_cv_readelf -wf conftest.o 2>/dev/null \
21484 | grep 'DW_CFA_advance_loc[12]:[ ][ ]*512[ ]' >/dev/null; then
21485 gcc_cv_as_cfi_advance_working=yes
21489 echo "configure: failed program was" >&5
21492 rm -f conftest.o conftest.s
21495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
21496 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
21499 # no readelf, err on the side of caution
21500 gcc_cv_as_cfi_advance_working=no
21503 cat >>confdefs.h <<_ACEOF
21504 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
21505 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
21509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
21510 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
21511 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
21512 $as_echo_n "(cached) " >&6
21514 gcc_cv_as_cfi_personality_directive=no
21515 if test x$gcc_cv_as != x; then
21518 .cfi_personality 0, symbol
21519 .cfi_endproc' > conftest.s
21520 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21521 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21522 (eval $ac_try) 2>&5
21524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21525 test $ac_status = 0; }; }
21527 gcc_cv_as_cfi_personality_directive=yes
21529 echo "configure: failed program was" >&5
21532 rm -f conftest.o conftest.s
21535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
21536 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
21539 cat >>confdefs.h <<_ACEOF
21540 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
21541 then echo 1; else echo 0; fi`
21545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
21546 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
21547 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
21548 $as_echo_n "(cached) " >&6
21550 gcc_cv_as_cfi_sections_directive=no
21551 if test x$gcc_cv_as != x; then
21553 .cfi_sections .debug_frame, .eh_frame
21555 .cfi_endproc' > conftest.s
21556 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21558 (eval $ac_try) 2>&5
21560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21561 test $ac_status = 0; }; }
21563 gcc_cv_as_cfi_sections_directive=yes
21565 echo "configure: failed program was" >&5
21568 rm -f conftest.o conftest.s
21571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
21572 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
21575 cat >>confdefs.h <<_ACEOF
21576 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
21577 then echo 1; else echo 0; fi`
21581 # GAS versions up to and including 2.11.0 may mis-optimize
21583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
21584 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
21585 if test "${gcc_cv_as_eh_frame+set}" = set; then :
21586 $as_echo_n "(cached) " >&6
21588 gcc_cv_as_eh_frame=no
21589 if test $in_tree_gas = yes; then
21590 if test $in_tree_gas_is_elf = yes \
21591 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21592 then gcc_cv_as_eh_frame=yes
21594 elif test x$gcc_cv_as != x; then
21601 .section .eh_frame,"aw",@progbits
21603 .4byte .LECIE1-.LSCIE1
21617 .4byte .LEFDE1-.LASFDE1
21619 .4byte .LASFDE1-__FRAME_BEGIN__
21626 .LEFDE1:' > conftest.s
21627 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21628 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21629 (eval $ac_try) 2>&5
21631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21632 test $ac_status = 0; }; }
21634 cat > conftest.lit <<EOF
21635 0000 10000000 00000000 017a0001 781a0004 .........z..x...
21636 0010 01000000 12000000 18000000 00000000 ................
21637 0020 08000000 04080000 0044 .........D
21639 cat > conftest.big <<EOF
21640 0000 00000010 00000000 017a0001 781a0004 .........z..x...
21641 0010 00000001 00000012 00000018 00000000 ................
21642 0020 00000008 04000000 0844 .........D
21644 # If the assembler didn't choke, and we can objdump,
21645 # and we got the correct data, then succeed.
21646 # The text in the here-document typically retains its unix-style line
21647 # endings, while the output of objdump will use host line endings.
21648 # Therefore, use diff -b for the comparisons.
21649 if test x$gcc_cv_objdump != x \
21650 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
21651 | tail -3 > conftest.got \
21652 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
21653 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
21655 gcc_cv_as_eh_frame=yes
21656 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
21657 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21658 (eval $ac_try) 2>&5
21660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21661 test $ac_status = 0; }; }; then
21662 gcc_cv_as_eh_frame=buggy
21664 # Uh oh, what do we do now?
21665 gcc_cv_as_eh_frame=no
21668 echo "configure: failed program was" >&5
21671 rm -f conftest.o conftest.s
21674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
21675 $as_echo "$gcc_cv_as_eh_frame" >&6; }
21678 if test $gcc_cv_as_eh_frame = buggy; then
21680 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
21684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21685 $as_echo_n "checking assembler for section merging support... " >&6; }
21686 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21687 $as_echo_n "(cached) " >&6
21689 gcc_cv_as_shf_merge=no
21690 if test $in_tree_gas = yes; then
21691 if test $in_tree_gas_is_elf = yes \
21692 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21693 then gcc_cv_as_shf_merge=yes
21695 elif test x$gcc_cv_as != x; then
21696 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
21697 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21699 (eval $ac_try) 2>&5
21701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21702 test $ac_status = 0; }; }
21704 gcc_cv_as_shf_merge=yes
21706 echo "configure: failed program was" >&5
21709 rm -f conftest.o conftest.s
21712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21713 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21715 if test $gcc_cv_as_shf_merge = no; then
21716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21717 $as_echo_n "checking assembler for section merging support... " >&6; }
21718 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21719 $as_echo_n "(cached) " >&6
21721 gcc_cv_as_shf_merge=no
21722 if test $in_tree_gas = yes; then
21723 if test $in_tree_gas_is_elf = yes \
21724 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21725 then gcc_cv_as_shf_merge=yes
21727 elif test x$gcc_cv_as != x; then
21728 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
21729 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21730 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21731 (eval $ac_try) 2>&5
21733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21734 test $ac_status = 0; }; }
21736 gcc_cv_as_shf_merge=yes
21738 echo "configure: failed program was" >&5
21741 rm -f conftest.o conftest.s
21744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21745 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21749 cat >>confdefs.h <<_ACEOF
21750 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
21754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21755 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21756 if test "${gcc_cv_as_comdat_group+set}" = set; then :
21757 $as_echo_n "(cached) " >&6
21759 gcc_cv_as_comdat_group=no
21760 if test $in_tree_gas = yes; then
21761 if test $in_tree_gas_is_elf = yes \
21762 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21763 then gcc_cv_as_comdat_group=yes
21765 elif test x$gcc_cv_as != x; then
21766 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
21767 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21768 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21769 (eval $ac_try) 2>&5
21771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21772 test $ac_status = 0; }; }
21774 gcc_cv_as_comdat_group=yes
21776 echo "configure: failed program was" >&5
21779 rm -f conftest.o conftest.s
21782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
21783 $as_echo "$gcc_cv_as_comdat_group" >&6; }
21785 if test $gcc_cv_as_comdat_group = yes; then
21786 gcc_cv_as_comdat_group_percent=no
21788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21789 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21790 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
21791 $as_echo_n "(cached) " >&6
21793 gcc_cv_as_comdat_group_percent=no
21794 if test $in_tree_gas = yes; then
21795 if test $in_tree_gas_is_elf = yes \
21796 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21797 then gcc_cv_as_comdat_group_percent=yes
21799 elif test x$gcc_cv_as != x; then
21800 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
21801 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21803 (eval $ac_try) 2>&5
21805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21806 test $ac_status = 0; }; }
21808 gcc_cv_as_comdat_group_percent=yes
21810 echo "configure: failed program was" >&5
21813 rm -f conftest.o conftest.s
21816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
21817 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
21820 if test $in_tree_ld = yes ; then
21822 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 \
21823 && test $in_tree_ld_is_elf = yes; then
21826 elif test x"$ld_vers" != x; then
21828 if test 0"$ld_date" -lt 20050308; then
21829 if test -n "$ld_date"; then
21830 # If there was date string, but was earlier than 2005-03-08, fail
21832 elif test "$ld_vers_major" -lt 2; then
21834 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
21839 # assume linkers other than GNU ld don't support COMDAT group
21842 if test $comdat_group = no; then
21843 gcc_cv_as_comdat_group=no
21844 gcc_cv_as_comdat_group_percent=no
21847 cat >>confdefs.h <<_ACEOF
21848 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
21852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
21853 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
21854 if test "${gcc_cv_as_discriminator+set}" = set; then :
21855 $as_echo_n "(cached) " >&6
21857 gcc_cv_as_discriminator=no
21858 if test $in_tree_gas = yes; then
21859 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
21860 then gcc_cv_as_discriminator=yes
21862 elif test x$gcc_cv_as != x; then
21865 .loc 1 1 0 discriminator 1' > conftest.s
21866 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21868 (eval $ac_try) 2>&5
21870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21871 test $ac_status = 0; }; }
21873 gcc_cv_as_discriminator=yes
21875 echo "configure: failed program was" >&5
21878 rm -f conftest.o conftest.s
21881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
21882 $as_echo "$gcc_cv_as_discriminator" >&6; }
21883 if test $gcc_cv_as_discriminator = yes; then
21885 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
21889 # Thread-local storage - the check is heavily parameterized.
21897 .section ".tdata","awT",@progbits
21900 ldq $27,__tls_get_addr($29) !literal!1
21901 lda $16,foo($29) !tlsgd!1
21902 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
21903 ldq $27,__tls_get_addr($29) !literal!2
21904 lda $16,foo($29) !tlsldm!2
21905 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
21906 ldq $1,foo($29) !gotdtprel
21907 ldah $2,foo($29) !dtprelhi
21908 lda $3,foo($2) !dtprello
21909 lda $4,foo($29) !dtprel
21910 ldq $1,foo($29) !gottprel
21911 ldah $2,foo($29) !tprelhi
21912 lda $3,foo($2) !tprello
21913 lda $4,foo($29) !tprel'
21916 tls_as_opt=--fatal-warnings
21918 cris-*-*|crisv32-*-*)
21920 .section ".tdata","awT",@progbits
21927 tls_as_opt=--fatal-warnings
21931 .section ".tdata","awT",@progbits
21934 call #gettlsoff(x)'
21943 .section ".tdata","awT",@progbits
21947 addil LT%foo-$tls_gdidx$,gp
21948 ldo RT%foo-$tls_gdidx$(%r1),%arg0
21951 addil LT%foo-$tls_ldidx$,gp
21953 ldo RT%foo-$tls_ldidx$(%r1),%arg0
21954 addil LR%foo-$tls_dtpoff$,%ret0
21955 ldo RR%foo-$tls_dtpoff$(%r1),%t1
21957 addil LT%foo-$tls_ieoff$,gp
21958 ldw RT%foo-$tls_ieoff$(%r1),%t2
21961 addil LR%foo-$tls_leoff$,%t1
21962 ldo RR%foo-$tls_leoff$(%r1),%t2'
21965 tls_as_opt=--fatal-warnings
21969 .section ".tdata","awT",%progbits
21972 .word foo(gottpoff)
21982 .section ".tdata","awT",@progbits
21986 leal foo@TLSGD(,%ebx,1), %eax
21987 leal foo@TLSLDM(%ebx), %eax
21988 leal foo@DTPOFF(%eax), %edx
21989 movl foo@GOTTPOFF(%ebx), %eax
21990 subl foo@GOTTPOFF(%ebx), %eax
21991 addl foo@GOTNTPOFF(%ebx), %eax
21992 movl foo@INDNTPOFF, %eax
21993 movl $foo@TPOFF, %eax
21994 subl $foo@TPOFF, %eax
21995 leal foo@NTPOFF(%ecx), %eax'
21998 tls_as_opt=--fatal-warnings
22002 .section ".tdata","awT",@progbits
22006 leaq foo@TLSGD(%rip), %rdi
22007 leaq foo@TLSLD(%rip), %rdi
22008 leaq foo@DTPOFF(%rax), %rdx
22009 movq foo@GOTTPOFF(%rip), %rax
22010 movq $foo@TPOFF, %rax'
22013 tls_as_opt=--fatal-warnings
22017 .section ".tdata","awT",@progbits
22020 addl r16 = @ltoff(@dtpmod(foo#)), gp
22021 addl r17 = @ltoff(@dtprel(foo#)), gp
22022 addl r18 = @ltoff(@tprel(foo#)), gp
22023 addl r19 = @dtprel(foo#), gp
22024 adds r21 = @dtprel(foo#), r13
22025 movl r23 = @dtprel(foo#)
22026 addl r20 = @tprel(foo#), gp
22027 adds r22 = @tprel(foo#), r13
22028 movl r24 = @tprel(foo#)'
22031 tls_as_opt=--fatal-warnings
22035 .section .tdata,"awT",@progbits
22039 addiu $4, $28, %tlsgd(x)
22040 addiu $4, $28, %tlsldm(x)
22041 lui $4, %dtprel_hi(x)
22042 addiu $4, $4, %dtprel_lo(x)
22043 lw $4, %gottprel(x)($28)
22044 lui $4, %tprel_hi(x)
22045 addiu $4, $4, %tprel_lo(x)'
22048 tls_as_opt='-32 --fatal-warnings'
22052 .section .tdata,"awT",@progbits
22057 move.l x@TLSGD(%a5),%a0
22058 move.l x@TLSLDM(%a5),%a0
22059 move.l x@TLSLDO(%a5),%a0
22060 move.l x@TLSIE(%a5),%a0
22061 move.l x@TLSLE(%a5),%a0'
22064 tls_as_opt='--fatal-warnings'
22068 .section ".tdata","awT",@progbits
22076 addi 3,31,ld0@got@tlsgd
22078 addi 3,31,x1@got@tlsld
22081 addis 9,3,x2@dtprel@ha
22082 addi 9,9,x2@dtprel@l
22083 lwz 9,x3@got@tprel(31)
22086 addis 9,2,x2@tprel@ha
22087 addi 9,9,x2@tprel@l'
22090 tls_as_opt="-a32 --fatal-warnings"
22094 .section ".tdata","awT",@progbits
22102 addi 3,2,ld0@got@tlsgd
22108 addi 3,2,x1@got@tlsld
22114 addis 9,3,x2@dtprel@ha
22115 addi 9,9,x2@dtprel@l
22118 ld 9,x3@got@dtprel(2)
22124 tls_as_opt="-a64 --fatal-warnings"
22128 .section ".tdata","awT",@progbits
22135 .long foo@GOTNTPOFF
22136 .long foo@INDNTPOFF
22137 l %r1,foo@GOTNTPOFF(%r12)
22138 l %r1,0(%r1):tls_load:foo
22139 bas %r14,0(%r1,%r13):tls_gdcall:foo
22140 bas %r14,0(%r1,%r13):tls_ldcall:foo'
22143 tls_as_opt="-m31 --fatal-warnings"
22147 .section ".tdata","awT",@progbits
22154 .quad foo@GOTNTPOFF
22155 lg %r1,foo@GOTNTPOFF(%r12)
22156 larl %r1,foo@INDNTPOFF
22157 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
22158 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22161 tls_as_opt="-m64 -Aesame --fatal-warnings"
22163 sh-*-* | sh[34]-*-*)
22165 .section ".tdata","awT",@progbits
22175 tls_as_opt=--fatal-warnings
22179 sparc*-sun-solaris2.[56789]*)
22180 # TLS was introduced in the Solaris 9 4/04 release but
22181 # we do not enable it by default on Solaris 9 either.
22182 if test "x$enable_tls" = xyes ; then
22188 sparc*-sun-solaris2.*)
22195 if test x$on_solaris = xyes && test x$gas_flag = xno; then
22197 .section ".tdata",#alloc,#write,#tls
22200 sethi %tgd_hi22(foo), %o0
22201 add %o0, %tgd_lo10(foo), %o1
22202 add %l7, %o1, %o0, %tgd_add(foo)
22203 call __tls_get_addr, %tgd_call(foo)
22204 sethi %tldm_hi22(foo), %l1
22205 add %l1, %tldm_lo10(foo), %l2
22206 add %l7, %l2, %o0, %tldm_add(foo)
22207 call __tls_get_addr, %tldm_call(foo)
22208 sethi %tldo_hix22(foo), %l3
22209 xor %l3, %tldo_lox10(foo), %l4
22210 add %o0, %l4, %l5, %tldo_add(foo)
22211 sethi %tie_hi22(foo), %o3
22212 add %o3, %tie_lo10(foo), %o3
22213 ld [%l7 + %o3], %o2, %tie_ld(foo)
22214 add %g7, %o2, %o4, %tie_add(foo)
22215 sethi %tle_hix22(foo), %l1
22216 xor %l1, %tle_lox10(foo), %o5
22217 ld [%g7 + %o5], %o1'
22222 .section ".tdata","awT",@progbits
22225 sethi %tgd_hi22(foo), %o0
22226 add %o0, %tgd_lo10(foo), %o1
22227 add %l7, %o1, %o0, %tgd_add(foo)
22228 call __tls_get_addr, %tgd_call(foo)
22229 sethi %tldm_hi22(foo), %l1
22230 add %l1, %tldm_lo10(foo), %l2
22231 add %l7, %l2, %o0, %tldm_add(foo)
22232 call __tls_get_addr, %tldm_call(foo)
22233 sethi %tldo_hix22(foo), %l3
22234 xor %l3, %tldo_lox10(foo), %l4
22235 add %o0, %l4, %l5, %tldo_add(foo)
22236 sethi %tie_hi22(foo), %o3
22237 add %o3, %tie_lo10(foo), %o3
22238 ld [%l7 + %o3], %o2, %tie_ld(foo)
22239 add %g7, %o2, %o4, %tie_add(foo)
22240 sethi %tle_hix22(foo), %l1
22241 xor %l1, %tle_lox10(foo), %o5
22242 ld [%g7 + %o5], %o1'
22245 tls_as_opt="-32 --fatal-warnings"
22250 .section ".tdata","awT",@progbits
22253 movi a8, foo@TLSFUNC
22254 movi a10, foo@TLSARG
22255 callx8.tls a8, foo@TLSCALL'
22261 if test "x$enable_tls" = xno ; then
22262 : # TLS explicitly disabled.
22263 elif test "x$enable_tls" = xyes ; then
22264 set_have_as_tls=yes # TLS explicitly enabled.
22265 elif test -z "$tls_first_major"; then
22266 : # If we don't have a check, assume no support.
22268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
22269 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
22270 if test "${gcc_cv_as_tls+set}" = set; then :
22271 $as_echo_n "(cached) " >&6
22274 if test $in_tree_gas = yes; then
22275 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22276 then gcc_cv_as_tls=yes
22278 elif test x$gcc_cv_as != x; then
22279 echo "$conftest_s" > conftest.s
22280 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
22281 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22282 (eval $ac_try) 2>&5
22284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22285 test $ac_status = 0; }; }
22289 echo "configure: failed program was" >&5
22292 rm -f conftest.o conftest.s
22295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
22296 $as_echo "$gcc_cv_as_tls" >&6; }
22297 if test $gcc_cv_as_tls = yes; then
22298 set_have_as_tls=yes
22301 if test $set_have_as_tls = yes ; then
22303 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
22307 # Target-specific assembler checks.
22309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
22310 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
22311 gcc_cv_ld_static_dynamic=no
22312 if test $in_tree_ld = yes ; then
22313 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
22314 gcc_cv_ld_static_dynamic=yes
22316 elif test x$gcc_cv_ld != x; then
22317 # Check if linker supports -Bstatic/-Bdynamic option
22318 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
22319 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
22320 gcc_cv_ld_static_dynamic=yes
22323 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
22325 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
22328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
22329 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
22331 if test x"$demangler_in_ld" = xyes; then
22332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
22333 $as_echo_n "checking linker --demangle support... " >&6; }
22334 gcc_cv_ld_demangle=no
22335 if test $in_tree_ld = yes; then
22336 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 \
22337 gcc_cv_ld_demangle=yes
22339 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
22340 # Check if the GNU linker supports --demangle option
22341 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
22342 gcc_cv_ld_demangle=yes
22345 if test x"$gcc_cv_ld_demangle" = xyes; then
22347 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
22350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
22351 $as_echo "$gcc_cv_ld_demangle" >&6; }
22355 # All TARGET_ABI_OSF targets.
22356 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
22357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
22358 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
22359 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
22360 $as_echo_n "(cached) " >&6
22362 gcc_cv_as_alpha_explicit_relocs=no
22363 if test $in_tree_gas = yes; then
22364 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22365 then gcc_cv_as_alpha_explicit_relocs=yes
22367 elif test x$gcc_cv_as != x; then
22368 echo ' .set nomacro
22370 extbl $3, $2, $3 !lituse_bytoff!1
22371 ldq $2, a($29) !literal!1
22372 ldq $4, b($29) !literal!2
22373 ldq_u $3, 0($2) !lituse_base!1
22374 ldq $27, f($29) !literal!5
22375 jsr $26, ($27), f !lituse_jsr!5
22376 ldah $29, 0($26) !gpdisp!3
22377 lda $0, c($29) !gprel
22378 ldah $1, d($29) !gprelhigh
22379 lda $1, d($1) !gprellow
22380 lda $29, 0($29) !gpdisp!3' > conftest.s
22381 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22383 (eval $ac_try) 2>&5
22385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22386 test $ac_status = 0; }; }
22388 gcc_cv_as_alpha_explicit_relocs=yes
22390 echo "configure: failed program was" >&5
22393 rm -f conftest.o conftest.s
22396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
22397 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
22398 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
22400 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
22403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
22404 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
22405 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
22406 $as_echo_n "(cached) " >&6
22408 gcc_cv_as_alpha_jsrdirect_relocs=no
22409 if test $in_tree_gas = yes; then
22410 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
22411 then gcc_cv_as_alpha_jsrdirect_relocs=yes
22413 elif test x$gcc_cv_as != x; then
22414 echo ' .set nomacro
22416 ldq $27, a($29) !literal!1
22417 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
22418 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22420 (eval $ac_try) 2>&5
22422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22423 test $ac_status = 0; }; }
22425 gcc_cv_as_alpha_jsrdirect_relocs=yes
22427 echo "configure: failed program was" >&5
22430 rm -f conftest.o conftest.s
22433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
22434 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
22435 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
22437 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
22443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
22444 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
22445 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
22446 $as_echo_n "(cached) " >&6
22448 gcc_cv_as_cris_no_mul_bug=no
22449 if test $in_tree_gas = yes; then
22450 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22451 then gcc_cv_as_cris_no_mul_bug=yes
22453 elif test x$gcc_cv_as != x; then
22454 echo '.text' > conftest.s
22455 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
22456 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22457 (eval $ac_try) 2>&5
22459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22460 test $ac_status = 0; }; }
22462 gcc_cv_as_cris_no_mul_bug=yes
22464 echo "configure: failed program was" >&5
22467 rm -f conftest.o conftest.s
22470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
22471 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
22472 if test $gcc_cv_as_cris_no_mul_bug = yes; then
22474 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
22480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
22481 $as_echo_n "checking assembler for .register... " >&6; }
22482 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
22483 $as_echo_n "(cached) " >&6
22485 gcc_cv_as_sparc_register_op=no
22486 if test x$gcc_cv_as != x; then
22487 echo '.register %g2, #scratch' > conftest.s
22488 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22490 (eval $ac_try) 2>&5
22492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22493 test $ac_status = 0; }; }
22495 gcc_cv_as_sparc_register_op=yes
22497 echo "configure: failed program was" >&5
22500 rm -f conftest.o conftest.s
22503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
22504 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
22505 if test $gcc_cv_as_sparc_register_op = yes; then
22507 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
22511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
22512 $as_echo_n "checking assembler for -relax option... " >&6; }
22513 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
22514 $as_echo_n "(cached) " >&6
22516 gcc_cv_as_sparc_relax=no
22517 if test x$gcc_cv_as != x; then
22518 echo '.text' > conftest.s
22519 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
22520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22521 (eval $ac_try) 2>&5
22523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22524 test $ac_status = 0; }; }
22526 gcc_cv_as_sparc_relax=yes
22528 echo "configure: failed program was" >&5
22531 rm -f conftest.o conftest.s
22534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
22535 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
22536 if test $gcc_cv_as_sparc_relax = yes; then
22538 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
22542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
22543 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
22544 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
22545 $as_echo_n "(cached) " >&6
22547 gcc_cv_as_sparc_ua_pcrel=no
22548 if test x$gcc_cv_as != x; then
22555 .uaword %r_disp32(foo)' > conftest.s
22556 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
22557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22558 (eval $ac_try) 2>&5
22560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22561 test $ac_status = 0; }; }
22563 if test x$gcc_cv_ld != x \
22564 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
22565 gcc_cv_as_sparc_ua_pcrel=yes
22569 echo "configure: failed program was" >&5
22572 rm -f conftest.o conftest.s
22575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
22576 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
22577 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
22579 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
22582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
22583 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
22584 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
22585 $as_echo_n "(cached) " >&6
22587 gcc_cv_as_sparc_ua_pcrel_hidden=no
22588 if test x$gcc_cv_as != x; then
22592 .uaword %r_disp32(foo)
22593 .byte 0x32, 0x33, 0x34
22597 .skip 4' > conftest.s
22598 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
22599 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22600 (eval $ac_try) 2>&5
22602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22603 test $ac_status = 0; }; }
22605 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
22606 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
22607 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
22608 | grep ' 31000000 07323334' > /dev/null 2>&1; then
22609 if $gcc_cv_objdump -R conftest 2> /dev/null \
22610 | grep 'DISP32' > /dev/null 2>&1; then
22613 gcc_cv_as_sparc_ua_pcrel_hidden=yes
22618 echo "configure: failed program was" >&5
22621 rm -f conftest.o conftest.s
22624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
22625 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
22626 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
22628 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
22632 fi # unaligned pcrel relocs
22634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
22635 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
22636 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
22637 $as_echo_n "(cached) " >&6
22639 gcc_cv_as_sparc_offsetable_lo10=no
22640 if test x$gcc_cv_as != x; then
22642 or %g1, %lo(ab) + 12, %g1
22643 or %g1, %lo(ab + 12), %g1' > conftest.s
22644 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
22645 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22646 (eval $ac_try) 2>&5
22648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22649 test $ac_status = 0; }; }
22651 if test x$gcc_cv_objdump != x \
22652 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
22653 | grep ' 82106000 82106000' > /dev/null 2>&1; then
22654 gcc_cv_as_sparc_offsetable_lo10=yes
22657 echo "configure: failed program was" >&5
22660 rm -f conftest.o conftest.s
22663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
22664 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
22665 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
22667 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
22672 i[34567]86-*-* | x86_64-*-*)
22674 cygwin* | pe | mingw32*)
22675 # Recent binutils allows the three-operand form of ".comm" on PE. This
22676 # definition is used unconditionally to initialise the default state of
22677 # the target option variable that governs usage of the feature.
22678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
22679 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
22680 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
22681 $as_echo_n "(cached) " >&6
22683 gcc_cv_as_comm_has_align=no
22684 if test $in_tree_gas = yes; then
22685 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
22686 then gcc_cv_as_comm_has_align=yes
22688 elif test x$gcc_cv_as != x; then
22689 echo '.comm foo,1,32' > conftest.s
22690 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22691 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22692 (eval $ac_try) 2>&5
22694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22695 test $ac_status = 0; }; }
22697 gcc_cv_as_comm_has_align=yes
22699 echo "configure: failed program was" >&5
22702 rm -f conftest.o conftest.s
22705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
22706 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
22709 cat >>confdefs.h <<_ACEOF
22710 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
22713 # Used for DWARF 2 in PE
22714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
22715 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
22716 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
22717 $as_echo_n "(cached) " >&6
22719 gcc_cv_as_ix86_pe_secrel32=no
22720 if test $in_tree_gas = yes; then
22721 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22722 then gcc_cv_as_ix86_pe_secrel32=yes
22724 elif test x$gcc_cv_as != x; then
22728 .secrel32 foo' > conftest.s
22729 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22730 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22731 (eval $ac_try) 2>&5
22733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22734 test $ac_status = 0; }; }
22736 if test x$gcc_cv_ld != x \
22737 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
22738 gcc_cv_as_ix86_pe_secrel32=yes
22742 echo "configure: failed program was" >&5
22745 rm -f conftest.o conftest.s
22748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
22749 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
22750 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
22752 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
22758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
22759 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
22760 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
22761 $as_echo_n "(cached) " >&6
22763 gcc_cv_as_ix86_filds=no
22764 if test x$gcc_cv_as != x; then
22765 echo 'filds mem; fists mem' > conftest.s
22766 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22767 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22768 (eval $ac_try) 2>&5
22770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22771 test $ac_status = 0; }; }
22773 gcc_cv_as_ix86_filds=yes
22775 echo "configure: failed program was" >&5
22778 rm -f conftest.o conftest.s
22781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
22782 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
22783 if test $gcc_cv_as_ix86_filds = yes; then
22785 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
22789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
22790 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
22791 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
22792 $as_echo_n "(cached) " >&6
22794 gcc_cv_as_ix86_fildq=no
22795 if test x$gcc_cv_as != x; then
22796 echo 'fildq mem; fistpq mem' > conftest.s
22797 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22798 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22799 (eval $ac_try) 2>&5
22801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22802 test $ac_status = 0; }; }
22804 gcc_cv_as_ix86_fildq=yes
22806 echo "configure: failed program was" >&5
22809 rm -f conftest.o conftest.s
22812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
22813 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
22814 if test $gcc_cv_as_ix86_fildq = yes; then
22816 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
22820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
22821 $as_echo_n "checking assembler for cmov syntax... " >&6; }
22822 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
22823 $as_echo_n "(cached) " >&6
22825 gcc_cv_as_ix86_cmov_sun_syntax=no
22826 if test x$gcc_cv_as != x; then
22827 echo 'cmovl.l %edx, %eax' > conftest.s
22828 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22829 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22830 (eval $ac_try) 2>&5
22832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22833 test $ac_status = 0; }; }
22835 gcc_cv_as_ix86_cmov_sun_syntax=yes
22837 echo "configure: failed program was" >&5
22840 rm -f conftest.o conftest.s
22843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
22844 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
22845 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
22847 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
22851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
22852 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
22853 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
22854 $as_echo_n "(cached) " >&6
22856 gcc_cv_as_ix86_ffreep=no
22857 if test x$gcc_cv_as != x; then
22858 echo 'ffreep %st(1)' > conftest.s
22859 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22860 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22861 (eval $ac_try) 2>&5
22863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22864 test $ac_status = 0; }; }
22866 gcc_cv_as_ix86_ffreep=yes
22868 echo "configure: failed program was" >&5
22871 rm -f conftest.o conftest.s
22874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
22875 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
22876 if test $gcc_cv_as_ix86_ffreep = yes; then
22878 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
22882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
22883 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
22884 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
22885 $as_echo_n "(cached) " >&6
22887 gcc_cv_as_ix86_sahf=no
22888 if test x$gcc_cv_as != x; then
22889 echo 'sahf' > conftest.s
22890 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22891 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22892 (eval $ac_try) 2>&5
22894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22895 test $ac_status = 0; }; }
22897 gcc_cv_as_ix86_sahf=yes
22899 echo "configure: failed program was" >&5
22902 rm -f conftest.o conftest.s
22905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
22906 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
22907 if test $gcc_cv_as_ix86_sahf = yes; then
22909 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
22913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
22914 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
22915 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
22916 $as_echo_n "(cached) " >&6
22918 gcc_cv_as_ix86_diff_sect_delta=no
22919 if test x$gcc_cv_as != x; then
22920 echo '.section .rodata
22926 .L2: nop' > conftest.s
22927 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22929 (eval $ac_try) 2>&5
22931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22932 test $ac_status = 0; }; }
22934 gcc_cv_as_ix86_diff_sect_delta=yes
22936 echo "configure: failed program was" >&5
22939 rm -f conftest.o conftest.s
22942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
22943 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
22944 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
22946 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
22950 # This one is used unconditionally by i386.[ch]; it is to be defined
22951 # to 1 if the feature is present, 0 otherwise.
22952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
22953 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
22954 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
22955 $as_echo_n "(cached) " >&6
22957 gcc_cv_as_ix86_gotoff_in_data=no
22958 if test $in_tree_gas = yes; then
22959 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22960 then gcc_cv_as_ix86_gotoff_in_data=yes
22962 elif test x$gcc_cv_as != x; then
22967 .long .L0@GOTOFF' > conftest.s
22968 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22970 (eval $ac_try) 2>&5
22972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22973 test $ac_status = 0; }; }
22975 gcc_cv_as_ix86_gotoff_in_data=yes
22977 echo "configure: failed program was" >&5
22980 rm -f conftest.o conftest.s
22983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
22984 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
22987 cat >>confdefs.h <<_ACEOF
22988 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
22994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
22995 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
22996 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
22997 $as_echo_n "(cached) " >&6
22999 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
23000 if test $in_tree_gas = yes; then
23001 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23002 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23004 elif test x$gcc_cv_as != x; then
23006 addl r15 = @ltoffx(x#), gp
23008 ld8.mov r16 = [r15], x#' > conftest.s
23009 if { ac_try='$gcc_cv_as -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_ia64_ltoffx_ldxmov_relocs=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_ia64_ltoffx_ldxmov_relocs" >&5
23025 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
23026 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
23028 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
23036 *-*-aix*) conftest_s=' .machine "pwr5"
23040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
23041 $as_echo_n "checking assembler for .machine directive support... " >&6; }
23042 if test "${gcc_cv_as_machine_directive+set}" = set; then :
23043 $as_echo_n "(cached) " >&6
23045 gcc_cv_as_machine_directive=no
23046 if test x$gcc_cv_as != x; then
23047 echo ' .machine ppc7400' > conftest.s
23048 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23049 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23050 (eval $ac_try) 2>&5
23052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23053 test $ac_status = 0; }; }
23055 gcc_cv_as_machine_directive=yes
23057 echo "configure: failed program was" >&5
23060 rm -f conftest.o conftest.s
23063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
23064 $as_echo "$gcc_cv_as_machine_directive" >&6; }
23066 if test x$gcc_cv_as_machine_directive != xyes; then
23067 echo "*** This target requires an assembler supporting \".machine\"" >&2
23068 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
23069 test x$build = x$target && exit 1
23073 *) conftest_s=' .machine power4
23078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
23079 $as_echo_n "checking assembler for mfcr field support... " >&6; }
23080 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
23081 $as_echo_n "(cached) " >&6
23083 gcc_cv_as_powerpc_mfcrf=no
23084 if test $in_tree_gas = yes; then
23085 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23086 then gcc_cv_as_powerpc_mfcrf=yes
23088 elif test x$gcc_cv_as != x; then
23089 echo "$conftest_s" > conftest.s
23090 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23091 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23092 (eval $ac_try) 2>&5
23094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23095 test $ac_status = 0; }; }
23097 gcc_cv_as_powerpc_mfcrf=yes
23099 echo "configure: failed program was" >&5
23102 rm -f conftest.o conftest.s
23105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
23106 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
23107 if test $gcc_cv_as_powerpc_mfcrf = yes; then
23109 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
23114 *-*-aix*) conftest_s=' .machine "pwr5"
23117 *) conftest_s=' .machine power5
23122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
23123 $as_echo_n "checking assembler for popcntb support... " >&6; }
23124 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
23125 $as_echo_n "(cached) " >&6
23127 gcc_cv_as_powerpc_popcntb=no
23128 if test $in_tree_gas = yes; then
23129 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23130 then gcc_cv_as_powerpc_popcntb=yes
23132 elif test x$gcc_cv_as != x; then
23133 echo "$conftest_s" > conftest.s
23134 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23135 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23136 (eval $ac_try) 2>&5
23138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23139 test $ac_status = 0; }; }
23141 gcc_cv_as_powerpc_popcntb=yes
23143 echo "configure: failed program was" >&5
23146 rm -f conftest.o conftest.s
23149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
23150 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
23151 if test $gcc_cv_as_powerpc_popcntb = yes; then
23153 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
23158 *-*-aix*) conftest_s=' .machine "pwr5x"
23161 *) conftest_s=' .machine power5
23166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
23167 $as_echo_n "checking assembler for fp round support... " >&6; }
23168 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
23169 $as_echo_n "(cached) " >&6
23171 gcc_cv_as_powerpc_fprnd=no
23172 if test $in_tree_gas = yes; then
23173 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23174 then gcc_cv_as_powerpc_fprnd=yes
23176 elif test x$gcc_cv_as != x; then
23177 echo "$conftest_s" > conftest.s
23178 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23179 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23180 (eval $ac_try) 2>&5
23182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23183 test $ac_status = 0; }; }
23185 gcc_cv_as_powerpc_fprnd=yes
23187 echo "configure: failed program was" >&5
23190 rm -f conftest.o conftest.s
23193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
23194 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
23195 if test $gcc_cv_as_powerpc_fprnd = yes; then
23197 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
23202 *-*-aix*) conftest_s=' .machine "pwr6"
23205 *) conftest_s=' .machine power6
23210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
23211 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
23212 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
23213 $as_echo_n "(cached) " >&6
23215 gcc_cv_as_powerpc_mfpgpr=no
23216 if test $in_tree_gas = yes; then
23217 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23218 then gcc_cv_as_powerpc_mfpgpr=yes
23220 elif test x$gcc_cv_as != x; then
23221 echo "$conftest_s" > conftest.s
23222 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23223 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23224 (eval $ac_try) 2>&5
23226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23227 test $ac_status = 0; }; }
23229 gcc_cv_as_powerpc_mfpgpr=yes
23231 echo "configure: failed program was" >&5
23234 rm -f conftest.o conftest.s
23237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
23238 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
23239 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
23241 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
23246 *-*-aix*) conftest_s=' .csect .text[PR]
23248 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
23252 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
23253 *) conftest_s=' .text
23255 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
23258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
23259 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
23260 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
23261 $as_echo_n "(cached) " >&6
23263 gcc_cv_as_powerpc_rel16=no
23264 if test $in_tree_gas = yes; then
23265 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23266 then gcc_cv_as_powerpc_rel16=yes
23268 elif test x$gcc_cv_as != x; then
23269 echo "$conftest_s" > conftest.s
23270 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23271 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23272 (eval $ac_try) 2>&5
23274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23275 test $ac_status = 0; }; }
23277 gcc_cv_as_powerpc_rel16=yes
23279 echo "configure: failed program was" >&5
23282 rm -f conftest.o conftest.s
23285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
23286 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
23287 if test $gcc_cv_as_powerpc_rel16 = yes; then
23289 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
23294 *-*-aix*) conftest_s=' .machine "pwr6"
23297 *) conftest_s=' .machine power6
23302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
23303 $as_echo_n "checking assembler for compare bytes support... " >&6; }
23304 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
23305 $as_echo_n "(cached) " >&6
23307 gcc_cv_as_powerpc_cmpb=no
23308 if test $in_tree_gas = yes; then
23309 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23310 then gcc_cv_as_powerpc_cmpb=yes
23312 elif test x$gcc_cv_as != x; then
23313 echo "$conftest_s" > conftest.s
23314 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23315 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23316 (eval $ac_try) 2>&5
23318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23319 test $ac_status = 0; }; }
23321 gcc_cv_as_powerpc_cmpb=yes
23323 echo "configure: failed program was" >&5
23326 rm -f conftest.o conftest.s
23329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
23330 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
23331 if test $gcc_cv_as_powerpc_cmpb = yes; then
23333 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
23338 *-*-aix*) conftest_s=' .machine "pwr6"
23341 *) conftest_s=' .machine power6
23346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
23347 $as_echo_n "checking assembler for decimal float support... " >&6; }
23348 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
23349 $as_echo_n "(cached) " >&6
23351 gcc_cv_as_powerpc_dfp=no
23352 if test $in_tree_gas = yes; then
23353 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23354 then gcc_cv_as_powerpc_dfp=yes
23356 elif test x$gcc_cv_as != x; then
23357 echo "$conftest_s" > conftest.s
23358 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23359 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23360 (eval $ac_try) 2>&5
23362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23363 test $ac_status = 0; }; }
23365 gcc_cv_as_powerpc_dfp=yes
23367 echo "configure: failed program was" >&5
23370 rm -f conftest.o conftest.s
23373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
23374 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
23375 if test $gcc_cv_as_powerpc_dfp = yes; then
23377 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
23382 *-*-aix*) conftest_s=' .machine "pwr7"
23385 *) conftest_s=' .machine power7
23390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
23391 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
23392 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
23393 $as_echo_n "(cached) " >&6
23395 gcc_cv_as_powerpc_vsx=no
23396 if test $in_tree_gas = yes; then
23397 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23398 then gcc_cv_as_powerpc_vsx=yes
23400 elif test x$gcc_cv_as != x; then
23401 echo "$conftest_s" > conftest.s
23402 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23403 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23404 (eval $ac_try) 2>&5
23406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23407 test $ac_status = 0; }; }
23409 gcc_cv_as_powerpc_vsx=yes
23411 echo "configure: failed program was" >&5
23414 rm -f conftest.o conftest.s
23417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
23418 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
23419 if test $gcc_cv_as_powerpc_vsx = yes; then
23421 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
23426 *-*-aix*) conftest_s=' .machine "pwr7"
23429 *) conftest_s=' .machine power7
23434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
23435 $as_echo_n "checking assembler for popcntd support... " >&6; }
23436 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
23437 $as_echo_n "(cached) " >&6
23439 gcc_cv_as_powerpc_popcntd=no
23440 if test $in_tree_gas = yes; then
23441 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23442 then gcc_cv_as_powerpc_popcntd=yes
23444 elif test x$gcc_cv_as != x; then
23445 echo "$conftest_s" > conftest.s
23446 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23447 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23448 (eval $ac_try) 2>&5
23450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23451 test $ac_status = 0; }; }
23453 gcc_cv_as_powerpc_popcntd=yes
23455 echo "configure: failed program was" >&5
23458 rm -f conftest.o conftest.s
23461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
23462 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
23463 if test $gcc_cv_as_powerpc_popcntd = yes; then
23465 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
23470 *-*-aix*) conftest_s=' .csect .text[PR]
23472 *) conftest_s=' .text
23476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
23477 $as_echo_n "checking assembler for lwsync support... " >&6; }
23478 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
23479 $as_echo_n "(cached) " >&6
23481 gcc_cv_as_powerpc_lwsync=no
23482 if test $in_tree_gas = yes; then
23483 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23484 then gcc_cv_as_powerpc_lwsync=yes
23486 elif test x$gcc_cv_as != x; then
23487 echo "$conftest_s" > conftest.s
23488 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23490 (eval $ac_try) 2>&5
23492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23493 test $ac_status = 0; }; }
23495 gcc_cv_as_powerpc_lwsync=yes
23497 echo "configure: failed program was" >&5
23500 rm -f conftest.o conftest.s
23503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
23504 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
23505 if test $gcc_cv_as_powerpc_lwsync = yes; then
23507 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
23511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
23512 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
23513 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
23514 $as_echo_n "(cached) " >&6
23516 gcc_cv_as_powerpc_gnu_attribute=no
23517 if test $in_tree_gas = yes; then
23518 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23519 then gcc_cv_as_powerpc_gnu_attribute=yes
23521 elif test x$gcc_cv_as != x; then
23522 echo '.gnu_attribute 4,1' > conftest.s
23523 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23525 (eval $ac_try) 2>&5
23527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23528 test $ac_status = 0; }; }
23530 gcc_cv_as_powerpc_gnu_attribute=yes
23532 echo "configure: failed program was" >&5
23535 rm -f conftest.o conftest.s
23538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
23539 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
23540 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
23542 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
23546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
23547 $as_echo_n "checking assembler for tls marker support... " >&6; }
23548 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
23549 $as_echo_n "(cached) " >&6
23551 gcc_cv_as_powerpc_tls_markers=no
23552 if test $in_tree_gas = yes; then
23553 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
23554 then gcc_cv_as_powerpc_tls_markers=yes
23556 elif test x$gcc_cv_as != x; then
23557 echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
23558 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23559 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23560 (eval $ac_try) 2>&5
23562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23563 test $ac_status = 0; }; }
23565 gcc_cv_as_powerpc_tls_markers=yes
23567 echo "configure: failed program was" >&5
23570 rm -f conftest.o conftest.s
23573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
23574 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
23575 if test $gcc_cv_as_powerpc_tls_markers = yes; then
23577 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
23583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23584 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23585 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
23586 $as_echo_n "(cached) " >&6
23588 gcc_cv_as_mips_explicit_relocs=no
23589 if test $in_tree_gas = yes; then
23590 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23591 then gcc_cv_as_mips_explicit_relocs=yes
23593 elif test x$gcc_cv_as != x; then
23594 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
23595 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23596 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23597 (eval $ac_try) 2>&5
23599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23600 test $ac_status = 0; }; }
23602 gcc_cv_as_mips_explicit_relocs=yes
23604 echo "configure: failed program was" >&5
23607 rm -f conftest.o conftest.s
23610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
23611 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
23612 if test $gcc_cv_as_mips_explicit_relocs = yes; then
23613 if test x$target_cpu_default = x
23614 then target_cpu_default=MASK_EXPLICIT_RELOCS
23615 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
23618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
23619 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
23620 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
23621 $as_echo_n "(cached) " >&6
23623 gcc_cv_as_mips_no_shared=no
23624 if test $in_tree_gas = yes; then
23625 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23626 then gcc_cv_as_mips_no_shared=yes
23628 elif test x$gcc_cv_as != x; then
23629 echo 'nop' > conftest.s
23630 if { ac_try='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
23631 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23632 (eval $ac_try) 2>&5
23634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23635 test $ac_status = 0; }; }
23637 gcc_cv_as_mips_no_shared=yes
23639 echo "configure: failed program was" >&5
23642 rm -f conftest.o conftest.s
23645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
23646 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
23647 if test $gcc_cv_as_mips_no_shared = yes; then
23649 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
23653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
23654 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
23655 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
23656 $as_echo_n "(cached) " >&6
23658 gcc_cv_as_mips_gnu_attribute=no
23659 if test $in_tree_gas = yes; then
23660 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23661 then gcc_cv_as_mips_gnu_attribute=yes
23663 elif test x$gcc_cv_as != x; then
23664 echo '.gnu_attribute 4,1' > conftest.s
23665 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23666 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23667 (eval $ac_try) 2>&5
23669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23670 test $ac_status = 0; }; }
23672 gcc_cv_as_mips_gnu_attribute=yes
23674 echo "configure: failed program was" >&5
23677 rm -f conftest.o conftest.s
23680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
23681 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
23682 if test $gcc_cv_as_mips_gnu_attribute = yes; then
23684 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
23688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
23689 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
23690 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
23691 $as_echo_n "(cached) " >&6
23693 gcc_cv_as_mips_dtprelword=no
23694 if test $in_tree_gas = yes; then
23695 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23696 then gcc_cv_as_mips_dtprelword=yes
23698 elif test x$gcc_cv_as != x; then
23699 echo '.section .tdata,"awT",@progbits
23703 .dtprelword x+0x8000' > conftest.s
23704 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23705 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23706 (eval $ac_try) 2>&5
23708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23709 test $ac_status = 0; }; }
23711 gcc_cv_as_mips_dtprelword=yes
23713 echo "configure: failed program was" >&5
23716 rm -f conftest.o conftest.s
23719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
23720 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
23721 if test $gcc_cv_as_mips_dtprelword = yes; then
23723 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
23727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
23728 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
23729 gcc_cv_as_ld_jalr_reloc=no
23730 if test $gcc_cv_as_mips_explicit_relocs = yes; then
23731 if test $in_tree_ld = yes ; then
23732 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 \
23733 && test $in_tree_ld_is_elf = yes; then
23734 gcc_cv_as_ld_jalr_reloc=yes
23736 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
23737 echo ' .ent x' > conftest.s
23738 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
23739 echo ' ld $25,%call16(y)($28)' >> conftest.s
23740 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
23741 echo '1: jalr $25' >> conftest.s
23742 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
23743 echo '1: jalr $25' >> conftest.s
23744 echo ' .end x' >> conftest.s
23745 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
23746 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
23747 if $gcc_cv_objdump -d conftest.so | grep -q jalr \
23748 && $gcc_cv_objdump -d conftest.so | grep -q "bal.*<x>"; then
23749 gcc_cv_as_ld_jalr_reloc=yes
23755 if test $gcc_cv_as_ld_jalr_reloc = yes; then
23756 if test x$target_cpu_default = x; then
23757 target_cpu_default=MASK_RELAX_PIC_CALLS
23759 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
23762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
23763 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
23765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
23766 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
23767 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
23768 $as_echo_n "(cached) " >&6
23770 gcc_cv_ld_mips_personality_relaxation=no
23771 if test $in_tree_ld = yes ; then
23772 if test "$gcc_cv_gld_major_version" -eq 2 \
23773 -a "$gcc_cv_gld_minor_version" -ge 21 \
23774 -o "$gcc_cv_gld_major_version" -gt 2; then
23775 gcc_cv_ld_mips_personality_relaxation=yes
23777 elif test x$gcc_cv_as != x \
23778 -a x$gcc_cv_ld != x \
23779 -a x$gcc_cv_readelf != x ; then
23780 cat > conftest.s <<EOF
23782 .cfi_personality 0x80,indirect_ptr
23789 .section .data,"aw",@progbits
23793 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
23794 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
23795 if $gcc_cv_readelf -d conftest 2>&1 \
23796 | grep TEXTREL > /dev/null 2>&1; then
23798 elif $gcc_cv_readelf --relocs conftest 2>&1 \
23799 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
23802 gcc_cv_ld_mips_personality_relaxation=yes
23806 rm -f conftest.s conftest.o conftest
23808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
23809 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
23810 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
23812 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
23818 # Mips and HP-UX need the GNU assembler.
23819 # Linux on IA64 might be able to use the Intel assembler.
23822 mips*-*-* | *-*-hpux* )
23823 if test x$gas_flag = xyes \
23824 || test x"$host" != x"$build" \
23825 || test ! -x "$gcc_cv_as" \
23826 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
23829 echo "*** This configuration requires the GNU assembler" >&2
23835 # ??? Not all targets support dwarf2 debug_line, even within a version
23836 # of gas. Moreover, we need to emit a valid instruction to trigger any
23837 # info to the output file. So, as supported targets are added to gas 2.11,
23838 # add some instruction here to (also) show we expect this might work.
23839 # ??? Once 2.11 is released, probably need to add first known working
23840 # version to the per-target configury.
23842 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
23843 | x86_64*-*-* | hppa*-*-* | arm*-*-* \
23844 | xstormy16*-*-* | cris-*-* | crisv32-*-* | xtensa*-*-* | bfin-*-* | score*-*-* \
23845 | spu-*-* | fido*-*-* | m32c-*-*)
23848 ia64*-*-* | s390*-*-*)
23855 if test x"$insn" != x; then
23857 .file 1 \"conftest.s\"
23860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
23861 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
23862 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
23863 $as_echo_n "(cached) " >&6
23865 gcc_cv_as_dwarf2_debug_line=no
23866 if test $in_tree_gas = yes; then
23867 if test $in_tree_gas_is_elf = yes \
23868 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23869 then gcc_cv_as_dwarf2_debug_line=yes
23871 elif test x$gcc_cv_as != x; then
23872 echo "$conftest_s" > conftest.s
23873 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23874 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23875 (eval $ac_try) 2>&5
23877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23878 test $ac_status = 0; }; }
23880 if test x$gcc_cv_objdump != x \
23881 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
23882 | grep debug_line > /dev/null 2>&1; then
23883 gcc_cv_as_dwarf2_debug_line=yes
23886 echo "configure: failed program was" >&5
23889 rm -f conftest.o conftest.s
23892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
23893 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
23896 # The .debug_line file table must be in the exact order that
23897 # we specified the files, since these indices are also used
23898 # by DW_AT_decl_file. Approximate this test by testing if
23899 # the assembler bitches if the same index is assigned twice.
23900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
23901 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
23902 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
23903 $as_echo_n "(cached) " >&6
23905 gcc_cv_as_dwarf2_file_buggy=no
23906 if test x$gcc_cv_as != x; then
23907 echo ' .file 1 "foo.s"
23908 .file 1 "bar.s"' > conftest.s
23909 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23911 (eval $ac_try) 2>&5
23913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23914 test $ac_status = 0; }; }
23916 gcc_cv_as_dwarf2_file_buggy=yes
23918 echo "configure: failed program was" >&5
23921 rm -f conftest.o conftest.s
23924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
23925 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
23928 if test $gcc_cv_as_dwarf2_debug_line = yes \
23929 && test $gcc_cv_as_dwarf2_file_buggy = no; then
23931 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
23935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
23936 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
23937 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
23938 $as_echo_n "(cached) " >&6
23940 gcc_cv_as_gdwarf2_flag=no
23941 if test $in_tree_gas = yes; then
23942 if test $in_tree_gas_is_elf = yes \
23943 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23944 then gcc_cv_as_gdwarf2_flag=yes
23946 elif test x$gcc_cv_as != x; then
23947 echo "$insn" > conftest.s
23948 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
23949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23950 (eval $ac_try) 2>&5
23952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23953 test $ac_status = 0; }; }
23955 gcc_cv_as_gdwarf2_flag=yes
23957 echo "configure: failed program was" >&5
23960 rm -f conftest.o conftest.s
23963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
23964 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
23965 if test $gcc_cv_as_gdwarf2_flag = yes; then
23967 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
23971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
23972 $as_echo_n "checking assembler for --gstabs option... " >&6; }
23973 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
23974 $as_echo_n "(cached) " >&6
23976 gcc_cv_as_gstabs_flag=no
23977 if test $in_tree_gas = yes; then
23978 if test $in_tree_gas_is_elf = yes \
23979 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23980 then gcc_cv_as_gstabs_flag=yes
23982 elif test x$gcc_cv_as != x; then
23983 echo "$insn" > conftest.s
23984 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
23985 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23986 (eval $ac_try) 2>&5
23988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23989 test $ac_status = 0; }; }
23991 # The native Solaris 9/Intel assembler doesn't understand --gstabs
23992 # and warns about it, but still exits successfully. So check for
23994 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
23995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23996 (eval $ac_try) 2>&5
23998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23999 test $ac_status = 0; }; }
24001 else gcc_cv_as_gstabs_flag=yes
24004 echo "configure: failed program was" >&5
24007 rm -f conftest.o conftest.s
24010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
24011 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
24012 if test $gcc_cv_as_gstabs_flag = yes; then
24014 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
24018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
24019 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
24020 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
24021 $as_echo_n "(cached) " >&6
24023 gcc_cv_as_debug_prefix_map_flag=no
24024 if test $in_tree_gas = yes; then
24025 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24026 then gcc_cv_as_debug_prefix_map_flag=yes
24028 elif test x$gcc_cv_as != x; then
24029 echo "$insn" > conftest.s
24030 if { ac_try='$gcc_cv_as --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
24031 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24032 (eval $ac_try) 2>&5
24034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24035 test $ac_status = 0; }; }
24037 gcc_cv_as_debug_prefix_map_flag=yes
24039 echo "configure: failed program was" >&5
24042 rm -f conftest.o conftest.s
24045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
24046 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
24047 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
24049 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
24054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
24055 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
24056 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
24057 $as_echo_n "(cached) " >&6
24059 gcc_cv_as_lcomm_with_alignment=no
24060 if test x$gcc_cv_as != x; then
24061 echo '.lcomm bar,4,16' > conftest.s
24062 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
24063 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24064 (eval $ac_try) 2>&5
24066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24067 test $ac_status = 0; }; }
24069 gcc_cv_as_lcomm_with_alignment=yes
24071 echo "configure: failed program was" >&5
24074 rm -f conftest.o conftest.s
24077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
24078 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
24079 if test $gcc_cv_as_lcomm_with_alignment = yes; then
24081 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
24085 # Check whether --enable-gnu-unique-object was given.
24086 if test "${enable_gnu_unique_object+set}" = set; then :
24087 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
24089 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
24090 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
24094 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
24095 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
24096 $as_echo_n "(cached) " >&6
24098 gcc_cv_as_gnu_unique_object=no
24099 if test $in_tree_gas = yes; then
24100 if test $in_tree_gas_is_elf = yes \
24101 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24102 then gcc_cv_as_gnu_unique_object=yes
24104 elif test x$gcc_cv_as != x; then
24105 echo '.type foo, @gnu_unique_object' > conftest.s
24106 if { ac_try='$gcc_cv_as -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 gcc_cv_as_gnu_unique_object=yes
24115 echo "configure: failed program was" >&5
24118 rm -f conftest.o conftest.s
24121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
24122 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
24123 if test $gcc_cv_as_gnu_unique_object = yes; then
24124 # Also check for ld.so support, i.e. glibc 2.11 or higher.
24125 if test x$host = x$build -a x$host = x$target &&
24126 glibcver=`ldd --version 2>/dev/null`; then
24127 glibcmajor=`expr "$glibcver" : "ldd (GNU libc) \([0-9]*\)"`
24128 glibcminor=`expr "$glibcver" : "ldd (GNU libc) [0-9]*\.\([0-9]*\)"`
24129 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
24130 if test "$glibcnum" -ge 2011 ; then
24131 enable_gnu_unique_object=yes
24137 if test x$enable_gnu_unique_object = xyes; then
24139 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
24143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
24144 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
24145 if test "${gcc_cv_as_line_zero+set}" = set; then :
24146 $as_echo_n "(cached) " >&6
24148 gcc_cv_as_line_zero=no
24149 if test $in_tree_gas = yes; then
24150 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
24151 then gcc_cv_as_line_zero=yes
24153 elif test "x$gcc_cv_as" != x; then
24154 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
24155 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
24156 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24157 (eval $ac_try) 2>&5
24159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24160 test $ac_status = 0; }; } &&
24161 test "x`cat conftest.out`" = x
24163 gcc_cv_as_line_zero=yes
24165 echo "configure: failed program was" >&5
24167 echo "configure: error output was" >&5
24168 cat conftest.out >&5
24170 rm -f conftest.o conftest.s conftest.out
24173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
24174 $as_echo "$gcc_cv_as_line_zero" >&6; }
24175 if test "x$gcc_cv_as_line_zero" = xyes; then
24177 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
24181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
24182 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
24183 gcc_cv_ld_eh_frame_hdr=no
24184 if test $in_tree_ld = yes ; then
24185 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 \
24186 && test $in_tree_ld_is_elf = yes; then
24187 gcc_cv_ld_eh_frame_hdr=yes
24189 elif test x$gcc_cv_ld != x; then
24190 # Check if linker supports --eh-frame-hdr option
24191 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
24192 gcc_cv_ld_eh_frame_hdr=yes
24196 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
24198 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
24201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
24202 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
24204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
24205 $as_echo_n "checking linker position independent executable support... " >&6; }
24207 if test $in_tree_ld = yes ; then
24208 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 \
24209 && test $in_tree_ld_is_elf = yes; then
24212 elif test x$gcc_cv_ld != x; then
24213 # Check if linker supports -pie option
24214 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
24218 if test x"$gcc_cv_ld_pie" = xyes; then
24220 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
24223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
24224 $as_echo "$gcc_cv_ld_pie" >&6; }
24226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
24227 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
24228 gcc_cv_ld_eh_gc_sections=no
24229 if test $in_tree_ld = yes ; then
24230 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 \
24231 && test $in_tree_ld_is_elf = yes; then
24232 gcc_cv_ld_eh_gc_sections=yes
24234 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24235 cat > conftest.s <<EOF
24238 .type _start, @function
24241 .size _start, .-_start
24242 .section .text.foo,"ax",@progbits
24243 .type foo, @function
24247 .section .gcc_except_table.foo,"a",@progbits
24250 .section .eh_frame,"a",@progbits
24253 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
24254 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
24255 | grep "gc-sections option ignored" > /dev/null; then
24256 gcc_cv_ld_eh_gc_sections=no
24257 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
24258 gcc_cv_ld_eh_gc_sections=yes
24259 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
24260 if test x$gcc_cv_as_comdat_group != xyes; then
24261 gcc_cv_ld_eh_gc_sections=no
24262 cat > conftest.s <<EOF
24265 .type _start, @function
24268 .size _start, .-_start
24269 .section .gnu.linkonce.t.foo,"ax",@progbits
24270 .type foo, @function
24274 .section .gcc_except_table.foo,"a",@progbits
24277 .section .eh_frame,"a",@progbits
24280 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
24281 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
24282 | grep "gc-sections option ignored" > /dev/null; then
24283 gcc_cv_ld_eh_gc_sections=no
24284 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
24285 gcc_cv_ld_eh_gc_sections=yes
24291 rm -f conftest.s conftest.o conftest
24295 # ??? This apparently exposes a binutils bug with PC-relative relocations.
24296 gcc_cv_ld_eh_gc_sections=no
24299 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
24301 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
24304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
24305 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
24311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
24312 $as_echo_n "checking linker --as-needed support... " >&6; }
24313 if test "${gcc_cv_ld_as_needed+set}" = set; then :
24314 $as_echo_n "(cached) " >&6
24316 gcc_cv_ld_as_needed=no
24317 if test $in_tree_ld = yes ; then
24318 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 \
24319 && test $in_tree_ld_is_elf = yes; then
24320 gcc_cv_ld_as_needed=yes
24322 elif test x$gcc_cv_ld != x; then
24323 # Check if linker supports --as-needed and --no-as-needed options
24324 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
24325 gcc_cv_ld_as_needed=yes
24330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
24331 $as_echo "$gcc_cv_ld_as_needed" >&6; }
24332 if test x"$gcc_cv_ld_as_needed" = xyes; then
24334 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
24338 case "$target:$tm_file" in
24339 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
24340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
24341 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
24342 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
24343 $as_echo_n "(cached) " >&6
24345 gcc_cv_ld_no_dot_syms=no
24346 if test $in_tree_ld = yes ; then
24347 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
24348 gcc_cv_ld_no_dot_syms=yes
24350 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
24351 cat > conftest1.s <<EOF
24355 cat > conftest2.s <<EOF
24356 .section ".opd","aw"
24359 .type foo,@function
24361 .quad .LEfoo,.TOC.@tocbase,0
24367 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
24368 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
24369 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
24370 gcc_cv_ld_no_dot_syms=yes
24372 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
24376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
24377 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
24378 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
24380 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
24386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
24387 $as_echo_n "checking linker --build-id support... " >&6; }
24388 if test "${gcc_cv_ld_buildid+set}" = set; then :
24389 $as_echo_n "(cached) " >&6
24391 gcc_cv_ld_buildid=no
24392 if test $in_tree_ld = yes ; then
24393 if test "$gcc_cv_gld_major_version" -eq 2 -a \
24394 "$gcc_cv_gld_minor_version" -ge 18 -o \
24395 "$gcc_cv_gld_major_version" -gt 2 \
24396 && test $in_tree_ld_is_elf = yes; then
24397 gcc_cv_ld_buildid=yes
24399 elif test x$gcc_cv_ld != x; then
24400 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
24401 gcc_cv_ld_buildid=yes
24405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
24406 $as_echo "$gcc_cv_ld_buildid" >&6; }
24407 if test x"$gcc_cv_ld_buildid" = xyes; then
24409 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
24413 # Check whether --enable-linker-build-id was given.
24414 if test "${enable_linker_build_id+set}" = set; then :
24415 enableval=$enable_linker_build_id;
24417 enable_linker_build_id=no
24421 if test x"$enable_linker_build_id" = xyes; then
24422 if test x"$gcc_cv_ld_buildid" = xyes; then
24424 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
24427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
24428 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
24432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
24433 $as_echo_n "checking linker --sysroot support... " >&6; }
24434 if test "${gcc_cv_ld_sysroot+set}" = set; then :
24435 $as_echo_n "(cached) " >&6
24437 gcc_cv_ld_sysroot=no
24438 if test $in_tree_ld = yes ; then
24439 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
24440 gcc_cv_ld_sysroot=yes
24442 elif test x$gcc_cv_ld != x; then
24443 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
24444 gcc_cv_ld_sysroot=yes
24448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
24449 $as_echo "$gcc_cv_ld_sysroot" >&6; }
24450 if test x"$gcc_cv_ld_sysroot" = xyes; then
24452 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
24456 if test x$with_sysroot = x && test x$host = x$target \
24457 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
24458 && test "$prefix" != "NONE"; then
24460 cat >>confdefs.h <<_ACEOF
24461 #define PREFIX_INCLUDE_DIR "$prefix/include"
24466 # Test for stack protector support in target C library.
24467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
24468 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
24469 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
24470 $as_echo_n "(cached) " >&6
24472 gcc_cv_libc_provides_ssp=no
24474 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
24475 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
24476 if test "x$with_sysroot" = x; then
24477 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
24478 elif test "x$with_build_sysroot" != "x"; then
24479 glibc_header_dir="${with_build_sysroot}/usr/include"
24480 elif test "x$with_sysroot" = xyes; then
24481 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
24483 glibc_header_dir="${with_sysroot}/usr/include"
24486 glibc_header_dir=/usr/include
24488 # glibc 2.4 and later provides __stack_chk_fail and
24489 # either __stack_chk_guard, or TLS access to stack guard canary.
24490 if test -f $glibc_header_dir/features.h \
24491 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
24492 $glibc_header_dir/features.h > /dev/null; then
24493 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
24494 $glibc_header_dir/features.h > /dev/null; then
24495 gcc_cv_libc_provides_ssp=yes
24496 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
24497 $glibc_header_dir/features.h > /dev/null \
24498 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
24499 $glibc_header_dir/features.h > /dev/null; then
24500 gcc_cv_libc_provides_ssp=yes
24501 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
24502 $glibc_header_dir/features.h > /dev/null && \
24503 test -f $glibc_header_dir/bits/uClibc_config.h && \
24504 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
24505 $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
24506 gcc_cv_libc_provides_ssp=yes
24511 # Avoid complicated tests (see
24512 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
24513 # simply assert that glibc does provide this, which is true for all
24514 # realistically usable GNU/Hurd configurations.
24515 gcc_cv_libc_provides_ssp=yes;;
24516 *-*-darwin* | *-*-freebsd*)
24517 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
24518 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
24519 gcc_cv_libc_provides_ssp=yes
24521 echo "no __stack_chk_fail on this target"
24525 *) gcc_cv_libc_provides_ssp=no ;;
24528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
24529 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
24531 if test x$gcc_cv_libc_provides_ssp = xyes; then
24533 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
24537 # Check if TFmode long double should be used by default or not.
24538 # Some glibc targets used DFmode long double, but with glibc 2.4
24539 # and later they can use TFmode.
24541 powerpc*-*-linux* | \
24542 powerpc*-*-gnu* | \
24543 sparc*-*-linux* | \
24547 # Check whether --with-long-double-128 was given.
24548 if test "${with_long_double_128+set}" = set; then :
24549 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
24551 gcc_cv_target_ldbl128=no
24552 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
24553 if test "x$with_sysroot" = x; then
24554 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
24555 elif test "x$with_build_sysroot" != "x"; then
24556 glibc_header_dir="${with_build_sysroot}/usr/include"
24557 elif test "x$with_sysroot" = xyes; then
24558 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
24560 glibc_header_dir="${with_sysroot}/usr/include"
24563 glibc_header_dir=/usr/include
24565 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
24566 $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
24567 && gcc_cv_target_ldbl128=yes
24573 if test x$gcc_cv_target_ldbl128 = xyes; then
24575 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
24579 # Find out what GC implementation we want, or may, use.
24581 # Check whether --with-gc was given.
24582 if test "${with_gc+set}" = set; then :
24583 withval=$with_gc; case "$withval" in
24590 $as_echo "#define GGC_ZONE 1" >>confdefs.h
24594 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
24602 echo "Using $GGC for garbage collection."
24604 # Libraries to use on the host. This will normally be set by the top
24605 # level Makefile. Here we simply capture the value for our Makefile.
24606 if test -z "${HOST_LIBS+set}"; then
24611 # Use the system's zlib library.
24613 zlibinc="-I\$(srcdir)/../zlib"
24615 # Check whether --with-system-zlib was given.
24616 if test "${with_system_zlib+set}" = set; then :
24617 withval=$with_system_zlib; zlibdir=
24626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
24627 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
24628 # Check whether --enable-maintainer-mode was given.
24629 if test "${enable_maintainer_mode+set}" = set; then :
24630 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
24636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
24637 $as_echo "$maintainer_mode" >&6; }
24639 if test "$maintainer_mode" = "yes"; then
24649 # Make empty files to contain the specs and options for each language.
24650 # Then add #include lines to for a compiler that has specs and/or options.
24656 # These (without "all_") are set in each config-lang.in.
24657 # `language' must be a single word so is spelled singularly.
24660 all_outputs='Makefile gccbug'
24661 # List of language makefile fragments.
24662 all_lang_makefrags=
24663 # List of language subdirectory makefiles. Deprecated.
24664 all_lang_makefiles=
24665 # Additional files for gengtype
24666 all_gtfiles="$target_gtfiles"
24668 # These are the languages that are set in --enable-languages,
24669 # and are available in the GCC tree.
24670 all_selected_languages=
24672 # Add the language fragments.
24673 # Languages are added via two mechanisms. Some information must be
24674 # recorded in makefile variables, these are defined in config-lang.in.
24675 # We accumulate them and plug them into the main Makefile.
24676 # The other mechanism is a set of hooks for each of the main targets
24677 # like `clean', `install', etc.
24679 language_hooks="Make-hooks"
24681 for lang in ${srcdir}/*/config-lang.in
24683 test "$lang" = "${srcdir}/*/config-lang.in" && continue
24685 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
24686 if test "x$lang_alias" = x
24688 echo "$lang doesn't set \$language." 1>&2
24691 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
24692 subdirs="$subdirs $subdir"
24694 # $gcc_subdir is where the gcc integration files are to be found
24695 # for a language, both for internal compiler purposes (compiler
24696 # sources implementing front-end to GCC tree converters), and for
24697 # build infrastructure purposes (Make-lang.in, etc.)
24699 # This will be <subdir> (relative to $srcdir) if a line like
24700 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
24701 # is found in <langdir>/config-lang.in, and will remain <langdir>
24704 # Except for the language alias (fetched above), the regular
24705 # "config-lang.in" contents are always retrieved from $gcc_subdir,
24706 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
24707 # only this and the language alias.
24709 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
24710 if [ "$gcc_subdir" = "" ]; then
24711 gcc_subdir="$subdir"
24714 case ",$enable_languages," in
24716 all_selected_languages="$all_selected_languages $lang_alias"
24717 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
24718 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
24729 . ${srcdir}/$gcc_subdir/config-lang.in
24730 if test "x$language" = x
24732 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
24737 case ",$enable_languages," in
24738 *,$lang_alias,*) ;;
24740 for i in $subdir_requires; do
24741 test -f "${srcdir}/$i/config-lang.in" && continue
24749 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
24750 if test -f $srcdir/$gcc_subdir/lang.opt; then
24751 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
24753 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
24754 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
24756 if test -f ${srcdir}/$gcc_subdir/Makefile.in
24757 then all_lang_makefiles="$gcc_subdir/Makefile"
24759 all_languages="$all_languages $language"
24760 all_compilers="$all_compilers $compilers"
24761 all_outputs="$all_outputs $outputs"
24762 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
24765 # Pick up gtfiles for c
24767 . ${srcdir}/c-config-lang.in
24768 all_gtfiles="$all_gtfiles [c] $gtfiles"
24771 for language in $all_selected_languages
24773 check_languages="$check_languages check-$language"
24776 # We link each language in with a set of hooks, reached indirectly via
24777 # lang.${target}. Only do so for selected languages.
24781 target_list="all.cross start.encap rest.encap tags \
24782 install-common install-man install-info install-pdf dvi pdf \
24783 html uninstall info man srcextra srcman srcinfo \
24784 mostlyclean clean distclean maintainer-clean install-plugin"
24786 for t in $target_list
24789 for lang in $all_selected_languages
24793 echo "lang.$t: $x" >> Make-hooks
24802 echo "dir ." > .gdbinit
24803 echo "dir ${srcdir}" >> .gdbinit
24804 if test x$gdb_needs_out_file_path = xyes
24806 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
24808 if test "x$subdirs" != x; then
24811 echo "dir ${srcdir}/$s" >> .gdbinit
24814 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
24816 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
24820 # Find a directory in which to install a shared libgcc.
24822 # Check whether --enable-version-specific-runtime-libs was given.
24823 if test "${enable_version_specific_runtime_libs+set}" = set; then :
24824 enableval=$enable_version_specific_runtime_libs;
24829 # Check whether --with-slibdir was given.
24830 if test "${with_slibdir+set}" = set; then :
24831 withval=$with_slibdir; slibdir="$with_slibdir"
24833 if test "${enable_version_specific_runtime_libs+set}" = set; then
24834 slibdir='$(libsubdir)'
24835 elif test "$host" != "$target"; then
24836 slibdir='$(build_tooldir)/lib'
24838 slibdir='$(libdir)'
24844 # Substitute configuration variables
24907 if test x${build} = x${host} ; then
24908 if test x${host} = x${target} ; then
24909 echo "Links are now set up to build a native compiler for ${target}." 1>&2
24911 echo "Links are now set up to build a cross-compiler" 1>&2
24912 echo " from ${host} to ${target}." 1>&2
24915 if test x${host} = x${target} ; then
24916 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
24917 echo " for ${target}." 1>&2
24919 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
24920 echo " from ${host} to ${target}." 1>&2
24927 case "${GMPLIBS}" in
24929 $as_echo "#define HAVE_mpc 1" >>confdefs.h
24938 if test "x${CLOOGLIBS}" != "x" ; then
24940 $as_echo "#define HAVE_cloog 1" >>confdefs.h
24944 # Check for plugin support
24945 # Check whether --enable-plugin was given.
24946 if test "${enable_plugin+set}" = set; then :
24947 enableval=$enable_plugin; enable_plugin=$enableval
24949 enable_plugin=yes; default_plugin=yes
24954 if test x"$enable_plugin" = x"yes"; then
24955 # Check that the host supports -rdynamic and -ldl
24958 saved_LDFLAGS="$LDFLAGS"
24963 LDFLAGS="$LDFLAGS -rdynamic"
24964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
24965 $as_echo_n "checking for -rdynamic... " >&6; }
24966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24967 /* end confdefs.h. */
24977 if ac_fn_c_try_link "$LINENO"; then :
24978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24979 $as_echo "yes" >&6; }; have_rdynamic=yes
24981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24982 $as_echo "no" >&6; }
24984 rm -f core conftest.err conftest.$ac_objext \
24985 conftest$ac_exeext conftest.$ac_ext
24986 if test x"$have_rdynamic" = x"yes" ; then
24987 pluginlibs="-rdynamic"
24992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ldl" >&5
24993 $as_echo_n "checking for -ldl... " >&6; }
24994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24995 /* end confdefs.h. */
25000 volatile int f = 0; if (f) dlopen ("dummy", 0);
25005 if ac_fn_c_try_link "$LINENO"; then :
25006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25007 $as_echo "yes" >&6; }; have_dl=yes
25009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25010 $as_echo "no" >&6; }
25012 rm -f core conftest.err conftest.$ac_objext \
25013 conftest$ac_exeext conftest.$ac_ext
25014 if test x"$have_dl" = x"yes"; then
25015 pluginlibs="$pluginlibs -ldl"
25018 # Check that we can build shared objects with -fPIC -shared
25019 LDFLAGS="$LDFLAGS -fPIC -shared"
25020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
25021 $as_echo_n "checking for -fPIC -shared... " >&6; }
25022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25023 /* end confdefs.h. */
25033 if ac_fn_c_try_link "$LINENO"; then :
25034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25035 $as_echo "yes" >&6; }; have_pic_shared=yes
25037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25038 $as_echo "no" >&6; }; have_pic_shared=no
25040 rm -f core conftest.err conftest.$ac_objext \
25041 conftest$ac_exeext conftest.$ac_ext
25042 if test x"$have_pic_shared" != x"yes"; then
25047 # If plugin support had been requested but not available, fail.
25048 if test x"$enable_plugin" = x"no" ; then
25049 if test x"$default_plugin" != x"yes"; then
25051 Building GCC with plugin support requires a host that supports
25052 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
25056 LDFLAGS="$saved_LDFLAGS"
25062 if test x"$enable_plugin" = x"yes"; then
25064 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
25068 # Configure the subdirectories
25069 # AC_CONFIG_SUBDIRS($subdirs)
25071 # Create the Makefile
25072 # and configure language subdirectories
25073 ac_config_files="$ac_config_files $all_outputs"
25076 ac_config_commands="$ac_config_commands default"
25078 cat >confcache <<\_ACEOF
25079 # This file is a shell script that caches the results of configure
25080 # tests run on this system so they can be shared between configure
25081 # scripts and configure runs, see configure's option --config-cache.
25082 # It is not useful on other systems. If it contains results you don't
25083 # want to keep, you may remove or edit it.
25085 # config.status only pays attention to the cache file if you give it
25086 # the --recheck option to rerun configure.
25088 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25089 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25090 # following values.
25094 # The following way of writing the cache mishandles newlines in values,
25095 # but we know of no workaround that is simple, portable, and efficient.
25096 # So, we kill variables containing newlines.
25097 # Ultrix sh set writes to stderr and can't be redirected directly,
25098 # and sets the high bit in the cache file unless we assign to the vars.
25100 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25101 eval ac_val=\$$ac_var
25105 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25106 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25109 _ | IFS | as_nl) ;; #(
25110 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25111 *) { eval $ac_var=; unset $ac_var;} ;;
25117 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25118 *${as_nl}ac_space=\ *)
25119 # `set' does not quote correctly, so add quotes: double-quote
25120 # substitution turns \\\\ into \\, and sed turns \\ into \.
25123 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25126 # `set' quotes correctly as required by POSIX, so do not add quotes.
25127 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25136 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25138 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25140 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25141 if test -w "$cache_file"; then
25142 test "x$cache_file" != "x/dev/null" &&
25143 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25144 $as_echo "$as_me: updating cache $cache_file" >&6;}
25145 cat confcache >$cache_file
25147 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25148 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25153 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25154 # Let make expand exec_prefix.
25155 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25157 DEFS=-DHAVE_CONFIG_H
25161 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25162 # 1. Remove the extension, and $U if already installed.
25163 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25164 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25165 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25166 # will be set to the directory where LIBOBJS objects are built.
25167 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25168 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25170 LIBOBJS=$ac_libobjs
25172 LTLIBOBJS=$ac_ltlibobjs
25177 : ${CONFIG_STATUS=./config.status}
25179 ac_clean_files_save=$ac_clean_files
25180 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25181 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25182 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25184 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25186 # Generated by $as_me.
25187 # Run this file to recreate the current configuration.
25188 # Compiler output produced by configure, useful for debugging
25189 # configure, is in config.log if it exists.
25192 ac_cs_recheck=false
25195 SHELL=\${CONFIG_SHELL-$SHELL}
25198 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25199 ## -------------------- ##
25200 ## M4sh Initialization. ##
25201 ## -------------------- ##
25203 # Be more Bourne compatible
25204 DUALCASE=1; export DUALCASE # for MKS sh
25205 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25208 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25209 # is contrary to our usage. Disable this feature.
25210 alias -g '${1+"$@"}'='"$@"'
25211 setopt NO_GLOB_SUBST
25213 case `(set -o) 2>/dev/null` in #(
25225 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25226 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25227 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25228 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25229 # Prefer a ksh shell builtin over an external printf program on Solaris,
25230 # but without wasting forks for bash or zsh.
25231 if test -z "$BASH_VERSION$ZSH_VERSION" \
25232 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25233 as_echo='print -r --'
25234 as_echo_n='print -rn --'
25235 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25236 as_echo='printf %s\n'
25237 as_echo_n='printf %s'
25239 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25240 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25241 as_echo_n='/usr/ucb/echo -n'
25243 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25244 as_echo_n_body='eval
25248 expr "X$arg" : "X\\(.*\\)$as_nl";
25249 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25251 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25253 export as_echo_n_body
25254 as_echo_n='sh -c $as_echo_n_body as_echo'
25256 export as_echo_body
25257 as_echo='sh -c $as_echo_body as_echo'
25260 # The user is always right.
25261 if test "${PATH_SEPARATOR+set}" != set; then
25263 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25264 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25271 # We need space, tab and new line, in precisely that order. Quoting is
25272 # there to prevent editors from complaining about space-tab.
25273 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25274 # splitting by setting IFS to empty value.)
25277 # Find who we are. Look in the path if we contain no directory separator.
25279 *[\\/]* ) as_myself=$0 ;;
25280 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25281 for as_dir in $PATH
25284 test -z "$as_dir" && as_dir=.
25285 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25291 # We did not find ourselves, most probably we were run as `sh COMMAND'
25292 # in which case we are not to be found in the path.
25293 if test "x$as_myself" = x; then
25296 if test ! -f "$as_myself"; then
25297 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25301 # Unset variables that we do not need and which cause bugs (e.g. in
25302 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25303 # suppresses any "Segmentation fault" message there. '((' could
25304 # trigger a bug in pdksh 5.2.14.
25305 for as_var in BASH_ENV ENV MAIL MAILPATH
25306 do eval test x\${$as_var+set} = xset \
25307 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25320 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25323 # as_fn_error ERROR [LINENO LOG_FD]
25324 # ---------------------------------
25325 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25326 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25327 # script with status $?, using 1 if that was 0.
25330 as_status=$?; test $as_status -eq 0 && as_status=1
25332 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25333 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
25335 $as_echo "$as_me: error: $1" >&2
25336 as_fn_exit $as_status
25340 # as_fn_set_status STATUS
25341 # -----------------------
25342 # Set $? to STATUS, without forking.
25343 as_fn_set_status ()
25346 } # as_fn_set_status
25348 # as_fn_exit STATUS
25349 # -----------------
25350 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25354 as_fn_set_status $1
25360 # Portably unset VAR.
25363 { eval $1=; unset $1;}
25365 as_unset=as_fn_unset
25366 # as_fn_append VAR VALUE
25367 # ----------------------
25368 # Append the text in VALUE to the end of the definition contained in VAR. Take
25369 # advantage of any shell optimizations that allow amortized linear growth over
25370 # repeated appends, instead of the typical quadratic growth present in naive
25372 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25373 eval 'as_fn_append ()
25384 # as_fn_arith ARG...
25385 # ------------------
25386 # Perform arithmetic evaluation on the ARGs, and store the result in the
25387 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25388 # must be portable across $(()) and expr.
25389 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25390 eval 'as_fn_arith ()
25397 as_val=`expr "$@" || test $? -eq 1`
25402 if expr a : '\(a\)' >/dev/null 2>&1 &&
25403 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25409 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25410 as_basename=basename
25415 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25421 as_me=`$as_basename -- "$0" ||
25422 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25423 X"$0" : 'X\(//\)$' \| \
25424 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25426 sed '/^.*\/\([^/][^/]*\)\/*$/{
25440 # Avoid depending upon Character Ranges.
25441 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25442 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25443 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25444 as_cr_digits='0123456789'
25445 as_cr_alnum=$as_cr_Letters$as_cr_digits
25447 ECHO_C= ECHO_N= ECHO_T=
25448 case `echo -n x` in #(((((
25450 case `echo 'xy\c'` in
25451 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25453 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25460 rm -f conf$$ conf$$.exe conf$$.file
25461 if test -d conf$$.dir; then
25462 rm -f conf$$.dir/conf$$.file
25465 mkdir conf$$.dir 2>/dev/null
25467 if (echo >conf$$.file) 2>/dev/null; then
25468 if ln -s conf$$.file conf$$ 2>/dev/null; then
25470 # ... but there are two gotchas:
25471 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25472 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25473 # In both cases, we have to default to `cp -p'.
25474 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25476 elif ln conf$$.file conf$$ 2>/dev/null; then
25484 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25485 rmdir conf$$.dir 2>/dev/null
25490 # Create "$as_dir" as a directory, including parents if necessary.
25495 -*) as_dir=./$as_dir;;
25497 test -d "$as_dir" || eval $as_mkdir_p || {
25501 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25502 *) as_qdir=$as_dir;;
25504 as_dirs="'$as_qdir' $as_dirs"
25505 as_dir=`$as_dirname -- "$as_dir" ||
25506 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25507 X"$as_dir" : 'X\(//\)[^/]' \| \
25508 X"$as_dir" : 'X\(//\)$' \| \
25509 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25510 $as_echo X"$as_dir" |
25511 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25515 /^X\(\/\/\)[^/].*/{
25528 test -d "$as_dir" && break
25530 test -z "$as_dirs" || eval "mkdir $as_dirs"
25531 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25535 if mkdir -p . 2>/dev/null; then
25536 as_mkdir_p='mkdir -p "$as_dir"'
25538 test -d ./-p && rmdir ./-p
25542 if test -x / >/dev/null 2>&1; then
25543 as_test_x='test -x'
25545 if ls -dL / >/dev/null 2>&1; then
25552 if test -d "$1"; then
25558 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25559 ???[sx]*):;;*)false;;esac;fi
25563 as_executable_p=$as_test_x
25565 # Sed expression to map a string onto a valid CPP name.
25566 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25568 # Sed expression to map a string onto a valid variable name.
25569 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25573 ## ----------------------------------- ##
25574 ## Main body of $CONFIG_STATUS script. ##
25575 ## ----------------------------------- ##
25577 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25579 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25580 # Save the log message, to keep $0 and so on meaningful, and to
25581 # report actual input values of CONFIG_FILES etc. instead of their
25582 # values after options handling.
25584 This file was extended by $as_me, which was
25585 generated by GNU Autoconf 2.64. Invocation command line was
25587 CONFIG_FILES = $CONFIG_FILES
25588 CONFIG_HEADERS = $CONFIG_HEADERS
25589 CONFIG_LINKS = $CONFIG_LINKS
25590 CONFIG_COMMANDS = $CONFIG_COMMANDS
25593 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25598 case $ac_config_files in *"
25599 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25602 case $ac_config_headers in *"
25603 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25608 # Files that config.status was made for.
25609 config_files="$ac_config_files"
25610 config_headers="$ac_config_headers"
25611 config_commands="$ac_config_commands"
25615 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25617 \`$as_me' instantiates files and other configuration actions
25618 from templates according to the current configuration. Unless the files
25619 and actions are specified as TAGs, all are instantiated by default.
25621 Usage: $0 [OPTION]... [TAG]...
25623 -h, --help print this help, then exit
25624 -V, --version print version number and configuration settings, then exit
25625 -q, --quiet, --silent
25626 do not print progress messages
25627 -d, --debug don't remove temporary files
25628 --recheck update $as_me by reconfiguring in the same conditions
25629 --file=FILE[:TEMPLATE]
25630 instantiate the configuration file FILE
25631 --header=FILE[:TEMPLATE]
25632 instantiate the configuration header FILE
25634 Configuration files:
25637 Configuration headers:
25640 Configuration commands:
25643 Report bugs to the package provider."
25646 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25649 configured by $0, generated by GNU Autoconf 2.64,
25650 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25652 Copyright (C) 2009 Free Software Foundation, Inc.
25653 This config.status script is free software; the Free Software Foundation
25654 gives unlimited permission to copy, distribute and modify it."
25659 test -n "\$AWK" || AWK=awk
25662 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25663 # The default lists apply if the user does not specify any file.
25669 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25670 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25681 # Handling of the options.
25682 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25684 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25685 $as_echo "$ac_cs_version"; exit ;;
25686 --debug | --debu | --deb | --de | --d | -d )
25688 --file | --fil | --fi | --f )
25691 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25693 as_fn_append CONFIG_FILES " '$ac_optarg'"
25694 ac_need_defaults=false;;
25695 --header | --heade | --head | --hea )
25698 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25700 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25701 ac_need_defaults=false;;
25703 # Conflict between --help and --header
25704 as_fn_error "ambiguous option: \`$1'
25705 Try \`$0 --help' for more information.";;
25706 --help | --hel | -h )
25707 $as_echo "$ac_cs_usage"; exit ;;
25708 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25709 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25712 # This is an error.
25713 -*) as_fn_error "unrecognized option: \`$1'
25714 Try \`$0 --help' for more information." ;;
25716 *) as_fn_append ac_config_targets " $1"
25717 ac_need_defaults=false ;;
25723 ac_configure_extra_args=
25725 if $ac_cs_silent; then
25727 ac_configure_extra_args="$ac_configure_extra_args --silent"
25731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25732 if \$ac_cs_recheck; then
25733 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25735 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25736 CONFIG_SHELL='$SHELL'
25737 export CONFIG_SHELL
25742 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25746 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25747 ## Running $as_me. ##
25753 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25763 # Handling of arguments.
25764 for ac_config_target in $ac_config_targets
25766 case $ac_config_target in
25767 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
25768 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
25769 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
25770 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
25771 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
25772 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
25774 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25779 # If the user did not use the arguments to specify the items to instantiate,
25780 # then the envvar interface is used. Set only those that are not.
25781 # We use the long form for the default assignment because of an extremely
25782 # bizarre bug on SunOS 4.1.3.
25783 if $ac_need_defaults; then
25784 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25785 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25786 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25789 # Have a temporary directory for convenience. Make it in the build tree
25790 # simply because there is no reason against having it here, and in addition,
25791 # creating and moving files from /tmp can sometimes cause problems.
25792 # Hook for its removal unless debugging.
25793 # Note that there is a small window in which the directory will not be cleaned:
25794 # after its creation but before its name has been assigned to `$tmp'.
25798 trap 'exit_status=$?
25799 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25801 trap 'as_fn_exit 1' 1 2 13 15
25803 # Create a (secure) tmp directory for tmp files.
25806 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25807 test -n "$tmp" && test -d "$tmp"
25810 tmp=./conf$$-$RANDOM
25811 (umask 077 && mkdir "$tmp")
25812 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
25814 # Set up the scripts for CONFIG_FILES section.
25815 # No need to generate them if there are no CONFIG_FILES.
25816 # This happens for instance with `./config.status config.h'.
25817 if test -n "$CONFIG_FILES"; then
25819 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
25820 ac_cs_awk_getline=:
25821 ac_cs_awk_pipe_init=
25822 ac_cs_awk_read_file='
25823 while ((getline aline < (F[key])) > 0)
25826 ac_cs_awk_pipe_fini=
25828 ac_cs_awk_getline=false
25829 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
25830 ac_cs_awk_read_file='
25832 print "cat " F[key] " &&"
25833 '$ac_cs_awk_pipe_init
25834 # The final `:' finishes the AND list.
25835 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
25837 ac_cr=`echo X | tr X '\015'`
25838 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25839 # But we know of no other shell where ac_cr would be empty at this
25840 # point, so we can use a bashism as a fallback.
25841 if test "x$ac_cr" = x; then
25842 eval ac_cr=\$\'\\r\'
25844 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25845 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25848 ac_cs_awk_cr=$ac_cr
25851 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25854 # Create commands to substitute file output variables.
25856 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
25857 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
25858 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
25861 } >conf$$files.sh &&
25862 . ./conf$$files.sh ||
25863 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25864 rm -f conf$$files.sh
25867 echo "cat >conf$$subs.awk <<_ACEOF" &&
25868 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25870 } >conf$$subs.sh ||
25871 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25872 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25874 for ac_last_try in false false false false false :; do
25875 . ./conf$$subs.sh ||
25876 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25878 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25879 if test $ac_delim_n = $ac_delim_num; then
25881 elif $ac_last_try; then
25882 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25884 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25887 rm -f conf$$subs.sh
25889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25890 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
25894 s/^/S["/; s/!.*/"]=/
25904 s/\(.\{148\}\).*/\1/
25906 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25911 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25918 s/\(.\{148\}\).*/\1/
25920 s/["\\]/\\&/g; s/^/"/; s/$/"/
25924 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25929 ' <conf$$subs.awk | sed '
25934 ' >>$CONFIG_STATUS || ac_write_fail=1
25935 rm -f conf$$subs.awk
25936 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25938 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
25939 for (key in S) S_is_set[key] = 1
25941 \$ac_cs_awk_pipe_init
25945 nfields = split(line, field, "@")
25947 len = length(field[1])
25948 for (i = 2; i < nfields; i++) {
25950 keylen = length(key)
25951 if (S_is_set[key]) {
25953 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25954 len += length(value) + length(field[++i])
25959 if (nfields == 3 && !substed) {
25961 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
25962 \$ac_cs_awk_read_file
25968 \$ac_cs_awk_pipe_fini
25971 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25972 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25973 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25976 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
25977 || as_fn_error "could not setup config files machinery" "$LINENO" 5
25980 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25981 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25982 # trailing colons and then remove the whole line if VPATH becomes empty
25983 # (actually we leave an empty line to preserve line numbers).
25984 if test "x$srcdir" = x.; then
25985 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25986 s/:*\$(srcdir):*/:/
25987 s/:*\${srcdir}:*/:/
25989 s/^\([^=]*=[ ]*\):*/\1/
25995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25996 fi # test -n "$CONFIG_FILES"
25998 # Set up the scripts for CONFIG_HEADERS section.
25999 # No need to generate them if there are no CONFIG_HEADERS.
26000 # This happens for instance with `./config.status Makefile'.
26001 if test -n "$CONFIG_HEADERS"; then
26002 cat >"$tmp/defines.awk" <<\_ACAWK ||
26006 # Transform confdefs.h into an awk script `defines.awk', embedded as
26007 # here-document in config.status, that substitutes the proper values into
26008 # config.h.in to produce config.h.
26010 # Create a delimiter string that does not exist in confdefs.h, to ease
26011 # handling of long lines.
26013 for ac_last_try in false false :; do
26014 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26015 if test -z "$ac_t"; then
26017 elif $ac_last_try; then
26018 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26020 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26024 # For the awk script, D is an array of macro values keyed by name,
26025 # likewise P contains macro parameters if any. Preserve backslash
26026 # newline sequences.
26028 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26030 s/.\{148\}/&'"$ac_delim"'/g
26033 s/^[ ]*#[ ]*define[ ][ ]*/ /
26040 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26042 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26046 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26047 D["\1"]=" \3\\\\\\n"\\/p
26049 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26054 s/.\{148\}/&'"$ac_delim"'/g
26059 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26062 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26064 ' <confdefs.h | sed '
26065 s/'"$ac_delim"'/"\\\
26066 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26069 for (key in D) D_is_set[key] = 1
26072 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26074 split(line, arg, " ")
26075 if (arg[1] == "#") {
26079 defundef = substr(arg[1], 2)
26082 split(mac1, mac2, "(") #)
26084 prefix = substr(line, 1, index(line, defundef) - 1)
26085 if (D_is_set[macro]) {
26086 # Preserve the white space surrounding the "#".
26087 print prefix "define", macro P[macro] D[macro]
26090 # Replace #undef with comments. This is necessary, for example,
26091 # in the case of _POSIX_SOURCE, which is predefined and required
26092 # on some systems where configure will not decide to define it.
26093 if (defundef == "undef") {
26094 print "/*", prefix defundef, macro, "*/"
26102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26103 as_fn_error "could not setup config headers machinery" "$LINENO" 5
26104 fi # test -n "$CONFIG_HEADERS"
26107 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26112 :[FHLC]) ac_mode=$ac_tag; continue;;
26114 case $ac_mode$ac_tag in
26116 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26117 :[FH]-) ac_tag=-:-;;
26118 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26135 -) ac_f="$tmp/stdin";;
26136 *) # Look for the file first in the build tree, then in the source tree
26137 # (if the path is not absolute). The absolute path cannot be DOS-style,
26138 # because $ac_f cannot contain `:'.
26142 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26144 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26146 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26147 as_fn_append ac_file_inputs " '$ac_f'"
26150 # Let's still pretend it is `configure' which instantiates (i.e., don't
26151 # use $as_me), people would be surprised to read:
26152 # /* config.h. Generated by config.status. */
26153 configure_input='Generated from '`
26154 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26156 if test x"$ac_file" != x-; then
26157 configure_input="$ac_file. $configure_input"
26158 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26159 $as_echo "$as_me: creating $ac_file" >&6;}
26161 # Neutralize special characters interpreted by sed in replacement strings.
26162 case $configure_input in #(
26163 *\&* | *\|* | *\\* )
26164 ac_sed_conf_input=`$as_echo "$configure_input" |
26165 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26166 *) ac_sed_conf_input=$configure_input;;
26170 *:-:* | *:-) cat >"$tmp/stdin" \
26171 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26176 ac_dir=`$as_dirname -- "$ac_file" ||
26177 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26178 X"$ac_file" : 'X\(//\)[^/]' \| \
26179 X"$ac_file" : 'X\(//\)$' \| \
26180 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26181 $as_echo X"$ac_file" |
26182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26186 /^X\(\/\/\)[^/].*/{
26199 as_dir="$ac_dir"; as_fn_mkdir_p
26203 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26205 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26206 # A ".." for each directory in $ac_dir_suffix.
26207 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26208 case $ac_top_builddir_sub in
26209 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26210 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26213 ac_abs_top_builddir=$ac_pwd
26214 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26215 # for backward compatibility:
26216 ac_top_builddir=$ac_top_build_prefix
26219 .) # We are building in place.
26221 ac_top_srcdir=$ac_top_builddir_sub
26222 ac_abs_top_srcdir=$ac_pwd ;;
26223 [\\/]* | ?:[\\/]* ) # Absolute name.
26224 ac_srcdir=$srcdir$ac_dir_suffix;
26225 ac_top_srcdir=$srcdir
26226 ac_abs_top_srcdir=$srcdir ;;
26227 *) # Relative name.
26228 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26229 ac_top_srcdir=$ac_top_build_prefix$srcdir
26230 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26232 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26244 # If the template does not know about datarootdir, expand it.
26245 # FIXME: This hack should be removed a few years after 2.60.
26246 ac_datarootdir_hack=; ac_datarootdir_seen=
26257 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26258 *datarootdir*) ac_datarootdir_seen=yes;;
26259 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26261 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26264 ac_datarootdir_hack='
26265 s&@datadir@&$datadir&g
26266 s&@docdir@&$docdir&g
26267 s&@infodir@&$infodir&g
26268 s&@localedir@&$localedir&g
26269 s&@mandir@&$mandir&g
26270 s&\\\${datarootdir}&$datarootdir&g' ;;
26274 # Neutralize VPATH when `$srcdir' = `.'.
26275 # Shell code in configure.ac might set extrasub.
26276 # FIXME: do we really want to maintain this feature?
26277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26278 ac_sed_extra="$ac_vpsub
26281 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26283 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26284 s|@configure_input@|$ac_sed_conf_input|;t t
26285 s&@top_builddir@&$ac_top_builddir_sub&;t t
26286 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26287 s&@srcdir@&$ac_srcdir&;t t
26288 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26289 s&@top_srcdir@&$ac_top_srcdir&;t t
26290 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26291 s&@builddir@&$ac_builddir&;t t
26292 s&@abs_builddir@&$ac_abs_builddir&;t t
26293 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26294 $ac_datarootdir_hack
26296 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
26297 if $ac_cs_awk_getline; then
26298 $AWK -f "$tmp/subs.awk"
26300 $AWK -f "$tmp/subs.awk" | $SHELL
26302 || as_fn_error "could not create $ac_file" "$LINENO" 5
26304 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26305 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26306 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26308 which seems to be undefined. Please make sure it is defined." >&5
26309 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26310 which seems to be undefined. Please make sure it is defined." >&2;}
26314 -) cat "$tmp/out" && rm -f "$tmp/out";;
26315 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26317 || as_fn_error "could not create $ac_file" "$LINENO" 5
26323 if test x"$ac_file" != x-; then
26325 $as_echo "/* $configure_input */" \
26326 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26327 } >"$tmp/config.h" \
26328 || as_fn_error "could not create $ac_file" "$LINENO" 5
26329 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26330 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26331 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26334 mv "$tmp/config.h" "$ac_file" \
26335 || as_fn_error "could not create $ac_file" "$LINENO" 5
26338 $as_echo "/* $configure_input */" \
26339 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26340 || as_fn_error "could not create -" "$LINENO" 5
26344 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26345 $as_echo "$as_me: executing $ac_file commands" >&6;}
26350 case $ac_file$ac_mode in
26351 "as":F) chmod +x as ;;
26352 "collect-ld":F) chmod +x collect-ld ;;
26353 "nm":F) chmod +x nm ;;
26355 case ${CONFIG_HEADERS} in
26356 *auto-host.h:config.in*)
26359 # Make sure all the subdirs exist.
26360 for d in $subdirs doc build
26362 test -d $d || mkdir $d
26372 ac_clean_files=$ac_clean_files_save
26374 test $ac_write_fail = 0 ||
26375 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
26378 # configure is writing to config.log, and then calls config.status.
26379 # config.status does its own redirection, appending to config.log.
26380 # Unfortunately, on DOS this fails, as config.log is still kept open
26381 # by configure, so config.status won't be able to write to it; its
26382 # output is simply discarded. So we exec the FD to /dev/null,
26383 # effectively closing config.log, so it can be properly (re)opened and
26384 # appended to by config.status. When coming back to configure, we
26385 # need to make the FD available again.
26386 if test "$no_create" != yes; then
26388 ac_config_status_args=
26389 test "$silent" = yes &&
26390 ac_config_status_args="$ac_config_status_args --quiet"
26392 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26394 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26395 # would make configure fail if this is the last instruction.
26396 $ac_cs_success || as_fn_exit $?
26398 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26400 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}