2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for newlib 1.17.0.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir=.
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
277 CONFIG_SHELL=$as_shell
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
305 as_func_ret_success () {
308 as_func_ret_failure () {
313 if as_func_success; then
317 echo as_func_success failed.
320 if as_func_failure; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
492 ECHO_C= ECHO_N= ECHO_T=
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
525 elif ln conf$$.file conf$$ 2>/dev/null; then
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
539 test -d ./-p && rmdir ./-p
543 if test -x / >/dev/null 2>&1; then
546 if ls -dL / >/dev/null 2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
575 # Check that we are running under the correct shell.
576 SHELL=${CONFIG_SHELL-/bin/sh}
580 # Remove one level of quotation (which was required for Make).
581 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
586 if test "X$1" = X--no-reexec; then
587 # Discard the --no-reexec flag, and continue.
589 elif test "X$1" = X--fallback-echo; then
590 # Avoid inline document here, it may be left over
592 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $ECHO works!
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
600 if test "X$1" = X--fallback-echo; then
601 # used as fallback echo
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
613 if test -z "$lt_ECHO"; then
614 if test "X${echo_test_string+set}" != Xset; then
615 # find a string as large as possible, as long as the shell can cope with it
616 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
631 # The Solaris, AIX, and Digital Unix default echo programs unquote
632 # backslashes. This makes it impossible to quote backslashes using
633 # echo "$something" | sed 's/\\/\\\\/g'
635 # So, first we look for a working echo in the user's PATH.
637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638 for dir in $PATH /usr/ucb; do
640 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
650 if test "X$ECHO" = Xecho; then
651 # We didn't find a better echo, so look for alternatives.
652 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 # This shell has a builtin print -r that does the trick.
657 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658 test "X$CONFIG_SHELL" != X/bin/ksh; then
659 # If we have ksh, try running configure again with it.
660 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661 export ORIGINAL_CONFIG_SHELL
662 CONFIG_SHELL=/bin/ksh
664 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
668 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670 test "X$echo_testing_string" = "X$echo_test_string"; then
673 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674 test "X$echo_testing_string" = 'X\t' &&
675 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676 test "X$echo_testing_string" = "X$echo_test_string"; then
677 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
679 SHELL="$CONFIG_SHELL"
681 ECHO="$CONFIG_SHELL $0 --fallback-echo"
682 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683 test "X$echo_testing_string" = 'X\t' &&
684 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685 test "X$echo_testing_string" = "X$echo_test_string"; then
686 ECHO="$CONFIG_SHELL $0 --fallback-echo"
688 # maybe with a smaller string...
691 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
699 if test "$prev" != 'sed 50q "$0"'; then
700 echo_test_string=`eval $prev`
701 export echo_test_string
702 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
704 # Oops. We lost completely, so just stick with echo.
713 # Copy echo and quote the copy suitably for passing to libtool from
714 # the Makefile, instead of quoting the original, which is used later.
716 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
723 exec 7<&0 </dev/null 6>&1
726 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727 # so uname gets run too.
728 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
733 ac_default_prefix=/usr/local
735 ac_config_libobj_dir=.
741 SHELL=${CONFIG_SHELL-/bin/sh}
743 # Identity of this package.
744 PACKAGE_NAME='newlib'
745 PACKAGE_TARNAME='newlib'
746 PACKAGE_VERSION='1.17.0'
747 PACKAGE_STRING='newlib 1.17.0'
750 ac_unique_file="linux.c"
751 # Factoring default headers for most tests.
752 ac_includes_default="\
754 #ifdef HAVE_SYS_TYPES_H
755 # include <sys/types.h>
757 #ifdef HAVE_SYS_STAT_H
758 # include <sys/stat.h>
764 # ifdef HAVE_STDLIB_H
769 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
774 #ifdef HAVE_STRINGS_H
775 # include <strings.h>
777 #ifdef HAVE_INTTYPES_H
778 # include <inttypes.h>
787 enable_option_checking=no
788 ac_subst_vars='am__EXEEXT_FALSE
843 MAINTAINER_MODE_FALSE
867 INSTALL_STRIP_PROGRAM
891 MAY_SUPPLY_SYSCALLS_FALSE
892 MAY_SUPPLY_SYSCALLS_TRUE
920 program_transform_name
932 enable_option_checking
934 enable_target_optspace
935 enable_malloc_debugging
936 enable_newlib_multithread
938 enable_newlib_elix_level
939 enable_newlib_io_float
940 enable_newlib_supplied_syscalls
941 enable_dependency_tracking
942 enable_maintainer_mode
950 ac_precious_vars='build_alias
961 ac_subdirs_all='machine
964 # Initialize some variables set by options.
966 ac_init_version=false
967 ac_unrecognized_opts=
969 # The variables have the same names as the options, with
970 # dashes changed to underlines.
978 program_transform_name=s,x,x,
986 # Installation directory options.
987 # These are left unexpanded so users can "make install exec_prefix=/foo"
988 # and all the variables that are supposed to be based on exec_prefix
989 # by default will actually change.
990 # Use braces instead of parens because sh, perl, etc. also accept them.
991 # (The list follows the same order as the GNU Coding Standards.)
992 bindir='${exec_prefix}/bin'
993 sbindir='${exec_prefix}/sbin'
994 libexecdir='${exec_prefix}/libexec'
995 datarootdir='${prefix}/share'
996 datadir='${datarootdir}'
997 sysconfdir='${prefix}/etc'
998 sharedstatedir='${prefix}/com'
999 localstatedir='${prefix}/var'
1000 includedir='${prefix}/include'
1001 oldincludedir='/usr/include'
1002 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1003 infodir='${datarootdir}/info'
1008 libdir='${exec_prefix}/lib'
1009 localedir='${datarootdir}/locale'
1010 mandir='${datarootdir}/man'
1016 # If the previous option needs an argument, assign it.
1017 if test -n "$ac_prev"; then
1018 eval $ac_prev=\$ac_option
1024 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1028 # Accept the important Cygnus configure options, so we can diagnose typos.
1030 case $ac_dashdash$ac_option in
1034 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1036 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1037 bindir=$ac_optarg ;;
1039 -build | --build | --buil | --bui | --bu)
1040 ac_prev=build_alias ;;
1041 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1042 build_alias=$ac_optarg ;;
1044 -cache-file | --cache-file | --cache-fil | --cache-fi \
1045 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1046 ac_prev=cache_file ;;
1047 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1048 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1049 cache_file=$ac_optarg ;;
1051 --config-cache | -C)
1052 cache_file=config.cache ;;
1054 -datadir | --datadir | --datadi | --datad)
1056 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1057 datadir=$ac_optarg ;;
1059 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1060 | --dataroo | --dataro | --datar)
1061 ac_prev=datarootdir ;;
1062 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1063 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1064 datarootdir=$ac_optarg ;;
1066 -disable-* | --disable-*)
1067 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1070 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1071 { (exit 1); exit 1; }; }
1072 ac_useropt_orig=$ac_useropt
1073 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074 case $ac_user_opts in
1076 "enable_$ac_useropt"
1078 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1079 ac_unrecognized_sep=', ';;
1081 eval enable_$ac_useropt=no ;;
1083 -docdir | --docdir | --docdi | --doc | --do)
1085 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1086 docdir=$ac_optarg ;;
1088 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1090 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1091 dvidir=$ac_optarg ;;
1093 -enable-* | --enable-*)
1094 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1095 # Reject names that are not valid shell variable names.
1096 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1097 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1098 { (exit 1); exit 1; }; }
1099 ac_useropt_orig=$ac_useropt
1100 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101 case $ac_user_opts in
1103 "enable_$ac_useropt"
1105 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1106 ac_unrecognized_sep=', ';;
1108 eval enable_$ac_useropt=\$ac_optarg ;;
1110 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1111 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1112 | --exec | --exe | --ex)
1113 ac_prev=exec_prefix ;;
1114 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1115 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1116 | --exec=* | --exe=* | --ex=*)
1117 exec_prefix=$ac_optarg ;;
1119 -gas | --gas | --ga | --g)
1120 # Obsolete; use --with-gas.
1123 -help | --help | --hel | --he | -h)
1124 ac_init_help=long ;;
1125 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1126 ac_init_help=recursive ;;
1127 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1128 ac_init_help=short ;;
1130 -host | --host | --hos | --ho)
1131 ac_prev=host_alias ;;
1132 -host=* | --host=* | --hos=* | --ho=*)
1133 host_alias=$ac_optarg ;;
1135 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1137 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1139 htmldir=$ac_optarg ;;
1141 -includedir | --includedir | --includedi | --included | --include \
1142 | --includ | --inclu | --incl | --inc)
1143 ac_prev=includedir ;;
1144 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1145 | --includ=* | --inclu=* | --incl=* | --inc=*)
1146 includedir=$ac_optarg ;;
1148 -infodir | --infodir | --infodi | --infod | --info | --inf)
1150 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1151 infodir=$ac_optarg ;;
1153 -libdir | --libdir | --libdi | --libd)
1155 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1156 libdir=$ac_optarg ;;
1158 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1159 | --libexe | --libex | --libe)
1160 ac_prev=libexecdir ;;
1161 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1162 | --libexe=* | --libex=* | --libe=*)
1163 libexecdir=$ac_optarg ;;
1165 -localedir | --localedir | --localedi | --localed | --locale)
1166 ac_prev=localedir ;;
1167 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1168 localedir=$ac_optarg ;;
1170 -localstatedir | --localstatedir | --localstatedi | --localstated \
1171 | --localstate | --localstat | --localsta | --localst | --locals)
1172 ac_prev=localstatedir ;;
1173 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1174 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1175 localstatedir=$ac_optarg ;;
1177 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1179 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1180 mandir=$ac_optarg ;;
1182 -nfp | --nfp | --nf)
1183 # Obsolete; use --without-fp.
1186 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1187 | --no-cr | --no-c | -n)
1190 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1191 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1194 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1195 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1196 | --oldin | --oldi | --old | --ol | --o)
1197 ac_prev=oldincludedir ;;
1198 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1199 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1200 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1201 oldincludedir=$ac_optarg ;;
1203 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1205 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1206 prefix=$ac_optarg ;;
1208 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1209 | --program-pre | --program-pr | --program-p)
1210 ac_prev=program_prefix ;;
1211 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1212 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1213 program_prefix=$ac_optarg ;;
1215 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1216 | --program-suf | --program-su | --program-s)
1217 ac_prev=program_suffix ;;
1218 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1219 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1220 program_suffix=$ac_optarg ;;
1222 -program-transform-name | --program-transform-name \
1223 | --program-transform-nam | --program-transform-na \
1224 | --program-transform-n | --program-transform- \
1225 | --program-transform | --program-transfor \
1226 | --program-transfo | --program-transf \
1227 | --program-trans | --program-tran \
1228 | --progr-tra | --program-tr | --program-t)
1229 ac_prev=program_transform_name ;;
1230 -program-transform-name=* | --program-transform-name=* \
1231 | --program-transform-nam=* | --program-transform-na=* \
1232 | --program-transform-n=* | --program-transform-=* \
1233 | --program-transform=* | --program-transfor=* \
1234 | --program-transfo=* | --program-transf=* \
1235 | --program-trans=* | --program-tran=* \
1236 | --progr-tra=* | --program-tr=* | --program-t=*)
1237 program_transform_name=$ac_optarg ;;
1239 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1241 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1242 pdfdir=$ac_optarg ;;
1244 -psdir | --psdir | --psdi | --psd | --ps)
1246 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1249 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1250 | -silent | --silent | --silen | --sile | --sil)
1253 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1255 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1257 sbindir=$ac_optarg ;;
1259 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1260 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1261 | --sharedst | --shareds | --shared | --share | --shar \
1263 ac_prev=sharedstatedir ;;
1264 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1265 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1266 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1268 sharedstatedir=$ac_optarg ;;
1270 -site | --site | --sit)
1272 -site=* | --site=* | --sit=*)
1275 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1277 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1278 srcdir=$ac_optarg ;;
1280 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1281 | --syscon | --sysco | --sysc | --sys | --sy)
1282 ac_prev=sysconfdir ;;
1283 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1284 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1285 sysconfdir=$ac_optarg ;;
1287 -target | --target | --targe | --targ | --tar | --ta | --t)
1288 ac_prev=target_alias ;;
1289 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1290 target_alias=$ac_optarg ;;
1292 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1295 -version | --version | --versio | --versi | --vers | -V)
1296 ac_init_version=: ;;
1299 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1300 # Reject names that are not valid shell variable names.
1301 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1302 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1303 { (exit 1); exit 1; }; }
1304 ac_useropt_orig=$ac_useropt
1305 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1306 case $ac_user_opts in
1310 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1311 ac_unrecognized_sep=', ';;
1313 eval with_$ac_useropt=\$ac_optarg ;;
1315 -without-* | --without-*)
1316 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1317 # Reject names that are not valid shell variable names.
1318 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1319 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1320 { (exit 1); exit 1; }; }
1321 ac_useropt_orig=$ac_useropt
1322 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1323 case $ac_user_opts in
1327 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1328 ac_unrecognized_sep=', ';;
1330 eval with_$ac_useropt=no ;;
1333 # Obsolete; use --with-x.
1336 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1337 | --x-incl | --x-inc | --x-in | --x-i)
1338 ac_prev=x_includes ;;
1339 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1340 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1341 x_includes=$ac_optarg ;;
1343 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1344 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1345 ac_prev=x_libraries ;;
1346 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1347 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1348 x_libraries=$ac_optarg ;;
1350 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1351 Try \`$0 --help' for more information." >&2
1352 { (exit 1); exit 1; }; }
1356 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1357 # Reject names that are not valid shell variable names.
1358 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1359 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1360 { (exit 1); exit 1; }; }
1361 eval $ac_envvar=\$ac_optarg
1362 export $ac_envvar ;;
1365 # FIXME: should be removed in autoconf 3.0.
1366 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1367 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1368 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1369 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1375 if test -n "$ac_prev"; then
1376 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1377 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1378 { (exit 1); exit 1; }; }
1381 if test -n "$ac_unrecognized_opts"; then
1382 case $enable_option_checking in
1384 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1385 { (exit 1); exit 1; }; } ;;
1386 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1390 # Check all directory arguments for consistency.
1391 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1392 datadir sysconfdir sharedstatedir localstatedir includedir \
1393 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1394 libdir localedir mandir
1396 eval ac_val=\$$ac_var
1397 # Remove trailing slashes.
1400 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1401 eval $ac_var=\$ac_val;;
1403 # Be sure to have absolute directory names.
1405 [\\/$]* | ?:[\\/]* ) continue;;
1406 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1408 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1409 { (exit 1); exit 1; }; }
1412 # There might be people who depend on the old broken behavior: `$host'
1413 # used to hold the argument of --host etc.
1414 # FIXME: To remove some day.
1417 target=$target_alias
1419 # FIXME: To remove some day.
1420 if test "x$host_alias" != x; then
1421 if test "x$build_alias" = x; then
1422 cross_compiling=maybe
1423 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1424 If a cross compiler is detected then cross compile mode will be used." >&2
1425 elif test "x$build_alias" != "x$host_alias"; then
1431 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1433 test "$silent" = yes && exec 6>/dev/null
1436 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1437 ac_ls_di=`ls -di .` &&
1438 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1439 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1440 { (exit 1); exit 1; }; }
1441 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1442 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1443 { (exit 1); exit 1; }; }
1446 # Find the source files, if location was not specified.
1447 if test -z "$srcdir"; then
1448 ac_srcdir_defaulted=yes
1449 # Try the directory containing this script, then the parent directory.
1450 ac_confdir=`$as_dirname -- "$as_myself" ||
1451 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1452 X"$as_myself" : 'X\(//\)[^/]' \| \
1453 X"$as_myself" : 'X\(//\)$' \| \
1454 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1455 $as_echo X"$as_myself" |
1456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1474 if test ! -r "$srcdir/$ac_unique_file"; then
1478 ac_srcdir_defaulted=no
1480 if test ! -r "$srcdir/$ac_unique_file"; then
1481 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1482 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1483 { (exit 1); exit 1; }; }
1485 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1487 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1488 { (exit 1); exit 1; }; }
1490 # When building in place, set srcdir=.
1491 if test "$ac_abs_confdir" = "$ac_pwd"; then
1494 # Remove unnecessary trailing slashes from srcdir.
1495 # Double slashes in file names in object file debugging info
1496 # mess up M-x gdb in Emacs.
1498 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1500 for ac_var in $ac_precious_vars; do
1501 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1502 eval ac_env_${ac_var}_value=\$${ac_var}
1503 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1504 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1508 # Report the --help message.
1510 if test "$ac_init_help" = "long"; then
1511 # Omit some internal or obsolete options to make the list less imposing.
1512 # This message is too long to be a string in the A/UX 3.1 sh.
1514 \`configure' configures newlib 1.17.0 to adapt to many kinds of systems.
1516 Usage: $0 [OPTION]... [VAR=VALUE]...
1518 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1519 VAR=VALUE. See below for descriptions of some of the useful variables.
1521 Defaults for the options are specified in brackets.
1524 -h, --help display this help and exit
1525 --help=short display options specific to this package
1526 --help=recursive display the short help of all the included packages
1527 -V, --version display version information and exit
1528 -q, --quiet, --silent do not print \`checking...' messages
1529 --cache-file=FILE cache test results in FILE [disabled]
1530 -C, --config-cache alias for \`--cache-file=config.cache'
1531 -n, --no-create do not create output files
1532 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1534 Installation directories:
1535 --prefix=PREFIX install architecture-independent files in PREFIX
1536 [$ac_default_prefix]
1537 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1540 By default, \`make install' will install all the files in
1541 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1542 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1543 for instance \`--prefix=\$HOME'.
1545 For better control, use the options below.
1547 Fine tuning of the installation directories:
1548 --bindir=DIR user executables [EPREFIX/bin]
1549 --sbindir=DIR system admin executables [EPREFIX/sbin]
1550 --libexecdir=DIR program executables [EPREFIX/libexec]
1551 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1552 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1553 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1554 --libdir=DIR object code libraries [EPREFIX/lib]
1555 --includedir=DIR C header files [PREFIX/include]
1556 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1557 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1558 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1559 --infodir=DIR info documentation [DATAROOTDIR/info]
1560 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1561 --mandir=DIR man documentation [DATAROOTDIR/man]
1562 --docdir=DIR documentation root [DATAROOTDIR/doc/newlib]
1563 --htmldir=DIR html documentation [DOCDIR]
1564 --dvidir=DIR dvi documentation [DOCDIR]
1565 --pdfdir=DIR pdf documentation [DOCDIR]
1566 --psdir=DIR ps documentation [DOCDIR]
1572 --program-prefix=PREFIX prepend PREFIX to installed program names
1573 --program-suffix=SUFFIX append SUFFIX to installed program names
1574 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1577 --build=BUILD configure for building on BUILD [guessed]
1578 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1582 if test -n "$ac_init_help"; then
1583 case $ac_init_help in
1584 short | recursive ) echo "Configuration of newlib 1.17.0:";;
1589 --disable-option-checking ignore unrecognized --enable/--with options
1590 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1591 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1592 --enable-multilib build many library versions (default)
1593 --enable-target-optspace optimize for space
1594 --enable-malloc-debugging indicate malloc debugging requested
1595 --enable-newlib-multithread enable support for multiple threads
1596 --enable-newlib-iconv enable iconv library support
1597 --enable-newlib-elix-level supply desired elix library level (1-4)
1598 --disable-newlib-io-float disable printf/scanf family float support
1599 --disable-newlib-supplied-syscalls disable newlib from supplying syscalls
1600 --disable-dependency-tracking speeds up one-time build
1601 --enable-dependency-tracking do not reject slow dependency extractors
1602 --enable-maintainer-mode enable make rules and dependencies not useful
1603 (and sometimes confusing) to the casual installer
1604 --enable-shared[=PKGS] build shared libraries [default=yes]
1605 --enable-static[=PKGS] build static libraries [default=yes]
1606 --enable-fast-install[=PKGS]
1607 optimize for fast installation [default=yes]
1608 --disable-libtool-lock avoid locking (might break parallel builds)
1611 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1612 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1613 --with-pic try to use only PIC/non-PIC objects [default=use
1615 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1617 Some influential environment variables:
1618 CCAS assembler compiler command (defaults to CC)
1619 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1620 CC C compiler command
1621 CFLAGS C compiler flags
1622 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1623 nonstandard directory <lib dir>
1624 LIBS libraries to pass to the linker, e.g. -l<library>
1625 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1626 you have headers in a nonstandard directory <include dir>
1629 Use these variables to override the choices made by `configure' or to help
1630 it to find libraries and programs with nonstandard names/locations.
1636 if test "$ac_init_help" = "recursive"; then
1637 # If there are subdirs, report their specific --help.
1638 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1639 test -d "$ac_dir" ||
1640 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1645 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1647 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1648 # A ".." for each directory in $ac_dir_suffix.
1649 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1650 case $ac_top_builddir_sub in
1651 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1652 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1655 ac_abs_top_builddir=$ac_pwd
1656 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1657 # for backward compatibility:
1658 ac_top_builddir=$ac_top_build_prefix
1661 .) # We are building in place.
1663 ac_top_srcdir=$ac_top_builddir_sub
1664 ac_abs_top_srcdir=$ac_pwd ;;
1665 [\\/]* | ?:[\\/]* ) # Absolute name.
1666 ac_srcdir=$srcdir$ac_dir_suffix;
1667 ac_top_srcdir=$srcdir
1668 ac_abs_top_srcdir=$srcdir ;;
1670 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1671 ac_top_srcdir=$ac_top_build_prefix$srcdir
1672 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1674 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1676 cd "$ac_dir" || { ac_status=$?; continue; }
1677 # Check for guested configure.
1678 if test -f "$ac_srcdir/configure.gnu"; then
1680 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1681 elif test -f "$ac_srcdir/configure"; then
1683 $SHELL "$ac_srcdir/configure" --help=recursive
1685 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1687 cd "$ac_pwd" || { ac_status=$?; break; }
1691 test -n "$ac_init_help" && exit $ac_status
1692 if $ac_init_version; then
1694 newlib configure 1.17.0
1695 generated by GNU Autoconf 2.63
1697 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1698 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1699 This configure script is free software; the Free Software Foundation
1700 gives unlimited permission to copy, distribute and modify it.
1704 cat >config.log <<_ACEOF
1705 This file contains any messages produced by compilers while
1706 running configure, to aid debugging if configure makes a mistake.
1708 It was created by newlib $as_me 1.17.0, which was
1709 generated by GNU Autoconf 2.63. Invocation command line was
1721 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1722 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1723 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1724 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1725 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1727 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1728 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1730 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1731 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1732 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1733 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1734 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1735 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1736 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744 test -z "$as_dir" && as_dir=.
1745 $as_echo "PATH: $as_dir"
1761 # Keep a trace of the command line.
1762 # Strip out --no-create and --no-recursion so they do not pile up.
1763 # Strip out --silent because we don't want to record it for future runs.
1764 # Also quote any args containing shell meta-characters.
1765 # Make two passes to allow for proper duplicate-argument suppression.
1769 ac_must_keep_next=false
1775 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1776 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1777 | -silent | --silent | --silen | --sile | --sil)
1780 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1783 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1785 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1786 if test $ac_must_keep_next = true; then
1787 ac_must_keep_next=false # Got value, back to normal.
1790 *=* | --config-cache | -C | -disable-* | --disable-* \
1791 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1792 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1793 | -with-* | --with-* | -without-* | --without-* | --x)
1794 case "$ac_configure_args0 " in
1795 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1798 -* ) ac_must_keep_next=true ;;
1801 ac_configure_args="$ac_configure_args '$ac_arg'"
1806 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1807 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1809 # When interrupted or exit'd, cleanup temporary files, and complete
1810 # config.log. We remove comments because anyway the quotes in there
1811 # would cause problems or look ugly.
1812 # WARNING: Use '\'' to represent an apostrophe within the trap.
1813 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1814 trap 'exit_status=$?
1815 # Save into config.log some information that might help in debugging.
1820 ## ---------------- ##
1821 ## Cache variables. ##
1822 ## ---------------- ##
1825 # The following way of writing the cache mishandles newlines in values,
1827 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1828 eval ac_val=\$$ac_var
1832 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1833 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1836 _ | IFS | as_nl) ;; #(
1837 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1838 *) $as_unset $ac_var ;;
1843 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1844 *${as_nl}ac_space=\ *)
1846 "s/'\''/'\''\\\\'\'''\''/g;
1847 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1850 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1858 ## ----------------- ##
1859 ## Output variables. ##
1860 ## ----------------- ##
1863 for ac_var in $ac_subst_vars
1865 eval ac_val=\$$ac_var
1867 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1869 $as_echo "$ac_var='\''$ac_val'\''"
1873 if test -n "$ac_subst_files"; then
1875 ## ------------------- ##
1876 ## File substitutions. ##
1877 ## ------------------- ##
1880 for ac_var in $ac_subst_files
1882 eval ac_val=\$$ac_var
1884 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1886 $as_echo "$ac_var='\''$ac_val'\''"
1891 if test -s confdefs.h; then
1901 test "$ac_signal" != 0 &&
1902 $as_echo "$as_me: caught signal $ac_signal"
1903 $as_echo "$as_me: exit $exit_status"
1905 rm -f core *.core core.conftest.* &&
1906 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1909 for ac_signal in 1 2 13 15; do
1910 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1914 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1915 rm -f -r conftest* confdefs.h
1917 # Predefined preprocessor variables.
1919 cat >>confdefs.h <<_ACEOF
1920 #define PACKAGE_NAME "$PACKAGE_NAME"
1924 cat >>confdefs.h <<_ACEOF
1925 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1929 cat >>confdefs.h <<_ACEOF
1930 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1934 cat >>confdefs.h <<_ACEOF
1935 #define PACKAGE_STRING "$PACKAGE_STRING"
1939 cat >>confdefs.h <<_ACEOF
1940 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1944 # Let the site file select an alternate cache file if it wants to.
1945 # Prefer an explicitly selected file to automatically selected ones.
1948 if test -n "$CONFIG_SITE"; then
1949 ac_site_file1=$CONFIG_SITE
1950 elif test "x$prefix" != xNONE; then
1951 ac_site_file1=$prefix/share/config.site
1952 ac_site_file2=$prefix/etc/config.site
1954 ac_site_file1=$ac_default_prefix/share/config.site
1955 ac_site_file2=$ac_default_prefix/etc/config.site
1957 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1959 test "x$ac_site_file" = xNONE && continue
1960 if test -r "$ac_site_file"; then
1961 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1962 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1963 sed 's/^/| /' "$ac_site_file" >&5
1968 if test -r "$cache_file"; then
1969 # Some versions of bash will fail to source /dev/null (special
1970 # files actually), so we avoid doing that.
1971 if test -f "$cache_file"; then
1972 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1973 $as_echo "$as_me: loading cache $cache_file" >&6;}
1975 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1976 *) . "./$cache_file";;
1980 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1981 $as_echo "$as_me: creating cache $cache_file" >&6;}
1985 # Check that the precious variables saved in the cache have kept the same
1987 ac_cache_corrupted=false
1988 for ac_var in $ac_precious_vars; do
1989 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1990 eval ac_new_set=\$ac_env_${ac_var}_set
1991 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1992 eval ac_new_val=\$ac_env_${ac_var}_value
1993 case $ac_old_set,$ac_new_set in
1995 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1996 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1997 ac_cache_corrupted=: ;;
1999 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2000 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2001 ac_cache_corrupted=: ;;
2004 if test "x$ac_old_val" != "x$ac_new_val"; then
2005 # differences in whitespace do not lead to failure.
2006 ac_old_val_w=`echo x $ac_old_val`
2007 ac_new_val_w=`echo x $ac_new_val`
2008 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2009 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2010 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2011 ac_cache_corrupted=:
2013 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2014 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2015 eval $ac_var=\$ac_old_val
2017 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2018 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2019 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2020 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2023 # Pass precious variables to config.status.
2024 if test "$ac_new_set" = set; then
2026 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2027 *) ac_arg=$ac_var=$ac_new_val ;;
2029 case " $ac_configure_args " in
2030 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2031 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2035 if $ac_cache_corrupted; then
2036 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2038 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2039 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2040 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2041 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2042 { (exit 1); exit 1; }; }
2070 ac_cpp='$CPP $CPPFLAGS'
2071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2079 for ac_dir in ../../../.. "$srcdir"/../../../..; do
2080 if test -f "$ac_dir/install-sh"; then
2082 ac_install_sh="$ac_aux_dir/install-sh -c"
2084 elif test -f "$ac_dir/install.sh"; then
2086 ac_install_sh="$ac_aux_dir/install.sh -c"
2088 elif test -f "$ac_dir/shtool"; then
2090 ac_install_sh="$ac_aux_dir/shtool install -c"
2094 if test -z "$ac_aux_dir"; then
2095 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../../.. \"$srcdir\"/../../../.." >&5
2096 $as_echo "$as_me: error: cannot find install-sh or install.sh in ../../../.. \"$srcdir\"/../../../.." >&2;}
2097 { (exit 1); exit 1; }; }
2100 # These three variables are undocumented and unsupported,
2101 # and are intended to be withdrawn in a future Autoconf release.
2102 # They can cause serious problems if a builder's source tree is in a directory
2103 # whose full name contains unusual characters.
2104 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2105 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2106 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2111 # Make sure we can run config.sub.
2112 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2113 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2114 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2115 { (exit 1); exit 1; }; }
2117 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2118 $as_echo_n "checking build system type... " >&6; }
2119 if test "${ac_cv_build+set}" = set; then
2120 $as_echo_n "(cached) " >&6
2122 ac_build_alias=$build_alias
2123 test "x$ac_build_alias" = x &&
2124 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2125 test "x$ac_build_alias" = x &&
2126 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2127 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2128 { (exit 1); exit 1; }; }
2129 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2130 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2131 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2132 { (exit 1); exit 1; }; }
2135 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2136 $as_echo "$ac_cv_build" >&6; }
2137 case $ac_cv_build in
2139 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2140 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2141 { (exit 1); exit 1; }; };;
2144 ac_save_IFS=$IFS; IFS='-'
2150 # Remember, the first character of IFS is used to create $*,
2151 # except with old shells:
2154 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2157 am__api_version='1.11'
2159 # Find a good install program. We prefer a C program (faster),
2160 # so one script is as good as another. But avoid the broken or
2161 # incompatible versions:
2162 # SysV /etc/install, /usr/sbin/install
2163 # SunOS /usr/etc/install
2164 # IRIX /sbin/install
2166 # AmigaOS /C/install, which installs bootblocks on floppy discs
2167 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2168 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2169 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2170 # OS/2's system install, which has a completely different semantic
2171 # ./install, which can be erroneously created by make from ./install.sh.
2172 # Reject install programs that cannot install multiple files.
2173 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2174 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2175 if test -z "$INSTALL"; then
2176 if test "${ac_cv_path_install+set}" = set; then
2177 $as_echo_n "(cached) " >&6
2179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2183 test -z "$as_dir" && as_dir=.
2184 # Account for people who put trailing slashes in PATH elements.
2186 ./ | .// | /cC/* | \
2187 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2188 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2191 # OSF1 and SCO ODT 3.0 have their own names for install.
2192 # Don't use installbsd from OSF since it installs stuff as root
2194 for ac_prog in ginstall scoinst install; do
2195 for ac_exec_ext in '' $ac_executable_extensions; do
2196 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2197 if test $ac_prog = install &&
2198 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2199 # AIX install. It has an incompatible calling convention.
2201 elif test $ac_prog = install &&
2202 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2203 # program-specific install script used by HP pwplus--don't use.
2206 rm -rf conftest.one conftest.two conftest.dir
2207 echo one > conftest.one
2208 echo two > conftest.two
2210 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2211 test -s conftest.one && test -s conftest.two &&
2212 test -s conftest.dir/conftest.one &&
2213 test -s conftest.dir/conftest.two
2215 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2228 rm -rf conftest.one conftest.two conftest.dir
2231 if test "${ac_cv_path_install+set}" = set; then
2232 INSTALL=$ac_cv_path_install
2234 # As a last resort, use the slow shell script. Don't cache a
2235 # value for INSTALL within a source directory, because that will
2236 # break other packages using the cache if that directory is
2237 # removed, or if the value is a relative name.
2238 INSTALL=$ac_install_sh
2241 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2242 $as_echo "$INSTALL" >&6; }
2244 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2245 # It thinks the first close brace ends the variable substitution.
2246 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2248 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2250 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2252 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2253 $as_echo_n "checking whether build environment is sane... " >&6; }
2256 echo timestamp > conftest.file
2257 # Reject unsafe characters in $srcdir or the absolute working directory
2258 # name. Accept space and tab only in the latter.
2262 *[\\\"\#\$\&\'\`$am_lf]*)
2263 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2264 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2265 { (exit 1); exit 1; }; };;
2268 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2269 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2270 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2271 { (exit 1); exit 1; }; };;
2274 # Do `set' in a subshell so we don't clobber the current shell's
2275 # arguments. Must try -L first in case configure is actually a
2276 # symlink; some systems play weird games with the mod time of symlinks
2277 # (eg FreeBSD returns the mod time of the symlink's containing
2280 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2281 if test "$*" = "X"; then
2283 set X `ls -t "$srcdir/configure" conftest.file`
2286 if test "$*" != "X $srcdir/configure conftest.file" \
2287 && test "$*" != "X conftest.file $srcdir/configure"; then
2289 # If neither matched, then we have a broken ls. This can happen
2290 # if, for instance, CONFIG_SHELL is bash and it inherits a
2291 # broken ls alias from the environment. This has actually
2292 # happened. Such a system could not be considered "sane".
2293 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2294 alias in your environment" >&5
2295 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2296 alias in your environment" >&2;}
2297 { (exit 1); exit 1; }; }
2300 test "$2" = conftest.file
2306 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2307 Check your system clock" >&5
2308 $as_echo "$as_me: error: newly created file is older than distributed files!
2309 Check your system clock" >&2;}
2310 { (exit 1); exit 1; }; }
2312 { $as_echo "$as_me:$LINENO: result: yes" >&5
2313 $as_echo "yes" >&6; }
2314 test "$program_prefix" != NONE &&
2315 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2316 # Use a double $ so make ignores it.
2317 test "$program_suffix" != NONE &&
2318 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2319 # Double any \ or $.
2320 # By default was `s,x,x', remove it if useless.
2321 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2322 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2324 # expand $ac_aux_dir to an absolute path
2325 am_aux_dir=`cd $ac_aux_dir && pwd`
2327 if test x"${MISSING+set}" != xset; then
2330 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2332 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2335 # Use eval to expand $SHELL
2336 if eval "$MISSING --run true"; then
2337 am_missing_run="$MISSING --run "
2340 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2341 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2344 if test x"${install_sh}" != xset; then
2347 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2349 install_sh="\${SHELL} $am_aux_dir/install-sh"
2353 # Installed binaries are usually stripped using `strip' when the user
2354 # run `make install-strip'. However `strip' might not be the right
2355 # tool to use in cross-compilation environments, therefore Automake
2356 # will honor the `STRIP' environment variable to overrule this program.
2357 if test "$cross_compiling" != no; then
2358 if test -n "$ac_tool_prefix"; then
2359 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2360 set dummy ${ac_tool_prefix}strip; ac_word=$2
2361 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2362 $as_echo_n "checking for $ac_word... " >&6; }
2363 if test "${ac_cv_prog_STRIP+set}" = set; then
2364 $as_echo_n "(cached) " >&6
2366 if test -n "$STRIP"; then
2367 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373 test -z "$as_dir" && as_dir=.
2374 for ac_exec_ext in '' $ac_executable_extensions; do
2375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2376 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2377 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2386 STRIP=$ac_cv_prog_STRIP
2387 if test -n "$STRIP"; then
2388 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2389 $as_echo "$STRIP" >&6; }
2391 { $as_echo "$as_me:$LINENO: result: no" >&5
2392 $as_echo "no" >&6; }
2397 if test -z "$ac_cv_prog_STRIP"; then
2399 # Extract the first word of "strip", so it can be a program name with args.
2400 set dummy strip; ac_word=$2
2401 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2402 $as_echo_n "checking for $ac_word... " >&6; }
2403 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2404 $as_echo_n "(cached) " >&6
2406 if test -n "$ac_ct_STRIP"; then
2407 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413 test -z "$as_dir" && as_dir=.
2414 for ac_exec_ext in '' $ac_executable_extensions; do
2415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2416 ac_cv_prog_ac_ct_STRIP="strip"
2417 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2426 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2427 if test -n "$ac_ct_STRIP"; then
2428 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2429 $as_echo "$ac_ct_STRIP" >&6; }
2431 { $as_echo "$as_me:$LINENO: result: no" >&5
2432 $as_echo "no" >&6; }
2435 if test "x$ac_ct_STRIP" = x; then
2438 case $cross_compiling:$ac_tool_warned in
2440 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2441 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2442 ac_tool_warned=yes ;;
2447 STRIP="$ac_cv_prog_STRIP"
2451 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2453 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2454 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2455 if test -z "$MKDIR_P"; then
2456 if test "${ac_cv_path_mkdir+set}" = set; then
2457 $as_echo_n "(cached) " >&6
2459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2463 test -z "$as_dir" && as_dir=.
2464 for ac_prog in mkdir gmkdir; do
2465 for ac_exec_ext in '' $ac_executable_extensions; do
2466 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2467 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2468 'mkdir (GNU coreutils) '* | \
2469 'mkdir (coreutils) '* | \
2470 'mkdir (fileutils) '4.1*)
2471 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2481 if test "${ac_cv_path_mkdir+set}" = set; then
2482 MKDIR_P="$ac_cv_path_mkdir -p"
2484 # As a last resort, use the slow shell script. Don't cache a
2485 # value for MKDIR_P within a source directory, because that will
2486 # break other packages using the cache if that directory is
2487 # removed, or if the value is a relative name.
2488 test -d ./--version && rmdir ./--version
2489 MKDIR_P="$ac_install_sh -d"
2492 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2493 $as_echo "$MKDIR_P" >&6; }
2497 [\\/$]* | ?:[\\/]*) ;;
2498 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2501 for ac_prog in gawk mawk nawk awk
2503 # Extract the first word of "$ac_prog", so it can be a program name with args.
2504 set dummy $ac_prog; ac_word=$2
2505 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2506 $as_echo_n "checking for $ac_word... " >&6; }
2507 if test "${ac_cv_prog_AWK+set}" = set; then
2508 $as_echo_n "(cached) " >&6
2510 if test -n "$AWK"; then
2511 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517 test -z "$as_dir" && as_dir=.
2518 for ac_exec_ext in '' $ac_executable_extensions; do
2519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2520 ac_cv_prog_AWK="$ac_prog"
2521 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2531 if test -n "$AWK"; then
2532 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2533 $as_echo "$AWK" >&6; }
2535 { $as_echo "$as_me:$LINENO: result: no" >&5
2536 $as_echo "no" >&6; }
2540 test -n "$AWK" && break
2543 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2544 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2546 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2547 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2548 $as_echo_n "(cached) " >&6
2550 cat >conftest.make <<\_ACEOF
2553 @echo '@@@%%%=$(MAKE)=@@@%%%'
2555 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2556 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2558 eval ac_cv_prog_make_${ac_make}_set=yes;;
2560 eval ac_cv_prog_make_${ac_make}_set=no;;
2564 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2565 { $as_echo "$as_me:$LINENO: result: yes" >&5
2566 $as_echo "yes" >&6; }
2569 { $as_echo "$as_me:$LINENO: result: no" >&5
2570 $as_echo "no" >&6; }
2571 SET_MAKE="MAKE=${MAKE-make}"
2574 rm -rf .tst 2>/dev/null
2575 mkdir .tst 2>/dev/null
2576 if test -d .tst; then
2581 rmdir .tst 2>/dev/null
2583 DEPDIR="${am__leading_dot}deps"
2585 ac_config_commands="$ac_config_commands depfiles"
2588 am_make=${MAKE-make}
2589 cat > confinc << 'END'
2591 @echo this is the am__doit target
2594 # If we don't find an include directive, just comment out the code.
2595 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2596 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2600 # First try GNU make style include.
2601 echo "include confinc" > confmf
2602 # Ignore all kinds of additional output from `make'.
2603 case `$am_make -s -f confmf 2> /dev/null` in #(
2604 *the\ am__doit\ target*)
2610 # Now try BSD make style include.
2611 if test "$am__include" = "#"; then
2612 echo '.include "confinc"' > confmf
2613 case `$am_make -s -f confmf 2> /dev/null` in #(
2614 *the\ am__doit\ target*)
2615 am__include=.include
2623 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2624 $as_echo "$_am_result" >&6; }
2625 rm -f confinc confmf
2627 # Check whether --enable-dependency-tracking was given.
2628 if test "${enable_dependency_tracking+set}" = set; then
2629 enableval=$enable_dependency_tracking;
2632 if test "x$enable_dependency_tracking" != xno; then
2633 am_depcomp="$ac_aux_dir/depcomp"
2636 if test "x$enable_dependency_tracking" != xno; then
2646 # Check whether --enable-multilib was given.
2647 if test "${enable_multilib+set}" = set; then
2648 enableval=$enable_multilib; case "${enableval}" in
2649 yes) multilib=yes ;;
2651 *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
2652 $as_echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
2653 { (exit 1); exit 1; }; } ;;
2659 # Check whether --enable-target-optspace was given.
2660 if test "${enable_target_optspace+set}" = set; then
2661 enableval=$enable_target_optspace; case "${enableval}" in
2662 yes) target_optspace=yes ;;
2663 no) target_optspace=no ;;
2664 *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for target-optspace option" >&5
2665 $as_echo "$as_me: error: bad value ${enableval} for target-optspace option" >&2;}
2666 { (exit 1); exit 1; }; } ;;
2672 # Check whether --enable-malloc-debugging was given.
2673 if test "${enable_malloc_debugging+set}" = set; then
2674 enableval=$enable_malloc_debugging; case "${enableval}" in
2675 yes) malloc_debugging=yes ;;
2676 no) malloc_debugging=no ;;
2677 *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for malloc-debugging option" >&5
2678 $as_echo "$as_me: error: bad value ${enableval} for malloc-debugging option" >&2;}
2679 { (exit 1); exit 1; }; } ;;
2685 # Check whether --enable-newlib-multithread was given.
2686 if test "${enable_newlib_multithread+set}" = set; then
2687 enableval=$enable_newlib_multithread; case "${enableval}" in
2688 yes) newlib_multithread=yes ;;
2689 no) newlib_multithread=no ;;
2690 *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-multithread option" >&5
2691 $as_echo "$as_me: error: bad value ${enableval} for newlib-multithread option" >&2;}
2692 { (exit 1); exit 1; }; } ;;
2695 newlib_multithread=yes
2698 # Check whether --enable-newlib-iconv was given.
2699 if test "${enable_newlib_iconv+set}" = set; then
2700 enableval=$enable_newlib_iconv; if test "${newlib_iconv+set}" != set; then
2701 case "${enableval}" in
2702 yes) newlib_iconv=yes ;;
2703 no) newlib_iconv=no ;;
2704 *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv option" >&5
2705 $as_echo "$as_me: error: bad value ${enableval} for newlib-iconv option" >&2;}
2706 { (exit 1); exit 1; }; } ;;
2710 newlib_iconv=${newlib_iconv}
2713 # Check whether --enable-newlib-elix-level was given.
2714 if test "${enable_newlib_elix_level+set}" = set; then
2715 enableval=$enable_newlib_elix_level; case "${enableval}" in
2716 0) newlib_elix_level=0 ;;
2717 1) newlib_elix_level=1 ;;
2718 2) newlib_elix_level=2 ;;
2719 3) newlib_elix_level=3 ;;
2720 4) newlib_elix_level=4 ;;
2721 *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-elix-level option" >&5
2722 $as_echo "$as_me: error: bad value ${enableval} for newlib-elix-level option" >&2;}
2723 { (exit 1); exit 1; }; } ;;
2729 # Check whether --enable-newlib-io-float was given.
2730 if test "${enable_newlib_io_float+set}" = set; then
2731 enableval=$enable_newlib_io_float; case "${enableval}" in
2732 yes) newlib_io_float=yes ;;
2733 no) newlib_io_float=no ;;
2734 *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-float option" >&5
2735 $as_echo "$as_me: error: bad value ${enableval} for newlib-io-float option" >&2;}
2736 { (exit 1); exit 1; }; } ;;
2742 # Check whether --enable-newlib-supplied-syscalls was given.
2743 if test "${enable_newlib_supplied_syscalls+set}" = set; then
2744 enableval=$enable_newlib_supplied_syscalls; case "${enableval}" in
2745 yes) newlib_may_supply_syscalls=yes ;;
2746 no) newlib_may_supply_syscalls=no ;;
2747 *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-supplied-syscalls option" >&5
2748 $as_echo "$as_me: error: bad value ${enableval} for newlib-supplied-syscalls option" >&2;}
2749 { (exit 1); exit 1; }; } ;;
2752 newlib_may_supply_syscalls=yes
2755 if test x${newlib_may_supply_syscalls} = xyes; then
2756 MAY_SUPPLY_SYSCALLS_TRUE=
2757 MAY_SUPPLY_SYSCALLS_FALSE='#'
2759 MAY_SUPPLY_SYSCALLS_TRUE='#'
2760 MAY_SUPPLY_SYSCALLS_FALSE=
2765 test -z "${with_target_subdir}" && with_target_subdir=.
2767 if test "${srcdir}" = "."; then
2768 if test "${with_target_subdir}" != "."; then
2769 newlib_basedir="${srcdir}/${with_multisrctop}../../../.."
2771 newlib_basedir="${srcdir}/${with_multisrctop}../../.."
2774 newlib_basedir="${srcdir}/../../.."
2778 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2779 $as_echo_n "checking host system type... " >&6; }
2780 if test "${ac_cv_host+set}" = set; then
2781 $as_echo_n "(cached) " >&6
2783 if test "x$host_alias" = x; then
2784 ac_cv_host=$ac_cv_build
2786 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2787 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2788 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2789 { (exit 1); exit 1; }; }
2793 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2794 $as_echo "$ac_cv_host" >&6; }
2797 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2798 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2799 { (exit 1); exit 1; }; };;
2802 ac_save_IFS=$IFS; IFS='-'
2808 # Remember, the first character of IFS is used to create $*,
2809 # except with old shells:
2812 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2816 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2817 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2818 # is not polluted with repeated "-I."
2819 am__isrc=' -I$(srcdir)'
2820 # test to see if srcdir already configured
2821 if test -f $srcdir/config.status; then
2822 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2823 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2824 { (exit 1); exit 1; }; }
2828 # test whether we have cygpath
2829 if test -z "$CYGPATH_W"; then
2830 if (cygpath --version) >/dev/null 2>/dev/null; then
2831 CYGPATH_W='cygpath -w'
2838 # Define the identity of the package.
2843 # Some tools Automake needs.
2845 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2848 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2851 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2854 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2857 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2859 # We need awk for the "check" target. The system "awk" is bad on
2861 # Always define AMTAR for backward compatibility.
2863 AMTAR=${AMTAR-"${am_missing_run}tar"}
2865 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2872 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
2873 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
2874 # are probably using a cross compiler, which will not be able to fully
2875 # link an executable. This should really be fixed in autoconf
2884 # Extract the first word of "gcc", so it can be a program name with args.
2885 set dummy gcc; ac_word=$2
2886 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2887 $as_echo_n "checking for $ac_word... " >&6; }
2888 if test "${ac_cv_prog_CC+set}" = set; then
2889 $as_echo_n "(cached) " >&6
2891 if test -n "$CC"; then
2892 ac_cv_prog_CC="$CC" # Let the user override the test.
2894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898 test -z "$as_dir" && as_dir=.
2899 for ac_exec_ext in '' $ac_executable_extensions; do
2900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2902 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2912 if test -n "$CC"; then
2913 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2914 $as_echo "$CC" >&6; }
2916 { $as_echo "$as_me:$LINENO: result: no" >&5
2917 $as_echo "no" >&6; }
2922 depcc="$CC" am_compiler_list=
2924 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2925 $as_echo_n "checking dependency style of $depcc... " >&6; }
2926 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2927 $as_echo_n "(cached) " >&6
2929 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2930 # We make a subdir and do the tests there. Otherwise we can end up
2931 # making bogus files that we don't know about and never remove. For
2932 # instance it was reported that on HP-UX the gcc test will end up
2933 # making a dummy file named `D' -- because `-MD' means `put the output
2936 # Copy depcomp to subdir because otherwise we won't find it if we're
2937 # using a relative directory.
2938 cp "$am_depcomp" conftest.dir
2940 # We will build objects and dependencies in a subdirectory because
2941 # it helps to detect inapplicable dependency modes. For instance
2942 # both Tru64's cc and ICC support -MD to output dependencies as a
2943 # side effect of compilation, but ICC will put the dependencies in
2944 # the current directory while Tru64 will put them in the object
2948 am_cv_CC_dependencies_compiler_type=none
2949 if test "$am_compiler_list" = ""; then
2950 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2953 case " $depcc " in #(
2954 *\ -arch\ *\ -arch\ *) am__universal=true ;;
2957 for depmode in $am_compiler_list; do
2958 # Setup a source with many dependencies, because some compilers
2959 # like to wrap large dependency lists on column 80 (with \), and
2960 # we should not choose a depcomp mode which is confused by this.
2962 # We need to recreate these files for each test, as the compiler may
2963 # overwrite some of them when testing with obscure command lines.
2964 # This happens at least with the AIX C compiler.
2966 for i in 1 2 3 4 5 6; do
2967 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2968 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2969 # Solaris 8's {/usr,}/bin/sh.
2970 touch sub/conftst$i.h
2972 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2974 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2975 # mode. It turns out that the SunPro C++ compiler does not properly
2976 # handle `-M -o', and we need to detect this. Also, some Intel
2977 # versions had trouble with output in subdirs
2978 am__obj=sub/conftest.${OBJEXT-o}
2979 am__minus_obj="-o $am__obj"
2982 # This depmode causes a compiler race in universal mode.
2983 test "$am__universal" = false || continue
2986 # after this tag, mechanisms are not by side-effect, so they'll
2987 # only be used when explicitly requested
2988 if test "x$enable_dependency_tracking" = xyes; then
2994 msvisualcpp | msvcmsys)
2995 # This compiler won't grok `-c -o', but also, the minuso test has
2996 # not run yet. These depmodes are late enough in the game, and
2997 # so weak that their functioning should not be impacted.
2998 am__obj=conftest.${OBJEXT-o}
3003 if depmode=$depmode \
3004 source=sub/conftest.c object=$am__obj \
3005 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3006 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3007 >/dev/null 2>conftest.err &&
3008 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3009 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3010 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3011 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3012 # icc doesn't choke on unknown options, it will just issue warnings
3013 # or remarks (even with -Werror). So we grep stderr for any message
3014 # that says an option was ignored or not supported.
3015 # When given -MP, icc 7.0 and 7.1 complain thusly:
3016 # icc: Command line warning: ignoring option '-M'; no argument required
3017 # The diagnosis changed in icc 8.0:
3018 # icc: Command line remark: option '-MP' not supported
3019 if (grep 'ignoring option' conftest.err ||
3020 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3021 am_cv_CC_dependencies_compiler_type=$depmode
3030 am_cv_CC_dependencies_compiler_type=none
3034 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3035 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3036 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3039 test "x$enable_dependency_tracking" != xno \
3040 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3042 am__fastdepCC_FALSE='#'
3044 am__fastdepCC_TRUE='#'
3045 am__fastdepCC_FALSE=
3049 if test -z "$CC"; then
3050 # Extract the first word of "cc", so it can be a program name with args.
3051 set dummy cc; ac_word=$2
3052 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3053 $as_echo_n "checking for $ac_word... " >&6; }
3054 if test "${ac_cv_prog_CC+set}" = set; then
3055 $as_echo_n "(cached) " >&6
3057 if test -n "$CC"; then
3058 ac_cv_prog_CC="$CC" # Let the user override the test.
3061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065 test -z "$as_dir" && as_dir=.
3066 for ac_exec_ext in '' $ac_executable_extensions; do
3067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3068 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3069 ac_prog_rejected=yes
3073 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3080 if test $ac_prog_rejected = yes; then
3081 # We found a bogon in the path, so make sure we never use it.
3082 set dummy $ac_cv_prog_CC
3084 if test $# != 0; then
3085 # We chose a different compiler from the bogus one.
3086 # However, it has the same basename, so the bogon will be chosen
3087 # first if we set CC to just the basename; use the full file name.
3089 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3095 if test -n "$CC"; then
3096 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3097 $as_echo "$CC" >&6; }
3099 { $as_echo "$as_me:$LINENO: result: no" >&5
3100 $as_echo "no" >&6; }
3104 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
3105 $as_echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
3106 { (exit 1); exit 1; }; }
3109 { $as_echo "$as_me:$LINENO: checking whether we are using GNU C" >&5
3110 $as_echo_n "checking whether we are using GNU C... " >&6; }
3111 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3112 $as_echo_n "(cached) " >&6
3114 cat > conftest.c <<EOF
3119 if { ac_try='${CC-cc} -E conftest.c'
3120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3125 ac_cv_c_compiler_gnu=yes
3127 ac_cv_c_compiler_gnu=no
3130 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3131 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3133 if test $ac_cv_c_compiler_gnu = yes; then
3135 ac_test_CFLAGS="${CFLAGS+set}"
3136 ac_save_CFLAGS="$CFLAGS"
3137 ac_test_CFLAGS=${CFLAGS+set}
3138 ac_save_CFLAGS=$CFLAGS
3139 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3140 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3141 if test "${ac_cv_prog_cc_g+set}" = set; then
3142 $as_echo_n "(cached) " >&6
3144 ac_save_c_werror_flag=$ac_c_werror_flag
3145 ac_c_werror_flag=yes
3148 cat >conftest.$ac_ext <<_ACEOF
3151 cat confdefs.h >>conftest.$ac_ext
3152 cat >>conftest.$ac_ext <<_ACEOF
3153 /* end confdefs.h. */
3163 rm -f conftest.$ac_objext
3164 if { (ac_try="$ac_compile"
3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3170 $as_echo "$ac_try_echo") >&5
3171 (eval "$ac_compile") 2>conftest.er1
3173 grep -v '^ *+' conftest.er1 >conftest.err
3175 cat conftest.err >&5
3176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); } && {
3178 test -z "$ac_c_werror_flag" ||
3179 test ! -s conftest.err
3180 } && test -s conftest.$ac_objext; then
3183 $as_echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.$ac_ext >&5
3187 cat >conftest.$ac_ext <<_ACEOF
3190 cat confdefs.h >>conftest.$ac_ext
3191 cat >>conftest.$ac_ext <<_ACEOF
3192 /* end confdefs.h. */
3202 rm -f conftest.$ac_objext
3203 if { (ac_try="$ac_compile"
3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3209 $as_echo "$ac_try_echo") >&5
3210 (eval "$ac_compile") 2>conftest.er1
3212 grep -v '^ *+' conftest.er1 >conftest.err
3214 cat conftest.err >&5
3215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); } && {
3217 test -z "$ac_c_werror_flag" ||
3218 test ! -s conftest.err
3219 } && test -s conftest.$ac_objext; then
3222 $as_echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.$ac_ext >&5
3225 ac_c_werror_flag=$ac_save_c_werror_flag
3227 cat >conftest.$ac_ext <<_ACEOF
3230 cat confdefs.h >>conftest.$ac_ext
3231 cat >>conftest.$ac_ext <<_ACEOF
3232 /* end confdefs.h. */
3242 rm -f conftest.$ac_objext
3243 if { (ac_try="$ac_compile"
3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3249 $as_echo "$ac_try_echo") >&5
3250 (eval "$ac_compile") 2>conftest.er1
3252 grep -v '^ *+' conftest.er1 >conftest.err
3254 cat conftest.err >&5
3255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); } && {
3257 test -z "$ac_c_werror_flag" ||
3258 test ! -s conftest.err
3259 } && test -s conftest.$ac_objext; then
3262 $as_echo "$as_me: failed program was:" >&5
3263 sed 's/^/| /' conftest.$ac_ext >&5
3268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3275 ac_c_werror_flag=$ac_save_c_werror_flag
3277 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3278 $as_echo "$ac_cv_prog_cc_g" >&6; }
3279 if test "$ac_test_CFLAGS" = set; then
3280 CFLAGS=$ac_save_CFLAGS
3281 elif test $ac_cv_prog_cc_g = yes; then
3282 if test "$GCC" = yes; then
3288 if test "$GCC" = yes; then
3294 if test "$ac_test_CFLAGS" = set; then
3295 CFLAGS="$ac_save_CFLAGS"
3296 elif test $ac_cv_prog_cc_g = yes; then
3303 test "${CFLAGS+set}" = set || CFLAGS="-g"
3307 if test -n "$ac_tool_prefix"; then
3308 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3309 set dummy ${ac_tool_prefix}as; ac_word=$2
3310 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3311 $as_echo_n "checking for $ac_word... " >&6; }
3312 if test "${ac_cv_prog_AS+set}" = set; then
3313 $as_echo_n "(cached) " >&6
3315 if test -n "$AS"; then
3316 ac_cv_prog_AS="$AS" # Let the user override the test.
3318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322 test -z "$as_dir" && as_dir=.
3323 for ac_exec_ext in '' $ac_executable_extensions; do
3324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3325 ac_cv_prog_AS="${ac_tool_prefix}as"
3326 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3336 if test -n "$AS"; then
3337 { $as_echo "$as_me:$LINENO: result: $AS" >&5
3338 $as_echo "$AS" >&6; }
3340 { $as_echo "$as_me:$LINENO: result: no" >&5
3341 $as_echo "no" >&6; }
3346 if test -z "$ac_cv_prog_AS"; then
3348 # Extract the first word of "as", so it can be a program name with args.
3349 set dummy as; ac_word=$2
3350 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3351 $as_echo_n "checking for $ac_word... " >&6; }
3352 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3353 $as_echo_n "(cached) " >&6
3355 if test -n "$ac_ct_AS"; then
3356 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362 test -z "$as_dir" && as_dir=.
3363 for ac_exec_ext in '' $ac_executable_extensions; do
3364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3365 ac_cv_prog_ac_ct_AS="as"
3366 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3375 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3376 if test -n "$ac_ct_AS"; then
3377 { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3378 $as_echo "$ac_ct_AS" >&6; }
3380 { $as_echo "$as_me:$LINENO: result: no" >&5
3381 $as_echo "no" >&6; }
3384 if test "x$ac_ct_AS" = x; then
3387 case $cross_compiling:$ac_tool_warned in
3389 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3390 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3391 ac_tool_warned=yes ;;
3399 if test -n "$ac_tool_prefix"; then
3400 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3401 set dummy ${ac_tool_prefix}ar; ac_word=$2
3402 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3403 $as_echo_n "checking for $ac_word... " >&6; }
3404 if test "${ac_cv_prog_AR+set}" = set; then
3405 $as_echo_n "(cached) " >&6
3407 if test -n "$AR"; then
3408 ac_cv_prog_AR="$AR" # Let the user override the test.
3410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414 test -z "$as_dir" && as_dir=.
3415 for ac_exec_ext in '' $ac_executable_extensions; do
3416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3417 ac_cv_prog_AR="${ac_tool_prefix}ar"
3418 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3428 if test -n "$AR"; then
3429 { $as_echo "$as_me:$LINENO: result: $AR" >&5
3430 $as_echo "$AR" >&6; }
3432 { $as_echo "$as_me:$LINENO: result: no" >&5
3433 $as_echo "no" >&6; }
3438 if test -z "$ac_cv_prog_AR"; then
3440 # Extract the first word of "ar", so it can be a program name with args.
3441 set dummy ar; ac_word=$2
3442 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3443 $as_echo_n "checking for $ac_word... " >&6; }
3444 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3445 $as_echo_n "(cached) " >&6
3447 if test -n "$ac_ct_AR"; then
3448 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3454 test -z "$as_dir" && as_dir=.
3455 for ac_exec_ext in '' $ac_executable_extensions; do
3456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3457 ac_cv_prog_ac_ct_AR="ar"
3458 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3467 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3468 if test -n "$ac_ct_AR"; then
3469 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3470 $as_echo "$ac_ct_AR" >&6; }
3472 { $as_echo "$as_me:$LINENO: result: no" >&5
3473 $as_echo "no" >&6; }
3476 if test "x$ac_ct_AR" = x; then
3479 case $cross_compiling:$ac_tool_warned in
3481 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3482 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3483 ac_tool_warned=yes ;;
3491 if test -n "$ac_tool_prefix"; then
3492 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3493 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3494 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3495 $as_echo_n "checking for $ac_word... " >&6; }
3496 if test "${ac_cv_prog_RANLIB+set}" = set; then
3497 $as_echo_n "(cached) " >&6
3499 if test -n "$RANLIB"; then
3500 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506 test -z "$as_dir" && as_dir=.
3507 for ac_exec_ext in '' $ac_executable_extensions; do
3508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3509 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3510 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3519 RANLIB=$ac_cv_prog_RANLIB
3520 if test -n "$RANLIB"; then
3521 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3522 $as_echo "$RANLIB" >&6; }
3524 { $as_echo "$as_me:$LINENO: result: no" >&5
3525 $as_echo "no" >&6; }
3530 if test -z "$ac_cv_prog_RANLIB"; then
3531 ac_ct_RANLIB=$RANLIB
3532 # Extract the first word of "ranlib", so it can be a program name with args.
3533 set dummy ranlib; ac_word=$2
3534 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3535 $as_echo_n "checking for $ac_word... " >&6; }
3536 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3537 $as_echo_n "(cached) " >&6
3539 if test -n "$ac_ct_RANLIB"; then
3540 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 test -z "$as_dir" && as_dir=.
3547 for ac_exec_ext in '' $ac_executable_extensions; do
3548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3549 ac_cv_prog_ac_ct_RANLIB="ranlib"
3550 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3559 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3560 if test -n "$ac_ct_RANLIB"; then
3561 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3562 $as_echo "$ac_ct_RANLIB" >&6; }
3564 { $as_echo "$as_me:$LINENO: result: no" >&5
3565 $as_echo "no" >&6; }
3568 if test "x$ac_ct_RANLIB" = x; then
3571 case $cross_compiling:$ac_tool_warned in
3573 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3575 ac_tool_warned=yes ;;
3577 RANLIB=$ac_ct_RANLIB
3580 RANLIB="$ac_cv_prog_RANLIB"
3583 if test -n "$ac_tool_prefix"; then
3584 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
3585 set dummy ${ac_tool_prefix}readelf; ac_word=$2
3586 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3587 $as_echo_n "checking for $ac_word... " >&6; }
3588 if test "${ac_cv_prog_READELF+set}" = set; then
3589 $as_echo_n "(cached) " >&6
3591 if test -n "$READELF"; then
3592 ac_cv_prog_READELF="$READELF" # Let the user override the test.
3594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3598 test -z "$as_dir" && as_dir=.
3599 for ac_exec_ext in '' $ac_executable_extensions; do
3600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3601 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
3602 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3611 READELF=$ac_cv_prog_READELF
3612 if test -n "$READELF"; then
3613 { $as_echo "$as_me:$LINENO: result: $READELF" >&5
3614 $as_echo "$READELF" >&6; }
3616 { $as_echo "$as_me:$LINENO: result: no" >&5
3617 $as_echo "no" >&6; }
3622 if test -z "$ac_cv_prog_READELF"; then
3623 ac_ct_READELF=$READELF
3624 # Extract the first word of "readelf", so it can be a program name with args.
3625 set dummy readelf; ac_word=$2
3626 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3627 $as_echo_n "checking for $ac_word... " >&6; }
3628 if test "${ac_cv_prog_ac_ct_READELF+set}" = set; then
3629 $as_echo_n "(cached) " >&6
3631 if test -n "$ac_ct_READELF"; then
3632 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
3634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638 test -z "$as_dir" && as_dir=.
3639 for ac_exec_ext in '' $ac_executable_extensions; do
3640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3641 ac_cv_prog_ac_ct_READELF="readelf"
3642 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3651 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
3652 if test -n "$ac_ct_READELF"; then
3653 { $as_echo "$as_me:$LINENO: result: $ac_ct_READELF" >&5
3654 $as_echo "$ac_ct_READELF" >&6; }
3656 { $as_echo "$as_me:$LINENO: result: no" >&5
3657 $as_echo "no" >&6; }
3660 if test "x$ac_ct_READELF" = x; then
3663 case $cross_compiling:$ac_tool_warned in
3665 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3667 ac_tool_warned=yes ;;
3669 READELF=$ac_ct_READELF
3672 READELF="$ac_cv_prog_READELF"
3676 # Find a good install program. We prefer a C program (faster),
3677 # so one script is as good as another. But avoid the broken or
3678 # incompatible versions:
3679 # SysV /etc/install, /usr/sbin/install
3680 # SunOS /usr/etc/install
3681 # IRIX /sbin/install
3683 # AmigaOS /C/install, which installs bootblocks on floppy discs
3684 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3685 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3686 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3687 # OS/2's system install, which has a completely different semantic
3688 # ./install, which can be erroneously created by make from ./install.sh.
3689 # Reject install programs that cannot install multiple files.
3690 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3691 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3692 if test -z "$INSTALL"; then
3693 if test "${ac_cv_path_install+set}" = set; then
3694 $as_echo_n "(cached) " >&6
3696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700 test -z "$as_dir" && as_dir=.
3701 # Account for people who put trailing slashes in PATH elements.
3703 ./ | .// | /cC/* | \
3704 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3705 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3708 # OSF1 and SCO ODT 3.0 have their own names for install.
3709 # Don't use installbsd from OSF since it installs stuff as root
3711 for ac_prog in ginstall scoinst install; do
3712 for ac_exec_ext in '' $ac_executable_extensions; do
3713 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3714 if test $ac_prog = install &&
3715 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3716 # AIX install. It has an incompatible calling convention.
3718 elif test $ac_prog = install &&
3719 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3720 # program-specific install script used by HP pwplus--don't use.
3723 rm -rf conftest.one conftest.two conftest.dir
3724 echo one > conftest.one
3725 echo two > conftest.two
3727 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3728 test -s conftest.one && test -s conftest.two &&
3729 test -s conftest.dir/conftest.one &&
3730 test -s conftest.dir/conftest.two
3732 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3745 rm -rf conftest.one conftest.two conftest.dir
3748 if test "${ac_cv_path_install+set}" = set; then
3749 INSTALL=$ac_cv_path_install
3751 # As a last resort, use the slow shell script. Don't cache a
3752 # value for INSTALL within a source directory, because that will
3753 # break other packages using the cache if that directory is
3754 # removed, or if the value is a relative name.
3755 INSTALL=$ac_install_sh
3758 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3759 $as_echo "$INSTALL" >&6; }
3761 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3762 # It thinks the first close brace ends the variable substitution.
3763 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3765 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3767 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3770 # Hack to ensure that INSTALL won't be set to "../" with autoconf 2.13. */
3771 ac_given_INSTALL=$INSTALL
3774 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3775 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3776 # Check whether --enable-maintainer-mode was given.
3777 if test "${enable_maintainer_mode+set}" = set; then
3778 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3780 USE_MAINTAINER_MODE=no
3783 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3784 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3785 if test $USE_MAINTAINER_MODE = yes; then
3786 MAINTAINER_MODE_TRUE=
3787 MAINTAINER_MODE_FALSE='#'
3789 MAINTAINER_MODE_TRUE='#'
3790 MAINTAINER_MODE_FALSE=
3793 MAINT=$MAINTAINER_MODE_TRUE
3796 # By default we simply use the C compiler to build assembly code.
3798 test "${CCAS+set}" = set || CCAS=$CC
3799 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3804 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
3805 # at least currently, we never actually build a program, so we never
3806 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
3807 # fails, because we are probably configuring with a cross compiler
3808 # which can't create executables. So we include AC_EXEEXT to keep
3809 # automake happy, but we don't execute it, since we don't care about
3816 . ${newlib_basedir}/configure.host
3818 newlib_cflags="${newlib_cflags} -fno-builtin"
3820 NEWLIB_CFLAGS=${newlib_cflags}
3826 if test x${newlib_elix_level} = x0; then
3828 ELIX_LEVEL_0_FALSE='#'
3830 ELIX_LEVEL_0_TRUE='#'
3834 if test x${newlib_elix_level} = x1; then
3836 ELIX_LEVEL_1_FALSE='#'
3838 ELIX_LEVEL_1_TRUE='#'
3842 if test x${newlib_elix_level} = x2; then
3844 ELIX_LEVEL_2_FALSE='#'
3846 ELIX_LEVEL_2_TRUE='#'
3850 if test x${newlib_elix_level} = x3; then
3852 ELIX_LEVEL_3_FALSE='#'
3854 ELIX_LEVEL_3_TRUE='#'
3858 if test x${newlib_elix_level} = x4; then
3860 ELIX_LEVEL_4_FALSE='#'
3862 ELIX_LEVEL_4_TRUE='#'
3867 if test x${use_libtool} = xyes; then
3869 USE_LIBTOOL_FALSE='#'
3871 USE_LIBTOOL_TRUE='#'
3876 # Hard-code OBJEXT. Normally it is set by AC_OBJEXT, but we
3877 # use oext, which is set in configure.host based on the target platform.
3890 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3891 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3892 if test "${ac_cv_path_SED+set}" = set; then
3893 $as_echo_n "(cached) " >&6
3895 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3896 for ac_i in 1 2 3 4 5 6 7; do
3897 ac_script="$ac_script$as_nl$ac_script"
3899 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3900 $as_unset ac_script || ac_script=
3901 if test -z "$SED"; then
3902 ac_path_SED_found=false
3903 # Loop through the user's path and test for each of PROGNAME-LIST
3904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908 test -z "$as_dir" && as_dir=.
3909 for ac_prog in sed gsed; do
3910 for ac_exec_ext in '' $ac_executable_extensions; do
3911 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3912 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3913 # Check for GNU ac_path_SED and select it if it is found.
3914 # Check for GNU $ac_path_SED
3915 case `"$ac_path_SED" --version 2>&1` in
3917 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3920 $as_echo_n 0123456789 >"conftest.in"
3923 cat "conftest.in" "conftest.in" >"conftest.tmp"
3924 mv "conftest.tmp" "conftest.in"
3925 cp "conftest.in" "conftest.nl"
3926 $as_echo '' >> "conftest.nl"
3927 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3928 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3929 ac_count=`expr $ac_count + 1`
3930 if test $ac_count -gt ${ac_path_SED_max-0}; then
3931 # Best one so far, save it but keep looking for a better one
3932 ac_cv_path_SED="$ac_path_SED"
3933 ac_path_SED_max=$ac_count
3935 # 10*(2^10) chars as input seems more than enough
3936 test $ac_count -gt 10 && break
3938 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3941 $ac_path_SED_found && break 3
3946 if test -z "$ac_cv_path_SED"; then
3947 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3948 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3949 { (exit 1); exit 1; }; }
3956 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3957 $as_echo "$ac_cv_path_SED" >&6; }
3958 SED="$ac_cv_path_SED"
3961 test -z "$SED" && SED=sed
3962 Xsed="$SED -e 1s/^X//"
3974 for ac_prog in gawk mawk nawk awk
3976 # Extract the first word of "$ac_prog", so it can be a program name with args.
3977 set dummy $ac_prog; ac_word=$2
3978 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3979 $as_echo_n "checking for $ac_word... " >&6; }
3980 if test "${ac_cv_prog_AWK+set}" = set; then
3981 $as_echo_n "(cached) " >&6
3983 if test -n "$AWK"; then
3984 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 test -z "$as_dir" && as_dir=.
3991 for ac_exec_ext in '' $ac_executable_extensions; do
3992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3993 ac_cv_prog_AWK="$ac_prog"
3994 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4004 if test -n "$AWK"; then
4005 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
4006 $as_echo "$AWK" >&6; }
4008 { $as_echo "$as_me:$LINENO: result: no" >&5
4009 $as_echo "no" >&6; }
4013 test -n "$AWK" && break
4016 if test "${use_libtool}" = "yes"; then
4017 enable_win32_dll=yes
4020 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
4021 if test -n "$ac_tool_prefix"; then
4022 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4023 set dummy ${ac_tool_prefix}as; ac_word=$2
4024 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4025 $as_echo_n "checking for $ac_word... " >&6; }
4026 if test "${ac_cv_prog_AS+set}" = set; then
4027 $as_echo_n "(cached) " >&6
4029 if test -n "$AS"; then
4030 ac_cv_prog_AS="$AS" # Let the user override the test.
4032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4036 test -z "$as_dir" && as_dir=.
4037 for ac_exec_ext in '' $ac_executable_extensions; do
4038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4039 ac_cv_prog_AS="${ac_tool_prefix}as"
4040 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4050 if test -n "$AS"; then
4051 { $as_echo "$as_me:$LINENO: result: $AS" >&5
4052 $as_echo "$AS" >&6; }
4054 { $as_echo "$as_me:$LINENO: result: no" >&5
4055 $as_echo "no" >&6; }
4060 if test -z "$ac_cv_prog_AS"; then
4062 # Extract the first word of "as", so it can be a program name with args.
4063 set dummy as; ac_word=$2
4064 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4065 $as_echo_n "checking for $ac_word... " >&6; }
4066 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4067 $as_echo_n "(cached) " >&6
4069 if test -n "$ac_ct_AS"; then
4070 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076 test -z "$as_dir" && as_dir=.
4077 for ac_exec_ext in '' $ac_executable_extensions; do
4078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4079 ac_cv_prog_ac_ct_AS="as"
4080 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4089 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4090 if test -n "$ac_ct_AS"; then
4091 { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4092 $as_echo "$ac_ct_AS" >&6; }
4094 { $as_echo "$as_me:$LINENO: result: no" >&5
4095 $as_echo "no" >&6; }
4098 if test "x$ac_ct_AS" = x; then
4101 case $cross_compiling:$ac_tool_warned in
4103 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4104 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4105 ac_tool_warned=yes ;;
4113 if test -n "$ac_tool_prefix"; then
4114 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4115 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4116 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4117 $as_echo_n "checking for $ac_word... " >&6; }
4118 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4119 $as_echo_n "(cached) " >&6
4121 if test -n "$DLLTOOL"; then
4122 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128 test -z "$as_dir" && as_dir=.
4129 for ac_exec_ext in '' $ac_executable_extensions; do
4130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4131 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4132 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4141 DLLTOOL=$ac_cv_prog_DLLTOOL
4142 if test -n "$DLLTOOL"; then
4143 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4144 $as_echo "$DLLTOOL" >&6; }
4146 { $as_echo "$as_me:$LINENO: result: no" >&5
4147 $as_echo "no" >&6; }
4152 if test -z "$ac_cv_prog_DLLTOOL"; then
4153 ac_ct_DLLTOOL=$DLLTOOL
4154 # Extract the first word of "dlltool", so it can be a program name with args.
4155 set dummy dlltool; ac_word=$2
4156 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4157 $as_echo_n "checking for $ac_word... " >&6; }
4158 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4159 $as_echo_n "(cached) " >&6
4161 if test -n "$ac_ct_DLLTOOL"; then
4162 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168 test -z "$as_dir" && as_dir=.
4169 for ac_exec_ext in '' $ac_executable_extensions; do
4170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4171 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4172 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4181 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4182 if test -n "$ac_ct_DLLTOOL"; then
4183 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4184 $as_echo "$ac_ct_DLLTOOL" >&6; }
4186 { $as_echo "$as_me:$LINENO: result: no" >&5
4187 $as_echo "no" >&6; }
4190 if test "x$ac_ct_DLLTOOL" = x; then
4193 case $cross_compiling:$ac_tool_warned in
4195 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4196 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4197 ac_tool_warned=yes ;;
4199 DLLTOOL=$ac_ct_DLLTOOL
4202 DLLTOOL="$ac_cv_prog_DLLTOOL"
4205 if test -n "$ac_tool_prefix"; then
4206 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4207 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4208 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4209 $as_echo_n "checking for $ac_word... " >&6; }
4210 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4211 $as_echo_n "(cached) " >&6
4213 if test -n "$OBJDUMP"; then
4214 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220 test -z "$as_dir" && as_dir=.
4221 for ac_exec_ext in '' $ac_executable_extensions; do
4222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4223 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4224 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4233 OBJDUMP=$ac_cv_prog_OBJDUMP
4234 if test -n "$OBJDUMP"; then
4235 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4236 $as_echo "$OBJDUMP" >&6; }
4238 { $as_echo "$as_me:$LINENO: result: no" >&5
4239 $as_echo "no" >&6; }
4244 if test -z "$ac_cv_prog_OBJDUMP"; then
4245 ac_ct_OBJDUMP=$OBJDUMP
4246 # Extract the first word of "objdump", so it can be a program name with args.
4247 set dummy objdump; ac_word=$2
4248 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4249 $as_echo_n "checking for $ac_word... " >&6; }
4250 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4251 $as_echo_n "(cached) " >&6
4253 if test -n "$ac_ct_OBJDUMP"; then
4254 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4260 test -z "$as_dir" && as_dir=.
4261 for ac_exec_ext in '' $ac_executable_extensions; do
4262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4263 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4264 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4273 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4274 if test -n "$ac_ct_OBJDUMP"; then
4275 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4276 $as_echo "$ac_ct_OBJDUMP" >&6; }
4278 { $as_echo "$as_me:$LINENO: result: no" >&5
4279 $as_echo "no" >&6; }
4282 if test "x$ac_ct_OBJDUMP" = x; then
4285 case $cross_compiling:$ac_tool_warned in
4287 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4289 ac_tool_warned=yes ;;
4291 OBJDUMP=$ac_ct_OBJDUMP
4294 OBJDUMP="$ac_cv_prog_OBJDUMP"
4300 test -z "$AS" && AS=as
4306 test -z "$DLLTOOL" && DLLTOOL=dlltool
4312 test -z "$OBJDUMP" && OBJDUMP=objdump
4322 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4323 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4328 macro_version='2.2.6'
4329 macro_revision='1.3012'
4343 ltmain="$ac_aux_dir/ltmain.sh"
4346 ac_cpp='$CPP $CPPFLAGS'
4347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4350 if test -n "$ac_tool_prefix"; then
4351 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4352 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4353 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4354 $as_echo_n "checking for $ac_word... " >&6; }
4355 if test "${ac_cv_prog_CC+set}" = set; then
4356 $as_echo_n "(cached) " >&6
4358 if test -n "$CC"; then
4359 ac_cv_prog_CC="$CC" # Let the user override the test.
4361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365 test -z "$as_dir" && as_dir=.
4366 for ac_exec_ext in '' $ac_executable_extensions; do
4367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4368 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4369 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4379 if test -n "$CC"; then
4380 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4381 $as_echo "$CC" >&6; }
4383 { $as_echo "$as_me:$LINENO: result: no" >&5
4384 $as_echo "no" >&6; }
4389 if test -z "$ac_cv_prog_CC"; then
4391 # Extract the first word of "gcc", so it can be a program name with args.
4392 set dummy gcc; ac_word=$2
4393 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4394 $as_echo_n "checking for $ac_word... " >&6; }
4395 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4396 $as_echo_n "(cached) " >&6
4398 if test -n "$ac_ct_CC"; then
4399 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405 test -z "$as_dir" && as_dir=.
4406 for ac_exec_ext in '' $ac_executable_extensions; do
4407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4408 ac_cv_prog_ac_ct_CC="gcc"
4409 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4418 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4419 if test -n "$ac_ct_CC"; then
4420 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4421 $as_echo "$ac_ct_CC" >&6; }
4423 { $as_echo "$as_me:$LINENO: result: no" >&5
4424 $as_echo "no" >&6; }
4427 if test "x$ac_ct_CC" = x; then
4430 case $cross_compiling:$ac_tool_warned in
4432 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4434 ac_tool_warned=yes ;;
4442 if test -z "$CC"; then
4443 if test -n "$ac_tool_prefix"; then
4444 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4445 set dummy ${ac_tool_prefix}cc; ac_word=$2
4446 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4447 $as_echo_n "checking for $ac_word... " >&6; }
4448 if test "${ac_cv_prog_CC+set}" = set; then
4449 $as_echo_n "(cached) " >&6
4451 if test -n "$CC"; then
4452 ac_cv_prog_CC="$CC" # Let the user override the test.
4454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458 test -z "$as_dir" && as_dir=.
4459 for ac_exec_ext in '' $ac_executable_extensions; do
4460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4461 ac_cv_prog_CC="${ac_tool_prefix}cc"
4462 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4472 if test -n "$CC"; then
4473 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4474 $as_echo "$CC" >&6; }
4476 { $as_echo "$as_me:$LINENO: result: no" >&5
4477 $as_echo "no" >&6; }
4483 if test -z "$CC"; then
4484 # Extract the first word of "cc", so it can be a program name with args.
4485 set dummy cc; ac_word=$2
4486 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4487 $as_echo_n "checking for $ac_word... " >&6; }
4488 if test "${ac_cv_prog_CC+set}" = set; then
4489 $as_echo_n "(cached) " >&6
4491 if test -n "$CC"; then
4492 ac_cv_prog_CC="$CC" # Let the user override the test.
4495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499 test -z "$as_dir" && as_dir=.
4500 for ac_exec_ext in '' $ac_executable_extensions; do
4501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4502 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4503 ac_prog_rejected=yes
4507 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4514 if test $ac_prog_rejected = yes; then
4515 # We found a bogon in the path, so make sure we never use it.
4516 set dummy $ac_cv_prog_CC
4518 if test $# != 0; then
4519 # We chose a different compiler from the bogus one.
4520 # However, it has the same basename, so the bogon will be chosen
4521 # first if we set CC to just the basename; use the full file name.
4523 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4529 if test -n "$CC"; then
4530 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4531 $as_echo "$CC" >&6; }
4533 { $as_echo "$as_me:$LINENO: result: no" >&5
4534 $as_echo "no" >&6; }
4539 if test -z "$CC"; then
4540 if test -n "$ac_tool_prefix"; then
4541 for ac_prog in cl.exe
4543 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4544 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4545 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4546 $as_echo_n "checking for $ac_word... " >&6; }
4547 if test "${ac_cv_prog_CC+set}" = set; then
4548 $as_echo_n "(cached) " >&6
4550 if test -n "$CC"; then
4551 ac_cv_prog_CC="$CC" # Let the user override the test.
4553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557 test -z "$as_dir" && as_dir=.
4558 for ac_exec_ext in '' $ac_executable_extensions; do
4559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4560 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4561 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4571 if test -n "$CC"; then
4572 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4573 $as_echo "$CC" >&6; }
4575 { $as_echo "$as_me:$LINENO: result: no" >&5
4576 $as_echo "no" >&6; }
4580 test -n "$CC" && break
4583 if test -z "$CC"; then
4585 for ac_prog in cl.exe
4587 # Extract the first word of "$ac_prog", so it can be a program name with args.
4588 set dummy $ac_prog; ac_word=$2
4589 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4590 $as_echo_n "checking for $ac_word... " >&6; }
4591 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4592 $as_echo_n "(cached) " >&6
4594 if test -n "$ac_ct_CC"; then
4595 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601 test -z "$as_dir" && as_dir=.
4602 for ac_exec_ext in '' $ac_executable_extensions; do
4603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4604 ac_cv_prog_ac_ct_CC="$ac_prog"
4605 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4614 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4615 if test -n "$ac_ct_CC"; then
4616 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4617 $as_echo "$ac_ct_CC" >&6; }
4619 { $as_echo "$as_me:$LINENO: result: no" >&5
4620 $as_echo "no" >&6; }
4624 test -n "$ac_ct_CC" && break
4627 if test "x$ac_ct_CC" = x; then
4630 case $cross_compiling:$ac_tool_warned in
4632 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4633 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4634 ac_tool_warned=yes ;;
4643 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4644 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4645 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4646 See \`config.log' for more details." >&5
4647 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4648 See \`config.log' for more details." >&2;}
4649 { (exit 1); exit 1; }; }; }
4651 # Provide some information about the compiler.
4652 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4655 { (ac_try="$ac_compiler --version >&5"
4657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4658 *) ac_try_echo=$ac_try;;
4660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4661 $as_echo "$ac_try_echo") >&5
4662 (eval "$ac_compiler --version >&5") 2>&5
4664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); }
4666 { (ac_try="$ac_compiler -v >&5"
4668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4669 *) ac_try_echo=$ac_try;;
4671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4672 $as_echo "$ac_try_echo") >&5
4673 (eval "$ac_compiler -v >&5") 2>&5
4675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676 (exit $ac_status); }
4677 { (ac_try="$ac_compiler -V >&5"
4679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4680 *) ac_try_echo=$ac_try;;
4682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4683 $as_echo "$ac_try_echo") >&5
4684 (eval "$ac_compiler -V >&5") 2>&5
4686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); }
4689 cat >conftest.$ac_ext <<_ACEOF
4692 cat confdefs.h >>conftest.$ac_ext
4693 cat >>conftest.$ac_ext <<_ACEOF
4694 /* end confdefs.h. */
4704 ac_clean_files_save=$ac_clean_files
4705 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4706 # Try to create an executable without -o first, disregard a.out.
4707 # It will help us diagnose broken compilers, and finding out an intuition
4709 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4710 $as_echo_n "checking for C compiler default output file name... " >&6; }
4711 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4713 # The possible output files:
4714 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4717 for ac_file in $ac_files
4720 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4721 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4726 if { (ac_try="$ac_link_default"
4728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4729 *) ac_try_echo=$ac_try;;
4731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4732 $as_echo "$ac_try_echo") >&5
4733 (eval "$ac_link_default") 2>&5
4735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); }; then
4737 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4738 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4739 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4740 # so that the user can short-circuit this test for compilers unknown to
4742 for ac_file in $ac_files ''
4744 test -f "$ac_file" || continue
4746 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4749 # We found the default executable, but exeext='' is most
4753 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4755 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4757 # We set ac_cv_exeext here because the later test for it is not
4758 # safe: cross compilers may not add the suffix if given an `-o'
4759 # argument, so we may need to know it at that point already.
4760 # Even if this section looks crufty: it has the advantage of
4767 test "$ac_cv_exeext" = no && ac_cv_exeext=
4773 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
4774 $as_echo "$ac_file" >&6; }
4775 if test -z "$ac_file"; then
4776 $as_echo "$as_me: failed program was:" >&5
4777 sed 's/^/| /' conftest.$ac_ext >&5
4779 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4781 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
4782 See \`config.log' for more details." >&5
4783 $as_echo "$as_me: error: C compiler cannot create executables
4784 See \`config.log' for more details." >&2;}
4785 { (exit 77); exit 77; }; }; }
4788 ac_exeext=$ac_cv_exeext
4790 # Check that the compiler produces executables we can run. If not, either
4791 # the compiler is broken, or we cross compile.
4792 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4793 $as_echo_n "checking whether the C compiler works... " >&6; }
4794 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4795 # If not cross compiling, check that we can run a simple program.
4796 if test "$cross_compiling" != yes; then
4797 if { ac_try='./$ac_file'
4798 { (case "(($ac_try" in
4799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4800 *) ac_try_echo=$ac_try;;
4802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4803 $as_echo "$ac_try_echo") >&5
4804 (eval "$ac_try") 2>&5
4806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }; }; then
4810 if test "$cross_compiling" = maybe; then
4813 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4814 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4815 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
4816 If you meant to cross compile, use \`--host'.
4817 See \`config.log' for more details." >&5
4818 $as_echo "$as_me: error: cannot run C compiled programs.
4819 If you meant to cross compile, use \`--host'.
4820 See \`config.log' for more details." >&2;}
4821 { (exit 1); exit 1; }; }; }
4825 { $as_echo "$as_me:$LINENO: result: yes" >&5
4826 $as_echo "yes" >&6; }
4828 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4829 ac_clean_files=$ac_clean_files_save
4830 # Check that the compiler produces executables we can run. If not, either
4831 # the compiler is broken, or we cross compile.
4832 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4833 $as_echo_n "checking whether we are cross compiling... " >&6; }
4834 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
4835 $as_echo "$cross_compiling" >&6; }
4837 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
4838 $as_echo_n "checking for suffix of executables... " >&6; }
4839 if { (ac_try="$ac_link"
4841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4842 *) ac_try_echo=$ac_try;;
4844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4845 $as_echo "$ac_try_echo") >&5
4846 (eval "$ac_link") 2>&5
4848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); }; then
4850 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4851 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4852 # work properly (i.e., refer to `conftest.exe'), while it won't with
4854 for ac_file in conftest.exe conftest conftest.*; do
4855 test -f "$ac_file" || continue
4857 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4858 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4864 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4865 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4866 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4867 See \`config.log' for more details." >&5
4868 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4869 See \`config.log' for more details." >&2;}
4870 { (exit 1); exit 1; }; }; }
4873 rm -f conftest$ac_cv_exeext
4874 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4875 $as_echo "$ac_cv_exeext" >&6; }
4877 rm -f conftest.$ac_ext
4878 EXEEXT=$ac_cv_exeext
4880 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
4881 $as_echo_n "checking for suffix of object files... " >&6; }
4882 if test "${ac_cv_objext+set}" = set; then
4883 $as_echo_n "(cached) " >&6
4885 cat >conftest.$ac_ext <<_ACEOF
4888 cat confdefs.h >>conftest.$ac_ext
4889 cat >>conftest.$ac_ext <<_ACEOF
4890 /* end confdefs.h. */
4900 rm -f conftest.o conftest.obj
4901 if { (ac_try="$ac_compile"
4903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4904 *) ac_try_echo=$ac_try;;
4906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4907 $as_echo "$ac_try_echo") >&5
4908 (eval "$ac_compile") 2>&5
4910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); }; then
4912 for ac_file in conftest.o conftest.obj conftest.*; do
4913 test -f "$ac_file" || continue;
4915 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4916 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4921 $as_echo "$as_me: failed program was:" >&5
4922 sed 's/^/| /' conftest.$ac_ext >&5
4924 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4925 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4926 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4927 See \`config.log' for more details." >&5
4928 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
4929 See \`config.log' for more details." >&2;}
4930 { (exit 1); exit 1; }; }; }
4933 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4935 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4936 $as_echo "$ac_cv_objext" >&6; }
4937 OBJEXT=$ac_cv_objext
4939 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4940 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4941 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4942 $as_echo_n "(cached) " >&6
4944 cat >conftest.$ac_ext <<_ACEOF
4947 cat confdefs.h >>conftest.$ac_ext
4948 cat >>conftest.$ac_ext <<_ACEOF
4949 /* end confdefs.h. */
4962 rm -f conftest.$ac_objext
4963 if { (ac_try="$ac_compile"
4965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4966 *) ac_try_echo=$ac_try;;
4968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4969 $as_echo "$ac_try_echo") >&5
4970 (eval "$ac_compile") 2>conftest.er1
4972 grep -v '^ *+' conftest.er1 >conftest.err
4974 cat conftest.err >&5
4975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); } && {
4977 test -z "$ac_c_werror_flag" ||
4978 test ! -s conftest.err
4979 } && test -s conftest.$ac_objext; then
4982 $as_echo "$as_me: failed program was:" >&5
4983 sed 's/^/| /' conftest.$ac_ext >&5
4988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4989 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4992 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4993 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4994 if test $ac_compiler_gnu = yes; then
4999 ac_test_CFLAGS=${CFLAGS+set}
5000 ac_save_CFLAGS=$CFLAGS
5001 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5002 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5003 if test "${ac_cv_prog_cc_g+set}" = set; then
5004 $as_echo_n "(cached) " >&6
5006 ac_save_c_werror_flag=$ac_c_werror_flag
5007 ac_c_werror_flag=yes
5010 cat >conftest.$ac_ext <<_ACEOF
5013 cat confdefs.h >>conftest.$ac_ext
5014 cat >>conftest.$ac_ext <<_ACEOF
5015 /* end confdefs.h. */
5025 rm -f conftest.$ac_objext
5026 if { (ac_try="$ac_compile"
5028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5029 *) ac_try_echo=$ac_try;;
5031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5032 $as_echo "$ac_try_echo") >&5
5033 (eval "$ac_compile") 2>conftest.er1
5035 grep -v '^ *+' conftest.er1 >conftest.err
5037 cat conftest.err >&5
5038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); } && {
5040 test -z "$ac_c_werror_flag" ||
5041 test ! -s conftest.err
5042 } && test -s conftest.$ac_objext; then
5045 $as_echo "$as_me: failed program was:" >&5
5046 sed 's/^/| /' conftest.$ac_ext >&5
5049 cat >conftest.$ac_ext <<_ACEOF
5052 cat confdefs.h >>conftest.$ac_ext
5053 cat >>conftest.$ac_ext <<_ACEOF
5054 /* end confdefs.h. */
5064 rm -f conftest.$ac_objext
5065 if { (ac_try="$ac_compile"
5067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5068 *) ac_try_echo=$ac_try;;
5070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5071 $as_echo "$ac_try_echo") >&5
5072 (eval "$ac_compile") 2>conftest.er1
5074 grep -v '^ *+' conftest.er1 >conftest.err
5076 cat conftest.err >&5
5077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); } && {
5079 test -z "$ac_c_werror_flag" ||
5080 test ! -s conftest.err
5081 } && test -s conftest.$ac_objext; then
5084 $as_echo "$as_me: failed program was:" >&5
5085 sed 's/^/| /' conftest.$ac_ext >&5
5087 ac_c_werror_flag=$ac_save_c_werror_flag
5089 cat >conftest.$ac_ext <<_ACEOF
5092 cat confdefs.h >>conftest.$ac_ext
5093 cat >>conftest.$ac_ext <<_ACEOF
5094 /* end confdefs.h. */
5104 rm -f conftest.$ac_objext
5105 if { (ac_try="$ac_compile"
5107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5108 *) ac_try_echo=$ac_try;;
5110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5111 $as_echo "$ac_try_echo") >&5
5112 (eval "$ac_compile") 2>conftest.er1
5114 grep -v '^ *+' conftest.er1 >conftest.err
5116 cat conftest.err >&5
5117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); } && {
5119 test -z "$ac_c_werror_flag" ||
5120 test ! -s conftest.err
5121 } && test -s conftest.$ac_objext; then
5124 $as_echo "$as_me: failed program was:" >&5
5125 sed 's/^/| /' conftest.$ac_ext >&5
5130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5137 ac_c_werror_flag=$ac_save_c_werror_flag
5139 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5140 $as_echo "$ac_cv_prog_cc_g" >&6; }
5141 if test "$ac_test_CFLAGS" = set; then
5142 CFLAGS=$ac_save_CFLAGS
5143 elif test $ac_cv_prog_cc_g = yes; then
5144 if test "$GCC" = yes; then
5150 if test "$GCC" = yes; then
5156 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5157 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5158 if test "${ac_cv_prog_cc_c89+set}" = set; then
5159 $as_echo_n "(cached) " >&6
5161 ac_cv_prog_cc_c89=no
5163 cat >conftest.$ac_ext <<_ACEOF
5166 cat confdefs.h >>conftest.$ac_ext
5167 cat >>conftest.$ac_ext <<_ACEOF
5168 /* end confdefs.h. */
5171 #include <sys/types.h>
5172 #include <sys/stat.h>
5173 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5174 struct buf { int x; };
5175 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5176 static char *e (p, i)
5182 static char *f (char * (*g) (char **, int), char **p, ...)
5187 s = g (p, va_arg (v,int));
5192 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5193 function prototypes and stuff, but not '\xHH' hex character constants.
5194 These don't provoke an error unfortunately, instead are silently treated
5195 as 'x'. The following induces an error, until -std is added to get
5196 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5197 array size at least. It's necessary to write '\x00'==0 to get something
5198 that's true only with -std. */
5199 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5201 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5202 inside strings and character constants. */
5204 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5206 int test (int i, double x);
5207 struct s1 {int (*f) (int a);};
5208 struct s2 {int (*f) (double a);};
5209 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5215 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5220 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5221 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5223 CC="$ac_save_CC $ac_arg"
5224 rm -f conftest.$ac_objext
5225 if { (ac_try="$ac_compile"
5227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5228 *) ac_try_echo=$ac_try;;
5230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5231 $as_echo "$ac_try_echo") >&5
5232 (eval "$ac_compile") 2>conftest.er1
5234 grep -v '^ *+' conftest.er1 >conftest.err
5236 cat conftest.err >&5
5237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); } && {
5239 test -z "$ac_c_werror_flag" ||
5240 test ! -s conftest.err
5241 } && test -s conftest.$ac_objext; then
5242 ac_cv_prog_cc_c89=$ac_arg
5244 $as_echo "$as_me: failed program was:" >&5
5245 sed 's/^/| /' conftest.$ac_ext >&5
5250 rm -f core conftest.err conftest.$ac_objext
5251 test "x$ac_cv_prog_cc_c89" != "xno" && break
5253 rm -f conftest.$ac_ext
5258 case "x$ac_cv_prog_cc_c89" in
5260 { $as_echo "$as_me:$LINENO: result: none needed" >&5
5261 $as_echo "none needed" >&6; } ;;
5263 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5264 $as_echo "unsupported" >&6; } ;;
5266 CC="$CC $ac_cv_prog_cc_c89"
5267 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5268 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5273 ac_cpp='$CPP $CPPFLAGS'
5274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5278 depcc="$CC" am_compiler_list=
5280 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5281 $as_echo_n "checking dependency style of $depcc... " >&6; }
5282 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5283 $as_echo_n "(cached) " >&6
5285 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5286 # We make a subdir and do the tests there. Otherwise we can end up
5287 # making bogus files that we don't know about and never remove. For
5288 # instance it was reported that on HP-UX the gcc test will end up
5289 # making a dummy file named `D' -- because `-MD' means `put the output
5292 # Copy depcomp to subdir because otherwise we won't find it if we're
5293 # using a relative directory.
5294 cp "$am_depcomp" conftest.dir
5296 # We will build objects and dependencies in a subdirectory because
5297 # it helps to detect inapplicable dependency modes. For instance
5298 # both Tru64's cc and ICC support -MD to output dependencies as a
5299 # side effect of compilation, but ICC will put the dependencies in
5300 # the current directory while Tru64 will put them in the object
5304 am_cv_CC_dependencies_compiler_type=none
5305 if test "$am_compiler_list" = ""; then
5306 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5309 case " $depcc " in #(
5310 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5313 for depmode in $am_compiler_list; do
5314 # Setup a source with many dependencies, because some compilers
5315 # like to wrap large dependency lists on column 80 (with \), and
5316 # we should not choose a depcomp mode which is confused by this.
5318 # We need to recreate these files for each test, as the compiler may
5319 # overwrite some of them when testing with obscure command lines.
5320 # This happens at least with the AIX C compiler.
5322 for i in 1 2 3 4 5 6; do
5323 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5324 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5325 # Solaris 8's {/usr,}/bin/sh.
5326 touch sub/conftst$i.h
5328 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5330 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5331 # mode. It turns out that the SunPro C++ compiler does not properly
5332 # handle `-M -o', and we need to detect this. Also, some Intel
5333 # versions had trouble with output in subdirs
5334 am__obj=sub/conftest.${OBJEXT-o}
5335 am__minus_obj="-o $am__obj"
5338 # This depmode causes a compiler race in universal mode.
5339 test "$am__universal" = false || continue
5342 # after this tag, mechanisms are not by side-effect, so they'll
5343 # only be used when explicitly requested
5344 if test "x$enable_dependency_tracking" = xyes; then
5350 msvisualcpp | msvcmsys)
5351 # This compiler won't grok `-c -o', but also, the minuso test has
5352 # not run yet. These depmodes are late enough in the game, and
5353 # so weak that their functioning should not be impacted.
5354 am__obj=conftest.${OBJEXT-o}
5359 if depmode=$depmode \
5360 source=sub/conftest.c object=$am__obj \
5361 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5362 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5363 >/dev/null 2>conftest.err &&
5364 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5365 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5366 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5367 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5368 # icc doesn't choke on unknown options, it will just issue warnings
5369 # or remarks (even with -Werror). So we grep stderr for any message
5370 # that says an option was ignored or not supported.
5371 # When given -MP, icc 7.0 and 7.1 complain thusly:
5372 # icc: Command line warning: ignoring option '-M'; no argument required
5373 # The diagnosis changed in icc 8.0:
5374 # icc: Command line remark: option '-MP' not supported
5375 if (grep 'ignoring option' conftest.err ||
5376 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5377 am_cv_CC_dependencies_compiler_type=$depmode
5386 am_cv_CC_dependencies_compiler_type=none
5390 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5391 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5392 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5395 test "x$enable_dependency_tracking" != xno \
5396 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5398 am__fastdepCC_FALSE='#'
5400 am__fastdepCC_TRUE='#'
5401 am__fastdepCC_FALSE=
5405 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5406 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5407 if test "${ac_cv_path_GREP+set}" = set; then
5408 $as_echo_n "(cached) " >&6
5410 if test -z "$GREP"; then
5411 ac_path_GREP_found=false
5412 # Loop through the user's path and test for each of PROGNAME-LIST
5413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5414 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5417 test -z "$as_dir" && as_dir=.
5418 for ac_prog in grep ggrep; do
5419 for ac_exec_ext in '' $ac_executable_extensions; do
5420 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5421 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5422 # Check for GNU ac_path_GREP and select it if it is found.
5423 # Check for GNU $ac_path_GREP
5424 case `"$ac_path_GREP" --version 2>&1` in
5426 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5429 $as_echo_n 0123456789 >"conftest.in"
5432 cat "conftest.in" "conftest.in" >"conftest.tmp"
5433 mv "conftest.tmp" "conftest.in"
5434 cp "conftest.in" "conftest.nl"
5435 $as_echo 'GREP' >> "conftest.nl"
5436 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5437 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5438 ac_count=`expr $ac_count + 1`
5439 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5440 # Best one so far, save it but keep looking for a better one
5441 ac_cv_path_GREP="$ac_path_GREP"
5442 ac_path_GREP_max=$ac_count
5444 # 10*(2^10) chars as input seems more than enough
5445 test $ac_count -gt 10 && break
5447 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5450 $ac_path_GREP_found && break 3
5455 if test -z "$ac_cv_path_GREP"; then
5456 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5457 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5458 { (exit 1); exit 1; }; }
5461 ac_cv_path_GREP=$GREP
5465 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5466 $as_echo "$ac_cv_path_GREP" >&6; }
5467 GREP="$ac_cv_path_GREP"
5470 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5471 $as_echo_n "checking for egrep... " >&6; }
5472 if test "${ac_cv_path_EGREP+set}" = set; then
5473 $as_echo_n "(cached) " >&6
5475 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5476 then ac_cv_path_EGREP="$GREP -E"
5478 if test -z "$EGREP"; then
5479 ac_path_EGREP_found=false
5480 # Loop through the user's path and test for each of PROGNAME-LIST
5481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5482 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5485 test -z "$as_dir" && as_dir=.
5486 for ac_prog in egrep; do
5487 for ac_exec_ext in '' $ac_executable_extensions; do
5488 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5489 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5490 # Check for GNU ac_path_EGREP and select it if it is found.
5491 # Check for GNU $ac_path_EGREP
5492 case `"$ac_path_EGREP" --version 2>&1` in
5494 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5497 $as_echo_n 0123456789 >"conftest.in"
5500 cat "conftest.in" "conftest.in" >"conftest.tmp"
5501 mv "conftest.tmp" "conftest.in"
5502 cp "conftest.in" "conftest.nl"
5503 $as_echo 'EGREP' >> "conftest.nl"
5504 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5505 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5506 ac_count=`expr $ac_count + 1`
5507 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5508 # Best one so far, save it but keep looking for a better one
5509 ac_cv_path_EGREP="$ac_path_EGREP"
5510 ac_path_EGREP_max=$ac_count
5512 # 10*(2^10) chars as input seems more than enough
5513 test $ac_count -gt 10 && break
5515 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5518 $ac_path_EGREP_found && break 3
5523 if test -z "$ac_cv_path_EGREP"; then
5524 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5525 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5526 { (exit 1); exit 1; }; }
5529 ac_cv_path_EGREP=$EGREP
5534 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5535 $as_echo "$ac_cv_path_EGREP" >&6; }
5536 EGREP="$ac_cv_path_EGREP"
5539 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5540 $as_echo_n "checking for fgrep... " >&6; }
5541 if test "${ac_cv_path_FGREP+set}" = set; then
5542 $as_echo_n "(cached) " >&6
5544 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5545 then ac_cv_path_FGREP="$GREP -F"
5547 if test -z "$FGREP"; then
5548 ac_path_FGREP_found=false
5549 # Loop through the user's path and test for each of PROGNAME-LIST
5550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5551 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5554 test -z "$as_dir" && as_dir=.
5555 for ac_prog in fgrep; do
5556 for ac_exec_ext in '' $ac_executable_extensions; do
5557 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5558 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5559 # Check for GNU ac_path_FGREP and select it if it is found.
5560 # Check for GNU $ac_path_FGREP
5561 case `"$ac_path_FGREP" --version 2>&1` in
5563 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5566 $as_echo_n 0123456789 >"conftest.in"
5569 cat "conftest.in" "conftest.in" >"conftest.tmp"
5570 mv "conftest.tmp" "conftest.in"
5571 cp "conftest.in" "conftest.nl"
5572 $as_echo 'FGREP' >> "conftest.nl"
5573 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5574 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5575 ac_count=`expr $ac_count + 1`
5576 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5577 # Best one so far, save it but keep looking for a better one
5578 ac_cv_path_FGREP="$ac_path_FGREP"
5579 ac_path_FGREP_max=$ac_count
5581 # 10*(2^10) chars as input seems more than enough
5582 test $ac_count -gt 10 && break
5584 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5587 $ac_path_FGREP_found && break 3
5592 if test -z "$ac_cv_path_FGREP"; then
5593 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5594 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5595 { (exit 1); exit 1; }; }
5598 ac_cv_path_FGREP=$FGREP
5603 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5604 $as_echo "$ac_cv_path_FGREP" >&6; }
5605 FGREP="$ac_cv_path_FGREP"
5608 test -z "$GREP" && GREP=grep
5628 # Check whether --with-gnu-ld was given.
5629 if test "${with_gnu_ld+set}" = set; then
5630 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5636 if test "$GCC" = yes; then
5637 # Check if gcc -print-prog-name=ld gives a path.
5638 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5639 $as_echo_n "checking for ld used by $CC... " >&6; }
5642 # gcc leaves a trailing carriage return which upsets mingw
5643 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5645 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5648 # Accept absolute paths.
5650 re_direlt='/[^/][^/]*/\.\./'
5651 # Canonicalize the pathname of ld
5652 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5653 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5654 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5656 test -z "$LD" && LD="$ac_prog"
5659 # If it fails, then pretend we aren't using GCC.
5663 # If it is relative, then search for the first ld in PATH.
5667 elif test "$with_gnu_ld" = yes; then
5668 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5669 $as_echo_n "checking for GNU ld... " >&6; }
5671 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5672 $as_echo_n "checking for non-GNU ld... " >&6; }
5674 if test "${lt_cv_path_LD+set}" = set; then
5675 $as_echo_n "(cached) " >&6
5677 if test -z "$LD"; then
5678 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5679 for ac_dir in $PATH; do
5681 test -z "$ac_dir" && ac_dir=.
5682 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5683 lt_cv_path_LD="$ac_dir/$ac_prog"
5684 # Check to see if the program is GNU ld. I'd rather use --version,
5685 # but apparently some variants of GNU ld only accept -v.
5686 # Break only if it was the GNU/non-GNU ld that we prefer.
5687 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5688 *GNU* | *'with BFD'*)
5689 test "$with_gnu_ld" != no && break
5692 test "$with_gnu_ld" != yes && break
5699 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5704 if test -n "$LD"; then
5705 { $as_echo "$as_me:$LINENO: result: $LD" >&5
5706 $as_echo "$LD" >&6; }
5708 { $as_echo "$as_me:$LINENO: result: no" >&5
5709 $as_echo "no" >&6; }
5711 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5712 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5713 { (exit 1); exit 1; }; }
5714 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5715 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5716 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5717 $as_echo_n "(cached) " >&6
5719 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5720 case `$LD -v 2>&1 </dev/null` in
5721 *GNU* | *'with BFD'*)
5722 lt_cv_prog_gnu_ld=yes
5725 lt_cv_prog_gnu_ld=no
5729 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5730 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5731 with_gnu_ld=$lt_cv_prog_gnu_ld
5741 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5742 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5743 if test "${lt_cv_path_NM+set}" = set; then
5744 $as_echo_n "(cached) " >&6
5746 if test -n "$NM"; then
5747 # Let the user override the test.
5750 lt_nm_to_check="${ac_tool_prefix}nm"
5751 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5752 lt_nm_to_check="$lt_nm_to_check nm"
5754 for lt_tmp_nm in $lt_nm_to_check; do
5755 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5756 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5758 test -z "$ac_dir" && ac_dir=.
5759 tmp_nm="$ac_dir/$lt_tmp_nm"
5760 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5761 # Check to see if the nm accepts a BSD-compat flag.
5762 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5763 # nm: unknown option "B" ignored
5764 # Tru64's nm complains that /dev/null is an invalid object file
5765 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5766 */dev/null* | *'Invalid file or object type'*)
5767 lt_cv_path_NM="$tmp_nm -B"
5771 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5773 lt_cv_path_NM="$tmp_nm -p"
5777 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5778 continue # so that we can try to find one that supports BSD flags
5787 : ${lt_cv_path_NM=no}
5790 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5791 $as_echo "$lt_cv_path_NM" >&6; }
5792 if test "$lt_cv_path_NM" != "no"; then
5795 # Didn't find any BSD compatible name lister, look for dumpbin.
5796 if test -n "$ac_tool_prefix"; then
5797 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5799 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5800 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5801 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5802 $as_echo_n "checking for $ac_word... " >&6; }
5803 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5804 $as_echo_n "(cached) " >&6
5806 if test -n "$DUMPBIN"; then
5807 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813 test -z "$as_dir" && as_dir=.
5814 for ac_exec_ext in '' $ac_executable_extensions; do
5815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5816 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5817 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5826 DUMPBIN=$ac_cv_prog_DUMPBIN
5827 if test -n "$DUMPBIN"; then
5828 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5829 $as_echo "$DUMPBIN" >&6; }
5831 { $as_echo "$as_me:$LINENO: result: no" >&5
5832 $as_echo "no" >&6; }
5836 test -n "$DUMPBIN" && break
5839 if test -z "$DUMPBIN"; then
5840 ac_ct_DUMPBIN=$DUMPBIN
5841 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5843 # Extract the first word of "$ac_prog", so it can be a program name with args.
5844 set dummy $ac_prog; ac_word=$2
5845 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5846 $as_echo_n "checking for $ac_word... " >&6; }
5847 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5848 $as_echo_n "(cached) " >&6
5850 if test -n "$ac_ct_DUMPBIN"; then
5851 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857 test -z "$as_dir" && as_dir=.
5858 for ac_exec_ext in '' $ac_executable_extensions; do
5859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5860 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5861 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5870 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5871 if test -n "$ac_ct_DUMPBIN"; then
5872 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5873 $as_echo "$ac_ct_DUMPBIN" >&6; }
5875 { $as_echo "$as_me:$LINENO: result: no" >&5
5876 $as_echo "no" >&6; }
5880 test -n "$ac_ct_DUMPBIN" && break
5883 if test "x$ac_ct_DUMPBIN" = x; then
5886 case $cross_compiling:$ac_tool_warned in
5888 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5890 ac_tool_warned=yes ;;
5892 DUMPBIN=$ac_ct_DUMPBIN
5897 if test "$DUMPBIN" != ":"; then
5901 test -z "$NM" && NM=nm
5908 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5909 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5910 if test "${lt_cv_nm_interface+set}" = set; then
5911 $as_echo_n "(cached) " >&6
5913 lt_cv_nm_interface="BSD nm"
5914 echo "int some_variable = 0;" > conftest.$ac_ext
5915 (eval echo "\"\$as_me:5915: $ac_compile\"" >&5)
5916 (eval "$ac_compile" 2>conftest.err)
5917 cat conftest.err >&5
5918 (eval echo "\"\$as_me:5918: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5919 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5920 cat conftest.err >&5
5921 (eval echo "\"\$as_me:5921: output\"" >&5)
5922 cat conftest.out >&5
5923 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5924 lt_cv_nm_interface="MS dumpbin"
5928 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5929 $as_echo "$lt_cv_nm_interface" >&6; }
5931 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5932 $as_echo_n "checking whether ln -s works... " >&6; }
5934 if test "$LN_S" = "ln -s"; then
5935 { $as_echo "$as_me:$LINENO: result: yes" >&5
5936 $as_echo "yes" >&6; }
5938 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5939 $as_echo "no, using $LN_S" >&6; }
5942 # find the maximum length of command line arguments
5943 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5944 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5945 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5946 $as_echo_n "(cached) " >&6
5953 # On DJGPP, this test can blow up pretty badly due to problems in libc
5954 # (any single argument exceeding 2000 bytes causes a buffer overrun
5955 # during glob expansion). Even if it were fixed, the result of this
5956 # check would be larger than it should be.
5957 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5961 # Under GNU Hurd, this test is not required because there is
5962 # no limit to the length of command line arguments.
5963 # Libtool will interpret -1 as no limit whatsoever
5964 lt_cv_sys_max_cmd_len=-1;
5967 cygwin* | mingw* | cegcc*)
5968 # On Win9x/ME, this test blows up -- it succeeds, but takes
5969 # about 5 minutes as the teststring grows exponentially.
5970 # Worse, since 9x/ME are not pre-emptively multitasking,
5971 # you end up with a "frozen" computer, even though with patience
5972 # the test eventually succeeds (with a max line length of 256k).
5973 # Instead, let's just punt: use the minimum linelength reported by
5974 # all of the supported platforms: 8192 (on NT/2K/XP).
5975 lt_cv_sys_max_cmd_len=8192;
5979 # On AmigaOS with pdksh, this test takes hours, literally.
5980 # So we just punt and use a minimum line length of 8192.
5981 lt_cv_sys_max_cmd_len=8192;
5984 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5985 # This has been around since 386BSD, at least. Likely further.
5986 if test -x /sbin/sysctl; then
5987 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5988 elif test -x /usr/sbin/sysctl; then
5989 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5991 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5993 # And add a safety zone
5994 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5995 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5999 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6000 lt_cv_sys_max_cmd_len=196608
6004 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6005 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6006 # nice to cause kernel panics so lets avoid the loop below.
6007 # First set a reasonable default.
6008 lt_cv_sys_max_cmd_len=16384
6010 if test -x /sbin/sysconfig; then
6011 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6012 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6017 lt_cv_sys_max_cmd_len=102400
6019 sysv5* | sco5v6* | sysv4.2uw2*)
6020 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6021 if test -n "$kargmax"; then
6022 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6024 lt_cv_sys_max_cmd_len=32768
6028 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6029 if test -n "$lt_cv_sys_max_cmd_len"; then
6030 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6031 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6033 # Make teststring a little bigger before we do anything with it.
6034 # a 1K string should be a reasonable start.
6035 for i in 1 2 3 4 5 6 7 8 ; do
6036 teststring=$teststring$teststring
6038 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6039 # If test is not a shell built-in, we'll probably end up computing a
6040 # maximum length that is only half of the actual maximum length, but
6042 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6043 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6044 test $i != 17 # 1/2 MB should be enough
6047 teststring=$teststring$teststring
6049 # Only check the string length outside the loop.
6050 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6052 # Add a significant safety factor because C++ compilers can tack on
6053 # massive amounts of additional arguments before passing them to the
6054 # linker. It appears as though 1/2 is a usable value.
6055 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6062 if test -n $lt_cv_sys_max_cmd_len ; then
6063 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6064 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6066 { $as_echo "$as_me:$LINENO: result: none" >&5
6067 $as_echo "none" >&6; }
6069 max_cmd_len=$lt_cv_sys_max_cmd_len
6080 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6081 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6082 # Try some XSI features
6085 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6087 && eval 'test $(( 1 + 1 )) -eq 2 \
6088 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6090 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
6091 $as_echo "$xsi_shell" >&6; }
6094 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6095 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6097 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6099 && lt_shell_append=yes
6100 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6101 $as_echo "$lt_shell_append" >&6; }
6104 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6114 # test EBCDIC or ASCII
6115 case `echo X|tr X '\101'` in
6116 A) # ASCII based system
6117 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6118 lt_SP2NL='tr \040 \012'
6119 lt_NL2SP='tr \015\012 \040\040'
6121 *) # EBCDIC based system
6122 lt_SP2NL='tr \100 \n'
6123 lt_NL2SP='tr \r\n \100\100'
6135 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6136 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6137 if test "${lt_cv_ld_reload_flag+set}" = set; then
6138 $as_echo_n "(cached) " >&6
6140 lt_cv_ld_reload_flag='-r'
6142 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6143 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6144 reload_flag=$lt_cv_ld_reload_flag
6145 case $reload_flag in
6147 *) reload_flag=" $reload_flag" ;;
6149 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6152 if test "$GCC" = yes; then
6153 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6155 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6168 if test -n "$ac_tool_prefix"; then
6169 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6170 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6171 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6172 $as_echo_n "checking for $ac_word... " >&6; }
6173 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6174 $as_echo_n "(cached) " >&6
6176 if test -n "$OBJDUMP"; then
6177 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6183 test -z "$as_dir" && as_dir=.
6184 for ac_exec_ext in '' $ac_executable_extensions; do
6185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6186 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6187 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6196 OBJDUMP=$ac_cv_prog_OBJDUMP
6197 if test -n "$OBJDUMP"; then
6198 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6199 $as_echo "$OBJDUMP" >&6; }
6201 { $as_echo "$as_me:$LINENO: result: no" >&5
6202 $as_echo "no" >&6; }
6207 if test -z "$ac_cv_prog_OBJDUMP"; then
6208 ac_ct_OBJDUMP=$OBJDUMP
6209 # Extract the first word of "objdump", so it can be a program name with args.
6210 set dummy objdump; ac_word=$2
6211 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6212 $as_echo_n "checking for $ac_word... " >&6; }
6213 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6214 $as_echo_n "(cached) " >&6
6216 if test -n "$ac_ct_OBJDUMP"; then
6217 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6223 test -z "$as_dir" && as_dir=.
6224 for ac_exec_ext in '' $ac_executable_extensions; do
6225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6226 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6227 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6236 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6237 if test -n "$ac_ct_OBJDUMP"; then
6238 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6239 $as_echo "$ac_ct_OBJDUMP" >&6; }
6241 { $as_echo "$as_me:$LINENO: result: no" >&5
6242 $as_echo "no" >&6; }
6245 if test "x$ac_ct_OBJDUMP" = x; then
6248 case $cross_compiling:$ac_tool_warned in
6250 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6252 ac_tool_warned=yes ;;
6254 OBJDUMP=$ac_ct_OBJDUMP
6257 OBJDUMP="$ac_cv_prog_OBJDUMP"
6260 test -z "$OBJDUMP" && OBJDUMP=objdump
6267 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6268 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6269 if test "${lt_cv_deplibs_check_method+set}" = set; then
6270 $as_echo_n "(cached) " >&6
6272 lt_cv_file_magic_cmd='$MAGIC_CMD'
6273 lt_cv_file_magic_test_file=
6274 lt_cv_deplibs_check_method='unknown'
6275 # Need to set the preceding variable on all platforms that support
6276 # interlibrary dependencies.
6277 # 'none' -- dependencies not supported.
6278 # `unknown' -- same as none, but documents that we really don't know.
6279 # 'pass_all' -- all dependencies passed with no checks.
6280 # 'test_compile' -- check by making test program.
6281 # 'file_magic [[regex]]' -- check by looking for files in library path
6282 # which responds to the $file_magic_cmd with a given extended regex.
6283 # If you have `file' or equivalent on your system and you're not sure
6284 # whether `pass_all' will *always* work, you probably want this one.
6288 lt_cv_deplibs_check_method=pass_all
6292 lt_cv_deplibs_check_method=pass_all
6296 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6297 lt_cv_file_magic_cmd='/usr/bin/file -L'
6298 lt_cv_file_magic_test_file=/shlib/libc.so
6302 # func_win32_libid is a shell function defined in ltmain.sh
6303 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6304 lt_cv_file_magic_cmd='func_win32_libid'
6308 # Base MSYS/MinGW do not provide the 'file' command needed by
6309 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6310 # unless we find 'file', for example because we are cross-compiling.
6311 if ( file / ) >/dev/null 2>&1; then
6312 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6313 lt_cv_file_magic_cmd='func_win32_libid'
6315 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6316 lt_cv_file_magic_cmd='$OBJDUMP -f'
6321 # use the weaker test based on 'objdump'. See mingw*.
6322 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6323 lt_cv_file_magic_cmd='$OBJDUMP -f'
6326 darwin* | rhapsody*)
6327 lt_cv_deplibs_check_method=pass_all
6330 freebsd* | dragonfly*)
6331 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6334 # Not sure whether the presence of OpenBSD here was a mistake.
6335 # Let's accept both of them until this is cleared up.
6336 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6337 lt_cv_file_magic_cmd=/usr/bin/file
6338 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6342 lt_cv_deplibs_check_method=pass_all
6347 lt_cv_deplibs_check_method=pass_all
6350 hpux10.20* | hpux11*)
6351 lt_cv_file_magic_cmd=/usr/bin/file
6354 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6355 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6358 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]'
6359 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6362 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6363 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6369 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6370 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6373 irix5* | irix6* | nonstopux*)
6375 *-32|*"-32 ") libmagic=32-bit;;
6376 *-n32|*"-n32 ") libmagic=N32;;
6377 *-64|*"-64 ") libmagic=64-bit;;
6378 *) libmagic=never-match;;
6380 lt_cv_deplibs_check_method=pass_all
6383 # This must be Linux ELF.
6384 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6385 lt_cv_deplibs_check_method=pass_all
6389 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6390 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6392 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6397 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6398 lt_cv_file_magic_cmd=/usr/bin/file
6399 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6403 lt_cv_deplibs_check_method=pass_all
6407 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6408 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6410 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6414 osf3* | osf4* | osf5*)
6415 lt_cv_deplibs_check_method=pass_all
6419 lt_cv_deplibs_check_method=pass_all
6423 lt_cv_deplibs_check_method=pass_all
6426 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6427 lt_cv_deplibs_check_method=pass_all
6431 case $host_vendor in
6433 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]'
6434 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6437 lt_cv_deplibs_check_method=pass_all
6440 lt_cv_file_magic_cmd='/bin/file'
6441 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6444 lt_cv_file_magic_cmd='/bin/file'
6445 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6446 lt_cv_file_magic_test_file=/lib/libc.so
6449 lt_cv_deplibs_check_method=pass_all
6452 lt_cv_deplibs_check_method=pass_all
6458 lt_cv_deplibs_check_method=pass_all
6463 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6464 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6465 file_magic_cmd=$lt_cv_file_magic_cmd
6466 deplibs_check_method=$lt_cv_deplibs_check_method
6467 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6480 if test -n "$ac_tool_prefix"; then
6481 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6482 set dummy ${ac_tool_prefix}ar; ac_word=$2
6483 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6484 $as_echo_n "checking for $ac_word... " >&6; }
6485 if test "${ac_cv_prog_AR+set}" = set; then
6486 $as_echo_n "(cached) " >&6
6488 if test -n "$AR"; then
6489 ac_cv_prog_AR="$AR" # Let the user override the test.
6491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495 test -z "$as_dir" && as_dir=.
6496 for ac_exec_ext in '' $ac_executable_extensions; do
6497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6498 ac_cv_prog_AR="${ac_tool_prefix}ar"
6499 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6509 if test -n "$AR"; then
6510 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6511 $as_echo "$AR" >&6; }
6513 { $as_echo "$as_me:$LINENO: result: no" >&5
6514 $as_echo "no" >&6; }
6519 if test -z "$ac_cv_prog_AR"; then
6521 # Extract the first word of "ar", so it can be a program name with args.
6522 set dummy ar; ac_word=$2
6523 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6524 $as_echo_n "checking for $ac_word... " >&6; }
6525 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6526 $as_echo_n "(cached) " >&6
6528 if test -n "$ac_ct_AR"; then
6529 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535 test -z "$as_dir" && as_dir=.
6536 for ac_exec_ext in '' $ac_executable_extensions; do
6537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6538 ac_cv_prog_ac_ct_AR="ar"
6539 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6548 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6549 if test -n "$ac_ct_AR"; then
6550 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6551 $as_echo "$ac_ct_AR" >&6; }
6553 { $as_echo "$as_me:$LINENO: result: no" >&5
6554 $as_echo "no" >&6; }
6557 if test "x$ac_ct_AR" = x; then
6560 case $cross_compiling:$ac_tool_warned in
6562 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6564 ac_tool_warned=yes ;;
6572 test -z "$AR" && AR=ar
6573 test -z "$AR_FLAGS" && AR_FLAGS=cru
6585 if test -n "$ac_tool_prefix"; then
6586 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6587 set dummy ${ac_tool_prefix}strip; ac_word=$2
6588 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6589 $as_echo_n "checking for $ac_word... " >&6; }
6590 if test "${ac_cv_prog_STRIP+set}" = set; then
6591 $as_echo_n "(cached) " >&6
6593 if test -n "$STRIP"; then
6594 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600 test -z "$as_dir" && as_dir=.
6601 for ac_exec_ext in '' $ac_executable_extensions; do
6602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6603 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6604 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6613 STRIP=$ac_cv_prog_STRIP
6614 if test -n "$STRIP"; then
6615 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6616 $as_echo "$STRIP" >&6; }
6618 { $as_echo "$as_me:$LINENO: result: no" >&5
6619 $as_echo "no" >&6; }
6624 if test -z "$ac_cv_prog_STRIP"; then
6626 # Extract the first word of "strip", so it can be a program name with args.
6627 set dummy strip; ac_word=$2
6628 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6629 $as_echo_n "checking for $ac_word... " >&6; }
6630 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6631 $as_echo_n "(cached) " >&6
6633 if test -n "$ac_ct_STRIP"; then
6634 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6640 test -z "$as_dir" && as_dir=.
6641 for ac_exec_ext in '' $ac_executable_extensions; do
6642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6643 ac_cv_prog_ac_ct_STRIP="strip"
6644 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6653 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6654 if test -n "$ac_ct_STRIP"; then
6655 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6656 $as_echo "$ac_ct_STRIP" >&6; }
6658 { $as_echo "$as_me:$LINENO: result: no" >&5
6659 $as_echo "no" >&6; }
6662 if test "x$ac_ct_STRIP" = x; then
6665 case $cross_compiling:$ac_tool_warned in
6667 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6668 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6669 ac_tool_warned=yes ;;
6674 STRIP="$ac_cv_prog_STRIP"
6677 test -z "$STRIP" && STRIP=:
6684 if test -n "$ac_tool_prefix"; then
6685 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6686 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6687 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6688 $as_echo_n "checking for $ac_word... " >&6; }
6689 if test "${ac_cv_prog_RANLIB+set}" = set; then
6690 $as_echo_n "(cached) " >&6
6692 if test -n "$RANLIB"; then
6693 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699 test -z "$as_dir" && as_dir=.
6700 for ac_exec_ext in '' $ac_executable_extensions; do
6701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6702 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6703 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6712 RANLIB=$ac_cv_prog_RANLIB
6713 if test -n "$RANLIB"; then
6714 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6715 $as_echo "$RANLIB" >&6; }
6717 { $as_echo "$as_me:$LINENO: result: no" >&5
6718 $as_echo "no" >&6; }
6723 if test -z "$ac_cv_prog_RANLIB"; then
6724 ac_ct_RANLIB=$RANLIB
6725 # Extract the first word of "ranlib", so it can be a program name with args.
6726 set dummy ranlib; ac_word=$2
6727 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6728 $as_echo_n "checking for $ac_word... " >&6; }
6729 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6730 $as_echo_n "(cached) " >&6
6732 if test -n "$ac_ct_RANLIB"; then
6733 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739 test -z "$as_dir" && as_dir=.
6740 for ac_exec_ext in '' $ac_executable_extensions; do
6741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6742 ac_cv_prog_ac_ct_RANLIB="ranlib"
6743 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6752 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6753 if test -n "$ac_ct_RANLIB"; then
6754 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6755 $as_echo "$ac_ct_RANLIB" >&6; }
6757 { $as_echo "$as_me:$LINENO: result: no" >&5
6758 $as_echo "no" >&6; }
6761 if test "x$ac_ct_RANLIB" = x; then
6764 case $cross_compiling:$ac_tool_warned in
6766 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6767 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6768 ac_tool_warned=yes ;;
6770 RANLIB=$ac_ct_RANLIB
6773 RANLIB="$ac_cv_prog_RANLIB"
6776 test -z "$RANLIB" && RANLIB=:
6783 # Determine commands to create old-style static archives.
6784 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6785 old_postinstall_cmds='chmod 644 $oldlib'
6786 old_postuninstall_cmds=
6788 if test -n "$RANLIB"; then
6791 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6794 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6797 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6833 # If no C compiler was specified, use CC.
6836 # If no C compiler flags were specified, use CFLAGS.
6837 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6839 # Allow CC to be a program name with arguments.
6843 # Check for command to grab the raw symbol name followed by C symbol from nm.
6844 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6845 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6846 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6847 $as_echo_n "(cached) " >&6
6850 # These are sane defaults that work on at least a few old systems.
6851 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6853 # Character class describing NM global symbol codes.
6854 symcode='[BCDEGRST]'
6856 # Regexp to match symbols that can be accessed directly from C.
6857 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6859 # Define system-specific variables.
6864 cygwin* | mingw* | pw32* | cegcc*)
6865 symcode='[ABCDGISTW]'
6868 if test "$host_cpu" = ia64; then
6869 symcode='[ABCDEGRST]'
6873 symcode='[BCDEGRST]'
6876 symcode='[BCDEGQRST]'
6887 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6895 # If we're using GNU nm, then use its standard symbol codes.
6896 case `$NM -V 2>&1` in
6897 *GNU* | *'with BFD'*)
6898 symcode='[ABCDGIRSTW]' ;;
6901 # Transform an extracted symbol line into a proper C declaration.
6902 # Some systems (esp. on ia64) link data and code symbols differently,
6903 # so use this general approach.
6904 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6906 # Transform an extracted symbol line into symbol name and symbol address
6907 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6908 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6910 # Handle CRLF in mingw tool chain
6914 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6918 # Try without a prefix underscore, then with it.
6919 for ac_symprfx in "" "_"; do
6921 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6922 symxfrm="\\1 $ac_symprfx\\2 \\2"
6924 # Write the raw and C identifiers.
6925 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6926 # Fake it for dumpbin and say T for any non-static function
6927 # and D for any global variable.
6928 # Also find C++ and __fastcall symbols from MSVC++,
6929 # which start with @ or ?.
6930 lt_cv_sys_global_symbol_pipe="$AWK '"\
6931 " {last_section=section; section=\$ 3};"\
6932 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6933 " \$ 0!~/External *\|/{next};"\
6934 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6935 " {if(hide[section]) next};"\
6936 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6937 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6938 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6939 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6940 " ' prfx=^$ac_symprfx"
6942 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6945 # Check to see that the pipe works correctly.
6949 cat > conftest.$ac_ext <<_LT_EOF
6954 void nm_test_func(void);
6955 void nm_test_func(void){}
6959 int main(){nm_test_var='a';nm_test_func();return(0);}
6962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6963 (eval $ac_compile) 2>&5
6965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); }; then
6967 # Now try to grab the symbols.
6969 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6970 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); } && test -s "$nlist"; then
6974 # Try sorting and uniquifying the output.
6975 if sort "$nlist" | uniq > "$nlist"T; then
6976 mv -f "$nlist"T "$nlist"
6981 # Make sure that we snagged all the symbols we need.
6982 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6983 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6984 cat <<_LT_EOF > conftest.$ac_ext
6990 # Now generate the symbol file.
6991 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6993 cat <<_LT_EOF >> conftest.$ac_ext
6995 /* The mapping between symbol names and symbols. */
7000 lt__PROGRAM__LTX_preloaded_symbols[] =
7002 { "@PROGRAM@", (void *) 0 },
7004 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7005 cat <<\_LT_EOF >> conftest.$ac_ext
7009 /* This works around a problem in FreeBSD linker */
7010 #ifdef FREEBSD_WORKAROUND
7011 static const void *lt_preloaded_setup() {
7012 return lt__PROGRAM__LTX_preloaded_symbols;
7020 # Now try linking the two files.
7021 mv conftest.$ac_objext conftstm.$ac_objext
7022 lt_save_LIBS="$LIBS"
7023 lt_save_CFLAGS="$CFLAGS"
7024 LIBS="conftstm.$ac_objext"
7025 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7027 (eval $ac_link) 2>&5
7029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7033 LIBS="$lt_save_LIBS"
7034 CFLAGS="$lt_save_CFLAGS"
7036 echo "cannot find nm_test_func in $nlist" >&5
7039 echo "cannot find nm_test_var in $nlist" >&5
7042 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7045 echo "$progname: failed program was:" >&5
7046 cat conftest.$ac_ext >&5
7048 rm -rf conftest* conftst*
7050 # Do not use the global_symbol_pipe unless it works.
7051 if test "$pipe_works" = yes; then
7054 lt_cv_sys_global_symbol_pipe=
7060 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7061 lt_cv_sys_global_symbol_to_cdecl=
7063 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7064 { $as_echo "$as_me:$LINENO: result: failed" >&5
7065 $as_echo "failed" >&6; }
7067 { $as_echo "$as_me:$LINENO: result: ok" >&5
7068 $as_echo "ok" >&6; }
7093 # Check whether --enable-libtool-lock was given.
7094 if test "${enable_libtool_lock+set}" = set; then
7095 enableval=$enable_libtool_lock;
7098 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7100 # Some flags need to be propagated to the compiler or linker for good
7104 # Find out which ABI we are using.
7105 echo 'int i;' > conftest.$ac_ext
7106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7107 (eval $ac_compile) 2>&5
7109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110 (exit $ac_status); }; then
7111 case `/usr/bin/file conftest.$ac_objext` in
7123 # Find out which ABI we are using.
7124 echo '#line 7124 "configure"' > conftest.$ac_ext
7125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7126 (eval $ac_compile) 2>&5
7128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); }; then
7130 if test "$lt_cv_prog_gnu_ld" = yes; then
7131 case `/usr/bin/file conftest.$ac_objext` in
7133 LD="${LD-ld} -melf32bsmip"
7136 LD="${LD-ld} -melf32bmipn32"
7139 LD="${LD-ld} -melf64bmip"
7143 case `/usr/bin/file conftest.$ac_objext` in
7159 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7160 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7161 # Find out which ABI we are using.
7162 echo 'int i;' > conftest.$ac_ext
7163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7164 (eval $ac_compile) 2>&5
7166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167 (exit $ac_status); }; then
7168 case `/usr/bin/file conftest.o` in
7171 x86_64-*kfreebsd*-gnu)
7172 LD="${LD-ld} -m elf_i386_fbsd"
7175 LD="${LD-ld} -m elf_i386"
7177 ppc64-*linux*|powerpc64-*linux*)
7178 LD="${LD-ld} -m elf32ppclinux"
7181 LD="${LD-ld} -m elf_s390"
7184 LD="${LD-ld} -m elf32_sparc"
7190 x86_64-*kfreebsd*-gnu)
7191 LD="${LD-ld} -m elf_x86_64_fbsd"
7194 LD="${LD-ld} -m elf_x86_64"
7196 ppc*-*linux*|powerpc*-*linux*)
7197 LD="${LD-ld} -m elf64ppc"
7199 s390*-*linux*|s390*-*tpf*)
7200 LD="${LD-ld} -m elf64_s390"
7203 LD="${LD-ld} -m elf64_sparc"
7213 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7214 SAVE_CFLAGS="$CFLAGS"
7215 CFLAGS="$CFLAGS -belf"
7216 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7217 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7218 if test "${lt_cv_cc_needs_belf+set}" = set; then
7219 $as_echo_n "(cached) " >&6
7222 ac_cpp='$CPP $CPPFLAGS'
7223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7227 cat >conftest.$ac_ext <<_ACEOF
7230 cat confdefs.h >>conftest.$ac_ext
7231 cat >>conftest.$ac_ext <<_ACEOF
7232 /* end confdefs.h. */
7242 rm -f conftest.$ac_objext conftest$ac_exeext
7243 if { (ac_try="$ac_link"
7245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7246 *) ac_try_echo=$ac_try;;
7248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7249 $as_echo "$ac_try_echo") >&5
7250 (eval "$ac_link") 2>conftest.er1
7252 grep -v '^ *+' conftest.er1 >conftest.err
7254 cat conftest.err >&5
7255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); } && {
7257 test -z "$ac_c_werror_flag" ||
7258 test ! -s conftest.err
7259 } && test -s conftest$ac_exeext && {
7260 test "$cross_compiling" = yes ||
7261 $as_test_x conftest$ac_exeext
7263 lt_cv_cc_needs_belf=yes
7265 $as_echo "$as_me: failed program was:" >&5
7266 sed 's/^/| /' conftest.$ac_ext >&5
7268 lt_cv_cc_needs_belf=no
7271 rm -rf conftest.dSYM
7272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7273 conftest$ac_exeext conftest.$ac_ext
7275 ac_cpp='$CPP $CPPFLAGS'
7276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7281 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7282 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7283 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7284 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7285 CFLAGS="$SAVE_CFLAGS"
7289 # Find out which ABI we are using.
7290 echo 'int i;' > conftest.$ac_ext
7291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7292 (eval $ac_compile) 2>&5
7294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295 (exit $ac_status); }; then
7296 case `/usr/bin/file conftest.o` in
7298 case $lt_cv_prog_gnu_ld in
7299 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7301 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7313 need_locks="$enable_libtool_lock"
7317 rhapsody* | darwin*)
7318 if test -n "$ac_tool_prefix"; then
7319 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7320 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7321 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7322 $as_echo_n "checking for $ac_word... " >&6; }
7323 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7324 $as_echo_n "(cached) " >&6
7326 if test -n "$DSYMUTIL"; then
7327 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7333 test -z "$as_dir" && as_dir=.
7334 for ac_exec_ext in '' $ac_executable_extensions; do
7335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7336 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7337 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7346 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7347 if test -n "$DSYMUTIL"; then
7348 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7349 $as_echo "$DSYMUTIL" >&6; }
7351 { $as_echo "$as_me:$LINENO: result: no" >&5
7352 $as_echo "no" >&6; }
7357 if test -z "$ac_cv_prog_DSYMUTIL"; then
7358 ac_ct_DSYMUTIL=$DSYMUTIL
7359 # Extract the first word of "dsymutil", so it can be a program name with args.
7360 set dummy dsymutil; ac_word=$2
7361 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7362 $as_echo_n "checking for $ac_word... " >&6; }
7363 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7364 $as_echo_n "(cached) " >&6
7366 if test -n "$ac_ct_DSYMUTIL"; then
7367 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7373 test -z "$as_dir" && as_dir=.
7374 for ac_exec_ext in '' $ac_executable_extensions; do
7375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7376 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7377 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7386 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7387 if test -n "$ac_ct_DSYMUTIL"; then
7388 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7389 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7391 { $as_echo "$as_me:$LINENO: result: no" >&5
7392 $as_echo "no" >&6; }
7395 if test "x$ac_ct_DSYMUTIL" = x; then
7398 case $cross_compiling:$ac_tool_warned in
7400 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7401 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7402 ac_tool_warned=yes ;;
7404 DSYMUTIL=$ac_ct_DSYMUTIL
7407 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7410 if test -n "$ac_tool_prefix"; then
7411 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7412 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7413 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7414 $as_echo_n "checking for $ac_word... " >&6; }
7415 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7416 $as_echo_n "(cached) " >&6
7418 if test -n "$NMEDIT"; then
7419 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7425 test -z "$as_dir" && as_dir=.
7426 for ac_exec_ext in '' $ac_executable_extensions; do
7427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7428 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7429 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7438 NMEDIT=$ac_cv_prog_NMEDIT
7439 if test -n "$NMEDIT"; then
7440 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7441 $as_echo "$NMEDIT" >&6; }
7443 { $as_echo "$as_me:$LINENO: result: no" >&5
7444 $as_echo "no" >&6; }
7449 if test -z "$ac_cv_prog_NMEDIT"; then
7450 ac_ct_NMEDIT=$NMEDIT
7451 # Extract the first word of "nmedit", so it can be a program name with args.
7452 set dummy nmedit; ac_word=$2
7453 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7454 $as_echo_n "checking for $ac_word... " >&6; }
7455 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7456 $as_echo_n "(cached) " >&6
7458 if test -n "$ac_ct_NMEDIT"; then
7459 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7465 test -z "$as_dir" && as_dir=.
7466 for ac_exec_ext in '' $ac_executable_extensions; do
7467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7468 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7469 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7478 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7479 if test -n "$ac_ct_NMEDIT"; then
7480 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7481 $as_echo "$ac_ct_NMEDIT" >&6; }
7483 { $as_echo "$as_me:$LINENO: result: no" >&5
7484 $as_echo "no" >&6; }
7487 if test "x$ac_ct_NMEDIT" = x; then
7490 case $cross_compiling:$ac_tool_warned in
7492 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7494 ac_tool_warned=yes ;;
7496 NMEDIT=$ac_ct_NMEDIT
7499 NMEDIT="$ac_cv_prog_NMEDIT"
7502 if test -n "$ac_tool_prefix"; then
7503 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7504 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7505 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7506 $as_echo_n "checking for $ac_word... " >&6; }
7507 if test "${ac_cv_prog_LIPO+set}" = set; then
7508 $as_echo_n "(cached) " >&6
7510 if test -n "$LIPO"; then
7511 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517 test -z "$as_dir" && as_dir=.
7518 for ac_exec_ext in '' $ac_executable_extensions; do
7519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7520 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7521 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7530 LIPO=$ac_cv_prog_LIPO
7531 if test -n "$LIPO"; then
7532 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
7533 $as_echo "$LIPO" >&6; }
7535 { $as_echo "$as_me:$LINENO: result: no" >&5
7536 $as_echo "no" >&6; }
7541 if test -z "$ac_cv_prog_LIPO"; then
7543 # Extract the first word of "lipo", so it can be a program name with args.
7544 set dummy lipo; ac_word=$2
7545 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7546 $as_echo_n "checking for $ac_word... " >&6; }
7547 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7548 $as_echo_n "(cached) " >&6
7550 if test -n "$ac_ct_LIPO"; then
7551 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557 test -z "$as_dir" && as_dir=.
7558 for ac_exec_ext in '' $ac_executable_extensions; do
7559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7560 ac_cv_prog_ac_ct_LIPO="lipo"
7561 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7570 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7571 if test -n "$ac_ct_LIPO"; then
7572 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7573 $as_echo "$ac_ct_LIPO" >&6; }
7575 { $as_echo "$as_me:$LINENO: result: no" >&5
7576 $as_echo "no" >&6; }
7579 if test "x$ac_ct_LIPO" = x; then
7582 case $cross_compiling:$ac_tool_warned in
7584 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7586 ac_tool_warned=yes ;;
7591 LIPO="$ac_cv_prog_LIPO"
7594 if test -n "$ac_tool_prefix"; then
7595 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7596 set dummy ${ac_tool_prefix}otool; ac_word=$2
7597 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7598 $as_echo_n "checking for $ac_word... " >&6; }
7599 if test "${ac_cv_prog_OTOOL+set}" = set; then
7600 $as_echo_n "(cached) " >&6
7602 if test -n "$OTOOL"; then
7603 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7609 test -z "$as_dir" && as_dir=.
7610 for ac_exec_ext in '' $ac_executable_extensions; do
7611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7612 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7613 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7622 OTOOL=$ac_cv_prog_OTOOL
7623 if test -n "$OTOOL"; then
7624 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
7625 $as_echo "$OTOOL" >&6; }
7627 { $as_echo "$as_me:$LINENO: result: no" >&5
7628 $as_echo "no" >&6; }
7633 if test -z "$ac_cv_prog_OTOOL"; then
7635 # Extract the first word of "otool", so it can be a program name with args.
7636 set dummy otool; ac_word=$2
7637 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7638 $as_echo_n "checking for $ac_word... " >&6; }
7639 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7640 $as_echo_n "(cached) " >&6
7642 if test -n "$ac_ct_OTOOL"; then
7643 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7649 test -z "$as_dir" && as_dir=.
7650 for ac_exec_ext in '' $ac_executable_extensions; do
7651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7652 ac_cv_prog_ac_ct_OTOOL="otool"
7653 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7662 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7663 if test -n "$ac_ct_OTOOL"; then
7664 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7665 $as_echo "$ac_ct_OTOOL" >&6; }
7667 { $as_echo "$as_me:$LINENO: result: no" >&5
7668 $as_echo "no" >&6; }
7671 if test "x$ac_ct_OTOOL" = x; then
7674 case $cross_compiling:$ac_tool_warned in
7676 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7677 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7678 ac_tool_warned=yes ;;
7683 OTOOL="$ac_cv_prog_OTOOL"
7686 if test -n "$ac_tool_prefix"; then
7687 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7688 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7689 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7690 $as_echo_n "checking for $ac_word... " >&6; }
7691 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7692 $as_echo_n "(cached) " >&6
7694 if test -n "$OTOOL64"; then
7695 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7701 test -z "$as_dir" && as_dir=.
7702 for ac_exec_ext in '' $ac_executable_extensions; do
7703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7704 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7705 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7714 OTOOL64=$ac_cv_prog_OTOOL64
7715 if test -n "$OTOOL64"; then
7716 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
7717 $as_echo "$OTOOL64" >&6; }
7719 { $as_echo "$as_me:$LINENO: result: no" >&5
7720 $as_echo "no" >&6; }
7725 if test -z "$ac_cv_prog_OTOOL64"; then
7726 ac_ct_OTOOL64=$OTOOL64
7727 # Extract the first word of "otool64", so it can be a program name with args.
7728 set dummy otool64; ac_word=$2
7729 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7730 $as_echo_n "checking for $ac_word... " >&6; }
7731 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7732 $as_echo_n "(cached) " >&6
7734 if test -n "$ac_ct_OTOOL64"; then
7735 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741 test -z "$as_dir" && as_dir=.
7742 for ac_exec_ext in '' $ac_executable_extensions; do
7743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7744 ac_cv_prog_ac_ct_OTOOL64="otool64"
7745 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7754 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7755 if test -n "$ac_ct_OTOOL64"; then
7756 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7757 $as_echo "$ac_ct_OTOOL64" >&6; }
7759 { $as_echo "$as_me:$LINENO: result: no" >&5
7760 $as_echo "no" >&6; }
7763 if test "x$ac_ct_OTOOL64" = x; then
7766 case $cross_compiling:$ac_tool_warned in
7768 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7770 ac_tool_warned=yes ;;
7772 OTOOL64=$ac_ct_OTOOL64
7775 OTOOL64="$ac_cv_prog_OTOOL64"
7804 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7805 $as_echo_n "checking for -single_module linker flag... " >&6; }
7806 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7807 $as_echo_n "(cached) " >&6
7809 lt_cv_apple_cc_single_mod=no
7810 if test -z "${LT_MULTI_MODULE}"; then
7811 # By default we will add the -single_module flag. You can override
7812 # by either setting the environment variable LT_MULTI_MODULE
7813 # non-empty at configure time, or by adding -multi_module to the
7815 rm -rf libconftest.dylib*
7816 echo "int foo(void){return 1;}" > conftest.c
7817 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7818 -dynamiclib -Wl,-single_module conftest.c" >&5
7819 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7820 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7822 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7823 lt_cv_apple_cc_single_mod=yes
7825 cat conftest.err >&5
7827 rm -rf libconftest.dylib*
7831 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7832 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7833 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7834 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7835 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7836 $as_echo_n "(cached) " >&6
7838 lt_cv_ld_exported_symbols_list=no
7839 save_LDFLAGS=$LDFLAGS
7840 echo "_main" > conftest.sym
7841 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7842 cat >conftest.$ac_ext <<_ACEOF
7845 cat confdefs.h >>conftest.$ac_ext
7846 cat >>conftest.$ac_ext <<_ACEOF
7847 /* end confdefs.h. */
7857 rm -f conftest.$ac_objext conftest$ac_exeext
7858 if { (ac_try="$ac_link"
7860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7861 *) ac_try_echo=$ac_try;;
7863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7864 $as_echo "$ac_try_echo") >&5
7865 (eval "$ac_link") 2>conftest.er1
7867 grep -v '^ *+' conftest.er1 >conftest.err
7869 cat conftest.err >&5
7870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871 (exit $ac_status); } && {
7872 test -z "$ac_c_werror_flag" ||
7873 test ! -s conftest.err
7874 } && test -s conftest$ac_exeext && {
7875 test "$cross_compiling" = yes ||
7876 $as_test_x conftest$ac_exeext
7878 lt_cv_ld_exported_symbols_list=yes
7880 $as_echo "$as_me: failed program was:" >&5
7881 sed 's/^/| /' conftest.$ac_ext >&5
7883 lt_cv_ld_exported_symbols_list=no
7886 rm -rf conftest.dSYM
7887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7888 conftest$ac_exeext conftest.$ac_ext
7889 LDFLAGS="$save_LDFLAGS"
7892 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7893 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7895 rhapsody* | darwin1.[012])
7896 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7898 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7899 darwin*) # darwin 5.x on
7900 # if running on 10.5 or later, the deployment target defaults
7901 # to the OS version, if on x86, and 10.4, the deployment
7902 # target defaults to 10.4. Don't you love it?
7903 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7904 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7905 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7907 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7909 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7913 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7914 _lt_dar_single_mod='$single_module'
7916 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7917 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7919 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7921 if test "$DSYMUTIL" != ":"; then
7922 _lt_dsymutil='~$DSYMUTIL $lib || :'
7930 ac_cpp='$CPP $CPPFLAGS'
7931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7934 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7935 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7936 # On Suns, sometimes $CPP names a directory.
7937 if test -n "$CPP" && test -d "$CPP"; then
7940 if test -z "$CPP"; then
7941 if test "${ac_cv_prog_CPP+set}" = set; then
7942 $as_echo_n "(cached) " >&6
7944 # Double quotes because CPP needs to be expanded
7945 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7948 for ac_c_preproc_warn_flag in '' yes
7950 # Use a header file that comes with gcc, so configuring glibc
7951 # with a fresh cross-compiler works.
7952 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7953 # <limits.h> exists even on freestanding compilers.
7954 # On the NeXT, cc -E runs the code through the compiler's parser,
7955 # not just through cpp. "Syntax error" is here to catch this case.
7956 cat >conftest.$ac_ext <<_ACEOF
7959 cat confdefs.h >>conftest.$ac_ext
7960 cat >>conftest.$ac_ext <<_ACEOF
7961 /* end confdefs.h. */
7963 # include <limits.h>
7965 # include <assert.h>
7969 if { (ac_try="$ac_cpp conftest.$ac_ext"
7971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7972 *) ac_try_echo=$ac_try;;
7974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7975 $as_echo "$ac_try_echo") >&5
7976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7978 grep -v '^ *+' conftest.er1 >conftest.err
7980 cat conftest.err >&5
7981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982 (exit $ac_status); } >/dev/null && {
7983 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7984 test ! -s conftest.err
7988 $as_echo "$as_me: failed program was:" >&5
7989 sed 's/^/| /' conftest.$ac_ext >&5
7991 # Broken: fails on valid input.
7995 rm -f conftest.err conftest.$ac_ext
7997 # OK, works on sane cases. Now check whether nonexistent headers
7998 # can be detected and how.
7999 cat >conftest.$ac_ext <<_ACEOF
8002 cat confdefs.h >>conftest.$ac_ext
8003 cat >>conftest.$ac_ext <<_ACEOF
8004 /* end confdefs.h. */
8005 #include <ac_nonexistent.h>
8007 if { (ac_try="$ac_cpp conftest.$ac_ext"
8009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8010 *) ac_try_echo=$ac_try;;
8012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8013 $as_echo "$ac_try_echo") >&5
8014 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8016 grep -v '^ *+' conftest.er1 >conftest.err
8018 cat conftest.err >&5
8019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020 (exit $ac_status); } >/dev/null && {
8021 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8022 test ! -s conftest.err
8024 # Broken: success on invalid input.
8027 $as_echo "$as_me: failed program was:" >&5
8028 sed 's/^/| /' conftest.$ac_ext >&5
8030 # Passes both tests.
8035 rm -f conftest.err conftest.$ac_ext
8038 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8039 rm -f conftest.err conftest.$ac_ext
8040 if $ac_preproc_ok; then
8052 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
8053 $as_echo "$CPP" >&6; }
8055 for ac_c_preproc_warn_flag in '' yes
8057 # Use a header file that comes with gcc, so configuring glibc
8058 # with a fresh cross-compiler works.
8059 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8060 # <limits.h> exists even on freestanding compilers.
8061 # On the NeXT, cc -E runs the code through the compiler's parser,
8062 # not just through cpp. "Syntax error" is here to catch this case.
8063 cat >conftest.$ac_ext <<_ACEOF
8066 cat confdefs.h >>conftest.$ac_ext
8067 cat >>conftest.$ac_ext <<_ACEOF
8068 /* end confdefs.h. */
8070 # include <limits.h>
8072 # include <assert.h>
8076 if { (ac_try="$ac_cpp conftest.$ac_ext"
8078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8079 *) ac_try_echo=$ac_try;;
8081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8082 $as_echo "$ac_try_echo") >&5
8083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8085 grep -v '^ *+' conftest.er1 >conftest.err
8087 cat conftest.err >&5
8088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); } >/dev/null && {
8090 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8091 test ! -s conftest.err
8095 $as_echo "$as_me: failed program was:" >&5
8096 sed 's/^/| /' conftest.$ac_ext >&5
8098 # Broken: fails on valid input.
8102 rm -f conftest.err conftest.$ac_ext
8104 # OK, works on sane cases. Now check whether nonexistent headers
8105 # can be detected and how.
8106 cat >conftest.$ac_ext <<_ACEOF
8109 cat confdefs.h >>conftest.$ac_ext
8110 cat >>conftest.$ac_ext <<_ACEOF
8111 /* end confdefs.h. */
8112 #include <ac_nonexistent.h>
8114 if { (ac_try="$ac_cpp conftest.$ac_ext"
8116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8117 *) ac_try_echo=$ac_try;;
8119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8120 $as_echo "$ac_try_echo") >&5
8121 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8123 grep -v '^ *+' conftest.er1 >conftest.err
8125 cat conftest.err >&5
8126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); } >/dev/null && {
8128 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8129 test ! -s conftest.err
8131 # Broken: success on invalid input.
8134 $as_echo "$as_me: failed program was:" >&5
8135 sed 's/^/| /' conftest.$ac_ext >&5
8137 # Passes both tests.
8142 rm -f conftest.err conftest.$ac_ext
8145 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8146 rm -f conftest.err conftest.$ac_ext
8147 if $ac_preproc_ok; then
8150 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8152 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
8153 See \`config.log' for more details." >&5
8154 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
8155 See \`config.log' for more details." >&2;}
8156 { (exit 1); exit 1; }; }; }
8160 ac_cpp='$CPP $CPPFLAGS'
8161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8166 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8167 $as_echo_n "checking for ANSI C header files... " >&6; }
8168 if test "${ac_cv_header_stdc+set}" = set; then
8169 $as_echo_n "(cached) " >&6
8171 cat >conftest.$ac_ext <<_ACEOF
8174 cat confdefs.h >>conftest.$ac_ext
8175 cat >>conftest.$ac_ext <<_ACEOF
8176 /* end confdefs.h. */
8190 rm -f conftest.$ac_objext
8191 if { (ac_try="$ac_compile"
8193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8194 *) ac_try_echo=$ac_try;;
8196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8197 $as_echo "$ac_try_echo") >&5
8198 (eval "$ac_compile") 2>conftest.er1
8200 grep -v '^ *+' conftest.er1 >conftest.err
8202 cat conftest.err >&5
8203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); } && {
8205 test -z "$ac_c_werror_flag" ||
8206 test ! -s conftest.err
8207 } && test -s conftest.$ac_objext; then
8208 ac_cv_header_stdc=yes
8210 $as_echo "$as_me: failed program was:" >&5
8211 sed 's/^/| /' conftest.$ac_ext >&5
8213 ac_cv_header_stdc=no
8216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8218 if test $ac_cv_header_stdc = yes; then
8219 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8220 cat >conftest.$ac_ext <<_ACEOF
8223 cat confdefs.h >>conftest.$ac_ext
8224 cat >>conftest.$ac_ext <<_ACEOF
8225 /* end confdefs.h. */
8229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8230 $EGREP "memchr" >/dev/null 2>&1; then
8233 ac_cv_header_stdc=no
8239 if test $ac_cv_header_stdc = yes; then
8240 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8241 cat >conftest.$ac_ext <<_ACEOF
8244 cat confdefs.h >>conftest.$ac_ext
8245 cat >>conftest.$ac_ext <<_ACEOF
8246 /* end confdefs.h. */
8250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8251 $EGREP "free" >/dev/null 2>&1; then
8254 ac_cv_header_stdc=no
8260 if test $ac_cv_header_stdc = yes; then
8261 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8262 if test "$cross_compiling" = yes; then
8265 cat >conftest.$ac_ext <<_ACEOF
8268 cat confdefs.h >>conftest.$ac_ext
8269 cat >>conftest.$ac_ext <<_ACEOF
8270 /* end confdefs.h. */
8273 #if ((' ' & 0x0FF) == 0x020)
8274 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8275 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8277 # define ISLOWER(c) \
8278 (('a' <= (c) && (c) <= 'i') \
8279 || ('j' <= (c) && (c) <= 'r') \
8280 || ('s' <= (c) && (c) <= 'z'))
8281 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8284 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8289 for (i = 0; i < 256; i++)
8290 if (XOR (islower (i), ISLOWER (i))
8291 || toupper (i) != TOUPPER (i))
8296 rm -f conftest$ac_exeext
8297 if { (ac_try="$ac_link"
8299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8300 *) ac_try_echo=$ac_try;;
8302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8303 $as_echo "$ac_try_echo") >&5
8304 (eval "$ac_link") 2>&5
8306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8308 { (case "(($ac_try" in
8309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8310 *) ac_try_echo=$ac_try;;
8312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8313 $as_echo "$ac_try_echo") >&5
8314 (eval "$ac_try") 2>&5
8316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); }; }; then
8320 $as_echo "$as_me: program exited with status $ac_status" >&5
8321 $as_echo "$as_me: failed program was:" >&5
8322 sed 's/^/| /' conftest.$ac_ext >&5
8325 ac_cv_header_stdc=no
8327 rm -rf conftest.dSYM
8328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8334 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8335 $as_echo "$ac_cv_header_stdc" >&6; }
8336 if test $ac_cv_header_stdc = yes; then
8338 cat >>confdefs.h <<\_ACEOF
8339 #define STDC_HEADERS 1
8344 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8354 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8355 inttypes.h stdint.h unistd.h
8357 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8358 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8359 $as_echo_n "checking for $ac_header... " >&6; }
8360 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8361 $as_echo_n "(cached) " >&6
8363 cat >conftest.$ac_ext <<_ACEOF
8366 cat confdefs.h >>conftest.$ac_ext
8367 cat >>conftest.$ac_ext <<_ACEOF
8368 /* end confdefs.h. */
8369 $ac_includes_default
8371 #include <$ac_header>
8373 rm -f conftest.$ac_objext
8374 if { (ac_try="$ac_compile"
8376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8377 *) ac_try_echo=$ac_try;;
8379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8380 $as_echo "$ac_try_echo") >&5
8381 (eval "$ac_compile") 2>conftest.er1
8383 grep -v '^ *+' conftest.er1 >conftest.err
8385 cat conftest.err >&5
8386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); } && {
8388 test -z "$ac_c_werror_flag" ||
8389 test ! -s conftest.err
8390 } && test -s conftest.$ac_objext; then
8391 eval "$as_ac_Header=yes"
8393 $as_echo "$as_me: failed program was:" >&5
8394 sed 's/^/| /' conftest.$ac_ext >&5
8396 eval "$as_ac_Header=no"
8399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8401 ac_res=`eval 'as_val=${'$as_ac_Header'}
8402 $as_echo "$as_val"'`
8403 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8404 $as_echo "$ac_res" >&6; }
8405 as_val=`eval 'as_val=${'$as_ac_Header'}
8406 $as_echo "$as_val"'`
8407 if test "x$as_val" = x""yes; then
8408 cat >>confdefs.h <<_ACEOF
8409 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8418 for ac_header in dlfcn.h
8420 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8421 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8422 $as_echo_n "checking for $ac_header... " >&6; }
8423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8424 $as_echo_n "(cached) " >&6
8426 cat >conftest.$ac_ext <<_ACEOF
8429 cat confdefs.h >>conftest.$ac_ext
8430 cat >>conftest.$ac_ext <<_ACEOF
8431 /* end confdefs.h. */
8432 $ac_includes_default
8434 #include <$ac_header>
8436 rm -f conftest.$ac_objext
8437 if { (ac_try="$ac_compile"
8439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8440 *) ac_try_echo=$ac_try;;
8442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8443 $as_echo "$ac_try_echo") >&5
8444 (eval "$ac_compile") 2>conftest.er1
8446 grep -v '^ *+' conftest.er1 >conftest.err
8448 cat conftest.err >&5
8449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); } && {
8451 test -z "$ac_c_werror_flag" ||
8452 test ! -s conftest.err
8453 } && test -s conftest.$ac_objext; then
8454 eval "$as_ac_Header=yes"
8456 $as_echo "$as_me: failed program was:" >&5
8457 sed 's/^/| /' conftest.$ac_ext >&5
8459 eval "$as_ac_Header=no"
8462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8464 ac_res=`eval 'as_val=${'$as_ac_Header'}
8465 $as_echo "$as_val"'`
8466 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8467 $as_echo "$ac_res" >&6; }
8468 as_val=`eval 'as_val=${'$as_ac_Header'}
8469 $as_echo "$as_val"'`
8470 if test "x$as_val" = x""yes; then
8471 cat >>confdefs.h <<_ACEOF
8472 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8489 # Check whether --enable-shared was given.
8490 if test "${enable_shared+set}" = set; then
8491 enableval=$enable_shared; p=${PACKAGE-default}
8493 yes) enable_shared=yes ;;
8494 no) enable_shared=no ;;
8497 # Look at the argument we got. We use all the common list separators.
8498 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8499 for pkg in $enableval; do
8501 if test "X$pkg" = "X$p"; then
8520 # Check whether --enable-static was given.
8521 if test "${enable_static+set}" = set; then
8522 enableval=$enable_static; p=${PACKAGE-default}
8524 yes) enable_static=yes ;;
8525 no) enable_static=no ;;
8528 # Look at the argument we got. We use all the common list separators.
8529 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8530 for pkg in $enableval; do
8532 if test "X$pkg" = "X$p"; then
8552 # Check whether --with-pic was given.
8553 if test "${with_pic+set}" = set; then
8554 withval=$with_pic; pic_mode="$withval"
8560 test -z "$pic_mode" && pic_mode=default
8568 # Check whether --enable-fast-install was given.
8569 if test "${enable_fast_install+set}" = set; then
8570 enableval=$enable_fast_install; p=${PACKAGE-default}
8572 yes) enable_fast_install=yes ;;
8573 no) enable_fast_install=no ;;
8575 enable_fast_install=no
8576 # Look at the argument we got. We use all the common list separators.
8577 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8578 for pkg in $enableval; do
8580 if test "X$pkg" = "X$p"; then
8581 enable_fast_install=yes
8588 enable_fast_install=yes
8601 # This can be used to rebuild libtool when needed
8602 LIBTOOL_DEPS="$ltmain"
8604 # Always use our own libtool.
8605 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8631 test -z "$LN_S" && LN_S="ln -s"
8646 if test -n "${ZSH_VERSION+set}" ; then
8647 setopt NO_GLOB_SUBST
8650 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
8651 $as_echo_n "checking for objdir... " >&6; }
8652 if test "${lt_cv_objdir+set}" = set; then
8653 $as_echo_n "(cached) " >&6
8655 rm -f .libs 2>/dev/null
8656 mkdir .libs 2>/dev/null
8657 if test -d .libs; then
8660 # MS-DOS does not allow filenames that begin with a dot.
8663 rmdir .libs 2>/dev/null
8665 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8666 $as_echo "$lt_cv_objdir" >&6; }
8667 objdir=$lt_cv_objdir
8673 cat >>confdefs.h <<_ACEOF
8674 #define LT_OBJDIR "$lt_cv_objdir/"
8695 # AIX sometimes has problems with the GCC collect2 program. For some
8696 # reason, if we set the COLLECT_NAMES environment variable, the problems
8697 # vanish in a puff of smoke.
8698 if test "X${COLLECT_NAMES+set}" != Xset; then
8700 export COLLECT_NAMES
8705 # Sed substitution that helps us do robust quoting. It backslashifies
8706 # metacharacters that are still active within double-quoted strings.
8707 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8709 # Same as above, but do not quote variable references.
8710 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8712 # Sed substitution to delay expansion of an escaped shell variable in a
8713 # double_quote_subst'ed string.
8714 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8716 # Sed substitution to delay expansion of an escaped single quote.
8717 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8719 # Sed substitution to avoid accidental globbing in evaled expressions
8720 no_glob_subst='s/\*/\\\*/g'
8724 can_build_shared=yes
8726 # All known linkers require a `.a' archive for static linking (except MSVC,
8727 # which needs '.lib').
8730 with_gnu_ld="$lt_cv_prog_gnu_ld"
8733 old_CFLAGS="$CFLAGS"
8735 # Set sane defaults for various variables
8736 test -z "$CC" && CC=cc
8737 test -z "$LTCC" && LTCC=$CC
8738 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8739 test -z "$LD" && LD=ld
8740 test -z "$ac_objext" && ac_objext=o
8742 for cc_temp in $compiler""; do
8744 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8745 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8750 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8753 # Only perform the check for file, if the check method requires it
8754 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8755 case $deplibs_check_method in
8757 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8758 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8759 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8760 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8761 $as_echo_n "(cached) " >&6
8765 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8768 lt_save_MAGIC_CMD="$MAGIC_CMD"
8769 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8770 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8771 for ac_dir in $ac_dummy; do
8773 test -z "$ac_dir" && ac_dir=.
8774 if test -f $ac_dir/${ac_tool_prefix}file; then
8775 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8776 if test -n "$file_magic_test_file"; then
8777 case $deplibs_check_method in
8779 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8780 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8781 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8782 $EGREP "$file_magic_regex" > /dev/null; then
8787 *** Warning: the command libtool uses to detect shared libraries,
8788 *** $file_magic_cmd, produces output that libtool cannot recognize.
8789 *** The result is that libtool may fail to recognize shared libraries
8790 *** as such. This will affect the creation of libtool libraries that
8791 *** depend on shared libraries, but programs linked with such libtool
8792 *** libraries will work regardless of this problem. Nevertheless, you
8793 *** may want to report the problem to your system manager and/or to
8794 *** bug-libtool@gnu.org
8804 MAGIC_CMD="$lt_save_MAGIC_CMD"
8809 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8810 if test -n "$MAGIC_CMD"; then
8811 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8812 $as_echo "$MAGIC_CMD" >&6; }
8814 { $as_echo "$as_me:$LINENO: result: no" >&5
8815 $as_echo "no" >&6; }
8822 if test -z "$lt_cv_path_MAGIC_CMD"; then
8823 if test -n "$ac_tool_prefix"; then
8824 { $as_echo "$as_me:$LINENO: checking for file" >&5
8825 $as_echo_n "checking for file... " >&6; }
8826 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8827 $as_echo_n "(cached) " >&6
8831 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8834 lt_save_MAGIC_CMD="$MAGIC_CMD"
8835 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8836 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8837 for ac_dir in $ac_dummy; do
8839 test -z "$ac_dir" && ac_dir=.
8840 if test -f $ac_dir/file; then
8841 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8842 if test -n "$file_magic_test_file"; then
8843 case $deplibs_check_method in
8845 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8846 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8847 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8848 $EGREP "$file_magic_regex" > /dev/null; then
8853 *** Warning: the command libtool uses to detect shared libraries,
8854 *** $file_magic_cmd, produces output that libtool cannot recognize.
8855 *** The result is that libtool may fail to recognize shared libraries
8856 *** as such. This will affect the creation of libtool libraries that
8857 *** depend on shared libraries, but programs linked with such libtool
8858 *** libraries will work regardless of this problem. Nevertheless, you
8859 *** may want to report the problem to your system manager and/or to
8860 *** bug-libtool@gnu.org
8870 MAGIC_CMD="$lt_save_MAGIC_CMD"
8875 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8876 if test -n "$MAGIC_CMD"; then
8877 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8878 $as_echo "$MAGIC_CMD" >&6; }
8880 { $as_echo "$as_me:$LINENO: result: no" >&5
8881 $as_echo "no" >&6; }
8894 # Use C for the default configuration in the libtool script
8898 ac_cpp='$CPP $CPPFLAGS'
8899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8904 # Source file extension for C test sources.
8907 # Object file extension for compiled C test sources.
8911 # Code to be used in simple compile tests
8912 lt_simple_compile_test_code="int some_variable = 0;"
8914 # Code to be used in simple link tests
8915 lt_simple_link_test_code='int main(){return(0);}'
8923 # If no C compiler was specified, use CC.
8926 # If no C compiler flags were specified, use CFLAGS.
8927 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8929 # Allow CC to be a program name with arguments.
8932 # Save the default compiler, since it gets overwritten when the other
8933 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8934 compiler_DEFAULT=$CC
8936 # save warnings/boilerplate of simple test code
8937 ac_outfile=conftest.$ac_objext
8938 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8939 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8940 _lt_compiler_boilerplate=`cat conftest.err`
8943 ac_outfile=conftest.$ac_objext
8944 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8945 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8946 _lt_linker_boilerplate=`cat conftest.err`
8951 ## There is no encapsulation within the following macros, do not change
8952 ## the running order or otherwise move them around unless you know exactly
8953 ## what you are doing...
8954 if test -n "$compiler"; then
8956 lt_prog_compiler_no_builtin_flag=
8958 if test "$GCC" = yes; then
8959 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8961 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8962 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8963 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8964 $as_echo_n "(cached) " >&6
8966 lt_cv_prog_compiler_rtti_exceptions=no
8967 ac_outfile=conftest.$ac_objext
8968 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8969 lt_compiler_flag="-fno-rtti -fno-exceptions"
8970 # Insert the option either (1) after the last *FLAGS variable, or
8971 # (2) before a word containing "conftest.", or (3) at the end.
8972 # Note that $ac_compile itself does not contain backslashes and begins
8973 # with a dollar sign (not a hyphen), so the echo should work correctly.
8974 # The option is referenced via a variable to avoid confusing sed.
8975 lt_compile=`echo "$ac_compile" | $SED \
8976 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8977 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8978 -e 's:$: $lt_compiler_flag:'`
8979 (eval echo "\"\$as_me:8979: $lt_compile\"" >&5)
8980 (eval "$lt_compile" 2>conftest.err)
8982 cat conftest.err >&5
8983 echo "$as_me:8983: \$? = $ac_status" >&5
8984 if (exit $ac_status) && test -s "$ac_outfile"; then
8985 # The compiler can only warn and ignore the option if not recognized
8986 # So say no if there are warnings other than the usual output.
8987 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8988 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8989 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8990 lt_cv_prog_compiler_rtti_exceptions=yes
8996 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8997 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8999 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9000 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9012 lt_prog_compiler_wl=
9013 lt_prog_compiler_pic=
9014 lt_prog_compiler_static=
9016 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9017 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9019 if test "$GCC" = yes; then
9020 lt_prog_compiler_wl='-Wl,'
9021 lt_prog_compiler_static='-static'
9025 # All AIX code is PIC.
9026 if test "$host_cpu" = ia64; then
9027 # AIX 5 now supports IA64 processor
9028 lt_prog_compiler_static='-Bstatic'
9035 # see comment about AmigaOS4 .so support
9036 lt_prog_compiler_pic='-fPIC'
9039 # FIXME: we need at least 68020 code to build shared libraries, but
9040 # adding the `-m68020' flag to GCC prevents building anything better,
9042 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9047 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9048 # PIC is the default for these OSes.
9051 mingw* | cygwin* | pw32* | os2* | cegcc*)
9052 # This hack is so that the source file can tell whether it is being
9053 # built for inclusion in a dll (and should export symbols for example).
9054 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9055 # (--disable-auto-import) libraries
9056 lt_prog_compiler_pic='-DDLL_EXPORT'
9059 darwin* | rhapsody*)
9060 # PIC is the default on this platform
9061 # Common symbols not allowed in MH_DYLIB files
9062 lt_prog_compiler_pic='-fno-common'
9066 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9067 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9068 # sets the default TLS model and affects inlining.
9074 lt_prog_compiler_pic='-fPIC'
9080 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9081 # Instead, we relocate shared libraries at runtime.
9085 # Just because we use GCC doesn't mean we suddenly get shared libraries
9086 # on systems that don't support them.
9087 lt_prog_compiler_can_build_shared=no
9092 # QNX uses GNU C++, but need to define -shared option too, otherwise
9094 lt_prog_compiler_pic='-fPIC -shared'
9098 if test -d /usr/nec; then
9099 lt_prog_compiler_pic=-Kconform_pic
9104 lt_prog_compiler_pic='-fPIC'
9108 # PORTME Check for flag to pass linker flags through the system compiler.
9111 lt_prog_compiler_wl='-Wl,'
9112 if test "$host_cpu" = ia64; then
9113 # AIX 5 now supports IA64 processor
9114 lt_prog_compiler_static='-Bstatic'
9116 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9120 mingw* | cygwin* | pw32* | os2* | cegcc*)
9121 # This hack is so that the source file can tell whether it is being
9122 # built for inclusion in a dll (and should export symbols for example).
9123 lt_prog_compiler_pic='-DDLL_EXPORT'
9126 hpux9* | hpux10* | hpux11*)
9127 lt_prog_compiler_wl='-Wl,'
9128 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9135 lt_prog_compiler_pic='+Z'
9138 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9139 lt_prog_compiler_static='${wl}-a ${wl}archive'
9142 irix5* | irix6* | nonstopux*)
9143 lt_prog_compiler_wl='-Wl,'
9144 # PIC (with -KPIC) is the default.
9145 lt_prog_compiler_static='-non_shared'
9148 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9149 case $cc_basename in
9150 # old Intel for x86_64 which still supported -KPIC.
9152 lt_prog_compiler_wl='-Wl,'
9153 lt_prog_compiler_pic='-KPIC'
9154 lt_prog_compiler_static='-static'
9156 # icc used to be incompatible with GCC.
9157 # ICC 10 doesn't accept -KPIC any more.
9159 lt_prog_compiler_wl='-Wl,'
9160 lt_prog_compiler_pic='-fPIC'
9161 lt_prog_compiler_static='-static'
9163 # Lahey Fortran 8.1.
9165 lt_prog_compiler_wl='-Wl,'
9166 lt_prog_compiler_pic='--shared'
9167 lt_prog_compiler_static='--static'
9169 pgcc* | pgf77* | pgf90* | pgf95*)
9170 # Portland Group compilers (*not* the Pentium gcc compiler,
9171 # which looks to be a dead project)
9172 lt_prog_compiler_wl='-Wl,'
9173 lt_prog_compiler_pic='-fpic'
9174 lt_prog_compiler_static='-Bstatic'
9177 lt_prog_compiler_wl='-Wl,'
9178 # All Alpha code is PIC.
9179 lt_prog_compiler_static='-non_shared'
9182 # IBM XL C 8.0/Fortran 10.1 on PPC
9183 lt_prog_compiler_wl='-Wl,'
9184 lt_prog_compiler_pic='-qpic'
9185 lt_prog_compiler_static='-qstaticlink'
9188 case `$CC -V 2>&1 | sed 5q` in
9191 lt_prog_compiler_pic='-KPIC'
9192 lt_prog_compiler_static='-Bstatic'
9193 lt_prog_compiler_wl='-Wl,'
9196 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9197 lt_prog_compiler_pic='-KPIC'
9198 lt_prog_compiler_static='-Bstatic'
9199 lt_prog_compiler_wl=''
9207 lt_prog_compiler_pic='-KPIC'
9208 lt_prog_compiler_static='-Bstatic'
9212 # QNX uses GNU C++, but need to define -shared option too, otherwise
9214 lt_prog_compiler_pic='-fPIC -shared'
9217 osf3* | osf4* | osf5*)
9218 lt_prog_compiler_wl='-Wl,'
9219 # All OSF/1 code is PIC.
9220 lt_prog_compiler_static='-non_shared'
9224 lt_prog_compiler_static='-non_shared'
9228 lt_prog_compiler_pic='-KPIC'
9229 lt_prog_compiler_static='-Bstatic'
9230 case $cc_basename in
9232 lt_prog_compiler_wl='-Qoption ld ';;
9234 lt_prog_compiler_wl='-Wl,';;
9239 lt_prog_compiler_wl='-Qoption ld '
9240 lt_prog_compiler_pic='-PIC'
9241 lt_prog_compiler_static='-Bstatic'
9244 sysv4 | sysv4.2uw2* | sysv4.3*)
9245 lt_prog_compiler_wl='-Wl,'
9246 lt_prog_compiler_pic='-KPIC'
9247 lt_prog_compiler_static='-Bstatic'
9251 if test -d /usr/nec ;then
9252 lt_prog_compiler_pic='-Kconform_pic'
9253 lt_prog_compiler_static='-Bstatic'
9257 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9258 lt_prog_compiler_wl='-Wl,'
9259 lt_prog_compiler_pic='-KPIC'
9260 lt_prog_compiler_static='-Bstatic'
9264 lt_prog_compiler_wl='-Wl,'
9265 lt_prog_compiler_can_build_shared=no
9269 lt_prog_compiler_pic='-pic'
9270 lt_prog_compiler_static='-Bstatic'
9274 lt_prog_compiler_can_build_shared=no
9280 # For platforms which do not support PIC, -DPIC is meaningless:
9282 lt_prog_compiler_pic=
9285 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9288 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9289 $as_echo "$lt_prog_compiler_pic" >&6; }
9297 # Check to make sure the PIC flag actually works.
9299 if test -n "$lt_prog_compiler_pic"; then
9300 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9301 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9302 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9303 $as_echo_n "(cached) " >&6
9305 lt_cv_prog_compiler_pic_works=no
9306 ac_outfile=conftest.$ac_objext
9307 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9308 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9309 # Insert the option either (1) after the last *FLAGS variable, or
9310 # (2) before a word containing "conftest.", or (3) at the end.
9311 # Note that $ac_compile itself does not contain backslashes and begins
9312 # with a dollar sign (not a hyphen), so the echo should work correctly.
9313 # The option is referenced via a variable to avoid confusing sed.
9314 lt_compile=`echo "$ac_compile" | $SED \
9315 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9316 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9317 -e 's:$: $lt_compiler_flag:'`
9318 (eval echo "\"\$as_me:9318: $lt_compile\"" >&5)
9319 (eval "$lt_compile" 2>conftest.err)
9321 cat conftest.err >&5
9322 echo "$as_me:9322: \$? = $ac_status" >&5
9323 if (exit $ac_status) && test -s "$ac_outfile"; then
9324 # The compiler can only warn and ignore the option if not recognized
9325 # So say no if there are warnings other than the usual output.
9326 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9327 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9328 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9329 lt_cv_prog_compiler_pic_works=yes
9335 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9336 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9338 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9339 case $lt_prog_compiler_pic in
9341 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9344 lt_prog_compiler_pic=
9345 lt_prog_compiler_can_build_shared=no
9356 # Check to make sure the static flag actually works.
9358 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9359 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9360 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9361 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9362 $as_echo_n "(cached) " >&6
9364 lt_cv_prog_compiler_static_works=no
9365 save_LDFLAGS="$LDFLAGS"
9366 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9367 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9368 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9369 # The linker can only warn and ignore the option if not recognized
9370 # So say no if there are warnings
9371 if test -s conftest.err; then
9372 # Append any errors to the config.log.
9373 cat conftest.err 1>&5
9374 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9375 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9376 if diff conftest.exp conftest.er2 >/dev/null; then
9377 lt_cv_prog_compiler_static_works=yes
9380 lt_cv_prog_compiler_static_works=yes
9384 LDFLAGS="$save_LDFLAGS"
9387 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9388 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9390 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9393 lt_prog_compiler_static=
9402 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9403 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9404 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9405 $as_echo_n "(cached) " >&6
9407 lt_cv_prog_compiler_c_o=no
9408 $RM -r conftest 2>/dev/null
9412 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9414 lt_compiler_flag="-o out/conftest2.$ac_objext"
9415 # Insert the option either (1) after the last *FLAGS variable, or
9416 # (2) before a word containing "conftest.", or (3) at the end.
9417 # Note that $ac_compile itself does not contain backslashes and begins
9418 # with a dollar sign (not a hyphen), so the echo should work correctly.
9419 lt_compile=`echo "$ac_compile" | $SED \
9420 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9421 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9422 -e 's:$: $lt_compiler_flag:'`
9423 (eval echo "\"\$as_me:9423: $lt_compile\"" >&5)
9424 (eval "$lt_compile" 2>out/conftest.err)
9426 cat out/conftest.err >&5
9427 echo "$as_me:9427: \$? = $ac_status" >&5
9428 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9430 # The compiler can only warn and ignore the option if not recognized
9431 # So say no if there are warnings
9432 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9433 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9434 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9435 lt_cv_prog_compiler_c_o=yes
9440 # SGI C++ compiler will create directory out/ii_files/ for
9441 # template instantiation
9442 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9443 $RM out/* && rmdir out
9449 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9450 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9457 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9458 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9459 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9460 $as_echo_n "(cached) " >&6
9462 lt_cv_prog_compiler_c_o=no
9463 $RM -r conftest 2>/dev/null
9467 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9469 lt_compiler_flag="-o out/conftest2.$ac_objext"
9470 # Insert the option either (1) after the last *FLAGS variable, or
9471 # (2) before a word containing "conftest.", or (3) at the end.
9472 # Note that $ac_compile itself does not contain backslashes and begins
9473 # with a dollar sign (not a hyphen), so the echo should work correctly.
9474 lt_compile=`echo "$ac_compile" | $SED \
9475 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9476 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9477 -e 's:$: $lt_compiler_flag:'`
9478 (eval echo "\"\$as_me:9478: $lt_compile\"" >&5)
9479 (eval "$lt_compile" 2>out/conftest.err)
9481 cat out/conftest.err >&5
9482 echo "$as_me:9482: \$? = $ac_status" >&5
9483 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9485 # The compiler can only warn and ignore the option if not recognized
9486 # So say no if there are warnings
9487 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9488 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9489 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9490 lt_cv_prog_compiler_c_o=yes
9495 # SGI C++ compiler will create directory out/ii_files/ for
9496 # template instantiation
9497 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9498 $RM out/* && rmdir out
9504 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9505 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9510 hard_links="nottested"
9511 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9512 # do not overwrite the value of need_locks provided by the user
9513 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9514 $as_echo_n "checking if we can lock with hard links... " >&6; }
9517 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9519 ln conftest.a conftest.b 2>&5 || hard_links=no
9520 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9521 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
9522 $as_echo "$hard_links" >&6; }
9523 if test "$hard_links" = no; then
9524 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9525 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9537 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9538 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9541 allow_undefined_flag=
9542 always_export_symbols=no
9544 archive_expsym_cmds=
9545 compiler_needs_object=no
9546 enable_shared_with_static_runtimes=no
9547 export_dynamic_flag_spec=
9548 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9549 hardcode_automatic=no
9551 hardcode_direct_absolute=no
9552 hardcode_libdir_flag_spec=
9553 hardcode_libdir_flag_spec_ld=
9554 hardcode_libdir_separator=
9556 hardcode_shlibpath_var=unsupported
9558 link_all_deplibs=unknown
9561 old_archive_from_new_cmds=
9562 old_archive_from_expsyms_cmds=
9563 thread_safe_flag_spec=
9564 whole_archive_flag_spec=
9565 # include_expsyms should be a list of space-separated symbols to be *always*
9566 # included in the symbol list
9568 # exclude_expsyms can be an extended regexp of symbols to exclude
9569 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9570 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9571 # as well as any symbol that contains `d'.
9572 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9573 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9574 # platforms (ab)use it in PIC code, but their linkers get confused if
9575 # the symbol is explicitly referenced. Since portable code cannot
9576 # rely on this symbol name, it's probably fine to never include it in
9577 # preloaded symbol tables.
9578 # Exclude shared library initialization/finalization symbols.
9579 extract_expsyms_cmds=
9582 cygwin* | mingw* | pw32* | cegcc*)
9583 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9584 # When not using gcc, we currently assume that we are using
9585 # Microsoft Visual C++.
9586 if test "$GCC" != yes; then
9591 # we just hope/assume this is gcc and not c89 (= MSVC++)
9600 if test "$with_gnu_ld" = yes; then
9601 # If archive_cmds runs LD, not CC, wlarc should be empty
9604 # Set some defaults for GNU ld with shared library support. These
9605 # are reset later if shared libraries are not supported. Putting them
9606 # here allows them to be overridden if necessary.
9607 runpath_var=LD_RUN_PATH
9608 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9609 export_dynamic_flag_spec='${wl}--export-dynamic'
9610 # ancient GNU ld didn't support --whole-archive et. al.
9611 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9612 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9614 whole_archive_flag_spec=
9616 supports_anon_versioning=no
9617 case `$LD -v 2>&1` in
9618 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9619 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9620 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9621 *\ 2.11.*) ;; # other 2.11 versions
9622 *) supports_anon_versioning=yes ;;
9625 # See if GNU ld supports shared libraries.
9628 # On AIX/PPC, the GNU linker is very broken
9629 if test "$host_cpu" != ia64; then
9633 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9634 *** to be unable to reliably create shared libraries on AIX.
9635 *** Therefore, libtool is disabling shared libraries support. If you
9636 *** really care for shared libraries, you may want to modify your PATH
9637 *** so that a non-GNU linker is found, and then restart.
9646 # see comment about AmigaOS4 .so support
9647 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9648 archive_expsym_cmds=''
9651 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)'
9652 hardcode_libdir_flag_spec='-L$libdir'
9653 hardcode_minus_L=yes
9659 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9660 allow_undefined_flag=unsupported
9661 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9662 # support --undefined. This deserves some investigation. FIXME
9663 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9669 cygwin* | mingw* | pw32* | cegcc*)
9670 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9671 # as there is no search path for DLLs.
9672 hardcode_libdir_flag_spec='-L$libdir'
9673 allow_undefined_flag=unsupported
9674 always_export_symbols=no
9675 enable_shared_with_static_runtimes=yes
9676 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9678 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9679 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9680 # If the export-symbols file already is a .def file (1st line
9681 # is EXPORTS), use it as is; otherwise, prepend...
9682 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9683 cp $export_symbols $output_objdir/$soname.def;
9685 echo EXPORTS > $output_objdir/$soname.def;
9686 cat $export_symbols >> $output_objdir/$soname.def;
9688 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9696 hardcode_shlibpath_var=no
9697 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9698 export_dynamic_flag_spec='${wl}-E'
9699 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9700 # Instead, shared libraries are loaded at an image base (0x10000000 by
9701 # default) and relocated if they conflict, which is a slow very memory
9702 # consuming and fragmenting process. To avoid this, we pick a random,
9703 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9704 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9705 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9706 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'
9709 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9711 if test "$host_os" = linux-dietlibc; then
9712 case $cc_basename in
9713 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9716 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9717 && test "$tmp_diet" = no
9720 tmp_sharedflag='-shared'
9721 case $cc_basename,$host_cpu in
9722 pgcc*) # Portland Group C compiler
9723 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'
9724 tmp_addflag=' $pic_flag'
9726 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9727 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'
9728 tmp_addflag=' $pic_flag -Mnomain' ;;
9729 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9730 tmp_addflag=' -i_dynamic' ;;
9731 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9732 tmp_addflag=' -i_dynamic -nofor_main' ;;
9733 ifc* | ifort*) # Intel Fortran compiler
9734 tmp_addflag=' -nofor_main' ;;
9735 lf95*) # Lahey Fortran 8.1
9736 whole_archive_flag_spec=
9737 tmp_sharedflag='--shared' ;;
9738 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9739 tmp_sharedflag='-qmkshrobj'
9742 case `$CC -V 2>&1 | sed 5q` in
9743 *Sun\ C*) # Sun C 5.9
9744 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'
9745 compiler_needs_object=yes
9746 tmp_sharedflag='-G' ;;
9747 *Sun\ F*) # Sun Fortran 8.3
9748 tmp_sharedflag='-G' ;;
9750 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9752 if test "x$supports_anon_versioning" = xyes; then
9753 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9754 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9755 echo "local: *; };" >> $output_objdir/$libname.ver~
9756 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9759 case $cc_basename in
9761 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9762 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9763 hardcode_libdir_flag_spec=
9764 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9765 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9766 if test "x$supports_anon_versioning" = xyes; then
9767 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9768 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9769 echo "local: *; };" >> $output_objdir/$libname.ver~
9770 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9780 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9781 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9784 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9785 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9790 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9794 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9795 *** create shared libraries on Solaris systems. Therefore, libtool
9796 *** is disabling shared libraries support. We urge you to upgrade GNU
9797 *** binutils to release 2.9.1 or newer. Another option is to modify
9798 *** your PATH or compiler configuration so that the native linker is
9799 *** used, and then restart.
9802 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9803 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9804 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9810 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9811 case `$LD -v 2>&1` in
9812 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9816 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9817 *** reliably create shared libraries on SCO systems. Therefore, libtool
9818 *** is disabling shared libraries support. We urge you to upgrade GNU
9819 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9820 *** your PATH or compiler configuration so that the native linker is
9821 *** used, and then restart.
9826 # For security reasons, it is highly recommended that you always
9827 # use absolute paths for naming shared libraries, and exclude the
9828 # DT_RUNPATH tag from executables and libraries. But doing so
9829 # requires that you compile everything twice, which is a pain.
9830 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9831 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9832 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9833 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9842 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9845 hardcode_shlibpath_var=no
9849 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9850 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9851 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9858 if test "$ld_shlibs" = no; then
9860 hardcode_libdir_flag_spec=
9861 export_dynamic_flag_spec=
9862 whole_archive_flag_spec=
9865 # PORTME fill in a description of your system's linker (not GNU ld)
9868 allow_undefined_flag=unsupported
9869 always_export_symbols=yes
9870 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'
9871 # Note: this linker hardcodes the directories in LIBPATH if there
9872 # are no directories specified by -L.
9873 hardcode_minus_L=yes
9874 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9875 # Neither direct hardcoding nor static linking is supported with a
9877 hardcode_direct=unsupported
9882 if test "$host_cpu" = ia64; then
9883 # On IA64, the linker does run time linking by default, so we don't
9884 # have to do anything special.
9885 aix_use_runtimelinking=no
9886 exp_sym_flag='-Bexport'
9889 # If we're using GNU nm, then we don't want the "-C" option.
9890 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9891 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9892 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'
9894 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'
9896 aix_use_runtimelinking=no
9898 # Test if we are trying to use run time linking or normal
9899 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9900 # need to do runtime linking.
9901 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9902 for ld_flag in $LDFLAGS; do
9903 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9904 aix_use_runtimelinking=yes
9911 exp_sym_flag='-bexport'
9912 no_entry_flag='-bnoentry'
9915 # When large executables or shared objects are built, AIX ld can
9916 # have problems creating the table of contents. If linking a library
9917 # or program results in "error TOC overflow" add -mminimal-toc to
9918 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9919 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9923 hardcode_direct_absolute=yes
9924 hardcode_libdir_separator=':'
9925 link_all_deplibs=yes
9926 file_list_spec='${wl}-f,'
9928 if test "$GCC" = yes; then
9929 case $host_os in aix4.[012]|aix4.[012].*)
9930 # We only want to do this on AIX 4.2 and lower, the check
9931 # below for broken collect2 doesn't work under 4.3+
9932 collect2name=`${CC} -print-prog-name=collect2`
9933 if test -f "$collect2name" &&
9934 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9936 # We have reworked collect2
9939 # We have old collect2
9940 hardcode_direct=unsupported
9941 # It fails to find uninstalled libraries when the uninstalled
9942 # path is not listed in the libpath. Setting hardcode_minus_L
9943 # to unsupported forces relinking
9944 hardcode_minus_L=yes
9945 hardcode_libdir_flag_spec='-L$libdir'
9946 hardcode_libdir_separator=
9950 shared_flag='-shared'
9951 if test "$aix_use_runtimelinking" = yes; then
9952 shared_flag="$shared_flag "'${wl}-G'
9956 if test "$host_cpu" = ia64; then
9957 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9958 # chokes on -Wl,-G. The following line is correct:
9961 if test "$aix_use_runtimelinking" = yes; then
9962 shared_flag='${wl}-G'
9964 shared_flag='${wl}-bM:SRE'
9969 export_dynamic_flag_spec='${wl}-bexpall'
9970 # It seems that -bexpall does not export symbols beginning with
9971 # underscore (_), so it is better to generate a list of symbols to export.
9972 always_export_symbols=yes
9973 if test "$aix_use_runtimelinking" = yes; then
9974 # Warning - without using the other runtime loading flags (-brtl),
9975 # -berok will link without error, but may produce a broken library.
9976 allow_undefined_flag='-berok'
9977 # Determine the default libpath from the value encoded in an
9979 cat >conftest.$ac_ext <<_ACEOF
9982 cat confdefs.h >>conftest.$ac_ext
9983 cat >>conftest.$ac_ext <<_ACEOF
9984 /* end confdefs.h. */
9994 rm -f conftest.$ac_objext conftest$ac_exeext
9995 if { (ac_try="$ac_link"
9997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9998 *) ac_try_echo=$ac_try;;
10000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10001 $as_echo "$ac_try_echo") >&5
10002 (eval "$ac_link") 2>conftest.er1
10004 grep -v '^ *+' conftest.er1 >conftest.err
10006 cat conftest.err >&5
10007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); } && {
10009 test -z "$ac_c_werror_flag" ||
10010 test ! -s conftest.err
10011 } && test -s conftest$ac_exeext && {
10012 test "$cross_compiling" = yes ||
10013 $as_test_x conftest$ac_exeext
10016 lt_aix_libpath_sed='
10017 /Import File Strings/,/^$/ {
10023 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10024 # Check for a 64-bit object if we didn't find anything.
10025 if test -z "$aix_libpath"; then
10026 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10029 $as_echo "$as_me: failed program was:" >&5
10030 sed 's/^/| /' conftest.$ac_ext >&5
10035 rm -rf conftest.dSYM
10036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10037 conftest$ac_exeext conftest.$ac_ext
10038 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10040 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10041 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"
10043 if test "$host_cpu" = ia64; then
10044 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10045 allow_undefined_flag="-z nodefs"
10046 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"
10048 # Determine the default libpath from the value encoded in an
10049 # empty executable.
10050 cat >conftest.$ac_ext <<_ACEOF
10053 cat confdefs.h >>conftest.$ac_ext
10054 cat >>conftest.$ac_ext <<_ACEOF
10055 /* end confdefs.h. */
10065 rm -f conftest.$ac_objext conftest$ac_exeext
10066 if { (ac_try="$ac_link"
10067 case "(($ac_try" in
10068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10069 *) ac_try_echo=$ac_try;;
10071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10072 $as_echo "$ac_try_echo") >&5
10073 (eval "$ac_link") 2>conftest.er1
10075 grep -v '^ *+' conftest.er1 >conftest.err
10077 cat conftest.err >&5
10078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); } && {
10080 test -z "$ac_c_werror_flag" ||
10081 test ! -s conftest.err
10082 } && test -s conftest$ac_exeext && {
10083 test "$cross_compiling" = yes ||
10084 $as_test_x conftest$ac_exeext
10087 lt_aix_libpath_sed='
10088 /Import File Strings/,/^$/ {
10094 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10095 # Check for a 64-bit object if we didn't find anything.
10096 if test -z "$aix_libpath"; then
10097 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10100 $as_echo "$as_me: failed program was:" >&5
10101 sed 's/^/| /' conftest.$ac_ext >&5
10106 rm -rf conftest.dSYM
10107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10108 conftest$ac_exeext conftest.$ac_ext
10109 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10111 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10112 # Warning - without using the other run time loading flags,
10113 # -berok will link without error, but may produce a broken library.
10114 no_undefined_flag=' ${wl}-bernotok'
10115 allow_undefined_flag=' ${wl}-berok'
10116 # Exported symbols can be pulled into shared objects from archives
10117 whole_archive_flag_spec='$convenience'
10118 archive_cmds_need_lc=yes
10119 # This is similar to how AIX traditionally builds its shared libraries.
10120 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'
10128 # see comment about AmigaOS4 .so support
10129 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10130 archive_expsym_cmds=''
10133 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)'
10134 hardcode_libdir_flag_spec='-L$libdir'
10135 hardcode_minus_L=yes
10141 export_dynamic_flag_spec=-rdynamic
10144 cygwin* | mingw* | pw32* | cegcc*)
10145 # When not using gcc, we currently assume that we are using
10146 # Microsoft Visual C++.
10147 # hardcode_libdir_flag_spec is actually meaningless, as there is
10148 # no search path for DLLs.
10149 hardcode_libdir_flag_spec=' '
10150 allow_undefined_flag=unsupported
10151 # Tell ltmain to make .lib files, not .a files.
10153 # Tell ltmain to make .dll files, not .so files.
10155 # FIXME: Setting linknames here is a bad hack.
10156 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10157 # The linker will automatically build a .lib file if we build a DLL.
10158 old_archive_from_new_cmds='true'
10159 # FIXME: Should let the user specify the lib program.
10160 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10161 fix_srcfile_path='`cygpath -w "$srcfile"`'
10162 enable_shared_with_static_runtimes=yes
10165 darwin* | rhapsody*)
10168 archive_cmds_need_lc=no
10170 hardcode_automatic=yes
10171 hardcode_shlibpath_var=unsupported
10172 whole_archive_flag_spec=''
10173 link_all_deplibs=yes
10174 allow_undefined_flag="$_lt_dar_allow_undefined"
10175 case $cc_basename in
10176 ifort*) _lt_dar_can_shared=yes ;;
10177 *) _lt_dar_can_shared=$GCC ;;
10179 if test "$_lt_dar_can_shared" = "yes"; then
10180 output_verbose_link_cmd=echo
10181 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10182 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10183 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10184 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10193 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10194 hardcode_libdir_flag_spec='-L$libdir'
10195 hardcode_shlibpath_var=no
10202 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10203 # support. Future versions do this automatically, but an explicit c++rt0.o
10204 # does not break anything, and helps significantly (at the cost of a little
10207 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10208 hardcode_libdir_flag_spec='-R$libdir'
10209 hardcode_direct=yes
10210 hardcode_shlibpath_var=no
10213 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10215 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10216 hardcode_direct=yes
10217 hardcode_minus_L=yes
10218 hardcode_shlibpath_var=no
10221 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10222 freebsd* | dragonfly*)
10223 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10224 hardcode_libdir_flag_spec='-R$libdir'
10225 hardcode_direct=yes
10226 hardcode_shlibpath_var=no
10230 if test "$GCC" = yes; then
10231 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'
10233 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'
10235 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10236 hardcode_libdir_separator=:
10237 hardcode_direct=yes
10239 # hardcode_minus_L: Not really in the search PATH,
10240 # but as the default location of the library.
10241 hardcode_minus_L=yes
10242 export_dynamic_flag_spec='${wl}-E'
10246 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10247 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10249 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10251 if test "$with_gnu_ld" = no; then
10252 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10253 hardcode_libdir_flag_spec_ld='+b $libdir'
10254 hardcode_libdir_separator=:
10255 hardcode_direct=yes
10256 hardcode_direct_absolute=yes
10257 export_dynamic_flag_spec='${wl}-E'
10258 # hardcode_minus_L: Not really in the search PATH,
10259 # but as the default location of the library.
10260 hardcode_minus_L=yes
10265 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10268 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10271 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10274 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10280 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10283 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10286 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10290 if test "$with_gnu_ld" = no; then
10291 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10292 hardcode_libdir_separator=:
10297 hardcode_shlibpath_var=no
10300 hardcode_direct=yes
10301 hardcode_direct_absolute=yes
10302 export_dynamic_flag_spec='${wl}-E'
10304 # hardcode_minus_L: Not really in the search PATH,
10305 # but as the default location of the library.
10306 hardcode_minus_L=yes
10312 irix5* | irix6* | nonstopux*)
10313 if test "$GCC" = yes; then
10314 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'
10315 # Try to use the -exported_symbol ld option, if it does not
10316 # work, assume that -exports_file does not work either and
10317 # implicitly export all symbols.
10318 save_LDFLAGS="$LDFLAGS"
10319 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10320 cat >conftest.$ac_ext <<_ACEOF
10323 rm -f conftest.$ac_objext conftest$ac_exeext
10324 if { (ac_try="$ac_link"
10325 case "(($ac_try" in
10326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10327 *) ac_try_echo=$ac_try;;
10329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10330 $as_echo "$ac_try_echo") >&5
10331 (eval "$ac_link") 2>conftest.er1
10333 grep -v '^ *+' conftest.er1 >conftest.err
10335 cat conftest.err >&5
10336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337 (exit $ac_status); } && {
10338 test -z "$ac_c_werror_flag" ||
10339 test ! -s conftest.err
10340 } && test -s conftest$ac_exeext && {
10341 test "$cross_compiling" = yes ||
10342 $as_test_x conftest$ac_exeext
10344 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'
10347 $as_echo "$as_me: failed program was:" >&5
10348 sed 's/^/| /' conftest.$ac_ext >&5
10353 rm -rf conftest.dSYM
10354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10355 conftest$ac_exeext conftest.$ac_ext
10356 LDFLAGS="$save_LDFLAGS"
10358 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'
10359 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'
10361 archive_cmds_need_lc='no'
10362 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10363 hardcode_libdir_separator=:
10365 link_all_deplibs=yes
10369 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10370 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10372 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10374 hardcode_libdir_flag_spec='-R$libdir'
10375 hardcode_direct=yes
10376 hardcode_shlibpath_var=no
10380 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10381 hardcode_direct=yes
10382 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10383 hardcode_libdir_separator=:
10384 hardcode_shlibpath_var=no
10391 if test -f /usr/libexec/ld.so; then
10392 hardcode_direct=yes
10393 hardcode_shlibpath_var=no
10394 hardcode_direct_absolute=yes
10395 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10396 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10397 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10398 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10399 export_dynamic_flag_spec='${wl}-E'
10402 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10403 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10404 hardcode_libdir_flag_spec='-R$libdir'
10407 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10408 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10418 hardcode_libdir_flag_spec='-L$libdir'
10419 hardcode_minus_L=yes
10420 allow_undefined_flag=unsupported
10421 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'
10422 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10426 if test "$GCC" = yes; then
10427 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10428 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'
10430 allow_undefined_flag=' -expect_unresolved \*'
10431 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'
10433 archive_cmds_need_lc='no'
10434 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10435 hardcode_libdir_separator=:
10438 osf4* | osf5*) # as osf3* with the addition of -msym flag
10439 if test "$GCC" = yes; then
10440 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10441 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'
10442 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10444 allow_undefined_flag=' -expect_unresolved \*'
10445 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'
10446 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~
10447 $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'
10449 # Both c and cxx compiler support -rpath directly
10450 hardcode_libdir_flag_spec='-rpath $libdir'
10452 archive_cmds_need_lc='no'
10453 hardcode_libdir_separator=:
10457 no_undefined_flag=' -z defs'
10458 if test "$GCC" = yes; then
10460 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10461 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10462 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10464 case `$CC -V 2>&1` in
10467 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10468 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10469 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10473 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10474 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10475 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10479 hardcode_libdir_flag_spec='-R$libdir'
10480 hardcode_shlibpath_var=no
10482 solaris2.[0-5] | solaris2.[0-5].*) ;;
10484 # The compiler driver will combine and reorder linker options,
10485 # but understands `-z linker_flag'. GCC discards it without `$wl',
10486 # but is careful enough not to reorder.
10487 # Supported since Solaris 2.6 (maybe 2.5.1?)
10488 if test "$GCC" = yes; then
10489 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10491 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10495 link_all_deplibs=yes
10499 if test "x$host_vendor" = xsequent; then
10500 # Use $CC to link under sequent, because it throws in some extra .o
10501 # files that make .init and .fini sections work.
10502 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10504 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10506 hardcode_libdir_flag_spec='-L$libdir'
10507 hardcode_direct=yes
10508 hardcode_minus_L=yes
10509 hardcode_shlibpath_var=no
10513 case $host_vendor in
10515 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10516 hardcode_direct=yes # is this really true???
10519 ## LD is ld it makes a PLAMLIB
10520 ## CC just makes a GrossModule.
10521 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10522 reload_cmds='$CC -r -o $output$reload_objs'
10526 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10527 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10530 runpath_var='LD_RUN_PATH'
10531 hardcode_shlibpath_var=no
10535 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10536 hardcode_shlibpath_var=no
10537 export_dynamic_flag_spec='-Bexport'
10541 if test -d /usr/nec; then
10542 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10543 hardcode_shlibpath_var=no
10544 runpath_var=LD_RUN_PATH
10545 hardcode_runpath_var=yes
10550 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10551 no_undefined_flag='${wl}-z,text'
10552 archive_cmds_need_lc=no
10553 hardcode_shlibpath_var=no
10554 runpath_var='LD_RUN_PATH'
10556 if test "$GCC" = yes; then
10557 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10558 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10560 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10561 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10565 sysv5* | sco3.2v5* | sco5v6*)
10566 # Note: We can NOT use -z defs as we might desire, because we do not
10567 # link with -lc, and that would cause any symbols used from libc to
10568 # always be unresolved, which means just about no library would
10569 # ever link correctly. If we're not using GNU ld we use -z text
10570 # though, which does catch some bad symbols but isn't as heavy-handed
10572 no_undefined_flag='${wl}-z,text'
10573 allow_undefined_flag='${wl}-z,nodefs'
10574 archive_cmds_need_lc=no
10575 hardcode_shlibpath_var=no
10576 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10577 hardcode_libdir_separator=':'
10578 link_all_deplibs=yes
10579 export_dynamic_flag_spec='${wl}-Bexport'
10580 runpath_var='LD_RUN_PATH'
10582 if test "$GCC" = yes; then
10583 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10584 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10586 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10587 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10592 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10593 hardcode_libdir_flag_spec='-L$libdir'
10594 hardcode_shlibpath_var=no
10602 if test x$host_vendor = xsni; then
10604 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10605 export_dynamic_flag_spec='${wl}-Blargedynsym'
10611 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10612 $as_echo "$ld_shlibs" >&6; }
10613 test "$ld_shlibs" = no && can_build_shared=no
10615 with_gnu_ld=$with_gnu_ld
10632 # Do we need to explicitly link libc?
10634 case "x$archive_cmds_need_lc" in
10636 # Assume -lc should be added
10637 archive_cmds_need_lc=yes
10639 if test "$enable_shared" = yes && test "$GCC" = yes; then
10640 case $archive_cmds in
10642 # FIXME: we may have to deal with multi-command sequences.
10645 # Test whether the compiler implicitly links with -lc since on some
10646 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10647 # to ld, don't add -lc before -lgcc.
10648 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10649 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10650 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
10651 $as_echo_n "(cached) " >&6
10654 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10657 (eval $ac_compile) 2>&5
10659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); } 2>conftest.err; then
10663 libobjs=conftest.$ac_objext
10665 wl=$lt_prog_compiler_wl
10666 pic_flag=$lt_prog_compiler_pic
10672 lt_save_allow_undefined_flag=$allow_undefined_flag
10673 allow_undefined_flag=
10674 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10675 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); }
10680 lt_cv_archive_cmds_need_lc=no
10682 lt_cv_archive_cmds_need_lc=yes
10684 allow_undefined_flag=$lt_save_allow_undefined_flag
10686 cat conftest.err 1>&5
10691 { $as_echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
10692 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10693 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10856 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10857 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10859 if test "$GCC" = yes; then
10861 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10862 *) lt_awk_arg="/^libraries:/" ;;
10864 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10865 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10866 # if the path contains ";" then we assume it to be the separator
10867 # otherwise default to the standard path separator (i.e. ":") - it is
10868 # assumed that no part of a normal pathname contains ";" but that should
10869 # okay in the real world where ";" in dirpaths is itself problematic.
10870 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10872 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10874 # Ok, now we have the path, separated by spaces, we can step through it
10875 # and add multilib dir if necessary.
10876 lt_tmp_lt_search_path_spec=
10877 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10878 for lt_sys_path in $lt_search_path_spec; do
10879 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10880 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10882 test -d "$lt_sys_path" && \
10883 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10886 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10887 BEGIN {RS=" "; FS="/|\n";} {
10890 for (lt_i = NF; lt_i > 0; lt_i--) {
10891 if ($lt_i != "" && $lt_i != ".") {
10892 if ($lt_i == "..") {
10895 if (lt_count == 0) {
10896 lt_foo="/" $lt_i lt_foo;
10903 if (lt_foo != "") { lt_freq[lt_foo]++; }
10904 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10906 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10908 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10910 library_names_spec=
10911 libname_spec='lib$name'
10915 postuninstall_cmds=
10919 shlibpath_overrides_runpath=unknown
10921 dynamic_linker="$host_os ld.so"
10922 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10923 need_lib_prefix=unknown
10924 hardcode_into_libs=no
10926 # when you set need_version to no, make sure it does not cause -set_version
10927 # flags to be left without arguments
10928 need_version=unknown
10933 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10934 shlibpath_var=LIBPATH
10936 # AIX 3 has no versioning support, so we append a major version to the name.
10937 soname_spec='${libname}${release}${shared_ext}$major'
10944 hardcode_into_libs=yes
10945 if test "$host_cpu" = ia64; then
10946 # AIX 5 supports IA64
10947 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10948 shlibpath_var=LD_LIBRARY_PATH
10950 # With GCC up to 2.95.x, collect2 would create an import file
10951 # for dependence libraries. The import file would start with
10952 # the line `#! .'. This would cause the generated library to
10953 # depend on `.', always an invalid library. This was fixed in
10954 # development snapshots of GCC prior to 3.0.
10956 aix4 | aix4.[01] | aix4.[01].*)
10957 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10959 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10962 can_build_shared=no
10966 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10967 # soname into executable. Probably we can add versioning support to
10968 # collect2, so additional links can be useful in future.
10969 if test "$aix_use_runtimelinking" = yes; then
10970 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10971 # instead of lib<name>.a to let people know that these are not
10972 # typical AIX shared libraries.
10973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10975 # We preserve .a as extension for shared libraries through AIX4.2
10976 # and later when we are not doing run time linking.
10977 library_names_spec='${libname}${release}.a $libname.a'
10978 soname_spec='${libname}${release}${shared_ext}$major'
10980 shlibpath_var=LIBPATH
10987 # Since July 2007 AmigaOS4 officially supports .so libraries.
10988 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10992 library_names_spec='$libname.ixlibrary $libname.a'
10993 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10994 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'
11000 library_names_spec='${libname}${shared_ext}'
11001 dynamic_linker="$host_os ld.so"
11002 shlibpath_var=LIBRARY_PATH
11008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11009 soname_spec='${libname}${release}${shared_ext}$major'
11010 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11011 shlibpath_var=LD_LIBRARY_PATH
11012 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11013 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11014 # the default ld.so.conf also contains /usr/contrib/lib and
11015 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11016 # libtool to hard-code these into programs
11019 cygwin* | mingw* | pw32* | cegcc*)
11020 version_type=windows
11025 case $GCC,$host_os in
11026 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11027 library_names_spec='$libname.dll.a'
11028 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11029 postinstall_cmds='base_file=`basename \${file}`~
11030 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11031 dldir=$destdir/`dirname \$dlpath`~
11032 test -d \$dldir || mkdir -p \$dldir~
11033 $install_prog $dir/$dlname \$dldir/$dlname~
11034 chmod a+x \$dldir/$dlname~
11035 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11036 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11038 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11039 dlpath=$dir/\$dldll~
11041 shlibpath_overrides_runpath=yes
11045 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11046 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11047 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11050 # MinGW DLLs use traditional 'lib' prefix
11051 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11052 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11053 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11054 # It is most probably a Windows format PATH printed by
11055 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11056 # path with ; separators, and with drive letters. We can handle the
11057 # drive letters (cygwin fileutils understands them), so leave them,
11058 # especially as we might pass files found there to a mingw objdump,
11059 # which wouldn't understand a cygwinified path. Ahh.
11060 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11062 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11066 # pw32 DLLs use 'pw' prefix rather than 'lib'
11067 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11073 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11076 dynamic_linker='Win32 ld.exe'
11077 # FIXME: first we should search . and the directory the executable is in
11081 darwin* | rhapsody*)
11082 dynamic_linker="$host_os dyld"
11083 version_type=darwin
11086 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11087 soname_spec='${libname}${release}${major}$shared_ext'
11088 shlibpath_overrides_runpath=yes
11089 shlibpath_var=DYLD_LIBRARY_PATH
11090 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11092 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11093 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11101 soname_spec='${libname}${release}${shared_ext}$major'
11102 shlibpath_var=LD_LIBRARY_PATH
11109 freebsd* | dragonfly*)
11110 # DragonFly does not have aout. When/if they implement a new
11111 # versioning mechanism, adjust this.
11112 if test -x /usr/bin/objformat; then
11113 objformat=`/usr/bin/objformat`
11116 freebsd[123]*) objformat=aout ;;
11117 *) objformat=elf ;;
11120 version_type=freebsd-$objformat
11121 case $version_type in
11123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11128 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11132 shlibpath_var=LD_LIBRARY_PATH
11135 shlibpath_overrides_runpath=yes
11137 freebsd3.[01]* | freebsdelf3.[01]*)
11138 shlibpath_overrides_runpath=yes
11139 hardcode_into_libs=yes
11141 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11142 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11143 shlibpath_overrides_runpath=no
11144 hardcode_into_libs=yes
11146 *) # from 4.6 on, and DragonFly
11147 shlibpath_overrides_runpath=yes
11148 hardcode_into_libs=yes
11157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11158 soname_spec='${libname}${release}${shared_ext}$major'
11159 shlibpath_var=LD_LIBRARY_PATH
11160 hardcode_into_libs=yes
11163 hpux9* | hpux10* | hpux11*)
11164 # Give a soname corresponding to the major version so that dld.sl refuses to
11165 # link against other versions.
11172 hardcode_into_libs=yes
11173 dynamic_linker="$host_os dld.so"
11174 shlibpath_var=LD_LIBRARY_PATH
11175 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11177 soname_spec='${libname}${release}${shared_ext}$major'
11178 if test "X$HPUX_IA64_MODE" = X32; then
11179 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11181 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11183 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11187 hardcode_into_libs=yes
11188 dynamic_linker="$host_os dld.sl"
11189 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11190 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11192 soname_spec='${libname}${release}${shared_ext}$major'
11193 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11194 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11198 dynamic_linker="$host_os dld.sl"
11199 shlibpath_var=SHLIB_PATH
11200 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11202 soname_spec='${libname}${release}${shared_ext}$major'
11205 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11206 postinstall_cmds='chmod 555 $lib'
11213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11214 soname_spec='${libname}${release}${shared_ext}$major'
11215 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11216 shlibpath_var=LD_LIBRARY_PATH
11217 shlibpath_overrides_runpath=no
11218 hardcode_into_libs=yes
11221 irix5* | irix6* | nonstopux*)
11223 nonstopux*) version_type=nonstopux ;;
11225 if test "$lt_cv_prog_gnu_ld" = yes; then
11233 soname_spec='${libname}${release}${shared_ext}$major'
11234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11236 irix5* | nonstopux*)
11237 libsuff= shlibsuff=
11240 case $LD in # libtool.m4 will add one of these switches to LD
11241 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11242 libsuff= shlibsuff= libmagic=32-bit;;
11243 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11244 libsuff=32 shlibsuff=N32 libmagic=N32;;
11245 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11246 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11247 *) libsuff= shlibsuff= libmagic=never-match;;
11251 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11252 shlibpath_overrides_runpath=no
11253 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11254 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11255 hardcode_into_libs=yes
11258 # No shared lib support for Linux oldld, aout, or coff.
11259 linux*oldld* | linux*aout* | linux*coff*)
11263 # This must be Linux ELF.
11264 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11269 soname_spec='${libname}${release}${shared_ext}$major'
11270 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11271 shlibpath_var=LD_LIBRARY_PATH
11272 shlibpath_overrides_runpath=no
11274 # Some binutils ld are patched to set DT_RUNPATH
11275 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
11276 $as_echo_n "(cached) " >&6
11278 lt_cv_shlibpath_overrides_runpath=no
11279 save_LDFLAGS=$LDFLAGS
11280 save_libdir=$libdir
11281 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11282 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11283 cat >conftest.$ac_ext <<_ACEOF
11286 cat confdefs.h >>conftest.$ac_ext
11287 cat >>conftest.$ac_ext <<_ACEOF
11288 /* end confdefs.h. */
11298 rm -f conftest.$ac_objext conftest$ac_exeext
11299 if { (ac_try="$ac_link"
11300 case "(($ac_try" in
11301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11302 *) ac_try_echo=$ac_try;;
11304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11305 $as_echo "$ac_try_echo") >&5
11306 (eval "$ac_link") 2>conftest.er1
11308 grep -v '^ *+' conftest.er1 >conftest.err
11310 cat conftest.err >&5
11311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); } && {
11313 test -z "$ac_c_werror_flag" ||
11314 test ! -s conftest.err
11315 } && test -s conftest$ac_exeext && {
11316 test "$cross_compiling" = yes ||
11317 $as_test_x conftest$ac_exeext
11319 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11320 lt_cv_shlibpath_overrides_runpath=yes
11324 $as_echo "$as_me: failed program was:" >&5
11325 sed 's/^/| /' conftest.$ac_ext >&5
11330 rm -rf conftest.dSYM
11331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11332 conftest$ac_exeext conftest.$ac_ext
11333 LDFLAGS=$save_LDFLAGS
11334 libdir=$save_libdir
11338 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11340 # This implies no fast_install, which is unacceptable.
11341 # Some rework will be needed to allow for fast_install
11342 # before this can be enabled.
11343 hardcode_into_libs=yes
11345 # Append ld.so.conf contents to the search path
11346 if test -f /etc/ld.so.conf; then
11347 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11348 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11351 # We used to test for /lib/ld.so.1 and disable shared libraries on
11352 # powerpc, because MkLinux only supported shared libraries with the
11353 # GNU dynamic linker. Since this was broken with cross compilers,
11354 # most powerpc-linux boxes support dynamic linking these days and
11355 # people can always --disable-shared, the test was removed, and we
11356 # assume the GNU/Linux dynamic linker is in use.
11357 dynamic_linker='GNU/Linux ld.so'
11364 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11366 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11367 dynamic_linker='NetBSD (a.out) ld.so'
11369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11370 soname_spec='${libname}${release}${shared_ext}$major'
11371 dynamic_linker='NetBSD ld.elf_so'
11373 shlibpath_var=LD_LIBRARY_PATH
11374 shlibpath_overrides_runpath=yes
11375 hardcode_into_libs=yes
11380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11381 shlibpath_var=LD_LIBRARY_PATH
11382 shlibpath_overrides_runpath=yes
11389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11390 soname_spec='${libname}${release}${shared_ext}$major'
11391 shlibpath_var=LD_LIBRARY_PATH
11392 shlibpath_overrides_runpath=no
11393 hardcode_into_libs=yes
11394 dynamic_linker='ldqnx.so'
11399 sys_lib_dlsearch_path_spec="/usr/lib"
11401 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11403 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11404 *) need_version=no ;;
11406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11407 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11408 shlibpath_var=LD_LIBRARY_PATH
11409 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11411 openbsd2.[89] | openbsd2.[89].*)
11412 shlibpath_overrides_runpath=no
11415 shlibpath_overrides_runpath=yes
11419 shlibpath_overrides_runpath=yes
11424 libname_spec='$name'
11427 library_names_spec='$libname${shared_ext} $libname.a'
11428 dynamic_linker='OS/2 ld.exe'
11429 shlibpath_var=LIBPATH
11432 osf3* | osf4* | osf5*)
11436 soname_spec='${libname}${release}${shared_ext}$major'
11437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11438 shlibpath_var=LD_LIBRARY_PATH
11439 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11440 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11452 soname_spec='${libname}${release}${shared_ext}$major'
11453 shlibpath_var=LD_LIBRARY_PATH
11454 shlibpath_overrides_runpath=yes
11455 hardcode_into_libs=yes
11456 # ldd complains unless libraries are executable
11457 postinstall_cmds='chmod +x $lib'
11462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11463 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11464 shlibpath_var=LD_LIBRARY_PATH
11465 shlibpath_overrides_runpath=yes
11466 if test "$with_gnu_ld" = yes; then
11474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11475 soname_spec='${libname}${release}${shared_ext}$major'
11476 shlibpath_var=LD_LIBRARY_PATH
11477 case $host_vendor in
11479 shlibpath_overrides_runpath=no
11481 runpath_var=LD_RUN_PATH
11489 shlibpath_overrides_runpath=no
11490 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11496 if test -d /usr/nec ;then
11498 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11499 soname_spec='$libname${shared_ext}.$major'
11500 shlibpath_var=LD_LIBRARY_PATH
11504 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11505 version_type=freebsd-elf
11508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11509 soname_spec='${libname}${release}${shared_ext}$major'
11510 shlibpath_var=LD_LIBRARY_PATH
11511 shlibpath_overrides_runpath=yes
11512 hardcode_into_libs=yes
11513 if test "$with_gnu_ld" = yes; then
11514 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11516 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11519 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11523 sys_lib_dlsearch_path_spec='/usr/lib'
11527 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11532 shlibpath_var=LD_LIBRARY_PATH
11533 shlibpath_overrides_runpath=no
11534 hardcode_into_libs=yes
11539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11540 soname_spec='${libname}${release}${shared_ext}$major'
11541 shlibpath_var=LD_LIBRARY_PATH
11548 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11549 $as_echo "$dynamic_linker" >&6; }
11550 test "$dynamic_linker" = no && can_build_shared=no
11552 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11553 if test "$GCC" = yes; then
11554 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11557 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11558 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11560 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11561 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11650 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11651 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11653 if test -n "$hardcode_libdir_flag_spec" ||
11654 test -n "$runpath_var" ||
11655 test "X$hardcode_automatic" = "Xyes" ; then
11657 # We can hardcode non-existent directories.
11658 if test "$hardcode_direct" != no &&
11659 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11660 # have to relink, otherwise we might link with an installed library
11661 # when we should be linking with a yet-to-be-installed one
11662 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11663 test "$hardcode_minus_L" != no; then
11664 # Linking always hardcodes the temporary library directory.
11665 hardcode_action=relink
11667 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11668 hardcode_action=immediate
11671 # We cannot hardcode anything, or else we can only hardcode existing
11673 hardcode_action=unsupported
11675 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11676 $as_echo "$hardcode_action" >&6; }
11678 if test "$hardcode_action" = relink ||
11679 test "$inherit_rpath" = yes; then
11680 # Fast installation is not supported
11681 enable_fast_install=no
11682 elif test "$shlibpath_overrides_runpath" = yes ||
11683 test "$enable_shared" = no; then
11684 # Fast installation is not necessary
11685 enable_fast_install=needless
11693 if test "x$enable_dlopen" != xyes; then
11694 enable_dlopen=unknown
11695 enable_dlopen_self=unknown
11696 enable_dlopen_self_static=unknown
11703 lt_cv_dlopen="load_add_on"
11705 lt_cv_dlopen_self=yes
11708 mingw* | pw32* | cegcc*)
11709 lt_cv_dlopen="LoadLibrary"
11714 lt_cv_dlopen="dlopen"
11719 # if libdl is installed we need to link against it
11720 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11721 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11722 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11723 $as_echo_n "(cached) " >&6
11725 ac_check_lib_save_LIBS=$LIBS
11727 cat >conftest.$ac_ext <<_ACEOF
11730 cat confdefs.h >>conftest.$ac_ext
11731 cat >>conftest.$ac_ext <<_ACEOF
11732 /* end confdefs.h. */
11734 /* Override any GCC internal prototype to avoid an error.
11735 Use char because int might match the return type of a GCC
11736 builtin and then its argument prototype would still apply. */
11749 rm -f conftest.$ac_objext conftest$ac_exeext
11750 if { (ac_try="$ac_link"
11751 case "(($ac_try" in
11752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11753 *) ac_try_echo=$ac_try;;
11755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11756 $as_echo "$ac_try_echo") >&5
11757 (eval "$ac_link") 2>conftest.er1
11759 grep -v '^ *+' conftest.er1 >conftest.err
11761 cat conftest.err >&5
11762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763 (exit $ac_status); } && {
11764 test -z "$ac_c_werror_flag" ||
11765 test ! -s conftest.err
11766 } && test -s conftest$ac_exeext && {
11767 test "$cross_compiling" = yes ||
11768 $as_test_x conftest$ac_exeext
11770 ac_cv_lib_dl_dlopen=yes
11772 $as_echo "$as_me: failed program was:" >&5
11773 sed 's/^/| /' conftest.$ac_ext >&5
11775 ac_cv_lib_dl_dlopen=no
11778 rm -rf conftest.dSYM
11779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11780 conftest$ac_exeext conftest.$ac_ext
11781 LIBS=$ac_check_lib_save_LIBS
11783 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11784 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11785 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11786 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11789 lt_cv_dlopen="dyld"
11791 lt_cv_dlopen_self=yes
11798 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11799 $as_echo_n "checking for shl_load... " >&6; }
11800 if test "${ac_cv_func_shl_load+set}" = set; then
11801 $as_echo_n "(cached) " >&6
11803 cat >conftest.$ac_ext <<_ACEOF
11806 cat confdefs.h >>conftest.$ac_ext
11807 cat >>conftest.$ac_ext <<_ACEOF
11808 /* end confdefs.h. */
11809 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11811 #define shl_load innocuous_shl_load
11813 /* System header to define __stub macros and hopefully few prototypes,
11814 which can conflict with char shl_load (); below.
11815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11816 <limits.h> exists even on freestanding compilers. */
11819 # include <limits.h>
11821 # include <assert.h>
11826 /* Override any GCC internal prototype to avoid an error.
11827 Use char because int might match the return type of a GCC
11828 builtin and then its argument prototype would still apply. */
11833 /* The GNU C library defines this for functions which it implements
11834 to always fail with ENOSYS. Some functions are actually named
11835 something starting with __ and the normal name is an alias. */
11836 #if defined __stub_shl_load || defined __stub___shl_load
11843 return shl_load ();
11848 rm -f conftest.$ac_objext conftest$ac_exeext
11849 if { (ac_try="$ac_link"
11850 case "(($ac_try" in
11851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11852 *) ac_try_echo=$ac_try;;
11854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11855 $as_echo "$ac_try_echo") >&5
11856 (eval "$ac_link") 2>conftest.er1
11858 grep -v '^ *+' conftest.er1 >conftest.err
11860 cat conftest.err >&5
11861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862 (exit $ac_status); } && {
11863 test -z "$ac_c_werror_flag" ||
11864 test ! -s conftest.err
11865 } && test -s conftest$ac_exeext && {
11866 test "$cross_compiling" = yes ||
11867 $as_test_x conftest$ac_exeext
11869 ac_cv_func_shl_load=yes
11871 $as_echo "$as_me: failed program was:" >&5
11872 sed 's/^/| /' conftest.$ac_ext >&5
11874 ac_cv_func_shl_load=no
11877 rm -rf conftest.dSYM
11878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11879 conftest$ac_exeext conftest.$ac_ext
11881 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11882 $as_echo "$ac_cv_func_shl_load" >&6; }
11883 if test "x$ac_cv_func_shl_load" = x""yes; then
11884 lt_cv_dlopen="shl_load"
11886 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11887 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11888 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11889 $as_echo_n "(cached) " >&6
11891 ac_check_lib_save_LIBS=$LIBS
11893 cat >conftest.$ac_ext <<_ACEOF
11896 cat confdefs.h >>conftest.$ac_ext
11897 cat >>conftest.$ac_ext <<_ACEOF
11898 /* end confdefs.h. */
11900 /* Override any GCC internal prototype to avoid an error.
11901 Use char because int might match the return type of a GCC
11902 builtin and then its argument prototype would still apply. */
11910 return shl_load ();
11915 rm -f conftest.$ac_objext conftest$ac_exeext
11916 if { (ac_try="$ac_link"
11917 case "(($ac_try" in
11918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11919 *) ac_try_echo=$ac_try;;
11921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11922 $as_echo "$ac_try_echo") >&5
11923 (eval "$ac_link") 2>conftest.er1
11925 grep -v '^ *+' conftest.er1 >conftest.err
11927 cat conftest.err >&5
11928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); } && {
11930 test -z "$ac_c_werror_flag" ||
11931 test ! -s conftest.err
11932 } && test -s conftest$ac_exeext && {
11933 test "$cross_compiling" = yes ||
11934 $as_test_x conftest$ac_exeext
11936 ac_cv_lib_dld_shl_load=yes
11938 $as_echo "$as_me: failed program was:" >&5
11939 sed 's/^/| /' conftest.$ac_ext >&5
11941 ac_cv_lib_dld_shl_load=no
11944 rm -rf conftest.dSYM
11945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11946 conftest$ac_exeext conftest.$ac_ext
11947 LIBS=$ac_check_lib_save_LIBS
11949 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11950 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11951 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
11952 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11954 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11955 $as_echo_n "checking for dlopen... " >&6; }
11956 if test "${ac_cv_func_dlopen+set}" = set; then
11957 $as_echo_n "(cached) " >&6
11959 cat >conftest.$ac_ext <<_ACEOF
11962 cat confdefs.h >>conftest.$ac_ext
11963 cat >>conftest.$ac_ext <<_ACEOF
11964 /* end confdefs.h. */
11965 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11967 #define dlopen innocuous_dlopen
11969 /* System header to define __stub macros and hopefully few prototypes,
11970 which can conflict with char dlopen (); below.
11971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11972 <limits.h> exists even on freestanding compilers. */
11975 # include <limits.h>
11977 # include <assert.h>
11982 /* Override any GCC internal prototype to avoid an error.
11983 Use char because int might match the return type of a GCC
11984 builtin and then its argument prototype would still apply. */
11989 /* The GNU C library defines this for functions which it implements
11990 to always fail with ENOSYS. Some functions are actually named
11991 something starting with __ and the normal name is an alias. */
11992 #if defined __stub_dlopen || defined __stub___dlopen
12004 rm -f conftest.$ac_objext conftest$ac_exeext
12005 if { (ac_try="$ac_link"
12006 case "(($ac_try" in
12007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12008 *) ac_try_echo=$ac_try;;
12010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12011 $as_echo "$ac_try_echo") >&5
12012 (eval "$ac_link") 2>conftest.er1
12014 grep -v '^ *+' conftest.er1 >conftest.err
12016 cat conftest.err >&5
12017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018 (exit $ac_status); } && {
12019 test -z "$ac_c_werror_flag" ||
12020 test ! -s conftest.err
12021 } && test -s conftest$ac_exeext && {
12022 test "$cross_compiling" = yes ||
12023 $as_test_x conftest$ac_exeext
12025 ac_cv_func_dlopen=yes
12027 $as_echo "$as_me: failed program was:" >&5
12028 sed 's/^/| /' conftest.$ac_ext >&5
12030 ac_cv_func_dlopen=no
12033 rm -rf conftest.dSYM
12034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12035 conftest$ac_exeext conftest.$ac_ext
12037 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12038 $as_echo "$ac_cv_func_dlopen" >&6; }
12039 if test "x$ac_cv_func_dlopen" = x""yes; then
12040 lt_cv_dlopen="dlopen"
12042 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12043 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12044 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12045 $as_echo_n "(cached) " >&6
12047 ac_check_lib_save_LIBS=$LIBS
12049 cat >conftest.$ac_ext <<_ACEOF
12052 cat confdefs.h >>conftest.$ac_ext
12053 cat >>conftest.$ac_ext <<_ACEOF
12054 /* end confdefs.h. */
12056 /* Override any GCC internal prototype to avoid an error.
12057 Use char because int might match the return type of a GCC
12058 builtin and then its argument prototype would still apply. */
12071 rm -f conftest.$ac_objext conftest$ac_exeext
12072 if { (ac_try="$ac_link"
12073 case "(($ac_try" in
12074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12075 *) ac_try_echo=$ac_try;;
12077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12078 $as_echo "$ac_try_echo") >&5
12079 (eval "$ac_link") 2>conftest.er1
12081 grep -v '^ *+' conftest.er1 >conftest.err
12083 cat conftest.err >&5
12084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); } && {
12086 test -z "$ac_c_werror_flag" ||
12087 test ! -s conftest.err
12088 } && test -s conftest$ac_exeext && {
12089 test "$cross_compiling" = yes ||
12090 $as_test_x conftest$ac_exeext
12092 ac_cv_lib_dl_dlopen=yes
12094 $as_echo "$as_me: failed program was:" >&5
12095 sed 's/^/| /' conftest.$ac_ext >&5
12097 ac_cv_lib_dl_dlopen=no
12100 rm -rf conftest.dSYM
12101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12102 conftest$ac_exeext conftest.$ac_ext
12103 LIBS=$ac_check_lib_save_LIBS
12105 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12106 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12107 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12108 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12110 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12111 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12112 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12113 $as_echo_n "(cached) " >&6
12115 ac_check_lib_save_LIBS=$LIBS
12116 LIBS="-lsvld $LIBS"
12117 cat >conftest.$ac_ext <<_ACEOF
12120 cat confdefs.h >>conftest.$ac_ext
12121 cat >>conftest.$ac_ext <<_ACEOF
12122 /* end confdefs.h. */
12124 /* Override any GCC internal prototype to avoid an error.
12125 Use char because int might match the return type of a GCC
12126 builtin and then its argument prototype would still apply. */
12139 rm -f conftest.$ac_objext conftest$ac_exeext
12140 if { (ac_try="$ac_link"
12141 case "(($ac_try" in
12142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12143 *) ac_try_echo=$ac_try;;
12145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12146 $as_echo "$ac_try_echo") >&5
12147 (eval "$ac_link") 2>conftest.er1
12149 grep -v '^ *+' conftest.er1 >conftest.err
12151 cat conftest.err >&5
12152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153 (exit $ac_status); } && {
12154 test -z "$ac_c_werror_flag" ||
12155 test ! -s conftest.err
12156 } && test -s conftest$ac_exeext && {
12157 test "$cross_compiling" = yes ||
12158 $as_test_x conftest$ac_exeext
12160 ac_cv_lib_svld_dlopen=yes
12162 $as_echo "$as_me: failed program was:" >&5
12163 sed 's/^/| /' conftest.$ac_ext >&5
12165 ac_cv_lib_svld_dlopen=no
12168 rm -rf conftest.dSYM
12169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12170 conftest$ac_exeext conftest.$ac_ext
12171 LIBS=$ac_check_lib_save_LIBS
12173 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12174 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12175 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
12176 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12178 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12179 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12180 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12181 $as_echo_n "(cached) " >&6
12183 ac_check_lib_save_LIBS=$LIBS
12185 cat >conftest.$ac_ext <<_ACEOF
12188 cat confdefs.h >>conftest.$ac_ext
12189 cat >>conftest.$ac_ext <<_ACEOF
12190 /* end confdefs.h. */
12192 /* Override any GCC internal prototype to avoid an error.
12193 Use char because int might match the return type of a GCC
12194 builtin and then its argument prototype would still apply. */
12202 return dld_link ();
12207 rm -f conftest.$ac_objext conftest$ac_exeext
12208 if { (ac_try="$ac_link"
12209 case "(($ac_try" in
12210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12211 *) ac_try_echo=$ac_try;;
12213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12214 $as_echo "$ac_try_echo") >&5
12215 (eval "$ac_link") 2>conftest.er1
12217 grep -v '^ *+' conftest.er1 >conftest.err
12219 cat conftest.err >&5
12220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221 (exit $ac_status); } && {
12222 test -z "$ac_c_werror_flag" ||
12223 test ! -s conftest.err
12224 } && test -s conftest$ac_exeext && {
12225 test "$cross_compiling" = yes ||
12226 $as_test_x conftest$ac_exeext
12228 ac_cv_lib_dld_dld_link=yes
12230 $as_echo "$as_me: failed program was:" >&5
12231 sed 's/^/| /' conftest.$ac_ext >&5
12233 ac_cv_lib_dld_dld_link=no
12236 rm -rf conftest.dSYM
12237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12238 conftest$ac_exeext conftest.$ac_ext
12239 LIBS=$ac_check_lib_save_LIBS
12241 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12242 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12243 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12244 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12265 if test "x$lt_cv_dlopen" != xno; then
12271 case $lt_cv_dlopen in
12273 save_CPPFLAGS="$CPPFLAGS"
12274 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12276 save_LDFLAGS="$LDFLAGS"
12277 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12280 LIBS="$lt_cv_dlopen_libs $LIBS"
12282 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12283 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12284 if test "${lt_cv_dlopen_self+set}" = set; then
12285 $as_echo_n "(cached) " >&6
12287 if test "$cross_compiling" = yes; then :
12288 lt_cv_dlopen_self=cross
12290 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12291 lt_status=$lt_dlunknown
12292 cat > conftest.$ac_ext <<_LT_EOF
12293 #line 12293 "configure"
12294 #include "confdefs.h"
12303 # define LT_DLGLOBAL RTLD_GLOBAL
12306 # define LT_DLGLOBAL DL_GLOBAL
12308 # define LT_DLGLOBAL 0
12312 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12313 find out it does not work in some platform. */
12314 #ifndef LT_DLLAZY_OR_NOW
12316 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12319 # define LT_DLLAZY_OR_NOW DL_LAZY
12322 # define LT_DLLAZY_OR_NOW RTLD_NOW
12325 # define LT_DLLAZY_OR_NOW DL_NOW
12327 # define LT_DLLAZY_OR_NOW 0
12334 void fnord() { int i=42;}
12337 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12338 int status = $lt_dlunknown;
12342 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12343 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12344 /* dlclose (self); */
12352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12353 (eval $ac_link) 2>&5
12355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12357 (./conftest; exit; ) >&5 2>/dev/null
12359 case x$lt_status in
12360 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12361 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12362 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12365 # compilation failed
12366 lt_cv_dlopen_self=no
12373 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12374 $as_echo "$lt_cv_dlopen_self" >&6; }
12376 if test "x$lt_cv_dlopen_self" = xyes; then
12377 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12378 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12379 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12380 if test "${lt_cv_dlopen_self_static+set}" = set; then
12381 $as_echo_n "(cached) " >&6
12383 if test "$cross_compiling" = yes; then :
12384 lt_cv_dlopen_self_static=cross
12386 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12387 lt_status=$lt_dlunknown
12388 cat > conftest.$ac_ext <<_LT_EOF
12389 #line 12389 "configure"
12390 #include "confdefs.h"
12399 # define LT_DLGLOBAL RTLD_GLOBAL
12402 # define LT_DLGLOBAL DL_GLOBAL
12404 # define LT_DLGLOBAL 0
12408 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12409 find out it does not work in some platform. */
12410 #ifndef LT_DLLAZY_OR_NOW
12412 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12415 # define LT_DLLAZY_OR_NOW DL_LAZY
12418 # define LT_DLLAZY_OR_NOW RTLD_NOW
12421 # define LT_DLLAZY_OR_NOW DL_NOW
12423 # define LT_DLLAZY_OR_NOW 0
12430 void fnord() { int i=42;}
12433 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12434 int status = $lt_dlunknown;
12438 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12439 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12440 /* dlclose (self); */
12448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12449 (eval $ac_link) 2>&5
12451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12453 (./conftest; exit; ) >&5 2>/dev/null
12455 case x$lt_status in
12456 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12457 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12458 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12461 # compilation failed
12462 lt_cv_dlopen_self_static=no
12469 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12470 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12473 CPPFLAGS="$save_CPPFLAGS"
12474 LDFLAGS="$save_LDFLAGS"
12479 case $lt_cv_dlopen_self in
12480 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12481 *) enable_dlopen_self=unknown ;;
12484 case $lt_cv_dlopen_self_static in
12485 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12486 *) enable_dlopen_self_static=unknown ;;
12508 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12509 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12510 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12511 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12512 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12513 { $as_echo "$as_me:$LINENO: result: yes" >&5
12514 $as_echo "yes" >&6; }
12516 # FIXME - insert some real tests, host_os isn't really good enough
12519 if test -n "$STRIP" ; then
12520 striplib="$STRIP -x"
12521 old_striplib="$STRIP -S"
12522 { $as_echo "$as_me:$LINENO: result: yes" >&5
12523 $as_echo "yes" >&6; }
12525 { $as_echo "$as_me:$LINENO: result: no" >&5
12526 $as_echo "no" >&6; }
12530 { $as_echo "$as_me:$LINENO: result: no" >&5
12531 $as_echo "no" >&6; }
12547 # Report which library types will actually be built
12548 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12549 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12550 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12551 $as_echo "$can_build_shared" >&6; }
12553 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12554 $as_echo_n "checking whether to build shared libraries... " >&6; }
12555 test "$can_build_shared" = "no" && enable_shared=no
12557 # On AIX, shared libraries and static libraries use the same namespace, and
12558 # are all built from PIC.
12561 test "$enable_shared" = yes && enable_static=no
12562 if test -n "$RANLIB"; then
12563 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12564 postinstall_cmds='$RANLIB $lib'
12569 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12570 test "$enable_shared" = yes && enable_static=no
12574 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12575 $as_echo "$enable_shared" >&6; }
12577 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12578 $as_echo_n "checking whether to build static libraries... " >&6; }
12579 # Make sure either enable_shared or enable_static is yes.
12580 test "$enable_shared" = yes || enable_static=yes
12581 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12582 $as_echo "$enable_static" >&6; }
12589 ac_cpp='$CPP $CPPFLAGS'
12590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12608 ac_config_commands="$ac_config_commands libtool"
12613 # Only expand once:
12620 subdirs="$subdirs machine"
12623 if test "${newlib_multithread}" = "yes"; then
12624 subdirs="$subdirs linuxthreads"
12629 if test -n "${machine_dir}"; then
12630 if test "${use_libtool}" = "yes"; then
12631 LINUX_MACH_LIB=machine/${machine_dir}/liblinux${machine_dir}.${aext}
12633 LINUX_MACH_LIB=machine/lib.${aext}
12641 if test "x${newlib_elix_level}" = "x1"; then
12642 EXTRA_SUBDIRS=linuxthreads net
12644 EXTRA_SUBDIRS="linuxthreads net intl iconv dl"
12645 EXTRA_SUBLIBS="net/libnet.la intl/libintl.la iconv/libiconv.la dl/libdl.la"
12651 ac_config_files="$ac_config_files Makefile intl/Makefile net/Makefile iconv/Makefile dl/Makefile cmath/Makefile argp/Makefile"
12653 cat >confcache <<\_ACEOF
12654 # This file is a shell script that caches the results of configure
12655 # tests run on this system so they can be shared between configure
12656 # scripts and configure runs, see configure's option --config-cache.
12657 # It is not useful on other systems. If it contains results you don't
12658 # want to keep, you may remove or edit it.
12660 # config.status only pays attention to the cache file if you give it
12661 # the --recheck option to rerun configure.
12663 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12664 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12665 # following values.
12669 # The following way of writing the cache mishandles newlines in values,
12670 # but we know of no workaround that is simple, portable, and efficient.
12671 # So, we kill variables containing newlines.
12672 # Ultrix sh set writes to stderr and can't be redirected directly,
12673 # and sets the high bit in the cache file unless we assign to the vars.
12675 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12676 eval ac_val=\$$ac_var
12680 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
12681 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12684 _ | IFS | as_nl) ;; #(
12685 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12686 *) $as_unset $ac_var ;;
12692 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12693 *${as_nl}ac_space=\ *)
12694 # `set' does not quote correctly, so add quotes (double-quote
12695 # substitution turns \\\\ into \\, and sed turns \\ into \).
12698 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12701 # `set' quotes correctly as required by POSIX, so do not add quotes.
12702 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12711 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12713 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12715 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12716 if test -w "$cache_file"; then
12717 test "x$cache_file" != "x/dev/null" &&
12718 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12719 $as_echo "$as_me: updating cache $cache_file" >&6;}
12720 cat confcache >$cache_file
12722 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12723 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12728 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12729 # Let make expand exec_prefix.
12730 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12732 # Transform confdefs.h into DEFS.
12733 # Protect against shell expansion while executing Makefile rules.
12734 # Protect against Makefile macro expansion.
12736 # If the first sed substitution is executed (which looks for macros that
12737 # take arguments), then branch to the quote section. Otherwise,
12738 # look for a macro that doesn't take arguments.
12748 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
12750 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
12754 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
12767 DEFS=`sed -n "$ac_script" confdefs.h`
12772 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12773 # 1. Remove the extension, and $U if already installed.
12774 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12775 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12776 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12777 # will be set to the directory where LIBOBJS objects are built.
12778 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12779 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12781 LIBOBJS=$ac_libobjs
12783 LTLIBOBJS=$ac_ltlibobjs
12786 if test -z "${MAY_SUPPLY_SYSCALLS_TRUE}" && test -z "${MAY_SUPPLY_SYSCALLS_FALSE}"; then
12787 { { $as_echo "$as_me:$LINENO: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
12788 Usually this means the macro was only invoked conditionally." >&5
12789 $as_echo "$as_me: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
12790 Usually this means the macro was only invoked conditionally." >&2;}
12791 { (exit 1); exit 1; }; }
12793 if test -n "$EXEEXT"; then
12795 am__EXEEXT_FALSE='#'
12797 am__EXEEXT_TRUE='#'
12801 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12802 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12803 Usually this means the macro was only invoked conditionally." >&5
12804 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
12805 Usually this means the macro was only invoked conditionally." >&2;}
12806 { (exit 1); exit 1; }; }
12808 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12809 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12810 Usually this means the macro was only invoked conditionally." >&5
12811 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12812 Usually this means the macro was only invoked conditionally." >&2;}
12813 { (exit 1); exit 1; }; }
12815 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12816 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12817 Usually this means the macro was only invoked conditionally." >&5
12818 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12819 Usually this means the macro was only invoked conditionally." >&2;}
12820 { (exit 1); exit 1; }; }
12822 if test -z "${ELIX_LEVEL_0_TRUE}" && test -z "${ELIX_LEVEL_0_FALSE}"; then
12823 { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_0\" was never defined.
12824 Usually this means the macro was only invoked conditionally." >&5
12825 $as_echo "$as_me: error: conditional \"ELIX_LEVEL_0\" was never defined.
12826 Usually this means the macro was only invoked conditionally." >&2;}
12827 { (exit 1); exit 1; }; }
12829 if test -z "${ELIX_LEVEL_1_TRUE}" && test -z "${ELIX_LEVEL_1_FALSE}"; then
12830 { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_1\" was never defined.
12831 Usually this means the macro was only invoked conditionally." >&5
12832 $as_echo "$as_me: error: conditional \"ELIX_LEVEL_1\" was never defined.
12833 Usually this means the macro was only invoked conditionally." >&2;}
12834 { (exit 1); exit 1; }; }
12836 if test -z "${ELIX_LEVEL_2_TRUE}" && test -z "${ELIX_LEVEL_2_FALSE}"; then
12837 { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_2\" was never defined.
12838 Usually this means the macro was only invoked conditionally." >&5
12839 $as_echo "$as_me: error: conditional \"ELIX_LEVEL_2\" was never defined.
12840 Usually this means the macro was only invoked conditionally." >&2;}
12841 { (exit 1); exit 1; }; }
12843 if test -z "${ELIX_LEVEL_3_TRUE}" && test -z "${ELIX_LEVEL_3_FALSE}"; then
12844 { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_3\" was never defined.
12845 Usually this means the macro was only invoked conditionally." >&5
12846 $as_echo "$as_me: error: conditional \"ELIX_LEVEL_3\" was never defined.
12847 Usually this means the macro was only invoked conditionally." >&2;}
12848 { (exit 1); exit 1; }; }
12850 if test -z "${ELIX_LEVEL_4_TRUE}" && test -z "${ELIX_LEVEL_4_FALSE}"; then
12851 { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_4\" was never defined.
12852 Usually this means the macro was only invoked conditionally." >&5
12853 $as_echo "$as_me: error: conditional \"ELIX_LEVEL_4\" was never defined.
12854 Usually this means the macro was only invoked conditionally." >&2;}
12855 { (exit 1); exit 1; }; }
12857 if test -z "${USE_LIBTOOL_TRUE}" && test -z "${USE_LIBTOOL_FALSE}"; then
12858 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_LIBTOOL\" was never defined.
12859 Usually this means the macro was only invoked conditionally." >&5
12860 $as_echo "$as_me: error: conditional \"USE_LIBTOOL\" was never defined.
12861 Usually this means the macro was only invoked conditionally." >&2;}
12862 { (exit 1); exit 1; }; }
12864 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12865 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12866 Usually this means the macro was only invoked conditionally." >&5
12867 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12868 Usually this means the macro was only invoked conditionally." >&2;}
12869 { (exit 1); exit 1; }; }
12872 : ${CONFIG_STATUS=./config.status}
12874 ac_clean_files_save=$ac_clean_files
12875 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12876 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12877 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12878 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12880 # Generated by $as_me.
12881 # Run this file to recreate the current configuration.
12882 # Compiler output produced by configure, useful for debugging
12883 # configure, is in config.log if it exists.
12886 ac_cs_recheck=false
12888 SHELL=\${CONFIG_SHELL-$SHELL}
12891 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12892 ## --------------------- ##
12893 ## M4sh Initialization. ##
12894 ## --------------------- ##
12896 # Be more Bourne compatible
12897 DUALCASE=1; export DUALCASE # for MKS sh
12898 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12901 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12902 # is contrary to our usage. Disable this feature.
12903 alias -g '${1+"$@"}'='"$@"'
12904 setopt NO_GLOB_SUBST
12906 case `(set -o) 2>/dev/null` in
12907 *posix*) set -o posix ;;
12916 # Avoid depending upon Character Ranges.
12917 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12918 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12919 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12920 as_cr_digits='0123456789'
12921 as_cr_alnum=$as_cr_Letters$as_cr_digits
12926 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12927 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12928 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12929 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12930 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12931 as_echo='printf %s\n'
12932 as_echo_n='printf %s'
12934 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12935 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12936 as_echo_n='/usr/ucb/echo -n'
12938 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12939 as_echo_n_body='eval
12943 expr "X$arg" : "X\\(.*\\)$as_nl";
12944 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12946 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12948 export as_echo_n_body
12949 as_echo_n='sh -c $as_echo_n_body as_echo'
12951 export as_echo_body
12952 as_echo='sh -c $as_echo_body as_echo'
12955 # The user is always right.
12956 if test "${PATH_SEPARATOR+set}" != set; then
12958 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12959 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12964 # Support unset when possible.
12965 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12973 # We need space, tab and new line, in precisely that order. Quoting is
12974 # there to prevent editors from complaining about space-tab.
12975 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12976 # splitting by setting IFS to empty value.)
12979 # Find who we are. Look in the path if we contain no directory separator.
12981 *[\\/]* ) as_myself=$0 ;;
12982 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12983 for as_dir in $PATH
12986 test -z "$as_dir" && as_dir=.
12987 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12993 # We did not find ourselves, most probably we were run as `sh COMMAND'
12994 # in which case we are not to be found in the path.
12995 if test "x$as_myself" = x; then
12998 if test ! -f "$as_myself"; then
12999 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13000 { (exit 1); exit 1; }
13003 # Work around bugs in pre-3.0 UWIN ksh.
13004 for as_var in ENV MAIL MAILPATH
13005 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13017 # Required to use basename.
13018 if expr a : '\(a\)' >/dev/null 2>&1 &&
13019 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13025 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13026 as_basename=basename
13032 # Name of the executable.
13033 as_me=`$as_basename -- "$0" ||
13034 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13035 X"$0" : 'X\(//\)$' \| \
13036 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13038 sed '/^.*\/\([^/][^/]*\)\/*$/{
13057 as_lineno_1=$LINENO
13058 as_lineno_2=$LINENO
13059 test "x$as_lineno_1" != "x$as_lineno_2" &&
13060 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13062 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13063 # uniformly replaced by the line number. The first 'sed' inserts a
13064 # line-number line after each line using $LINENO; the second 'sed'
13065 # does the real work. The second script uses 'N' to pair each
13066 # line-number line with the line containing $LINENO, and appends
13067 # trailing '-' during substitution so that $LINENO is not a special
13068 # case at line end.
13069 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13070 # scripts with optimization help from Paolo Bonzini. Blame Lee
13071 # E. McMahon (1931-1989) for sed's syntax. :-)
13083 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13086 ' >$as_me.lineno &&
13087 chmod +x "$as_me.lineno" ||
13088 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13089 { (exit 1); exit 1; }; }
13091 # Don't try to exec as it changes $[0], causing all sort of problems
13092 # (the dirname of $[0] is not the place where we might find the
13093 # original and so on. Autoconf is especially sensitive to this).
13094 . "./$as_me.lineno"
13095 # Exit status is that of the last command.
13100 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13106 ECHO_C= ECHO_N= ECHO_T=
13107 case `echo -n x` in
13109 case `echo 'x\c'` in
13110 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13116 if expr a : '\(a\)' >/dev/null 2>&1 &&
13117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13123 rm -f conf$$ conf$$.exe conf$$.file
13124 if test -d conf$$.dir; then
13125 rm -f conf$$.dir/conf$$.file
13128 mkdir conf$$.dir 2>/dev/null
13130 if (echo >conf$$.file) 2>/dev/null; then
13131 if ln -s conf$$.file conf$$ 2>/dev/null; then
13133 # ... but there are two gotchas:
13134 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13135 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13136 # In both cases, we have to default to `cp -p'.
13137 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13139 elif ln conf$$.file conf$$ 2>/dev/null; then
13147 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13148 rmdir conf$$.dir 2>/dev/null
13150 if mkdir -p . 2>/dev/null; then
13153 test -d ./-p && rmdir ./-p
13157 if test -x / >/dev/null 2>&1; then
13158 as_test_x='test -x'
13160 if ls -dL / >/dev/null 2>&1; then
13167 if test -d "$1"; then
13173 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13174 ???[sx]*):;;*)false;;esac;fi
13178 as_executable_p=$as_test_x
13180 # Sed expression to map a string onto a valid CPP name.
13181 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13183 # Sed expression to map a string onto a valid variable name.
13184 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13189 # Save the log message, to keep $[0] and so on meaningful, and to
13190 # report actual input values of CONFIG_FILES etc. instead of their
13191 # values after options handling.
13193 This file was extended by newlib $as_me 1.17.0, which was
13194 generated by GNU Autoconf 2.63. Invocation command line was
13196 CONFIG_FILES = $CONFIG_FILES
13197 CONFIG_HEADERS = $CONFIG_HEADERS
13198 CONFIG_LINKS = $CONFIG_LINKS
13199 CONFIG_COMMANDS = $CONFIG_COMMANDS
13202 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13207 case $ac_config_files in *"
13208 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13214 # Files that config.status was made for.
13215 config_files="$ac_config_files"
13216 config_commands="$ac_config_commands"
13220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13222 \`$as_me' instantiates files from templates according to the
13223 current configuration.
13225 Usage: $0 [OPTION]... [FILE]...
13227 -h, --help print this help, then exit
13228 -V, --version print version number and configuration settings, then exit
13229 -q, --quiet, --silent
13230 do not print progress messages
13231 -d, --debug don't remove temporary files
13232 --recheck update $as_me by reconfiguring in the same conditions
13233 --file=FILE[:TEMPLATE]
13234 instantiate the configuration file FILE
13236 Configuration files:
13239 Configuration commands:
13242 Report bugs to <bug-autoconf@gnu.org>."
13245 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13247 newlib config.status 1.17.0
13248 configured by $0, generated by GNU Autoconf 2.63,
13249 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13251 Copyright (C) 2008 Free Software Foundation, Inc.
13252 This config.status script is free software; the Free Software Foundation
13253 gives unlimited permission to copy, distribute and modify it."
13260 test -n "\$AWK" || AWK=awk
13263 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13264 # The default lists apply if the user does not specify any file.
13270 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13271 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13282 # Handling of the options.
13283 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13285 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13286 $as_echo "$ac_cs_version"; exit ;;
13287 --debug | --debu | --deb | --de | --d | -d )
13289 --file | --fil | --fi | --f )
13292 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13294 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13295 ac_need_defaults=false;;
13296 --he | --h | --help | --hel | -h )
13297 $as_echo "$ac_cs_usage"; exit ;;
13298 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13299 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13302 # This is an error.
13303 -*) { $as_echo "$as_me: error: unrecognized option: $1
13304 Try \`$0 --help' for more information." >&2
13305 { (exit 1); exit 1; }; } ;;
13307 *) ac_config_targets="$ac_config_targets $1"
13308 ac_need_defaults=false ;;
13314 ac_configure_extra_args=
13316 if $ac_cs_silent; then
13318 ac_configure_extra_args="$ac_configure_extra_args --silent"
13322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13323 if \$ac_cs_recheck; then
13324 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13326 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13327 CONFIG_SHELL='$SHELL'
13328 export CONFIG_SHELL
13333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13337 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13338 ## Running $as_me. ##
13344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13348 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13351 # The HP-UX ksh and POSIX shell print the target directory to stdout
13352 # if CDPATH is set.
13353 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13355 sed_quote_subst='$sed_quote_subst'
13356 double_quote_subst='$double_quote_subst'
13357 delay_variable_subst='$delay_variable_subst'
13358 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13359 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13360 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
13361 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13362 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13363 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13364 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13365 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13366 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13367 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13368 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13369 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13370 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13371 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13372 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13373 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13374 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13375 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13376 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13377 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13378 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13379 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13380 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13381 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13382 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13383 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13384 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13385 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13386 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13387 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13388 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13389 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13390 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13391 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13392 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13393 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13394 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13395 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13396 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13397 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13398 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13399 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13400 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13401 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13402 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13403 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13404 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"`'
13405 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13406 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13407 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13408 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13409 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13410 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13411 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13412 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13413 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13414 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13415 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13416 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13417 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13418 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13419 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13420 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13421 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13422 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13423 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13424 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13425 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13426 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13427 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13428 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13429 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13430 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13431 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13432 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13433 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13434 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13435 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13436 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13437 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13438 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13439 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13440 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13441 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13442 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13443 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13444 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13445 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13446 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13447 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13448 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13449 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13450 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13451 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13452 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13453 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13454 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13455 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13456 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13457 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13458 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13459 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13460 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13461 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13462 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13463 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13464 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13465 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13466 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13467 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13468 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13469 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13470 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13471 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13472 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13473 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13474 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13475 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13476 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13477 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13480 LTCFLAGS='$LTCFLAGS'
13481 compiler='$compiler_DEFAULT'
13483 # Quote evaled strings.
13494 deplibs_check_method \
13503 lt_cv_sys_global_symbol_pipe \
13504 lt_cv_sys_global_symbol_to_cdecl \
13505 lt_cv_sys_global_symbol_to_c_name_address \
13506 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13509 lt_prog_compiler_no_builtin_flag \
13510 lt_prog_compiler_wl \
13511 lt_prog_compiler_pic \
13512 lt_prog_compiler_static \
13513 lt_cv_prog_compiler_c_o \
13521 export_dynamic_flag_spec \
13522 whole_archive_flag_spec \
13523 compiler_needs_object \
13525 allow_undefined_flag \
13526 no_undefined_flag \
13527 hardcode_libdir_flag_spec \
13528 hardcode_libdir_flag_spec_ld \
13529 hardcode_libdir_separator \
13534 variables_saved_for_relink \
13536 library_names_spec \
13541 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13542 *[\\\\\\\`\\"\\\$]*)
13543 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13546 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13551 # Double-quote double-evaled strings.
13552 for var in reload_cmds \
13553 old_postinstall_cmds \
13554 old_postuninstall_cmds \
13556 extract_expsyms_cmds \
13557 old_archive_from_new_cmds \
13558 old_archive_from_expsyms_cmds \
13560 archive_expsym_cmds \
13562 module_expsym_cmds \
13563 export_symbols_cmds \
13566 postuninstall_cmds \
13568 sys_lib_search_path_spec \
13569 sys_lib_dlsearch_path_spec; do
13570 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13571 *[\\\\\\\`\\"\\\$]*)
13572 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13575 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13580 # Fix-up fallback echo if it was mangled by the above quoting rules.
13582 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13586 ac_aux_dir='$ac_aux_dir'
13587 xsi_shell='$xsi_shell'
13588 lt_shell_append='$lt_shell_append'
13590 # See if we are running on zsh, and set the options which allow our
13591 # commands through without removal of \ escapes INIT.
13592 if test -n "\${ZSH_VERSION+set}" ; then
13593 setopt NO_GLOB_SUBST
13599 TIMESTAMP='$TIMESTAMP'
13608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13610 # Handling of arguments.
13611 for ac_config_target in $ac_config_targets
13613 case $ac_config_target in
13614 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13615 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13616 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13617 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
13618 "net/Makefile") CONFIG_FILES="$CONFIG_FILES net/Makefile" ;;
13619 "iconv/Makefile") CONFIG_FILES="$CONFIG_FILES iconv/Makefile" ;;
13620 "dl/Makefile") CONFIG_FILES="$CONFIG_FILES dl/Makefile" ;;
13621 "cmath/Makefile") CONFIG_FILES="$CONFIG_FILES cmath/Makefile" ;;
13622 "argp/Makefile") CONFIG_FILES="$CONFIG_FILES argp/Makefile" ;;
13624 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13625 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13626 { (exit 1); exit 1; }; };;
13631 # If the user did not use the arguments to specify the items to instantiate,
13632 # then the envvar interface is used. Set only those that are not.
13633 # We use the long form for the default assignment because of an extremely
13634 # bizarre bug on SunOS 4.1.3.
13635 if $ac_need_defaults; then
13636 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13637 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13640 # Have a temporary directory for convenience. Make it in the build tree
13641 # simply because there is no reason against having it here, and in addition,
13642 # creating and moving files from /tmp can sometimes cause problems.
13643 # Hook for its removal unless debugging.
13644 # Note that there is a small window in which the directory will not be cleaned:
13645 # after its creation but before its name has been assigned to `$tmp'.
13649 trap 'exit_status=$?
13650 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13652 trap '{ (exit 1); exit 1; }' 1 2 13 15
13654 # Create a (secure) tmp directory for tmp files.
13657 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13658 test -n "$tmp" && test -d "$tmp"
13661 tmp=./conf$$-$RANDOM
13662 (umask 077 && mkdir "$tmp")
13665 $as_echo "$as_me: cannot create a temporary directory in ." >&2
13666 { (exit 1); exit 1; }
13669 # Set up the scripts for CONFIG_FILES section.
13670 # No need to generate them if there are no CONFIG_FILES.
13671 # This happens for instance with `./config.status config.h'.
13672 if test -n "$CONFIG_FILES"; then
13676 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13677 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13680 ac_cs_awk_cr=$ac_cr
13683 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13688 echo "cat >conf$$subs.awk <<_ACEOF" &&
13689 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13691 } >conf$$subs.sh ||
13692 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13693 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13694 { (exit 1); exit 1; }; }
13695 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13697 for ac_last_try in false false false false false :; do
13698 . ./conf$$subs.sh ||
13699 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13700 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13701 { (exit 1); exit 1; }; }
13703 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13704 if test $ac_delim_n = $ac_delim_num; then
13706 elif $ac_last_try; then
13707 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13708 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13709 { (exit 1); exit 1; }; }
13711 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13714 rm -f conf$$subs.sh
13716 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13717 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13721 s/^/S["/; s/!.*/"]=/
13731 s/\(.\{148\}\).*/\1/
13733 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13738 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13745 s/\(.\{148\}\).*/\1/
13747 s/["\\]/\\&/g; s/^/"/; s/$/"/
13751 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13756 ' <conf$$subs.awk | sed '
13761 ' >>$CONFIG_STATUS || ac_write_fail=1
13762 rm -f conf$$subs.awk
13763 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13765 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13766 for (key in S) S_is_set[key] = 1
13772 nfields = split(line, field, "@")
13774 len = length(field[1])
13775 for (i = 2; i < nfields; i++) {
13777 keylen = length(key)
13778 if (S_is_set[key]) {
13780 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13781 len += length(value) + length(field[++i])
13792 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13793 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13794 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13797 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13798 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13799 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
13800 { (exit 1); exit 1; }; }
13803 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13804 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13805 # trailing colons and then remove the whole line if VPATH becomes empty
13806 # (actually we leave an empty line to preserve line numbers).
13807 if test "x$srcdir" = x.; then
13808 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13809 s/:*\$(srcdir):*/:/
13810 s/:*\${srcdir}:*/:/
13812 s/^\([^=]*=[ ]*\):*/\1/
13818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13819 fi # test -n "$CONFIG_FILES"
13822 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
13827 :[FHLC]) ac_mode=$ac_tag; continue;;
13829 case $ac_mode$ac_tag in
13831 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
13832 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
13833 { (exit 1); exit 1; }; };;
13834 :[FH]-) ac_tag=-:-;;
13835 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13852 -) ac_f="$tmp/stdin";;
13853 *) # Look for the file first in the build tree, then in the source tree
13854 # (if the path is not absolute). The absolute path cannot be DOS-style,
13855 # because $ac_f cannot contain `:'.
13859 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13861 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13862 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13863 { (exit 1); exit 1; }; };;
13865 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13866 ac_file_inputs="$ac_file_inputs '$ac_f'"
13869 # Let's still pretend it is `configure' which instantiates (i.e., don't
13870 # use $as_me), people would be surprised to read:
13871 # /* config.h. Generated by config.status. */
13872 configure_input='Generated from '`
13873 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13875 if test x"$ac_file" != x-; then
13876 configure_input="$ac_file. $configure_input"
13877 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
13878 $as_echo "$as_me: creating $ac_file" >&6;}
13880 # Neutralize special characters interpreted by sed in replacement strings.
13881 case $configure_input in #(
13882 *\&* | *\|* | *\\* )
13883 ac_sed_conf_input=`$as_echo "$configure_input" |
13884 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13885 *) ac_sed_conf_input=$configure_input;;
13889 *:-:* | *:-) cat >"$tmp/stdin" \
13890 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13891 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13892 { (exit 1); exit 1; }; } ;;
13897 ac_dir=`$as_dirname -- "$ac_file" ||
13898 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13899 X"$ac_file" : 'X\(//\)[^/]' \| \
13900 X"$ac_file" : 'X\(//\)$' \| \
13901 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13902 $as_echo X"$ac_file" |
13903 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13907 /^X\(\/\/\)[^/].*/{
13922 -*) as_dir=./$as_dir;;
13924 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13928 *\'*) as_qdir=`$as_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 ||
13937 $as_echo X"$as_dir" |
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" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13959 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13960 { (exit 1); exit 1; }; }; }
13964 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13966 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13967 # A ".." for each directory in $ac_dir_suffix.
13968 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13969 case $ac_top_builddir_sub in
13970 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13971 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13974 ac_abs_top_builddir=$ac_pwd
13975 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13976 # for backward compatibility:
13977 ac_top_builddir=$ac_top_build_prefix
13980 .) # We are building in place.
13982 ac_top_srcdir=$ac_top_builddir_sub
13983 ac_abs_top_srcdir=$ac_pwd ;;
13984 [\\/]* | ?:[\\/]* ) # Absolute name.
13985 ac_srcdir=$srcdir$ac_dir_suffix;
13986 ac_top_srcdir=$srcdir
13987 ac_abs_top_srcdir=$srcdir ;;
13988 *) # Relative name.
13989 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13990 ac_top_srcdir=$ac_top_build_prefix$srcdir
13991 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13993 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14003 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14004 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14006 ac_MKDIR_P=$MKDIR_P
14008 [\\/$]* | ?:[\\/]* ) ;;
14009 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14013 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14014 # If the template does not know about datarootdir, expand it.
14015 # FIXME: This hack should be removed a few years after 2.60.
14016 ac_datarootdir_hack=; ac_datarootdir_seen=
14029 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14030 *datarootdir*) ac_datarootdir_seen=yes;;
14031 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14032 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14033 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14036 ac_datarootdir_hack='
14037 s&@datadir@&$datadir&g
14038 s&@docdir@&$docdir&g
14039 s&@infodir@&$infodir&g
14040 s&@localedir@&$localedir&g
14041 s&@mandir@&$mandir&g
14042 s&\\\${datarootdir}&$datarootdir&g' ;;
14046 # Neutralize VPATH when `$srcdir' = `.'.
14047 # Shell code in configure.ac might set extrasub.
14048 # FIXME: do we really want to maintain this feature?
14049 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14050 ac_sed_extra="$ac_vpsub
14053 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14055 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14056 s|@configure_input@|$ac_sed_conf_input|;t t
14057 s&@top_builddir@&$ac_top_builddir_sub&;t t
14058 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14059 s&@srcdir@&$ac_srcdir&;t t
14060 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14061 s&@top_srcdir@&$ac_top_srcdir&;t t
14062 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14063 s&@builddir@&$ac_builddir&;t t
14064 s&@abs_builddir@&$ac_abs_builddir&;t t
14065 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14066 s&@INSTALL@&$ac_INSTALL&;t t
14067 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14068 $ac_datarootdir_hack
14070 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14071 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14072 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14073 { (exit 1); exit 1; }; }
14075 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14076 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14077 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14078 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14079 which seems to be undefined. Please make sure it is defined." >&5
14080 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14081 which seems to be undefined. Please make sure it is defined." >&2;}
14085 -) cat "$tmp/out" && rm -f "$tmp/out";;
14086 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14088 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14089 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14090 { (exit 1); exit 1; }; }
14094 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14095 $as_echo "$as_me: executing $ac_file commands" >&6;}
14100 case $ac_file$ac_mode in
14101 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14102 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14103 # are listed without --file. Let's play safe and only enable the eval
14104 # if we detect the quoting.
14105 case $CONFIG_FILES in
14106 *\'*) eval set x "$CONFIG_FILES" ;;
14107 *) set x $CONFIG_FILES ;;
14112 # Strip MF so we end up with the name of the file.
14113 mf=`echo "$mf" | sed -e 's/:.*$//'`
14114 # Check whether this is an Automake generated Makefile or not.
14115 # We used to match only the files named `Makefile.in', but
14116 # some people rename them; so instead we look at the file content.
14117 # Grep'ing the first line is not enough: some people post-process
14118 # each Makefile.in and add a new line on top of each file to say so.
14119 # Grep'ing the whole file is not good either: AIX grep has a line
14120 # limit of 2048, but all sed's we know have understand at least 4000.
14121 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14122 dirpart=`$as_dirname -- "$mf" ||
14123 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14124 X"$mf" : 'X\(//\)[^/]' \| \
14125 X"$mf" : 'X\(//\)$' \| \
14126 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14128 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14132 /^X\(\/\/\)[^/].*/{
14148 # Extract the definition of DEPDIR, am__include, and am__quote
14149 # from the Makefile without running `make'.
14150 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14151 test -z "$DEPDIR" && continue
14152 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14153 test -z "am__include" && continue
14154 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14155 # When using ansi2knr, U may be empty or an underscore; expand it
14156 U=`sed -n 's/^U = //p' < "$mf"`
14157 # Find all dependency output files, they are included files with
14158 # $(DEPDIR) in their names. We invoke sed twice because it is the
14159 # simplest approach to changing $(DEPDIR) to its actual value in the
14161 for file in `sed -n "
14162 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14163 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14164 # Make sure the directory exists.
14165 test -f "$dirpart/$file" && continue
14166 fdir=`$as_dirname -- "$file" ||
14167 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14168 X"$file" : 'X\(//\)[^/]' \| \
14169 X"$file" : 'X\(//\)$' \| \
14170 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14171 $as_echo X"$file" |
14172 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14176 /^X\(\/\/\)[^/].*/{
14189 { as_dir=$dirpart/$fdir
14191 -*) as_dir=./$as_dir;;
14193 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14197 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14198 *) as_qdir=$as_dir;;
14200 as_dirs="'$as_qdir' $as_dirs"
14201 as_dir=`$as_dirname -- "$as_dir" ||
14202 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14203 X"$as_dir" : 'X\(//\)[^/]' \| \
14204 X"$as_dir" : 'X\(//\)$' \| \
14205 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14206 $as_echo X"$as_dir" |
14207 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14211 /^X\(\/\/\)[^/].*/{
14224 test -d "$as_dir" && break
14226 test -z "$as_dirs" || eval "mkdir $as_dirs"
14227 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14228 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14229 { (exit 1); exit 1; }; }; }
14230 # echo "creating $dirpart/$file"
14231 echo '# dummy' > "$dirpart/$file"
14238 # See if we are running on zsh, and set the options which allow our
14239 # commands through without removal of \ escapes.
14240 if test -n "${ZSH_VERSION+set}" ; then
14241 setopt NO_GLOB_SUBST
14244 cfgfile="${ofile}T"
14245 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14248 cat <<_LT_EOF >> "$cfgfile"
14251 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14252 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14253 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14254 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14256 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14257 # 2006, 2007, 2008 Free Software Foundation, Inc.
14258 # Written by Gordon Matzigkeit, 1996
14260 # This file is part of GNU Libtool.
14262 # GNU Libtool is free software; you can redistribute it and/or
14263 # modify it under the terms of the GNU General Public License as
14264 # published by the Free Software Foundation; either version 2 of
14265 # the License, or (at your option) any later version.
14267 # As a special exception to the GNU General Public License,
14268 # if you distribute this file as part of a program or library that
14269 # is built using GNU Libtool, you may include this file under the
14270 # same distribution terms that you use for the rest of that program.
14272 # GNU Libtool is distributed in the hope that it will be useful,
14273 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14274 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14275 # GNU General Public License for more details.
14277 # You should have received a copy of the GNU General Public License
14278 # along with GNU Libtool; see the file COPYING. If not, a copy
14279 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14280 # obtained by writing to the Free Software Foundation, Inc.,
14281 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14284 # The names of the tagged configurations supported by this script.
14287 # ### BEGIN LIBTOOL CONFIG
14289 # A sed program that does not truncate output.
14292 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14293 Xsed="\$SED -e 1s/^X//"
14295 # Assembler program.
14298 # DLL creation program.
14301 # Object dumper program.
14304 # Which release of libtool.m4 was used?
14305 macro_version=$macro_version
14306 macro_revision=$macro_revision
14308 # Whether or not to build shared libraries.
14309 build_libtool_libs=$enable_shared
14311 # Whether or not to build static libraries.
14312 build_old_libs=$enable_static
14314 # What type of objects to build.
14317 # Whether or not to optimize for fast installation.
14318 fast_install=$enable_fast_install
14321 host_alias=$host_alias
14325 # The build system.
14326 build_alias=$build_alias
14330 # A grep program that handles long lines.
14336 # A literal string matcher.
14339 # A BSD- or MS-compatible name lister.
14342 # Whether we need soft or hard links.
14345 # What is the maximum length of a command?
14346 max_cmd_len=$max_cmd_len
14348 # Object file suffix (normally "o").
14351 # Executable file suffix (normally "").
14354 # whether the shell understands "unset".
14357 # turn spaces into newlines.
14360 # turn newlines into spaces.
14363 # How to create reloadable object files.
14364 reload_flag=$lt_reload_flag
14365 reload_cmds=$lt_reload_cmds
14367 # Method to check whether dependent libraries are shared objects.
14368 deplibs_check_method=$lt_deplibs_check_method
14370 # Command to use when deplibs_check_method == "file_magic".
14371 file_magic_cmd=$lt_file_magic_cmd
14375 AR_FLAGS=$lt_AR_FLAGS
14377 # A symbol stripping program.
14380 # Commands used to install an old-style archive.
14382 old_postinstall_cmds=$lt_old_postinstall_cmds
14383 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14388 # LTCC compiler flags.
14389 LTCFLAGS=$lt_CFLAGS
14391 # Take the output of nm and produce a listing of raw symbols and C names.
14392 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14394 # Transform the output of nm in a proper C declaration.
14395 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14397 # Transform the output of nm in a C name address pair.
14398 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14400 # Transform the output of nm in a C name address pair when lib prefix is needed.
14401 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14403 # The name of the directory that contains temporary libtool files.
14406 # Shell to use when invoking shell scripts.
14409 # An echo program that does not interpret backslashes.
14412 # Used to examine libraries when file_magic_cmd begins with "file".
14413 MAGIC_CMD=$MAGIC_CMD
14415 # Must we lock files when doing compilation?
14416 need_locks=$lt_need_locks
14418 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14419 DSYMUTIL=$lt_DSYMUTIL
14421 # Tool to change global to local symbols on Mac OS X.
14424 # Tool to manipulate fat objects and archives on Mac OS X.
14427 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14430 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14431 OTOOL64=$lt_OTOOL64
14433 # Old archive suffix (normally "a").
14436 # Shared library suffix (normally ".so").
14437 shrext_cmds=$lt_shrext_cmds
14439 # The commands to extract the exported symbol list from a shared archive.
14440 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14442 # Variables whose values should be saved in libtool wrapper scripts and
14443 # restored at link time.
14444 variables_saved_for_relink=$lt_variables_saved_for_relink
14446 # Do we need the "lib" prefix for modules?
14447 need_lib_prefix=$need_lib_prefix
14449 # Do we need a version for libraries?
14450 need_version=$need_version
14452 # Library versioning type.
14453 version_type=$version_type
14455 # Shared library runtime path variable.
14456 runpath_var=$runpath_var
14458 # Shared library path variable.
14459 shlibpath_var=$shlibpath_var
14461 # Is shlibpath searched before the hard-coded library search path?
14462 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14464 # Format of library name prefix.
14465 libname_spec=$lt_libname_spec
14467 # List of archive names. First name is the real one, the rest are links.
14468 # The last name is the one that the linker finds with -lNAME
14469 library_names_spec=$lt_library_names_spec
14471 # The coded name of the library, if different from the real name.
14472 soname_spec=$lt_soname_spec
14474 # Command to use after installation of a shared archive.
14475 postinstall_cmds=$lt_postinstall_cmds
14477 # Command to use after uninstallation of a shared archive.
14478 postuninstall_cmds=$lt_postuninstall_cmds
14480 # Commands used to finish a libtool library installation in a directory.
14481 finish_cmds=$lt_finish_cmds
14483 # As "finish_cmds", except a single script fragment to be evaled but
14485 finish_eval=$lt_finish_eval
14487 # Whether we should hardcode library paths into libraries.
14488 hardcode_into_libs=$hardcode_into_libs
14490 # Compile-time system search path for libraries.
14491 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14493 # Run-time system search path for libraries.
14494 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14496 # Whether dlopen is supported.
14497 dlopen_support=$enable_dlopen
14499 # Whether dlopen of programs is supported.
14500 dlopen_self=$enable_dlopen_self
14502 # Whether dlopen of statically linked programs is supported.
14503 dlopen_self_static=$enable_dlopen_self_static
14505 # Commands to strip libraries.
14506 old_striplib=$lt_old_striplib
14507 striplib=$lt_striplib
14510 # The linker used to build libraries.
14513 # Commands used to build an old-style archive.
14514 old_archive_cmds=$lt_old_archive_cmds
14516 # A language specific compiler.
14519 # Is the compiler the GNU compiler?
14522 # Compiler flag to turn off builtin functions.
14523 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14525 # How to pass a linker flag through the compiler.
14526 wl=$lt_lt_prog_compiler_wl
14528 # Additional compiler flags for building library objects.
14529 pic_flag=$lt_lt_prog_compiler_pic
14531 # Compiler flag to prevent dynamic linking.
14532 link_static_flag=$lt_lt_prog_compiler_static
14534 # Does compiler simultaneously support -c and -o options?
14535 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14537 # Whether or not to add -lc for building shared libraries.
14538 build_libtool_need_lc=$archive_cmds_need_lc
14540 # Whether or not to disallow shared libs when runtime libs are static.
14541 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14543 # Compiler flag to allow reflexive dlopens.
14544 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14546 # Compiler flag to generate shared objects directly from archives.
14547 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14549 # Whether the compiler copes with passing no objects directly.
14550 compiler_needs_object=$lt_compiler_needs_object
14552 # Create an old-style archive from a shared archive.
14553 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14555 # Create a temporary old-style archive to link instead of a shared archive.
14556 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14558 # Commands used to build a shared archive.
14559 archive_cmds=$lt_archive_cmds
14560 archive_expsym_cmds=$lt_archive_expsym_cmds
14562 # Commands used to build a loadable module if different from building
14563 # a shared archive.
14564 module_cmds=$lt_module_cmds
14565 module_expsym_cmds=$lt_module_expsym_cmds
14567 # Whether we are building with GNU ld or not.
14568 with_gnu_ld=$lt_with_gnu_ld
14570 # Flag that allows shared libraries with undefined symbols to be built.
14571 allow_undefined_flag=$lt_allow_undefined_flag
14573 # Flag that enforces no undefined symbols.
14574 no_undefined_flag=$lt_no_undefined_flag
14576 # Flag to hardcode \$libdir into a binary during linking.
14577 # This must work even if \$libdir does not exist
14578 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14580 # If ld is used when linking, flag to hardcode \$libdir into a binary
14581 # during linking. This must work even if \$libdir does not exist.
14582 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14584 # Whether we need a single "-rpath" flag with a separated argument.
14585 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14587 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14588 # DIR into the resulting binary.
14589 hardcode_direct=$hardcode_direct
14591 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14592 # DIR into the resulting binary and the resulting library dependency is
14593 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14594 # library is relocated.
14595 hardcode_direct_absolute=$hardcode_direct_absolute
14597 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14598 # into the resulting binary.
14599 hardcode_minus_L=$hardcode_minus_L
14601 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14602 # into the resulting binary.
14603 hardcode_shlibpath_var=$hardcode_shlibpath_var
14605 # Set to "yes" if building a shared library automatically hardcodes DIR
14606 # into the library and all subsequent libraries and executables linked
14608 hardcode_automatic=$hardcode_automatic
14610 # Set to yes if linker adds runtime paths of dependent libraries
14611 # to runtime path list.
14612 inherit_rpath=$inherit_rpath
14614 # Whether libtool must link a program against all its dependency libraries.
14615 link_all_deplibs=$link_all_deplibs
14617 # Fix the shell variable \$srcfile for the compiler.
14618 fix_srcfile_path=$lt_fix_srcfile_path
14620 # Set to "yes" if exported symbols are required.
14621 always_export_symbols=$always_export_symbols
14623 # The commands to list exported symbols.
14624 export_symbols_cmds=$lt_export_symbols_cmds
14626 # Symbols that should not be listed in the preloaded symbols.
14627 exclude_expsyms=$lt_exclude_expsyms
14629 # Symbols that must always be exported.
14630 include_expsyms=$lt_include_expsyms
14632 # Commands necessary for linking programs (against libraries) with templates.
14633 prelink_cmds=$lt_prelink_cmds
14635 # Specify filename containing input files.
14636 file_list_spec=$lt_file_list_spec
14638 # How to hardcode a shared library path into an executable.
14639 hardcode_action=$hardcode_action
14641 # ### END LIBTOOL CONFIG
14647 cat <<\_LT_EOF >> "$cfgfile"
14648 # AIX sometimes has problems with the GCC collect2 program. For some
14649 # reason, if we set the COLLECT_NAMES environment variable, the problems
14650 # vanish in a puff of smoke.
14651 if test "X${COLLECT_NAMES+set}" != Xset; then
14653 export COLLECT_NAMES
14660 ltmain="$ac_aux_dir/ltmain.sh"
14663 # We use sed instead of cat because bash on DJGPP gets confused if
14664 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14665 # text mode, it properly converts lines to CR/LF. This bash problem
14666 # is reportedly fixed, but why not run on old versions too?
14667 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14668 || (rm -f "$cfgfile"; exit 1)
14672 cat << \_LT_EOF >> "$cfgfile"
14674 # func_dirname file append nondir_replacement
14675 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14676 # otherwise set result to NONDIR_REPLACEMENT.
14680 */*) func_dirname_result="${1%/*}${2}" ;;
14681 * ) func_dirname_result="${3}" ;;
14685 # func_basename file
14688 func_basename_result="${1##*/}"
14691 # func_dirname_and_basename file append nondir_replacement
14692 # perform func_basename and func_dirname in a single function
14694 # dirname: Compute the dirname of FILE. If nonempty,
14695 # add APPEND to the result, otherwise set result
14696 # to NONDIR_REPLACEMENT.
14697 # value returned in "$func_dirname_result"
14698 # basename: Compute filename of FILE.
14699 # value retuned in "$func_basename_result"
14700 # Implementation must be kept synchronized with func_dirname
14701 # and func_basename. For efficiency, we do not delegate to
14702 # those functions but instead duplicate the functionality here.
14703 func_dirname_and_basename ()
14706 */*) func_dirname_result="${1%/*}${2}" ;;
14707 * ) func_dirname_result="${3}" ;;
14709 func_basename_result="${1##*/}"
14712 # func_stripname prefix suffix name
14713 # strip PREFIX and SUFFIX off of NAME.
14714 # PREFIX and SUFFIX must not contain globbing or regex special
14715 # characters, hashes, percent signs, but SUFFIX may contain a leading
14716 # dot (in which case that matches only a dot).
14719 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14720 # positional parameters, so assign one to ordinary parameter first.
14721 func_stripname_result=${3}
14722 func_stripname_result=${func_stripname_result#"${1}"}
14723 func_stripname_result=${func_stripname_result%"${2}"}
14729 func_opt_split_opt=${1%%=*}
14730 func_opt_split_arg=${1#*=}
14737 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14738 *) func_lo2o_result=${1} ;;
14742 # func_xform libobj-or-source
14745 func_xform_result=${1%.*}.lo
14748 # func_arith arithmetic-term...
14751 func_arith_result=$(( $* ))
14755 # STRING may not start with a hyphen.
14758 func_len_result=${#1}
14763 *) # Bourne compatible functions.
14764 cat << \_LT_EOF >> "$cfgfile"
14766 # func_dirname file append nondir_replacement
14767 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14768 # otherwise set result to NONDIR_REPLACEMENT.
14771 # Extract subdirectory from the argument.
14772 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14773 if test "X$func_dirname_result" = "X${1}"; then
14774 func_dirname_result="${3}"
14776 func_dirname_result="$func_dirname_result${2}"
14780 # func_basename file
14783 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14787 # func_stripname prefix suffix name
14788 # strip PREFIX and SUFFIX off of NAME.
14789 # PREFIX and SUFFIX must not contain globbing or regex special
14790 # characters, hashes, percent signs, but SUFFIX may contain a leading
14791 # dot (in which case that matches only a dot).
14792 # func_strip_suffix prefix name
14796 .*) func_stripname_result=`$ECHO "X${3}" \
14797 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14798 *) func_stripname_result=`$ECHO "X${3}" \
14799 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14804 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14805 my_sed_long_arg='1s/^-[^=]*=//'
14810 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14811 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14817 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14820 # func_xform libobj-or-source
14823 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14826 # func_arith arithmetic-term...
14829 func_arith_result=`expr "$@"`
14833 # STRING may not start with a hyphen.
14836 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14842 case $lt_shell_append in
14844 cat << \_LT_EOF >> "$cfgfile"
14846 # func_append var value
14847 # Append VALUE to the end of shell variable VAR.
14855 cat << \_LT_EOF >> "$cfgfile"
14857 # func_append var value
14858 # Append VALUE to the end of shell variable VAR.
14869 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14870 || (rm -f "$cfgfile"; exit 1)
14872 mv -f "$cfgfile" "$ofile" ||
14873 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14882 { (exit 0); exit 0; }
14884 chmod +x $CONFIG_STATUS
14885 ac_clean_files=$ac_clean_files_save
14887 test $ac_write_fail = 0 ||
14888 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
14889 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
14890 { (exit 1); exit 1; }; }
14893 # configure is writing to config.log, and then calls config.status.
14894 # config.status does its own redirection, appending to config.log.
14895 # Unfortunately, on DOS this fails, as config.log is still kept open
14896 # by configure, so config.status won't be able to write to it; its
14897 # output is simply discarded. So we exec the FD to /dev/null,
14898 # effectively closing config.log, so it can be properly (re)opened and
14899 # appended to by config.status. When coming back to configure, we
14900 # need to make the FD available again.
14901 if test "$no_create" != yes; then
14903 ac_config_status_args=
14904 test "$silent" = yes &&
14905 ac_config_status_args="$ac_config_status_args --quiet"
14907 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14909 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14910 # would make configure fail if this is the last instruction.
14911 $ac_cs_success || { (exit 1); exit 1; }
14915 # CONFIG_SUBDIRS section.
14917 if test "$no_recursion" != yes; then
14919 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
14920 # so they do not pile up.
14921 ac_sub_configure_args=
14923 eval "set x $ac_configure_args"
14927 if test -n "$ac_prev"; then
14932 -cache-file | --cache-file | --cache-fil | --cache-fi \
14933 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
14934 ac_prev=cache_file ;;
14935 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
14936 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
14939 --config-cache | -C)
14941 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
14943 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
14945 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
14947 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
14949 --disable-option-checking)
14953 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14955 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
14959 # Always prepend --prefix to ensure using the same prefix
14960 # in subdir configurations.
14961 ac_arg="--prefix=$prefix"
14963 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14965 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
14968 if test "$silent" = yes; then
14969 ac_sub_configure_args="--silent $ac_sub_configure_args"
14972 # Always prepend --disable-option-checking to silence warnings, since
14973 # different subdirs can have different --enable and --with options.
14974 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
14977 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
14979 # Do not complain, so a configure script can configure whichever
14980 # parts of a large source tree are present.
14981 test -d "$srcdir/$ac_dir" || continue
14983 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
14984 $as_echo "$as_me:$LINENO: $ac_msg" >&5
14985 $as_echo "$ac_msg" >&6
14988 -*) as_dir=./$as_dir;;
14990 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14994 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14995 *) as_qdir=$as_dir;;
14997 as_dirs="'$as_qdir' $as_dirs"
14998 as_dir=`$as_dirname -- "$as_dir" ||
14999 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15000 X"$as_dir" : 'X\(//\)[^/]' \| \
15001 X"$as_dir" : 'X\(//\)$' \| \
15002 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15003 $as_echo X"$as_dir" |
15004 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15008 /^X\(\/\/\)[^/].*/{
15021 test -d "$as_dir" && break
15023 test -z "$as_dirs" || eval "mkdir $as_dirs"
15024 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15025 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
15026 { (exit 1); exit 1; }; }; }
15030 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15032 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15033 # A ".." for each directory in $ac_dir_suffix.
15034 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15035 case $ac_top_builddir_sub in
15036 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15037 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15040 ac_abs_top_builddir=$ac_pwd
15041 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15042 # for backward compatibility:
15043 ac_top_builddir=$ac_top_build_prefix
15046 .) # We are building in place.
15048 ac_top_srcdir=$ac_top_builddir_sub
15049 ac_abs_top_srcdir=$ac_pwd ;;
15050 [\\/]* | ?:[\\/]* ) # Absolute name.
15051 ac_srcdir=$srcdir$ac_dir_suffix;
15052 ac_top_srcdir=$srcdir
15053 ac_abs_top_srcdir=$srcdir ;;
15054 *) # Relative name.
15055 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15056 ac_top_srcdir=$ac_top_build_prefix$srcdir
15057 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15059 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15064 # Check for guested configure; otherwise get Cygnus style configure.
15065 if test -f "$ac_srcdir/configure.gnu"; then
15066 ac_sub_configure=$ac_srcdir/configure.gnu
15067 elif test -f "$ac_srcdir/configure"; then
15068 ac_sub_configure=$ac_srcdir/configure
15069 elif test -f "$ac_srcdir/configure.in"; then
15070 # This should be Cygnus configure.
15071 ac_sub_configure=$ac_aux_dir/configure
15073 { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
15074 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
15078 # The recursion is here.
15079 if test -n "$ac_sub_configure"; then
15080 # Make the cache file name correct relative to the subdirectory.
15081 case $cache_file in
15082 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
15083 *) # Relative name.
15084 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
15087 { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
15088 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
15089 # The eval makes quoting arguments work.
15090 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
15091 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
15092 { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
15093 $as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
15094 { (exit 1); exit 1; }; }
15100 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15101 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15102 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}