2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for newlib 1.16.0.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
53 # Support unset when possible.
54 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself
=$0 ;;
73 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir
=.
78 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x
; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var
in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C
; export $as_var
111 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
123 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me
=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x
; then
155 if (eval ":") 2>/dev
/null
; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev
/null
; then
221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
222 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir
=.
228 for as_base
in sh bash ksh sh5
; do
229 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
236 for as_shell
in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix
*) set -o posix
;;
258 CONFIG_SHELL
=$as_shell
260 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix
*) set -o posix
;;
286 as_func_ret_success
() {
289 as_func_ret_failure
() {
294 if as_func_success
; then
298 echo as_func_success failed.
301 if as_func_failure
; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success
; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure
; then
315 echo as_func_ret_failure succeeded.
318 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) ||
{ (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x
; then
343 for as_var
in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no
; then
352 echo This
script requires a shell
more modern than all the
353 echo shells that I found on your system. Please
install a
354 echo modern shell
, or manually run the
script under such a
355 echo shell
if you
do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") ||
{
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system
,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x
"$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
472 ECHO_C
= ECHO_N
= ECHO_T
=
476 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
483 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
490 rm -f conf$$ conf$$.exe conf$$.
file
491 if test -d conf$$.dir
; then
492 rm -f conf$$.dir
/conf$$.
file
498 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
506 elif ln conf$$.
file conf$$
2>/dev
/null
; then
511 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
512 rmdir conf$$.dir
2>/dev
/null
514 if mkdir
-p .
2>/dev
/null
; then
517 test -d .
/-p && rmdir .
/-p
521 if test -x / >/dev
/null
2>&1; then
524 if ls -dL / >/dev
/null
2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p
=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL
=${CONFIG_SHELL-/bin/sh}
558 # Remove one level of quotation (which was required for Make).
559 ECHO
=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
564 if test "X$1" = X--no-reexec
; then
565 # Discard the --no-reexec flag, and continue.
567 elif test "X$1" = X--fallback-echo
; then
568 # Avoid inline document here, it may be left over
570 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $ECHO works!
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 if test "X$1" = X--fallback-echo
; then
579 # used as fallback echo
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
589 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
591 if test -z "$lt_ECHO"; then
592 if test "X${echo_test_string+set}" != Xset
; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if { echo_test_string
=`eval $cmd`; } 2>/dev
/null
&&
597 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev
/null
604 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
605 echo_testing_string
=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
606 test "X$echo_testing_string" = "X$echo_test_string"; then
609 # The Solaris, AIX, and Digital Unix default echo programs unquote
610 # backslashes. This makes it impossible to quote backslashes using
611 # echo "$something" | sed 's/\\/\\\\/g'
613 # So, first we look for a working echo in the user's PATH.
615 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
616 for dir
in $PATH /usr
/ucb
; do
618 if (test -f $dir/echo ||
test -f $dir/echo$ac_exeext) &&
619 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621 test "X$echo_testing_string" = "X$echo_test_string"; then
628 if test "X$ECHO" = Xecho
; then
629 # We didn't find a better echo, so look for alternatives.
630 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
631 echo_testing_string
=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 # This shell has a builtin print -r that does the trick.
635 elif { test -f /bin
/ksh ||
test -f /bin
/ksh
$ac_exeext; } &&
636 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
637 # If we have ksh, try running configure again with it.
638 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
639 export ORIGINAL_CONFIG_SHELL
640 CONFIG_SHELL
=/bin
/ksh
642 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
647 echo_testing_string
=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
648 test "X$echo_testing_string" = "X$echo_test_string"; then
651 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652 test "X$echo_testing_string" = 'X\t' &&
653 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
657 SHELL
="$CONFIG_SHELL"
659 ECHO
="$CONFIG_SHELL $0 --fallback-echo"
660 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661 test "X$echo_testing_string" = 'X\t' &&
662 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663 test "X$echo_testing_string" = "X$echo_test_string"; then
664 ECHO
="$CONFIG_SHELL $0 --fallback-echo"
666 # maybe with a smaller string...
669 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev
/null
677 if test "$prev" != 'sed 50q "$0"'; then
678 echo_test_string
=`eval $prev`
679 export echo_test_string
680 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682 # Oops. We lost completely, so just stick with echo.
691 # Copy echo and quote the copy suitably for passing to libtool from
692 # the Makefile, instead of quoting the original, which is used later.
694 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695 lt_ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
701 exec 7<&0 </dev
/null
6>&1
704 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
705 # so uname gets run too.
706 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
711 ac_default_prefix
=/usr
/local
713 ac_config_libobj_dir
=.
719 SHELL
=${CONFIG_SHELL-/bin/sh}
721 # Identity of this package.
722 PACKAGE_NAME
='newlib'
723 PACKAGE_TARNAME
='newlib'
724 PACKAGE_VERSION
='1.16.0'
725 PACKAGE_STRING
='newlib 1.16.0'
728 ac_unique_file
="libc"
729 # Factoring default headers for most tests.
730 ac_includes_default
="\
732 #ifdef HAVE_SYS_TYPES_H
733 # include <sys/types.h>
735 #ifdef HAVE_SYS_STAT_H
736 # include <sys/stat.h>
742 # ifdef HAVE_STDLIB_H
747 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
752 #ifdef HAVE_STRINGS_H
753 # include <strings.h>
755 #ifdef HAVE_INTTYPES_H
756 # include <inttypes.h>
774 program_transform_name
802 MAY_SUPPLY_SYSCALLS_TRUE
803 MAY_SUPPLY_SYSCALLS_FALSE
826 INSTALL_STRIP_PROGRAM
849 MAINTAINER_MODE_FALSE
903 LIBM_MACHINE_OBJECTLIST
913 libc_cv_initfinit_array
914 libc_cv_array_aliasing
918 ac_precious_vars
='build_alias
934 # Initialize some variables set by options.
936 ac_init_version
=false
937 # The variables have the same names as the options, with
938 # dashes changed to underlines.
946 program_transform_name
=s
,x
,x
,
954 # Installation directory options.
955 # These are left unexpanded so users can "make install exec_prefix=/foo"
956 # and all the variables that are supposed to be based on exec_prefix
957 # by default will actually change.
958 # Use braces instead of parens because sh, perl, etc. also accept them.
959 # (The list follows the same order as the GNU Coding Standards.)
960 bindir
='${exec_prefix}/bin'
961 sbindir
='${exec_prefix}/sbin'
962 libexecdir
='${exec_prefix}/libexec'
963 datarootdir
='${prefix}/share'
964 datadir
='${datarootdir}'
965 sysconfdir
='${prefix}/etc'
966 sharedstatedir
='${prefix}/com'
967 localstatedir
='${prefix}/var'
968 includedir
='${prefix}/include'
969 oldincludedir
='/usr/include'
970 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
971 infodir
='${datarootdir}/info'
976 libdir
='${exec_prefix}/lib'
977 localedir
='${datarootdir}/locale'
978 mandir
='${datarootdir}/man'
984 # If the previous option needs an argument, assign it.
985 if test -n "$ac_prev"; then
986 eval $ac_prev=\
$ac_option
992 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
996 # Accept the important Cygnus configure options, so we can diagnose typos.
998 case $ac_dashdash$ac_option in
1002 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1004 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1005 bindir
=$ac_optarg ;;
1007 -build |
--build |
--buil |
--bui |
--bu)
1008 ac_prev
=build_alias
;;
1009 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1010 build_alias
=$ac_optarg ;;
1012 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1013 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1014 ac_prev
=cache_file
;;
1015 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1016 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1017 cache_file
=$ac_optarg ;;
1019 --config-cache |
-C)
1020 cache_file
=config.cache
;;
1022 -datadir |
--datadir |
--datadi |
--datad)
1024 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1025 datadir
=$ac_optarg ;;
1027 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1028 |
--dataroo |
--dataro |
--datar)
1029 ac_prev
=datarootdir
;;
1030 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1031 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1032 datarootdir
=$ac_optarg ;;
1034 -disable-* |
--disable-*)
1035 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1036 # Reject names that are not valid shell variable names.
1037 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1038 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1039 { (exit 1); exit 1; }; }
1040 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1041 eval enable_
$ac_feature=no
;;
1043 -docdir |
--docdir |
--docdi |
--doc |
--do)
1045 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1046 docdir
=$ac_optarg ;;
1048 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1050 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1051 dvidir
=$ac_optarg ;;
1053 -enable-* |
--enable-*)
1054 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1057 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1058 { (exit 1); exit 1; }; }
1059 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1060 eval enable_
$ac_feature=\
$ac_optarg ;;
1062 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1063 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1064 |
--exec |
--exe |
--ex)
1065 ac_prev
=exec_prefix
;;
1066 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1067 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1068 |
--exec=* |
--exe=* |
--ex=*)
1069 exec_prefix
=$ac_optarg ;;
1071 -gas |
--gas |
--ga |
--g)
1072 # Obsolete; use --with-gas.
1075 -help |
--help |
--hel |
--he |
-h)
1076 ac_init_help
=long
;;
1077 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1078 ac_init_help
=recursive
;;
1079 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1080 ac_init_help
=short
;;
1082 -host |
--host |
--hos |
--ho)
1083 ac_prev
=host_alias
;;
1084 -host=* |
--host=* |
--hos=* |
--ho=*)
1085 host_alias
=$ac_optarg ;;
1087 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1089 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1091 htmldir
=$ac_optarg ;;
1093 -includedir |
--includedir |
--includedi |
--included |
--include \
1094 |
--includ |
--inclu |
--incl |
--inc)
1095 ac_prev
=includedir
;;
1096 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1097 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1098 includedir
=$ac_optarg ;;
1100 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1102 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1103 infodir
=$ac_optarg ;;
1105 -libdir |
--libdir |
--libdi |
--libd)
1107 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1108 libdir
=$ac_optarg ;;
1110 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1111 |
--libexe |
--libex |
--libe)
1112 ac_prev
=libexecdir
;;
1113 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1114 |
--libexe=* |
--libex=* |
--libe=*)
1115 libexecdir
=$ac_optarg ;;
1117 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1118 ac_prev
=localedir
;;
1119 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1120 localedir
=$ac_optarg ;;
1122 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1123 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1124 ac_prev
=localstatedir
;;
1125 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1126 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1127 localstatedir
=$ac_optarg ;;
1129 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1131 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1132 mandir
=$ac_optarg ;;
1134 -nfp |
--nfp |
--nf)
1135 # Obsolete; use --without-fp.
1138 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1139 |
--no-cr |
--no-c |
-n)
1142 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1143 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1146 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1147 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1148 |
--oldin |
--oldi |
--old |
--ol |
--o)
1149 ac_prev
=oldincludedir
;;
1150 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1151 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1152 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1153 oldincludedir
=$ac_optarg ;;
1155 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1157 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1158 prefix
=$ac_optarg ;;
1160 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1161 |
--program-pre |
--program-pr |
--program-p)
1162 ac_prev
=program_prefix
;;
1163 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1164 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1165 program_prefix
=$ac_optarg ;;
1167 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1168 |
--program-suf |
--program-su |
--program-s)
1169 ac_prev
=program_suffix
;;
1170 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1171 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1172 program_suffix
=$ac_optarg ;;
1174 -program-transform-name |
--program-transform-name \
1175 |
--program-transform-nam |
--program-transform-na \
1176 |
--program-transform-n |
--program-transform- \
1177 |
--program-transform |
--program-transfor \
1178 |
--program-transfo |
--program-transf \
1179 |
--program-trans |
--program-tran \
1180 |
--progr-tra |
--program-tr |
--program-t)
1181 ac_prev
=program_transform_name
;;
1182 -program-transform-name=* |
--program-transform-name=* \
1183 |
--program-transform-nam=* |
--program-transform-na=* \
1184 |
--program-transform-n=* |
--program-transform-=* \
1185 |
--program-transform=* |
--program-transfor=* \
1186 |
--program-transfo=* |
--program-transf=* \
1187 |
--program-trans=* |
--program-tran=* \
1188 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1189 program_transform_name
=$ac_optarg ;;
1191 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1193 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1194 pdfdir
=$ac_optarg ;;
1196 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1198 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1201 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1202 |
-silent |
--silent |
--silen |
--sile |
--sil)
1205 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1207 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1209 sbindir
=$ac_optarg ;;
1211 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1212 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1213 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1215 ac_prev
=sharedstatedir
;;
1216 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1217 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1218 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1220 sharedstatedir
=$ac_optarg ;;
1222 -site |
--site |
--sit)
1224 -site=* |
--site=* |
--sit=*)
1227 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1229 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1230 srcdir
=$ac_optarg ;;
1232 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1233 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1234 ac_prev
=sysconfdir
;;
1235 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1236 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1237 sysconfdir
=$ac_optarg ;;
1239 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1240 ac_prev
=target_alias
;;
1241 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1242 target_alias
=$ac_optarg ;;
1244 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1247 -version |
--version |
--versio |
--versi |
--vers |
-V)
1248 ac_init_version
=: ;;
1251 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1252 # Reject names that are not valid shell variable names.
1253 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1254 { echo "$as_me: error: invalid package name: $ac_package" >&2
1255 { (exit 1); exit 1; }; }
1256 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1257 eval with_
$ac_package=\
$ac_optarg ;;
1259 -without-* |
--without-*)
1260 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1261 # Reject names that are not valid shell variable names.
1262 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1263 { echo "$as_me: error: invalid package name: $ac_package" >&2
1264 { (exit 1); exit 1; }; }
1265 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1266 eval with_
$ac_package=no
;;
1269 # Obsolete; use --with-x.
1272 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1273 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1274 ac_prev
=x_includes
;;
1275 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1276 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1277 x_includes
=$ac_optarg ;;
1279 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1280 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1281 ac_prev
=x_libraries
;;
1282 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1283 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1284 x_libraries
=$ac_optarg ;;
1286 -*) { echo "$as_me: error: unrecognized option: $ac_option
1287 Try \`$0 --help' for more information." >&2
1288 { (exit 1); exit 1; }; }
1292 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1293 # Reject names that are not valid shell variable names.
1294 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1295 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1296 { (exit 1); exit 1; }; }
1297 eval $ac_envvar=\
$ac_optarg
1298 export $ac_envvar ;;
1301 # FIXME: should be removed in autoconf 3.0.
1302 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1303 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1304 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1305 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1311 if test -n "$ac_prev"; then
1312 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1313 { echo "$as_me: error: missing argument to $ac_option" >&2
1314 { (exit 1); exit 1; }; }
1317 # Be sure to have absolute directory names.
1318 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1319 datadir sysconfdir sharedstatedir localstatedir includedir \
1320 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1321 libdir localedir mandir
1323 eval ac_val
=\$
$ac_var
1325 [\\/$
]* | ?
:[\\/]* ) continue;;
1326 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1328 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1329 { (exit 1); exit 1; }; }
1332 # There might be people who depend on the old broken behavior: `$host'
1333 # used to hold the argument of --host etc.
1334 # FIXME: To remove some day.
1337 target
=$target_alias
1339 # FIXME: To remove some day.
1340 if test "x$host_alias" != x
; then
1341 if test "x$build_alias" = x
; then
1342 cross_compiling
=maybe
1343 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1344 If a cross compiler is detected then cross compile mode will be used." >&2
1345 elif test "x$build_alias" != "x$host_alias"; then
1351 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1353 test "$silent" = yes && exec 6>/dev
/null
1356 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1357 ac_ls_di
=`ls -di .` &&
1358 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1359 { echo "$as_me: error: Working directory cannot be determined" >&2
1360 { (exit 1); exit 1; }; }
1361 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1362 { echo "$as_me: error: pwd does not report name of working directory" >&2
1363 { (exit 1); exit 1; }; }
1366 # Find the source files, if location was not specified.
1367 if test -z "$srcdir"; then
1368 ac_srcdir_defaulted
=yes
1369 # Try the directory containing this script, then the parent directory.
1370 ac_confdir
=`$as_dirname -- "$0" ||
1371 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1372 X"$0" : 'X\(//\)[^/]' \| \
1373 X"$0" : 'X\(//\)$' \| \
1374 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1394 if test ! -r "$srcdir/$ac_unique_file"; then
1398 ac_srcdir_defaulted
=no
1400 if test ! -r "$srcdir/$ac_unique_file"; then
1401 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1402 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1403 { (exit 1); exit 1; }; }
1405 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1407 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1408 { (exit 1); exit 1; }; }
1410 # When building in place, set srcdir=.
1411 if test "$ac_abs_confdir" = "$ac_pwd"; then
1414 # Remove unnecessary trailing slashes from srcdir.
1415 # Double slashes in file names in object file debugging info
1416 # mess up M-x gdb in Emacs.
1418 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1420 for ac_var
in $ac_precious_vars; do
1421 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1422 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1423 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1424 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1428 # Report the --help message.
1430 if test "$ac_init_help" = "long"; then
1431 # Omit some internal or obsolete options to make the list less imposing.
1432 # This message is too long to be a string in the A/UX 3.1 sh.
1434 \`configure' configures newlib 1.16.0 to adapt to many kinds of systems.
1436 Usage: $0 [OPTION]... [VAR=VALUE]...
1438 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1439 VAR=VALUE. See below for descriptions of some of the useful variables.
1441 Defaults for the options are specified in brackets.
1444 -h, --help display this help and exit
1445 --help=short display options specific to this package
1446 --help=recursive display the short help of all the included packages
1447 -V, --version display version information and exit
1448 -q, --quiet, --silent do not print \`checking...' messages
1449 --cache-file=FILE cache test results in FILE [disabled]
1450 -C, --config-cache alias for \`--cache-file=config.cache'
1451 -n, --no-create do not create output files
1452 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1454 Installation directories:
1455 --prefix=PREFIX install architecture-independent files in PREFIX
1456 [$ac_default_prefix]
1457 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1460 By default, \`make install' will install all the files in
1461 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1462 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1463 for instance \`--prefix=\$HOME'.
1465 For better control, use the options below.
1467 Fine tuning of the installation directories:
1468 --bindir=DIR user executables [EPREFIX/bin]
1469 --sbindir=DIR system admin executables [EPREFIX/sbin]
1470 --libexecdir=DIR program executables [EPREFIX/libexec]
1471 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1472 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1473 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1474 --libdir=DIR object code libraries [EPREFIX/lib]
1475 --includedir=DIR C header files [PREFIX/include]
1476 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1477 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1478 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1479 --infodir=DIR info documentation [DATAROOTDIR/info]
1480 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1481 --mandir=DIR man documentation [DATAROOTDIR/man]
1482 --docdir=DIR documentation root [DATAROOTDIR/doc/newlib]
1483 --htmldir=DIR html documentation [DOCDIR]
1484 --dvidir=DIR dvi documentation [DOCDIR]
1485 --pdfdir=DIR pdf documentation [DOCDIR]
1486 --psdir=DIR ps documentation [DOCDIR]
1492 --program-prefix=PREFIX prepend PREFIX to installed program names
1493 --program-suffix=SUFFIX append SUFFIX to installed program names
1494 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1497 --build=BUILD configure
for building on BUILD
[guessed
]
1498 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1502 if test -n "$ac_init_help"; then
1503 case $ac_init_help in
1504 short | recursive
) echo "Configuration of newlib 1.16.0:";;
1509 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1510 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1511 --enable-newlib-io-pos-args enable printf-family positional arg support
1512 --enable-newlib-io-c99-formats enable C99 support
in IO functions like printf
/scanf
1513 --enable-newlib-io-long-long enable long long
type support
in IO functions like printf
/scanf
1514 --enable-newlib-io-long-double enable long double
type support
in IO functions printf
/scanf
1515 --enable-newlib-mb enable multibyte support
1516 --enable-newlib-iconv-encodings enable specific comma-separated list of bidirectional
iconv encodings to be built-in
1517 --enable-newlib-iconv-from-encodings enable specific comma-separated list of
\"from
\" iconv encodings to be built-in
1518 --enable-newlib-iconv-to-encodings enable specific comma-separated list of
\"to
\" iconv encodings to be built-in
1519 --enable-newlib-iconv-external-ccs enable capabilities to load external CCS files
for iconv
1520 --disable-newlib-atexit-alloc disable dynamic allocation of atexit entries
1521 --enable-newlib-reent-small enable small reentrant struct support
1522 --enable-multilib build many library versions
(default
)
1523 --enable-target-optspace optimize
for space
1524 --enable-malloc-debugging indicate malloc debugging requested
1525 --enable-newlib-multithread enable support
for multiple threads
1526 --enable-newlib-iconv enable iconv library support
1527 --enable-newlib-elix-level supply desired elix library level
(1-4)
1528 --disable-newlib-io-float disable printf
/scanf family float support
1529 --disable-newlib-supplied-syscalls disable newlib from supplying syscalls
1530 --disable-dependency-tracking speeds up one-time build
1531 --enable-dependency-tracking do not reject slow dependency extractors
1532 --enable-maintainer-mode enable make rules and dependencies not useful
1533 (and sometimes confusing
) to the casual installer
1534 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1535 --enable-static[=PKGS
] build static libraries
[default
=yes]
1536 --enable-fast-install[=PKGS
]
1537 optimize
for fast installation
[default
=yes]
1538 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1539 --enable-newlib-hw-fp Turn on hardware floating point math
1542 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1543 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1544 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1546 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1548 Some influential environment variables
:
1549 CCAS assembler compiler
command (defaults to CC
)
1550 CCASFLAGS assembler compiler flags
(defaults to CFLAGS
)
1551 CC C compiler
command
1552 CFLAGS C compiler flags
1553 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1554 nonstandard directory
<lib dir
>
1555 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1556 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1557 you have headers
in a nonstandard directory
<include dir
>
1560 Use these variables to override the choices made by
`configure' or to help
1561 it to find libraries and programs with nonstandard names/locations.
1567 if test "$ac_init_help" = "recursive"; then
1568 # If there are subdirs, report their specific --help.
1569 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1570 test -d "$ac_dir" || continue
1574 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1576 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1577 # A ".." for each directory in $ac_dir_suffix.
1578 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1579 case $ac_top_builddir_sub in
1580 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1581 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1584 ac_abs_top_builddir=$ac_pwd
1585 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1586 # for backward compatibility:
1587 ac_top_builddir=$ac_top_build_prefix
1590 .) # We are building in place.
1592 ac_top_srcdir=$ac_top_builddir_sub
1593 ac_abs_top_srcdir=$ac_pwd ;;
1594 [\\/]* | ?:[\\/]* ) # Absolute name.
1595 ac_srcdir=$srcdir$ac_dir_suffix;
1596 ac_top_srcdir=$srcdir
1597 ac_abs_top_srcdir=$srcdir ;;
1599 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1600 ac_top_srcdir=$ac_top_build_prefix$srcdir
1601 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1603 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1605 cd "$ac_dir" || { ac_status=$?; continue; }
1606 # Check for guested configure.
1607 if test -f "$ac_srcdir/configure.gnu"; then
1609 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1610 elif test -f "$ac_srcdir/configure"; then
1612 $SHELL "$ac_srcdir/configure" --help=recursive
1614 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1616 cd "$ac_pwd" || { ac_status=$?; break; }
1620 test -n "$ac_init_help" && exit $ac_status
1621 if $ac_init_version; then
1623 newlib configure 1.16.0
1624 generated by GNU Autoconf 2.61
1626 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1627 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1628 This configure script is free software; the Free Software Foundation
1629 gives unlimited permission to copy, distribute and modify it.
1633 cat >config.log <<_ACEOF
1634 This file contains any messages produced by compilers while
1635 running configure, to aid debugging if configure makes a mistake.
1637 It was created by newlib $as_me 1.16.0, which was
1638 generated by GNU Autoconf 2.61. Invocation command line was
1650 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1651 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1652 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1653 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1654 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1656 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1657 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1659 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1660 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1661 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1662 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1663 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1664 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1665 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1673 test -z "$as_dir" && as_dir=.
1674 echo "PATH: $as_dir"
1690 # Keep a trace of the command line.
1691 # Strip out --no-create and --no-recursion so they do not pile up.
1692 # Strip out --silent because we don't want to record it for future runs.
1693 # Also quote any args containing shell meta-characters.
1694 # Make two passes to allow for proper duplicate-argument suppression.
1698 ac_must_keep_next=false
1704 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1705 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1706 | -silent | --silent | --silen | --sile | --sil)
1709 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1712 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1714 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1715 if test $ac_must_keep_next = true; then
1716 ac_must_keep_next=false # Got value, back to normal.
1719 *=* | --config-cache | -C | -disable-* | --disable-* \
1720 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1721 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1722 | -with-* | --with-* | -without-* | --without-* | --x)
1723 case "$ac_configure_args0 " in
1724 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1727 -* ) ac_must_keep_next=true ;;
1730 ac_configure_args="$ac_configure_args '$ac_arg'"
1735 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1736 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1738 # When interrupted or exit'd, cleanup temporary files, and complete
1739 # config.log. We remove comments because anyway the quotes in there
1740 # would cause problems or look ugly.
1741 # WARNING: Use '\'' to represent an apostrophe within the trap.
1742 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1743 trap 'exit_status=$?
1744 # Save into config.log some information that might help in debugging.
1749 ## ---------------- ##
1750 ## Cache variables. ##
1751 ## ---------------- ##
1754 # The following way of writing the cache mishandles newlines in values,
1756 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1757 eval ac_val=\$$ac_var
1761 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1762 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1765 _ | IFS | as_nl) ;; #(
1766 *) $as_unset $ac_var ;;
1771 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1772 *${as_nl}ac_space=\ *)
1774 "s/'\''/'\''\\\\'\'''\''/g;
1775 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1778 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1786 ## ----------------- ##
1787 ## Output variables. ##
1788 ## ----------------- ##
1791 for ac_var in $ac_subst_vars
1793 eval ac_val=\$$ac_var
1795 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1797 echo "$ac_var='\''$ac_val'\''"
1801 if test -n "$ac_subst_files"; then
1803 ## ------------------- ##
1804 ## File substitutions. ##
1805 ## ------------------- ##
1808 for ac_var in $ac_subst_files
1810 eval ac_val=\$$ac_var
1812 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1814 echo "$ac_var='\''$ac_val'\''"
1819 if test -s confdefs.h; then
1829 test "$ac_signal" != 0 &&
1830 echo "$as_me: caught signal $ac_signal"
1831 echo "$as_me: exit $exit_status"
1833 rm -f core *.core core.conftest.* &&
1834 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1837 for ac_signal in 1 2 13 15; do
1838 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1842 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1843 rm -f -r conftest* confdefs.h
1845 # Predefined preprocessor variables.
1847 cat >>confdefs.h <<_ACEOF
1848 #define PACKAGE_NAME "$PACKAGE_NAME"
1852 cat >>confdefs.h <<_ACEOF
1853 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1862 cat >>confdefs.h <<_ACEOF
1863 #define PACKAGE_STRING "$PACKAGE_STRING"
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1872 # Let the site file select an alternate cache file if it wants to.
1873 # Prefer explicitly selected file to automatically selected ones.
1874 if test -n "$CONFIG_SITE"; then
1875 set x "$CONFIG_SITE"
1876 elif test "x$prefix" != xNONE; then
1877 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1879 set x "$ac_default_prefix/share/config.site" \
1880 "$ac_default_prefix/etc/config.site"
1885 if test -r "$ac_site_file"; then
1886 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1887 echo "$as_me: loading site script $ac_site_file" >&6;}
1888 sed 's/^/| /' "$ac_site_file" >&5
1893 if test -r "$cache_file"; then
1894 # Some versions of bash will fail to source /dev/null (special
1895 # files actually), so we avoid doing that.
1896 if test -f "$cache_file"; then
1897 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1898 echo "$as_me: loading cache $cache_file" >&6;}
1900 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1901 *) . "./$cache_file";;
1905 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1906 echo "$as_me: creating cache $cache_file" >&6;}
1910 # Check that the precious variables saved in the cache have kept the same
1912 ac_cache_corrupted=false
1913 for ac_var in $ac_precious_vars; do
1914 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1915 eval ac_new_set=\$ac_env_${ac_var}_set
1916 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1917 eval ac_new_val=\$ac_env_${ac_var}_value
1918 case $ac_old_set,$ac_new_set in
1920 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1921 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1922 ac_cache_corrupted=: ;;
1924 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1925 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1926 ac_cache_corrupted=: ;;
1929 if test "x$ac_old_val" != "x$ac_new_val"; then
1930 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1931 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1932 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1933 echo "$as_me: former value
: $ac_old_val" >&2;}
1934 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1935 echo "$as_me: current value
: $ac_new_val" >&2;}
1936 ac_cache_corrupted=:
1939 # Pass precious variables to config.status.
1940 if test "$ac_new_set" = set; then
1942 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1943 *) ac_arg=$ac_var=$ac_new_val ;;
1945 case " $ac_configure_args " in
1946 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1947 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1951 if $ac_cache_corrupted; then
1952 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1953 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1954 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1955 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1956 { (exit 1); exit 1; }; }
1984 ac_cpp='$CPP $CPPFLAGS'
1985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1991 ac_config_headers="$ac_config_headers newlib.h:newlib.hin"
1995 for ac_dir in .. "$srcdir"/..; do
1996 if test -f "$ac_dir/install-sh"; then
1998 ac_install_sh="$ac_aux_dir/install-sh -c"
2000 elif test -f "$ac_dir/install.sh"; then
2002 ac_install_sh="$ac_aux_dir/install.sh -c"
2004 elif test -f "$ac_dir/shtool"; then
2006 ac_install_sh="$ac_aux_dir/shtool install -c"
2010 if test -z "$ac_aux_dir"; then
2011 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. \"$srcdir\"/.." >&5
2012 echo "$as_me: error: cannot find install-sh or install.sh in .. \"$srcdir\"/.." >&2;}
2013 { (exit 1); exit 1; }; }
2016 # These three variables are undocumented and unsupported,
2017 # and are intended to be withdrawn in a future Autoconf release.
2018 # They can cause serious problems if a builder's source tree is in a directory
2019 # whose full name contains unusual characters.
2020 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2021 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2022 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2026 # Check whether --enable-newlib-io-pos-args was given.
2027 if test "${enable_newlib_io_pos_args+set}" = set; then
2028 enableval=$enable_newlib_io_pos_args; case "${enableval}" in
2029 yes) newlib_io_pos_args=yes ;;
2030 no) newlib_io_pos_args=no ;;
2031 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-pos-args option" >&5
2032 echo "$as_me: error: bad value ${enableval} for newlib-io-pos-args option" >&2;}
2033 { (exit 1); exit 1; }; } ;;
2039 # Check whether --enable-newlib-io-c99-formats was given.
2040 if test "${enable_newlib_io_c99_formats+set}" = set; then
2041 enableval=$enable_newlib_io_c99_formats; case "${enableval}" in
2042 yes) newlib_io_c99_formats=yes;;
2043 no) newlib_io_c99_formats=no ;;
2044 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-c99-formats option" >&5
2045 echo "$as_me: error: bad value ${enableval} for newlib-io-c99-formats option" >&2;}
2046 { (exit 1); exit 1; }; } ;;
2049 newlib_io_c99_formats=
2052 # Check whether --enable-newlib-io-long-long was given.
2053 if test "${enable_newlib_io_long_long+set}" = set; then
2054 enableval=$enable_newlib_io_long_long; case "${enableval}" in
2055 yes) newlib_io_long_long=yes;;
2056 no) newlib_io_long_long=no ;;
2057 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-long-long option" >&5
2058 echo "$as_me: error: bad value ${enableval} for newlib-io-long-long option" >&2;}
2059 { (exit 1); exit 1; }; } ;;
2062 newlib_io_long_long=
2065 # Check whether --enable-newlib-io-long-double was given.
2066 if test "${enable_newlib_io_long_double+set}" = set; then
2067 enableval=$enable_newlib_io_long_double; case "${enableval}" in
2068 yes) newlib_io_long_double=yes;;
2069 no) newlib_io_long_double=no ;;
2070 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-long-double option" >&5
2071 echo "$as_me: error: bad value ${enableval} for newlib-io-long-double option" >&2;}
2072 { (exit 1); exit 1; }; } ;;
2075 newlib_io_long_double=
2078 # Check whether --enable-newlib-mb was given.
2079 if test "${enable_newlib_mb+set}" = set; then
2080 enableval=$enable_newlib_mb; case "${enableval}" in
2081 yes) newlib_mb=yes;;
2083 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-mb option" >&5
2084 echo "$as_me: error: bad value ${enableval} for newlib-mb option" >&2;}
2085 { (exit 1); exit 1; }; } ;;
2091 # Check whether --enable-newlib-iconv-encodings was given.
2092 if test "${enable_newlib_iconv_encodings+set}" = set; then
2093 enableval=$enable_newlib_iconv_encodings; if test x${enableval} = x; then
2094 { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv-encodings option - use comma-separated encodings list" >&5
2095 echo "$as_me: error: bad value ${enableval} for newlib-iconv-encodings option - use comma-separated encodings list" >&2;}
2096 { (exit 1); exit 1; }; }
2098 iconv_encodings=${enableval}
2104 # Check whether --enable-newlib-iconv-from-encodings was given.
2105 if test "${enable_newlib_iconv_from_encodings+set}" = set; then
2106 enableval=$enable_newlib_iconv_from_encodings; if test x${enableval} = x; then
2107 { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv-from-encodings option - use comma-separated encodings list" >&5
2108 echo "$as_me: error: bad value ${enableval} for newlib-iconv-from-encodings option - use comma-separated encodings list" >&2;}
2109 { (exit 1); exit 1; }; }
2111 iconv_from_encodings=${enableval}
2114 iconv_from_encodings=
2117 # Check whether --enable-newlib-iconv-to-encodings was given.
2118 if test "${enable_newlib_iconv_to_encodings+set}" = set; then
2119 enableval=$enable_newlib_iconv_to_encodings; if test x${enableval} = x; then
2120 { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv-to-encodings option - use comma-separated encodings list" >&5
2121 echo "$as_me: error: bad value ${enableval} for newlib-iconv-to-encodings option - use comma-separated encodings list" >&2;}
2122 { (exit 1); exit 1; }; }
2124 iconv_to_encodings=${enableval}
2130 # Check whether --enable-newlib-iconv-external-ccs was given.
2131 if test "${enable_newlib_iconv_external_ccs+set}" = set; then
2132 enableval=$enable_newlib_iconv_external_ccs; if test "${newlib_iconv_external_ccs+set}" != set; then
2133 case "${enableval}" in
2134 yes) newlib_iconv_external_ccs=yes ;;
2135 no) newlib_iconv_external_ccs=no ;;
2136 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv-external-ccs option" >&5
2137 echo "$as_me: error: bad value ${enableval} for newlib-iconv-external-ccs option" >&2;}
2138 { (exit 1); exit 1; }; } ;;
2142 newlib_iconv_external_ccs=${newlib_iconv_external_ccs}
2145 # Check whether --enable-newlib-atexit-dynamic-alloc was given.
2146 if test "${enable_newlib_atexit_dynamic_alloc+set}" = set; then
2147 enableval=$enable_newlib_atexit_dynamic_alloc; if test "${newlib_atexit_dynamic_alloc+set}" != set; then
2148 case "${enableval}" in
2149 yes) newlib_atexit_dynamic_alloc=yes ;;
2150 no) newlib_atexit_dynamic_alloc=no ;;
2151 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-atexit-dynamic-alloc option" >&5
2152 echo "$as_me: error: bad value ${enableval} for newlib-atexit-dynamic-alloc option" >&2;}
2153 { (exit 1); exit 1; }; } ;;
2157 newlib_atexit_dynamic_alloc=${newlib_atexit_dynamic_alloc}
2160 # Check whether --enable-newlib-reent-small was given.
2161 if test "${enable_newlib_reent_small+set}" = set; then
2162 enableval=$enable_newlib_reent_small; case "${enableval}" in
2163 yes) newlib_reent_small=yes;;
2164 no) newlib_reent_small=no ;;
2165 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-reent-small option" >&5
2166 echo "$as_me: error: bad value ${enableval} for newlib-reent-small option" >&2;}
2167 { (exit 1); exit 1; }; } ;;
2174 # Make sure we can run config.sub.
2175 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2176 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2177 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2178 { (exit 1); exit 1; }; }
2180 { echo "$as_me:$LINENO: checking build system type" >&5
2181 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2182 if test "${ac_cv_build+set}" = set; then
2183 echo $ECHO_N "(cached) $ECHO_C" >&6
2185 ac_build_alias=$build_alias
2186 test "x$ac_build_alias" = x &&
2187 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2188 test "x$ac_build_alias" = x &&
2189 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2190 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2191 { (exit 1); exit 1; }; }
2192 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2193 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2194 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2195 { (exit 1); exit 1; }; }
2198 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2199 echo "${ECHO_T}$ac_cv_build" >&6; }
2200 case $ac_cv_build in
2202 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2203 echo "$as_me: error: invalid value of canonical build" >&2;}
2204 { (exit 1); exit 1; }; };;
2207 ac_save_IFS=$IFS; IFS='-'
2213 # Remember, the first character of IFS is used to create $*,
2214 # except with old shells:
2217 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2220 am__api_version="1.9"
2221 # Find a good install program. We prefer a C program (faster),
2222 # so one script is as good as another. But avoid the broken or
2223 # incompatible versions:
2224 # SysV /etc/install, /usr/sbin/install
2225 # SunOS /usr/etc/install
2226 # IRIX /sbin/install
2228 # AmigaOS /C/install, which installs bootblocks on floppy discs
2229 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2230 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2231 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2232 # OS/2's system install, which has a completely different semantic
2233 # ./install, which can be erroneously created by make from ./install.sh.
2234 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2235 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2236 if test -z "$INSTALL"; then
2237 if test "${ac_cv_path_install+set}" = set; then
2238 echo $ECHO_N "(cached) $ECHO_C" >&6
2240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2244 test -z "$as_dir" && as_dir=.
2245 # Account for people who put trailing slashes in PATH elements.
2247 ./ | .// | /cC/* | \
2248 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2249 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2252 # OSF1 and SCO ODT 3.0 have their own names for install.
2253 # Don't use installbsd from OSF since it installs stuff as root
2255 for ac_prog in ginstall scoinst install; do
2256 for ac_exec_ext in '' $ac_executable_extensions; do
2257 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2258 if test $ac_prog = install &&
2259 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2260 # AIX install. It has an incompatible calling convention.
2262 elif test $ac_prog = install &&
2263 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2264 # program-specific install script used by HP pwplus--don't use.
2267 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2280 if test "${ac_cv_path_install+set}" = set; then
2281 INSTALL=$ac_cv_path_install
2283 # As a last resort, use the slow shell script. Don't cache a
2284 # value for INSTALL within a source directory, because that will
2285 # break other packages using the cache if that directory is
2286 # removed, or if the value is a relative name.
2287 INSTALL=$ac_install_sh
2290 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2291 echo "${ECHO_T}$INSTALL" >&6; }
2293 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2294 # It thinks the first close brace ends the variable substitution.
2295 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2297 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2299 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2301 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2302 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2305 echo timestamp > conftest.file
2306 # Do `set' in a subshell so we don't clobber the current shell
's
2307 # arguments. Must try -L first in case configure is actually a
2308 # symlink; some systems play weird games with the mod time of symlinks
2309 # (eg FreeBSD returns the mod time of the symlink's containing
2312 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2313 if test "$*" = "X"; then
2315 set X
`ls -t $srcdir/configure conftest.file`
2318 if test "$*" != "X $srcdir/configure conftest.file" \
2319 && test "$*" != "X conftest.file $srcdir/configure"; then
2321 # If neither matched, then we have a broken ls. This can happen
2322 # if, for instance, CONFIG_SHELL is bash and it inherits a
2323 # broken ls alias from the environment. This has actually
2324 # happened. Such a system could not be considered "sane".
2325 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2326 alias in your environment" >&5
2327 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2328 alias in your environment" >&2;}
2329 { (exit 1); exit 1; }; }
2332 test "$2" = conftest.
file
2338 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2339 Check your system clock" >&5
2340 echo "$as_me: error: newly created file is older than distributed files!
2341 Check your system clock" >&2;}
2342 { (exit 1); exit 1; }; }
2344 { echo "$as_me:$LINENO: result: yes" >&5
2345 echo "${ECHO_T}yes" >&6; }
2346 test "$program_prefix" != NONE
&&
2347 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2348 # Use a double $ so make ignores it.
2349 test "$program_suffix" != NONE
&&
2350 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2351 # Double any \ or $. echo might interpret backslashes.
2352 # By default was `s,x,x', remove it if useless.
2353 cat <<\_ACEOF
>conftest.
sed
2354 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
2356 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
2359 # expand $ac_aux_dir to an absolute path
2360 am_aux_dir
=`cd $ac_aux_dir && pwd`
2362 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
2363 # Use eval to expand $SHELL
2364 if eval "$MISSING --run true"; then
2365 am_missing_run
="$MISSING --run "
2368 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2369 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2372 if mkdir
-p --version .
>/dev
/null
2>&1 && test ! -d .
/--version; then
2373 # We used to keeping the `.' as first argument, in order to
2374 # allow $(mkdir_p) to be used without argument. As in
2375 # $(mkdir_p) $(somedir)
2376 # where $(somedir) is conditionally defined. However this is wrong
2378 # 1. if the package is installed by a user who cannot write `.'
2379 # make install will fail,
2380 # 2. the above comment should most certainly read
2381 # $(mkdir_p) $(DESTDIR)$(somedir)
2382 # so it does not work when $(somedir) is undefined and
2383 # $(DESTDIR) is not.
2384 # To support the latter case, we have to write
2385 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2386 # so the `.' trick is pointless.
2387 mkdir_p
='mkdir -p --'
2389 # On NextStep and OpenStep, the `mkdir' command does not
2390 # recognize any option. It will interpret all options as
2391 # directories to create, and then abort because `.' already
2393 for d
in .
/-p .
/--version;
2395 test -d $d && rmdir $d
2397 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2398 if test -f "$ac_aux_dir/mkinstalldirs"; then
2399 mkdir_p
='$(mkinstalldirs)'
2401 mkdir_p
='$(install_sh) -d'
2405 for ac_prog
in gawk mawk nawk
awk
2407 # Extract the first word of "$ac_prog", so it can be a program name with args.
2408 set dummy
$ac_prog; ac_word
=$2
2409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2411 if test "${ac_cv_prog_AWK+set}" = set; then
2412 echo $ECHO_N "(cached) $ECHO_C" >&6
2414 if test -n "$AWK"; then
2415 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2417 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2421 test -z "$as_dir" && as_dir
=.
2422 for ac_exec_ext
in '' $ac_executable_extensions; do
2423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2424 ac_cv_prog_AWK
="$ac_prog"
2425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2435 if test -n "$AWK"; then
2436 { echo "$as_me:$LINENO: result: $AWK" >&5
2437 echo "${ECHO_T}$AWK" >&6; }
2439 { echo "$as_me:$LINENO: result: no" >&5
2440 echo "${ECHO_T}no" >&6; }
2444 test -n "$AWK" && break
2447 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2448 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2449 set x
${MAKE-make}; ac_make
=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2450 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2451 echo $ECHO_N "(cached) $ECHO_C" >&6
2453 cat >conftest.
make <<\_ACEOF
2456 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2458 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2459 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2461 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2463 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2467 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2468 { echo "$as_me:$LINENO: result: yes" >&5
2469 echo "${ECHO_T}yes" >&6; }
2472 { echo "$as_me:$LINENO: result: no" >&5
2473 echo "${ECHO_T}no" >&6; }
2474 SET_MAKE
="MAKE=${MAKE-make}"
2477 rm -rf .tst
2>/dev
/null
2478 mkdir .tst
2>/dev
/null
2479 if test -d .tst
; then
2484 rmdir .tst
2>/dev
/null
2486 DEPDIR
="${am__leading_dot}deps"
2488 ac_config_commands
="$ac_config_commands depfiles"
2491 am_make
=${MAKE-make}
2492 cat > confinc
<< 'END'
2497 # If we don't find an include directive, just comment out the code.
2498 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2499 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2503 # First try GNU make style include.
2504 echo "include confinc" > confmf
2505 # We grep out `Entering directory' and `Leaving directory'
2506 # messages which can occur if `w' ends up in MAKEFLAGS.
2507 # In particular we don't look at `^make:' because GNU make might
2508 # be invoked under some other name (usually "gmake"), in which
2509 # case it prints its new name instead of `make'.
2510 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2515 # Now try BSD make style include.
2516 if test "$am__include" = "#"; then
2517 echo '.include "confinc"' > confmf
2518 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2519 am__include
=.include
2526 { echo "$as_me:$LINENO: result: $_am_result" >&5
2527 echo "${ECHO_T}$_am_result" >&6; }
2528 rm -f confinc confmf
2530 # Check whether --enable-dependency-tracking was given.
2531 if test "${enable_dependency_tracking+set}" = set; then
2532 enableval
=$enable_dependency_tracking;
2535 if test "x$enable_dependency_tracking" != xno
; then
2536 am_depcomp
="$ac_aux_dir/depcomp"
2541 if test "x$enable_dependency_tracking" != xno; then
2552 # Check whether --enable-multilib was given.
2553 if test "${enable_multilib+set}" = set; then
2554 enableval
=$enable_multilib; case "${enableval}" in
2555 yes) multilib
=yes ;;
2557 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
2558 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
2559 { (exit 1); exit 1; }; } ;;
2565 # Check whether --enable-target-optspace was given.
2566 if test "${enable_target_optspace+set}" = set; then
2567 enableval
=$enable_target_optspace; case "${enableval}" in
2568 yes) target_optspace
=yes ;;
2569 no
) target_optspace
=no
;;
2570 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for target-optspace option" >&5
2571 echo "$as_me: error: bad value ${enableval} for target-optspace option" >&2;}
2572 { (exit 1); exit 1; }; } ;;
2578 # Check whether --enable-malloc-debugging was given.
2579 if test "${enable_malloc_debugging+set}" = set; then
2580 enableval
=$enable_malloc_debugging; case "${enableval}" in
2581 yes) malloc_debugging
=yes ;;
2582 no
) malloc_debugging
=no
;;
2583 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for malloc-debugging option" >&5
2584 echo "$as_me: error: bad value ${enableval} for malloc-debugging option" >&2;}
2585 { (exit 1); exit 1; }; } ;;
2591 # Check whether --enable-newlib-multithread was given.
2592 if test "${enable_newlib_multithread+set}" = set; then
2593 enableval
=$enable_newlib_multithread; case "${enableval}" in
2594 yes) newlib_multithread
=yes ;;
2595 no
) newlib_multithread
=no
;;
2596 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-multithread option" >&5
2597 echo "$as_me: error: bad value ${enableval} for newlib-multithread option" >&2;}
2598 { (exit 1); exit 1; }; } ;;
2601 newlib_multithread
=yes
2604 # Check whether --enable-newlib-iconv was given.
2605 if test "${enable_newlib_iconv+set}" = set; then
2606 enableval
=$enable_newlib_iconv; if test "${newlib_iconv+set}" != set; then
2607 case "${enableval}" in
2608 yes) newlib_iconv
=yes ;;
2609 no
) newlib_iconv
=no
;;
2610 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv option" >&5
2611 echo "$as_me: error: bad value ${enableval} for newlib-iconv option" >&2;}
2612 { (exit 1); exit 1; }; } ;;
2616 newlib_iconv
=${newlib_iconv}
2619 # Check whether --enable-newlib-elix-level was given.
2620 if test "${enable_newlib_elix_level+set}" = set; then
2621 enableval
=$enable_newlib_elix_level; case "${enableval}" in
2622 0) newlib_elix_level
=0 ;;
2623 1) newlib_elix_level
=1 ;;
2624 2) newlib_elix_level
=2 ;;
2625 3) newlib_elix_level
=3 ;;
2626 4) newlib_elix_level
=4 ;;
2627 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-elix-level option" >&5
2628 echo "$as_me: error: bad value ${enableval} for newlib-elix-level option" >&2;}
2629 { (exit 1); exit 1; }; } ;;
2635 # Check whether --enable-newlib-io-float was given.
2636 if test "${enable_newlib_io_float+set}" = set; then
2637 enableval
=$enable_newlib_io_float; case "${enableval}" in
2638 yes) newlib_io_float
=yes ;;
2639 no
) newlib_io_float
=no
;;
2640 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-float option" >&5
2641 echo "$as_me: error: bad value ${enableval} for newlib-io-float option" >&2;}
2642 { (exit 1); exit 1; }; } ;;
2648 # Check whether --enable-newlib-supplied-syscalls was given.
2649 if test "${enable_newlib_supplied_syscalls+set}" = set; then
2650 enableval
=$enable_newlib_supplied_syscalls; case "${enableval}" in
2651 yes) newlib_may_supply_syscalls
=yes ;;
2652 no
) newlib_may_supply_syscalls
=no
;;
2653 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-supplied-syscalls option" >&5
2654 echo "$as_me: error: bad value ${enableval} for newlib-supplied-syscalls option" >&2;}
2655 { (exit 1); exit 1; }; } ;;
2658 newlib_may_supply_syscalls
=yes
2663 if test x
${newlib_may_supply_syscalls} = xyes
; then
2664 MAY_SUPPLY_SYSCALLS_TRUE
=
2665 MAY_SUPPLY_SYSCALLS_FALSE
='#'
2667 MAY_SUPPLY_SYSCALLS_TRUE
='#'
2668 MAY_SUPPLY_SYSCALLS_FALSE
=
2673 test -z "${with_target_subdir}" && with_target_subdir
=.
2675 if test "${srcdir}" = "."; then
2676 if test "${with_target_subdir}" != "."; then
2677 newlib_basedir
="${srcdir}/${with_multisrctop}../."
2679 newlib_basedir
="${srcdir}/${with_multisrctop}."
2682 newlib_basedir
="${srcdir}/."
2686 { echo "$as_me:$LINENO: checking host system type" >&5
2687 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2688 if test "${ac_cv_host+set}" = set; then
2689 echo $ECHO_N "(cached) $ECHO_C" >&6
2691 if test "x$host_alias" = x
; then
2692 ac_cv_host
=$ac_cv_build
2694 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2695 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2696 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2697 { (exit 1); exit 1; }; }
2701 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2702 echo "${ECHO_T}$ac_cv_host" >&6; }
2705 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2706 echo "$as_me: error: invalid value of canonical host" >&2;}
2707 { (exit 1); exit 1; }; };;
2710 ac_save_IFS
=$IFS; IFS
='-'
2716 # Remember, the first character of IFS is used to create $*,
2717 # except with old shells:
2720 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2724 # test to see if srcdir already configured
2725 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2726 test -f $srcdir/config.status
; then
2727 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2728 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2729 { (exit 1); exit 1; }; }
2732 # test whether we have cygpath
2733 if test -z "$CYGPATH_W"; then
2734 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
2735 CYGPATH_W
='cygpath -w'
2742 # Define the identity of the package.
2747 # Some tools Automake needs.
2749 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2752 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
2755 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2758 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
2761 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
2763 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
2765 # Installed binaries are usually stripped using `strip' when the user
2766 # run `make install-strip'. However `strip' might not be the right
2767 # tool to use in cross-compilation environments, therefore Automake
2768 # will honor the `STRIP' environment variable to overrule this program.
2769 if test "$cross_compiling" != no
; then
2770 if test -n "$ac_tool_prefix"; then
2771 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2772 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2775 if test "${ac_cv_prog_STRIP+set}" = set; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2778 if test -n "$STRIP"; then
2779 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2781 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2785 test -z "$as_dir" && as_dir
=.
2786 for ac_exec_ext
in '' $ac_executable_extensions; do
2787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2788 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 STRIP
=$ac_cv_prog_STRIP
2799 if test -n "$STRIP"; then
2800 { echo "$as_me:$LINENO: result: $STRIP" >&5
2801 echo "${ECHO_T}$STRIP" >&6; }
2803 { echo "$as_me:$LINENO: result: no" >&5
2804 echo "${ECHO_T}no" >&6; }
2809 if test -z "$ac_cv_prog_STRIP"; then
2811 # Extract the first word of "strip", so it can be a program name with args.
2812 set dummy strip
; ac_word
=$2
2813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2815 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2816 echo $ECHO_N "(cached) $ECHO_C" >&6
2818 if test -n "$ac_ct_STRIP"; then
2819 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2821 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2825 test -z "$as_dir" && as_dir
=.
2826 for ac_exec_ext
in '' $ac_executable_extensions; do
2827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2828 ac_cv_prog_ac_ct_STRIP
="strip"
2829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2838 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2839 if test -n "$ac_ct_STRIP"; then
2840 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2841 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2843 { echo "$as_me:$LINENO: result: no" >&5
2844 echo "${ECHO_T}no" >&6; }
2847 if test "x$ac_ct_STRIP" = x
; then
2850 case $cross_compiling:$ac_tool_warned in
2852 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2853 whose name does not start with the host triplet. If you think this
2854 configuration is useful to you, please write to autoconf@gnu.org." >&5
2855 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2856 whose name does not start with the host triplet. If you think this
2857 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2858 ac_tool_warned
=yes ;;
2863 STRIP
="$ac_cv_prog_STRIP"
2867 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
2869 # We need awk for the "check" target. The system "awk" is bad on
2871 # Always define AMTAR for backward compatibility.
2873 AMTAR
=${AMTAR-"${am_missing_run}tar"}
2875 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
2882 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
2883 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
2884 # are probably using a cross compiler, which will not be able to fully
2885 # link an executable. This should really be fixed in autoconf
2894 # Extract the first word of "gcc", so it can be a program name with args.
2895 set dummy gcc
; ac_word
=$2
2896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2898 if test "${ac_cv_prog_CC+set}" = set; then
2899 echo $ECHO_N "(cached) $ECHO_C" >&6
2901 if test -n "$CC"; then
2902 ac_cv_prog_CC
="$CC" # Let the user override the test.
2904 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2908 test -z "$as_dir" && as_dir
=.
2909 for ac_exec_ext
in '' $ac_executable_extensions; do
2910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2922 if test -n "$CC"; then
2923 { echo "$as_me:$LINENO: result: $CC" >&5
2924 echo "${ECHO_T}$CC" >&6; }
2926 { echo "$as_me:$LINENO: result: no" >&5
2927 echo "${ECHO_T}no" >&6; }
2932 depcc
="$CC" am_compiler_list
=
2934 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2935 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
2936 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2937 echo $ECHO_N "(cached) $ECHO_C" >&6
2939 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2940 # We make a subdir and do the tests there. Otherwise we can end up
2941 # making bogus files that we don't know about and never remove. For
2942 # instance it was reported that on HP-UX the gcc test will end up
2943 # making a dummy file named `D' -- because `-MD' means `put the output
2946 # Copy depcomp to subdir because otherwise we won't find it if we're
2947 # using a relative directory.
2948 cp "$am_depcomp" conftest.dir
2950 # We will build objects and dependencies in a subdirectory because
2951 # it helps to detect inapplicable dependency modes. For instance
2952 # both Tru64's cc and ICC support -MD to output dependencies as a
2953 # side effect of compilation, but ICC will put the dependencies in
2954 # the current directory while Tru64 will put them in the object
2958 am_cv_CC_dependencies_compiler_type
=none
2959 if test "$am_compiler_list" = ""; then
2960 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2962 for depmode
in $am_compiler_list; do
2963 # Setup a source with many dependencies, because some compilers
2964 # like to wrap large dependency lists on column 80 (with \), and
2965 # we should not choose a depcomp mode which is confused by this.
2967 # We need to recreate these files for each test, as the compiler may
2968 # overwrite some of them when testing with obscure command lines.
2969 # This happens at least with the AIX C compiler.
2971 for i
in 1 2 3 4 5 6; do
2972 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
2973 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2974 # Solaris 8's {/usr,}/bin/sh.
2975 touch sub
/conftst
$i.h
2977 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2981 # after this tag, mechanisms are not by side-effect, so they'll
2982 # only be used when explicitly requested
2983 if test "x$enable_dependency_tracking" = xyes
; then
2991 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2992 # mode. It turns out that the SunPro C++ compiler does not properly
2993 # handle `-M -o', and we need to detect this.
2994 if depmode
=$depmode \
2995 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
2996 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
2997 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
2998 >/dev
/null
2>conftest.err
&&
2999 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3000 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3001 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3002 # icc doesn't choke on unknown options, it will just issue warnings
3003 # or remarks (even with -Werror). So we grep stderr for any message
3004 # that says an option was ignored or not supported.
3005 # When given -MP, icc 7.0 and 7.1 complain thusly:
3006 # icc: Command line warning: ignoring option '-M'; no argument required
3007 # The diagnosis changed in icc 8.0:
3008 # icc: Command line remark: option '-MP' not supported
3009 if (grep 'ignoring option' conftest.err ||
3010 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3011 am_cv_CC_dependencies_compiler_type
=$depmode
3020 am_cv_CC_dependencies_compiler_type
=none
3024 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3025 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3026 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3031 test "x$enable_dependency_tracking" != xno \
3032 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3034 am__fastdepCC_FALSE
='#'
3036 am__fastdepCC_TRUE
='#'
3037 am__fastdepCC_FALSE
=
3041 if test -z "$CC"; then
3042 # Extract the first word of "cc", so it can be a program name with args.
3043 set dummy cc
; ac_word
=$2
3044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3046 if test "${ac_cv_prog_CC+set}" = set; then
3047 echo $ECHO_N "(cached) $ECHO_C" >&6
3049 if test -n "$CC"; then
3050 ac_cv_prog_CC
="$CC" # Let the user override the test.
3053 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3057 test -z "$as_dir" && as_dir
=.
3058 for ac_exec_ext
in '' $ac_executable_extensions; do
3059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3060 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3061 ac_prog_rejected
=yes
3065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3072 if test $ac_prog_rejected = yes; then
3073 # We found a bogon in the path, so make sure we never use it.
3074 set dummy
$ac_cv_prog_CC
3076 if test $# != 0; then
3077 # We chose a different compiler from the bogus one.
3078 # However, it has the same basename, so the bogon will be chosen
3079 # first if we set CC to just the basename; use the full file name.
3081 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3087 if test -n "$CC"; then
3088 { echo "$as_me:$LINENO: result: $CC" >&5
3089 echo "${ECHO_T}$CC" >&6; }
3091 { echo "$as_me:$LINENO: result: no" >&5
3092 echo "${ECHO_T}no" >&6; }
3096 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
3097 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
3098 { (exit 1); exit 1; }; }
3101 { echo "$as_me:$LINENO: checking whether we are using GNU C" >&5
3102 echo $ECHO_N "checking whether we are using GNU C... $ECHO_C" >&6; }
3103 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3104 echo $ECHO_N "(cached) $ECHO_C" >&6
3106 cat > conftest.c
<<EOF
3111 if { ac_try
='${CC-cc} -E conftest.c'
3112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); }; } |
egrep yes >/dev
/null
2>&1; then
3117 ac_cv_c_compiler_gnu
=yes
3119 ac_cv_c_compiler_gnu
=no
3122 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3123 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3125 if test $ac_cv_c_compiler_gnu = yes; then
3127 ac_test_CFLAGS
="${CFLAGS+set}"
3128 ac_save_CFLAGS
="$CFLAGS"
3130 ac_test_CFLAGS
=${CFLAGS+set}
3131 ac_save_CFLAGS
=$CFLAGS
3132 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3133 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3134 if test "${ac_cv_prog_cc_g+set}" = set; then
3135 echo $ECHO_N "(cached) $ECHO_C" >&6
3137 ac_save_c_werror_flag
=$ac_c_werror_flag
3138 ac_c_werror_flag
=yes
3141 cat >conftest.
$ac_ext <<_ACEOF
3144 cat confdefs.h
>>conftest.
$ac_ext
3145 cat >>conftest.
$ac_ext <<_ACEOF
3146 /* end confdefs.h. */
3156 rm -f conftest.
$ac_objext
3157 if { (ac_try
="$ac_compile"
3159 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3160 *) ac_try_echo=$ac_try;;
3162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3163 (eval "$ac_compile") 2>conftest.er1
3165 grep -v '^ *+' conftest.er1 >conftest.err
3167 cat conftest.err >&5
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); } && {
3170 test -z "$ac_c_werror_flag" ||
3171 test ! -s conftest.err
3172 } && test -s conftest.$ac_objext; then
3175 echo "$as_me: failed program was:" >&5
3176 sed 's/^/| /' conftest.$ac_ext >&5
3179 cat >conftest.$ac_ext <<_ACEOF
3182 cat confdefs.h >>conftest.$ac_ext
3183 cat >>conftest.$ac_ext <<_ACEOF
3184 /* end confdefs.h. */
3194 rm -f conftest.$ac_objext
3195 if { (ac_try="$ac_compile"
3197 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3198 *) ac_try_echo
=$ac_try;;
3200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3201 (eval "$ac_compile") 2>conftest.er1
3203 grep -v '^ *+' conftest.er1
>conftest.err
3205 cat conftest.err
>&5
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); } && {
3208 test -z "$ac_c_werror_flag" ||
3209 test ! -s conftest.err
3210 } && test -s conftest.
$ac_objext; then
3213 echo "$as_me: failed program was:" >&5
3214 sed 's/^/| /' conftest.
$ac_ext >&5
3216 ac_c_werror_flag
=$ac_save_c_werror_flag
3218 cat >conftest.
$ac_ext <<_ACEOF
3221 cat confdefs.h
>>conftest.
$ac_ext
3222 cat >>conftest.
$ac_ext <<_ACEOF
3223 /* end confdefs.h. */
3233 rm -f conftest.
$ac_objext
3234 if { (ac_try
="$ac_compile"
3236 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3237 *) ac_try_echo=$ac_try;;
3239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3240 (eval "$ac_compile") 2>conftest.er1
3242 grep -v '^ *+' conftest.er1 >conftest.err
3244 cat conftest.err >&5
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); } && {
3247 test -z "$ac_c_werror_flag" ||
3248 test ! -s conftest.err
3249 } && test -s conftest.$ac_objext; then
3252 echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3265 ac_c_werror_flag=$ac_save_c_werror_flag
3267 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3268 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3269 if test "$ac_test_CFLAGS" = set; then
3270 CFLAGS=$ac_save_CFLAGS
3271 elif test $ac_cv_prog_cc_g = yes; then
3272 if test "$GCC" = yes; then
3278 if test "$GCC" = yes; then
3284 if test "$ac_test_CFLAGS" = set; then
3285 CFLAGS="$ac_save_CFLAGS"
3286 elif test $ac_cv_prog_cc_g = yes; then
3293 test "${CFLAGS+set}" = set || CFLAGS="-g"
3297 if test -n "$ac_tool_prefix"; then
3298 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3299 set dummy ${ac_tool_prefix}as; ac_word=$2
3300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3302 if test "${ac_cv_prog_AS+set}" = set; then
3303 echo $ECHO_N "(cached) $ECHO_C" >&6
3305 if test -n "$AS"; then
3306 ac_cv_prog_AS="$AS" # Let the user override the test.
3308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3312 test -z "$as_dir" && as_dir=.
3313 for ac_exec_ext in '' $ac_executable_extensions; do
3314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3315 ac_cv_prog_AS="${ac_tool_prefix}as"
3316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3326 if test -n "$AS"; then
3327 { echo "$as_me:$LINENO: result: $AS" >&5
3328 echo "${ECHO_T}$AS" >&6; }
3330 { echo "$as_me:$LINENO: result: no" >&5
3331 echo "${ECHO_T}no" >&6; }
3336 if test -z "$ac_cv_prog_AS"; then
3338 # Extract the first word of "as", so it can be a program name with args.
3339 set dummy as; ac_word=$2
3340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3342 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3343 echo $ECHO_N "(cached) $ECHO_C" >&6
3345 if test -n "$ac_ct_AS"; then
3346 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352 test -z "$as_dir" && as_dir=.
3353 for ac_exec_ext in '' $ac_executable_extensions; do
3354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3355 ac_cv_prog_ac_ct_AS="as"
3356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3365 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3366 if test -n "$ac_ct_AS"; then
3367 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3368 echo "${ECHO_T}$ac_ct_AS" >&6; }
3370 { echo "$as_me:$LINENO: result: no" >&5
3371 echo "${ECHO_T}no" >&6; }
3374 if test "x$ac_ct_AS" = x; then
3377 case $cross_compiling:$ac_tool_warned in
3379 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3380 whose name does not start with the host triplet. If you think this
3381 configuration is useful to you, please write to autoconf@gnu.org." >&5
3382 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3383 whose name does not start with the host triplet. If you think this
3384 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3385 ac_tool_warned=yes ;;
3393 if test -n "$ac_tool_prefix"; then
3394 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3395 set dummy ${ac_tool_prefix}ar; ac_word=$2
3396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3398 if test "${ac_cv_prog_AR+set}" = set; then
3399 echo $ECHO_N "(cached) $ECHO_C" >&6
3401 if test -n "$AR"; then
3402 ac_cv_prog_AR="$AR" # Let the user override the test.
3404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3408 test -z "$as_dir" && as_dir=.
3409 for ac_exec_ext in '' $ac_executable_extensions; do
3410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3411 ac_cv_prog_AR="${ac_tool_prefix}ar"
3412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3422 if test -n "$AR"; then
3423 { echo "$as_me:$LINENO: result: $AR" >&5
3424 echo "${ECHO_T}$AR" >&6; }
3426 { echo "$as_me:$LINENO: result: no" >&5
3427 echo "${ECHO_T}no" >&6; }
3432 if test -z "$ac_cv_prog_AR"; then
3434 # Extract the first word of "ar", so it can be a program name with args.
3435 set dummy ar; ac_word=$2
3436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3438 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3439 echo $ECHO_N "(cached) $ECHO_C" >&6
3441 if test -n "$ac_ct_AR"; then
3442 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448 test -z "$as_dir" && as_dir=.
3449 for ac_exec_ext in '' $ac_executable_extensions; do
3450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3451 ac_cv_prog_ac_ct_AR="ar"
3452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3461 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3462 if test -n "$ac_ct_AR"; then
3463 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3464 echo "${ECHO_T}$ac_ct_AR" >&6; }
3466 { echo "$as_me:$LINENO: result: no" >&5
3467 echo "${ECHO_T}no" >&6; }
3470 if test "x$ac_ct_AR" = x; then
3473 case $cross_compiling:$ac_tool_warned in
3475 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3476 whose name does not start with the host triplet. If you think this
3477 configuration is useful to you, please write to autoconf@gnu.org." >&5
3478 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3479 whose name does not start with the host triplet. If you think this
3480 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3481 ac_tool_warned=yes ;;
3489 if test -n "$ac_tool_prefix"; then
3490 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3491 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3494 if test "${ac_cv_prog_RANLIB+set}" = set; then
3495 echo $ECHO_N "(cached) $ECHO_C" >&6
3497 if test -n "$RANLIB"; then
3498 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504 test -z "$as_dir" && as_dir=.
3505 for ac_exec_ext in '' $ac_executable_extensions; do
3506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3507 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3517 RANLIB=$ac_cv_prog_RANLIB
3518 if test -n "$RANLIB"; then
3519 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3520 echo "${ECHO_T}$RANLIB" >&6; }
3522 { echo "$as_me:$LINENO: result: no" >&5
3523 echo "${ECHO_T}no" >&6; }
3528 if test -z "$ac_cv_prog_RANLIB"; then
3529 ac_ct_RANLIB=$RANLIB
3530 # Extract the first word of "ranlib", so it can be a program name with args.
3531 set dummy ranlib; ac_word=$2
3532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3534 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3535 echo $ECHO_N "(cached) $ECHO_C" >&6
3537 if test -n "$ac_ct_RANLIB"; then
3538 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3544 test -z "$as_dir" && as_dir=.
3545 for ac_exec_ext in '' $ac_executable_extensions; do
3546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3547 ac_cv_prog_ac_ct_RANLIB="ranlib"
3548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3557 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3558 if test -n "$ac_ct_RANLIB"; then
3559 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3560 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3562 { echo "$as_me:$LINENO: result: no" >&5
3563 echo "${ECHO_T}no" >&6; }
3566 if test "x$ac_ct_RANLIB" = x; then
3569 case $cross_compiling:$ac_tool_warned in
3571 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3572 whose name does not start with the host triplet. If you think this
3573 configuration is useful to you, please write to autoconf@gnu.org." >&5
3574 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3575 whose name does not start with the host triplet. If you think this
3576 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3577 ac_tool_warned=yes ;;
3579 RANLIB=$ac_ct_RANLIB
3582 RANLIB="$ac_cv_prog_RANLIB"
3585 if test -n "$ac_tool_prefix"; then
3586 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
3587 set dummy ${ac_tool_prefix}readelf; ac_word=$2
3588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3590 if test "${ac_cv_prog_READELF+set}" = set; then
3591 echo $ECHO_N "(cached) $ECHO_C" >&6
3593 if test -n "$READELF"; then
3594 ac_cv_prog_READELF="$READELF" # Let the user override the test.
3596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3600 test -z "$as_dir" && as_dir=.
3601 for ac_exec_ext in '' $ac_executable_extensions; do
3602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3603 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
3604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3613 READELF=$ac_cv_prog_READELF
3614 if test -n "$READELF"; then
3615 { echo "$as_me:$LINENO: result: $READELF" >&5
3616 echo "${ECHO_T}$READELF" >&6; }
3618 { echo "$as_me:$LINENO: result: no" >&5
3619 echo "${ECHO_T}no" >&6; }
3624 if test -z "$ac_cv_prog_READELF"; then
3625 ac_ct_READELF=$READELF
3626 # Extract the first word of "readelf", so it can be a program name with args.
3627 set dummy readelf; ac_word=$2
3628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3630 if test "${ac_cv_prog_ac_ct_READELF+set}" = set; then
3631 echo $ECHO_N "(cached) $ECHO_C" >&6
3633 if test -n "$ac_ct_READELF"; then
3634 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
3636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640 test -z "$as_dir" && as_dir=.
3641 for ac_exec_ext in '' $ac_executable_extensions; do
3642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3643 ac_cv_prog_ac_ct_READELF="readelf"
3644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3653 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
3654 if test -n "$ac_ct_READELF"; then
3655 { echo "$as_me:$LINENO: result: $ac_ct_READELF" >&5
3656 echo "${ECHO_T}$ac_ct_READELF" >&6; }
3658 { echo "$as_me:$LINENO: result: no" >&5
3659 echo "${ECHO_T}no" >&6; }
3662 if test "x$ac_ct_READELF" = x; then
3665 case $cross_compiling:$ac_tool_warned in
3667 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3668 whose name does not start with the host triplet. If you think this
3669 configuration is useful to you, please write to autoconf@gnu.org." >&5
3670 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3671 whose name does not start with the host triplet. If you think this
3672 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3673 ac_tool_warned=yes ;;
3675 READELF=$ac_ct_READELF
3678 READELF="$ac_cv_prog_READELF"
3682 # Find a good install program. We prefer a C program (faster),
3683 # so one script is as good as another. But avoid the broken or
3684 # incompatible versions:
3685 # SysV /etc/install, /usr/sbin/install
3686 # SunOS /usr/etc/install
3687 # IRIX /sbin/install
3689 # AmigaOS /C/install, which installs bootblocks on floppy discs
3690 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3691 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3692 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3693 # OS/2's system install, which has a completely different semantic
3694 # ./install, which can be erroneously created by make from ./install.sh.
3695 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3696 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3697 if test -z "$INSTALL"; then
3698 if test "${ac_cv_path_install+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705 test -z "$as_dir" && as_dir=.
3706 # Account for people who put trailing slashes in PATH elements.
3708 ./ | .// | /cC/* | \
3709 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3710 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3713 # OSF1 and SCO ODT 3.0 have their own names for install.
3714 # Don't use installbsd from OSF since it installs stuff as root
3716 for ac_prog in ginstall scoinst install; do
3717 for ac_exec_ext in '' $ac_executable_extensions; do
3718 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3719 if test $ac_prog = install &&
3720 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3721 # AIX install. It has an incompatible calling convention.
3723 elif test $ac_prog = install &&
3724 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3725 # program-specific install script used by HP pwplus--don't use.
3728 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3741 if test "${ac_cv_path_install+set}" = set; then
3742 INSTALL=$ac_cv_path_install
3744 # As a last resort, use the slow shell script. Don't cache a
3745 # value for INSTALL within a source directory, because that will
3746 # break other packages using the cache if that directory is
3747 # removed, or if the value is a relative name.
3748 INSTALL=$ac_install_sh
3751 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3752 echo "${ECHO_T}$INSTALL" >&6; }
3754 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3755 # It thinks the first close brace ends the variable substitution.
3756 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3758 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3760 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3763 # Hack to ensure that INSTALL won't be set to "../" with autoconf 2.13. */
3764 ac_given_INSTALL=$INSTALL
3766 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3767 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
3768 # Check whether --enable-maintainer-mode was given.
3769 if test "${enable_maintainer_mode+set}" = set; then
3770 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3772 USE_MAINTAINER_MODE=no
3775 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3776 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
3779 if test $USE_MAINTAINER_MODE = yes; then
3780 MAINTAINER_MODE_TRUE=
3781 MAINTAINER_MODE_FALSE='#'
3783 MAINTAINER_MODE_TRUE='#'
3784 MAINTAINER_MODE_FALSE=
3787 MAINT=$MAINTAINER_MODE_TRUE
3790 # By default we simply use the C compiler to build assembly code.
3792 test "${CCAS+set}" = set || CCAS=$CC
3793 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3798 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
3799 # at least currently, we never actually build a program, so we never
3800 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
3801 # fails, because we are probably configuring with a cross compiler
3802 # which can't create executables. So we include AC_EXEEXT to keep
3803 # automake happy, but we don't execute it, since we don't care about
3810 . ${newlib_basedir}/configure.host
3812 newlib_cflags="${newlib_cflags} -fno-builtin"
3814 NEWLIB_CFLAGS=${newlib_cflags}
3822 if test x${newlib_elix_level} = x0; then
3824 ELIX_LEVEL_0_FALSE='#'
3826 ELIX_LEVEL_0_TRUE='#'
3832 if test x${newlib_elix_level} = x1; then
3834 ELIX_LEVEL_1_FALSE='#'
3836 ELIX_LEVEL_1_TRUE='#'
3842 if test x${newlib_elix_level} = x2; then
3844 ELIX_LEVEL_2_FALSE='#'
3846 ELIX_LEVEL_2_TRUE='#'
3852 if test x${newlib_elix_level} = x3; then
3854 ELIX_LEVEL_3_FALSE='#'
3856 ELIX_LEVEL_3_TRUE='#'
3862 if test x${newlib_elix_level} = x4; then
3864 ELIX_LEVEL_4_FALSE='#'
3866 ELIX_LEVEL_4_TRUE='#'
3873 if test x${use_libtool} = xyes; then
3875 USE_LIBTOOL_FALSE='#'
3877 USE_LIBTOOL_TRUE='#'
3882 # Hard-code OBJEXT. Normally it is set by AC_OBJEXT, but we
3883 # use oext, which is set in configure.host based on the target platform.
3896 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3897 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3898 if test "${ac_cv_path_SED+set}" = set; then
3899 echo $ECHO_N "(cached) $ECHO_C" >&6
3901 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3902 for ac_i in 1 2 3 4 5 6 7; do
3903 ac_script="$ac_script$as_nl$ac_script"
3905 echo "$ac_script" | sed 99q >conftest.sed
3906 $as_unset ac_script || ac_script=
3907 # Extract the first word of "sed gsed" to use in msg output
3908 if test -z "$SED"; then
3909 set dummy sed gsed; ac_prog_name=$2
3910 if test "${ac_cv_path_SED+set}" = set; then
3911 echo $ECHO_N "(cached) $ECHO_C" >&6
3913 ac_path_SED_found=false
3914 # Loop through the user's path and test for each of PROGNAME-LIST
3915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919 test -z "$as_dir" && as_dir=.
3920 for ac_prog in sed gsed; do
3921 for ac_exec_ext in '' $ac_executable_extensions; do
3922 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3923 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3924 # Check for GNU ac_path_SED and select it if it is found.
3925 # Check for GNU $ac_path_SED
3926 case `"$ac_path_SED" --version 2>&1` in
3928 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3931 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3934 cat "conftest.in" "conftest.in" >"conftest.tmp"
3935 mv "conftest.tmp" "conftest.in"
3936 cp "conftest.in" "conftest.nl"
3937 echo '' >> "conftest.nl"
3938 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3939 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3940 ac_count=`expr $ac_count + 1`
3941 if test $ac_count -gt ${ac_path_SED_max-0}; then
3942 # Best one so far, save it but keep looking for a better one
3943 ac_cv_path_SED="$ac_path_SED"
3944 ac_path_SED_max=$ac_count
3946 # 10*(2^10) chars as input seems more than enough
3947 test $ac_count -gt 10 && break
3949 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3953 $ac_path_SED_found && break 3
3963 SED="$ac_cv_path_SED"
3964 if test -z "$SED"; then
3965 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
3966 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
3967 { (exit 1); exit 1; }; }
3975 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3976 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
3977 SED="$ac_cv_path_SED"
3980 test -z "$SED" && SED=sed
3981 Xsed="$SED -e 1s/^X//"
3993 for ac_prog in gawk mawk nawk awk
3995 # Extract the first word of "$ac_prog", so it can be a program name with args.
3996 set dummy $ac_prog; ac_word=$2
3997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3999 if test "${ac_cv_prog_AWK+set}" = set; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4002 if test -n "$AWK"; then
4003 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009 test -z "$as_dir" && as_dir=.
4010 for ac_exec_ext in '' $ac_executable_extensions; do
4011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4012 ac_cv_prog_AWK="$ac_prog"
4013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4023 if test -n "$AWK"; then
4024 { echo "$as_me:$LINENO: result: $AWK" >&5
4025 echo "${ECHO_T}$AWK" >&6; }
4027 { echo "$as_me:$LINENO: result: no" >&5
4028 echo "${ECHO_T}no" >&6; }
4032 test -n "$AWK" && break
4035 if test "${use_libtool}" = "yes"; then
4036 enable_win32_dll=yes
4039 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4040 if test -n "$ac_tool_prefix"; then
4041 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4042 set dummy ${ac_tool_prefix}as; ac_word=$2
4043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4045 if test "${ac_cv_prog_AS+set}" = set; then
4046 echo $ECHO_N "(cached) $ECHO_C" >&6
4048 if test -n "$AS"; then
4049 ac_cv_prog_AS="$AS" # Let the user override the test.
4051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055 test -z "$as_dir" && as_dir=.
4056 for ac_exec_ext in '' $ac_executable_extensions; do
4057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4058 ac_cv_prog_AS="${ac_tool_prefix}as"
4059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4069 if test -n "$AS"; then
4070 { echo "$as_me:$LINENO: result: $AS" >&5
4071 echo "${ECHO_T}$AS" >&6; }
4073 { echo "$as_me:$LINENO: result: no" >&5
4074 echo "${ECHO_T}no" >&6; }
4079 if test -z "$ac_cv_prog_AS"; then
4081 # Extract the first word of "as", so it can be a program name with args.
4082 set dummy as; ac_word=$2
4083 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4085 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4086 echo $ECHO_N "(cached) $ECHO_C" >&6
4088 if test -n "$ac_ct_AS"; then
4089 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4095 test -z "$as_dir" && as_dir=.
4096 for ac_exec_ext in '' $ac_executable_extensions; do
4097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4098 ac_cv_prog_ac_ct_AS="as"
4099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4108 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4109 if test -n "$ac_ct_AS"; then
4110 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4111 echo "${ECHO_T}$ac_ct_AS" >&6; }
4113 { echo "$as_me:$LINENO: result: no" >&5
4114 echo "${ECHO_T}no" >&6; }
4117 if test "x$ac_ct_AS" = x; then
4120 case $cross_compiling:$ac_tool_warned in
4122 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4123 whose name does not start with the host triplet. If you think this
4124 configuration is useful to you, please write to autoconf@gnu.org." >&5
4125 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4126 whose name does not start with the host triplet. If you think this
4127 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4128 ac_tool_warned=yes ;;
4136 if test -n "$ac_tool_prefix"; then
4137 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4138 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4141 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4142 echo $ECHO_N "(cached) $ECHO_C" >&6
4144 if test -n "$DLLTOOL"; then
4145 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151 test -z "$as_dir" && as_dir=.
4152 for ac_exec_ext in '' $ac_executable_extensions; do
4153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4154 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4164 DLLTOOL=$ac_cv_prog_DLLTOOL
4165 if test -n "$DLLTOOL"; then
4166 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4167 echo "${ECHO_T}$DLLTOOL" >&6; }
4169 { echo "$as_me:$LINENO: result: no" >&5
4170 echo "${ECHO_T}no" >&6; }
4175 if test -z "$ac_cv_prog_DLLTOOL"; then
4176 ac_ct_DLLTOOL=$DLLTOOL
4177 # Extract the first word of "dlltool", so it can be a program name with args.
4178 set dummy dlltool; ac_word=$2
4179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4181 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4182 echo $ECHO_N "(cached) $ECHO_C" >&6
4184 if test -n "$ac_ct_DLLTOOL"; then
4185 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191 test -z "$as_dir" && as_dir=.
4192 for ac_exec_ext in '' $ac_executable_extensions; do
4193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4194 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4204 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4205 if test -n "$ac_ct_DLLTOOL"; then
4206 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4207 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4209 { echo "$as_me:$LINENO: result: no" >&5
4210 echo "${ECHO_T}no" >&6; }
4213 if test "x$ac_ct_DLLTOOL" = x; then
4216 case $cross_compiling:$ac_tool_warned in
4218 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4219 whose name does not start with the host triplet. If you think this
4220 configuration is useful to you, please write to autoconf@gnu.org." >&5
4221 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4222 whose name does not start with the host triplet. If you think this
4223 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4224 ac_tool_warned=yes ;;
4226 DLLTOOL=$ac_ct_DLLTOOL
4229 DLLTOOL="$ac_cv_prog_DLLTOOL"
4232 if test -n "$ac_tool_prefix"; then
4233 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4234 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4237 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4238 echo $ECHO_N "(cached) $ECHO_C" >&6
4240 if test -n "$OBJDUMP"; then
4241 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247 test -z "$as_dir" && as_dir=.
4248 for ac_exec_ext in '' $ac_executable_extensions; do
4249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4250 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4260 OBJDUMP=$ac_cv_prog_OBJDUMP
4261 if test -n "$OBJDUMP"; then
4262 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4263 echo "${ECHO_T}$OBJDUMP" >&6; }
4265 { echo "$as_me:$LINENO: result: no" >&5
4266 echo "${ECHO_T}no" >&6; }
4271 if test -z "$ac_cv_prog_OBJDUMP"; then
4272 ac_ct_OBJDUMP=$OBJDUMP
4273 # Extract the first word of "objdump", so it can be a program name with args.
4274 set dummy objdump; ac_word=$2
4275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4277 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
4280 if test -n "$ac_ct_OBJDUMP"; then
4281 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287 test -z "$as_dir" && as_dir=.
4288 for ac_exec_ext in '' $ac_executable_extensions; do
4289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4290 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4300 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4301 if test -n "$ac_ct_OBJDUMP"; then
4302 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4303 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
4305 { echo "$as_me:$LINENO: result: no" >&5
4306 echo "${ECHO_T}no" >&6; }
4309 if test "x$ac_ct_OBJDUMP" = x; then
4312 case $cross_compiling:$ac_tool_warned in
4314 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4315 whose name does not start with the host triplet. If you think this
4316 configuration is useful to you, please write to autoconf@gnu.org." >&5
4317 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4318 whose name does not start with the host triplet. If you think this
4319 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4320 ac_tool_warned=yes ;;
4322 OBJDUMP=$ac_ct_OBJDUMP
4325 OBJDUMP="$ac_cv_prog_OBJDUMP"
4331 test -z "$AS" && AS=as
4337 test -z "$DLLTOOL" && DLLTOOL=dlltool
4343 test -z "$OBJDUMP" && OBJDUMP=objdump
4353 macro_version='2.1a'
4354 macro_revision='1.2435'
4367 ltmain="$ac_aux_dir/ltmain.sh"
4375 # Check whether --enable-shared was given.
4376 if test "${enable_shared+set}" = set; then
4377 enableval=$enable_shared; p=${PACKAGE-default}
4379 yes) enable_shared=yes ;;
4380 no) enable_shared=no ;;
4383 # Look at the argument we got. We use all the common list separators.
4384 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4385 for pkg in $enableval; do
4387 if test "X$pkg" = "X$p"; then
4406 # Check whether --enable-static was given.
4407 if test "${enable_static+set}" = set; then
4408 enableval=$enable_static; p=${PACKAGE-default}
4410 yes) enable_static=yes ;;
4411 no) enable_static=no ;;
4414 # Look at the argument we got. We use all the common list separators.
4415 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4416 for pkg in $enableval; do
4418 if test "X$pkg" = "X$p"; then
4438 # Check whether --with-pic was given.
4439 if test "${with_pic+set}" = set; then
4440 withval=$with_pic; pic_mode="$withval"
4446 test -z "$pic_mode" && pic_mode=default
4454 # Check whether --enable-fast-install was given.
4455 if test "${enable_fast_install+set}" = set; then
4456 enableval=$enable_fast_install; p=${PACKAGE-default}
4458 yes) enable_fast_install=yes ;;
4459 no) enable_fast_install=no ;;
4461 enable_fast_install=no
4462 # Look at the argument we got. We use all the common list separators.
4463 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4464 for pkg in $enableval; do
4466 if test "X$pkg" = "X$p"; then
4467 enable_fast_install=yes
4474 enable_fast_install=yes
4486 ac_cpp='$CPP $CPPFLAGS'
4487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4490 if test -n "$ac_tool_prefix"; then
4491 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4492 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4495 if test "${ac_cv_prog_CC+set}" = set; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
4498 if test -n "$CC"; then
4499 ac_cv_prog_CC="$CC" # Let the user override the test.
4501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505 test -z "$as_dir" && as_dir=.
4506 for ac_exec_ext in '' $ac_executable_extensions; do
4507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4508 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4519 if test -n "$CC"; then
4520 { echo "$as_me:$LINENO: result: $CC" >&5
4521 echo "${ECHO_T}$CC" >&6; }
4523 { echo "$as_me:$LINENO: result: no" >&5
4524 echo "${ECHO_T}no" >&6; }
4529 if test -z "$ac_cv_prog_CC"; then
4531 # Extract the first word of "gcc", so it can be a program name with args.
4532 set dummy gcc; ac_word=$2
4533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4535 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4536 echo $ECHO_N "(cached) $ECHO_C" >&6
4538 if test -n "$ac_ct_CC"; then
4539 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 test -z "$as_dir" && as_dir=.
4546 for ac_exec_ext in '' $ac_executable_extensions; do
4547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4548 ac_cv_prog_ac_ct_CC="gcc"
4549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4558 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4559 if test -n "$ac_ct_CC"; then
4560 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4561 echo "${ECHO_T}$ac_ct_CC" >&6; }
4563 { echo "$as_me:$LINENO: result: no" >&5
4564 echo "${ECHO_T}no" >&6; }
4567 if test "x$ac_ct_CC" = x; then
4570 case $cross_compiling:$ac_tool_warned in
4572 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4573 whose name does not start with the host triplet. If you think this
4574 configuration is useful to you, please write to autoconf@gnu.org." >&5
4575 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4576 whose name does not start with the host triplet. If you think this
4577 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4578 ac_tool_warned=yes ;;
4586 if test -z "$CC"; then
4587 if test -n "$ac_tool_prefix"; then
4588 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4589 set dummy ${ac_tool_prefix}cc; ac_word=$2
4590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4592 if test "${ac_cv_prog_CC+set}" = set; then
4593 echo $ECHO_N "(cached) $ECHO_C" >&6
4595 if test -n "$CC"; then
4596 ac_cv_prog_CC="$CC" # Let the user override the test.
4598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602 test -z "$as_dir" && as_dir=.
4603 for ac_exec_ext in '' $ac_executable_extensions; do
4604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4605 ac_cv_prog_CC="${ac_tool_prefix}cc"
4606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4616 if test -n "$CC"; then
4617 { echo "$as_me:$LINENO: result: $CC" >&5
4618 echo "${ECHO_T}$CC" >&6; }
4620 { echo "$as_me:$LINENO: result: no" >&5
4621 echo "${ECHO_T}no" >&6; }
4627 if test -z "$CC"; then
4628 # Extract the first word of "cc", so it can be a program name with args.
4629 set dummy cc; ac_word=$2
4630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4632 if test "${ac_cv_prog_CC+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4635 if test -n "$CC"; then
4636 ac_cv_prog_CC="$CC" # Let the user override the test.
4639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 test -z "$as_dir" && as_dir=.
4644 for ac_exec_ext in '' $ac_executable_extensions; do
4645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4646 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4647 ac_prog_rejected=yes
4651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4658 if test $ac_prog_rejected = yes; then
4659 # We found a bogon in the path, so make sure we never use it.
4660 set dummy $ac_cv_prog_CC
4662 if test $# != 0; then
4663 # We chose a different compiler from the bogus one.
4664 # However, it has the same basename, so the bogon will be chosen
4665 # first if we set CC to just the basename; use the full file name.
4667 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4673 if test -n "$CC"; then
4674 { echo "$as_me:$LINENO: result: $CC" >&5
4675 echo "${ECHO_T}$CC" >&6; }
4677 { echo "$as_me:$LINENO: result: no" >&5
4678 echo "${ECHO_T}no" >&6; }
4683 if test -z "$CC"; then
4684 if test -n "$ac_tool_prefix"; then
4685 for ac_prog in cl.exe
4687 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4688 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4691 if test "${ac_cv_prog_CC+set}" = set; then
4692 echo $ECHO_N "(cached) $ECHO_C" >&6
4694 if test -n "$CC"; then
4695 ac_cv_prog_CC="$CC" # Let the user override the test.
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701 test -z "$as_dir" && as_dir=.
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4704 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4715 if test -n "$CC"; then
4716 { echo "$as_me:$LINENO: result: $CC" >&5
4717 echo "${ECHO_T}$CC" >&6; }
4719 { echo "$as_me:$LINENO: result: no" >&5
4720 echo "${ECHO_T}no" >&6; }
4724 test -n "$CC" && break
4727 if test -z "$CC"; then
4729 for ac_prog in cl.exe
4731 # Extract the first word of "$ac_prog", so it can be a program name with args.
4732 set dummy $ac_prog; ac_word=$2
4733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4735 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4736 echo $ECHO_N "(cached) $ECHO_C" >&6
4738 if test -n "$ac_ct_CC"; then
4739 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 test -z "$as_dir" && as_dir=.
4746 for ac_exec_ext in '' $ac_executable_extensions; do
4747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4748 ac_cv_prog_ac_ct_CC="$ac_prog"
4749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4758 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4759 if test -n "$ac_ct_CC"; then
4760 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4761 echo "${ECHO_T}$ac_ct_CC" >&6; }
4763 { echo "$as_me:$LINENO: result: no" >&5
4764 echo "${ECHO_T}no" >&6; }
4768 test -n "$ac_ct_CC" && break
4771 if test "x$ac_ct_CC" = x; then
4774 case $cross_compiling:$ac_tool_warned in
4776 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4777 whose name does not start with the host triplet. If you think this
4778 configuration is useful to you, please write to autoconf@gnu.org." >&5
4779 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4780 whose name does not start with the host triplet. If you think this
4781 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4782 ac_tool_warned=yes ;;
4791 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4792 See \`config.log
' for more details." >&5
4793 echo "$as_me: error: no acceptable C compiler found in \$PATH
4794 See \`config.log' for more details.
" >&2;}
4795 { (exit 1); exit 1; }; }
4797 # Provide some information about the compiler.
4798 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
4799 ac_compiler=`set X $ac_compile; echo $2`
4800 { (ac_try="$ac_compiler --version >&5"
4802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4803 *) ac_try_echo=$ac_try;;
4805 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4806 (eval "$ac_compiler --version >&5") 2>&5
4808 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4809 (exit $ac_status); }
4810 { (ac_try="$ac_compiler -v >&5"
4812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4813 *) ac_try_echo=$ac_try;;
4815 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4816 (eval "$ac_compiler -v >&5") 2>&5
4818 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4819 (exit $ac_status); }
4820 { (ac_try="$ac_compiler -V >&5"
4822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4823 *) ac_try_echo=$ac_try;;
4825 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4826 (eval "$ac_compiler -V >&5") 2>&5
4828 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4829 (exit $ac_status); }
4831 cat >conftest.$ac_ext <<_ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h. */
4846 ac_clean_files_save=$ac_clean_files
4847 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
4848 # Try to create an executable without -o first, disregard a.out.
4849 # It will help us diagnose broken compilers, and finding out an intuition
4851 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
4852 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
4853 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4855 # List of possible output files, starting from the most likely.
4856 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
4857 # only as a last resort. b.out is created by i960 compilers.
4858 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
4860 # The IRIX 6 linker writes into existing files which may not be
4861 # executable, retaining their permissions. Remove them first so a
4862 # subsequent execution test works.
4864 for ac_file in $ac_files
4867 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
4868 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4873 if { (ac_try="$ac_link_default"
4875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4876 *) ac_try_echo=$ac_try;;
4878 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4879 (eval "$ac_link_default") 2>&5
4881 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4882 (exit $ac_status); }; then
4883 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4884 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4885 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4886 # so that the user can short-circuit this test for compilers unknown to
4888 for ac_file in $ac_files ''
4890 test -f "$ac_file" || continue
4892 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
4895 # We found the default executable, but exeext='' is most
4899 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4901 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4903 # We set ac_cv_exeext here because the later test for it is not
4904 # safe: cross compilers may not add the suffix if given an `-o'
4905 # argument, so we may need to know it at that point already.
4906 # Even if this section looks crufty: it has the advantage of
4913 test "$ac_cv_exeext" = no && ac_cv_exeext=
4919 { echo "$as_me:$LINENO: result
: $ac_file" >&5
4920 echo "${ECHO_T}$ac_file" >&6; }
4921 if test -z "$ac_file"; then
4922 echo "$as_me: failed program was
:" >&5
4923 sed 's/^/| /' conftest.$ac_ext >&5
4925 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
4926 See \
`config.log' for more details." >&5
4927 echo "$as_me: error: C compiler cannot create executables
4928 See \`config.log
' for more details." >&2;}
4929 { (exit 77); exit 77; }; }
4932 ac_exeext=$ac_cv_exeext
4934 # Check that the compiler produces executables we can run. If not, either
4935 # the compiler is broken, or we cross compile.
4936 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4937 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
4938 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4939 # If not cross compiling, check that we can run a simple program.
4940 if test "$cross_compiling" != yes; then
4941 if { ac_try='.
/$ac_file'
4942 { (case "(($ac_try" in
4943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4944 *) ac_try_echo=$ac_try;;
4946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4947 (eval "$ac_try") 2>&5
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); }; }; then
4953 if test "$cross_compiling" = maybe; then
4956 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4957 If you meant to cross compile, use \`--host'.
4958 See \
`config.log' for more details." >&5
4959 echo "$as_me: error: cannot run C compiled programs.
4960 If you meant to cross compile, use \`--host'.
4961 See \`config.log' for more details.
" >&2;}
4962 { (exit 1); exit 1; }; }
4966 { echo "$as_me:$LINENO: result
: yes" >&5
4967 echo "${ECHO_T}yes" >&6; }
4969 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4970 ac_clean_files=$ac_clean_files_save
4971 # Check that the compiler produces executables we can run. If not, either
4972 # the compiler is broken, or we cross compile.
4973 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
4974 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
4975 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
4976 echo "${ECHO_T}$cross_compiling" >&6; }
4978 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
4979 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
4980 if { (ac_try="$ac_link"
4982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4983 *) ac_try_echo=$ac_try;;
4985 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4986 (eval "$ac_link") 2>&5
4988 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4989 (exit $ac_status); }; then
4990 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4991 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4992 # work properly (i.e., refer to `conftest.exe'), while it won't with
4994 for ac_file in conftest.exe conftest conftest.*; do
4995 test -f "$ac_file" || continue
4997 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
4998 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5004 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
5005 See \
`config.log' for more details." >&5
5006 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
5007 See \`config.log
' for more details." >&2;}
5008 { (exit 1); exit 1; }; }
5011 rm -f conftest$ac_cv_exeext
5012 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
5013 echo "${ECHO_T}$ac_cv_exeext" >&6; }
5015 rm -f conftest.$ac_ext
5016 EXEEXT=$ac_cv_exeext
5018 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
5019 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
5020 if test "${ac_cv_objext+set}" = set; then
5021 echo $ECHO_N "(cached) $ECHO_C" >&6
5023 cat >conftest.$ac_ext <<_ACEOF
5026 cat confdefs.h >>conftest.$ac_ext
5027 cat >>conftest.$ac_ext <<_ACEOF
5028 /* end confdefs.h. */
5038 rm -f conftest.o conftest.obj
5039 if { (ac_try="$ac_compile"
5041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5042 *) ac_try_echo=$ac_try;;
5044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5045 (eval "$ac_compile") 2>&5
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); }; then
5049 for ac_file in conftest.o conftest.obj conftest.*; do
5050 test -f "$ac_file" || continue;
5052 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
5053 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
5058 echo "$as_me: failed program was:" >&5
5059 sed 's
/^
/|
/' conftest.$ac_ext >&5
5061 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
5062 See \`config.log' for more details.
" >&5
5063 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
5064 See \
`config.log' for more details." >&2;}
5065 { (exit 1); exit 1; }; }
5068 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5070 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
5071 echo "${ECHO_T}$ac_cv_objext" >&6; }
5072 OBJEXT=$ac_cv_objext
5074 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5075 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5076 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5077 echo $ECHO_N "(cached) $ECHO_C" >&6
5079 cat >conftest.$ac_ext <<_ACEOF
5082 cat confdefs.h >>conftest.$ac_ext
5083 cat >>conftest.$ac_ext <<_ACEOF
5084 /* end confdefs.h. */
5097 rm -f conftest.$ac_objext
5098 if { (ac_try="$ac_compile"
5100 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5101 *) ac_try_echo
=$ac_try;;
5103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5104 (eval "$ac_compile") 2>conftest.er1
5106 grep -v '^ *+' conftest.er1
>conftest.err
5108 cat conftest.err
>&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); } && {
5111 test -z "$ac_c_werror_flag" ||
5112 test ! -s conftest.err
5113 } && test -s conftest.
$ac_objext; then
5116 echo "$as_me: failed program was:" >&5
5117 sed 's/^/| /' conftest.
$ac_ext >&5
5122 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5123 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
5126 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5127 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5128 GCC
=`test $ac_compiler_gnu = yes && echo yes`
5129 ac_test_CFLAGS
=${CFLAGS+set}
5130 ac_save_CFLAGS
=$CFLAGS
5131 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5132 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5133 if test "${ac_cv_prog_cc_g+set}" = set; then
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
5136 ac_save_c_werror_flag
=$ac_c_werror_flag
5137 ac_c_werror_flag
=yes
5140 cat >conftest.
$ac_ext <<_ACEOF
5143 cat confdefs.h
>>conftest.
$ac_ext
5144 cat >>conftest.
$ac_ext <<_ACEOF
5145 /* end confdefs.h. */
5155 rm -f conftest.
$ac_objext
5156 if { (ac_try
="$ac_compile"
5158 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5159 *) ac_try_echo=$ac_try;;
5161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5162 (eval "$ac_compile") 2>conftest.er1
5164 grep -v '^ *+' conftest.er1 >conftest.err
5166 cat conftest.err >&5
5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); } && {
5169 test -z "$ac_c_werror_flag" ||
5170 test ! -s conftest.err
5171 } && test -s conftest.$ac_objext; then
5174 echo "$as_me: failed program was:" >&5
5175 sed 's/^/| /' conftest.$ac_ext >&5
5178 cat >conftest.$ac_ext <<_ACEOF
5181 cat confdefs.h >>conftest.$ac_ext
5182 cat >>conftest.$ac_ext <<_ACEOF
5183 /* end confdefs.h. */
5193 rm -f conftest.$ac_objext
5194 if { (ac_try="$ac_compile"
5196 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5197 *) ac_try_echo
=$ac_try;;
5199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5200 (eval "$ac_compile") 2>conftest.er1
5202 grep -v '^ *+' conftest.er1
>conftest.err
5204 cat conftest.err
>&5
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); } && {
5207 test -z "$ac_c_werror_flag" ||
5208 test ! -s conftest.err
5209 } && test -s conftest.
$ac_objext; then
5212 echo "$as_me: failed program was:" >&5
5213 sed 's/^/| /' conftest.
$ac_ext >&5
5215 ac_c_werror_flag
=$ac_save_c_werror_flag
5217 cat >conftest.
$ac_ext <<_ACEOF
5220 cat confdefs.h
>>conftest.
$ac_ext
5221 cat >>conftest.
$ac_ext <<_ACEOF
5222 /* end confdefs.h. */
5232 rm -f conftest.
$ac_objext
5233 if { (ac_try
="$ac_compile"
5235 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5236 *) ac_try_echo=$ac_try;;
5238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5239 (eval "$ac_compile") 2>conftest.er1
5241 grep -v '^ *+' conftest.er1 >conftest.err
5243 cat conftest.err >&5
5244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245 (exit $ac_status); } && {
5246 test -z "$ac_c_werror_flag" ||
5247 test ! -s conftest.err
5248 } && test -s conftest.$ac_objext; then
5251 echo "$as_me: failed program was:" >&5
5252 sed 's/^/| /' conftest.$ac_ext >&5
5257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5264 ac_c_werror_flag=$ac_save_c_werror_flag
5266 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5267 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5268 if test "$ac_test_CFLAGS" = set; then
5269 CFLAGS=$ac_save_CFLAGS
5270 elif test $ac_cv_prog_cc_g = yes; then
5271 if test "$GCC" = yes; then
5277 if test "$GCC" = yes; then
5283 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5284 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5285 if test "${ac_cv_prog_cc_c89+set}" = set; then
5286 echo $ECHO_N "(cached) $ECHO_C" >&6
5288 ac_cv_prog_cc_c89=no
5290 cat >conftest.$ac_ext <<_ACEOF
5293 cat confdefs.h >>conftest.$ac_ext
5294 cat >>conftest.$ac_ext <<_ACEOF
5295 /* end confdefs.h. */
5298 #include <sys/types.h>
5299 #include <sys/stat.h>
5300 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5301 struct buf { int x; };
5302 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5303 static char *e (p, i)
5309 static char *f (char * (*g) (char **, int), char **p, ...)
5314 s = g (p, va_arg (v,int));
5319 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5320 function prototypes and stuff, but not '\xHH' hex character constants.
5321 These don't provoke an error unfortunately, instead are silently treated
5322 as 'x'. The following induces an error, until -std is added to get
5323 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5324 array size at least. It's necessary to write '\x00'==0 to get something
5325 that's true only with -std. */
5326 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5328 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5329 inside strings and character constants. */
5331 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5333 int test (int i, double x);
5334 struct s1 {int (*f) (int a);};
5335 struct s2 {int (*f) (double a);};
5336 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5342 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5347 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5348 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5350 CC="$ac_save_CC $ac_arg"
5351 rm -f conftest.$ac_objext
5352 if { (ac_try="$ac_compile"
5354 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5355 *) ac_try_echo
=$ac_try;;
5357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5358 (eval "$ac_compile") 2>conftest.er1
5360 grep -v '^ *+' conftest.er1
>conftest.err
5362 cat conftest.err
>&5
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); } && {
5365 test -z "$ac_c_werror_flag" ||
5366 test ! -s conftest.err
5367 } && test -s conftest.
$ac_objext; then
5368 ac_cv_prog_cc_c89
=$ac_arg
5370 echo "$as_me: failed program was:" >&5
5371 sed 's/^/| /' conftest.
$ac_ext >&5
5376 rm -f core conftest.err conftest.
$ac_objext
5377 test "x$ac_cv_prog_cc_c89" != "xno" && break
5379 rm -f conftest.
$ac_ext
5384 case "x$ac_cv_prog_cc_c89" in
5386 { echo "$as_me:$LINENO: result: none needed" >&5
5387 echo "${ECHO_T}none needed" >&6; } ;;
5389 { echo "$as_me:$LINENO: result: unsupported" >&5
5390 echo "${ECHO_T}unsupported" >&6; } ;;
5392 CC
="$CC $ac_cv_prog_cc_c89"
5393 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5394 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5399 ac_cpp
='$CPP $CPPFLAGS'
5400 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5401 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5402 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5404 depcc
="$CC" am_compiler_list
=
5406 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5407 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5408 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5409 echo $ECHO_N "(cached) $ECHO_C" >&6
5411 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5412 # We make a subdir and do the tests there. Otherwise we can end up
5413 # making bogus files that we don't know about and never remove. For
5414 # instance it was reported that on HP-UX the gcc test will end up
5415 # making a dummy file named `D' -- because `-MD' means `put the output
5418 # Copy depcomp to subdir because otherwise we won't find it if we're
5419 # using a relative directory.
5420 cp "$am_depcomp" conftest.dir
5422 # We will build objects and dependencies in a subdirectory because
5423 # it helps to detect inapplicable dependency modes. For instance
5424 # both Tru64's cc and ICC support -MD to output dependencies as a
5425 # side effect of compilation, but ICC will put the dependencies in
5426 # the current directory while Tru64 will put them in the object
5430 am_cv_CC_dependencies_compiler_type
=none
5431 if test "$am_compiler_list" = ""; then
5432 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5434 for depmode
in $am_compiler_list; do
5435 # Setup a source with many dependencies, because some compilers
5436 # like to wrap large dependency lists on column 80 (with \), and
5437 # we should not choose a depcomp mode which is confused by this.
5439 # We need to recreate these files for each test, as the compiler may
5440 # overwrite some of them when testing with obscure command lines.
5441 # This happens at least with the AIX C compiler.
5443 for i
in 1 2 3 4 5 6; do
5444 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5445 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5446 # Solaris 8's {/usr,}/bin/sh.
5447 touch sub
/conftst
$i.h
5449 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5453 # after this tag, mechanisms are not by side-effect, so they'll
5454 # only be used when explicitly requested
5455 if test "x$enable_dependency_tracking" = xyes
; then
5463 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5464 # mode. It turns out that the SunPro C++ compiler does not properly
5465 # handle `-M -o', and we need to detect this.
5466 if depmode
=$depmode \
5467 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
5468 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5469 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
5470 >/dev
/null
2>conftest.err
&&
5471 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5472 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
5473 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5474 # icc doesn't choke on unknown options, it will just issue warnings
5475 # or remarks (even with -Werror). So we grep stderr for any message
5476 # that says an option was ignored or not supported.
5477 # When given -MP, icc 7.0 and 7.1 complain thusly:
5478 # icc: Command line warning: ignoring option '-M'; no argument required
5479 # The diagnosis changed in icc 8.0:
5480 # icc: Command line remark: option '-MP' not supported
5481 if (grep 'ignoring option' conftest.err ||
5482 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5483 am_cv_CC_dependencies_compiler_type
=$depmode
5492 am_cv_CC_dependencies_compiler_type
=none
5496 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5497 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5498 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5503 test "x$enable_dependency_tracking" != xno \
5504 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5506 am__fastdepCC_FALSE
='#'
5508 am__fastdepCC_TRUE
='#'
5509 am__fastdepCC_FALSE
=
5513 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5514 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5515 if test "${ac_cv_path_GREP+set}" = set; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
5518 # Extract the first word of "grep ggrep" to use in msg output
5519 if test -z "$GREP"; then
5520 set dummy
grep ggrep
; ac_prog_name
=$2
5521 if test "${ac_cv_path_GREP+set}" = set; then
5522 echo $ECHO_N "(cached) $ECHO_C" >&6
5524 ac_path_GREP_found
=false
5525 # Loop through the user's path and test for each of PROGNAME-LIST
5526 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5527 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5530 test -z "$as_dir" && as_dir
=.
5531 for ac_prog
in grep ggrep
; do
5532 for ac_exec_ext
in '' $ac_executable_extensions; do
5533 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5534 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5535 # Check for GNU ac_path_GREP and select it if it is found.
5536 # Check for GNU $ac_path_GREP
5537 case `"$ac_path_GREP" --version 2>&1` in
5539 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5542 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5545 cat "conftest.in" "conftest.in" >"conftest.tmp"
5546 mv "conftest.tmp" "conftest.in"
5547 cp "conftest.in" "conftest.nl"
5548 echo 'GREP' >> "conftest.nl"
5549 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5550 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5551 ac_count
=`expr $ac_count + 1`
5552 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5553 # Best one so far, save it but keep looking for a better one
5554 ac_cv_path_GREP
="$ac_path_GREP"
5555 ac_path_GREP_max
=$ac_count
5557 # 10*(2^10) chars as input seems more than enough
5558 test $ac_count -gt 10 && break
5560 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5564 $ac_path_GREP_found && break 3
5574 GREP
="$ac_cv_path_GREP"
5575 if test -z "$GREP"; then
5576 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5577 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5578 { (exit 1); exit 1; }; }
5582 ac_cv_path_GREP
=$GREP
5587 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5588 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5589 GREP
="$ac_cv_path_GREP"
5592 { echo "$as_me:$LINENO: checking for egrep" >&5
5593 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5594 if test "${ac_cv_path_EGREP+set}" = set; then
5595 echo $ECHO_N "(cached) $ECHO_C" >&6
5597 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5598 then ac_cv_path_EGREP
="$GREP -E"
5600 # Extract the first word of "egrep" to use in msg output
5601 if test -z "$EGREP"; then
5602 set dummy
egrep; ac_prog_name
=$2
5603 if test "${ac_cv_path_EGREP+set}" = set; then
5604 echo $ECHO_N "(cached) $ECHO_C" >&6
5606 ac_path_EGREP_found
=false
5607 # Loop through the user's path and test for each of PROGNAME-LIST
5608 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5609 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5612 test -z "$as_dir" && as_dir
=.
5613 for ac_prog
in egrep; do
5614 for ac_exec_ext
in '' $ac_executable_extensions; do
5615 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5616 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5617 # Check for GNU ac_path_EGREP and select it if it is found.
5618 # Check for GNU $ac_path_EGREP
5619 case `"$ac_path_EGREP" --version 2>&1` in
5621 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5624 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5627 cat "conftest.in" "conftest.in" >"conftest.tmp"
5628 mv "conftest.tmp" "conftest.in"
5629 cp "conftest.in" "conftest.nl"
5630 echo 'EGREP' >> "conftest.nl"
5631 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5632 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5633 ac_count
=`expr $ac_count + 1`
5634 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5635 # Best one so far, save it but keep looking for a better one
5636 ac_cv_path_EGREP
="$ac_path_EGREP"
5637 ac_path_EGREP_max
=$ac_count
5639 # 10*(2^10) chars as input seems more than enough
5640 test $ac_count -gt 10 && break
5642 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5646 $ac_path_EGREP_found && break 3
5656 EGREP
="$ac_cv_path_EGREP"
5657 if test -z "$EGREP"; then
5658 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5659 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5660 { (exit 1); exit 1; }; }
5664 ac_cv_path_EGREP
=$EGREP
5670 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5671 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5672 EGREP
="$ac_cv_path_EGREP"
5675 { echo "$as_me:$LINENO: checking for fgrep" >&5
5676 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5677 if test "${ac_cv_path_FGREP+set}" = set; then
5678 echo $ECHO_N "(cached) $ECHO_C" >&6
5680 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
5681 then ac_cv_path_FGREP
="$GREP -F"
5683 # Extract the first word of "fgrep" to use in msg output
5684 if test -z "$FGREP"; then
5685 set dummy fgrep
; ac_prog_name
=$2
5686 if test "${ac_cv_path_FGREP+set}" = set; then
5687 echo $ECHO_N "(cached) $ECHO_C" >&6
5689 ac_path_FGREP_found
=false
5690 # Loop through the user's path and test for each of PROGNAME-LIST
5691 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5692 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5695 test -z "$as_dir" && as_dir
=.
5696 for ac_prog
in fgrep
; do
5697 for ac_exec_ext
in '' $ac_executable_extensions; do
5698 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
5699 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
5700 # Check for GNU ac_path_FGREP and select it if it is found.
5701 # Check for GNU $ac_path_FGREP
5702 case `"$ac_path_FGREP" --version 2>&1` in
5704 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
5707 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5710 cat "conftest.in" "conftest.in" >"conftest.tmp"
5711 mv "conftest.tmp" "conftest.in"
5712 cp "conftest.in" "conftest.nl"
5713 echo 'FGREP' >> "conftest.nl"
5714 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5715 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5716 ac_count
=`expr $ac_count + 1`
5717 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5718 # Best one so far, save it but keep looking for a better one
5719 ac_cv_path_FGREP
="$ac_path_FGREP"
5720 ac_path_FGREP_max
=$ac_count
5722 # 10*(2^10) chars as input seems more than enough
5723 test $ac_count -gt 10 && break
5725 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5729 $ac_path_FGREP_found && break 3
5739 FGREP
="$ac_cv_path_FGREP"
5740 if test -z "$FGREP"; then
5741 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5742 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5743 { (exit 1); exit 1; }; }
5747 ac_cv_path_FGREP
=$FGREP
5753 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5754 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5755 FGREP
="$ac_cv_path_FGREP"
5758 test -z "$GREP" && GREP
=grep
5778 # Check whether --with-gnu-ld was given.
5779 if test "${with_gnu_ld+set}" = set; then
5780 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
5786 if test "$GCC" = yes; then
5787 # Check if gcc -print-prog-name=ld gives a path.
5788 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5789 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5792 # gcc leaves a trailing carriage return which upsets mingw
5793 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5795 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
5798 # Accept absolute paths.
5800 re_direlt
='/[^/][^/]*/\.\./'
5801 # Canonicalize the pathname of ld
5802 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5803 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
5804 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5806 test -z "$LD" && LD
="$ac_prog"
5809 # If it fails, then pretend we aren't using GCC.
5813 # If it is relative, then search for the first ld in PATH.
5817 elif test "$with_gnu_ld" = yes; then
5818 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5819 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5821 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5822 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5824 if test "${lt_cv_path_LD+set}" = set; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
5827 if test -z "$LD"; then
5828 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5829 for ac_dir
in $PATH; do
5831 test -z "$ac_dir" && ac_dir
=.
5832 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
5833 lt_cv_path_LD
="$ac_dir/$ac_prog"
5834 # Check to see if the program is GNU ld. I'd rather use --version,
5835 # but apparently some variants of GNU ld only accept -v.
5836 # Break only if it was the GNU/non-GNU ld that we prefer.
5837 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5838 *GNU
* |
*'with BFD'*)
5839 test "$with_gnu_ld" != no
&& break
5842 test "$with_gnu_ld" != yes && break
5849 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
5854 if test -n "$LD"; then
5855 { echo "$as_me:$LINENO: result: $LD" >&5
5856 echo "${ECHO_T}$LD" >&6; }
5858 { echo "$as_me:$LINENO: result: no" >&5
5859 echo "${ECHO_T}no" >&6; }
5861 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5862 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5863 { (exit 1); exit 1; }; }
5864 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5865 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5866 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5867 echo $ECHO_N "(cached) $ECHO_C" >&6
5869 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5870 case `$LD -v 2>&1 </dev/null` in
5871 *GNU
* |
*'with BFD'*)
5872 lt_cv_prog_gnu_ld
=yes
5875 lt_cv_prog_gnu_ld
=no
5879 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5880 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5881 with_gnu_ld
=$lt_cv_prog_gnu_ld
5892 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5893 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5894 if test "${lt_cv_path_NM+set}" = set; then
5895 echo $ECHO_N "(cached) $ECHO_C" >&6
5897 if test -n "$NM"; then
5898 # Let the user override the test.
5901 lt_nm_to_check
="${ac_tool_prefix}nm"
5902 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5903 lt_nm_to_check
="$lt_nm_to_check nm"
5905 for lt_tmp_nm
in $lt_nm_to_check; do
5906 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5907 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
5909 test -z "$ac_dir" && ac_dir
=.
5910 tmp_nm
="$ac_dir/$lt_tmp_nm"
5911 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
5912 # Check to see if the nm accepts a BSD-compat flag.
5913 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5914 # nm: unknown option "B" ignored
5915 # Tru64's nm complains that /dev/null is an invalid object file
5916 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5917 */dev
/null
* |
*'Invalid file or object type'*)
5918 lt_cv_path_NM
="$tmp_nm -B"
5922 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5924 lt_cv_path_NM
="$tmp_nm -p"
5928 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5929 continue # so that we can try to find one that supports BSD flags
5938 : ${lt_cv_path_NM=no}
5941 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5942 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5943 if test "$lt_cv_path_NM" != "no"; then
5946 # Didn't find any BSD compatible name lister, look for dumpbin.
5947 if test -n "$ac_tool_prefix"; then
5948 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
5950 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5951 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5954 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5955 echo $ECHO_N "(cached) $ECHO_C" >&6
5957 if test -n "$DUMPBIN"; then
5958 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
5960 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5964 test -z "$as_dir" && as_dir
=.
5965 for ac_exec_ext
in '' $ac_executable_extensions; do
5966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5967 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
5968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5977 DUMPBIN
=$ac_cv_prog_DUMPBIN
5978 if test -n "$DUMPBIN"; then
5979 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5980 echo "${ECHO_T}$DUMPBIN" >&6; }
5982 { echo "$as_me:$LINENO: result: no" >&5
5983 echo "${ECHO_T}no" >&6; }
5987 test -n "$DUMPBIN" && break
5990 if test -z "$DUMPBIN"; then
5991 ac_ct_DUMPBIN
=$DUMPBIN
5992 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
5994 # Extract the first word of "$ac_prog", so it can be a program name with args.
5995 set dummy
$ac_prog; ac_word
=$2
5996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5998 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5999 echo $ECHO_N "(cached) $ECHO_C" >&6
6001 if test -n "$ac_ct_DUMPBIN"; then
6002 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
6004 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6008 test -z "$as_dir" && as_dir
=.
6009 for ac_exec_ext
in '' $ac_executable_extensions; do
6010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6011 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
6012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6021 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
6022 if test -n "$ac_ct_DUMPBIN"; then
6023 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
6024 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
6026 { echo "$as_me:$LINENO: result: no" >&5
6027 echo "${ECHO_T}no" >&6; }
6031 test -n "$ac_ct_DUMPBIN" && break
6034 if test "x$ac_ct_DUMPBIN" = x
; then
6037 case $cross_compiling:$ac_tool_warned in
6039 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6040 whose name does not start with the host triplet. If you think this
6041 configuration is useful to you, please write to autoconf@gnu.org." >&5
6042 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6043 whose name does not start with the host triplet. If you think this
6044 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6045 ac_tool_warned
=yes ;;
6047 DUMPBIN
=$ac_ct_DUMPBIN
6052 if test "$DUMPBIN" != ":"; then
6056 test -z "$NM" && NM
=nm
6063 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
6064 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
6065 if test "${lt_cv_nm_interface+set}" = set; then
6066 echo $ECHO_N "(cached) $ECHO_C" >&6
6068 lt_cv_nm_interface
="BSD nm"
6069 echo "int some_variable = 0;" > conftest.
$ac_ext
6070 (eval echo "\"\$as_me:6070: $ac_compile\"" >&5)
6071 (eval "$ac_compile" 2>conftest.err
)
6072 cat conftest.err
>&5
6073 (eval echo "\"\$as_me:6073: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6074 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
6075 cat conftest.err
>&5
6076 (eval echo "\"\$as_me:6076: output\"" >&5)
6077 cat conftest.out
>&5
6078 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
6079 lt_cv_nm_interface
="MS dumpbin"
6083 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6084 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
6086 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6087 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6089 if test "$LN_S" = "ln -s"; then
6090 { echo "$as_me:$LINENO: result: yes" >&5
6091 echo "${ECHO_T}yes" >&6; }
6093 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6094 echo "${ECHO_T}no, using $LN_S" >&6; }
6097 # find the maximum length of command line arguments
6098 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6099 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6100 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6101 echo $ECHO_N "(cached) $ECHO_C" >&6
6108 # On DJGPP, this test can blow up pretty badly due to problems in libc
6109 # (any single argument exceeding 2000 bytes causes a buffer overrun
6110 # during glob expansion). Even if it were fixed, the result of this
6111 # check would be larger than it should be.
6112 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
6116 # Under GNU Hurd, this test is not required because there is
6117 # no limit to the length of command line arguments.
6118 # Libtool will interpret -1 as no limit whatsoever
6119 lt_cv_sys_max_cmd_len
=-1;
6123 # On Win9x/ME, this test blows up -- it succeeds, but takes
6124 # about 5 minutes as the teststring grows exponentially.
6125 # Worse, since 9x/ME are not pre-emptively multitasking,
6126 # you end up with a "frozen" computer, even though with patience
6127 # the test eventually succeeds (with a max line length of 256k).
6128 # Instead, let's just punt: use the minimum linelength reported by
6129 # all of the supported platforms: 8192 (on NT/2K/XP).
6130 lt_cv_sys_max_cmd_len
=8192;
6134 # On AmigaOS with pdksh, this test takes hours, literally.
6135 # So we just punt and use a minimum line length of 8192.
6136 lt_cv_sys_max_cmd_len
=8192;
6139 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
6140 # This has been around since 386BSD, at least. Likely further.
6141 if test -x /sbin
/sysctl
; then
6142 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
6143 elif test -x /usr
/sbin
/sysctl
; then
6144 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
6146 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
6148 # And add a safety zone
6149 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6150 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6154 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6155 lt_cv_sys_max_cmd_len
=196608
6159 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6160 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6161 # nice to cause kernel panics so lets avoid the loop below.
6162 # First set a reasonable default.
6163 lt_cv_sys_max_cmd_len
=16384
6165 if test -x /sbin
/sysconfig
; then
6166 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6167 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
6172 lt_cv_sys_max_cmd_len
=102400
6174 sysv5
* | sco5v6
* | sysv4.2uw2
*)
6175 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6176 if test -n "$kargmax"; then
6177 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
6179 lt_cv_sys_max_cmd_len
=32768
6183 lt_cv_sys_max_cmd_len
=`getconf ARG_MAX 2> /dev/null`
6184 if test -n $lt_cv_sys_max_cmd_len; then
6185 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6186 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6188 # Make teststring a little bigger before we do anything with it.
6189 # a 1K string should be a reasonable start.
6190 for i
in 1 2 3 4 5 6 7 8 ; do
6191 teststring
=$teststring$teststring
6193 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
6194 # If test is not a shell built-in, we'll probably end up computing a
6195 # maximum length that is only half of the actual maximum length, but
6197 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6198 = "XX$teststring$teststring"; } >/dev
/null
2>&1 &&
6199 test $i != 17 # 1/2 MB should be enough
6202 teststring
=$teststring$teststring
6204 # Only check the string length outside the loop.
6205 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
6207 # Add a significant safety factor because C++ compilers can tack on
6208 # massive amounts of additional arguments before passing them to the
6209 # linker. It appears as though 1/2 is a usable value.
6210 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
6217 if test -n $lt_cv_sys_max_cmd_len ; then
6218 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6219 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6221 { echo "$as_me:$LINENO: result: none" >&5
6222 echo "${ECHO_T}none" >&6; }
6224 max_cmd_len
=$lt_cv_sys_max_cmd_len
6235 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6236 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6237 # Try some XSI features
6240 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6241 = c,a/b,, ) >/dev/null 2>&1 \
6243 { echo "$as_me:$LINENO: result
: $xsi_shell" >&5
6244 echo "${ECHO_T}$xsi_shell" >&6; }
6247 { echo "$as_me:$LINENO: checking whether the shell understands
\"+=\"" >&5
6248 echo $ECHO_N "checking whether the shell understands
\"+=\"...
$ECHO_C" >&6; }
6250 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
6252 && lt_shell_append=yes
6253 { echo "$as_me:$LINENO: result
: $lt_shell_append" >&5
6254 echo "${ECHO_T}$lt_shell_append" >&6; }
6257 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6267 # test EBCDIC or ASCII
6268 case `echo X|tr X '\101'` in
6269 A) # ASCII based system
6270 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6271 lt_SP2NL='tr \040 \012'
6272 lt_NL2SP='tr \015\012 \040\040'
6274 *) # EBCDIC based system
6275 lt_SP2NL='tr \100 \n'
6276 lt_NL2SP='tr \r\n \100\100'
6288 { echo "$as_me:$LINENO: checking
for $LD option to reload object files
" >&5
6289 echo $ECHO_N "checking
for $LD option to reload object files...
$ECHO_C" >&6; }
6290 if test "${lt_cv_ld_reload_flag+set}" = set; then
6291 echo $ECHO_N "(cached
) $ECHO_C" >&6
6293 lt_cv_ld_reload_flag='-r'
6295 { echo "$as_me:$LINENO: result
: $lt_cv_ld_reload_flag" >&5
6296 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6297 reload_flag=$lt_cv_ld_reload_flag
6298 case $reload_flag in
6300 *) reload_flag=" $reload_flag" ;;
6302 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6305 if test "$GCC" = yes; then
6306 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6308 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6322 { echo "$as_me:$LINENO: checking how to recognize dependent libraries
" >&5
6323 echo $ECHO_N "checking how to recognize dependent libraries...
$ECHO_C" >&6; }
6324 if test "${lt_cv_deplibs_check_method+set}" = set; then
6325 echo $ECHO_N "(cached
) $ECHO_C" >&6
6327 lt_cv_file_magic_cmd='$MAGIC_CMD'
6328 lt_cv_file_magic_test_file=
6329 lt_cv_deplibs_check_method='unknown'
6330 # Need to set the preceding variable on all platforms that support
6331 # interlibrary dependencies.
6332 # 'none' -- dependencies not supported.
6333 # `unknown' -- same as none, but documents that we really don't know.
6334 # 'pass_all' -- all dependencies passed with no checks.
6335 # 'test_compile' -- check by making test program.
6336 # 'file_magic [[regex]]' -- check by looking for files in library path
6337 # which responds to the $file_magic_cmd with a given extended regex.
6338 # If you have `file' or equivalent on your system and you're not sure
6339 # whether `pass_all' will *always* work, you probably want this one.
6343 lt_cv_deplibs_check_method=pass_all
6347 lt_cv_deplibs_check_method=pass_all
6351 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6352 lt_cv_file_magic_cmd='/usr/bin/file -L'
6353 lt_cv_file_magic_test_file=/shlib/libc.so
6357 # func_win32_libid is a shell function defined in ltmain.sh
6358 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6359 lt_cv_file_magic_cmd='func_win32_libid'
6363 # Base MSYS/MinGW do not provide the 'file' command needed by
6364 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6365 # unless we find 'file', for example because we are cross-compiling.
6366 if ( file / ) >/dev/null 2>&1; then
6367 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6368 lt_cv_file_magic_cmd='func_win32_libid'
6370 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6371 lt_cv_file_magic_cmd='$OBJDUMP -f'
6375 darwin* | rhapsody*)
6376 lt_cv_deplibs_check_method=pass_all
6379 freebsd* | dragonfly*)
6380 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6383 # Not sure whether the presence of OpenBSD here was a mistake.
6384 # Let's accept both of them until this is cleared up.
6385 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6386 lt_cv_file_magic_cmd=/usr/bin/file
6387 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6391 lt_cv_deplibs_check_method=pass_all
6396 lt_cv_deplibs_check_method=pass_all
6399 hpux10.20* | hpux11*)
6400 lt_cv_file_magic_cmd=/usr/bin/file
6403 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6404 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6407 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]'
6408 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6411 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6412 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6418 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6419 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6422 irix5* | irix6* | nonstopux*)
6424 *-32|*"-32 ") libmagic=32-bit;;
6425 *-n32|*"-n32 ") libmagic=N32;;
6426 *-64|*"-64 ") libmagic=64-bit;;
6427 *) libmagic=never-match;;
6429 lt_cv_deplibs_check_method=pass_all
6432 # This must be Linux ELF.
6433 linux* | k*bsd*-gnu)
6434 lt_cv_deplibs_check_method=pass_all
6438 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6439 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6441 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6446 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6447 lt_cv_file_magic_cmd=/usr/bin/file
6448 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6452 lt_cv_deplibs_check_method=pass_all
6456 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
6457 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6459 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6463 osf3* | osf4* | osf5*)
6464 lt_cv_deplibs_check_method=pass_all
6468 lt_cv_deplibs_check_method=pass_all
6472 lt_cv_deplibs_check_method=pass_all
6475 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6476 lt_cv_deplibs_check_method=pass_all
6480 case $host_vendor in
6482 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]'
6483 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6486 lt_cv_deplibs_check_method=pass_all
6489 lt_cv_file_magic_cmd='/bin/file'
6490 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6493 lt_cv_file_magic_cmd='/bin/file'
6494 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
6495 lt_cv_file_magic_test_file=/lib/libc.so
6498 lt_cv_deplibs_check_method=pass_all
6501 lt_cv_deplibs_check_method=pass_all
6507 lt_cv_deplibs_check_method=pass_all
6512 { echo "$as_me:$LINENO: result
: $lt_cv_deplibs_check_method" >&5
6513 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6514 file_magic_cmd=$lt_cv_file_magic_cmd
6515 deplibs_check_method=$lt_cv_deplibs_check_method
6516 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6529 if test -n "$ac_tool_prefix"; then
6530 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6531 set dummy ${ac_tool_prefix}ar; ac_word=$2
6532 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
6533 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
6534 if test "${ac_cv_prog_AR+set}" = set; then
6535 echo $ECHO_N "(cached
) $ECHO_C" >&6
6537 if test -n "$AR"; then
6538 ac_cv_prog_AR="$AR" # Let the user override the test.
6540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6544 test -z "$as_dir" && as_dir=.
6545 for ac_exec_ext in '' $ac_executable_extensions; do
6546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6547 ac_cv_prog_AR="${ac_tool_prefix}ar"
6548 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6558 if test -n "$AR"; then
6559 { echo "$as_me:$LINENO: result
: $AR" >&5
6560 echo "${ECHO_T}$AR" >&6; }
6562 { echo "$as_me:$LINENO: result
: no
" >&5
6563 echo "${ECHO_T}no
" >&6; }
6568 if test -z "$ac_cv_prog_AR"; then
6570 # Extract the first word of "ar", so it can be a program name with args.
6571 set dummy ar; ac_word=$2
6572 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
6573 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
6574 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6575 echo $ECHO_N "(cached
) $ECHO_C" >&6
6577 if test -n "$ac_ct_AR"; then
6578 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584 test -z "$as_dir" && as_dir=.
6585 for ac_exec_ext in '' $ac_executable_extensions; do
6586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6587 ac_cv_prog_ac_ct_AR="ar"
6588 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6597 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6598 if test -n "$ac_ct_AR"; then
6599 { echo "$as_me:$LINENO: result
: $ac_ct_AR" >&5
6600 echo "${ECHO_T}$ac_ct_AR" >&6; }
6602 { echo "$as_me:$LINENO: result
: no
" >&5
6603 echo "${ECHO_T}no
" >&6; }
6606 if test "x
$ac_ct_AR" = x; then
6609 case $cross_compiling:$ac_tool_warned in
6611 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
6612 whose name does not start with the
host triplet. If you think this
6613 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
6614 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
6615 whose name does not start with the
host triplet. If you think this
6616 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
6617 ac_tool_warned=yes ;;
6625 test -z "$AR" && AR=ar
6626 test -z "$AR_FLAGS" && AR_FLAGS=cru
6638 if test -n "$ac_tool_prefix"; then
6639 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
6640 set dummy ${ac_tool_prefix}strip; ac_word=$2
6641 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
6642 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
6643 if test "${ac_cv_prog_STRIP+set}" = set; then
6644 echo $ECHO_N "(cached
) $ECHO_C" >&6
6646 if test -n "$STRIP"; then
6647 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6653 test -z "$as_dir" && as_dir=.
6654 for ac_exec_ext in '' $ac_executable_extensions; do
6655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6656 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
6657 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6666 STRIP=$ac_cv_prog_STRIP
6667 if test -n "$STRIP"; then
6668 { echo "$as_me:$LINENO: result
: $STRIP" >&5
6669 echo "${ECHO_T}$STRIP" >&6; }
6671 { echo "$as_me:$LINENO: result
: no
" >&5
6672 echo "${ECHO_T}no
" >&6; }
6677 if test -z "$ac_cv_prog_STRIP"; then
6679 # Extract the first word of "strip
", so it can be a program name with args.
6680 set dummy strip; ac_word=$2
6681 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
6682 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
6683 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6684 echo $ECHO_N "(cached
) $ECHO_C" >&6
6686 if test -n "$ac_ct_STRIP"; then
6687 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693 test -z "$as_dir" && as_dir=.
6694 for ac_exec_ext in '' $ac_executable_extensions; do
6695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6696 ac_cv_prog_ac_ct_STRIP="strip
"
6697 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6706 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6707 if test -n "$ac_ct_STRIP"; then
6708 { echo "$as_me:$LINENO: result
: $ac_ct_STRIP" >&5
6709 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6711 { echo "$as_me:$LINENO: result
: no
" >&5
6712 echo "${ECHO_T}no
" >&6; }
6715 if test "x
$ac_ct_STRIP" = x; then
6718 case $cross_compiling:$ac_tool_warned in
6720 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
6721 whose name does not start with the
host triplet. If you think this
6722 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
6723 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
6724 whose name does not start with the
host triplet. If you think this
6725 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
6726 ac_tool_warned=yes ;;
6731 STRIP="$ac_cv_prog_STRIP"
6734 test -z "$STRIP" && STRIP=:
6741 if test -n "$ac_tool_prefix"; then
6742 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
6743 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6744 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
6745 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
6746 if test "${ac_cv_prog_RANLIB+set}" = set; then
6747 echo $ECHO_N "(cached
) $ECHO_C" >&6
6749 if test -n "$RANLIB"; then
6750 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6756 test -z "$as_dir" && as_dir=.
6757 for ac_exec_ext in '' $ac_executable_extensions; do
6758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6759 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
6760 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6769 RANLIB=$ac_cv_prog_RANLIB
6770 if test -n "$RANLIB"; then
6771 { echo "$as_me:$LINENO: result
: $RANLIB" >&5
6772 echo "${ECHO_T}$RANLIB" >&6; }
6774 { echo "$as_me:$LINENO: result
: no
" >&5
6775 echo "${ECHO_T}no
" >&6; }
6780 if test -z "$ac_cv_prog_RANLIB"; then
6781 ac_ct_RANLIB=$RANLIB
6782 # Extract the first word of "ranlib
", so it can be a program name with args.
6783 set dummy ranlib; ac_word=$2
6784 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
6785 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
6786 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6787 echo $ECHO_N "(cached
) $ECHO_C" >&6
6789 if test -n "$ac_ct_RANLIB"; then
6790 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6796 test -z "$as_dir" && as_dir=.
6797 for ac_exec_ext in '' $ac_executable_extensions; do
6798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6799 ac_cv_prog_ac_ct_RANLIB="ranlib
"
6800 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6809 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6810 if test -n "$ac_ct_RANLIB"; then
6811 { echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
6812 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6814 { echo "$as_me:$LINENO: result
: no
" >&5
6815 echo "${ECHO_T}no
" >&6; }
6818 if test "x
$ac_ct_RANLIB" = x; then
6821 case $cross_compiling:$ac_tool_warned in
6823 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
6824 whose name does not start with the
host triplet. If you think this
6825 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
6826 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
6827 whose name does not start with the
host triplet. If you think this
6828 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
6829 ac_tool_warned=yes ;;
6831 RANLIB=$ac_ct_RANLIB
6834 RANLIB="$ac_cv_prog_RANLIB"
6837 test -z "$RANLIB" && RANLIB=:
6844 # Determine commands to create old-style static archives.
6845 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6846 old_postinstall_cmds='chmod 644 $oldlib'
6847 old_postuninstall_cmds=
6849 if test -n "$RANLIB"; then
6852 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
6855 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
6858 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
6894 # If no C compiler was specified, use CC.
6897 # If no C compiler flags were specified, use CFLAGS.
6898 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6900 # Allow CC to be a program name with arguments.
6904 # Check for command to grab the raw symbol name followed by C symbol from nm.
6905 { echo "$as_me:$LINENO: checking
command to parse
$NM output from
$compiler object
" >&5
6906 echo $ECHO_N "checking
command to parse
$NM output from
$compiler object...
$ECHO_C" >&6; }
6907 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6908 echo $ECHO_N "(cached
) $ECHO_C" >&6
6911 # These are sane defaults that work on at least a few old systems.
6912 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6914 # Character class describing NM global symbol codes.
6915 symcode='[BCDEGRST]'
6917 # Regexp to match symbols that can be accessed directly from C.
6918 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6920 # Define system-specific variables.
6925 cygwin* | mingw* | pw32*)
6926 symcode='[ABCDGISTW]'
6929 if test "$host_cpu" = ia64; then
6930 symcode='[ABCDEGRST]'
6934 symcode='[BCDEGRST]'
6937 symcode='[BCDEGQRST]'
6948 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6956 # If we're using GNU nm, then use its standard symbol codes.
6957 case `$NM -V 2>&1` in
6958 *GNU* | *'with BFD'*)
6959 symcode='[ABCDGIRSTW]' ;;
6962 # Transform an extracted symbol line into a proper C declaration.
6963 # Some systems (esp. on ia64) link data and code symbols differently,
6964 # so use this general approach.
6965 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6967 # Transform an extracted symbol line into symbol name and symbol address
6968 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6970 # Handle CRLF in mingw tool chain
6974 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6978 # Try without a prefix underscore, then with it.
6979 for ac_symprfx in "" "_
"; do
6981 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6982 symxfrm="\\1 $ac_symprfx\\2 \\2"
6984 # Write the raw and C identifiers.
6985 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6986 # Fake it for dumpbin and say T for any non-static function
6987 # and D for any global variable.
6988 # Also find C++ and __fastcall symbols from MSVC++,
6989 # which start with @ or ?.
6990 lt_cv_sys_global_symbol_pipe="$AWK '"\
6991 " {last_section=section; section=\$ 3};"\
6992 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6993 " \$ 0!~/External *\|/{next};"\
6994 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6995 " {if(hide[section]) next};"\
6996 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6997 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6998 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6999 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7000 " ' prfx
=^
$ac_symprfx"
7002 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7005 # Check to see that the pipe works correctly.
7009 cat > conftest.$ac_ext <<_LT_EOF
7014 void nm_test_func(void);
7015 void nm_test_func(void){}
7019 int main(){nm_test_var='a';nm_test_func();return(0);}
7022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7023 (eval $ac_compile) 2>&5
7025 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7026 (exit $ac_status); }; then
7027 # Now try to grab the symbols.
7029 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist\"") >&5
7030 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7032 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7033 (exit $ac_status); } && test -s "$nlist"; then
7034 # Try sorting and uniquifying the output.
7035 if sort "$nlist" | uniq > "$nlist"T; then
7036 mv -f "$nlist"T "$nlist"
7041 # Make sure that we snagged all the symbols we need.
7042 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7043 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7044 cat <<_LT_EOF > conftest.$ac_ext
7050 # Now generate the symbol file.
7051 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7053 cat <<_LT_EOF >> conftest.$ac_ext
7055 /* The mapping between symbol names and symbols. */
7060 lt__PROGRAM__LTX_preloaded_symbols[] =
7062 { "@PROGRAM@
", (void *) 0 },
7064 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7065 cat <<\_LT_EOF >> conftest.$ac_ext
7069 /* This works around a problem in FreeBSD linker */
7070 #ifdef FREEBSD_WORKAROUND
7071 static const void *lt_preloaded_setup() {
7072 return lt__PROGRAM__LTX_preloaded_symbols;
7080 # Now try linking the two files.
7081 mv conftest.$ac_objext conftstm.$ac_objext
7082 lt_save_LIBS="$LIBS"
7083 lt_save_CFLAGS="$CFLAGS"
7084 LIBS="conftstm.
$ac_objext"
7085 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7087 (eval $ac_link) 2>&5
7089 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7090 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7093 LIBS="$lt_save_LIBS"
7094 CFLAGS="$lt_save_CFLAGS"
7096 echo "cannot
find nm_test_func
in $nlist" >&5
7099 echo "cannot
find nm_test_var
in $nlist" >&5
7102 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
7105 echo "$progname: failed program was
:" >&5
7106 cat conftest.$ac_ext >&5
7108 rm -f conftest* conftst*
7110 # Do not use the global_symbol_pipe unless it works.
7111 if test "$pipe_works" = yes; then
7114 lt_cv_sys_global_symbol_pipe=
7120 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7121 lt_cv_sys_global_symbol_to_cdecl=
7123 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7124 { echo "$as_me:$LINENO: result
: failed
" >&5
7125 echo "${ECHO_T}failed
" >&6; }
7127 { echo "$as_me:$LINENO: result
: ok
" >&5
7128 echo "${ECHO_T}ok
" >&6; }
7148 # Check whether --enable-libtool-lock was given.
7149 if test "${enable_libtool_lock+set}" = set; then
7150 enableval=$enable_libtool_lock;
7153 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
7155 # Some flags need to be propagated to the compiler or linker for good
7159 # Find out which ABI we are using.
7160 echo 'int i;' > conftest.$ac_ext
7161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7162 (eval $ac_compile) 2>&5
7164 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7165 (exit $ac_status); }; then
7166 case `/usr/bin/file conftest.$ac_objext` in
7178 # Find out which ABI we are using.
7179 echo '#line 7179 "configure
"' > conftest.$ac_ext
7180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7181 (eval $ac_compile) 2>&5
7183 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7184 (exit $ac_status); }; then
7185 if test "$lt_cv_prog_gnu_ld" = yes; then
7186 case `/usr/bin/file conftest.$ac_objext` in
7188 LD="${LD-ld} -melf32bsmip"
7191 LD="${LD-ld} -melf32bmipn32"
7194 LD="${LD-ld} -melf64bmip"
7198 case `/usr/bin/file conftest.$ac_objext` in
7214 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7215 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7216 # Find out which ABI we are using.
7217 echo 'int i;' > conftest.$ac_ext
7218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7219 (eval $ac_compile) 2>&5
7221 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7222 (exit $ac_status); }; then
7223 case `/usr/bin/file conftest.o` in
7226 x86_64-*kfreebsd*-gnu)
7227 LD="${LD-ld} -m elf_i386_fbsd
"
7230 LD="${LD-ld} -m elf_i386
"
7232 ppc64-*linux*|powerpc64-*linux*)
7233 LD="${LD-ld} -m elf32ppclinux
"
7236 LD="${LD-ld} -m elf_s390
"
7239 LD="${LD-ld} -m elf32_sparc
"
7245 x86_64-*kfreebsd*-gnu)
7246 LD="${LD-ld} -m elf_x86_64_fbsd
"
7249 LD="${LD-ld} -m elf_x86_64
"
7251 ppc*-*linux*|powerpc*-*linux*)
7252 LD="${LD-ld} -m elf64ppc
"
7254 s390*-*linux*|s390*-*tpf*)
7255 LD="${LD-ld} -m elf64_s390
"
7258 LD="${LD-ld} -m elf64_sparc
"
7268 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7269 SAVE_CFLAGS="$CFLAGS"
7270 CFLAGS="$CFLAGS -belf"
7271 { echo "$as_me:$LINENO: checking whether the C compiler needs
-belf" >&5
7272 echo $ECHO_N "checking whether the C compiler needs
-belf...
$ECHO_C" >&6; }
7273 if test "${lt_cv_cc_needs_belf+set}" = set; then
7274 echo $ECHO_N "(cached
) $ECHO_C" >&6
7277 ac_cpp='$CPP $CPPFLAGS'
7278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7282 cat >conftest.$ac_ext <<_ACEOF
7285 cat confdefs.h >>conftest.$ac_ext
7286 cat >>conftest.$ac_ext <<_ACEOF
7287 /* end confdefs.h. */
7297 rm -f conftest.$ac_objext conftest$ac_exeext
7298 if { (ac_try="$ac_link"
7300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7301 *) ac_try_echo=$ac_try;;
7303 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7304 (eval "$ac_link") 2>conftest.er1
7306 grep -v '^ *+' conftest.er1 >conftest.err
7308 cat conftest.err >&5
7309 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7310 (exit $ac_status); } && {
7311 test -z "$ac_c_werror_flag" ||
7312 test ! -s conftest.err
7313 } && test -s conftest$ac_exeext &&
7314 $as_test_x conftest$ac_exeext; then
7315 lt_cv_cc_needs_belf=yes
7317 echo "$as_me: failed program was
:" >&5
7318 sed 's/^/| /' conftest.$ac_ext >&5
7320 lt_cv_cc_needs_belf=no
7323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7324 conftest$ac_exeext conftest.$ac_ext
7326 ac_cpp='$CPP $CPPFLAGS'
7327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7332 { echo "$as_me:$LINENO: result
: $lt_cv_cc_needs_belf" >&5
7333 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7334 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7335 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7336 CFLAGS="$SAVE_CFLAGS"
7340 # Find out which ABI we are using.
7341 echo 'int i;' > conftest.$ac_ext
7342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7343 (eval $ac_compile) 2>&5
7345 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7346 (exit $ac_status); }; then
7347 case `/usr/bin/file conftest.o` in
7349 case $lt_cv_prog_gnu_ld in
7350 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
7351 *) LD="${LD-ld} -64" ;;
7360 need_locks="$enable_libtool_lock"
7363 ac_cpp='$CPP $CPPFLAGS'
7364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7367 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
7368 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
7369 # On Suns, sometimes $CPP names a directory.
7370 if test -n "$CPP" && test -d "$CPP"; then
7373 if test -z "$CPP"; then
7374 if test "${ac_cv_prog_CPP+set}" = set; then
7375 echo $ECHO_N "(cached
) $ECHO_C" >&6
7377 # Double quotes because CPP needs to be expanded
7378 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
7381 for ac_c_preproc_warn_flag in '' yes
7383 # Use a header file that comes with gcc, so configuring glibc
7384 # with a fresh cross-compiler works.
7385 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7386 # <limits.h> exists even on freestanding compilers.
7387 # On the NeXT, cc -E runs the code through the compiler's parser,
7388 # not just through cpp. "Syntax error
" is here to catch this case.
7389 cat >conftest.$ac_ext <<_ACEOF
7392 cat confdefs.h >>conftest.$ac_ext
7393 cat >>conftest.$ac_ext <<_ACEOF
7394 /* end confdefs.h. */
7396 # include <limits.h>
7398 # include <assert.h>
7402 if { (ac_try="$ac_cpp conftest.
$ac_ext"
7404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7405 *) ac_try_echo=$ac_try;;
7407 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7408 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
7410 grep -v '^ *+' conftest.er1 >conftest.err
7412 cat conftest.err >&5
7413 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7414 (exit $ac_status); } >/dev/null && {
7415 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7416 test ! -s conftest.err
7420 echo "$as_me: failed program was
:" >&5
7421 sed 's/^/| /' conftest.$ac_ext >&5
7423 # Broken: fails on valid input.
7427 rm -f conftest.err conftest.$ac_ext
7429 # OK, works on sane cases. Now check whether nonexistent headers
7430 # can be detected and how.
7431 cat >conftest.$ac_ext <<_ACEOF
7434 cat confdefs.h >>conftest.$ac_ext
7435 cat >>conftest.$ac_ext <<_ACEOF
7436 /* end confdefs.h. */
7437 #include <ac_nonexistent.h>
7439 if { (ac_try="$ac_cpp conftest.
$ac_ext"
7441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7442 *) ac_try_echo=$ac_try;;
7444 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7445 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
7447 grep -v '^ *+' conftest.er1 >conftest.err
7449 cat conftest.err >&5
7450 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7451 (exit $ac_status); } >/dev/null && {
7452 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7453 test ! -s conftest.err
7455 # Broken: success on invalid input.
7458 echo "$as_me: failed program was
:" >&5
7459 sed 's/^/| /' conftest.$ac_ext >&5
7461 # Passes both tests.
7466 rm -f conftest.err conftest.$ac_ext
7469 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7470 rm -f conftest.err conftest.$ac_ext
7471 if $ac_preproc_ok; then
7483 { echo "$as_me:$LINENO: result
: $CPP" >&5
7484 echo "${ECHO_T}$CPP" >&6; }
7486 for ac_c_preproc_warn_flag in '' yes
7488 # Use a header file that comes with gcc, so configuring glibc
7489 # with a fresh cross-compiler works.
7490 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7491 # <limits.h> exists even on freestanding compilers.
7492 # On the NeXT, cc -E runs the code through the compiler's parser,
7493 # not just through cpp. "Syntax error
" is here to catch this case.
7494 cat >conftest.$ac_ext <<_ACEOF
7497 cat confdefs.h >>conftest.$ac_ext
7498 cat >>conftest.$ac_ext <<_ACEOF
7499 /* end confdefs.h. */
7501 # include <limits.h>
7503 # include <assert.h>
7507 if { (ac_try="$ac_cpp conftest.
$ac_ext"
7509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7510 *) ac_try_echo=$ac_try;;
7512 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7513 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
7515 grep -v '^ *+' conftest.er1 >conftest.err
7517 cat conftest.err >&5
7518 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7519 (exit $ac_status); } >/dev/null && {
7520 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7521 test ! -s conftest.err
7525 echo "$as_me: failed program was
:" >&5
7526 sed 's/^/| /' conftest.$ac_ext >&5
7528 # Broken: fails on valid input.
7532 rm -f conftest.err conftest.$ac_ext
7534 # OK, works on sane cases. Now check whether nonexistent headers
7535 # can be detected and how.
7536 cat >conftest.$ac_ext <<_ACEOF
7539 cat confdefs.h >>conftest.$ac_ext
7540 cat >>conftest.$ac_ext <<_ACEOF
7541 /* end confdefs.h. */
7542 #include <ac_nonexistent.h>
7544 if { (ac_try="$ac_cpp conftest.
$ac_ext"
7546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7547 *) ac_try_echo=$ac_try;;
7549 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7550 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
7552 grep -v '^ *+' conftest.er1 >conftest.err
7554 cat conftest.err >&5
7555 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7556 (exit $ac_status); } >/dev/null && {
7557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7558 test ! -s conftest.err
7560 # Broken: success on invalid input.
7563 echo "$as_me: failed program was
:" >&5
7564 sed 's/^/| /' conftest.$ac_ext >&5
7566 # Passes both tests.
7571 rm -f conftest.err conftest.$ac_ext
7574 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7575 rm -f conftest.err conftest.$ac_ext
7576 if $ac_preproc_ok; then
7579 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
7580 See \
`config.log' for more details." >&5
7581 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7582 See \`config.log
' for more details." >&2;}
7583 { (exit 1); exit 1; }; }
7587 ac_cpp='$CPP $CPPFLAGS'
7588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
7589 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
7590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7593 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7594 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7595 if test "${ac_cv_header_stdc+set}" = set; then
7596 echo $ECHO_N "(cached) $ECHO_C" >&6
7598 cat >conftest.$ac_ext <<_ACEOF
7601 cat confdefs.h >>conftest.$ac_ext
7602 cat >>conftest.$ac_ext <<_ACEOF
7603 /* end confdefs.h. */
7617 rm -f conftest.$ac_objext
7618 if { (ac_try="$ac_compile"
7620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7621 *) ac_try_echo=$ac_try;;
7623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7624 (eval "$ac_compile") 2>conftest.er1
7626 grep -v '^
*+' conftest.er1 >conftest.err
7628 cat conftest.err >&5
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); } && {
7631 test -z "$ac_c_werror_flag" ||
7632 test ! -s conftest.err
7633 } && test -s conftest.$ac_objext; then
7634 ac_cv_header_stdc=yes
7636 echo "$as_me: failed program was:" >&5
7637 sed 's
/^
/|
/' conftest.$ac_ext >&5
7639 ac_cv_header_stdc=no
7642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7644 if test $ac_cv_header_stdc = yes; then
7645 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7646 cat >conftest.$ac_ext <<_ACEOF
7649 cat confdefs.h >>conftest.$ac_ext
7650 cat >>conftest.$ac_ext <<_ACEOF
7651 /* end confdefs.h. */
7655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7656 $EGREP "memchr" >/dev/null 2>&1; then
7659 ac_cv_header_stdc=no
7665 if test $ac_cv_header_stdc = yes; then
7666 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7667 cat >conftest.$ac_ext <<_ACEOF
7670 cat confdefs.h >>conftest.$ac_ext
7671 cat >>conftest.$ac_ext <<_ACEOF
7672 /* end confdefs.h. */
7676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7677 $EGREP "free" >/dev/null 2>&1; then
7680 ac_cv_header_stdc=no
7686 if test $ac_cv_header_stdc = yes; then
7687 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7688 if test "$cross_compiling" = yes; then
7691 cat >conftest.$ac_ext <<_ACEOF
7694 cat confdefs.h >>conftest.$ac_ext
7695 cat >>conftest.$ac_ext <<_ACEOF
7696 /* end confdefs.h. */
7699 #if ((' ' & 0x0FF) == 0x020)
7700 # define ISLOWER(c) ('a
' <= (c) && (c) <= 'z
')
7701 # define TOUPPER(c) (ISLOWER(c) ? 'A
' + ((c) - 'a
') : (c))
7703 # define ISLOWER(c) \
7704 (('a
' <= (c) && (c) <= 'i
') \
7705 || ('j
' <= (c) && (c) <= 'r
') \
7706 || ('s
' <= (c) && (c) <= 'z
'))
7707 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7710 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7715 for (i = 0; i < 256; i++)
7716 if (XOR (islower (i), ISLOWER (i))
7717 || toupper (i) != TOUPPER (i))
7722 rm -f conftest$ac_exeext
7723 if { (ac_try="$ac_link"
7725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7726 *) ac_try_echo=$ac_try;;
7728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7729 (eval "$ac_link") 2>&5
7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
7733 { (case "(($ac_try" in
7734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7735 *) ac_try_echo=$ac_try;;
7737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7738 (eval "$ac_try") 2>&5
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); }; }; then
7744 echo "$as_me: program exited with status $ac_status" >&5
7745 echo "$as_me: failed program was:" >&5
7746 sed 's
/^
/|
/' conftest.$ac_ext >&5
7749 ac_cv_header_stdc=no
7751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7757 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7758 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7759 if test $ac_cv_header_stdc = yes; then
7761 cat >>confdefs.h <<\_ACEOF
7762 #define STDC_HEADERS 1
7767 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7777 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7778 inttypes.h stdint.h unistd.h
7780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7781 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7784 echo $ECHO_N "(cached) $ECHO_C" >&6
7786 cat >conftest.$ac_ext <<_ACEOF
7789 cat confdefs.h >>conftest.$ac_ext
7790 cat >>conftest.$ac_ext <<_ACEOF
7791 /* end confdefs.h. */
7792 $ac_includes_default
7794 #include <$ac_header>
7796 rm -f conftest.$ac_objext
7797 if { (ac_try="$ac_compile"
7799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7800 *) ac_try_echo=$ac_try;;
7802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7803 (eval "$ac_compile") 2>conftest.er1
7805 grep -v '^
*+' conftest.er1 >conftest.err
7807 cat conftest.err >&5
7808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809 (exit $ac_status); } && {
7810 test -z "$ac_c_werror_flag" ||
7811 test ! -s conftest.err
7812 } && test -s conftest.$ac_objext; then
7813 eval "$as_ac_Header=yes"
7815 echo "$as_me: failed program was:" >&5
7816 sed 's
/^
/|
/' conftest.$ac_ext >&5
7818 eval "$as_ac_Header=no"
7821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7823 ac_res=`eval echo '${'$as_ac_Header'}'`
7824 { echo "$as_me:$LINENO: result: $ac_res" >&5
7825 echo "${ECHO_T}$ac_res" >&6; }
7826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7827 cat >>confdefs.h <<_ACEOF
7828 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7837 for ac_header in dlfcn.h
7839 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7840 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7843 echo $ECHO_N "(cached) $ECHO_C" >&6
7845 cat >conftest.$ac_ext <<_ACEOF
7848 cat confdefs.h >>conftest.$ac_ext
7849 cat >>conftest.$ac_ext <<_ACEOF
7850 /* end confdefs.h. */
7851 $ac_includes_default
7853 #include <$ac_header>
7855 rm -f conftest.$ac_objext
7856 if { (ac_try="$ac_compile"
7858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7859 *) ac_try_echo=$ac_try;;
7861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7862 (eval "$ac_compile") 2>conftest.er1
7864 grep -v '^
*+' conftest.er1 >conftest.err
7866 cat conftest.err >&5
7867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868 (exit $ac_status); } && {
7869 test -z "$ac_c_werror_flag" ||
7870 test ! -s conftest.err
7871 } && test -s conftest.$ac_objext; then
7872 eval "$as_ac_Header=yes"
7874 echo "$as_me: failed program was:" >&5
7875 sed 's
/^
/|
/' conftest.$ac_ext >&5
7877 eval "$as_ac_Header=no"
7880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7882 ac_res=`eval echo '${'$as_ac_Header'}'`
7883 { echo "$as_me:$LINENO: result: $ac_res" >&5
7884 echo "${ECHO_T}$ac_res" >&6; }
7885 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7886 cat >>confdefs.h <<_ACEOF
7887 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7896 # This can be used to rebuild libtool when needed
7897 LIBTOOL_DEPS="$ltmain"
7899 # Always use our own libtool.
7900 LIBTOOL='$
(SHELL
) $
(top_builddir
)/libtool
'
7926 test -z "$LN_S" && LN_S="ln -s"
7941 if test -n "${ZSH_VERSION+set}" ; then
7942 setopt NO_GLOB_SUBST
7945 { echo "$as_me:$LINENO: checking for objdir" >&5
7946 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7947 if test "${lt_cv_objdir+set}" = set; then
7948 echo $ECHO_N "(cached) $ECHO_C" >&6
7950 rm -f .libs 2>/dev/null
7951 mkdir .libs 2>/dev/null
7952 if test -d .libs; then
7955 # MS-DOS does not allow filenames that begin with a dot.
7958 rmdir .libs 2>/dev/null
7960 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7961 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7962 objdir=$lt_cv_objdir
7968 cat >>confdefs.h <<_ACEOF
7969 #define LT_OBJDIR "$lt_cv_objdir/"
7990 # AIX sometimes has problems with the GCC collect2 program. For some
7991 # reason, if we set the COLLECT_NAMES environment variable, the problems
7992 # vanish in a puff of smoke.
7993 if test "X${COLLECT_NAMES+set}" != Xset; then
7995 export COLLECT_NAMES
8000 # Sed substitution that helps us do robust quoting. It backslashifies
8001 # metacharacters that are still active within double-quoted strings.
8002 sed_quote_subst='s
/\
(["`$\\]\)/\\\1/g'
8004 # Same as above, but do not quote variable references.
8005 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8007 # Sed substitution to delay expansion of an escaped shell variable in a
8008 # double_quote_subst'ed string.
8009 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8011 # Sed substitution to delay expansion of an escaped single quote.
8012 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8014 # Sed substitution to avoid accidental globbing in evaled expressions
8015 no_glob_subst='s/\*/\\\*/g'
8019 can_build_shared=yes
8021 # All known linkers require a `.a
' archive for static linking (except MSVC,
8022 # which needs '.lib
').
8025 with_gnu_ld="$lt_cv_prog_gnu_ld"
8028 old_CFLAGS="$CFLAGS"
8030 # Set sane defaults for various variables
8031 test -z "$CC" && CC=cc
8032 test -z "$LTCC" && LTCC=$CC
8033 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8034 test -z "$LD" && LD=ld
8035 test -z "$ac_objext" && ac_objext=o
8037 for cc_temp in $compiler""; do
8039 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8040 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8045 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's
%.
*/%%' -e "s%^$host_alias-%%"`
8048 # Only perform the check for file, if the check method requires it
8049 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8050 case $deplibs_check_method in
8052 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8053 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8054 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8055 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8056 echo $ECHO_N "(cached) $ECHO_C" >&6
8060 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8063 lt_save_MAGIC_CMD="$MAGIC_CMD"
8064 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8065 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8066 for ac_dir in $ac_dummy; do
8068 test -z "$ac_dir" && ac_dir=.
8069 if test -f $ac_dir/${ac_tool_prefix}file; then
8070 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8071 if test -n "$file_magic_test_file"; then
8072 case $deplibs_check_method in
8074 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8075 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8076 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8077 $EGREP "$file_magic_regex" > /dev/null; then
8082 *** Warning: the command libtool uses to detect shared libraries,
8083 *** $file_magic_cmd, produces output that libtool cannot recognize.
8084 *** The result is that libtool may fail to recognize shared libraries
8085 *** as such. This will affect the creation of libtool libraries that
8086 *** depend on shared libraries, but programs linked with such libtool
8087 *** libraries will work regardless of this problem. Nevertheless, you
8088 *** may want to report the problem to your system manager and/or to
8089 *** bug-libtool@gnu.org
8099 MAGIC_CMD="$lt_save_MAGIC_CMD"
8104 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8105 if test -n "$MAGIC_CMD"; then
8106 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8107 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8109 { echo "$as_me:$LINENO: result: no" >&5
8110 echo "${ECHO_T}no" >&6; }
8117 if test -z "$lt_cv_path_MAGIC_CMD"; then
8118 if test -n "$ac_tool_prefix"; then
8119 { echo "$as_me:$LINENO: checking for file" >&5
8120 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8121 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8122 echo $ECHO_N "(cached) $ECHO_C" >&6
8126 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8129 lt_save_MAGIC_CMD="$MAGIC_CMD"
8130 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8131 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8132 for ac_dir in $ac_dummy; do
8134 test -z "$ac_dir" && ac_dir=.
8135 if test -f $ac_dir/file; then
8136 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8137 if test -n "$file_magic_test_file"; then
8138 case $deplibs_check_method in
8140 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8141 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8142 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8143 $EGREP "$file_magic_regex" > /dev/null; then
8148 *** Warning: the command libtool uses to detect shared libraries,
8149 *** $file_magic_cmd, produces output that libtool cannot recognize.
8150 *** The result is that libtool may fail to recognize shared libraries
8151 *** as such. This will affect the creation of libtool libraries that
8152 *** depend on shared libraries, but programs linked with such libtool
8153 *** libraries will work regardless of this problem. Nevertheless, you
8154 *** may want to report the problem to your system manager and/or to
8155 *** bug-libtool@gnu.org
8165 MAGIC_CMD="$lt_save_MAGIC_CMD"
8170 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8171 if test -n "$MAGIC_CMD"; then
8172 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8173 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8175 { echo "$as_me:$LINENO: result: no" >&5
8176 echo "${ECHO_T}no" >&6; }
8189 # Use C for the default configuration in the libtool script
8193 ac_cpp='$CPP $CPPFLAGS'
8194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
8195 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
8196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8199 # Source file extension for C test sources.
8202 # Object file extension for compiled C test sources.
8206 # Code to be used in simple compile tests
8207 lt_simple_compile_test_code="int some_variable = 0;"
8209 # Code to be used in simple link tests
8210 lt_simple_link_test_code='int main
(){return(0);}'
8218 # If no C compiler was specified, use CC.
8221 # If no C compiler flags were specified, use CFLAGS.
8222 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8224 # Allow CC to be a program name with arguments.
8227 # Save the default compiler, since it gets overwritten when the other
8228 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8229 compiler_DEFAULT=$CC
8231 # save warnings/boilerplate of simple test code
8232 ac_outfile=conftest.$ac_objext
8233 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8234 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$
/d
; /^
*+/d
' >conftest.err
8235 _lt_compiler_boilerplate=`cat conftest.err`
8238 ac_outfile=conftest.$ac_objext
8239 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8240 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$
/d
; /^
*+/d
' >conftest.err
8241 _lt_linker_boilerplate=`cat conftest.err`
8246 ## There is no encapsulation within the following macros, do not change
8247 ## the running order or otherwise move them around unless you know exactly
8248 ## what you are doing...
8249 if test -n "$compiler"; then
8251 lt_prog_compiler_no_builtin_flag=
8253 if test "$GCC" = yes; then
8254 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8256 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8257 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8258 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8259 echo $ECHO_N "(cached) $ECHO_C" >&6
8261 lt_cv_prog_compiler_rtti_exceptions=no
8262 ac_outfile=conftest.$ac_objext
8263 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8264 lt_compiler_flag="-fno-rtti -fno-exceptions"
8265 # Insert the option either (1) after the last *FLAGS variable, or
8266 # (2) before a word containing "conftest.", or (3) at the end.
8267 # Note that $ac_compile itself does not contain backslashes and begins
8268 # with a dollar sign (not a hyphen), so the echo should work correctly.
8269 # The option is referenced via a variable to avoid confusing sed.
8270 lt_compile=`echo "$ac_compile" | $SED \
8271 -e 's
:.
*FLAGS
}\
{0,1\
} :&$lt_compiler_flag :; t
' \
8272 -e 's
: [^
]*conftest\.
: $lt_compiler_flag&:; t
' \
8273 -e 's
:$
: $lt_compiler_flag:'`
8274 (eval echo "\"\$as_me:8274: $lt_compile\"" >&5)
8275 (eval "$lt_compile" 2>conftest.err)
8277 cat conftest.err >&5
8278 echo "$as_me:8278: \$? = $ac_status" >&5
8279 if (exit $ac_status) && test -s "$ac_outfile"; then
8280 # The compiler can only warn and ignore the option if not recognized
8281 # So say no if there are warnings other than the usual output.
8282 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$
/d
' >conftest.exp
8283 $SED '/^$
/d
; /^
*+/d
' conftest.err >conftest.er2
8284 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8285 lt_cv_prog_compiler_rtti_exceptions=yes
8291 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8292 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8294 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8295 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8307 lt_prog_compiler_wl=
8308 lt_prog_compiler_pic=
8309 lt_prog_compiler_static=
8311 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8312 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8314 if test "$GCC" = yes; then
8315 lt_prog_compiler_wl='-Wl,'
8316 lt_prog_compiler_static='-static'
8320 # All AIX code is PIC.
8321 if test "$host_cpu" = ia64; then
8322 # AIX 5 now supports IA64 processor
8323 lt_prog_compiler_static='-Bstatic'
8328 if test "$host_cpu" = m68k; then
8329 # FIXME: we need at least 68020 code to build shared libraries, but
8330 # adding the `-m68020' flag to GCC prevents building anything better
,
8332 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
8336 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
8337 # PIC is the default for these OSes.
8340 mingw
* | cygwin
* | pw32
* | os2
*)
8341 # This hack is so that the source file can tell whether it is being
8342 # built for inclusion in a dll (and should export symbols for example).
8343 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8344 # (--disable-auto-import) libraries
8345 lt_prog_compiler_pic
='-DDLL_EXPORT'
8348 darwin
* | rhapsody
*)
8349 # PIC is the default on this platform
8350 # Common symbols not allowed in MH_DYLIB files
8351 lt_prog_compiler_pic
='-fno-common'
8355 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8362 lt_prog_compiler_pic
='-fPIC'
8368 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8369 # Instead, we relocate shared libraries at runtime.
8373 # Just because we use GCC doesn't mean we suddenly get shared libraries
8374 # on systems that don't support them.
8375 lt_prog_compiler_can_build_shared
=no
8380 # QNX uses GNU C++, but need to define -shared option too, otherwise
8382 lt_prog_compiler_pic
='-fPIC -shared'
8386 if test -d /usr
/nec
; then
8387 lt_prog_compiler_pic
=-Kconform_pic
8392 lt_prog_compiler_pic
='-fPIC'
8396 # PORTME Check for flag to pass linker flags through the system compiler.
8399 lt_prog_compiler_wl
='-Wl,'
8400 if test "$host_cpu" = ia64
; then
8401 # AIX 5 now supports IA64 processor
8402 lt_prog_compiler_static
='-Bstatic'
8404 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8408 # PIC is the default on this platform
8409 # Common symbols not allowed in MH_DYLIB files
8410 case $cc_basename in
8412 lt_prog_compiler_pic
='-qnocommon'
8413 lt_prog_compiler_wl
='-Wl,'
8418 mingw
* | cygwin
* | pw32
* | os2
*)
8419 # This hack is so that the source file can tell whether it is being
8420 # built for inclusion in a dll (and should export symbols for example).
8421 lt_prog_compiler_pic
='-DDLL_EXPORT'
8424 hpux9
* | hpux10
* | hpux11
*)
8425 lt_prog_compiler_wl
='-Wl,'
8426 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8433 lt_prog_compiler_pic
='+Z'
8436 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8437 lt_prog_compiler_static
='${wl}-a ${wl}archive'
8440 irix5
* | irix6
* | nonstopux
*)
8441 lt_prog_compiler_wl
='-Wl,'
8442 # PIC (with -KPIC) is the default.
8443 lt_prog_compiler_static
='-non_shared'
8446 linux
* | k
*bsd
*-gnu)
8447 case $cc_basename in
8449 lt_prog_compiler_wl
='-Wl,'
8450 lt_prog_compiler_pic
='-KPIC'
8451 lt_prog_compiler_static
='-static'
8453 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
8454 # Portland Group compilers (*not* the Pentium gcc compiler,
8455 # which looks to be a dead project)
8456 lt_prog_compiler_wl
='-Wl,'
8457 lt_prog_compiler_pic
='-fpic'
8458 lt_prog_compiler_static
='-Bstatic'
8461 lt_prog_compiler_wl
='-Wl,'
8462 # All Alpha code is PIC.
8463 lt_prog_compiler_static
='-non_shared'
8466 case `$CC -V 2>&1 | sed 5q` in
8469 lt_prog_compiler_pic
='-KPIC'
8470 lt_prog_compiler_static
='-Bstatic'
8471 lt_prog_compiler_wl
='-Wl,'
8474 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8475 lt_prog_compiler_pic
='-KPIC'
8476 lt_prog_compiler_static
='-Bstatic'
8477 lt_prog_compiler_wl
=''
8485 lt_prog_compiler_pic
='-KPIC'
8486 lt_prog_compiler_static
='-Bstatic'
8490 # QNX uses GNU C++, but need to define -shared option too, otherwise
8492 lt_prog_compiler_pic
='-fPIC -shared'
8495 osf3
* | osf4
* | osf5
*)
8496 lt_prog_compiler_wl
='-Wl,'
8497 # All OSF/1 code is PIC.
8498 lt_prog_compiler_static
='-non_shared'
8502 lt_prog_compiler_static
='-non_shared'
8506 lt_prog_compiler_pic
='-KPIC'
8507 lt_prog_compiler_static
='-Bstatic'
8508 case $cc_basename in
8510 lt_prog_compiler_wl
='-Qoption ld ';;
8512 lt_prog_compiler_wl
='-Wl,';;
8517 lt_prog_compiler_wl
='-Qoption ld '
8518 lt_prog_compiler_pic
='-PIC'
8519 lt_prog_compiler_static
='-Bstatic'
8522 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8523 lt_prog_compiler_wl
='-Wl,'
8524 lt_prog_compiler_pic
='-KPIC'
8525 lt_prog_compiler_static
='-Bstatic'
8529 if test -d /usr
/nec
;then
8530 lt_prog_compiler_pic
='-Kconform_pic'
8531 lt_prog_compiler_static
='-Bstatic'
8535 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8536 lt_prog_compiler_wl
='-Wl,'
8537 lt_prog_compiler_pic
='-KPIC'
8538 lt_prog_compiler_static
='-Bstatic'
8542 lt_prog_compiler_wl
='-Wl,'
8543 lt_prog_compiler_can_build_shared
=no
8547 lt_prog_compiler_pic
='-pic'
8548 lt_prog_compiler_static
='-Bstatic'
8552 lt_prog_compiler_can_build_shared
=no
8558 # For platforms which do not support PIC, -DPIC is meaningless:
8560 lt_prog_compiler_pic
=
8563 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8566 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8567 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8575 # Check to make sure the PIC flag actually works.
8577 if test -n "$lt_prog_compiler_pic"; then
8578 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8579 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8580 if test "${lt_prog_compiler_pic_works+set}" = set; then
8581 echo $ECHO_N "(cached) $ECHO_C" >&6
8583 lt_prog_compiler_pic_works
=no
8584 ac_outfile
=conftest.
$ac_objext
8585 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8586 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8587 # Insert the option either (1) after the last *FLAGS variable, or
8588 # (2) before a word containing "conftest.", or (3) at the end.
8589 # Note that $ac_compile itself does not contain backslashes and begins
8590 # with a dollar sign (not a hyphen), so the echo should work correctly.
8591 # The option is referenced via a variable to avoid confusing sed.
8592 lt_compile
=`echo "$ac_compile" | $SED \
8593 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8594 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8595 -e 's:$: $lt_compiler_flag:'`
8596 (eval echo "\"\$as_me:8596: $lt_compile\"" >&5)
8597 (eval "$lt_compile" 2>conftest.err
)
8599 cat conftest.err
>&5
8600 echo "$as_me:8600: \$? = $ac_status" >&5
8601 if (exit $ac_status) && test -s "$ac_outfile"; then
8602 # The compiler can only warn and ignore the option if not recognized
8603 # So say no if there are warnings other than the usual output.
8604 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
8605 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8606 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8607 lt_prog_compiler_pic_works
=yes
8613 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8614 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8616 if test x
"$lt_prog_compiler_pic_works" = xyes
; then
8617 case $lt_prog_compiler_pic in
8619 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8622 lt_prog_compiler_pic
=
8623 lt_prog_compiler_can_build_shared
=no
8634 # Check to make sure the static flag actually works.
8636 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8637 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8638 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8639 if test "${lt_prog_compiler_static_works+set}" = set; then
8640 echo $ECHO_N "(cached) $ECHO_C" >&6
8642 lt_prog_compiler_static_works
=no
8643 save_LDFLAGS
="$LDFLAGS"
8644 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8645 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8646 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8647 # The linker can only warn and ignore the option if not recognized
8648 # So say no if there are warnings
8649 if test -s conftest.err
; then
8650 # Append any errors to the config.log.
8651 cat conftest.err
1>&5
8652 $ECHO "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
8653 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8654 if diff conftest.exp conftest.er2
>/dev
/null
; then
8655 lt_prog_compiler_static_works
=yes
8658 lt_prog_compiler_static_works
=yes
8662 LDFLAGS
="$save_LDFLAGS"
8665 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8666 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8668 if test x
"$lt_prog_compiler_static_works" = xyes
; then
8671 lt_prog_compiler_static
=
8680 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8681 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8682 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8683 echo $ECHO_N "(cached) $ECHO_C" >&6
8685 lt_cv_prog_compiler_c_o
=no
8686 $RM -r conftest
2>/dev
/null
8690 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8692 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8693 # Insert the option either (1) after the last *FLAGS variable, or
8694 # (2) before a word containing "conftest.", or (3) at the end.
8695 # Note that $ac_compile itself does not contain backslashes and begins
8696 # with a dollar sign (not a hyphen), so the echo should work correctly.
8697 lt_compile
=`echo "$ac_compile" | $SED \
8698 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8699 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8700 -e 's:$: $lt_compiler_flag:'`
8701 (eval echo "\"\$as_me:8701: $lt_compile\"" >&5)
8702 (eval "$lt_compile" 2>out
/conftest.err
)
8704 cat out
/conftest.err
>&5
8705 echo "$as_me:8705: \$? = $ac_status" >&5
8706 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8708 # The compiler can only warn and ignore the option if not recognized
8709 # So say no if there are warnings
8710 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
8711 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8712 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8713 lt_cv_prog_compiler_c_o
=yes
8718 # SGI C++ compiler will create directory out/ii_files/ for
8719 # template instantiation
8720 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8721 $RM out
/* && rmdir out
8727 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8728 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8735 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8736 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8737 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8738 echo $ECHO_N "(cached) $ECHO_C" >&6
8740 lt_cv_prog_compiler_c_o
=no
8741 $RM -r conftest
2>/dev
/null
8745 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8747 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8748 # Insert the option either (1) after the last *FLAGS variable, or
8749 # (2) before a word containing "conftest.", or (3) at the end.
8750 # Note that $ac_compile itself does not contain backslashes and begins
8751 # with a dollar sign (not a hyphen), so the echo should work correctly.
8752 lt_compile
=`echo "$ac_compile" | $SED \
8753 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8754 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8755 -e 's:$: $lt_compiler_flag:'`
8756 (eval echo "\"\$as_me:8756: $lt_compile\"" >&5)
8757 (eval "$lt_compile" 2>out
/conftest.err
)
8759 cat out
/conftest.err
>&5
8760 echo "$as_me:8760: \$? = $ac_status" >&5
8761 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8763 # The compiler can only warn and ignore the option if not recognized
8764 # So say no if there are warnings
8765 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
8766 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8767 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8768 lt_cv_prog_compiler_c_o
=yes
8773 # SGI C++ compiler will create directory out/ii_files/ for
8774 # template instantiation
8775 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8776 $RM out
/* && rmdir out
8782 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8783 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8788 hard_links
="nottested"
8789 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
8790 # do not overwrite the value of need_locks provided by the user
8791 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8792 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8795 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8797 ln conftest.a conftest.b
2>&5 || hard_links
=no
8798 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8799 { echo "$as_me:$LINENO: result: $hard_links" >&5
8800 echo "${ECHO_T}$hard_links" >&6; }
8801 if test "$hard_links" = no
; then
8802 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8803 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8815 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8816 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8819 allow_undefined_flag
=
8820 always_export_symbols
=no
8822 archive_expsym_cmds
=
8823 compiler_needs_object
=no
8824 enable_shared_with_static_runtimes
=no
8825 export_dynamic_flag_spec
=
8826 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8827 hardcode_automatic
=no
8829 hardcode_direct_absolute
=no
8830 hardcode_libdir_flag_spec
=
8831 hardcode_libdir_flag_spec_ld
=
8832 hardcode_libdir_separator
=
8834 hardcode_shlibpath_var
=unsupported
8836 link_all_deplibs
=unknown
8839 old_archive_from_new_cmds
=
8840 old_archive_from_expsyms_cmds
=
8841 thread_safe_flag_spec
=
8842 whole_archive_flag_spec
=
8843 # include_expsyms should be a list of space-separated symbols to be *always*
8844 # included in the symbol list
8846 # exclude_expsyms can be an extended regexp of symbols to exclude
8847 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8848 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8849 # as well as any symbol that contains `d'.
8850 exclude_expsyms
="_GLOBAL_OFFSET_TABLE_"
8851 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8852 # platforms (ab)use it in PIC code, but their linkers get confused if
8853 # the symbol is explicitly referenced. Since portable code cannot
8854 # rely on this symbol name, it's probably fine to never include it in
8855 # preloaded symbol tables.
8856 extract_expsyms_cmds
=
8859 cygwin
* | mingw
* | pw32
*)
8860 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8861 # When not using gcc, we currently assume that we are using
8862 # Microsoft Visual C++.
8863 if test "$GCC" != yes; then
8868 # we just hope/assume this is gcc and not c89 (= MSVC++)
8877 if test "$with_gnu_ld" = yes; then
8878 # If archive_cmds runs LD, not CC, wlarc should be empty
8881 # Set some defaults for GNU ld with shared library support. These
8882 # are reset later if shared libraries are not supported. Putting them
8883 # here allows them to be overridden if necessary.
8884 runpath_var
=LD_RUN_PATH
8885 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8886 export_dynamic_flag_spec
='${wl}--export-dynamic'
8887 # ancient GNU ld didn't support --whole-archive et. al.
8888 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
8889 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8891 whole_archive_flag_spec
=
8893 supports_anon_versioning
=no
8894 case `$LD -v 2>&1` in
8895 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
8896 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
8897 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
8898 *\
2.11.
*) ;; # other 2.11 versions
8899 *) supports_anon_versioning
=yes ;;
8902 # See if GNU ld supports shared libraries.
8904 aix3
* | aix4
* | aix5
*)
8905 # On AIX/PPC, the GNU linker is very broken
8906 if test "$host_cpu" != ia64
; then
8910 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8911 *** to be unable to reliably create shared libraries on AIX.
8912 *** Therefore, libtool is disabling shared libraries support. If you
8913 *** really care for shared libraries, you may want to modify your PATH
8914 *** so that a non-GNU linker is found, and then restart.
8921 if test "$host_cpu" = m68k
; then
8922 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)'
8923 hardcode_libdir_flag_spec
='-L$libdir'
8924 hardcode_minus_L
=yes
8927 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8928 # that the semantics of dynamic libraries on AmigaOS, at least up
8929 # to version 4, is to share data among multiple programs linked
8930 # with the same dynamic library. Since this doesn't match the
8931 # behavior of shared libraries on other platforms, we can't use
8937 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8938 allow_undefined_flag
=unsupported
8939 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8940 # support --undefined. This deserves some investigation. FIXME
8941 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8947 cygwin
* | mingw
* | pw32
*)
8948 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8949 # as there is no search path for DLLs.
8950 hardcode_libdir_flag_spec
='-L$libdir'
8951 allow_undefined_flag
=unsupported
8952 always_export_symbols
=no
8953 enable_shared_with_static_runtimes
=yes
8954 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8956 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
8957 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8958 # If the export-symbols file already is a .def file (1st line
8959 # is EXPORTS), use it as is; otherwise, prepend...
8960 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8961 cp $export_symbols $output_objdir/$soname.def;
8963 echo EXPORTS > $output_objdir/$soname.def;
8964 cat $export_symbols >> $output_objdir/$soname.def;
8966 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8974 hardcode_shlibpath_var
=no
8975 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8976 export_dynamic_flag_spec
='${wl}-E'
8977 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8978 # Instead, shared libraries are loaded at an image base (0x10000000 by
8979 # default) and relocated if they conflict, which is a slow very memory
8980 # consuming and fragmenting process. To avoid this, we pick a random,
8981 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8982 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8983 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8984 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'
8987 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu)
8989 if test "$host_os" = linux-dietlibc
; then
8990 case $cc_basename in
8991 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
8994 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
8995 && test "$tmp_diet" = no
8998 case $cc_basename,$host_cpu in
8999 pgcc
*) # Portland Group C compiler
9000 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'
9001 tmp_addflag
=' $pic_flag'
9003 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
9004 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'
9005 tmp_addflag
=' $pic_flag -Mnomain' ;;
9006 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9007 tmp_addflag
=' -i_dynamic' ;;
9008 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9009 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9010 ifc
* | ifort
*) # Intel Fortran compiler
9011 tmp_addflag
=' -nofor_main' ;;
9013 case `$CC -V 2>&1 | sed 5q` in
9014 *Sun\ C
*) # Sun C 5.9
9015 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'
9016 compiler_needs_object
=yes
9017 tmp_sharedflag
='-G' ;;
9018 *Sun\ F
*) # Sun Fortran 8.3
9019 tmp_sharedflag
='-G' ;;
9021 tmp_sharedflag
='-shared' ;;
9023 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9025 if test "x$supports_anon_versioning" = xyes
; then
9026 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9027 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9028 echo "local: *; };" >> $output_objdir/$libname.ver~
9029 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9037 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9038 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9041 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9042 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9047 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9051 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9052 *** create shared libraries on Solaris systems. Therefore, libtool
9053 *** is disabling shared libraries support. We urge you to upgrade GNU
9054 *** binutils to release 2.9.1 or newer. Another option is to modify
9055 *** your PATH or compiler configuration so that the native linker is
9056 *** used, and then restart.
9059 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9060 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9061 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9067 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9068 case `$LD -v 2>&1` in
9069 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9073 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9074 *** reliably create shared libraries on SCO systems. Therefore, libtool
9075 *** is disabling shared libraries support. We urge you to upgrade GNU
9076 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9077 *** your PATH or compiler configuration so that the native linker is
9078 *** used, and then restart.
9083 # For security reasons, it is highly recommended that you always
9084 # use absolute paths for naming shared libraries, and exclude the
9085 # DT_RUNPATH tag from executables and libraries. But doing so
9086 # requires that you compile everything twice, which is a pain.
9087 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9088 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9089 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9090 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9099 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9102 hardcode_shlibpath_var
=no
9106 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9107 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9108 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9115 if test "$ld_shlibs" = no
; then
9117 hardcode_libdir_flag_spec
=
9118 export_dynamic_flag_spec
=
9119 whole_archive_flag_spec
=
9122 # PORTME fill in a description of your system's linker (not GNU ld)
9125 allow_undefined_flag
=unsupported
9126 always_export_symbols
=yes
9127 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'
9128 # Note: this linker hardcodes the directories in LIBPATH if there
9129 # are no directories specified by -L.
9130 hardcode_minus_L
=yes
9131 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9132 # Neither direct hardcoding nor static linking is supported with a
9134 hardcode_direct
=unsupported
9139 if test "$host_cpu" = ia64
; then
9140 # On IA64, the linker does run time linking by default, so we don't
9141 # have to do anything special.
9142 aix_use_runtimelinking
=no
9143 exp_sym_flag
='-Bexport'
9146 # If we're using GNU nm, then we don't want the "-C" option.
9147 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9148 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9149 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'
9151 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'
9153 aix_use_runtimelinking
=no
9155 # Test if we are trying to use run time linking or normal
9156 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9157 # need to do runtime linking.
9158 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
9159 for ld_flag
in $LDFLAGS; do
9160 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9161 aix_use_runtimelinking
=yes
9168 exp_sym_flag
='-bexport'
9169 no_entry_flag
='-bnoentry'
9172 # When large executables or shared objects are built, AIX ld can
9173 # have problems creating the table of contents. If linking a library
9174 # or program results in "error TOC overflow" add -mminimal-toc to
9175 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9176 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9180 hardcode_direct_absolute
=yes
9181 hardcode_libdir_separator
=':'
9182 link_all_deplibs
=yes
9183 file_list_spec
='${wl}-f,'
9185 if test "$GCC" = yes; then
9186 case $host_os in aix4.
[012]|aix4.
[012].
*)
9187 # We only want to do this on AIX 4.2 and lower, the check
9188 # below for broken collect2 doesn't work under 4.3+
9189 collect2name
=`${CC} -print-prog-name=collect2`
9190 if test -f "$collect2name" &&
9191 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9193 # We have reworked collect2
9196 # We have old collect2
9197 hardcode_direct
=unsupported
9198 # It fails to find uninstalled libraries when the uninstalled
9199 # path is not listed in the libpath. Setting hardcode_minus_L
9200 # to unsupported forces relinking
9201 hardcode_minus_L
=yes
9202 hardcode_libdir_flag_spec
='-L$libdir'
9203 hardcode_libdir_separator
=
9207 shared_flag
='-shared'
9208 if test "$aix_use_runtimelinking" = yes; then
9209 shared_flag
="$shared_flag "'${wl}-G'
9213 if test "$host_cpu" = ia64
; then
9214 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9215 # chokes on -Wl,-G. The following line is correct:
9218 if test "$aix_use_runtimelinking" = yes; then
9219 shared_flag
='${wl}-G'
9221 shared_flag
='${wl}-bM:SRE'
9226 # It seems that -bexpall does not export symbols beginning with
9227 # underscore (_), so it is better to generate a list of symbols to export.
9228 always_export_symbols
=yes
9229 if test "$aix_use_runtimelinking" = yes; then
9230 # Warning - without using the other runtime loading flags (-brtl),
9231 # -berok will link without error, but may produce a broken library.
9232 allow_undefined_flag
='-berok'
9233 # Determine the default libpath from the value encoded in an
9235 cat >conftest.
$ac_ext <<_ACEOF
9238 cat confdefs.h
>>conftest.
$ac_ext
9239 cat >>conftest.
$ac_ext <<_ACEOF
9240 /* end confdefs.h. */
9250 rm -f conftest.
$ac_objext conftest
$ac_exeext
9251 if { (ac_try
="$ac_link"
9253 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9254 *) ac_try_echo=$ac_try;;
9256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9257 (eval "$ac_link") 2>conftest.er1
9259 grep -v '^ *+' conftest.er1 >conftest.err
9261 cat conftest.err >&5
9262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263 (exit $ac_status); } && {
9264 test -z "$ac_c_werror_flag" ||
9265 test ! -s conftest.err
9266 } && test -s conftest$ac_exeext &&
9267 $as_test_x conftest$ac_exeext; then
9269 lt_aix_libpath_sed='
9270 /Import File Strings/,/^$/ {
9276 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
9277 # Check for a 64-bit object if we didn't find anything.
9278 if test -z "$aix_libpath"; then
9279 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
9282 echo "$as_me: failed program was:" >&5
9283 sed 's/^/| /' conftest.$ac_ext >&5
9288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9289 conftest$ac_exeext conftest.$ac_ext
9290 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9292 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9293 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"
9295 if test "$host_cpu" = ia64; then
9296 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9297 allow_undefined_flag="-z nodefs"
9298 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"
9300 # Determine the default libpath from the value encoded in an
9302 cat >conftest.$ac_ext <<_ACEOF
9305 cat confdefs.h >>conftest.$ac_ext
9306 cat >>conftest.$ac_ext <<_ACEOF
9307 /* end confdefs.h. */
9317 rm -f conftest.$ac_objext conftest$ac_exeext
9318 if { (ac_try="$ac_link"
9320 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9321 *) ac_try_echo
=$ac_try;;
9323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9324 (eval "$ac_link") 2>conftest.er1
9326 grep -v '^ *+' conftest.er1
>conftest.err
9328 cat conftest.err
>&5
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); } && {
9331 test -z "$ac_c_werror_flag" ||
9332 test ! -s conftest.err
9333 } && test -s conftest
$ac_exeext &&
9334 $as_test_x conftest
$ac_exeext; then
9336 lt_aix_libpath_sed
='
9337 /Import File Strings/,/^$/ {
9343 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9344 # Check for a 64-bit object if we didn't find anything.
9345 if test -z "$aix_libpath"; then
9346 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9349 echo "$as_me: failed program was:" >&5
9350 sed 's/^/| /' conftest.
$ac_ext >&5
9355 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9356 conftest
$ac_exeext conftest.
$ac_ext
9357 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9359 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9360 # Warning - without using the other run time loading flags,
9361 # -berok will link without error, but may produce a broken library.
9362 no_undefined_flag
=' ${wl}-bernotok'
9363 allow_undefined_flag
=' ${wl}-berok'
9364 # Exported symbols can be pulled into shared objects from archives
9365 whole_archive_flag_spec
='$convenience'
9366 archive_cmds_need_lc
=yes
9367 # This is similar to how AIX traditionally builds its shared libraries.
9368 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'
9374 if test "$host_cpu" = m68k
; then
9375 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)'
9376 hardcode_libdir_flag_spec
='-L$libdir'
9377 hardcode_minus_L
=yes
9379 # see comment about different semantics on the GNU ld section
9384 export_dynamic_flag_spec
=-rdynamic
9387 cygwin
* | mingw
* | pw32
*)
9388 # When not using gcc, we currently assume that we are using
9389 # Microsoft Visual C++.
9390 # hardcode_libdir_flag_spec is actually meaningless, as there is
9391 # no search path for DLLs.
9392 hardcode_libdir_flag_spec
=' '
9393 allow_undefined_flag
=unsupported
9394 # Tell ltmain to make .lib files, not .a files.
9396 # Tell ltmain to make .dll files, not .so files.
9398 # FIXME: Setting linknames here is a bad hack.
9399 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9400 # The linker will automatically build a .lib file if we build a DLL.
9401 old_archive_from_new_cmds
='true'
9402 # FIXME: Should let the user specify the lib program.
9403 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9404 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9405 enable_shared_with_static_runtimes
=yes
9408 darwin
* | rhapsody
*)
9410 rhapsody
* | darwin1.
[012])
9411 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
9414 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
9416 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9419 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
9424 archive_cmds_need_lc
=no
9426 hardcode_automatic
=yes
9427 hardcode_shlibpath_var
=unsupported
9428 whole_archive_flag_spec
=''
9429 link_all_deplibs
=yes
9430 if test "$GCC" = yes ; then
9431 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
9432 echo $ECHO_N "(cached) $ECHO_C" >&6
9434 lt_cv_apple_cc_single_mod
=no
9435 if test -z "${LT_MULTI_MODULE}"; then
9436 # By default we will add the -single_module flag. You can override
9437 # by either setting the environment variable LT_MULTI_MODULE
9438 # non-empty at configure time, or by adding -multi-module to the
9440 echo "int foo(void){return 1;}" > conftest.c
9441 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9442 -dynamiclib ${wl}-single_module conftest.c
9443 if test -f libconftest.dylib
; then
9444 lt_cv_apple_cc_single_mod
=yes
9445 rm libconftest.dylib
9451 output_verbose_link_cmd
=echo
9452 if test "X$lt_cv_apple_cc_single_mod" = Xyes
; then
9453 archive_cmds
='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9454 archive_expsym_cmds
='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9456 archive_cmds
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9457 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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9459 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9460 module_expsym_cmds
='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9462 case $cc_basename in
9464 output_verbose_link_cmd
=echo
9465 archive_cmds
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
9466 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9467 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9468 archive_expsym_cmds
='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9469 module_expsym_cmds
='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9479 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9480 hardcode_libdir_flag_spec
='-L$libdir'
9481 hardcode_shlibpath_var
=no
9488 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9489 # support. Future versions do this automatically, but an explicit c++rt0.o
9490 # does not break anything, and helps significantly (at the cost of a little
9493 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9494 hardcode_libdir_flag_spec
='-R$libdir'
9496 hardcode_shlibpath_var
=no
9499 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9501 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9503 hardcode_minus_L
=yes
9504 hardcode_shlibpath_var
=no
9507 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9508 freebsd
* | dragonfly
*)
9509 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9510 hardcode_libdir_flag_spec
='-R$libdir'
9512 hardcode_shlibpath_var
=no
9516 if test "$GCC" = yes; then
9517 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'
9519 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'
9521 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9522 hardcode_libdir_separator
=:
9525 # hardcode_minus_L: Not really in the search PATH,
9526 # but as the default location of the library.
9527 hardcode_minus_L
=yes
9528 export_dynamic_flag_spec
='${wl}-E'
9532 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
9533 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9535 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9537 if test "$with_gnu_ld" = no
; then
9538 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9539 hardcode_libdir_flag_spec_ld
='+b $libdir'
9540 hardcode_libdir_separator
=:
9542 hardcode_direct_absolute
=yes
9543 export_dynamic_flag_spec
='${wl}-E'
9544 # hardcode_minus_L: Not really in the search PATH,
9545 # but as the default location of the library.
9546 hardcode_minus_L
=yes
9551 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
9554 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9557 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9560 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9566 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9569 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9572 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9576 if test "$with_gnu_ld" = no
; then
9577 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9578 hardcode_libdir_separator
=:
9583 hardcode_shlibpath_var
=no
9587 hardcode_direct_absolute
=yes
9588 export_dynamic_flag_spec
='${wl}-E'
9590 # hardcode_minus_L: Not really in the search PATH,
9591 # but as the default location of the library.
9592 hardcode_minus_L
=yes
9598 irix5
* | irix6
* | nonstopux
*)
9599 if test "$GCC" = yes; then
9600 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'
9601 # Try to use the -exported_symbol ld option, if it does not
9602 # work, assume that -exports_file does not work either and
9603 # implicitly export all symbols.
9604 save_LDFLAGS
="$LDFLAGS"
9605 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9606 cat >conftest.
$ac_ext <<_ACEOF
9609 rm -f conftest.
$ac_objext conftest
$ac_exeext
9610 if { (ac_try
="$ac_link"
9612 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9613 *) ac_try_echo=$ac_try;;
9615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9616 (eval "$ac_link") 2>conftest.er1
9618 grep -v '^ *+' conftest.er1 >conftest.err
9620 cat conftest.err >&5
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); } && {
9623 test -z "$ac_c_werror_flag" ||
9624 test ! -s conftest.err
9625 } && test -s conftest$ac_exeext &&
9626 $as_test_x conftest$ac_exeext; then
9627 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'
9630 echo "$as_me: failed program was:" >&5
9631 sed 's/^/| /' conftest.$ac_ext >&5
9636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9637 conftest$ac_exeext conftest.$ac_ext
9638 LDFLAGS="$save_LDFLAGS"
9640 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'
9641 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'
9643 archive_cmds_need_lc='no'
9644 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9645 hardcode_libdir_separator=:
9647 link_all_deplibs=yes
9651 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9652 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9654 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9656 hardcode_libdir_flag_spec='-R$libdir'
9658 hardcode_shlibpath_var=no
9662 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9664 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9665 hardcode_libdir_separator=:
9666 hardcode_shlibpath_var=no
9674 hardcode_shlibpath_var=no
9675 hardcode_direct_absolute=yes
9676 if test -z "`echo __ELF__ |
$CC -E - |
$GREP __ELF__
`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9677 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9678 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9679 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9680 export_dynamic_flag_spec='${wl}-E'
9683 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9684 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9685 hardcode_libdir_flag_spec='-R$libdir'
9688 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9689 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9696 hardcode_libdir_flag_spec='-L$libdir'
9697 hardcode_minus_L=yes
9698 allow_undefined_flag=unsupported
9699 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'
9700 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9704 if test "$GCC" = yes; then
9705 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9706 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'
9708 allow_undefined_flag=' -expect_unresolved \*'
9709 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'
9711 archive_cmds_need_lc='no'
9712 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9713 hardcode_libdir_separator=:
9716 osf4* | osf5*) # as osf3* with the addition of -msym flag
9717 if test "$GCC" = yes; then
9718 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9719 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'
9720 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9722 allow_undefined_flag=' -expect_unresolved \*'
9723 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'
9724 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~
9725 $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'
9727 # Both c and cxx compiler support -rpath directly
9728 hardcode_libdir_flag_spec='-rpath $libdir'
9730 archive_cmds_need_lc='no'
9731 hardcode_libdir_separator=:
9735 no_undefined_flag=' -z defs'
9736 if test "$GCC" = yes; then
9738 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9739 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9740 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9742 case `$CC -V 2>&1` in
9745 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9746 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9747 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9751 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9752 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9753 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9757 hardcode_libdir_flag_spec='-R$libdir'
9758 hardcode_shlibpath_var=no
9760 solaris2.[0-5] | solaris2.[0-5].*) ;;
9762 # The compiler driver will combine and reorder linker options,
9763 # but understands `-z linker_flag
'. GCC discards it without `$wl',
9764 # but is careful enough not to reorder.
9765 # Supported since Solaris 2.6 (maybe 2.5.1?)
9766 if test "$GCC" = yes; then
9767 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9769 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
9773 link_all_deplibs
=yes
9777 if test "x$host_vendor" = xsequent
; then
9778 # Use $CC to link under sequent, because it throws in some extra .o
9779 # files that make .init and .fini sections work.
9780 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9782 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9784 hardcode_libdir_flag_spec
='-L$libdir'
9786 hardcode_minus_L
=yes
9787 hardcode_shlibpath_var
=no
9791 case $host_vendor in
9793 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9794 hardcode_direct
=yes # is this really true???
9797 ## LD is ld it makes a PLAMLIB
9798 ## CC just makes a GrossModule.
9799 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9800 reload_cmds
='$CC -r -o $output$reload_objs'
9804 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9805 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
9808 runpath_var
='LD_RUN_PATH'
9809 hardcode_shlibpath_var
=no
9813 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9814 hardcode_shlibpath_var
=no
9815 export_dynamic_flag_spec
='-Bexport'
9819 if test -d /usr
/nec
; then
9820 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9821 hardcode_shlibpath_var
=no
9822 runpath_var
=LD_RUN_PATH
9823 hardcode_runpath_var
=yes
9828 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
9829 no_undefined_flag
='${wl}-z,text'
9830 archive_cmds_need_lc
=no
9831 hardcode_shlibpath_var
=no
9832 runpath_var
='LD_RUN_PATH'
9834 if test "$GCC" = yes; then
9835 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9836 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9838 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9839 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9843 sysv5
* | sco3.2v5
* | sco5v6
*)
9844 # Note: We can NOT use -z defs as we might desire, because we do not
9845 # link with -lc, and that would cause any symbols used from libc to
9846 # always be unresolved, which means just about no library would
9847 # ever link correctly. If we're not using GNU ld we use -z text
9848 # though, which does catch some bad symbols but isn't as heavy-handed
9850 no_undefined_flag
='${wl}-z,text'
9851 allow_undefined_flag
='${wl}-z,nodefs'
9852 archive_cmds_need_lc
=no
9853 hardcode_shlibpath_var
=no
9854 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
9855 hardcode_libdir_separator
=':'
9856 link_all_deplibs
=yes
9857 export_dynamic_flag_spec
='${wl}-Bexport'
9858 runpath_var
='LD_RUN_PATH'
9860 if test "$GCC" = yes; then
9861 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9862 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9864 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9865 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9870 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9871 hardcode_libdir_flag_spec
='-L$libdir'
9872 hardcode_shlibpath_var
=no
9880 if test x
$host_vendor = xsni
; then
9882 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
9883 export_dynamic_flag_spec
='${wl}-Blargedynsym'
9889 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9890 echo "${ECHO_T}$ld_shlibs" >&6; }
9891 test "$ld_shlibs" = no
&& can_build_shared
=no
9893 with_gnu_ld
=$with_gnu_ld
9910 # Do we need to explicitly link libc?
9912 case "x$archive_cmds_need_lc" in
9914 # Assume -lc should be added
9915 archive_cmds_need_lc
=yes
9917 if test "$enable_shared" = yes && test "$GCC" = yes; then
9918 case $archive_cmds in
9920 # FIXME: we may have to deal with multi-command sequences.
9923 # Test whether the compiler implicitly links with -lc since on some
9924 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9925 # to ld, don't add -lc before -lgcc.
9926 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9927 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9929 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9932 (eval $ac_compile) 2>&5
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); } 2>conftest.err
; then
9938 libobjs
=conftest.
$ac_objext
9940 wl
=$lt_prog_compiler_wl
9941 pic_flag
=$lt_prog_compiler_pic
9947 lt_save_allow_undefined_flag
=$allow_undefined_flag
9948 allow_undefined_flag
=
9949 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9950 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); }
9955 archive_cmds_need_lc
=no
9957 archive_cmds_need_lc
=yes
9959 allow_undefined_flag
=$lt_save_allow_undefined_flag
9961 cat conftest.err
1>&5
9964 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9965 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10128 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10129 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10131 if test "$withGCC" = yes; then
10133 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10134 *) lt_awk_arg
="/^libraries:/" ;;
10136 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10137 if $ECHO "$lt_search_path_spec" |
$GREP ';' >/dev
/null
; then
10138 # if the path contains ";" then we assume it to be the separator
10139 # otherwise default to the standard path separator (i.e. ":") - it is
10140 # assumed that no part of a normal pathname contains ";" but that should
10141 # okay in the real world where ";" in dirpaths is itself problematic.
10142 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10144 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10146 # Ok, now we have the path, separated by spaces, we can step through it
10147 # and add multilib dir if necessary.
10148 lt_tmp_lt_search_path_spec
=
10149 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10150 for lt_sys_path
in $lt_search_path_spec; do
10151 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10152 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10154 test -d "$lt_sys_path" && \
10155 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10158 lt_search_path_spec
=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10159 BEGIN {RS=" "; FS="/|\n";} {
10162 for (lt_i = NF; lt_i > 0; lt_i--) {
10163 if ($lt_i != "" && $lt_i != ".") {
10164 if ($lt_i == "..") {
10167 if (lt_count == 0) {
10168 lt_foo="/" $lt_i lt_foo;
10175 if (lt_foo != "") { lt_freq[lt_foo]++; }
10176 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10178 sys_lib_search_path_spec
=`$ECHO $lt_search_path_spec`
10180 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10182 library_names_spec
=
10183 libname_spec
='lib$name'
10187 postuninstall_cmds
=
10191 shlibpath_overrides_runpath
=unknown
10193 dynamic_linker
="$host_os ld.so"
10194 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10195 need_lib_prefix
=unknown
10196 hardcode_into_libs
=no
10198 # when you set need_version to no, make sure it does not cause -set_version
10199 # flags to be left without arguments
10200 need_version
=unknown
10205 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10206 shlibpath_var
=LIBPATH
10208 # AIX 3 has no versioning support, so we append a major version to the name.
10209 soname_spec
='${libname}${release}${shared_ext}$major'
10216 hardcode_into_libs
=yes
10217 if test "$host_cpu" = ia64
; then
10218 # AIX 5 supports IA64
10219 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10220 shlibpath_var
=LD_LIBRARY_PATH
10222 # With GCC up to 2.95.x, collect2 would create an import file
10223 # for dependence libraries. The import file would start with
10224 # the line `#! .'. This would cause the generated library to
10225 # depend on `.', always an invalid library. This was fixed in
10226 # development snapshots of GCC prior to 3.0.
10228 aix4 | aix4.
[01] | aix4.
[01].
*)
10229 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10231 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
10234 can_build_shared
=no
10238 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10239 # soname into executable. Probably we can add versioning support to
10240 # collect2, so additional links can be useful in future.
10241 if test "$aix_use_runtimelinking" = yes; then
10242 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10243 # instead of lib<name>.a to let people know that these are not
10244 # typical AIX shared libraries.
10245 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10247 # We preserve .a as extension for shared libraries through AIX4.2
10248 # and later when we are not doing run time linking.
10249 library_names_spec
='${libname}${release}.a $libname.a'
10250 soname_spec
='${libname}${release}${shared_ext}$major'
10252 shlibpath_var
=LIBPATH
10257 if test "$host_cpu" = m68k
; then
10258 library_names_spec
='$libname.ixlibrary $libname.a'
10259 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10260 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'
10267 library_names_spec
='${libname}${shared_ext}'
10268 dynamic_linker
="$host_os ld.so"
10269 shlibpath_var
=LIBRARY_PATH
10275 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10276 soname_spec
='${libname}${release}${shared_ext}$major'
10277 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10278 shlibpath_var
=LD_LIBRARY_PATH
10279 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10280 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10281 # the default ld.so.conf also contains /usr/contrib/lib and
10282 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10283 # libtool to hard-code these into programs
10286 cygwin
* | mingw
* | pw32
*)
10287 version_type
=windows
10292 case $withGCC,$host_os in
10293 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
10294 library_names_spec
='$libname.dll.a'
10295 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10296 postinstall_cmds
='base_file=`basename \${file}`~
10297 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10298 dldir=$destdir/`dirname \$dlpath`~
10299 test -d \$dldir || mkdir -p \$dldir~
10300 $install_prog $dir/$dlname \$dldir/$dlname~
10301 chmod a+x \$dldir/$dlname~
10302 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10303 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10305 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10306 dlpath=$dir/\$dldll~
10308 shlibpath_overrides_runpath
=yes
10312 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10313 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10314 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
10317 # MinGW DLLs use traditional 'lib' prefix
10318 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10319 sys_lib_search_path_spec
=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10320 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
10321 # It is most probably a Windows format PATH printed by
10322 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10323 # path with ; separators, and with drive letters. We can handle the
10324 # drive letters (cygwin fileutils understands them), so leave them,
10325 # especially as we might pass files found there to a mingw objdump,
10326 # which wouldn't understand a cygwinified path. Ahh.
10327 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10329 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10333 # pw32 DLLs use 'pw' prefix rather than 'lib'
10334 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10340 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10343 dynamic_linker
='Win32 ld.exe'
10344 # FIXME: first we should search . and the directory the executable is in
10348 darwin
* | rhapsody
*)
10349 dynamic_linker
="$host_os dyld"
10350 version_type
=darwin
10353 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10354 soname_spec
='${libname}${release}${major}$shared_ext'
10355 shlibpath_overrides_runpath
=yes
10356 shlibpath_var
=DYLD_LIBRARY_PATH
10357 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10359 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10360 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10367 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10368 soname_spec
='${libname}${release}${shared_ext}$major'
10369 shlibpath_var
=LD_LIBRARY_PATH
10376 freebsd
* | dragonfly
*)
10377 # DragonFly does not have aout. When/if they implement a new
10378 # versioning mechanism, adjust this.
10379 if test -x /usr
/bin
/objformat
; then
10380 objformat
=`/usr/bin/objformat`
10383 freebsd
[123]*) objformat
=aout
;;
10384 *) objformat
=elf
;;
10387 version_type
=freebsd-
$objformat
10388 case $version_type in
10390 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10395 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10399 shlibpath_var
=LD_LIBRARY_PATH
10402 shlibpath_overrides_runpath
=yes
10404 freebsd3.
[01]* | freebsdelf3.
[01]*)
10405 shlibpath_overrides_runpath
=yes
10406 hardcode_into_libs
=yes
10408 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10409 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10410 shlibpath_overrides_runpath
=no
10411 hardcode_into_libs
=yes
10413 *) # from 4.6 on, and DragonFly
10414 shlibpath_overrides_runpath
=yes
10415 hardcode_into_libs
=yes
10424 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10425 soname_spec
='${libname}${release}${shared_ext}$major'
10426 shlibpath_var
=LD_LIBRARY_PATH
10427 hardcode_into_libs
=yes
10430 hpux9
* | hpux10
* | hpux11
*)
10431 # Give a soname corresponding to the major version so that dld.sl refuses to
10432 # link against other versions.
10439 hardcode_into_libs
=yes
10440 dynamic_linker
="$host_os dld.so"
10441 shlibpath_var
=LD_LIBRARY_PATH
10442 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10443 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10444 soname_spec
='${libname}${release}${shared_ext}$major'
10445 if test "X$HPUX_IA64_MODE" = X32
; then
10446 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10448 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10450 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10454 hardcode_into_libs
=yes
10455 dynamic_linker
="$host_os dld.sl"
10456 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10457 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10458 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10459 soname_spec
='${libname}${release}${shared_ext}$major'
10460 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10461 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10465 dynamic_linker
="$host_os dld.sl"
10466 shlibpath_var
=SHLIB_PATH
10467 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10468 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10469 soname_spec
='${libname}${release}${shared_ext}$major'
10472 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10473 postinstall_cmds
='chmod 555 $lib'
10480 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10481 soname_spec
='${libname}${release}${shared_ext}$major'
10482 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10483 shlibpath_var
=LD_LIBRARY_PATH
10484 shlibpath_overrides_runpath
=no
10485 hardcode_into_libs
=yes
10488 irix5
* | irix6
* | nonstopux
*)
10490 nonstopux
*) version_type
=nonstopux
;;
10492 if test "$lt_cv_prog_gnu_ld" = yes; then
10500 soname_spec
='${libname}${release}${shared_ext}$major'
10501 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10503 irix5
* | nonstopux
*)
10504 libsuff
= shlibsuff
=
10507 case $LD in # libtool.m4 will add one of these switches to LD
10508 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10509 libsuff
= shlibsuff
= libmagic
=32-bit;;
10510 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10511 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10512 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10513 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10514 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10518 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10519 shlibpath_overrides_runpath
=no
10520 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10521 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10522 hardcode_into_libs
=yes
10525 # No shared lib support for Linux oldld, aout, or coff.
10526 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10530 # This must be Linux ELF.
10531 linux
* | k
*bsd
*-gnu)
10535 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10536 soname_spec
='${libname}${release}${shared_ext}$major'
10537 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10538 shlibpath_var
=LD_LIBRARY_PATH
10539 shlibpath_overrides_runpath
=no
10540 # Some binutils ld are patched to set DT_RUNPATH
10541 save_LDFLAGS
=$LDFLAGS
10542 save_libdir
=$libdir
10543 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10544 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10545 cat >conftest.
$ac_ext <<_ACEOF
10548 cat confdefs.h
>>conftest.
$ac_ext
10549 cat >>conftest.
$ac_ext <<_ACEOF
10550 /* end confdefs.h. */
10560 rm -f conftest.
$ac_objext conftest
$ac_exeext
10561 if { (ac_try
="$ac_link"
10562 case "(($ac_try" in
10563 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10564 *) ac_try_echo=$ac_try;;
10566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10567 (eval "$ac_link") 2>conftest.er1
10569 grep -v '^ *+' conftest.er1 >conftest.err
10571 cat conftest.err >&5
10572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573 (exit $ac_status); } && {
10574 test -z "$ac_c_werror_flag" ||
10575 test ! -s conftest.err
10576 } && test -s conftest$ac_exeext &&
10577 $as_test_x conftest$ac_exeext; then
10578 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
10579 shlibpath_overrides_runpath=yes
10583 echo "$as_me: failed program was:" >&5
10584 sed 's/^/| /' conftest.$ac_ext >&5
10589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10590 conftest$ac_exeext conftest.$ac_ext
10591 LDFLAGS=$save_LDFLAGS
10592 libdir=$save_libdir
10594 # This implies no fast_install, which is unacceptable.
10595 # Some rework will be needed to allow for fast_install
10596 # before this can be enabled.
10597 hardcode_into_libs=yes
10599 # Append ld.so.conf contents to the search path
10600 if test -f /etc/ld.so.conf; then
10601 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' |
tr '\n' ' '`
10602 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10605 # We used to test for /lib/ld.so.1 and disable shared libraries on
10606 # powerpc, because MkLinux only supported shared libraries with the
10607 # GNU dynamic linker. Since this was broken with cross compilers,
10608 # most powerpc-linux boxes support dynamic linking these days and
10609 # people can always --disable-shared, the test was removed, and we
10610 # assume the GNU/Linux dynamic linker is in use.
10611 dynamic_linker='GNU/Linux ld.so'
10618 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10620 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10621 dynamic_linker='NetBSD (a.out) ld.so'
10623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10624 soname_spec='${libname}${release}${shared_ext}$major'
10625 dynamic_linker='NetBSD ld.elf_so'
10627 shlibpath_var=LD_LIBRARY_PATH
10628 shlibpath_overrides_runpath=yes
10629 hardcode_into_libs=yes
10634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10635 shlibpath_var=LD_LIBRARY_PATH
10636 shlibpath_overrides_runpath=yes
10643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10644 soname_spec='${libname}${release}${shared_ext}$major'
10645 shlibpath_var=LD_LIBRARY_PATH
10646 shlibpath_overrides_runpath=no
10647 hardcode_into_libs=yes
10648 dynamic_linker='ldqnx.so'
10653 sys_lib_dlsearch_path_spec="/usr/lib"
10655 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10657 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10658 *) need_version=no ;;
10660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10661 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10662 shlibpath_var=LD_LIBRARY_PATH
10663 if test -z "`echo __ELF__ |
$CC -E - |
$GREP __ELF__
`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10665 openbsd2.[89] | openbsd2.[89].*)
10666 shlibpath_overrides_runpath=no
10669 shlibpath_overrides_runpath=yes
10673 shlibpath_overrides_runpath=yes
10678 libname_spec='$name'
10681 library_names_spec='$libname${shared_ext} $libname.a'
10682 dynamic_linker='OS/2 ld.exe'
10683 shlibpath_var=LIBPATH
10686 osf3* | osf4* | osf5*)
10690 soname_spec='${libname}${release}${shared_ext}$major'
10691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10692 shlibpath_var=LD_LIBRARY_PATH
10693 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10694 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10706 soname_spec='${libname}${release}${shared_ext}$major'
10707 shlibpath_var=LD_LIBRARY_PATH
10708 shlibpath_overrides_runpath=yes
10709 hardcode_into_libs=yes
10710 # ldd complains unless libraries are executable
10711 postinstall_cmds='chmod +x $lib'
10716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10717 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10718 shlibpath_var=LD_LIBRARY_PATH
10719 shlibpath_overrides_runpath=yes
10720 if test "$with_gnu_ld" = yes; then
10728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10729 soname_spec='${libname}${release}${shared_ext}$major'
10730 shlibpath_var=LD_LIBRARY_PATH
10731 case $host_vendor in
10733 shlibpath_overrides_runpath=no
10735 runpath_var=LD_RUN_PATH
10743 shlibpath_overrides_runpath=no
10744 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10750 if test -d /usr/nec ;then
10752 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10753 soname_spec='$libname${shared_ext}.$major'
10754 shlibpath_var=LD_LIBRARY_PATH
10758 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10759 version_type=freebsd-elf
10762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10763 soname_spec='${libname}${release}${shared_ext}$major'
10764 shlibpath_var=LD_LIBRARY_PATH
10765 shlibpath_overrides_runpath=yes
10766 hardcode_into_libs=yes
10767 if test "$with_gnu_ld" = yes; then
10768 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10770 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10773 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10777 sys_lib_dlsearch_path_spec='/usr/lib'
10781 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10785 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10786 shlibpath_var=LD_LIBRARY_PATH
10787 shlibpath_overrides_runpath=no
10788 hardcode_into_libs=yes
10793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10794 soname_spec='${libname}${release}${shared_ext}$major'
10795 shlibpath_var=LD_LIBRARY_PATH
10802 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10803 echo "${ECHO_T}$dynamic_linker" >&6; }
10804 test "$dynamic_linker" = no && can_build_shared=no
10806 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10807 if test "$GCC" = yes; then
10808 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10897 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10898 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10900 if test -n "$hardcode_libdir_flag_spec" ||
10901 test -n "$runpath_var" ||
10902 test "X$hardcode_automatic" = "Xyes" ; then
10904 # We can hardcode non-existent directories.
10905 if test "$hardcode_direct" != no &&
10906 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10907 # have to relink, otherwise we might link with an installed library
10908 # when we should be linking with a yet-to-be-installed one
10909 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10910 test "$hardcode_minus_L" != no; then
10911 # Linking always hardcodes the temporary library directory.
10912 hardcode_action=relink
10914 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10915 hardcode_action=immediate
10918 # We cannot hardcode anything, or else we can only hardcode existing
10920 hardcode_action=unsupported
10922 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10923 echo "${ECHO_T}$hardcode_action" >&6; }
10925 if test "$hardcode_action" = relink ||
10926 test "$inherit_rpath" = yes; then
10927 # Fast installation is not supported
10928 enable_fast_install=no
10929 elif test "$shlibpath_overrides_runpath" = yes ||
10930 test "$enable_shared" = no; then
10931 # Fast installation is not necessary
10932 enable_fast_install=needless
10940 if test "x$enable_dlopen" != xyes; then
10941 enable_dlopen=unknown
10942 enable_dlopen_self=unknown
10943 enable_dlopen_self_static=unknown
10950 lt_cv_dlopen="load_add_on"
10952 lt_cv_dlopen_self=yes
10956 lt_cv_dlopen="LoadLibrary"
10961 lt_cv_dlopen="dlopen"
10966 # if libdl is installed we need to link against it
10967 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10968 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10969 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10970 echo $ECHO_N "(cached) $ECHO_C" >&6
10972 ac_check_lib_save_LIBS=$LIBS
10974 cat >conftest.$ac_ext <<_ACEOF
10977 cat confdefs.h >>conftest.$ac_ext
10978 cat >>conftest.$ac_ext <<_ACEOF
10979 /* end confdefs.h. */
10981 /* Override any GCC internal prototype to avoid an error.
10982 Use char because int might match the return type of a GCC
10983 builtin and then its argument prototype would still apply. */
10996 rm -f conftest.$ac_objext conftest$ac_exeext
10997 if { (ac_try="$ac_link"
10998 case "(($ac_try" in
10999 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11000 *) ac_try_echo
=$ac_try;;
11002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11003 (eval "$ac_link") 2>conftest.er1
11005 grep -v '^ *+' conftest.er1
>conftest.err
11007 cat conftest.err
>&5
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); } && {
11010 test -z "$ac_c_werror_flag" ||
11011 test ! -s conftest.err
11012 } && test -s conftest
$ac_exeext &&
11013 $as_test_x conftest
$ac_exeext; then
11014 ac_cv_lib_dl_dlopen
=yes
11016 echo "$as_me: failed program was:" >&5
11017 sed 's/^/| /' conftest.
$ac_ext >&5
11019 ac_cv_lib_dl_dlopen
=no
11022 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11023 conftest
$ac_exeext conftest.
$ac_ext
11024 LIBS
=$ac_check_lib_save_LIBS
11026 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11027 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11028 if test $ac_cv_lib_dl_dlopen = yes; then
11029 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11032 lt_cv_dlopen
="dyld"
11034 lt_cv_dlopen_self
=yes
11041 { echo "$as_me:$LINENO: checking for shl_load" >&5
11042 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
11043 if test "${ac_cv_func_shl_load+set}" = set; then
11044 echo $ECHO_N "(cached) $ECHO_C" >&6
11046 cat >conftest.
$ac_ext <<_ACEOF
11049 cat confdefs.h
>>conftest.
$ac_ext
11050 cat >>conftest.
$ac_ext <<_ACEOF
11051 /* end confdefs.h. */
11052 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11054 #define shl_load innocuous_shl_load
11056 /* System header to define __stub macros and hopefully few prototypes,
11057 which can conflict with char shl_load (); below.
11058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11059 <limits.h> exists even on freestanding compilers. */
11062 # include <limits.h>
11064 # include <assert.h>
11069 /* Override any GCC internal prototype to avoid an error.
11070 Use char because int might match the return type of a GCC
11071 builtin and then its argument prototype would still apply. */
11076 /* The GNU C library defines this for functions which it implements
11077 to always fail with ENOSYS. Some functions are actually named
11078 something starting with __ and the normal name is an alias. */
11079 #if defined __stub_shl_load || defined __stub___shl_load
11086 return shl_load ();
11091 rm -f conftest.
$ac_objext conftest
$ac_exeext
11092 if { (ac_try
="$ac_link"
11093 case "(($ac_try" in
11094 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11095 *) ac_try_echo=$ac_try;;
11097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11098 (eval "$ac_link") 2>conftest.er1
11100 grep -v '^ *+' conftest.er1 >conftest.err
11102 cat conftest.err >&5
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); } && {
11105 test -z "$ac_c_werror_flag" ||
11106 test ! -s conftest.err
11107 } && test -s conftest$ac_exeext &&
11108 $as_test_x conftest$ac_exeext; then
11109 ac_cv_func_shl_load=yes
11111 echo "$as_me: failed program was:" >&5
11112 sed 's/^/| /' conftest.$ac_ext >&5
11114 ac_cv_func_shl_load=no
11117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11118 conftest$ac_exeext conftest.$ac_ext
11120 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11121 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11122 if test $ac_cv_func_shl_load = yes; then
11123 lt_cv_dlopen="shl_load"
11125 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11126 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11127 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11128 echo $ECHO_N "(cached) $ECHO_C" >&6
11130 ac_check_lib_save_LIBS=$LIBS
11132 cat >conftest.$ac_ext <<_ACEOF
11135 cat confdefs.h >>conftest.$ac_ext
11136 cat >>conftest.$ac_ext <<_ACEOF
11137 /* end confdefs.h. */
11139 /* Override any GCC internal prototype to avoid an error.
11140 Use char because int might match the return type of a GCC
11141 builtin and then its argument prototype would still apply. */
11149 return shl_load ();
11154 rm -f conftest.$ac_objext conftest$ac_exeext
11155 if { (ac_try="$ac_link"
11156 case "(($ac_try" in
11157 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11158 *) ac_try_echo
=$ac_try;;
11160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11161 (eval "$ac_link") 2>conftest.er1
11163 grep -v '^ *+' conftest.er1
>conftest.err
11165 cat conftest.err
>&5
11166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167 (exit $ac_status); } && {
11168 test -z "$ac_c_werror_flag" ||
11169 test ! -s conftest.err
11170 } && test -s conftest
$ac_exeext &&
11171 $as_test_x conftest
$ac_exeext; then
11172 ac_cv_lib_dld_shl_load
=yes
11174 echo "$as_me: failed program was:" >&5
11175 sed 's/^/| /' conftest.
$ac_ext >&5
11177 ac_cv_lib_dld_shl_load
=no
11180 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11181 conftest
$ac_exeext conftest.
$ac_ext
11182 LIBS
=$ac_check_lib_save_LIBS
11184 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11185 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11186 if test $ac_cv_lib_dld_shl_load = yes; then
11187 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-dld"
11189 { echo "$as_me:$LINENO: checking for dlopen" >&5
11190 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11191 if test "${ac_cv_func_dlopen+set}" = set; then
11192 echo $ECHO_N "(cached) $ECHO_C" >&6
11194 cat >conftest.
$ac_ext <<_ACEOF
11197 cat confdefs.h
>>conftest.
$ac_ext
11198 cat >>conftest.
$ac_ext <<_ACEOF
11199 /* end confdefs.h. */
11200 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11202 #define dlopen innocuous_dlopen
11204 /* System header to define __stub macros and hopefully few prototypes,
11205 which can conflict with char dlopen (); below.
11206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11207 <limits.h> exists even on freestanding compilers. */
11210 # include <limits.h>
11212 # include <assert.h>
11217 /* Override any GCC internal prototype to avoid an error.
11218 Use char because int might match the return type of a GCC
11219 builtin and then its argument prototype would still apply. */
11224 /* The GNU C library defines this for functions which it implements
11225 to always fail with ENOSYS. Some functions are actually named
11226 something starting with __ and the normal name is an alias. */
11227 #if defined __stub_dlopen || defined __stub___dlopen
11239 rm -f conftest.
$ac_objext conftest
$ac_exeext
11240 if { (ac_try
="$ac_link"
11241 case "(($ac_try" in
11242 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11243 *) ac_try_echo=$ac_try;;
11245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11246 (eval "$ac_link") 2>conftest.er1
11248 grep -v '^ *+' conftest.er1 >conftest.err
11250 cat conftest.err >&5
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); } && {
11253 test -z "$ac_c_werror_flag" ||
11254 test ! -s conftest.err
11255 } && test -s conftest$ac_exeext &&
11256 $as_test_x conftest$ac_exeext; then
11257 ac_cv_func_dlopen=yes
11259 echo "$as_me: failed program was:" >&5
11260 sed 's/^/| /' conftest.$ac_ext >&5
11262 ac_cv_func_dlopen=no
11265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11266 conftest$ac_exeext conftest.$ac_ext
11268 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11269 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11270 if test $ac_cv_func_dlopen = yes; then
11271 lt_cv_dlopen="dlopen"
11273 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11274 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11275 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11276 echo $ECHO_N "(cached) $ECHO_C" >&6
11278 ac_check_lib_save_LIBS=$LIBS
11280 cat >conftest.$ac_ext <<_ACEOF
11283 cat confdefs.h >>conftest.$ac_ext
11284 cat >>conftest.$ac_ext <<_ACEOF
11285 /* end confdefs.h. */
11287 /* Override any GCC internal prototype to avoid an error.
11288 Use char because int might match the return type of a GCC
11289 builtin and then its argument prototype would still apply. */
11302 rm -f conftest.$ac_objext conftest$ac_exeext
11303 if { (ac_try="$ac_link"
11304 case "(($ac_try" in
11305 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11306 *) ac_try_echo
=$ac_try;;
11308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11309 (eval "$ac_link") 2>conftest.er1
11311 grep -v '^ *+' conftest.er1
>conftest.err
11313 cat conftest.err
>&5
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); } && {
11316 test -z "$ac_c_werror_flag" ||
11317 test ! -s conftest.err
11318 } && test -s conftest
$ac_exeext &&
11319 $as_test_x conftest
$ac_exeext; then
11320 ac_cv_lib_dl_dlopen
=yes
11322 echo "$as_me: failed program was:" >&5
11323 sed 's/^/| /' conftest.
$ac_ext >&5
11325 ac_cv_lib_dl_dlopen
=no
11328 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11329 conftest
$ac_exeext conftest.
$ac_ext
11330 LIBS
=$ac_check_lib_save_LIBS
11332 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11333 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11334 if test $ac_cv_lib_dl_dlopen = yes; then
11335 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11337 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11338 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11339 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11340 echo $ECHO_N "(cached) $ECHO_C" >&6
11342 ac_check_lib_save_LIBS
=$LIBS
11343 LIBS
="-lsvld $LIBS"
11344 cat >conftest.
$ac_ext <<_ACEOF
11347 cat confdefs.h
>>conftest.
$ac_ext
11348 cat >>conftest.
$ac_ext <<_ACEOF
11349 /* end confdefs.h. */
11351 /* Override any GCC internal prototype to avoid an error.
11352 Use char because int might match the return type of a GCC
11353 builtin and then its argument prototype would still apply. */
11366 rm -f conftest.
$ac_objext conftest
$ac_exeext
11367 if { (ac_try
="$ac_link"
11368 case "(($ac_try" in
11369 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11370 *) ac_try_echo=$ac_try;;
11372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11373 (eval "$ac_link") 2>conftest.er1
11375 grep -v '^ *+' conftest.er1 >conftest.err
11377 cat conftest.err >&5
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); } && {
11380 test -z "$ac_c_werror_flag" ||
11381 test ! -s conftest.err
11382 } && test -s conftest$ac_exeext &&
11383 $as_test_x conftest$ac_exeext; then
11384 ac_cv_lib_svld_dlopen=yes
11386 echo "$as_me: failed program was:" >&5
11387 sed 's/^/| /' conftest.$ac_ext >&5
11389 ac_cv_lib_svld_dlopen=no
11392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11393 conftest$ac_exeext conftest.$ac_ext
11394 LIBS=$ac_check_lib_save_LIBS
11396 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11397 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11398 if test $ac_cv_lib_svld_dlopen = yes; then
11399 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11401 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11402 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11403 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11404 echo $ECHO_N "(cached) $ECHO_C" >&6
11406 ac_check_lib_save_LIBS=$LIBS
11408 cat >conftest.$ac_ext <<_ACEOF
11411 cat confdefs.h >>conftest.$ac_ext
11412 cat >>conftest.$ac_ext <<_ACEOF
11413 /* end confdefs.h. */
11415 /* Override any GCC internal prototype to avoid an error.
11416 Use char because int might match the return type of a GCC
11417 builtin and then its argument prototype would still apply. */
11425 return dld_link ();
11430 rm -f conftest.$ac_objext conftest$ac_exeext
11431 if { (ac_try="$ac_link"
11432 case "(($ac_try" in
11433 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11434 *) ac_try_echo
=$ac_try;;
11436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11437 (eval "$ac_link") 2>conftest.er1
11439 grep -v '^ *+' conftest.er1
>conftest.err
11441 cat conftest.err
>&5
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); } && {
11444 test -z "$ac_c_werror_flag" ||
11445 test ! -s conftest.err
11446 } && test -s conftest
$ac_exeext &&
11447 $as_test_x conftest
$ac_exeext; then
11448 ac_cv_lib_dld_dld_link
=yes
11450 echo "$as_me: failed program was:" >&5
11451 sed 's/^/| /' conftest.
$ac_ext >&5
11453 ac_cv_lib_dld_dld_link
=no
11456 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11457 conftest
$ac_exeext conftest.
$ac_ext
11458 LIBS
=$ac_check_lib_save_LIBS
11460 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11461 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11462 if test $ac_cv_lib_dld_dld_link = yes; then
11463 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-dld"
11484 if test "x$lt_cv_dlopen" != xno
; then
11490 case $lt_cv_dlopen in
11492 save_CPPFLAGS
="$CPPFLAGS"
11493 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11495 save_LDFLAGS
="$LDFLAGS"
11496 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11499 LIBS
="$lt_cv_dlopen_libs $LIBS"
11501 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11502 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11503 if test "${lt_cv_dlopen_self+set}" = set; then
11504 echo $ECHO_N "(cached) $ECHO_C" >&6
11506 if test "$cross_compiling" = yes; then :
11507 lt_cv_dlopen_self
=cross
11509 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11510 lt_status
=$lt_dlunknown
11511 cat > conftest.
$ac_ext <<_LT_EOF
11512 #line 11512 "configure"
11513 #include "confdefs.h"
11522 # define LT_DLGLOBAL RTLD_GLOBAL
11525 # define LT_DLGLOBAL DL_GLOBAL
11527 # define LT_DLGLOBAL 0
11531 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11532 find out it does not work in some platform. */
11533 #ifndef LT_DLLAZY_OR_NOW
11535 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11538 # define LT_DLLAZY_OR_NOW DL_LAZY
11541 # define LT_DLLAZY_OR_NOW RTLD_NOW
11544 # define LT_DLLAZY_OR_NOW DL_NOW
11546 # define LT_DLLAZY_OR_NOW 0
11554 extern "C" void exit (int);
11557 void fnord() { int i=42;}
11560 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11561 int status = $lt_dlunknown;
11565 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11566 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11567 /* dlclose (self); */
11575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11576 (eval $ac_link) 2>&5
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11580 (.
/conftest
; exit; ) >&5 2>/dev
/null
11582 case x
$lt_status in
11583 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11584 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11585 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11588 # compilation failed
11589 lt_cv_dlopen_self
=no
11596 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11597 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11599 if test "x$lt_cv_dlopen_self" = xyes
; then
11600 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11601 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11602 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11603 if test "${lt_cv_dlopen_self_static+set}" = set; then
11604 echo $ECHO_N "(cached) $ECHO_C" >&6
11606 if test "$cross_compiling" = yes; then :
11607 lt_cv_dlopen_self_static
=cross
11609 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11610 lt_status
=$lt_dlunknown
11611 cat > conftest.
$ac_ext <<_LT_EOF
11612 #line 11612 "configure"
11613 #include "confdefs.h"
11622 # define LT_DLGLOBAL RTLD_GLOBAL
11625 # define LT_DLGLOBAL DL_GLOBAL
11627 # define LT_DLGLOBAL 0
11631 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11632 find out it does not work in some platform. */
11633 #ifndef LT_DLLAZY_OR_NOW
11635 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11638 # define LT_DLLAZY_OR_NOW DL_LAZY
11641 # define LT_DLLAZY_OR_NOW RTLD_NOW
11644 # define LT_DLLAZY_OR_NOW DL_NOW
11646 # define LT_DLLAZY_OR_NOW 0
11654 extern "C" void exit (int);
11657 void fnord() { int i=42;}
11660 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11661 int status = $lt_dlunknown;
11665 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11666 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11667 /* dlclose (self); */
11675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11676 (eval $ac_link) 2>&5
11678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11680 (.
/conftest
; exit; ) >&5 2>/dev
/null
11682 case x
$lt_status in
11683 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11684 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11685 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11688 # compilation failed
11689 lt_cv_dlopen_self_static
=no
11696 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11697 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11700 CPPFLAGS
="$save_CPPFLAGS"
11701 LDFLAGS
="$save_LDFLAGS"
11706 case $lt_cv_dlopen_self in
11707 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11708 *) enable_dlopen_self
=unknown
;;
11711 case $lt_cv_dlopen_self_static in
11712 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11713 *) enable_dlopen_self_static
=unknown
;;
11735 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11736 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
11737 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11738 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11739 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11740 { echo "$as_me:$LINENO: result: yes" >&5
11741 echo "${ECHO_T}yes" >&6; }
11743 # FIXME - insert some real tests, host_os isn't really good enough
11746 if test -n "$STRIP" ; then
11747 striplib
="$STRIP -x"
11748 old_striplib
="$STRIP -S"
11749 { echo "$as_me:$LINENO: result: yes" >&5
11750 echo "${ECHO_T}yes" >&6; }
11752 { echo "$as_me:$LINENO: result: no" >&5
11753 echo "${ECHO_T}no" >&6; }
11757 { echo "$as_me:$LINENO: result: no" >&5
11758 echo "${ECHO_T}no" >&6; }
11774 # Report which library types will actually be built
11775 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11776 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11777 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11778 echo "${ECHO_T}$can_build_shared" >&6; }
11780 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11781 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11782 test "$can_build_shared" = "no" && enable_shared
=no
11784 # On AIX, shared libraries and static libraries use the same namespace, and
11785 # are all built from PIC.
11788 test "$enable_shared" = yes && enable_static
=no
11789 if test -n "$RANLIB"; then
11790 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11791 postinstall_cmds
='$RANLIB $lib'
11796 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11797 test "$enable_shared" = yes && enable_static
=no
11801 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11802 echo "${ECHO_T}$enable_shared" >&6; }
11804 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11805 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11806 # Make sure either enable_shared or enable_static is yes.
11807 test "$enable_shared" = yes || enable_static
=yes
11808 { echo "$as_me:$LINENO: result: $enable_static" >&5
11809 echo "${ECHO_T}$enable_static" >&6; }
11816 ac_cpp
='$CPP $CPPFLAGS'
11817 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11818 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11819 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11835 ac_config_commands
="$ac_config_commands libtool"
11840 # Only expand once:
11845 # Check whether --enable-newlib_hw_fp was given.
11846 if test "${enable_newlib_hw_fp+set}" = set; then
11847 enableval
=$enable_newlib_hw_fp; case "${enableval}" in
11848 yes) newlib_hw_fp
=true
;;
11849 no
) newlib_hw_fp
=false
;;
11850 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-newlib-hw-fp" >&5
11851 echo "$as_me: error: bad value ${enableval} for --enable-newlib-hw-fp" >&2;}
11852 { (exit 1); exit 1; }; } ;;
11860 if test x
$newlib_hw_fp = xtrue
; then
11862 NEWLIB_HW_FP_FALSE
='#'
11864 NEWLIB_HW_FP_TRUE
='#'
11865 NEWLIB_HW_FP_FALSE
=
11869 # These get added in the top-level configure.in, except in the case where
11870 # newlib is being built natively.
11871 LIBC_INCLUDE_GREP
=`echo ${CC} | grep \/libc\/include`
11872 abs_newlib_basedir
=`cd ${newlib_basedir} && pwd`
11873 if test -z "${LIBC_INCLUDE_GREP}"; then
11874 CC_FOR_NEWLIB
="${CC} -I$PWD/targ-include -I${abs_newlib_basedir}/libc/include"
11876 CC_FOR_NEWLIB
="${CC}"
11880 subdirs
="$subdirs libc"
11882 subdirs
="$subdirs libm"
11885 if test -z "${with_multisubdir}"; then
11886 subdirs
="$subdirs doc"
11894 if test x
$have_doc = xyes
; then
11905 i
[34567]86-pc-linux-*)
11906 subdirs
="$subdirs iconvdata"
11908 EXTRA_DIRS
=iconvdata
11915 if test "x${have_crt0}" = "xyes"; then
11924 if test -n "${crt1_dir}"; then
11925 CRT1_DIR
=${crt1_dir}/
11930 if test -n "${libm_machine_dir}"; then
11931 LIBM_MACHINE_OBJECTLIST
=libm
/machine
/${libm_machine_dir}/objectlist.
awk.
in
11935 if test -n "${machine_dir}"; then
11936 MACHINE_OBJECTLIST
=libc
/machine
/${machine_dir}/objectlist.
awk.
in
11940 if test -n "${sys_dir}"; then
11941 SYS_OBJECTLIST
=libc
/sys
/${sys_dir}/objectlist.
awk.
in
11945 if test "${have_sys_mach_dir}" = "yes"; then
11946 SYS_MACH_OBJECTLIST
=libc
/sys
/${sys_dir}/machine
/${machine_dir}/objectlist.
awk.
in
11950 if test -n "${posix_dir}"; then
11951 POSIX_OBJECTLIST
=libc
/${posix_dir}/objectlist.
awk.
in
11955 if test -n "${signal_dir}"; then
11956 SIGNAL_OBJECTLIST
=libc
/${signal_dir}/objectlist.
awk.
in
11960 if test -n "${syscall_dir}"; then
11961 SYSCALL_OBJECTLIST
=libc
/${syscall_dir}/objectlist.
awk.
in
11965 if test -n "${unix_dir}"; then
11966 UNIX_OBJECTLIST
=libc
/${unix_dir}/objectlist.
awk.
in
11970 if test -n "${stdio64_dir}"; then
11971 STDIO64_OBJECTLIST
=libc
/${stdio64_dir}/objectlist.
awk.
in
11975 # Put a plausible default for CC_FOR_BUILD in Makefile.
11976 if test -z "$CC_FOR_BUILD"; then
11981 if test "${newlib_elix_level}" -gt "0"; then
11982 cat >>confdefs.h
<<_ACEOF
11983 #define _ELIX_LEVEL ${newlib_elix_level}
11988 if test "${newlib_io_c99_formats}" = "yes"; then
11989 cat >>confdefs.h
<<_ACEOF
11990 #define _WANT_IO_C99_FORMATS 1
11995 if test "${newlib_io_long_long}" = "yes"; then
11996 cat >>confdefs.h
<<_ACEOF
11997 #define _WANT_IO_LONG_LONG 1
12002 if test "${newlib_io_long_double}" = "yes"; then
12003 cat >>confdefs.h
<<_ACEOF
12004 #define _WANT_IO_LONG_DOUBLE 1
12009 if test "${newlib_io_pos_args}" = "yes"; then
12010 cat >>confdefs.h
<<_ACEOF
12011 #define _WANT_IO_POS_ARGS 1
12016 if test "${newlib_reent_small}" = "yes"; then
12017 cat >>confdefs.h
<<_ACEOF
12018 #define _WANT_REENT_SMALL 1
12023 if test "${newlib_mb}" = "yes"; then
12024 cat >>confdefs.h
<<_ACEOF
12025 #define _MB_CAPABLE 1
12028 cat >>confdefs.h
<<_ACEOF
12029 #define _MB_LEN_MAX 8
12033 cat >>confdefs.h
<<_ACEOF
12034 #define _MB_LEN_MAX 1
12039 if test "${newlib_iconv_external_ccs}" = "yes"; then
12040 cat >>confdefs.h
<<_ACEOF
12041 #define _ICONV_ENABLE_EXTERNAL_CCS 1
12046 cat >>confdefs.h
<<_ACEOF
12047 #define _NEWLIB_VERSION "1.16.0"
12051 if test "${multilib}" = "yes"; then
12052 multilib_arg
="--enable-multilib"
12057 if test "${newlib_iconv}" = "yes"; then
12058 cat >>confdefs.h
<<_ACEOF
12059 #define _ICONV_ENABLED 1
12064 if test "x${newlib_iconv_external_ccs}" = "xyes"; then
12065 if test "x${newlib_iconv}" = "x"; then
12066 { { echo "$as_me:$LINENO: error: --enable-newlib-iconv-external-ccs option can't be used if iconv library is disabled" >&5
12067 echo "$as_me: error: --enable-newlib-iconv-external-ccs option can't be used if iconv library is disabled" >&2;}
12068 { (exit use
--enable-newlib-iconv to
enable it.
); exit use
--enable-newlib-iconv to
enable it.
; }; }
12070 cat >>confdefs.h
<<_ACEOF
12071 #define _ICONV_ENABLE_EXTERNAL_CCS 1
12076 if test "${newlib_atexit_dynamic_alloc}" = "yes"; then
12077 cat >>confdefs.h
<<_ACEOF
12078 #define _ATEXIT_DYNAMIC_ALLOC 1
12084 if test "x${iconv_encodings}" != "x" \
12085 ||
test "x${iconv_to_encodings}" != "x" \
12086 ||
test "x${iconv_from_encodings}" != "x"; then
12087 if test "x${newlib_iconv}" = "x"; then
12088 { { echo "$as_me:$LINENO: error: --enable-newlib-iconv-encodings, --enable-newlib-iconv-from-encodings and --enable-newlib-iconv-to-encodings option can't be used if iconv library is disabled, use --enable-newlib-iconv to enable it." >&5
12089 echo "$as_me: error: --enable-newlib-iconv-encodings, --enable-newlib-iconv-from-encodings and --enable-newlib-iconv-to-encodings option can't be used if iconv library is disabled, use --enable-newlib-iconv to enable it." >&2;}
12090 { (exit 1); exit 1; }; }
12093 iconv_encodings
=`echo "${iconv_encodings}" | sed -e 's/,/ /g' -e 's/-/_/g' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
12094 iconv_to_encodings
=`echo "${iconv_to_encodings}" | sed -e 's/,/ /g' -e 's/-/_/g' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
12095 iconv_from_encodings
=`echo "${iconv_from_encodings}" | sed -e 's/,/ /g' -e 's/-/_/g' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
12097 available_encodings
=`cat "${srcdir}/libc/iconv/encoding.aliases" | sed -e '/^#.*/d'`
12100 iconv_encodings1
="${iconv_encodings}"
12102 for encoding
in ${iconv_encodings1}; do
12103 result
=`echo "${available_encodings}" | grep -e "\(^\| \)${encoding}\( \|\$\)"`
12104 if test $?
!= "0"; then
12105 { { echo "$as_me:$LINENO: error: ${encoding} is not supported - see ${srcdir}/libc/iconv/encoding.aliases file for the list of available encodings" >&5
12106 echo "$as_me: error: ${encoding} is not supported - see ${srcdir}/libc/iconv/encoding.aliases file for the list of available encodings" >&2;}
12107 { (exit 1); exit 1; }; }
12109 encoding1=`echo "${result}" | sed -e 's/\(^[^ ]*\).*$/\1/'`
12110 iconv_encodings="${iconv_encodings} ${encoding1}"
12112 for encoding in ${iconv_encodings}; do
12113 opt=_ICONV_TO_ENCODING_`echo "${encoding}" | sed -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12114 cat >>confdefs.h <<_ACEOF
12118 opt=_ICONV_FROM_ENCODING_`echo "${encoding}" | sed -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12119 cat >>confdefs.h <<_ACEOF
12125 iconv_encodings1="${iconv_to_encodings}"
12126 iconv_to_encodings=""
12127 for encoding in ${iconv_encodings1}; do
12128 result=`echo "${available_encodings}" | grep -e "\
(^\| \
)${encoding}\
( \|\$\
)"`
12129 if test $? != "0"; then
12130 { { echo "$as_me:$LINENO: error
: ${encoding} is not supported
- see
${srcdir}/libc
/iconv
/encoding.aliases
file for the list of available encodings
" >&5
12131 echo "$as_me: error
: ${encoding} is not supported - see ${srcdir}/libc/iconv/encoding.aliases file for the list of available encodings" >&2;}
12132 { (exit 1); exit 1; }; }
12134 encoding1
=`echo "${result}" | sed -e 's/\(^[^ ]*\).*$/\1/'`
12135 iconv_to_encodings
="${iconv_to_encodings} ${encoding1}"
12137 for encoding
in ${iconv_to_encodings}; do
12138 opt
=_ICONV_TO_ENCODING_
`echo "${encoding}" | sed -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12139 cat >>confdefs.h
<<_ACEOF
12145 iconv_encodings1
="${iconv_from_encodings}"
12146 iconv_from_encodings
=""
12147 for encoding
in ${iconv_encodings1}; do
12148 result
=`echo "${available_encodings}" | grep -e "\(^\| \)${encoding}\( \|\$\)"`
12149 if test $?
!= "0"; then
12150 { { echo "$as_me:$LINENO: error: ${encoding} is not supported - see ${srcdir}/libc/iconv/encoding.aliases file for the list of available encodings" >&5
12151 echo "$as_me: error: ${encoding} is not supported - see ${srcdir}/libc/iconv/encoding.aliases file for the list of available encodings" >&2;}
12152 { (exit 1); exit 1; }; }
12154 encoding1=`echo "${result}" | sed -e 's/\(^[^ ]*\).*$/\1/'`
12155 iconv_from_encodings="${iconv_from_encodings} ${encoding1}"
12157 for encoding in ${iconv_from_encodings}; do
12158 opt=_ICONV_FROM_ENCODING_`echo "${encoding}" | sed -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12159 cat >>confdefs.h <<_ACEOF
12166 { echo "$as_me:$LINENO: checking
for .preinit_array
/.init_array
/.fini_array support
" >&5
12167 echo $ECHO_N "checking
for .preinit_array
/.init_array
/.fini_array support...
$ECHO_C" >&6; }
12168 if test "${libc_cv_initfinit_array+set}" = set; then
12169 echo $ECHO_N "(cached
) $ECHO_C" >&6
12171 cat > conftest.c <<EOF
12172 int _start (void) { return 0; }
12173 int __start (void) { return 0; }
12174 int foo (void) { return 1; }
12175 int (*fp) (void) __attribute__ ((section (".init_array
"))) = foo;
12177 if { ac_try='${CC} $CFLAGS $CPPFLAGS $LDFLAGS -o conftest conftest.c
12178 -static -nostartfiles -nostdlib 1>&5'
12179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12180 (eval $ac_try) 2>&5
12182 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12183 (exit $ac_status); }; }
12185 if ${READELF} -S conftest | grep -e INIT_ARRAY > /dev/null; then
12186 libc_cv_initfinit_array=yes
12188 libc_cv_initfinit_array=no
12191 libc_cv_initfinit_array=no
12195 { echo "$as_me:$LINENO: result
: $libc_cv_initfinit_array" >&5
12196 echo "${ECHO_T}$libc_cv_initfinit_array" >&6; }
12198 if test $libc_cv_initfinit_array = yes; then
12199 cat >>confdefs.h <<_ACEOF
12200 #define HAVE_INITFINI_ARRAY 1
12205 { echo "$as_me:$LINENO: checking
for array aliasing support
" >&5
12206 echo $ECHO_N "checking
for array aliasing support...
$ECHO_C" >&6; }
12207 if test "${libc_cv_array_aliasing+set}" = set; then
12208 echo $ECHO_N "(cached
) $ECHO_C" >&6
12210 cat > conftest.c <<EOF
12211 char x3 = { 'a', 'b', 'c' };
12212 extern char y2 __attribute__((alias ("x
+1")));
12214 if { ac_try='${CC} $CFLAGS $CPPFLAGS -c conftest.c
12216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12217 (eval $ac_try) 2>&5
12219 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12220 (exit $ac_status); }; }
12222 libc_cv_array_aliasing=yes
12224 libc_cv_array_aliasing=no
12228 { echo "$as_me:$LINENO: result
: $libc_cv_array_aliasing" >&5
12229 echo "${ECHO_T}$libc_cv_array_aliasing" >&6; }
12231 if test $libc_cv_array_aliasing = yes; then
12232 cat >>confdefs.h <<_ACEOF
12233 #define _HAVE_ARRAY_ALIASING 1
12238 ac_config_files="$ac_config_files Makefile
"
12240 cat >confcache <<\_ACEOF
12241 # This file is a shell script that caches the results of configure
12242 # tests run on this system so they can be shared between configure
12243 # scripts and configure runs, see configure's option --config-cache.
12244 # It is not useful on other systems. If it contains results you don't
12245 # want to keep, you may remove or edit it.
12247 # config.status only pays attention to the cache file if you give it
12248 # the --recheck option to rerun configure.
12250 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12251 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12252 # following values.
12256 # The following way of writing the cache mishandles newlines in values,
12257 # but we know of no workaround that is simple, portable, and efficient.
12258 # So, we kill variables containing newlines.
12259 # Ultrix sh set writes to stderr and can't be redirected directly,
12260 # and sets the high bit in the cache file unless we assign to the vars.
12262 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12263 eval ac_val=\$$ac_var
12267 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
12268 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
12271 _ | IFS | as_nl) ;; #(
12272 *) $as_unset $ac_var ;;
12278 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12279 *${as_nl}ac_space=\ *)
12280 # `set' does not quote correctly, so add quotes (double-quote
12281 # substitution turns \\\\ into \\, and sed turns \\ into \).
12284 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
12287 # `set' quotes correctly as required by POSIX, so do not add quotes.
12288 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
12297 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12299 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12301 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12302 if test -w "$cache_file"; then
12303 test "x
$cache_file" != "x
/dev
/null
" &&
12304 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
12305 echo "$as_me: updating cache
$cache_file" >&6;}
12306 cat confcache >$cache_file
12308 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
12309 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
12314 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
12315 # Let make expand exec_prefix.
12316 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
12318 DEFS=-DHAVE_CONFIG_H
12322 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
12323 # 1. Remove the extension, and $U if already installed.
12324 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12325 ac_i=`echo "$ac_i" | sed "$ac_script"`
12326 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12327 # will be set to the directory where LIBOBJS objects are built.
12328 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
12329 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
12331 LIBOBJS=$ac_libobjs
12333 LTLIBOBJS=$ac_ltlibobjs
12336 if test -z "${MAY_SUPPLY_SYSCALLS_TRUE}" && test -z "${MAY_SUPPLY_SYSCALLS_FALSE}"; then
12337 { { echo "$as_me:$LINENO: error
: conditional
\"MAY_SUPPLY_SYSCALLS
\" was never defined.
12338 Usually this means the macro was only invoked conditionally.
" >&5
12339 echo "$as_me: error
: conditional
\"MAY_SUPPLY_SYSCALLS
\" was never defined.
12340 Usually this means the macro was only invoked conditionally.
" >&2;}
12341 { (exit 1); exit 1; }; }
12343 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12344 { { echo "$as_me:$LINENO: error
: conditional
\"AMDEP
\" was never defined.
12345 Usually this means the macro was only invoked conditionally.
" >&5
12346 echo "$as_me: error
: conditional
\"AMDEP
\" was never defined.
12347 Usually this means the macro was only invoked conditionally.
" >&2;}
12348 { (exit 1); exit 1; }; }
12350 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12351 { { echo "$as_me:$LINENO: error
: conditional
\"am__fastdepCC
\" was never defined.
12352 Usually this means the macro was only invoked conditionally.
" >&5
12353 echo "$as_me: error
: conditional
\"am__fastdepCC
\" was never defined.
12354 Usually this means the macro was only invoked conditionally.
" >&2;}
12355 { (exit 1); exit 1; }; }
12357 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12358 { { echo "$as_me:$LINENO: error
: conditional
\"MAINTAINER_MODE
\" was never defined.
12359 Usually this means the macro was only invoked conditionally.
" >&5
12360 echo "$as_me: error
: conditional
\"MAINTAINER_MODE
\" was never defined.
12361 Usually this means the macro was only invoked conditionally.
" >&2;}
12362 { (exit 1); exit 1; }; }
12364 if test -z "${ELIX_LEVEL_0_TRUE}" && test -z "${ELIX_LEVEL_0_FALSE}"; then
12365 { { echo "$as_me:$LINENO: error
: conditional
\"ELIX_LEVEL_0
\" was never defined.
12366 Usually this means the macro was only invoked conditionally.
" >&5
12367 echo "$as_me: error
: conditional
\"ELIX_LEVEL_0
\" was never defined.
12368 Usually this means the macro was only invoked conditionally.
" >&2;}
12369 { (exit 1); exit 1; }; }
12371 if test -z "${ELIX_LEVEL_1_TRUE}" && test -z "${ELIX_LEVEL_1_FALSE}"; then
12372 { { echo "$as_me:$LINENO: error
: conditional
\"ELIX_LEVEL_1
\" was never defined.
12373 Usually this means the macro was only invoked conditionally.
" >&5
12374 echo "$as_me: error
: conditional
\"ELIX_LEVEL_1
\" was never defined.
12375 Usually this means the macro was only invoked conditionally.
" >&2;}
12376 { (exit 1); exit 1; }; }
12378 if test -z "${ELIX_LEVEL_2_TRUE}" && test -z "${ELIX_LEVEL_2_FALSE}"; then
12379 { { echo "$as_me:$LINENO: error
: conditional
\"ELIX_LEVEL_2
\" was never defined.
12380 Usually this means the macro was only invoked conditionally.
" >&5
12381 echo "$as_me: error
: conditional
\"ELIX_LEVEL_2
\" was never defined.
12382 Usually this means the macro was only invoked conditionally.
" >&2;}
12383 { (exit 1); exit 1; }; }
12385 if test -z "${ELIX_LEVEL_3_TRUE}" && test -z "${ELIX_LEVEL_3_FALSE}"; then
12386 { { echo "$as_me:$LINENO: error
: conditional
\"ELIX_LEVEL_3
\" was never defined.
12387 Usually this means the macro was only invoked conditionally.
" >&5
12388 echo "$as_me: error
: conditional
\"ELIX_LEVEL_3
\" was never defined.
12389 Usually this means the macro was only invoked conditionally.
" >&2;}
12390 { (exit 1); exit 1; }; }
12392 if test -z "${ELIX_LEVEL_4_TRUE}" && test -z "${ELIX_LEVEL_4_FALSE}"; then
12393 { { echo "$as_me:$LINENO: error
: conditional
\"ELIX_LEVEL_4
\" was never defined.
12394 Usually this means the macro was only invoked conditionally.
" >&5
12395 echo "$as_me: error
: conditional
\"ELIX_LEVEL_4
\" was never defined.
12396 Usually this means the macro was only invoked conditionally.
" >&2;}
12397 { (exit 1); exit 1; }; }
12399 if test -z "${USE_LIBTOOL_TRUE}" && test -z "${USE_LIBTOOL_FALSE}"; then
12400 { { echo "$as_me:$LINENO: error
: conditional
\"USE_LIBTOOL
\" was never defined.
12401 Usually this means the macro was only invoked conditionally.
" >&5
12402 echo "$as_me: error
: conditional
\"USE_LIBTOOL
\" was never defined.
12403 Usually this means the macro was only invoked conditionally.
" >&2;}
12404 { (exit 1); exit 1; }; }
12406 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12407 { { echo "$as_me:$LINENO: error
: conditional
\"am__fastdepCC
\" was never defined.
12408 Usually this means the macro was only invoked conditionally.
" >&5
12409 echo "$as_me: error
: conditional
\"am__fastdepCC
\" was never defined.
12410 Usually this means the macro was only invoked conditionally.
" >&2;}
12411 { (exit 1); exit 1; }; }
12413 if test -z "${NEWLIB_HW_FP_TRUE}" && test -z "${NEWLIB_HW_FP_FALSE}"; then
12414 { { echo "$as_me:$LINENO: error
: conditional
\"NEWLIB_HW_FP
\" was never defined.
12415 Usually this means the macro was only invoked conditionally.
" >&5
12416 echo "$as_me: error
: conditional
\"NEWLIB_HW_FP
\" was never defined.
12417 Usually this means the macro was only invoked conditionally.
" >&2;}
12418 { (exit 1); exit 1; }; }
12420 if test -z "${HAVE_DOC_TRUE}" && test -z "${HAVE_DOC_FALSE}"; then
12421 { { echo "$as_me:$LINENO: error
: conditional
\"HAVE_DOC
\" was never defined.
12422 Usually this means the macro was only invoked conditionally.
" >&5
12423 echo "$as_me: error
: conditional
\"HAVE_DOC
\" was never defined.
12424 Usually this means the macro was only invoked conditionally.
" >&2;}
12425 { (exit 1); exit 1; }; }
12428 : ${CONFIG_STATUS=./config.status}
12429 ac_clean_files_save=$ac_clean_files
12430 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12431 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
12432 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
12433 cat >$CONFIG_STATUS <<_ACEOF
12435 # Generated by $as_me.
12436 # Run this file to recreate the current configuration.
12437 # Compiler output produced by configure, useful for debugging
12438 # configure, is in config.log if it exists.
12441 ac_cs_recheck=false
12443 SHELL=\${CONFIG_SHELL-$SHELL}
12446 cat >>$CONFIG_STATUS <<\_ACEOF
12447 ## --------------------- ##
12448 ## M4sh Initialization. ##
12449 ## --------------------- ##
12451 # Be more Bourne compatible
12452 DUALCASE=1; export DUALCASE # for MKS sh
12453 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12456 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12457 # is contrary to our usage. Disable this feature.
12458 alias -g '${1+"$@"}'='"$@
"'
12459 setopt NO_GLOB_SUBST
12461 case `(set -o) 2>/dev/null` in
12462 *posix*) set -o posix ;;
12471 # Avoid depending upon Character Ranges.
12472 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12473 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12474 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12475 as_cr_digits='0123456789'
12476 as_cr_alnum=$as_cr_Letters$as_cr_digits
12478 # The user is always right.
12479 if test "${PATH_SEPARATOR+set}" != set; then
12480 echo "#! /bin/sh" >conf$$.sh
12481 echo "exit 0" >>conf$$.sh
12483 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
12491 # Support unset when possible.
12492 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
12500 # We need space, tab and new line, in precisely that order. Quoting is
12501 # there to prevent editors from complaining about space-tab.
12502 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12503 # splitting by setting IFS to empty value.)
12508 # Find who we are. Look in the path if we contain no directory separator.
12510 *[\\/]* ) as_myself
=$0 ;;
12511 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12512 for as_dir
in $PATH
12515 test -z "$as_dir" && as_dir
=.
12516 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
12522 # We did not find ourselves, most probably we were run as `sh COMMAND'
12523 # in which case we are not to be found in the path.
12524 if test "x$as_myself" = x
; then
12527 if test ! -f "$as_myself"; then
12528 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12529 { (exit 1); exit 1; }
12532 # Work around bugs in pre-3.0 UWIN ksh.
12533 for as_var
in ENV MAIL MAILPATH
12534 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
12542 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12543 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12544 LC_TELEPHONE LC_TIME
12546 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12547 eval $as_var=C
; export $as_var
12549 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
12553 # Required to use basename.
12554 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
12555 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
12561 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12562 as_basename
=basename
12568 # Name of the executable.
12569 as_me
=`$as_basename -- "$0" ||
12570 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12571 X"$0" : 'X\(//\)$' \| \
12572 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12574 sed '/^.*\/\([^/][^/]*\)\/*$/{
12593 as_lineno_1
=$LINENO
12594 as_lineno_2
=$LINENO
12595 test "x$as_lineno_1" != "x$as_lineno_2" &&
12596 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
12598 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12599 # uniformly replaced by the line number. The first 'sed' inserts a
12600 # line-number line after each line using $LINENO; the second 'sed'
12601 # does the real work. The second script uses 'N' to pair each
12602 # line-number line with the line containing $LINENO, and appends
12603 # trailing '-' during substitution so that $LINENO is not a special
12604 # case at line end.
12605 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12606 # scripts with optimization help from Paolo Bonzini. Blame Lee
12607 # E. McMahon (1931-1989) for sed's syntax. :-)
12619 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12622 ' >$as_me.lineno
&&
12623 chmod +x
"$as_me.lineno" ||
12624 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12625 { (exit 1); exit 1; }; }
12627 # Don't try to exec as it changes $[0], causing all sort of problems
12628 # (the dirname of $[0] is not the place where we might find the
12629 # original and so on. Autoconf is especially sensitive to this).
12630 .
"./$as_me.lineno"
12631 # Exit status is that of the last command.
12636 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
12642 ECHO_C
= ECHO_N
= ECHO_T
=
12643 case `echo -n x` in
12645 case `echo 'x\c'` in
12646 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
12653 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
12654 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
12660 rm -f conf$$ conf$$.exe conf$$.
file
12661 if test -d conf$$.dir
; then
12662 rm -f conf$$.dir
/conf$$.
file
12668 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
12670 # ... but there are two gotchas:
12671 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12672 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12673 # In both cases, we have to default to `cp -p'.
12674 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
12676 elif ln conf$$.
file conf$$
2>/dev
/null
; then
12681 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
12682 rmdir conf$$.dir
2>/dev
/null
12684 if mkdir
-p .
2>/dev
/null
; then
12687 test -d .
/-p && rmdir .
/-p
12691 if test -x / >/dev
/null
2>&1; then
12692 as_test_x
='test -x'
12694 if ls -dL / >/dev
/null
2>&1; then
12701 if test -d "$1"; then
12707 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12708 ???[sx]*):;;*)false;;esac;fi
12712 as_executable_p
=$as_test_x
12714 # Sed expression to map a string onto a valid CPP name.
12715 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12717 # Sed expression to map a string onto a valid variable name.
12718 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12723 # Save the log message, to keep $[0] and so on meaningful, and to
12724 # report actual input values of CONFIG_FILES etc. instead of their
12725 # values after options handling.
12727 This file was extended by newlib $as_me 1.16.0, which was
12728 generated by GNU Autoconf 2.61. Invocation command line was
12730 CONFIG_FILES = $CONFIG_FILES
12731 CONFIG_HEADERS = $CONFIG_HEADERS
12732 CONFIG_LINKS = $CONFIG_LINKS
12733 CONFIG_COMMANDS = $CONFIG_COMMANDS
12736 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12741 cat >>$CONFIG_STATUS <<_ACEOF
12742 # Files that config.status was made for.
12743 config_files="$ac_config_files"
12744 config_headers="$ac_config_headers"
12745 config_commands="$ac_config_commands"
12749 cat >>$CONFIG_STATUS <<\_ACEOF
12751 \`$as_me' instantiates files from templates according to the
12752 current configuration.
12754 Usage: $0 [OPTIONS] [FILE]...
12756 -h, --help print this help, then exit
12757 -V, --version print version number and configuration settings, then exit
12758 -q, --quiet do not print progress messages
12759 -d, --debug don't remove temporary files
12760 --recheck update $as_me by reconfiguring in the same conditions
12761 --file=FILE[:TEMPLATE]
12762 instantiate the configuration file FILE
12763 --header=FILE[:TEMPLATE]
12764 instantiate the configuration header FILE
12766 Configuration files:
12769 Configuration headers:
12772 Configuration commands:
12775 Report bugs to <bug-autoconf@gnu.org>."
12778 cat >>$CONFIG_STATUS <<_ACEOF
12780 newlib config.status 1.16.0
12781 configured by $0, generated by GNU Autoconf 2.61,
12782 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12784 Copyright (C) 2006 Free Software Foundation, Inc.
12785 This config.status script is free software; the Free Software Foundation
12786 gives unlimited permission to copy, distribute and modify it."
12793 cat >>$CONFIG_STATUS <<\_ACEOF
12794 # If no file are specified by the user, then we need to provide default
12795 # value. By we need to know if files were specified by the user.
12801 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
12802 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
12813 # Handling of the options.
12814 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
12816 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
12817 echo "$ac_cs_version"; exit ;;
12818 --debug |
--debu |
--deb |
--de |
--d |
-d )
12820 --file |
--fil |
--fi |
--f )
12822 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
12823 ac_need_defaults
=false
;;
12824 --header |
--heade |
--head |
--hea )
12826 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
12827 ac_need_defaults
=false
;;
12829 # Conflict between --help and --header
12830 { echo "$as_me: error: ambiguous option: $1
12831 Try \`$0 --help' for more information." >&2
12832 { (exit 1); exit 1; }; };;
12833 --help |
--hel |
-h )
12834 echo "$ac_cs_usage"; exit ;;
12835 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
12836 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
12839 # This is an error.
12840 -*) { echo "$as_me: error: unrecognized option: $1
12841 Try \`$0 --help' for more information." >&2
12842 { (exit 1); exit 1; }; } ;;
12844 *) ac_config_targets
="$ac_config_targets $1"
12845 ac_need_defaults
=false
;;
12851 ac_configure_extra_args
=
12853 if $ac_cs_silent; then
12855 ac_configure_extra_args
="$ac_configure_extra_args --silent"
12859 cat >>$CONFIG_STATUS <<_ACEOF
12860 if \$ac_cs_recheck; then
12861 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12862 CONFIG_SHELL=$SHELL
12863 export CONFIG_SHELL
12864 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12868 cat >>$CONFIG_STATUS <<\_ACEOF
12872 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12873 ## Running $as_me. ##
12879 cat >>$CONFIG_STATUS <<_ACEOF
12883 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12886 # The HP-UX ksh and POSIX shell print the target directory to stdout
12887 # if CDPATH is set.
12888 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12890 sed_quote_subst='$sed_quote_subst'
12891 double_quote_subst='$double_quote_subst'
12892 delay_variable_subst='$delay_variable_subst'
12893 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12894 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12895 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
12896 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12897 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12898 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12899 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12900 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12901 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12902 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12903 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12904 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12905 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12906 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12907 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12908 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12909 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12910 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12911 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12912 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12913 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12914 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12915 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12916 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12917 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12918 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12919 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12920 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12921 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12922 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12923 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12924 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12925 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12926 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12927 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12928 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12929 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12930 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12931 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12932 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12933 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12934 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12935 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12936 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12937 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12938 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12939 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
12940 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12941 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12942 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12943 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12944 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12945 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12946 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12947 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12948 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12949 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12950 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12951 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12952 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12953 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12954 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12955 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12956 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12957 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12958 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12959 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12960 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12961 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12962 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12963 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12964 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12965 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12966 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12967 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12968 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12969 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12970 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12971 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12972 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12973 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12974 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12975 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12976 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12977 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12978 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12979 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12980 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12981 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12982 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12983 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12984 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12985 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12986 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12987 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12988 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12989 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12990 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12991 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12992 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12993 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12994 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12995 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12996 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12997 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12998 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12999 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13000 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13001 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13002 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13003 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13004 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13005 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13006 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13009 LTCFLAGS='$LTCFLAGS'
13010 compiler='$compiler_DEFAULT'
13012 # Quote evaled strings.
13023 deplibs_check_method \
13032 lt_cv_sys_global_symbol_pipe \
13033 lt_cv_sys_global_symbol_to_cdecl \
13034 lt_cv_sys_global_symbol_to_c_name_address \
13037 lt_prog_compiler_no_builtin_flag \
13038 lt_prog_compiler_wl \
13039 lt_prog_compiler_pic \
13040 lt_prog_compiler_static \
13041 lt_cv_prog_compiler_c_o \
13044 export_dynamic_flag_spec \
13045 whole_archive_flag_spec \
13046 compiler_needs_object \
13048 allow_undefined_flag \
13049 no_undefined_flag \
13050 hardcode_libdir_flag_spec \
13051 hardcode_libdir_flag_spec_ld \
13052 hardcode_libdir_separator \
13057 variables_saved_for_relink \
13059 library_names_spec \
13064 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13065 *[\\\\\\\`\\"\\\$]*)
13066 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13069 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13074 # Double-quote double-evaled strings.
13075 for var in reload_cmds \
13076 old_postinstall_cmds \
13077 old_postuninstall_cmds \
13079 extract_expsyms_cmds \
13080 old_archive_from_new_cmds \
13081 old_archive_from_expsyms_cmds \
13083 archive_expsym_cmds \
13085 module_expsym_cmds \
13086 export_symbols_cmds \
13089 postuninstall_cmds \
13091 sys_lib_search_path_spec \
13092 sys_lib_dlsearch_path_spec; do
13093 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13094 *[\\\\\\\`\\"\\\$]*)
13095 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13098 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13103 # Fix-up fallback echo if it was mangled by the above quoting rules.
13105 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13109 ac_aux_dir='$ac_aux_dir'
13110 xsi_shell='$xsi_shell'
13111 lt_shell_append='$lt_shell_append'
13113 # See if we are running on zsh, and set the options which allow our
13114 # commands through without removal of \ escapes INIT.
13115 if test -n "\${ZSH_VERSION+set}" ; then
13116 setopt NO_GLOB_SUBST
13122 TIMESTAMP='$TIMESTAMP'
13130 with_multisubdir=${with_multisubdir}
13131 ac_configure_args="${multilib_arg} ${ac_configure_args}"
13132 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
13133 newlib_basedir=${newlib_basedir}
13135 LDFLAGS="${LDFLAGS}"
13140 cat >>$CONFIG_STATUS <<\_ACEOF
13142 # Handling of arguments.
13143 for ac_config_target
in $ac_config_targets
13145 case $ac_config_target in
13146 "newlib.h") CONFIG_HEADERS
="$CONFIG_HEADERS newlib.h:newlib.hin" ;;
13147 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
13148 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
13149 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
13151 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13152 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13153 { (exit 1); exit 1; }; };;
13158 # If the user did not use the arguments to specify the items to instantiate,
13159 # then the envvar interface is used. Set only those that are not.
13160 # We use the long form for the default assignment because of an extremely
13161 # bizarre bug on SunOS 4.1.3.
13162 if $ac_need_defaults; then
13163 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
13164 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
13165 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
13168 # Have a temporary directory for convenience. Make it in the build tree
13169 # simply because there is no reason against having it here, and in addition,
13170 # creating and moving files from /tmp can sometimes cause problems.
13171 # Hook for its removal unless debugging.
13172 # Note that there is a small window in which the directory will not be cleaned:
13173 # after its creation but before its name has been assigned to `$tmp'.
13177 trap 'exit_status=$?
13178 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13180 trap '{ (exit 1); exit 1; }' 1 2 13 15
13182 # Create a (secure) tmp directory for tmp files.
13185 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13186 test -n "$tmp" && test -d "$tmp"
13189 tmp
=.
/conf$$
-$RANDOM
13190 (umask 077 && mkdir
"$tmp")
13193 echo "$me: cannot create a temporary directory in ." >&2
13194 { (exit 1); exit 1; }
13198 # Set up the sed scripts for CONFIG_FILES section.
13201 # No need to generate the scripts if there are no CONFIG_FILES.
13202 # This happens for instance when ./config.status config.h
13203 if test -n "$CONFIG_FILES"; then
13210 for ac_last_try
in false false false false false
:; do
13211 cat >conf$
$subs.
sed <<_ACEOF
13212 SHELL!$SHELL$ac_delim
13213 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13214 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13215 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13216 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13217 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13218 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13219 exec_prefix!$exec_prefix$ac_delim
13220 prefix!$prefix$ac_delim
13221 program_transform_name!$program_transform_name$ac_delim
13222 bindir!$bindir$ac_delim
13223 sbindir!$sbindir$ac_delim
13224 libexecdir!$libexecdir$ac_delim
13225 datarootdir!$datarootdir$ac_delim
13226 datadir!$datadir$ac_delim
13227 sysconfdir!$sysconfdir$ac_delim
13228 sharedstatedir!$sharedstatedir$ac_delim
13229 localstatedir!$localstatedir$ac_delim
13230 includedir!$includedir$ac_delim
13231 oldincludedir!$oldincludedir$ac_delim
13232 docdir!$docdir$ac_delim
13233 infodir!$infodir$ac_delim
13234 htmldir!$htmldir$ac_delim
13235 dvidir!$dvidir$ac_delim
13236 pdfdir!$pdfdir$ac_delim
13237 psdir!$psdir$ac_delim
13238 libdir!$libdir$ac_delim
13239 localedir!$localedir$ac_delim
13240 mandir!$mandir$ac_delim
13241 DEFS!$DEFS$ac_delim
13242 ECHO_C!$ECHO_C$ac_delim
13243 ECHO_N!$ECHO_N$ac_delim
13244 ECHO_T!$ECHO_T$ac_delim
13245 LIBS!$LIBS$ac_delim
13246 build_alias!$build_alias$ac_delim
13247 host_alias!$host_alias$ac_delim
13248 target_alias!$target_alias$ac_delim
13249 MAY_SUPPLY_SYSCALLS_TRUE!$MAY_SUPPLY_SYSCALLS_TRUE$ac_delim
13250 MAY_SUPPLY_SYSCALLS_FALSE!$MAY_SUPPLY_SYSCALLS_FALSE$ac_delim
13251 newlib_basedir!$newlib_basedir$ac_delim
13252 build!$build$ac_delim
13253 build_cpu!$build_cpu$ac_delim
13254 build_vendor!$build_vendor$ac_delim
13255 build_os!$build_os$ac_delim
13256 host!$host$ac_delim
13257 host_cpu!$host_cpu$ac_delim
13258 host_vendor!$host_vendor$ac_delim
13259 host_os!$host_os$ac_delim
13260 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
13261 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
13262 INSTALL_DATA!$INSTALL_DATA$ac_delim
13263 CYGPATH_W!$CYGPATH_W$ac_delim
13264 PACKAGE!$PACKAGE$ac_delim
13265 VERSION!$VERSION$ac_delim
13266 ACLOCAL!$ACLOCAL$ac_delim
13267 AUTOCONF!$AUTOCONF$ac_delim
13268 AUTOMAKE!$AUTOMAKE$ac_delim
13269 AUTOHEADER!$AUTOHEADER$ac_delim
13270 MAKEINFO!$MAKEINFO$ac_delim
13271 install_sh!$install_sh$ac_delim
13272 STRIP!$STRIP$ac_delim
13273 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
13274 mkdir_p!$mkdir_p$ac_delim
13276 SET_MAKE!$SET_MAKE$ac_delim
13277 am__leading_dot!$am__leading_dot$ac_delim
13278 AMTAR!$AMTAR$ac_delim
13279 am__tar!$am__tar$ac_delim
13280 am__untar!$am__untar$ac_delim
13282 DEPDIR!$DEPDIR$ac_delim
13283 am__include!$am__include$ac_delim
13284 am__quote!$am__quote$ac_delim
13285 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
13286 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
13287 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
13288 CCDEPMODE!$CCDEPMODE$ac_delim
13289 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
13290 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
13293 RANLIB!$RANLIB$ac_delim
13294 READELF!$READELF$ac_delim
13295 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
13296 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
13297 MAINT!$MAINT$ac_delim
13298 CCAS!$CCAS$ac_delim
13299 CCASFLAGS!$CCASFLAGS$ac_delim
13300 NEWLIB_CFLAGS!$NEWLIB_CFLAGS$ac_delim
13301 LDFLAGS!$LDFLAGS$ac_delim
13302 ELIX_LEVEL_0_TRUE!$ELIX_LEVEL_0_TRUE$ac_delim
13303 ELIX_LEVEL_0_FALSE!$ELIX_LEVEL_0_FALSE$ac_delim
13304 ELIX_LEVEL_1_TRUE!$ELIX_LEVEL_1_TRUE$ac_delim
13305 ELIX_LEVEL_1_FALSE!$ELIX_LEVEL_1_FALSE$ac_delim
13306 ELIX_LEVEL_2_TRUE!$ELIX_LEVEL_2_TRUE$ac_delim
13307 ELIX_LEVEL_2_FALSE!$ELIX_LEVEL_2_FALSE$ac_delim
13308 ELIX_LEVEL_3_TRUE!$ELIX_LEVEL_3_TRUE$ac_delim
13311 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13313 elif $ac_last_try; then
13314 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13315 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13316 { (exit 1); exit 1; }; }
13318 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
13322 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13323 if test -n "$ac_eof"; then
13324 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
13325 ac_eof
=`expr $ac_eof + 1`
13328 cat >>$CONFIG_STATUS <<_ACEOF
13329 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13330 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13333 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13334 s/^/s,@/; s/!/@,|#_!!_#|/
13337 s/'"$ac_delim"'$/,g/; t
13339 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13340 ' >>$CONFIG_STATUS <conf$
$subs.
sed
13341 rm -f conf$
$subs.
sed
13342 cat >>$CONFIG_STATUS <<_ACEOF
13348 for ac_last_try
in false false false false false
:; do
13349 cat >conf$
$subs.
sed <<_ACEOF
13350 ELIX_LEVEL_3_FALSE!$ELIX_LEVEL_3_FALSE$ac_delim
13351 ELIX_LEVEL_4_TRUE!$ELIX_LEVEL_4_TRUE$ac_delim
13352 ELIX_LEVEL_4_FALSE!$ELIX_LEVEL_4_FALSE$ac_delim
13353 USE_LIBTOOL_TRUE!$USE_LIBTOOL_TRUE$ac_delim
13354 USE_LIBTOOL_FALSE!$USE_LIBTOOL_FALSE$ac_delim
13355 OBJEXT!$OBJEXT$ac_delim
13356 oext!$oext$ac_delim
13357 aext!$aext$ac_delim
13358 lpfx!$lpfx$ac_delim
13359 libm_machine_dir!$libm_machine_dir$ac_delim
13360 machine_dir!$machine_dir$ac_delim
13361 sys_dir!$sys_dir$ac_delim
13363 DLLTOOL!$DLLTOOL$ac_delim
13364 OBJDUMP!$OBJDUMP$ac_delim
13365 LIBTOOL!$LIBTOOL$ac_delim
13366 CFLAGS!$CFLAGS$ac_delim
13367 CPPFLAGS!$CPPFLAGS$ac_delim
13368 ac_ct_CC!$ac_ct_CC$ac_delim
13369 EXEEXT!$EXEEXT$ac_delim
13370 GREP!$GREP$ac_delim
13371 EGREP!$EGREP$ac_delim
13372 FGREP!$FGREP$ac_delim
13374 DUMPBIN!$DUMPBIN$ac_delim
13375 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
13377 LN_S!$LN_S$ac_delim
13378 lt_ECHO!$lt_ECHO$ac_delim
13380 NEWLIB_HW_FP_TRUE!$NEWLIB_HW_FP_TRUE$ac_delim
13381 NEWLIB_HW_FP_FALSE!$NEWLIB_HW_FP_FALSE$ac_delim
13382 CC_FOR_NEWLIB!$CC_FOR_NEWLIB$ac_delim
13383 subdirs!$subdirs$ac_delim
13384 HAVE_DOC_TRUE!$HAVE_DOC_TRUE$ac_delim
13385 HAVE_DOC_FALSE!$HAVE_DOC_FALSE$ac_delim
13386 EXTRA_DIRS!$EXTRA_DIRS$ac_delim
13387 CRT0!$CRT0$ac_delim
13388 CRT0_DIR!$CRT0_DIR$ac_delim
13389 CRT1!$CRT1$ac_delim
13390 CRT1_DIR!$CRT1_DIR$ac_delim
13391 LIBM_MACHINE_OBJECTLIST!$LIBM_MACHINE_OBJECTLIST$ac_delim
13392 MACHINE_OBJECTLIST!$MACHINE_OBJECTLIST$ac_delim
13393 SYS_OBJECTLIST!$SYS_OBJECTLIST$ac_delim
13394 SYS_MACH_OBJECTLIST!$SYS_MACH_OBJECTLIST$ac_delim
13395 POSIX_OBJECTLIST!$POSIX_OBJECTLIST$ac_delim
13396 SIGNAL_OBJECTLIST!$SIGNAL_OBJECTLIST$ac_delim
13397 SYSCALL_OBJECTLIST!$SYSCALL_OBJECTLIST$ac_delim
13398 UNIX_OBJECTLIST!$UNIX_OBJECTLIST$ac_delim
13399 STDIO64_OBJECTLIST!$STDIO64_OBJECTLIST$ac_delim
13400 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
13401 libc_cv_initfinit_array!$libc_cv_initfinit_array$ac_delim
13402 libc_cv_array_aliasing!$libc_cv_array_aliasing$ac_delim
13403 LIBOBJS!$LIBOBJS$ac_delim
13404 LTLIBOBJS!$LTLIBOBJS$ac_delim
13407 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 55; then
13409 elif $ac_last_try; then
13410 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13411 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13412 { (exit 1); exit 1; }; }
13414 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
13418 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13419 if test -n "$ac_eof"; then
13420 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
13421 ac_eof
=`expr $ac_eof + 1`
13424 cat >>$CONFIG_STATUS <<_ACEOF
13425 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
13426 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13429 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13430 s/^/s,@/; s/!/@,|#_!!_#|/
13433 s/'"$ac_delim"'$/,g/; t
13435 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13436 ' >>$CONFIG_STATUS <conf$
$subs.
sed
13437 rm -f conf$
$subs.
sed
13438 cat >>$CONFIG_STATUS <<_ACEOF
13445 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13446 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13447 # trailing colons and then remove the whole line if VPATH becomes empty
13448 # (actually we leave an empty line to preserve line numbers).
13449 if test "x$srcdir" = x.
; then
13450 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
13451 s/:*\$(srcdir):*/:/
13452 s/:*\${srcdir}:*/:/
13454 s/^\([^=]*=[ ]*\):*/\1/
13460 cat >>$CONFIG_STATUS <<\_ACEOF
13461 fi # test -n "$CONFIG_FILES"
13464 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
13467 :[FHLC
]) ac_mode
=$ac_tag; continue;;
13469 case $ac_mode$ac_tag in
13471 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13472 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13473 { (exit 1); exit 1; }; };;
13474 :[FH
]-) ac_tag
=-:-;;
13475 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
13492 -) ac_f
="$tmp/stdin";;
13493 *) # Look for the file first in the build tree, then in the source tree
13494 # (if the path is not absolute). The absolute path cannot be DOS-style,
13495 # because $ac_f cannot contain `:'.
13499 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
13501 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13502 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13503 { (exit 1); exit 1; }; };;
13505 ac_file_inputs
="$ac_file_inputs $ac_f"
13508 # Let's still pretend it is `configure' which instantiates (i.e., don't
13509 # use $as_me), people would be surprised to read:
13510 # /* config.h. Generated by config.status. */
13511 configure_input
="Generated from "`IFS=:
13512 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
13513 if test x
"$ac_file" != x-
; then
13514 configure_input
="$ac_file. $configure_input"
13515 { echo "$as_me:$LINENO: creating $ac_file" >&5
13516 echo "$as_me: creating $ac_file" >&6;}
13520 *:-:* |
*:-) cat >"$tmp/stdin";;
13525 ac_dir
=`$as_dirname -- "$ac_file" ||
13526 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13527 X"$ac_file" : 'X\(//\)[^/]' \| \
13528 X"$ac_file" : 'X\(//\)$' \| \
13529 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13535 /^X\(\/\/\)[^/].*/{
13550 -*) as_dir
=.
/$as_dir;;
13552 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
13556 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13557 *) as_qdir
=$as_dir;;
13559 as_dirs
="'$as_qdir' $as_dirs"
13560 as_dir
=`$as_dirname -- "$as_dir" ||
13561 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13562 X"$as_dir" : 'X\(//\)[^/]' \| \
13563 X"$as_dir" : 'X\(//\)$' \| \
13564 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13570 /^X\(\/\/\)[^/].*/{
13583 test -d "$as_dir" && break
13585 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
13586 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13587 echo "$as_me: error: cannot create directory $as_dir" >&2;}
13588 { (exit 1); exit 1; }; }; }
13592 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
13594 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13595 # A ".." for each directory in $ac_dir_suffix.
13596 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
13597 case $ac_top_builddir_sub in
13598 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
13599 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
13602 ac_abs_top_builddir
=$ac_pwd
13603 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
13604 # for backward compatibility:
13605 ac_top_builddir
=$ac_top_build_prefix
13608 .
) # We are building in place.
13610 ac_top_srcdir
=$ac_top_builddir_sub
13611 ac_abs_top_srcdir
=$ac_pwd ;;
13612 [\\/]* | ?
:[\\/]* ) # Absolute name.
13613 ac_srcdir
=$srcdir$ac_dir_suffix;
13614 ac_top_srcdir
=$srcdir
13615 ac_abs_top_srcdir
=$srcdir ;;
13616 *) # Relative name.
13617 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
13618 ac_top_srcdir
=$ac_top_build_prefix$srcdir
13619 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
13621 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
13631 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
13632 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
13636 cat >>$CONFIG_STATUS <<\_ACEOF
13637 # If the template does not know about datarootdir, expand it.
13638 # FIXME: This hack should be removed a few years after 2.60.
13639 ac_datarootdir_hack
=; ac_datarootdir_seen
=
13641 case `sed -n '/datarootdir/ {
13650 ' $ac_file_inputs` in
13651 *datarootdir
*) ac_datarootdir_seen
=yes;;
13652 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
13653 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13654 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13656 cat >>$CONFIG_STATUS <<_ACEOF
13657 ac_datarootdir_hack='
13658 s&@datadir@&$datadir&g
13659 s&@docdir@&$docdir&g
13660 s&@infodir@&$infodir&g
13661 s&@localedir@&$localedir&g
13662 s&@mandir@&$mandir&g
13663 s&\\\${datarootdir}&$datarootdir&g' ;;
13667 # Neutralize VPATH when `$srcdir' = `.'.
13668 # Shell code in configure.ac might set extrasub.
13669 # FIXME: do we really want to maintain this feature?
13670 cat >>$CONFIG_STATUS <<_ACEOF
13674 cat >>$CONFIG_STATUS <<\_ACEOF
13676 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
13677 s
&@configure_input@
&$configure_input&;t t
13678 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
13679 s
&@srcdir@
&$ac_srcdir&;t t
13680 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
13681 s
&@top_srcdir@
&$ac_top_srcdir&;t t
13682 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
13683 s
&@builddir@
&$ac_builddir&;t t
13684 s
&@abs_builddir@
&$ac_abs_builddir&;t t
13685 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
13686 s
&@INSTALL@
&$ac_INSTALL&;t t
13687 $ac_datarootdir_hack
13688 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
13690 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13691 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
13692 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
13693 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
13694 which seems to be undefined. Please make sure it is defined." >&5
13695 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
13696 which seems to be undefined. Please make sure it is defined." >&2;}
13700 -) cat "$tmp/out"; rm -f "$tmp/out";;
13701 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
13710 # Transform confdefs.h into a sed script `conftest.defines', that
13711 # substitutes the proper values into config.h.in to produce config.h.
13712 rm -f conftest.defines conftest.
tail
13713 # First, append a space to every undef/define line, to ease matching.
13714 echo 's/$/ /' >conftest.defines
13715 # Then, protect against being on the right side of a sed subst, or in
13716 # an unquoted here document, in config.status. If some macros were
13717 # called several times there might be several #defines for the same
13718 # symbol, which is useless. But do not sort them, since the last
13719 # AC_DEFINE must be honored.
13720 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
13721 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
13722 # NAME is the cpp macro being defined, VALUE is the value it is being given.
13723 # PARAMS is the parameter list in the macro definition--in most cases, it's
13724 # just an empty string.
13725 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
13726 ac_dB
='\\)[ (].*,\\1define\\2'
13734 s/^[ ]*#[ ]*define[ ][ ]*//
13739 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
13740 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
13741 ' >>conftest.defines
13743 # Remove the space that was appended to ease matching.
13744 # Then replace #undef with comments. This is necessary, for
13745 # example, in the case of _POSIX_SOURCE, which is predefined and required
13746 # on some systems where configure will not decide to define it.
13747 # (The regexp can be short, since the line contains either #define or #undef.)
13749 s,^[ #]*u.*,/* & */,' >>conftest.defines
13751 # Break up conftest.defines:
13752 ac_max_sed_lines
=50
13754 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
13755 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
13756 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
13758 ac_in
='$ac_file_inputs'
13759 ac_out
='"$tmp/out1"'
13760 ac_nxt
='"$tmp/out2"'
13764 # Write a here document:
13765 cat >>$CONFIG_STATUS <<_ACEOF
13766 # First, check the format of the line:
13767 cat >"\$tmp/defines.sed" <<\\CEOF
13768 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
13769 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
13773 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
13775 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
13776 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
13777 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
13778 grep . conftest.
tail >/dev
/null ||
break
13779 rm -f conftest.defines
13780 mv conftest.
tail conftest.defines
13782 rm -f conftest.defines conftest.
tail
13784 echo "ac_result=$ac_in" >>$CONFIG_STATUS
13785 cat >>$CONFIG_STATUS <<\_ACEOF
13786 if test x
"$ac_file" != x-
; then
13787 echo "/* $configure_input */" >"$tmp/config.h"
13788 cat "$ac_result" >>"$tmp/config.h"
13789 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
13790 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13791 echo "$as_me: $ac_file is unchanged" >&6;}
13794 mv "$tmp/config.h" $ac_file
13797 echo "/* $configure_input */"
13801 # Compute $ac_file's index in $config_headers.
13803 for _am_header
in $config_headers :; do
13804 case $_am_header in
13805 $ac_file |
$ac_file:* )
13808 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
13811 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
13812 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13813 X$ac_file : 'X\(//\)[^/]' \| \
13814 X$ac_file : 'X\(//\)$' \| \
13815 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
13817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13821 /^X\(\/\/\)[^/].*/{
13833 s/.*/./; q'`/stamp-h
$_am_stamp_count
13836 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
13837 echo "$as_me: executing $ac_file commands" >&6;}
13842 case $ac_file$ac_mode in
13843 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
13844 # Strip MF so we end up with the name of the file.
13845 mf
=`echo "$mf" | sed -e 's/:.*$//'`
13846 # Check whether this is an Automake generated Makefile or not.
13847 # We used to match only the files named `Makefile.in', but
13848 # some people rename them; so instead we look at the file content.
13849 # Grep'ing the first line is not enough: some people post-process
13850 # each Makefile.in and add a new line on top of each file to say so.
13851 # So let's grep whole file.
13852 if grep '^#.*generated by automake' $mf > /dev
/null
2>&1; then
13853 dirpart
=`$as_dirname -- "$mf" ||
13854 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13855 X"$mf" : 'X\(//\)[^/]' \| \
13856 X"$mf" : 'X\(//\)$' \| \
13857 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13859 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13863 /^X\(\/\/\)[^/].*/{
13879 # Extract the definition of DEPDIR, am__include, and am__quote
13880 # from the Makefile without running `make'.
13881 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
13882 test -z "$DEPDIR" && continue
13883 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
13884 test -z "am__include" && continue
13885 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
13886 # When using ansi2knr, U may be empty or an underscore; expand it
13887 U
=`sed -n 's/^U = //p' < "$mf"`
13888 # Find all dependency output files, they are included files with
13889 # $(DEPDIR) in their names. We invoke sed twice because it is the
13890 # simplest approach to changing $(DEPDIR) to its actual value in the
13892 for file in `sed -n "
13893 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13894 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13895 # Make sure the directory exists.
13896 test -f "$dirpart/$file" && continue
13897 fdir
=`$as_dirname -- "$file" ||
13898 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13899 X"$file" : 'X\(//\)[^/]' \| \
13900 X"$file" : 'X\(//\)$' \| \
13901 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13903 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13907 /^X\(\/\/\)[^/].*/{
13920 { as_dir
=$dirpart/$fdir
13922 -*) as_dir
=.
/$as_dir;;
13924 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
13928 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13929 *) as_qdir
=$as_dir;;
13931 as_dirs
="'$as_qdir' $as_dirs"
13932 as_dir
=`$as_dirname -- "$as_dir" ||
13933 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13934 X"$as_dir" : 'X\(//\)[^/]' \| \
13935 X"$as_dir" : 'X\(//\)$' \| \
13936 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13942 /^X\(\/\/\)[^/].*/{
13955 test -d "$as_dir" && break
13957 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
13958 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13959 echo "$as_me: error: cannot create directory $as_dir" >&2;}
13960 { (exit 1); exit 1; }; }; }
13961 # echo "creating $dirpart/$file"
13962 echo '# dummy' > "$dirpart/$file"
13968 # See if we are running on zsh, and set the options which allow our
13969 # commands through without removal of \ escapes.
13970 if test -n "${ZSH_VERSION+set}" ; then
13971 setopt NO_GLOB_SUBST
13974 cfgfile
="${ofile}T"
13975 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13978 cat <<_LT_EOF >> "$cfgfile"
13981 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13982 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
13983 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13984 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13986 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13987 # 2006, 2007 Free Software Foundation, Inc.
13989 # This file is part of GNU Libtool:
13990 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
13992 # This program is free software; you can redistribute it and/or modify
13993 # it under the terms of the GNU General Public License as published by
13994 # the Free Software Foundation; either version 2 of the License, or
13995 # (at your option) any later version.
13997 # This program is distributed in the hope that it will be useful, but
13998 # WITHOUT ANY WARRANTY; without even the implied warranty of
13999 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14000 # General Public License for more details.
14002 # You should have received a copy of the GNU General Public License
14003 # along with this program; if not, a copy can be downloaded from
14004 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
14005 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
14006 # MA 02110-1301, USA.
14008 # As a special exception to the GNU General Public License, if you
14009 # distribute this file as part of a program that contains a
14010 # configuration script generated by Autoconf, you may include it under
14011 # the same distribution terms that you use for the rest of that program.
14014 # The names of the tagged configurations supported by this script.
14017 # ### BEGIN LIBTOOL CONFIG
14019 # A sed program that does not truncate output.
14022 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14023 Xsed="\$SED -e 1s/^X//"
14025 # Assembler program.
14028 # DLL creation program.
14031 # Object dumper program.
14034 # Which release of libtool.m4 was used?
14035 macro_version=$macro_version
14036 macro_revision=$macro_revision
14038 # Whether or not to build shared libraries.
14039 build_libtool_libs=$enable_shared
14041 # Whether or not to build static libraries.
14042 build_old_libs=$enable_static
14044 # What type of objects to build.
14047 # Whether or not to optimize for fast installation.
14048 fast_install=$enable_fast_install
14051 host_alias=$host_alias
14055 # The build system.
14056 build_alias=$build_alias
14060 # A grep program that handles long lines.
14066 # A literal string matcher.
14069 # A BSD- or MS-compatible name lister.
14072 # Whether we need soft or hard links.
14075 # What is the maximum length of a command?
14076 max_cmd_len=$max_cmd_len
14078 # Object file suffix (normally "o").
14081 # Executable file suffix (normally "").
14084 # whether the shell understands "unset".
14087 # turn spaces into newlines.
14090 # turn newlines into spaces.
14093 # How to create reloadable object files.
14094 reload_flag=$lt_reload_flag
14095 reload_cmds=$lt_reload_cmds
14097 # Method to check whether dependent libraries are shared objects.
14098 deplibs_check_method=$lt_deplibs_check_method
14100 # Command to use when deplibs_check_method == "file_magic".
14101 file_magic_cmd=$lt_file_magic_cmd
14105 AR_FLAGS=$lt_AR_FLAGS
14107 # A symbol stripping program.
14110 # Commands used to install an old-style archive.
14112 old_postinstall_cmds=$lt_old_postinstall_cmds
14113 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14118 # LTCC compiler flags.
14119 LTCFLAGS=$lt_CFLAGS
14121 # Take the output of nm and produce a listing of raw symbols and C names.
14122 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14124 # Transform the output of nm in a proper C declaration.
14125 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14127 # Transform the output of nm in a C name address pair.
14128 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14130 # The name of the directory that contains temporary libtool files.
14133 # Shell to use when invoking shell scripts.
14136 # An echo program that does not interpret backslashes.
14139 # Used to examine libraries when file_magic_cmd begins with "file".
14140 MAGIC_CMD=$MAGIC_CMD
14142 # Must we lock files when doing compilation?
14143 need_locks=$lt_need_locks
14145 # Old archive suffix (normally "a").
14148 # Shared library suffix (normally ".so").
14149 shrext_cmds=$lt_shrext_cmds
14151 # The commands to extract the exported symbol list from a shared archive.
14152 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14154 # Variables whose values should be saved in libtool wrapper scripts and
14155 # restored at link time.
14156 variables_saved_for_relink=$lt_variables_saved_for_relink
14158 # Do we need the "lib" prefix for modules?
14159 need_lib_prefix=$need_lib_prefix
14161 # Do we need a version for libraries?
14162 need_version=$need_version
14164 # Library versioning type.
14165 version_type=$version_type
14167 # Shared library runtime path variable.
14168 runpath_var=$runpath_var
14170 # Shared library path variable.
14171 shlibpath_var=$shlibpath_var
14173 # Is shlibpath searched before the hard-coded library search path?
14174 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14176 # Format of library name prefix.
14177 libname_spec=$lt_libname_spec
14179 # List of archive names. First name is the real one, the rest are links.
14180 # The last name is the one that the linker finds with -lNAME
14181 library_names_spec=$lt_library_names_spec
14183 # The coded name of the library, if different from the real name.
14184 soname_spec=$lt_soname_spec
14186 # Command to use after installation of a shared archive.
14187 postinstall_cmds=$lt_postinstall_cmds
14189 # Command to use after uninstallation of a shared archive.
14190 postuninstall_cmds=$lt_postuninstall_cmds
14192 # Commands used to finish a libtool library installation in a directory.
14193 finish_cmds=$lt_finish_cmds
14195 # As "finish_cmds", except a single script fragment to be evaled but
14197 finish_eval=$lt_finish_eval
14199 # Whether we should hardcode library paths into libraries.
14200 hardcode_into_libs=$hardcode_into_libs
14202 # Compile-time system search path for libraries.
14203 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14205 # Run-time system search path for libraries.
14206 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14208 # Whether dlopen is supported.
14209 dlopen_support=$enable_dlopen
14211 # Whether dlopen of programs is supported.
14212 dlopen_self=$enable_dlopen_self
14214 # Whether dlopen of statically linked programs is supported.
14215 dlopen_self_static=$enable_dlopen_self_static
14217 # Commands to strip libraries.
14218 old_striplib=$lt_old_striplib
14219 striplib=$lt_striplib
14222 # The linker used to build libraries.
14225 # Commands used to build an old-style archive.
14226 old_archive_cmds=$lt_old_archive_cmds
14228 # A language specific compiler.
14231 # Is the compiler the GNU compiler?
14234 # Compiler flag to turn off builtin functions.
14235 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14237 # How to pass a linker flag through the compiler.
14238 wl=$lt_lt_prog_compiler_wl
14240 # Additional compiler flags for building library objects.
14241 pic_flag=$lt_lt_prog_compiler_pic
14243 # Compiler flag to prevent dynamic linking.
14244 link_static_flag=$lt_lt_prog_compiler_static
14246 # Does compiler simultaneously support -c and -o options?
14247 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14249 # Whether or not to add -lc for building shared libraries.
14250 build_libtool_need_lc=$archive_cmds_need_lc
14252 # Whether or not to disallow shared libs when runtime libs are static.
14253 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14255 # Compiler flag to allow reflexive dlopens.
14256 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14258 # Compiler flag to generate shared objects directly from archives.
14259 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14261 # Whether the compiler copes with passing no objects directly.
14262 compiler_needs_object=$lt_compiler_needs_object
14264 # Create an old-style archive from a shared archive.
14265 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14267 # Create a temporary old-style archive to link instead of a shared archive.
14268 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14270 # Commands used to build a shared archive.
14271 archive_cmds=$lt_archive_cmds
14272 archive_expsym_cmds=$lt_archive_expsym_cmds
14274 # Commands used to build a loadable module if different from building
14275 # a shared archive.
14276 module_cmds=$lt_module_cmds
14277 module_expsym_cmds=$lt_module_expsym_cmds
14279 # Whether we are building with GNU ld or not.
14280 with_gnu_ld=$lt_with_gnu_ld
14282 # Flag that allows shared libraries with undefined symbols to be built.
14283 allow_undefined_flag=$lt_allow_undefined_flag
14285 # Flag that enforces no undefined symbols.
14286 no_undefined_flag=$lt_no_undefined_flag
14288 # Flag to hardcode \$libdir into a binary during linking.
14289 # This must work even if \$libdir does not exist
14290 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14292 # If ld is used when linking, flag to hardcode \$libdir into a binary
14293 # during linking. This must work even if \$libdir does not exist.
14294 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14296 # Whether we need a single "-rpath" flag with a separated argument.
14297 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14299 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14300 # DIR into the resulting binary.
14301 hardcode_direct=$hardcode_direct
14303 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14304 # DIR into the resulting binary and the resulting library dependency is
14305 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14306 # library is relocated.
14307 hardcode_direct_absolute=$hardcode_direct_absolute
14309 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14310 # into the resulting binary.
14311 hardcode_minus_L=$hardcode_minus_L
14313 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14314 # into the resulting binary.
14315 hardcode_shlibpath_var=$hardcode_shlibpath_var
14317 # Set to "yes" if building a shared library automatically hardcodes DIR
14318 # into the library and all subsequent libraries and executables linked
14320 hardcode_automatic=$hardcode_automatic
14322 # Set to yes if linker adds runtime paths of dependent libraries
14323 # to runtime path list.
14324 inherit_rpath=$inherit_rpath
14326 # Whether libtool must link a program against all its dependency libraries.
14327 link_all_deplibs=$link_all_deplibs
14329 # Fix the shell variable \$srcfile for the compiler.
14330 fix_srcfile_path=$lt_fix_srcfile_path
14332 # Set to "yes" if exported symbols are required.
14333 always_export_symbols=$always_export_symbols
14335 # The commands to list exported symbols.
14336 export_symbols_cmds=$lt_export_symbols_cmds
14338 # Symbols that should not be listed in the preloaded symbols.
14339 exclude_expsyms=$lt_exclude_expsyms
14341 # Symbols that must always be exported.
14342 include_expsyms=$lt_include_expsyms
14344 # Commands necessary for linking programs (against libraries) with templates.
14345 prelink_cmds=$lt_prelink_cmds
14347 # Specify filename containing input files.
14348 file_list_spec=$lt_file_list_spec
14350 # How to hardcode a shared library path into an executable.
14351 hardcode_action=$hardcode_action
14353 # ### END LIBTOOL CONFIG
14359 cat <<\_LT_EOF
>> "$cfgfile"
14360 # AIX sometimes has problems with the GCC collect2 program. For some
14361 # reason, if we set the COLLECT_NAMES environment variable, the problems
14362 # vanish in a puff of smoke.
14363 if test "X${COLLECT_NAMES+set}" != Xset
; then
14365 export COLLECT_NAMES
14372 ltmain
="$ac_aux_dir/ltmain.sh"
14375 # We use sed instead of cat because bash on DJGPP gets confused if
14376 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14377 # text mode, it properly converts lines to CR/LF. This bash problem
14378 # is reportedly fixed, but why not run on old versions too?
14379 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14380 ||
(rm -f "$cfgfile"; exit 1)
14384 cat << \_LT_EOF
>> "$cfgfile"
14385 # func_dirname file append nondir_replacement
14386 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14387 # otherwise set result to NONDIR_REPLACEMENT.
14391 */*) func_dirname_result
="${1%/*}${2}" ;;
14392 * ) func_dirname_result
="${3}" ;;
14396 # func_basename file
14399 func_basename_result
="${1##*/}"
14402 # func_stripname prefix suffix name
14403 # strip PREFIX and SUFFIX off of NAME.
14404 # PREFIX and SUFFIX must not contain globbing or regex special
14405 # characters, hashes, percent signs, but SUFFIX may contain a leading
14406 # dot (in which case that matches only a dot).
14409 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14410 # positional parameters, so assign one to ordinary parameter first.
14411 func_stripname_result
=${3}
14412 func_stripname_result
=${func_stripname_result#"${1}"}
14413 func_stripname_result
=${func_stripname_result%"${2}"}
14419 func_opt_split_opt
=${1%%=*}
14420 func_opt_split_arg
=${1#*=}
14427 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
14428 *) func_lo2o_result
=${1} ;;
14433 *) # Bourne compatible functions.
14434 cat << \_LT_EOF
>> "$cfgfile"
14435 # func_dirname file append nondir_replacement
14436 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14437 # otherwise set result to NONDIR_REPLACEMENT.
14440 # Extract subdirectory from the argument.
14441 func_dirname_result
=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14442 if test "X$func_dirname_result" = "X${1}"; then
14443 func_dirname_result
="${3}"
14445 func_dirname_result
="$func_dirname_result${2}"
14449 # func_basename file
14452 func_basename_result
=`$ECHO "X${1}" | $Xsed -e "$basename"`
14455 # func_stripname prefix suffix name
14456 # strip PREFIX and SUFFIX off of NAME.
14457 # PREFIX and SUFFIX must not contain globbing or regex special
14458 # characters, hashes, percent signs, but SUFFIX may contain a leading
14459 # dot (in which case that matches only a dot).
14460 # func_strip_suffix prefix name
14464 .
*) func_stripname_result
=`$ECHO "X${3}" \
14465 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14466 *) func_stripname_result
=`$ECHO "X${3}" \
14467 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14472 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
14473 my_sed_long_arg
='1s/^-[^=]*=//'
14478 func_opt_split_opt
=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14479 func_opt_split_arg
=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14485 func_lo2o_result
=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14490 case $lt_shell_append in
14492 cat << \_LT_EOF
>> "$cfgfile"
14494 # func_append var value
14495 # Append VALUE to the end of shell variable VAR.
14503 cat << \_LT_EOF
>> "$cfgfile"
14505 # func_append var value
14506 # Append VALUE to the end of shell variable VAR.
14516 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14517 ||
(rm -f "$cfgfile"; exit 1)
14519 mv -f "$cfgfile" "$ofile" ||
14520 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14524 "Makefile":F
) if test -n "$CONFIG_FILES"; then
14526 .
${newlib_basedir}/..
/config-ml.
in
14533 { (exit 0); exit 0; }
14535 chmod +x
$CONFIG_STATUS
14536 ac_clean_files
=$ac_clean_files_save
14539 # configure is writing to config.log, and then calls config.status.
14540 # config.status does its own redirection, appending to config.log.
14541 # Unfortunately, on DOS this fails, as config.log is still kept open
14542 # by configure, so config.status won't be able to write to it; its
14543 # output is simply discarded. So we exec the FD to /dev/null,
14544 # effectively closing config.log, so it can be properly (re)opened and
14545 # appended to by config.status. When coming back to configure, we
14546 # need to make the FD available again.
14547 if test "$no_create" != yes; then
14549 ac_config_status_args
=
14550 test "$silent" = yes &&
14551 ac_config_status_args
="$ac_config_status_args --quiet"
14553 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
14555 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14556 # would make configure fail if this is the last instruction.
14557 $ac_cs_success ||
{ (exit 1); exit 1; }
14561 # CONFIG_SUBDIRS section.
14563 if test "$no_recursion" != yes; then
14565 # Remove --cache-file and --srcdir arguments so they do not pile up.
14566 ac_sub_configure_args
=
14568 eval "set x $ac_configure_args"
14572 if test -n "$ac_prev"; then
14577 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
14578 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
14579 ac_prev
=cache_file
;;
14580 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
14581 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
14584 --config-cache |
-C)
14586 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
14588 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
14590 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
14592 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
14596 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14598 ac_sub_configure_args
="$ac_sub_configure_args '$ac_arg'" ;;
14602 # Always prepend --prefix to ensure using the same prefix
14603 # in subdir configurations.
14604 ac_arg
="--prefix=$prefix"
14606 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14608 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
14611 if test "$silent" = yes; then
14612 ac_sub_configure_args
="--silent $ac_sub_configure_args"
14616 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
14618 # Do not complain, so a configure script can configure whichever
14619 # parts of a large source tree are present.
14620 test -d "$srcdir/$ac_dir" ||
continue
14622 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
14623 echo "$as_me:$LINENO: $ac_msg" >&5
14627 -*) as_dir
=.
/$as_dir;;
14629 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
14633 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14634 *) as_qdir
=$as_dir;;
14636 as_dirs
="'$as_qdir' $as_dirs"
14637 as_dir
=`$as_dirname -- "$as_dir" ||
14638 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14639 X"$as_dir" : 'X\(//\)[^/]' \| \
14640 X"$as_dir" : 'X\(//\)$' \| \
14641 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14643 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14647 /^X\(\/\/\)[^/].*/{
14660 test -d "$as_dir" && break
14662 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
14663 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14664 echo "$as_me: error: cannot create directory $as_dir" >&2;}
14665 { (exit 1); exit 1; }; }; }
14669 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
14671 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14672 # A ".." for each directory in $ac_dir_suffix.
14673 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
14674 case $ac_top_builddir_sub in
14675 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
14676 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
14679 ac_abs_top_builddir
=$ac_pwd
14680 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
14681 # for backward compatibility:
14682 ac_top_builddir
=$ac_top_build_prefix
14685 .
) # We are building in place.
14687 ac_top_srcdir
=$ac_top_builddir_sub
14688 ac_abs_top_srcdir
=$ac_pwd ;;
14689 [\\/]* | ?
:[\\/]* ) # Absolute name.
14690 ac_srcdir
=$srcdir$ac_dir_suffix;
14691 ac_top_srcdir
=$srcdir
14692 ac_abs_top_srcdir
=$srcdir ;;
14693 *) # Relative name.
14694 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
14695 ac_top_srcdir
=$ac_top_build_prefix$srcdir
14696 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
14698 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
14703 # Check for guested configure; otherwise get Cygnus style configure.
14704 if test -f "$ac_srcdir/configure.gnu"; then
14705 ac_sub_configure
=$ac_srcdir/configure.gnu
14706 elif test -f "$ac_srcdir/configure"; then
14707 ac_sub_configure
=$ac_srcdir/configure
14708 elif test -f "$ac_srcdir/configure.in"; then
14709 # This should be Cygnus configure.
14710 ac_sub_configure
=$ac_aux_dir/configure
14712 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
14713 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
14717 # The recursion is here.
14718 if test -n "$ac_sub_configure"; then
14719 # Make the cache file name correct relative to the subdirectory.
14720 case $cache_file in
14721 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
14722 *) # Relative name.
14723 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
14726 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
14727 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
14728 # The eval makes quoting arguments work.
14729 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
14730 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
14731 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
14732 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
14733 { (exit 1); exit 1; }; }