2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for newlib 1.18.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.18.0'
747 PACKAGE_STRING='newlib 1.18.0'
750 ac_unique_file="attr.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
842 MAINTAINER_MODE_FALSE
866 INSTALL_STRIP_PROGRAM
890 MAY_SUPPLY_SYSCALLS_FALSE
891 MAY_SUPPLY_SYSCALLS_TRUE
919 program_transform_name
931 enable_option_checking
933 enable_target_optspace
934 enable_malloc_debugging
935 enable_newlib_multithread
937 enable_newlib_elix_level
938 enable_newlib_io_float
939 enable_newlib_supplied_syscalls
940 enable_dependency_tracking
941 enable_maintainer_mode
949 ac_precious_vars='build_alias
960 ac_subdirs_all='machine'
962 # Initialize some variables set by options.
964 ac_init_version=false
965 ac_unrecognized_opts=
967 # The variables have the same names as the options, with
968 # dashes changed to underlines.
976 program_transform_name=s,x,x,
984 # Installation directory options.
985 # These are left unexpanded so users can "make install exec_prefix=/foo"
986 # and all the variables that are supposed to be based on exec_prefix
987 # by default will actually change.
988 # Use braces instead of parens because sh, perl, etc. also accept them.
989 # (The list follows the same order as the GNU Coding Standards.)
990 bindir='${exec_prefix}/bin'
991 sbindir='${exec_prefix}/sbin'
992 libexecdir='${exec_prefix}/libexec'
993 datarootdir='${prefix}/share'
994 datadir='${datarootdir}'
995 sysconfdir='${prefix}/etc'
996 sharedstatedir='${prefix}/com'
997 localstatedir='${prefix}/var'
998 includedir='${prefix}/include'
999 oldincludedir='/usr/include'
1000 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1001 infodir='${datarootdir}/info'
1006 libdir='${exec_prefix}/lib'
1007 localedir='${datarootdir}/locale'
1008 mandir='${datarootdir}/man'
1014 # If the previous option needs an argument, assign it.
1015 if test -n "$ac_prev"; then
1016 eval $ac_prev=\$ac_option
1022 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1026 # Accept the important Cygnus configure options, so we can diagnose typos.
1028 case $ac_dashdash$ac_option in
1032 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1034 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1035 bindir=$ac_optarg ;;
1037 -build | --build | --buil | --bui | --bu)
1038 ac_prev=build_alias ;;
1039 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1040 build_alias=$ac_optarg ;;
1042 -cache-file | --cache-file | --cache-fil | --cache-fi \
1043 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1044 ac_prev=cache_file ;;
1045 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1046 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1047 cache_file=$ac_optarg ;;
1049 --config-cache | -C)
1050 cache_file=config.cache ;;
1052 -datadir | --datadir | --datadi | --datad)
1054 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1055 datadir=$ac_optarg ;;
1057 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1058 | --dataroo | --dataro | --datar)
1059 ac_prev=datarootdir ;;
1060 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1061 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1062 datarootdir=$ac_optarg ;;
1064 -disable-* | --disable-*)
1065 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1066 # Reject names that are not valid shell variable names.
1067 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1068 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1069 { (exit 1); exit 1; }; }
1070 ac_useropt_orig=$ac_useropt
1071 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072 case $ac_user_opts in
1074 "enable_$ac_useropt"
1076 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1077 ac_unrecognized_sep=', ';;
1079 eval enable_$ac_useropt=no ;;
1081 -docdir | --docdir | --docdi | --doc | --do)
1083 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1084 docdir=$ac_optarg ;;
1086 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1088 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1089 dvidir=$ac_optarg ;;
1091 -enable-* | --enable-*)
1092 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1093 # Reject names that are not valid shell variable names.
1094 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1095 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1096 { (exit 1); exit 1; }; }
1097 ac_useropt_orig=$ac_useropt
1098 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1099 case $ac_user_opts in
1101 "enable_$ac_useropt"
1103 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1104 ac_unrecognized_sep=', ';;
1106 eval enable_$ac_useropt=\$ac_optarg ;;
1108 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1109 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1110 | --exec | --exe | --ex)
1111 ac_prev=exec_prefix ;;
1112 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1113 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1114 | --exec=* | --exe=* | --ex=*)
1115 exec_prefix=$ac_optarg ;;
1117 -gas | --gas | --ga | --g)
1118 # Obsolete; use --with-gas.
1121 -help | --help | --hel | --he | -h)
1122 ac_init_help=long ;;
1123 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1124 ac_init_help=recursive ;;
1125 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1126 ac_init_help=short ;;
1128 -host | --host | --hos | --ho)
1129 ac_prev=host_alias ;;
1130 -host=* | --host=* | --hos=* | --ho=*)
1131 host_alias=$ac_optarg ;;
1133 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1135 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1137 htmldir=$ac_optarg ;;
1139 -includedir | --includedir | --includedi | --included | --include \
1140 | --includ | --inclu | --incl | --inc)
1141 ac_prev=includedir ;;
1142 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1143 | --includ=* | --inclu=* | --incl=* | --inc=*)
1144 includedir=$ac_optarg ;;
1146 -infodir | --infodir | --infodi | --infod | --info | --inf)
1148 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1149 infodir=$ac_optarg ;;
1151 -libdir | --libdir | --libdi | --libd)
1153 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1154 libdir=$ac_optarg ;;
1156 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1157 | --libexe | --libex | --libe)
1158 ac_prev=libexecdir ;;
1159 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1160 | --libexe=* | --libex=* | --libe=*)
1161 libexecdir=$ac_optarg ;;
1163 -localedir | --localedir | --localedi | --localed | --locale)
1164 ac_prev=localedir ;;
1165 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1166 localedir=$ac_optarg ;;
1168 -localstatedir | --localstatedir | --localstatedi | --localstated \
1169 | --localstate | --localstat | --localsta | --localst | --locals)
1170 ac_prev=localstatedir ;;
1171 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1172 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1173 localstatedir=$ac_optarg ;;
1175 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1177 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1178 mandir=$ac_optarg ;;
1180 -nfp | --nfp | --nf)
1181 # Obsolete; use --without-fp.
1184 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1185 | --no-cr | --no-c | -n)
1188 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1189 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1192 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1193 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1194 | --oldin | --oldi | --old | --ol | --o)
1195 ac_prev=oldincludedir ;;
1196 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1197 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1198 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1199 oldincludedir=$ac_optarg ;;
1201 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1203 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1204 prefix=$ac_optarg ;;
1206 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1207 | --program-pre | --program-pr | --program-p)
1208 ac_prev=program_prefix ;;
1209 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1210 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1211 program_prefix=$ac_optarg ;;
1213 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1214 | --program-suf | --program-su | --program-s)
1215 ac_prev=program_suffix ;;
1216 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1217 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1218 program_suffix=$ac_optarg ;;
1220 -program-transform-name | --program-transform-name \
1221 | --program-transform-nam | --program-transform-na \
1222 | --program-transform-n | --program-transform- \
1223 | --program-transform | --program-transfor \
1224 | --program-transfo | --program-transf \
1225 | --program-trans | --program-tran \
1226 | --progr-tra | --program-tr | --program-t)
1227 ac_prev=program_transform_name ;;
1228 -program-transform-name=* | --program-transform-name=* \
1229 | --program-transform-nam=* | --program-transform-na=* \
1230 | --program-transform-n=* | --program-transform-=* \
1231 | --program-transform=* | --program-transfor=* \
1232 | --program-transfo=* | --program-transf=* \
1233 | --program-trans=* | --program-tran=* \
1234 | --progr-tra=* | --program-tr=* | --program-t=*)
1235 program_transform_name=$ac_optarg ;;
1237 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1239 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1240 pdfdir=$ac_optarg ;;
1242 -psdir | --psdir | --psdi | --psd | --ps)
1244 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1247 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1248 | -silent | --silent | --silen | --sile | --sil)
1251 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1253 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1255 sbindir=$ac_optarg ;;
1257 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1258 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1259 | --sharedst | --shareds | --shared | --share | --shar \
1261 ac_prev=sharedstatedir ;;
1262 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1263 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1264 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1266 sharedstatedir=$ac_optarg ;;
1268 -site | --site | --sit)
1270 -site=* | --site=* | --sit=*)
1273 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1275 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1276 srcdir=$ac_optarg ;;
1278 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1279 | --syscon | --sysco | --sysc | --sys | --sy)
1280 ac_prev=sysconfdir ;;
1281 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1282 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1283 sysconfdir=$ac_optarg ;;
1285 -target | --target | --targe | --targ | --tar | --ta | --t)
1286 ac_prev=target_alias ;;
1287 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1288 target_alias=$ac_optarg ;;
1290 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1293 -version | --version | --versio | --versi | --vers | -V)
1294 ac_init_version=: ;;
1297 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1298 # Reject names that are not valid shell variable names.
1299 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1300 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1301 { (exit 1); exit 1; }; }
1302 ac_useropt_orig=$ac_useropt
1303 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1304 case $ac_user_opts in
1308 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1309 ac_unrecognized_sep=', ';;
1311 eval with_$ac_useropt=\$ac_optarg ;;
1313 -without-* | --without-*)
1314 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1315 # Reject names that are not valid shell variable names.
1316 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1317 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1318 { (exit 1); exit 1; }; }
1319 ac_useropt_orig=$ac_useropt
1320 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1321 case $ac_user_opts in
1325 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1326 ac_unrecognized_sep=', ';;
1328 eval with_$ac_useropt=no ;;
1331 # Obsolete; use --with-x.
1334 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1335 | --x-incl | --x-inc | --x-in | --x-i)
1336 ac_prev=x_includes ;;
1337 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1338 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1339 x_includes=$ac_optarg ;;
1341 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1342 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1343 ac_prev=x_libraries ;;
1344 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1345 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1346 x_libraries=$ac_optarg ;;
1348 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1349 Try \`$0 --help' for more information." >&2
1350 { (exit 1); exit 1; }; }
1354 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1355 # Reject names that are not valid shell variable names.
1356 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1357 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1358 { (exit 1); exit 1; }; }
1359 eval $ac_envvar=\$ac_optarg
1360 export $ac_envvar ;;
1363 # FIXME: should be removed in autoconf 3.0.
1364 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1365 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1366 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1367 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1373 if test -n "$ac_prev"; then
1374 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1375 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1376 { (exit 1); exit 1; }; }
1379 if test -n "$ac_unrecognized_opts"; then
1380 case $enable_option_checking in
1382 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1383 { (exit 1); exit 1; }; } ;;
1384 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1388 # Check all directory arguments for consistency.
1389 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1390 datadir sysconfdir sharedstatedir localstatedir includedir \
1391 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1392 libdir localedir mandir
1394 eval ac_val=\$$ac_var
1395 # Remove trailing slashes.
1398 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1399 eval $ac_var=\$ac_val;;
1401 # Be sure to have absolute directory names.
1403 [\\/$]* | ?:[\\/]* ) continue;;
1404 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1406 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1407 { (exit 1); exit 1; }; }
1410 # There might be people who depend on the old broken behavior: `$host'
1411 # used to hold the argument of --host etc.
1412 # FIXME: To remove some day.
1415 target=$target_alias
1417 # FIXME: To remove some day.
1418 if test "x$host_alias" != x; then
1419 if test "x$build_alias" = x; then
1420 cross_compiling=maybe
1421 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1422 If a cross compiler is detected then cross compile mode will be used." >&2
1423 elif test "x$build_alias" != "x$host_alias"; then
1429 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1431 test "$silent" = yes && exec 6>/dev/null
1434 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1435 ac_ls_di=`ls -di .` &&
1436 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1437 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1438 { (exit 1); exit 1; }; }
1439 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1440 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1441 { (exit 1); exit 1; }; }
1444 # Find the source files, if location was not specified.
1445 if test -z "$srcdir"; then
1446 ac_srcdir_defaulted=yes
1447 # Try the directory containing this script, then the parent directory.
1448 ac_confdir=`$as_dirname -- "$as_myself" ||
1449 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1450 X"$as_myself" : 'X\(//\)[^/]' \| \
1451 X"$as_myself" : 'X\(//\)$' \| \
1452 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1453 $as_echo X"$as_myself" |
1454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1472 if test ! -r "$srcdir/$ac_unique_file"; then
1476 ac_srcdir_defaulted=no
1478 if test ! -r "$srcdir/$ac_unique_file"; then
1479 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1480 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1481 { (exit 1); exit 1; }; }
1483 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1485 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1486 { (exit 1); exit 1; }; }
1488 # When building in place, set srcdir=.
1489 if test "$ac_abs_confdir" = "$ac_pwd"; then
1492 # Remove unnecessary trailing slashes from srcdir.
1493 # Double slashes in file names in object file debugging info
1494 # mess up M-x gdb in Emacs.
1496 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1498 for ac_var in $ac_precious_vars; do
1499 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1500 eval ac_env_${ac_var}_value=\$${ac_var}
1501 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1502 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1506 # Report the --help message.
1508 if test "$ac_init_help" = "long"; then
1509 # Omit some internal or obsolete options to make the list less imposing.
1510 # This message is too long to be a string in the A/UX 3.1 sh.
1512 \`configure' configures newlib 1.18.0 to adapt to many kinds of systems.
1514 Usage: $0 [OPTION]... [VAR=VALUE]...
1516 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1517 VAR=VALUE. See below for descriptions of some of the useful variables.
1519 Defaults for the options are specified in brackets.
1522 -h, --help display this help and exit
1523 --help=short display options specific to this package
1524 --help=recursive display the short help of all the included packages
1525 -V, --version display version information and exit
1526 -q, --quiet, --silent do not print \`checking...' messages
1527 --cache-file=FILE cache test results in FILE [disabled]
1528 -C, --config-cache alias for \`--cache-file=config.cache'
1529 -n, --no-create do not create output files
1530 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1532 Installation directories:
1533 --prefix=PREFIX install architecture-independent files in PREFIX
1534 [$ac_default_prefix]
1535 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1538 By default, \`make install' will install all the files in
1539 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1540 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1541 for instance \`--prefix=\$HOME'.
1543 For better control, use the options below.
1545 Fine tuning of the installation directories:
1546 --bindir=DIR user executables [EPREFIX/bin]
1547 --sbindir=DIR system admin executables [EPREFIX/sbin]
1548 --libexecdir=DIR program executables [EPREFIX/libexec]
1549 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1550 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1551 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1552 --libdir=DIR object code libraries [EPREFIX/lib]
1553 --includedir=DIR C header files [PREFIX/include]
1554 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1555 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1556 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1557 --infodir=DIR info documentation [DATAROOTDIR/info]
1558 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1559 --mandir=DIR man documentation [DATAROOTDIR/man]
1560 --docdir=DIR documentation root [DATAROOTDIR/doc/newlib]
1561 --htmldir=DIR html documentation [DOCDIR]
1562 --dvidir=DIR dvi documentation [DOCDIR]
1563 --pdfdir=DIR pdf documentation [DOCDIR]
1564 --psdir=DIR ps documentation [DOCDIR]
1570 --program-prefix=PREFIX prepend PREFIX to installed program names
1571 --program-suffix=SUFFIX append SUFFIX to installed program names
1572 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1575 --build=BUILD configure for building on BUILD [guessed]
1576 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1580 if test -n "$ac_init_help"; then
1581 case $ac_init_help in
1582 short | recursive ) echo "Configuration of newlib 1.18.0:";;
1587 --disable-option-checking ignore unrecognized --enable/--with options
1588 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1589 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1590 --enable-multilib build many library versions (default)
1591 --enable-target-optspace optimize for space
1592 --enable-malloc-debugging indicate malloc debugging requested
1593 --enable-newlib-multithread enable support for multiple threads
1594 --enable-newlib-iconv enable iconv library support
1595 --enable-newlib-elix-level supply desired elix library level (1-4)
1596 --disable-newlib-io-float disable printf/scanf family float support
1597 --disable-newlib-supplied-syscalls disable newlib from supplying syscalls
1598 --disable-dependency-tracking speeds up one-time build
1599 --enable-dependency-tracking do not reject slow dependency extractors
1600 --enable-maintainer-mode enable make rules and dependencies not useful
1601 (and sometimes confusing) to the casual installer
1602 --enable-shared[=PKGS] build shared libraries [default=yes]
1603 --enable-static[=PKGS] build static libraries [default=yes]
1604 --enable-fast-install[=PKGS]
1605 optimize for fast installation [default=yes]
1606 --disable-libtool-lock avoid locking (might break parallel builds)
1609 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1610 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1611 --with-pic try to use only PIC/non-PIC objects [default=use
1613 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1615 Some influential environment variables:
1616 CCAS assembler compiler command (defaults to CC)
1617 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1618 CC C compiler command
1619 CFLAGS C compiler flags
1620 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1621 nonstandard directory <lib dir>
1622 LIBS libraries to pass to the linker, e.g. -l<library>
1623 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1624 you have headers in a nonstandard directory <include dir>
1627 Use these variables to override the choices made by `configure' or to help
1628 it to find libraries and programs with nonstandard names/locations.
1634 if test "$ac_init_help" = "recursive"; then
1635 # If there are subdirs, report their specific --help.
1636 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1637 test -d "$ac_dir" ||
1638 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1643 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1645 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1646 # A ".." for each directory in $ac_dir_suffix.
1647 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1648 case $ac_top_builddir_sub in
1649 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1650 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1653 ac_abs_top_builddir=$ac_pwd
1654 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1655 # for backward compatibility:
1656 ac_top_builddir=$ac_top_build_prefix
1659 .) # We are building in place.
1661 ac_top_srcdir=$ac_top_builddir_sub
1662 ac_abs_top_srcdir=$ac_pwd ;;
1663 [\\/]* | ?:[\\/]* ) # Absolute name.
1664 ac_srcdir=$srcdir$ac_dir_suffix;
1665 ac_top_srcdir=$srcdir
1666 ac_abs_top_srcdir=$srcdir ;;
1668 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1669 ac_top_srcdir=$ac_top_build_prefix$srcdir
1670 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1672 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1674 cd "$ac_dir" || { ac_status=$?; continue; }
1675 # Check for guested configure.
1676 if test -f "$ac_srcdir/configure.gnu"; then
1678 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1679 elif test -f "$ac_srcdir/configure"; then
1681 $SHELL "$ac_srcdir/configure" --help=recursive
1683 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1685 cd "$ac_pwd" || { ac_status=$?; break; }
1689 test -n "$ac_init_help" && exit $ac_status
1690 if $ac_init_version; then
1692 newlib configure 1.18.0
1693 generated by GNU Autoconf 2.63
1695 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1696 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1697 This configure script is free software; the Free Software Foundation
1698 gives unlimited permission to copy, distribute and modify it.
1702 cat >config.log <<_ACEOF
1703 This file contains any messages produced by compilers while
1704 running configure, to aid debugging if configure makes a mistake.
1706 It was created by newlib $as_me 1.18.0, which was
1707 generated by GNU Autoconf 2.63. Invocation command line was
1719 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1720 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1721 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1722 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1723 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1725 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1726 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1728 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1729 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1730 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1731 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1732 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1733 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1734 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1742 test -z "$as_dir" && as_dir=.
1743 $as_echo "PATH: $as_dir"
1759 # Keep a trace of the command line.
1760 # Strip out --no-create and --no-recursion so they do not pile up.
1761 # Strip out --silent because we don't want to record it for future runs.
1762 # Also quote any args containing shell meta-characters.
1763 # Make two passes to allow for proper duplicate-argument suppression.
1767 ac_must_keep_next=false
1773 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1774 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1775 | -silent | --silent | --silen | --sile | --sil)
1778 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1781 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1783 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1784 if test $ac_must_keep_next = true; then
1785 ac_must_keep_next=false # Got value, back to normal.
1788 *=* | --config-cache | -C | -disable-* | --disable-* \
1789 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1790 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1791 | -with-* | --with-* | -without-* | --without-* | --x)
1792 case "$ac_configure_args0 " in
1793 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1796 -* ) ac_must_keep_next=true ;;
1799 ac_configure_args="$ac_configure_args '$ac_arg'"
1804 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1805 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1807 # When interrupted or exit'd, cleanup temporary files, and complete
1808 # config.log. We remove comments because anyway the quotes in there
1809 # would cause problems or look ugly.
1810 # WARNING: Use '\'' to represent an apostrophe within the trap.
1811 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1812 trap 'exit_status=$?
1813 # Save into config.log some information that might help in debugging.
1818 ## ---------------- ##
1819 ## Cache variables. ##
1820 ## ---------------- ##
1823 # The following way of writing the cache mishandles newlines in values,
1825 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1826 eval ac_val=\$$ac_var
1830 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1831 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1834 _ | IFS | as_nl) ;; #(
1835 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1836 *) $as_unset $ac_var ;;
1841 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1842 *${as_nl}ac_space=\ *)
1844 "s/'\''/'\''\\\\'\'''\''/g;
1845 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1848 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1856 ## ----------------- ##
1857 ## Output variables. ##
1858 ## ----------------- ##
1861 for ac_var in $ac_subst_vars
1863 eval ac_val=\$$ac_var
1865 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1867 $as_echo "$ac_var='\''$ac_val'\''"
1871 if test -n "$ac_subst_files"; then
1873 ## ------------------- ##
1874 ## File substitutions. ##
1875 ## ------------------- ##
1878 for ac_var in $ac_subst_files
1880 eval ac_val=\$$ac_var
1882 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1884 $as_echo "$ac_var='\''$ac_val'\''"
1889 if test -s confdefs.h; then
1899 test "$ac_signal" != 0 &&
1900 $as_echo "$as_me: caught signal $ac_signal"
1901 $as_echo "$as_me: exit $exit_status"
1903 rm -f core *.core core.conftest.* &&
1904 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1907 for ac_signal in 1 2 13 15; do
1908 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1912 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1913 rm -f -r conftest* confdefs.h
1915 # Predefined preprocessor variables.
1917 cat >>confdefs.h <<_ACEOF
1918 #define PACKAGE_NAME "$PACKAGE_NAME"
1922 cat >>confdefs.h <<_ACEOF
1923 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1927 cat >>confdefs.h <<_ACEOF
1928 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1932 cat >>confdefs.h <<_ACEOF
1933 #define PACKAGE_STRING "$PACKAGE_STRING"
1937 cat >>confdefs.h <<_ACEOF
1938 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1942 # Let the site file select an alternate cache file if it wants to.
1943 # Prefer an explicitly selected file to automatically selected ones.
1946 if test -n "$CONFIG_SITE"; then
1947 ac_site_file1=$CONFIG_SITE
1948 elif test "x$prefix" != xNONE; then
1949 ac_site_file1=$prefix/share/config.site
1950 ac_site_file2=$prefix/etc/config.site
1952 ac_site_file1=$ac_default_prefix/share/config.site
1953 ac_site_file2=$ac_default_prefix/etc/config.site
1955 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1957 test "x$ac_site_file" = xNONE && continue
1958 if test -r "$ac_site_file"; then
1959 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1960 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1961 sed 's/^/| /' "$ac_site_file" >&5
1966 if test -r "$cache_file"; then
1967 # Some versions of bash will fail to source /dev/null (special
1968 # files actually), so we avoid doing that.
1969 if test -f "$cache_file"; then
1970 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1971 $as_echo "$as_me: loading cache $cache_file" >&6;}
1973 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1974 *) . "./$cache_file";;
1978 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1979 $as_echo "$as_me: creating cache $cache_file" >&6;}
1983 # Check that the precious variables saved in the cache have kept the same
1985 ac_cache_corrupted=false
1986 for ac_var in $ac_precious_vars; do
1987 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1988 eval ac_new_set=\$ac_env_${ac_var}_set
1989 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1990 eval ac_new_val=\$ac_env_${ac_var}_value
1991 case $ac_old_set,$ac_new_set in
1993 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1994 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1995 ac_cache_corrupted=: ;;
1997 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1998 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1999 ac_cache_corrupted=: ;;
2002 if test "x$ac_old_val" != "x$ac_new_val"; then
2003 # differences in whitespace do not lead to failure.
2004 ac_old_val_w=`echo x $ac_old_val`
2005 ac_new_val_w=`echo x $ac_new_val`
2006 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2007 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2008 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2009 ac_cache_corrupted=:
2011 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2012 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2013 eval $ac_var=\$ac_old_val
2015 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2016 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2017 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2018 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2021 # Pass precious variables to config.status.
2022 if test "$ac_new_set" = set; then
2024 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2025 *) ac_arg=$ac_var=$ac_new_val ;;
2027 case " $ac_configure_args " in
2028 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2029 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2033 if $ac_cache_corrupted; then
2034 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2035 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2036 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2037 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2038 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2039 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2040 { (exit 1); exit 1; }; }
2068 ac_cpp='$CPP $CPPFLAGS'
2069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2077 for ac_dir in ../../../../.. "$srcdir"/../../../../..; do
2078 if test -f "$ac_dir/install-sh"; then
2080 ac_install_sh="$ac_aux_dir/install-sh -c"
2082 elif test -f "$ac_dir/install.sh"; then
2084 ac_install_sh="$ac_aux_dir/install.sh -c"
2086 elif test -f "$ac_dir/shtool"; then
2088 ac_install_sh="$ac_aux_dir/shtool install -c"
2092 if test -z "$ac_aux_dir"; then
2093 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../../../.. \"$srcdir\"/../../../../.." >&5
2094 $as_echo "$as_me: error: cannot find install-sh or install.sh in ../../../../.. \"$srcdir\"/../../../../.." >&2;}
2095 { (exit 1); exit 1; }; }
2098 # These three variables are undocumented and unsupported,
2099 # and are intended to be withdrawn in a future Autoconf release.
2100 # They can cause serious problems if a builder's source tree is in a directory
2101 # whose full name contains unusual characters.
2102 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2103 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2104 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2109 # Make sure we can run config.sub.
2110 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2111 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2112 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2113 { (exit 1); exit 1; }; }
2115 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2116 $as_echo_n "checking build system type... " >&6; }
2117 if test "${ac_cv_build+set}" = set; then
2118 $as_echo_n "(cached) " >&6
2120 ac_build_alias=$build_alias
2121 test "x$ac_build_alias" = x &&
2122 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2123 test "x$ac_build_alias" = x &&
2124 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2125 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2126 { (exit 1); exit 1; }; }
2127 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2128 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2129 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2130 { (exit 1); exit 1; }; }
2133 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2134 $as_echo "$ac_cv_build" >&6; }
2135 case $ac_cv_build in
2137 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2138 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2139 { (exit 1); exit 1; }; };;
2142 ac_save_IFS=$IFS; IFS='-'
2148 # Remember, the first character of IFS is used to create $*,
2149 # except with old shells:
2152 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2155 am__api_version='1.11'
2157 # Find a good install program. We prefer a C program (faster),
2158 # so one script is as good as another. But avoid the broken or
2159 # incompatible versions:
2160 # SysV /etc/install, /usr/sbin/install
2161 # SunOS /usr/etc/install
2162 # IRIX /sbin/install
2164 # AmigaOS /C/install, which installs bootblocks on floppy discs
2165 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2166 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2167 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2168 # OS/2's system install, which has a completely different semantic
2169 # ./install, which can be erroneously created by make from ./install.sh.
2170 # Reject install programs that cannot install multiple files.
2171 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2172 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2173 if test -z "$INSTALL"; then
2174 if test "${ac_cv_path_install+set}" = set; then
2175 $as_echo_n "(cached) " >&6
2177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2181 test -z "$as_dir" && as_dir=.
2182 # Account for people who put trailing slashes in PATH elements.
2184 ./ | .// | /cC/* | \
2185 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2186 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2189 # OSF1 and SCO ODT 3.0 have their own names for install.
2190 # Don't use installbsd from OSF since it installs stuff as root
2192 for ac_prog in ginstall scoinst install; do
2193 for ac_exec_ext in '' $ac_executable_extensions; do
2194 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2195 if test $ac_prog = install &&
2196 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2197 # AIX install. It has an incompatible calling convention.
2199 elif test $ac_prog = install &&
2200 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2201 # program-specific install script used by HP pwplus--don't use.
2204 rm -rf conftest.one conftest.two conftest.dir
2205 echo one > conftest.one
2206 echo two > conftest.two
2208 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2209 test -s conftest.one && test -s conftest.two &&
2210 test -s conftest.dir/conftest.one &&
2211 test -s conftest.dir/conftest.two
2213 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2226 rm -rf conftest.one conftest.two conftest.dir
2229 if test "${ac_cv_path_install+set}" = set; then
2230 INSTALL=$ac_cv_path_install
2232 # As a last resort, use the slow shell script. Don't cache a
2233 # value for INSTALL within a source directory, because that will
2234 # break other packages using the cache if that directory is
2235 # removed, or if the value is a relative name.
2236 INSTALL=$ac_install_sh
2239 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2240 $as_echo "$INSTALL" >&6; }
2242 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2243 # It thinks the first close brace ends the variable substitution.
2244 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2246 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2248 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2250 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2251 $as_echo_n "checking whether build environment is sane... " >&6; }
2254 echo timestamp > conftest.file
2255 # Reject unsafe characters in $srcdir or the absolute working directory
2256 # name. Accept space and tab only in the latter.
2260 *[\\\"\#\$\&\'\`$am_lf]*)
2261 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2262 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2263 { (exit 1); exit 1; }; };;
2266 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2267 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2268 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2269 { (exit 1); exit 1; }; };;
2272 # Do `set' in a subshell so we don't clobber the current shell's
2273 # arguments. Must try -L first in case configure is actually a
2274 # symlink; some systems play weird games with the mod time of symlinks
2275 # (eg FreeBSD returns the mod time of the symlink's containing
2278 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2279 if test "$*" = "X"; then
2281 set X `ls -t "$srcdir/configure" conftest.file`
2284 if test "$*" != "X $srcdir/configure conftest.file" \
2285 && test "$*" != "X conftest.file $srcdir/configure"; then
2287 # If neither matched, then we have a broken ls. This can happen
2288 # if, for instance, CONFIG_SHELL is bash and it inherits a
2289 # broken ls alias from the environment. This has actually
2290 # happened. Such a system could not be considered "sane".
2291 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2292 alias in your environment" >&5
2293 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2294 alias in your environment" >&2;}
2295 { (exit 1); exit 1; }; }
2298 test "$2" = conftest.file
2304 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2305 Check your system clock" >&5
2306 $as_echo "$as_me: error: newly created file is older than distributed files!
2307 Check your system clock" >&2;}
2308 { (exit 1); exit 1; }; }
2310 { $as_echo "$as_me:$LINENO: result: yes" >&5
2311 $as_echo "yes" >&6; }
2312 test "$program_prefix" != NONE &&
2313 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2314 # Use a double $ so make ignores it.
2315 test "$program_suffix" != NONE &&
2316 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2317 # Double any \ or $.
2318 # By default was `s,x,x', remove it if useless.
2319 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2320 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2322 # expand $ac_aux_dir to an absolute path
2323 am_aux_dir=`cd $ac_aux_dir && pwd`
2325 if test x"${MISSING+set}" != xset; then
2328 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2330 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2333 # Use eval to expand $SHELL
2334 if eval "$MISSING --run true"; then
2335 am_missing_run="$MISSING --run "
2338 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2339 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2342 if test x"${install_sh}" != xset; then
2345 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2347 install_sh="\${SHELL} $am_aux_dir/install-sh"
2351 # Installed binaries are usually stripped using `strip' when the user
2352 # run `make install-strip'. However `strip' might not be the right
2353 # tool to use in cross-compilation environments, therefore Automake
2354 # will honor the `STRIP' environment variable to overrule this program.
2355 if test "$cross_compiling" != no; then
2356 if test -n "$ac_tool_prefix"; then
2357 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2358 set dummy ${ac_tool_prefix}strip; ac_word=$2
2359 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2360 $as_echo_n "checking for $ac_word... " >&6; }
2361 if test "${ac_cv_prog_STRIP+set}" = set; then
2362 $as_echo_n "(cached) " >&6
2364 if test -n "$STRIP"; then
2365 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2371 test -z "$as_dir" && as_dir=.
2372 for ac_exec_ext in '' $ac_executable_extensions; do
2373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2374 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2375 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2384 STRIP=$ac_cv_prog_STRIP
2385 if test -n "$STRIP"; then
2386 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2387 $as_echo "$STRIP" >&6; }
2389 { $as_echo "$as_me:$LINENO: result: no" >&5
2390 $as_echo "no" >&6; }
2395 if test -z "$ac_cv_prog_STRIP"; then
2397 # Extract the first word of "strip", so it can be a program name with args.
2398 set dummy strip; ac_word=$2
2399 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2400 $as_echo_n "checking for $ac_word... " >&6; }
2401 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2402 $as_echo_n "(cached) " >&6
2404 if test -n "$ac_ct_STRIP"; then
2405 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2411 test -z "$as_dir" && as_dir=.
2412 for ac_exec_ext in '' $ac_executable_extensions; do
2413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2414 ac_cv_prog_ac_ct_STRIP="strip"
2415 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2424 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2425 if test -n "$ac_ct_STRIP"; then
2426 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2427 $as_echo "$ac_ct_STRIP" >&6; }
2429 { $as_echo "$as_me:$LINENO: result: no" >&5
2430 $as_echo "no" >&6; }
2433 if test "x$ac_ct_STRIP" = x; then
2436 case $cross_compiling:$ac_tool_warned in
2438 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2440 ac_tool_warned=yes ;;
2445 STRIP="$ac_cv_prog_STRIP"
2449 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2451 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2452 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2453 if test -z "$MKDIR_P"; then
2454 if test "${ac_cv_path_mkdir+set}" = set; then
2455 $as_echo_n "(cached) " >&6
2457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2458 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2461 test -z "$as_dir" && as_dir=.
2462 for ac_prog in mkdir gmkdir; do
2463 for ac_exec_ext in '' $ac_executable_extensions; do
2464 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2465 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2466 'mkdir (GNU coreutils) '* | \
2467 'mkdir (coreutils) '* | \
2468 'mkdir (fileutils) '4.1*)
2469 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2479 if test "${ac_cv_path_mkdir+set}" = set; then
2480 MKDIR_P="$ac_cv_path_mkdir -p"
2482 # As a last resort, use the slow shell script. Don't cache a
2483 # value for MKDIR_P within a source directory, because that will
2484 # break other packages using the cache if that directory is
2485 # removed, or if the value is a relative name.
2486 test -d ./--version && rmdir ./--version
2487 MKDIR_P="$ac_install_sh -d"
2490 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2491 $as_echo "$MKDIR_P" >&6; }
2495 [\\/$]* | ?:[\\/]*) ;;
2496 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2499 for ac_prog in gawk mawk nawk awk
2501 # Extract the first word of "$ac_prog", so it can be a program name with args.
2502 set dummy $ac_prog; ac_word=$2
2503 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2504 $as_echo_n "checking for $ac_word... " >&6; }
2505 if test "${ac_cv_prog_AWK+set}" = set; then
2506 $as_echo_n "(cached) " >&6
2508 if test -n "$AWK"; then
2509 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515 test -z "$as_dir" && as_dir=.
2516 for ac_exec_ext in '' $ac_executable_extensions; do
2517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2518 ac_cv_prog_AWK="$ac_prog"
2519 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2529 if test -n "$AWK"; then
2530 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2531 $as_echo "$AWK" >&6; }
2533 { $as_echo "$as_me:$LINENO: result: no" >&5
2534 $as_echo "no" >&6; }
2538 test -n "$AWK" && break
2541 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2542 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2544 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2545 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2546 $as_echo_n "(cached) " >&6
2548 cat >conftest.make <<\_ACEOF
2551 @echo '@@@%%%=$(MAKE)=@@@%%%'
2553 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2554 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2556 eval ac_cv_prog_make_${ac_make}_set=yes;;
2558 eval ac_cv_prog_make_${ac_make}_set=no;;
2562 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2563 { $as_echo "$as_me:$LINENO: result: yes" >&5
2564 $as_echo "yes" >&6; }
2567 { $as_echo "$as_me:$LINENO: result: no" >&5
2568 $as_echo "no" >&6; }
2569 SET_MAKE="MAKE=${MAKE-make}"
2572 rm -rf .tst 2>/dev/null
2573 mkdir .tst 2>/dev/null
2574 if test -d .tst; then
2579 rmdir .tst 2>/dev/null
2581 DEPDIR="${am__leading_dot}deps"
2583 ac_config_commands="$ac_config_commands depfiles"
2586 am_make=${MAKE-make}
2587 cat > confinc << 'END'
2589 @echo this is the am__doit target
2592 # If we don't find an include directive, just comment out the code.
2593 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2594 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2598 # First try GNU make style include.
2599 echo "include confinc" > confmf
2600 # Ignore all kinds of additional output from `make'.
2601 case `$am_make -s -f confmf 2> /dev/null` in #(
2602 *the\ am__doit\ target*)
2608 # Now try BSD make style include.
2609 if test "$am__include" = "#"; then
2610 echo '.include "confinc"' > confmf
2611 case `$am_make -s -f confmf 2> /dev/null` in #(
2612 *the\ am__doit\ target*)
2613 am__include=.include
2621 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2622 $as_echo "$_am_result" >&6; }
2623 rm -f confinc confmf
2625 # Check whether --enable-dependency-tracking was given.
2626 if test "${enable_dependency_tracking+set}" = set; then
2627 enableval=$enable_dependency_tracking;
2630 if test "x$enable_dependency_tracking" != xno; then
2631 am_depcomp="$ac_aux_dir/depcomp"
2634 if test "x$enable_dependency_tracking" != xno; then
2644 # Check whether --enable-multilib was given.
2645 if test "${enable_multilib+set}" = set; then
2646 enableval=$enable_multilib; case "${enableval}" in
2647 yes) multilib=yes ;;
2649 *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
2650 $as_echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
2651 { (exit 1); exit 1; }; } ;;
2657 # Check whether --enable-target-optspace was given.
2658 if test "${enable_target_optspace+set}" = set; then
2659 enableval=$enable_target_optspace; case "${enableval}" in
2660 yes) target_optspace=yes ;;
2661 no) target_optspace=no ;;
2662 *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for target-optspace option" >&5
2663 $as_echo "$as_me: error: bad value ${enableval} for target-optspace option" >&2;}
2664 { (exit 1); exit 1; }; } ;;
2670 # Check whether --enable-malloc-debugging was given.
2671 if test "${enable_malloc_debugging+set}" = set; then
2672 enableval=$enable_malloc_debugging; case "${enableval}" in
2673 yes) malloc_debugging=yes ;;
2674 no) malloc_debugging=no ;;
2675 *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for malloc-debugging option" >&5
2676 $as_echo "$as_me: error: bad value ${enableval} for malloc-debugging option" >&2;}
2677 { (exit 1); exit 1; }; } ;;
2683 # Check whether --enable-newlib-multithread was given.
2684 if test "${enable_newlib_multithread+set}" = set; then
2685 enableval=$enable_newlib_multithread; case "${enableval}" in
2686 yes) newlib_multithread=yes ;;
2687 no) newlib_multithread=no ;;
2688 *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-multithread option" >&5
2689 $as_echo "$as_me: error: bad value ${enableval} for newlib-multithread option" >&2;}
2690 { (exit 1); exit 1; }; } ;;
2693 newlib_multithread=yes
2696 # Check whether --enable-newlib-iconv was given.
2697 if test "${enable_newlib_iconv+set}" = set; then
2698 enableval=$enable_newlib_iconv; if test "${newlib_iconv+set}" != set; then
2699 case "${enableval}" in
2700 yes) newlib_iconv=yes ;;
2701 no) newlib_iconv=no ;;
2702 *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv option" >&5
2703 $as_echo "$as_me: error: bad value ${enableval} for newlib-iconv option" >&2;}
2704 { (exit 1); exit 1; }; } ;;
2708 newlib_iconv=${newlib_iconv}
2711 # Check whether --enable-newlib-elix-level was given.
2712 if test "${enable_newlib_elix_level+set}" = set; then
2713 enableval=$enable_newlib_elix_level; case "${enableval}" in
2714 0) newlib_elix_level=0 ;;
2715 1) newlib_elix_level=1 ;;
2716 2) newlib_elix_level=2 ;;
2717 3) newlib_elix_level=3 ;;
2718 4) newlib_elix_level=4 ;;
2719 *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-elix-level option" >&5
2720 $as_echo "$as_me: error: bad value ${enableval} for newlib-elix-level option" >&2;}
2721 { (exit 1); exit 1; }; } ;;
2727 # Check whether --enable-newlib-io-float was given.
2728 if test "${enable_newlib_io_float+set}" = set; then
2729 enableval=$enable_newlib_io_float; case "${enableval}" in
2730 yes) newlib_io_float=yes ;;
2731 no) newlib_io_float=no ;;
2732 *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-float option" >&5
2733 $as_echo "$as_me: error: bad value ${enableval} for newlib-io-float option" >&2;}
2734 { (exit 1); exit 1; }; } ;;
2740 # Check whether --enable-newlib-supplied-syscalls was given.
2741 if test "${enable_newlib_supplied_syscalls+set}" = set; then
2742 enableval=$enable_newlib_supplied_syscalls; case "${enableval}" in
2743 yes) newlib_may_supply_syscalls=yes ;;
2744 no) newlib_may_supply_syscalls=no ;;
2745 *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-supplied-syscalls option" >&5
2746 $as_echo "$as_me: error: bad value ${enableval} for newlib-supplied-syscalls option" >&2;}
2747 { (exit 1); exit 1; }; } ;;
2750 newlib_may_supply_syscalls=yes
2753 if test x${newlib_may_supply_syscalls} = xyes; then
2754 MAY_SUPPLY_SYSCALLS_TRUE=
2755 MAY_SUPPLY_SYSCALLS_FALSE='#'
2757 MAY_SUPPLY_SYSCALLS_TRUE='#'
2758 MAY_SUPPLY_SYSCALLS_FALSE=
2763 test -z "${with_target_subdir}" && with_target_subdir=.
2765 if test "${srcdir}" = "."; then
2766 if test "${with_target_subdir}" != "."; then
2767 newlib_basedir="${srcdir}/${with_multisrctop}../../../../.."
2769 newlib_basedir="${srcdir}/${with_multisrctop}../../../.."
2772 newlib_basedir="${srcdir}/../../../.."
2776 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2777 $as_echo_n "checking host system type... " >&6; }
2778 if test "${ac_cv_host+set}" = set; then
2779 $as_echo_n "(cached) " >&6
2781 if test "x$host_alias" = x; then
2782 ac_cv_host=$ac_cv_build
2784 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2785 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2786 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2787 { (exit 1); exit 1; }; }
2791 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2792 $as_echo "$ac_cv_host" >&6; }
2795 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2796 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2797 { (exit 1); exit 1; }; };;
2800 ac_save_IFS=$IFS; IFS='-'
2806 # Remember, the first character of IFS is used to create $*,
2807 # except with old shells:
2810 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2814 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2815 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2816 # is not polluted with repeated "-I."
2817 am__isrc=' -I$(srcdir)'
2818 # test to see if srcdir already configured
2819 if test -f $srcdir/config.status; then
2820 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2821 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2822 { (exit 1); exit 1; }; }
2826 # test whether we have cygpath
2827 if test -z "$CYGPATH_W"; then
2828 if (cygpath --version) >/dev/null 2>/dev/null; then
2829 CYGPATH_W='cygpath -w'
2836 # Define the identity of the package.
2841 # Some tools Automake needs.
2843 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2846 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2849 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2852 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2855 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2857 # We need awk for the "check" target. The system "awk" is bad on
2859 # Always define AMTAR for backward compatibility.
2861 AMTAR=${AMTAR-"${am_missing_run}tar"}
2863 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2870 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
2871 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
2872 # are probably using a cross compiler, which will not be able to fully
2873 # link an executable. This should really be fixed in autoconf
2882 # Extract the first word of "gcc", so it can be a program name with args.
2883 set dummy gcc; ac_word=$2
2884 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2885 $as_echo_n "checking for $ac_word... " >&6; }
2886 if test "${ac_cv_prog_CC+set}" = set; then
2887 $as_echo_n "(cached) " >&6
2889 if test -n "$CC"; then
2890 ac_cv_prog_CC="$CC" # Let the user override the test.
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896 test -z "$as_dir" && as_dir=.
2897 for ac_exec_ext in '' $ac_executable_extensions; do
2898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2900 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2910 if test -n "$CC"; then
2911 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2912 $as_echo "$CC" >&6; }
2914 { $as_echo "$as_me:$LINENO: result: no" >&5
2915 $as_echo "no" >&6; }
2920 depcc="$CC" am_compiler_list=
2922 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2923 $as_echo_n "checking dependency style of $depcc... " >&6; }
2924 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2925 $as_echo_n "(cached) " >&6
2927 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2928 # We make a subdir and do the tests there. Otherwise we can end up
2929 # making bogus files that we don't know about and never remove. For
2930 # instance it was reported that on HP-UX the gcc test will end up
2931 # making a dummy file named `D' -- because `-MD' means `put the output
2934 # Copy depcomp to subdir because otherwise we won't find it if we're
2935 # using a relative directory.
2936 cp "$am_depcomp" conftest.dir
2938 # We will build objects and dependencies in a subdirectory because
2939 # it helps to detect inapplicable dependency modes. For instance
2940 # both Tru64's cc and ICC support -MD to output dependencies as a
2941 # side effect of compilation, but ICC will put the dependencies in
2942 # the current directory while Tru64 will put them in the object
2946 am_cv_CC_dependencies_compiler_type=none
2947 if test "$am_compiler_list" = ""; then
2948 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2951 case " $depcc " in #(
2952 *\ -arch\ *\ -arch\ *) am__universal=true ;;
2955 for depmode in $am_compiler_list; do
2956 # Setup a source with many dependencies, because some compilers
2957 # like to wrap large dependency lists on column 80 (with \), and
2958 # we should not choose a depcomp mode which is confused by this.
2960 # We need to recreate these files for each test, as the compiler may
2961 # overwrite some of them when testing with obscure command lines.
2962 # This happens at least with the AIX C compiler.
2964 for i in 1 2 3 4 5 6; do
2965 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2966 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2967 # Solaris 8's {/usr,}/bin/sh.
2968 touch sub/conftst$i.h
2970 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2972 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2973 # mode. It turns out that the SunPro C++ compiler does not properly
2974 # handle `-M -o', and we need to detect this. Also, some Intel
2975 # versions had trouble with output in subdirs
2976 am__obj=sub/conftest.${OBJEXT-o}
2977 am__minus_obj="-o $am__obj"
2980 # This depmode causes a compiler race in universal mode.
2981 test "$am__universal" = false || continue
2984 # after this tag, mechanisms are not by side-effect, so they'll
2985 # only be used when explicitly requested
2986 if test "x$enable_dependency_tracking" = xyes; then
2992 msvisualcpp | msvcmsys)
2993 # This compiler won't grok `-c -o', but also, the minuso test has
2994 # not run yet. These depmodes are late enough in the game, and
2995 # so weak that their functioning should not be impacted.
2996 am__obj=conftest.${OBJEXT-o}
3001 if depmode=$depmode \
3002 source=sub/conftest.c object=$am__obj \
3003 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3004 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3005 >/dev/null 2>conftest.err &&
3006 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3007 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3008 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3009 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3010 # icc doesn't choke on unknown options, it will just issue warnings
3011 # or remarks (even with -Werror). So we grep stderr for any message
3012 # that says an option was ignored or not supported.
3013 # When given -MP, icc 7.0 and 7.1 complain thusly:
3014 # icc: Command line warning: ignoring option '-M'; no argument required
3015 # The diagnosis changed in icc 8.0:
3016 # icc: Command line remark: option '-MP' not supported
3017 if (grep 'ignoring option' conftest.err ||
3018 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3019 am_cv_CC_dependencies_compiler_type=$depmode
3028 am_cv_CC_dependencies_compiler_type=none
3032 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3033 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3034 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3037 test "x$enable_dependency_tracking" != xno \
3038 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3040 am__fastdepCC_FALSE='#'
3042 am__fastdepCC_TRUE='#'
3043 am__fastdepCC_FALSE=
3047 if test -z "$CC"; then
3048 # Extract the first word of "cc", so it can be a program name with args.
3049 set dummy cc; ac_word=$2
3050 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3051 $as_echo_n "checking for $ac_word... " >&6; }
3052 if test "${ac_cv_prog_CC+set}" = set; then
3053 $as_echo_n "(cached) " >&6
3055 if test -n "$CC"; then
3056 ac_cv_prog_CC="$CC" # Let the user override the test.
3059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063 test -z "$as_dir" && as_dir=.
3064 for ac_exec_ext in '' $ac_executable_extensions; do
3065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3066 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3067 ac_prog_rejected=yes
3071 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3078 if test $ac_prog_rejected = yes; then
3079 # We found a bogon in the path, so make sure we never use it.
3080 set dummy $ac_cv_prog_CC
3082 if test $# != 0; then
3083 # We chose a different compiler from the bogus one.
3084 # However, it has the same basename, so the bogon will be chosen
3085 # first if we set CC to just the basename; use the full file name.
3087 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3093 if test -n "$CC"; then
3094 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3095 $as_echo "$CC" >&6; }
3097 { $as_echo "$as_me:$LINENO: result: no" >&5
3098 $as_echo "no" >&6; }
3102 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
3103 $as_echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
3104 { (exit 1); exit 1; }; }
3107 { $as_echo "$as_me:$LINENO: checking whether we are using GNU C" >&5
3108 $as_echo_n "checking whether we are using GNU C... " >&6; }
3109 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3110 $as_echo_n "(cached) " >&6
3112 cat > conftest.c <<EOF
3117 if { ac_try='${CC-cc} -E conftest.c'
3118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3123 ac_cv_c_compiler_gnu=yes
3125 ac_cv_c_compiler_gnu=no
3128 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3129 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3131 if test $ac_cv_c_compiler_gnu = yes; then
3133 ac_test_CFLAGS="${CFLAGS+set}"
3134 ac_save_CFLAGS="$CFLAGS"
3135 ac_test_CFLAGS=${CFLAGS+set}
3136 ac_save_CFLAGS=$CFLAGS
3137 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3138 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3139 if test "${ac_cv_prog_cc_g+set}" = set; then
3140 $as_echo_n "(cached) " >&6
3142 ac_save_c_werror_flag=$ac_c_werror_flag
3143 ac_c_werror_flag=yes
3146 cat >conftest.$ac_ext <<_ACEOF
3149 cat confdefs.h >>conftest.$ac_ext
3150 cat >>conftest.$ac_ext <<_ACEOF
3151 /* end confdefs.h. */
3161 rm -f conftest.$ac_objext
3162 if { (ac_try="$ac_compile"
3164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165 *) ac_try_echo=$ac_try;;
3167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3168 $as_echo "$ac_try_echo") >&5
3169 (eval "$ac_compile") 2>conftest.er1
3171 grep -v '^ *+' conftest.er1 >conftest.err
3173 cat conftest.err >&5
3174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); } && {
3176 test -z "$ac_c_werror_flag" ||
3177 test ! -s conftest.err
3178 } && test -s conftest.$ac_objext; then
3181 $as_echo "$as_me: failed program was:" >&5
3182 sed 's/^/| /' conftest.$ac_ext >&5
3185 cat >conftest.$ac_ext <<_ACEOF
3188 cat confdefs.h >>conftest.$ac_ext
3189 cat >>conftest.$ac_ext <<_ACEOF
3190 /* end confdefs.h. */
3200 rm -f conftest.$ac_objext
3201 if { (ac_try="$ac_compile"
3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204 *) ac_try_echo=$ac_try;;
3206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3207 $as_echo "$ac_try_echo") >&5
3208 (eval "$ac_compile") 2>conftest.er1
3210 grep -v '^ *+' conftest.er1 >conftest.err
3212 cat conftest.err >&5
3213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); } && {
3215 test -z "$ac_c_werror_flag" ||
3216 test ! -s conftest.err
3217 } && test -s conftest.$ac_objext; then
3220 $as_echo "$as_me: failed program was:" >&5
3221 sed 's/^/| /' conftest.$ac_ext >&5
3223 ac_c_werror_flag=$ac_save_c_werror_flag
3225 cat >conftest.$ac_ext <<_ACEOF
3228 cat confdefs.h >>conftest.$ac_ext
3229 cat >>conftest.$ac_ext <<_ACEOF
3230 /* end confdefs.h. */
3240 rm -f conftest.$ac_objext
3241 if { (ac_try="$ac_compile"
3243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3244 *) ac_try_echo=$ac_try;;
3246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3247 $as_echo "$ac_try_echo") >&5
3248 (eval "$ac_compile") 2>conftest.er1
3250 grep -v '^ *+' conftest.er1 >conftest.err
3252 cat conftest.err >&5
3253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); } && {
3255 test -z "$ac_c_werror_flag" ||
3256 test ! -s conftest.err
3257 } && test -s conftest.$ac_objext; then
3260 $as_echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3273 ac_c_werror_flag=$ac_save_c_werror_flag
3275 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3276 $as_echo "$ac_cv_prog_cc_g" >&6; }
3277 if test "$ac_test_CFLAGS" = set; then
3278 CFLAGS=$ac_save_CFLAGS
3279 elif test $ac_cv_prog_cc_g = yes; then
3280 if test "$GCC" = yes; then
3286 if test "$GCC" = yes; then
3292 if test "$ac_test_CFLAGS" = set; then
3293 CFLAGS="$ac_save_CFLAGS"
3294 elif test $ac_cv_prog_cc_g = yes; then
3301 test "${CFLAGS+set}" = set || CFLAGS="-g"
3305 if test -n "$ac_tool_prefix"; then
3306 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3307 set dummy ${ac_tool_prefix}as; ac_word=$2
3308 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3309 $as_echo_n "checking for $ac_word... " >&6; }
3310 if test "${ac_cv_prog_AS+set}" = set; then
3311 $as_echo_n "(cached) " >&6
3313 if test -n "$AS"; then
3314 ac_cv_prog_AS="$AS" # Let the user override the test.
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320 test -z "$as_dir" && as_dir=.
3321 for ac_exec_ext in '' $ac_executable_extensions; do
3322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3323 ac_cv_prog_AS="${ac_tool_prefix}as"
3324 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3334 if test -n "$AS"; then
3335 { $as_echo "$as_me:$LINENO: result: $AS" >&5
3336 $as_echo "$AS" >&6; }
3338 { $as_echo "$as_me:$LINENO: result: no" >&5
3339 $as_echo "no" >&6; }
3344 if test -z "$ac_cv_prog_AS"; then
3346 # Extract the first word of "as", so it can be a program name with args.
3347 set dummy as; ac_word=$2
3348 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3349 $as_echo_n "checking for $ac_word... " >&6; }
3350 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3351 $as_echo_n "(cached) " >&6
3353 if test -n "$ac_ct_AS"; then
3354 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3360 test -z "$as_dir" && as_dir=.
3361 for ac_exec_ext in '' $ac_executable_extensions; do
3362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3363 ac_cv_prog_ac_ct_AS="as"
3364 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3373 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3374 if test -n "$ac_ct_AS"; then
3375 { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3376 $as_echo "$ac_ct_AS" >&6; }
3378 { $as_echo "$as_me:$LINENO: result: no" >&5
3379 $as_echo "no" >&6; }
3382 if test "x$ac_ct_AS" = x; then
3385 case $cross_compiling:$ac_tool_warned in
3387 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3388 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3389 ac_tool_warned=yes ;;
3397 if test -n "$ac_tool_prefix"; then
3398 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3399 set dummy ${ac_tool_prefix}ar; ac_word=$2
3400 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3401 $as_echo_n "checking for $ac_word... " >&6; }
3402 if test "${ac_cv_prog_AR+set}" = set; then
3403 $as_echo_n "(cached) " >&6
3405 if test -n "$AR"; then
3406 ac_cv_prog_AR="$AR" # Let the user override the test.
3408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3412 test -z "$as_dir" && as_dir=.
3413 for ac_exec_ext in '' $ac_executable_extensions; do
3414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3415 ac_cv_prog_AR="${ac_tool_prefix}ar"
3416 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3426 if test -n "$AR"; then
3427 { $as_echo "$as_me:$LINENO: result: $AR" >&5
3428 $as_echo "$AR" >&6; }
3430 { $as_echo "$as_me:$LINENO: result: no" >&5
3431 $as_echo "no" >&6; }
3436 if test -z "$ac_cv_prog_AR"; then
3438 # Extract the first word of "ar", so it can be a program name with args.
3439 set dummy ar; ac_word=$2
3440 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3441 $as_echo_n "checking for $ac_word... " >&6; }
3442 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3443 $as_echo_n "(cached) " >&6
3445 if test -n "$ac_ct_AR"; then
3446 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3452 test -z "$as_dir" && as_dir=.
3453 for ac_exec_ext in '' $ac_executable_extensions; do
3454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3455 ac_cv_prog_ac_ct_AR="ar"
3456 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3465 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3466 if test -n "$ac_ct_AR"; then
3467 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3468 $as_echo "$ac_ct_AR" >&6; }
3470 { $as_echo "$as_me:$LINENO: result: no" >&5
3471 $as_echo "no" >&6; }
3474 if test "x$ac_ct_AR" = x; then
3477 case $cross_compiling:$ac_tool_warned in
3479 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3481 ac_tool_warned=yes ;;
3489 if test -n "$ac_tool_prefix"; then
3490 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3491 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3492 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3493 $as_echo_n "checking for $ac_word... " >&6; }
3494 if test "${ac_cv_prog_RANLIB+set}" = set; then
3495 $as_echo_n "(cached) " >&6
3497 if test -n "$RANLIB"; then
3498 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504 test -z "$as_dir" && as_dir=.
3505 for ac_exec_ext in '' $ac_executable_extensions; do
3506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3507 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3508 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3517 RANLIB=$ac_cv_prog_RANLIB
3518 if test -n "$RANLIB"; then
3519 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3520 $as_echo "$RANLIB" >&6; }
3522 { $as_echo "$as_me:$LINENO: result: no" >&5
3523 $as_echo "no" >&6; }
3528 if test -z "$ac_cv_prog_RANLIB"; then
3529 ac_ct_RANLIB=$RANLIB
3530 # Extract the first word of "ranlib", so it can be a program name with args.
3531 set dummy ranlib; ac_word=$2
3532 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3533 $as_echo_n "checking for $ac_word... " >&6; }
3534 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3535 $as_echo_n "(cached) " >&6
3537 if test -n "$ac_ct_RANLIB"; then
3538 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3544 test -z "$as_dir" && as_dir=.
3545 for ac_exec_ext in '' $ac_executable_extensions; do
3546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3547 ac_cv_prog_ac_ct_RANLIB="ranlib"
3548 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3557 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3558 if test -n "$ac_ct_RANLIB"; then
3559 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3560 $as_echo "$ac_ct_RANLIB" >&6; }
3562 { $as_echo "$as_me:$LINENO: result: no" >&5
3563 $as_echo "no" >&6; }
3566 if test "x$ac_ct_RANLIB" = x; then
3569 case $cross_compiling:$ac_tool_warned in
3571 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3572 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3573 ac_tool_warned=yes ;;
3575 RANLIB=$ac_ct_RANLIB
3578 RANLIB="$ac_cv_prog_RANLIB"
3581 if test -n "$ac_tool_prefix"; then
3582 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
3583 set dummy ${ac_tool_prefix}readelf; ac_word=$2
3584 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3585 $as_echo_n "checking for $ac_word... " >&6; }
3586 if test "${ac_cv_prog_READELF+set}" = set; then
3587 $as_echo_n "(cached) " >&6
3589 if test -n "$READELF"; then
3590 ac_cv_prog_READELF="$READELF" # Let the user override the test.
3592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596 test -z "$as_dir" && as_dir=.
3597 for ac_exec_ext in '' $ac_executable_extensions; do
3598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3599 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
3600 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3609 READELF=$ac_cv_prog_READELF
3610 if test -n "$READELF"; then
3611 { $as_echo "$as_me:$LINENO: result: $READELF" >&5
3612 $as_echo "$READELF" >&6; }
3614 { $as_echo "$as_me:$LINENO: result: no" >&5
3615 $as_echo "no" >&6; }
3620 if test -z "$ac_cv_prog_READELF"; then
3621 ac_ct_READELF=$READELF
3622 # Extract the first word of "readelf", so it can be a program name with args.
3623 set dummy readelf; ac_word=$2
3624 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3625 $as_echo_n "checking for $ac_word... " >&6; }
3626 if test "${ac_cv_prog_ac_ct_READELF+set}" = set; then
3627 $as_echo_n "(cached) " >&6
3629 if test -n "$ac_ct_READELF"; then
3630 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
3632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636 test -z "$as_dir" && as_dir=.
3637 for ac_exec_ext in '' $ac_executable_extensions; do
3638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3639 ac_cv_prog_ac_ct_READELF="readelf"
3640 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3649 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
3650 if test -n "$ac_ct_READELF"; then
3651 { $as_echo "$as_me:$LINENO: result: $ac_ct_READELF" >&5
3652 $as_echo "$ac_ct_READELF" >&6; }
3654 { $as_echo "$as_me:$LINENO: result: no" >&5
3655 $as_echo "no" >&6; }
3658 if test "x$ac_ct_READELF" = x; then
3661 case $cross_compiling:$ac_tool_warned in
3663 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3664 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3665 ac_tool_warned=yes ;;
3667 READELF=$ac_ct_READELF
3670 READELF="$ac_cv_prog_READELF"
3674 # Find a good install program. We prefer a C program (faster),
3675 # so one script is as good as another. But avoid the broken or
3676 # incompatible versions:
3677 # SysV /etc/install, /usr/sbin/install
3678 # SunOS /usr/etc/install
3679 # IRIX /sbin/install
3681 # AmigaOS /C/install, which installs bootblocks on floppy discs
3682 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3683 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3684 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3685 # OS/2's system install, which has a completely different semantic
3686 # ./install, which can be erroneously created by make from ./install.sh.
3687 # Reject install programs that cannot install multiple files.
3688 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3689 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3690 if test -z "$INSTALL"; then
3691 if test "${ac_cv_path_install+set}" = set; then
3692 $as_echo_n "(cached) " >&6
3694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 test -z "$as_dir" && as_dir=.
3699 # Account for people who put trailing slashes in PATH elements.
3701 ./ | .// | /cC/* | \
3702 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3703 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3706 # OSF1 and SCO ODT 3.0 have their own names for install.
3707 # Don't use installbsd from OSF since it installs stuff as root
3709 for ac_prog in ginstall scoinst install; do
3710 for ac_exec_ext in '' $ac_executable_extensions; do
3711 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3712 if test $ac_prog = install &&
3713 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3714 # AIX install. It has an incompatible calling convention.
3716 elif test $ac_prog = install &&
3717 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3718 # program-specific install script used by HP pwplus--don't use.
3721 rm -rf conftest.one conftest.two conftest.dir
3722 echo one > conftest.one
3723 echo two > conftest.two
3725 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3726 test -s conftest.one && test -s conftest.two &&
3727 test -s conftest.dir/conftest.one &&
3728 test -s conftest.dir/conftest.two
3730 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3743 rm -rf conftest.one conftest.two conftest.dir
3746 if test "${ac_cv_path_install+set}" = set; then
3747 INSTALL=$ac_cv_path_install
3749 # As a last resort, use the slow shell script. Don't cache a
3750 # value for INSTALL within a source directory, because that will
3751 # break other packages using the cache if that directory is
3752 # removed, or if the value is a relative name.
3753 INSTALL=$ac_install_sh
3756 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3757 $as_echo "$INSTALL" >&6; }
3759 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3760 # It thinks the first close brace ends the variable substitution.
3761 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3763 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3765 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3768 # Hack to ensure that INSTALL won't be set to "../" with autoconf 2.13. */
3769 ac_given_INSTALL=$INSTALL
3772 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3773 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3774 # Check whether --enable-maintainer-mode was given.
3775 if test "${enable_maintainer_mode+set}" = set; then
3776 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3778 USE_MAINTAINER_MODE=no
3781 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3782 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3783 if test $USE_MAINTAINER_MODE = yes; then
3784 MAINTAINER_MODE_TRUE=
3785 MAINTAINER_MODE_FALSE='#'
3787 MAINTAINER_MODE_TRUE='#'
3788 MAINTAINER_MODE_FALSE=
3791 MAINT=$MAINTAINER_MODE_TRUE
3794 # By default we simply use the C compiler to build assembly code.
3796 test "${CCAS+set}" = set || CCAS=$CC
3797 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3802 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
3803 # at least currently, we never actually build a program, so we never
3804 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
3805 # fails, because we are probably configuring with a cross compiler
3806 # which can't create executables. So we include AC_EXEEXT to keep
3807 # automake happy, but we don't execute it, since we don't care about
3814 . ${newlib_basedir}/configure.host
3816 newlib_cflags="${newlib_cflags} -fno-builtin"
3818 NEWLIB_CFLAGS=${newlib_cflags}
3824 if test x${newlib_elix_level} = x0; then
3826 ELIX_LEVEL_0_FALSE='#'
3828 ELIX_LEVEL_0_TRUE='#'
3832 if test x${newlib_elix_level} = x1; then
3834 ELIX_LEVEL_1_FALSE='#'
3836 ELIX_LEVEL_1_TRUE='#'
3840 if test x${newlib_elix_level} = x2; then
3842 ELIX_LEVEL_2_FALSE='#'
3844 ELIX_LEVEL_2_TRUE='#'
3848 if test x${newlib_elix_level} = x3; then
3850 ELIX_LEVEL_3_FALSE='#'
3852 ELIX_LEVEL_3_TRUE='#'
3856 if test x${newlib_elix_level} = x4; then
3858 ELIX_LEVEL_4_FALSE='#'
3860 ELIX_LEVEL_4_TRUE='#'
3865 if test x${use_libtool} = xyes; then
3867 USE_LIBTOOL_FALSE='#'
3869 USE_LIBTOOL_TRUE='#'
3874 # Hard-code OBJEXT. Normally it is set by AC_OBJEXT, but we
3875 # use oext, which is set in configure.host based on the target platform.
3888 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3889 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3890 if test "${ac_cv_path_SED+set}" = set; then
3891 $as_echo_n "(cached) " >&6
3893 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3894 for ac_i in 1 2 3 4 5 6 7; do
3895 ac_script="$ac_script$as_nl$ac_script"
3897 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3898 $as_unset ac_script || ac_script=
3899 if test -z "$SED"; then
3900 ac_path_SED_found=false
3901 # Loop through the user's path and test for each of PROGNAME-LIST
3902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906 test -z "$as_dir" && as_dir=.
3907 for ac_prog in sed gsed; do
3908 for ac_exec_ext in '' $ac_executable_extensions; do
3909 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3910 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3911 # Check for GNU ac_path_SED and select it if it is found.
3912 # Check for GNU $ac_path_SED
3913 case `"$ac_path_SED" --version 2>&1` in
3915 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3918 $as_echo_n 0123456789 >"conftest.in"
3921 cat "conftest.in" "conftest.in" >"conftest.tmp"
3922 mv "conftest.tmp" "conftest.in"
3923 cp "conftest.in" "conftest.nl"
3924 $as_echo '' >> "conftest.nl"
3925 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3926 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3927 ac_count=`expr $ac_count + 1`
3928 if test $ac_count -gt ${ac_path_SED_max-0}; then
3929 # Best one so far, save it but keep looking for a better one
3930 ac_cv_path_SED="$ac_path_SED"
3931 ac_path_SED_max=$ac_count
3933 # 10*(2^10) chars as input seems more than enough
3934 test $ac_count -gt 10 && break
3936 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3939 $ac_path_SED_found && break 3
3944 if test -z "$ac_cv_path_SED"; then
3945 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3946 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3947 { (exit 1); exit 1; }; }
3954 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3955 $as_echo "$ac_cv_path_SED" >&6; }
3956 SED="$ac_cv_path_SED"
3959 test -z "$SED" && SED=sed
3960 Xsed="$SED -e 1s/^X//"
3972 for ac_prog in gawk mawk nawk awk
3974 # Extract the first word of "$ac_prog", so it can be a program name with args.
3975 set dummy $ac_prog; ac_word=$2
3976 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3977 $as_echo_n "checking for $ac_word... " >&6; }
3978 if test "${ac_cv_prog_AWK+set}" = set; then
3979 $as_echo_n "(cached) " >&6
3981 if test -n "$AWK"; then
3982 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3988 test -z "$as_dir" && as_dir=.
3989 for ac_exec_ext in '' $ac_executable_extensions; do
3990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3991 ac_cv_prog_AWK="$ac_prog"
3992 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4002 if test -n "$AWK"; then
4003 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
4004 $as_echo "$AWK" >&6; }
4006 { $as_echo "$as_me:$LINENO: result: no" >&5
4007 $as_echo "no" >&6; }
4011 test -n "$AWK" && break
4014 if test "${use_libtool}" = "yes"; then
4015 enable_win32_dll=yes
4018 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
4019 if test -n "$ac_tool_prefix"; then
4020 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4021 set dummy ${ac_tool_prefix}as; ac_word=$2
4022 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4023 $as_echo_n "checking for $ac_word... " >&6; }
4024 if test "${ac_cv_prog_AS+set}" = set; then
4025 $as_echo_n "(cached) " >&6
4027 if test -n "$AS"; then
4028 ac_cv_prog_AS="$AS" # Let the user override the test.
4030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034 test -z "$as_dir" && as_dir=.
4035 for ac_exec_ext in '' $ac_executable_extensions; do
4036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4037 ac_cv_prog_AS="${ac_tool_prefix}as"
4038 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4048 if test -n "$AS"; then
4049 { $as_echo "$as_me:$LINENO: result: $AS" >&5
4050 $as_echo "$AS" >&6; }
4052 { $as_echo "$as_me:$LINENO: result: no" >&5
4053 $as_echo "no" >&6; }
4058 if test -z "$ac_cv_prog_AS"; then
4060 # Extract the first word of "as", so it can be a program name with args.
4061 set dummy as; ac_word=$2
4062 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4063 $as_echo_n "checking for $ac_word... " >&6; }
4064 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4065 $as_echo_n "(cached) " >&6
4067 if test -n "$ac_ct_AS"; then
4068 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4074 test -z "$as_dir" && as_dir=.
4075 for ac_exec_ext in '' $ac_executable_extensions; do
4076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4077 ac_cv_prog_ac_ct_AS="as"
4078 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4087 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4088 if test -n "$ac_ct_AS"; then
4089 { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4090 $as_echo "$ac_ct_AS" >&6; }
4092 { $as_echo "$as_me:$LINENO: result: no" >&5
4093 $as_echo "no" >&6; }
4096 if test "x$ac_ct_AS" = x; then
4099 case $cross_compiling:$ac_tool_warned in
4101 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4103 ac_tool_warned=yes ;;
4111 if test -n "$ac_tool_prefix"; then
4112 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4113 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4114 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4115 $as_echo_n "checking for $ac_word... " >&6; }
4116 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4117 $as_echo_n "(cached) " >&6
4119 if test -n "$DLLTOOL"; then
4120 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126 test -z "$as_dir" && as_dir=.
4127 for ac_exec_ext in '' $ac_executable_extensions; do
4128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4129 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4130 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4139 DLLTOOL=$ac_cv_prog_DLLTOOL
4140 if test -n "$DLLTOOL"; then
4141 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4142 $as_echo "$DLLTOOL" >&6; }
4144 { $as_echo "$as_me:$LINENO: result: no" >&5
4145 $as_echo "no" >&6; }
4150 if test -z "$ac_cv_prog_DLLTOOL"; then
4151 ac_ct_DLLTOOL=$DLLTOOL
4152 # Extract the first word of "dlltool", so it can be a program name with args.
4153 set dummy dlltool; ac_word=$2
4154 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4155 $as_echo_n "checking for $ac_word... " >&6; }
4156 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4157 $as_echo_n "(cached) " >&6
4159 if test -n "$ac_ct_DLLTOOL"; then
4160 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4166 test -z "$as_dir" && as_dir=.
4167 for ac_exec_ext in '' $ac_executable_extensions; do
4168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4169 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4170 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4179 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4180 if test -n "$ac_ct_DLLTOOL"; then
4181 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4182 $as_echo "$ac_ct_DLLTOOL" >&6; }
4184 { $as_echo "$as_me:$LINENO: result: no" >&5
4185 $as_echo "no" >&6; }
4188 if test "x$ac_ct_DLLTOOL" = x; then
4191 case $cross_compiling:$ac_tool_warned in
4193 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4195 ac_tool_warned=yes ;;
4197 DLLTOOL=$ac_ct_DLLTOOL
4200 DLLTOOL="$ac_cv_prog_DLLTOOL"
4203 if test -n "$ac_tool_prefix"; then
4204 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4205 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4206 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4207 $as_echo_n "checking for $ac_word... " >&6; }
4208 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4209 $as_echo_n "(cached) " >&6
4211 if test -n "$OBJDUMP"; then
4212 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218 test -z "$as_dir" && as_dir=.
4219 for ac_exec_ext in '' $ac_executable_extensions; do
4220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4221 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4222 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4231 OBJDUMP=$ac_cv_prog_OBJDUMP
4232 if test -n "$OBJDUMP"; then
4233 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4234 $as_echo "$OBJDUMP" >&6; }
4236 { $as_echo "$as_me:$LINENO: result: no" >&5
4237 $as_echo "no" >&6; }
4242 if test -z "$ac_cv_prog_OBJDUMP"; then
4243 ac_ct_OBJDUMP=$OBJDUMP
4244 # Extract the first word of "objdump", so it can be a program name with args.
4245 set dummy objdump; ac_word=$2
4246 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4247 $as_echo_n "checking for $ac_word... " >&6; }
4248 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4249 $as_echo_n "(cached) " >&6
4251 if test -n "$ac_ct_OBJDUMP"; then
4252 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258 test -z "$as_dir" && as_dir=.
4259 for ac_exec_ext in '' $ac_executable_extensions; do
4260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4261 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4262 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4271 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4272 if test -n "$ac_ct_OBJDUMP"; then
4273 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4274 $as_echo "$ac_ct_OBJDUMP" >&6; }
4276 { $as_echo "$as_me:$LINENO: result: no" >&5
4277 $as_echo "no" >&6; }
4280 if test "x$ac_ct_OBJDUMP" = x; then
4283 case $cross_compiling:$ac_tool_warned in
4285 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4287 ac_tool_warned=yes ;;
4289 OBJDUMP=$ac_ct_OBJDUMP
4292 OBJDUMP="$ac_cv_prog_OBJDUMP"
4298 test -z "$AS" && AS=as
4304 test -z "$DLLTOOL" && DLLTOOL=dlltool
4310 test -z "$OBJDUMP" && OBJDUMP=objdump
4320 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4321 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4326 macro_version='2.2.6'
4327 macro_revision='1.3012'
4341 ltmain="$ac_aux_dir/ltmain.sh"
4344 ac_cpp='$CPP $CPPFLAGS'
4345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4348 if test -n "$ac_tool_prefix"; then
4349 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4350 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4351 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4352 $as_echo_n "checking for $ac_word... " >&6; }
4353 if test "${ac_cv_prog_CC+set}" = set; then
4354 $as_echo_n "(cached) " >&6
4356 if test -n "$CC"; then
4357 ac_cv_prog_CC="$CC" # Let the user override the test.
4359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363 test -z "$as_dir" && as_dir=.
4364 for ac_exec_ext in '' $ac_executable_extensions; do
4365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4366 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4367 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4377 if test -n "$CC"; then
4378 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4379 $as_echo "$CC" >&6; }
4381 { $as_echo "$as_me:$LINENO: result: no" >&5
4382 $as_echo "no" >&6; }
4387 if test -z "$ac_cv_prog_CC"; then
4389 # Extract the first word of "gcc", so it can be a program name with args.
4390 set dummy gcc; ac_word=$2
4391 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4392 $as_echo_n "checking for $ac_word... " >&6; }
4393 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4394 $as_echo_n "(cached) " >&6
4396 if test -n "$ac_ct_CC"; then
4397 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403 test -z "$as_dir" && as_dir=.
4404 for ac_exec_ext in '' $ac_executable_extensions; do
4405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4406 ac_cv_prog_ac_ct_CC="gcc"
4407 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4416 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4417 if test -n "$ac_ct_CC"; then
4418 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4419 $as_echo "$ac_ct_CC" >&6; }
4421 { $as_echo "$as_me:$LINENO: result: no" >&5
4422 $as_echo "no" >&6; }
4425 if test "x$ac_ct_CC" = x; then
4428 case $cross_compiling:$ac_tool_warned in
4430 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4432 ac_tool_warned=yes ;;
4440 if test -z "$CC"; then
4441 if test -n "$ac_tool_prefix"; then
4442 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4443 set dummy ${ac_tool_prefix}cc; ac_word=$2
4444 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4445 $as_echo_n "checking for $ac_word... " >&6; }
4446 if test "${ac_cv_prog_CC+set}" = set; then
4447 $as_echo_n "(cached) " >&6
4449 if test -n "$CC"; then
4450 ac_cv_prog_CC="$CC" # Let the user override the test.
4452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456 test -z "$as_dir" && as_dir=.
4457 for ac_exec_ext in '' $ac_executable_extensions; do
4458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4459 ac_cv_prog_CC="${ac_tool_prefix}cc"
4460 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4470 if test -n "$CC"; then
4471 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4472 $as_echo "$CC" >&6; }
4474 { $as_echo "$as_me:$LINENO: result: no" >&5
4475 $as_echo "no" >&6; }
4481 if test -z "$CC"; then
4482 # Extract the first word of "cc", so it can be a program name with args.
4483 set dummy cc; ac_word=$2
4484 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4485 $as_echo_n "checking for $ac_word... " >&6; }
4486 if test "${ac_cv_prog_CC+set}" = set; then
4487 $as_echo_n "(cached) " >&6
4489 if test -n "$CC"; then
4490 ac_cv_prog_CC="$CC" # Let the user override the test.
4493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497 test -z "$as_dir" && as_dir=.
4498 for ac_exec_ext in '' $ac_executable_extensions; do
4499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4500 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4501 ac_prog_rejected=yes
4505 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4512 if test $ac_prog_rejected = yes; then
4513 # We found a bogon in the path, so make sure we never use it.
4514 set dummy $ac_cv_prog_CC
4516 if test $# != 0; then
4517 # We chose a different compiler from the bogus one.
4518 # However, it has the same basename, so the bogon will be chosen
4519 # first if we set CC to just the basename; use the full file name.
4521 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4527 if test -n "$CC"; then
4528 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4529 $as_echo "$CC" >&6; }
4531 { $as_echo "$as_me:$LINENO: result: no" >&5
4532 $as_echo "no" >&6; }
4537 if test -z "$CC"; then
4538 if test -n "$ac_tool_prefix"; then
4539 for ac_prog in cl.exe
4541 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4542 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4543 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4544 $as_echo_n "checking for $ac_word... " >&6; }
4545 if test "${ac_cv_prog_CC+set}" = set; then
4546 $as_echo_n "(cached) " >&6
4548 if test -n "$CC"; then
4549 ac_cv_prog_CC="$CC" # Let the user override the test.
4551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555 test -z "$as_dir" && as_dir=.
4556 for ac_exec_ext in '' $ac_executable_extensions; do
4557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4558 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4559 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4569 if test -n "$CC"; then
4570 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4571 $as_echo "$CC" >&6; }
4573 { $as_echo "$as_me:$LINENO: result: no" >&5
4574 $as_echo "no" >&6; }
4578 test -n "$CC" && break
4581 if test -z "$CC"; then
4583 for ac_prog in cl.exe
4585 # Extract the first word of "$ac_prog", so it can be a program name with args.
4586 set dummy $ac_prog; ac_word=$2
4587 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4588 $as_echo_n "checking for $ac_word... " >&6; }
4589 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4590 $as_echo_n "(cached) " >&6
4592 if test -n "$ac_ct_CC"; then
4593 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599 test -z "$as_dir" && as_dir=.
4600 for ac_exec_ext in '' $ac_executable_extensions; do
4601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4602 ac_cv_prog_ac_ct_CC="$ac_prog"
4603 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4612 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4613 if test -n "$ac_ct_CC"; then
4614 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4615 $as_echo "$ac_ct_CC" >&6; }
4617 { $as_echo "$as_me:$LINENO: result: no" >&5
4618 $as_echo "no" >&6; }
4622 test -n "$ac_ct_CC" && break
4625 if test "x$ac_ct_CC" = x; then
4628 case $cross_compiling:$ac_tool_warned in
4630 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4632 ac_tool_warned=yes ;;
4641 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4643 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4644 See \`config.log' for more details." >&5
4645 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4646 See \`config.log' for more details." >&2;}
4647 { (exit 1); exit 1; }; }; }
4649 # Provide some information about the compiler.
4650 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4653 { (ac_try="$ac_compiler --version >&5"
4655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4656 *) ac_try_echo=$ac_try;;
4658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4659 $as_echo "$ac_try_echo") >&5
4660 (eval "$ac_compiler --version >&5") 2>&5
4662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); }
4664 { (ac_try="$ac_compiler -v >&5"
4666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667 *) ac_try_echo=$ac_try;;
4669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4670 $as_echo "$ac_try_echo") >&5
4671 (eval "$ac_compiler -v >&5") 2>&5
4673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); }
4675 { (ac_try="$ac_compiler -V >&5"
4677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4678 *) ac_try_echo=$ac_try;;
4680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4681 $as_echo "$ac_try_echo") >&5
4682 (eval "$ac_compiler -V >&5") 2>&5
4684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); }
4687 cat >conftest.$ac_ext <<_ACEOF
4690 cat confdefs.h >>conftest.$ac_ext
4691 cat >>conftest.$ac_ext <<_ACEOF
4692 /* end confdefs.h. */
4702 ac_clean_files_save=$ac_clean_files
4703 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4704 # Try to create an executable without -o first, disregard a.out.
4705 # It will help us diagnose broken compilers, and finding out an intuition
4707 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4708 $as_echo_n "checking for C compiler default output file name... " >&6; }
4709 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4711 # The possible output files:
4712 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4715 for ac_file in $ac_files
4718 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4719 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4724 if { (ac_try="$ac_link_default"
4726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4727 *) ac_try_echo=$ac_try;;
4729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4730 $as_echo "$ac_try_echo") >&5
4731 (eval "$ac_link_default") 2>&5
4733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); }; then
4735 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4736 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4737 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4738 # so that the user can short-circuit this test for compilers unknown to
4740 for ac_file in $ac_files ''
4742 test -f "$ac_file" || continue
4744 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4747 # We found the default executable, but exeext='' is most
4751 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4753 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4755 # We set ac_cv_exeext here because the later test for it is not
4756 # safe: cross compilers may not add the suffix if given an `-o'
4757 # argument, so we may need to know it at that point already.
4758 # Even if this section looks crufty: it has the advantage of
4765 test "$ac_cv_exeext" = no && ac_cv_exeext=
4771 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
4772 $as_echo "$ac_file" >&6; }
4773 if test -z "$ac_file"; then
4774 $as_echo "$as_me: failed program was:" >&5
4775 sed 's/^/| /' conftest.$ac_ext >&5
4777 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4778 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4779 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
4780 See \`config.log' for more details." >&5
4781 $as_echo "$as_me: error: C compiler cannot create executables
4782 See \`config.log' for more details." >&2;}
4783 { (exit 77); exit 77; }; }; }
4786 ac_exeext=$ac_cv_exeext
4788 # Check that the compiler produces executables we can run. If not, either
4789 # the compiler is broken, or we cross compile.
4790 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4791 $as_echo_n "checking whether the C compiler works... " >&6; }
4792 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4793 # If not cross compiling, check that we can run a simple program.
4794 if test "$cross_compiling" != yes; then
4795 if { ac_try='./$ac_file'
4796 { (case "(($ac_try" in
4797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4798 *) ac_try_echo=$ac_try;;
4800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4801 $as_echo "$ac_try_echo") >&5
4802 (eval "$ac_try") 2>&5
4804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); }; }; then
4808 if test "$cross_compiling" = maybe; then
4811 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4813 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
4814 If you meant to cross compile, use \`--host'.
4815 See \`config.log' for more details." >&5
4816 $as_echo "$as_me: error: cannot run C compiled programs.
4817 If you meant to cross compile, use \`--host'.
4818 See \`config.log' for more details." >&2;}
4819 { (exit 1); exit 1; }; }; }
4823 { $as_echo "$as_me:$LINENO: result: yes" >&5
4824 $as_echo "yes" >&6; }
4826 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4827 ac_clean_files=$ac_clean_files_save
4828 # Check that the compiler produces executables we can run. If not, either
4829 # the compiler is broken, or we cross compile.
4830 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4831 $as_echo_n "checking whether we are cross compiling... " >&6; }
4832 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
4833 $as_echo "$cross_compiling" >&6; }
4835 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
4836 $as_echo_n "checking for suffix of executables... " >&6; }
4837 if { (ac_try="$ac_link"
4839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4840 *) ac_try_echo=$ac_try;;
4842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4843 $as_echo "$ac_try_echo") >&5
4844 (eval "$ac_link") 2>&5
4846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); }; then
4848 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4849 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4850 # work properly (i.e., refer to `conftest.exe'), while it won't with
4852 for ac_file in conftest.exe conftest conftest.*; do
4853 test -f "$ac_file" || continue
4855 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4856 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4862 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4863 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4864 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4865 See \`config.log' for more details." >&5
4866 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4867 See \`config.log' for more details." >&2;}
4868 { (exit 1); exit 1; }; }; }
4871 rm -f conftest$ac_cv_exeext
4872 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4873 $as_echo "$ac_cv_exeext" >&6; }
4875 rm -f conftest.$ac_ext
4876 EXEEXT=$ac_cv_exeext
4878 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
4879 $as_echo_n "checking for suffix of object files... " >&6; }
4880 if test "${ac_cv_objext+set}" = set; then
4881 $as_echo_n "(cached) " >&6
4883 cat >conftest.$ac_ext <<_ACEOF
4886 cat confdefs.h >>conftest.$ac_ext
4887 cat >>conftest.$ac_ext <<_ACEOF
4888 /* end confdefs.h. */
4898 rm -f conftest.o conftest.obj
4899 if { (ac_try="$ac_compile"
4901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4902 *) ac_try_echo=$ac_try;;
4904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4905 $as_echo "$ac_try_echo") >&5
4906 (eval "$ac_compile") 2>&5
4908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); }; then
4910 for ac_file in conftest.o conftest.obj conftest.*; do
4911 test -f "$ac_file" || continue;
4913 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4914 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4919 $as_echo "$as_me: failed program was:" >&5
4920 sed 's/^/| /' conftest.$ac_ext >&5
4922 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4924 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4925 See \`config.log' for more details." >&5
4926 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
4927 See \`config.log' for more details." >&2;}
4928 { (exit 1); exit 1; }; }; }
4931 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4933 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4934 $as_echo "$ac_cv_objext" >&6; }
4935 OBJEXT=$ac_cv_objext
4937 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4938 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4939 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4940 $as_echo_n "(cached) " >&6
4942 cat >conftest.$ac_ext <<_ACEOF
4945 cat confdefs.h >>conftest.$ac_ext
4946 cat >>conftest.$ac_ext <<_ACEOF
4947 /* end confdefs.h. */
4960 rm -f conftest.$ac_objext
4961 if { (ac_try="$ac_compile"
4963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4964 *) ac_try_echo=$ac_try;;
4966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4967 $as_echo "$ac_try_echo") >&5
4968 (eval "$ac_compile") 2>conftest.er1
4970 grep -v '^ *+' conftest.er1 >conftest.err
4972 cat conftest.err >&5
4973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); } && {
4975 test -z "$ac_c_werror_flag" ||
4976 test ! -s conftest.err
4977 } && test -s conftest.$ac_objext; then
4980 $as_echo "$as_me: failed program was:" >&5
4981 sed 's/^/| /' conftest.$ac_ext >&5
4986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4987 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4990 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4991 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4992 if test $ac_compiler_gnu = yes; then
4997 ac_test_CFLAGS=${CFLAGS+set}
4998 ac_save_CFLAGS=$CFLAGS
4999 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5000 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5001 if test "${ac_cv_prog_cc_g+set}" = set; then
5002 $as_echo_n "(cached) " >&6
5004 ac_save_c_werror_flag=$ac_c_werror_flag
5005 ac_c_werror_flag=yes
5008 cat >conftest.$ac_ext <<_ACEOF
5011 cat confdefs.h >>conftest.$ac_ext
5012 cat >>conftest.$ac_ext <<_ACEOF
5013 /* end confdefs.h. */
5023 rm -f conftest.$ac_objext
5024 if { (ac_try="$ac_compile"
5026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5027 *) ac_try_echo=$ac_try;;
5029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5030 $as_echo "$ac_try_echo") >&5
5031 (eval "$ac_compile") 2>conftest.er1
5033 grep -v '^ *+' conftest.er1 >conftest.err
5035 cat conftest.err >&5
5036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); } && {
5038 test -z "$ac_c_werror_flag" ||
5039 test ! -s conftest.err
5040 } && test -s conftest.$ac_objext; then
5043 $as_echo "$as_me: failed program was:" >&5
5044 sed 's/^/| /' conftest.$ac_ext >&5
5047 cat >conftest.$ac_ext <<_ACEOF
5050 cat confdefs.h >>conftest.$ac_ext
5051 cat >>conftest.$ac_ext <<_ACEOF
5052 /* end confdefs.h. */
5062 rm -f conftest.$ac_objext
5063 if { (ac_try="$ac_compile"
5065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5066 *) ac_try_echo=$ac_try;;
5068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5069 $as_echo "$ac_try_echo") >&5
5070 (eval "$ac_compile") 2>conftest.er1
5072 grep -v '^ *+' conftest.er1 >conftest.err
5074 cat conftest.err >&5
5075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); } && {
5077 test -z "$ac_c_werror_flag" ||
5078 test ! -s conftest.err
5079 } && test -s conftest.$ac_objext; then
5082 $as_echo "$as_me: failed program was:" >&5
5083 sed 's/^/| /' conftest.$ac_ext >&5
5085 ac_c_werror_flag=$ac_save_c_werror_flag
5087 cat >conftest.$ac_ext <<_ACEOF
5090 cat confdefs.h >>conftest.$ac_ext
5091 cat >>conftest.$ac_ext <<_ACEOF
5092 /* end confdefs.h. */
5102 rm -f conftest.$ac_objext
5103 if { (ac_try="$ac_compile"
5105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5106 *) ac_try_echo=$ac_try;;
5108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5109 $as_echo "$ac_try_echo") >&5
5110 (eval "$ac_compile") 2>conftest.er1
5112 grep -v '^ *+' conftest.er1 >conftest.err
5114 cat conftest.err >&5
5115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); } && {
5117 test -z "$ac_c_werror_flag" ||
5118 test ! -s conftest.err
5119 } && test -s conftest.$ac_objext; then
5122 $as_echo "$as_me: failed program was:" >&5
5123 sed 's/^/| /' conftest.$ac_ext >&5
5128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5135 ac_c_werror_flag=$ac_save_c_werror_flag
5137 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5138 $as_echo "$ac_cv_prog_cc_g" >&6; }
5139 if test "$ac_test_CFLAGS" = set; then
5140 CFLAGS=$ac_save_CFLAGS
5141 elif test $ac_cv_prog_cc_g = yes; then
5142 if test "$GCC" = yes; then
5148 if test "$GCC" = yes; then
5154 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5155 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5156 if test "${ac_cv_prog_cc_c89+set}" = set; then
5157 $as_echo_n "(cached) " >&6
5159 ac_cv_prog_cc_c89=no
5161 cat >conftest.$ac_ext <<_ACEOF
5164 cat confdefs.h >>conftest.$ac_ext
5165 cat >>conftest.$ac_ext <<_ACEOF
5166 /* end confdefs.h. */
5169 #include <sys/types.h>
5170 #include <sys/stat.h>
5171 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5172 struct buf { int x; };
5173 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5174 static char *e (p, i)
5180 static char *f (char * (*g) (char **, int), char **p, ...)
5185 s = g (p, va_arg (v,int));
5190 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5191 function prototypes and stuff, but not '\xHH' hex character constants.
5192 These don't provoke an error unfortunately, instead are silently treated
5193 as 'x'. The following induces an error, until -std is added to get
5194 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5195 array size at least. It's necessary to write '\x00'==0 to get something
5196 that's true only with -std. */
5197 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5199 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5200 inside strings and character constants. */
5202 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5204 int test (int i, double x);
5205 struct s1 {int (*f) (int a);};
5206 struct s2 {int (*f) (double a);};
5207 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5213 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5218 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5219 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5221 CC="$ac_save_CC $ac_arg"
5222 rm -f conftest.$ac_objext
5223 if { (ac_try="$ac_compile"
5225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5226 *) ac_try_echo=$ac_try;;
5228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5229 $as_echo "$ac_try_echo") >&5
5230 (eval "$ac_compile") 2>conftest.er1
5232 grep -v '^ *+' conftest.er1 >conftest.err
5234 cat conftest.err >&5
5235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); } && {
5237 test -z "$ac_c_werror_flag" ||
5238 test ! -s conftest.err
5239 } && test -s conftest.$ac_objext; then
5240 ac_cv_prog_cc_c89=$ac_arg
5242 $as_echo "$as_me: failed program was:" >&5
5243 sed 's/^/| /' conftest.$ac_ext >&5
5248 rm -f core conftest.err conftest.$ac_objext
5249 test "x$ac_cv_prog_cc_c89" != "xno" && break
5251 rm -f conftest.$ac_ext
5256 case "x$ac_cv_prog_cc_c89" in
5258 { $as_echo "$as_me:$LINENO: result: none needed" >&5
5259 $as_echo "none needed" >&6; } ;;
5261 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5262 $as_echo "unsupported" >&6; } ;;
5264 CC="$CC $ac_cv_prog_cc_c89"
5265 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5266 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5271 ac_cpp='$CPP $CPPFLAGS'
5272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5276 depcc="$CC" am_compiler_list=
5278 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5279 $as_echo_n "checking dependency style of $depcc... " >&6; }
5280 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5281 $as_echo_n "(cached) " >&6
5283 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5284 # We make a subdir and do the tests there. Otherwise we can end up
5285 # making bogus files that we don't know about and never remove. For
5286 # instance it was reported that on HP-UX the gcc test will end up
5287 # making a dummy file named `D' -- because `-MD' means `put the output
5290 # Copy depcomp to subdir because otherwise we won't find it if we're
5291 # using a relative directory.
5292 cp "$am_depcomp" conftest.dir
5294 # We will build objects and dependencies in a subdirectory because
5295 # it helps to detect inapplicable dependency modes. For instance
5296 # both Tru64's cc and ICC support -MD to output dependencies as a
5297 # side effect of compilation, but ICC will put the dependencies in
5298 # the current directory while Tru64 will put them in the object
5302 am_cv_CC_dependencies_compiler_type=none
5303 if test "$am_compiler_list" = ""; then
5304 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5307 case " $depcc " in #(
5308 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5311 for depmode in $am_compiler_list; do
5312 # Setup a source with many dependencies, because some compilers
5313 # like to wrap large dependency lists on column 80 (with \), and
5314 # we should not choose a depcomp mode which is confused by this.
5316 # We need to recreate these files for each test, as the compiler may
5317 # overwrite some of them when testing with obscure command lines.
5318 # This happens at least with the AIX C compiler.
5320 for i in 1 2 3 4 5 6; do
5321 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5322 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5323 # Solaris 8's {/usr,}/bin/sh.
5324 touch sub/conftst$i.h
5326 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5328 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5329 # mode. It turns out that the SunPro C++ compiler does not properly
5330 # handle `-M -o', and we need to detect this. Also, some Intel
5331 # versions had trouble with output in subdirs
5332 am__obj=sub/conftest.${OBJEXT-o}
5333 am__minus_obj="-o $am__obj"
5336 # This depmode causes a compiler race in universal mode.
5337 test "$am__universal" = false || continue
5340 # after this tag, mechanisms are not by side-effect, so they'll
5341 # only be used when explicitly requested
5342 if test "x$enable_dependency_tracking" = xyes; then
5348 msvisualcpp | msvcmsys)
5349 # This compiler won't grok `-c -o', but also, the minuso test has
5350 # not run yet. These depmodes are late enough in the game, and
5351 # so weak that their functioning should not be impacted.
5352 am__obj=conftest.${OBJEXT-o}
5357 if depmode=$depmode \
5358 source=sub/conftest.c object=$am__obj \
5359 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5360 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5361 >/dev/null 2>conftest.err &&
5362 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5363 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5364 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5365 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5366 # icc doesn't choke on unknown options, it will just issue warnings
5367 # or remarks (even with -Werror). So we grep stderr for any message
5368 # that says an option was ignored or not supported.
5369 # When given -MP, icc 7.0 and 7.1 complain thusly:
5370 # icc: Command line warning: ignoring option '-M'; no argument required
5371 # The diagnosis changed in icc 8.0:
5372 # icc: Command line remark: option '-MP' not supported
5373 if (grep 'ignoring option' conftest.err ||
5374 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5375 am_cv_CC_dependencies_compiler_type=$depmode
5384 am_cv_CC_dependencies_compiler_type=none
5388 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5389 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5390 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5393 test "x$enable_dependency_tracking" != xno \
5394 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5396 am__fastdepCC_FALSE='#'
5398 am__fastdepCC_TRUE='#'
5399 am__fastdepCC_FALSE=
5403 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5404 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5405 if test "${ac_cv_path_GREP+set}" = set; then
5406 $as_echo_n "(cached) " >&6
5408 if test -z "$GREP"; then
5409 ac_path_GREP_found=false
5410 # Loop through the user's path and test for each of PROGNAME-LIST
5411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5412 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5415 test -z "$as_dir" && as_dir=.
5416 for ac_prog in grep ggrep; do
5417 for ac_exec_ext in '' $ac_executable_extensions; do
5418 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5419 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5420 # Check for GNU ac_path_GREP and select it if it is found.
5421 # Check for GNU $ac_path_GREP
5422 case `"$ac_path_GREP" --version 2>&1` in
5424 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5427 $as_echo_n 0123456789 >"conftest.in"
5430 cat "conftest.in" "conftest.in" >"conftest.tmp"
5431 mv "conftest.tmp" "conftest.in"
5432 cp "conftest.in" "conftest.nl"
5433 $as_echo 'GREP' >> "conftest.nl"
5434 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5435 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5436 ac_count=`expr $ac_count + 1`
5437 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5438 # Best one so far, save it but keep looking for a better one
5439 ac_cv_path_GREP="$ac_path_GREP"
5440 ac_path_GREP_max=$ac_count
5442 # 10*(2^10) chars as input seems more than enough
5443 test $ac_count -gt 10 && break
5445 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5448 $ac_path_GREP_found && break 3
5453 if test -z "$ac_cv_path_GREP"; then
5454 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5455 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5456 { (exit 1); exit 1; }; }
5459 ac_cv_path_GREP=$GREP
5463 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5464 $as_echo "$ac_cv_path_GREP" >&6; }
5465 GREP="$ac_cv_path_GREP"
5468 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5469 $as_echo_n "checking for egrep... " >&6; }
5470 if test "${ac_cv_path_EGREP+set}" = set; then
5471 $as_echo_n "(cached) " >&6
5473 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5474 then ac_cv_path_EGREP="$GREP -E"
5476 if test -z "$EGREP"; then
5477 ac_path_EGREP_found=false
5478 # Loop through the user's path and test for each of PROGNAME-LIST
5479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5483 test -z "$as_dir" && as_dir=.
5484 for ac_prog in egrep; do
5485 for ac_exec_ext in '' $ac_executable_extensions; do
5486 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5487 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5488 # Check for GNU ac_path_EGREP and select it if it is found.
5489 # Check for GNU $ac_path_EGREP
5490 case `"$ac_path_EGREP" --version 2>&1` in
5492 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5495 $as_echo_n 0123456789 >"conftest.in"
5498 cat "conftest.in" "conftest.in" >"conftest.tmp"
5499 mv "conftest.tmp" "conftest.in"
5500 cp "conftest.in" "conftest.nl"
5501 $as_echo 'EGREP' >> "conftest.nl"
5502 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5503 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5504 ac_count=`expr $ac_count + 1`
5505 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5506 # Best one so far, save it but keep looking for a better one
5507 ac_cv_path_EGREP="$ac_path_EGREP"
5508 ac_path_EGREP_max=$ac_count
5510 # 10*(2^10) chars as input seems more than enough
5511 test $ac_count -gt 10 && break
5513 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5516 $ac_path_EGREP_found && break 3
5521 if test -z "$ac_cv_path_EGREP"; then
5522 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5523 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5524 { (exit 1); exit 1; }; }
5527 ac_cv_path_EGREP=$EGREP
5532 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5533 $as_echo "$ac_cv_path_EGREP" >&6; }
5534 EGREP="$ac_cv_path_EGREP"
5537 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5538 $as_echo_n "checking for fgrep... " >&6; }
5539 if test "${ac_cv_path_FGREP+set}" = set; then
5540 $as_echo_n "(cached) " >&6
5542 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5543 then ac_cv_path_FGREP="$GREP -F"
5545 if test -z "$FGREP"; then
5546 ac_path_FGREP_found=false
5547 # Loop through the user's path and test for each of PROGNAME-LIST
5548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5549 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5552 test -z "$as_dir" && as_dir=.
5553 for ac_prog in fgrep; do
5554 for ac_exec_ext in '' $ac_executable_extensions; do
5555 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5556 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5557 # Check for GNU ac_path_FGREP and select it if it is found.
5558 # Check for GNU $ac_path_FGREP
5559 case `"$ac_path_FGREP" --version 2>&1` in
5561 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5564 $as_echo_n 0123456789 >"conftest.in"
5567 cat "conftest.in" "conftest.in" >"conftest.tmp"
5568 mv "conftest.tmp" "conftest.in"
5569 cp "conftest.in" "conftest.nl"
5570 $as_echo 'FGREP' >> "conftest.nl"
5571 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5572 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5573 ac_count=`expr $ac_count + 1`
5574 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5575 # Best one so far, save it but keep looking for a better one
5576 ac_cv_path_FGREP="$ac_path_FGREP"
5577 ac_path_FGREP_max=$ac_count
5579 # 10*(2^10) chars as input seems more than enough
5580 test $ac_count -gt 10 && break
5582 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5585 $ac_path_FGREP_found && break 3
5590 if test -z "$ac_cv_path_FGREP"; then
5591 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5592 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5593 { (exit 1); exit 1; }; }
5596 ac_cv_path_FGREP=$FGREP
5601 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5602 $as_echo "$ac_cv_path_FGREP" >&6; }
5603 FGREP="$ac_cv_path_FGREP"
5606 test -z "$GREP" && GREP=grep
5626 # Check whether --with-gnu-ld was given.
5627 if test "${with_gnu_ld+set}" = set; then
5628 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5634 if test "$GCC" = yes; then
5635 # Check if gcc -print-prog-name=ld gives a path.
5636 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5637 $as_echo_n "checking for ld used by $CC... " >&6; }
5640 # gcc leaves a trailing carriage return which upsets mingw
5641 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5643 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5646 # Accept absolute paths.
5648 re_direlt='/[^/][^/]*/\.\./'
5649 # Canonicalize the pathname of ld
5650 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5651 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5652 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5654 test -z "$LD" && LD="$ac_prog"
5657 # If it fails, then pretend we aren't using GCC.
5661 # If it is relative, then search for the first ld in PATH.
5665 elif test "$with_gnu_ld" = yes; then
5666 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5667 $as_echo_n "checking for GNU ld... " >&6; }
5669 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5670 $as_echo_n "checking for non-GNU ld... " >&6; }
5672 if test "${lt_cv_path_LD+set}" = set; then
5673 $as_echo_n "(cached) " >&6
5675 if test -z "$LD"; then
5676 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5677 for ac_dir in $PATH; do
5679 test -z "$ac_dir" && ac_dir=.
5680 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5681 lt_cv_path_LD="$ac_dir/$ac_prog"
5682 # Check to see if the program is GNU ld. I'd rather use --version,
5683 # but apparently some variants of GNU ld only accept -v.
5684 # Break only if it was the GNU/non-GNU ld that we prefer.
5685 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5686 *GNU* | *'with BFD'*)
5687 test "$with_gnu_ld" != no && break
5690 test "$with_gnu_ld" != yes && break
5697 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5702 if test -n "$LD"; then
5703 { $as_echo "$as_me:$LINENO: result: $LD" >&5
5704 $as_echo "$LD" >&6; }
5706 { $as_echo "$as_me:$LINENO: result: no" >&5
5707 $as_echo "no" >&6; }
5709 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5710 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5711 { (exit 1); exit 1; }; }
5712 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5713 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5714 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5715 $as_echo_n "(cached) " >&6
5717 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5718 case `$LD -v 2>&1 </dev/null` in
5719 *GNU* | *'with BFD'*)
5720 lt_cv_prog_gnu_ld=yes
5723 lt_cv_prog_gnu_ld=no
5727 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5728 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5729 with_gnu_ld=$lt_cv_prog_gnu_ld
5739 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5740 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5741 if test "${lt_cv_path_NM+set}" = set; then
5742 $as_echo_n "(cached) " >&6
5744 if test -n "$NM"; then
5745 # Let the user override the test.
5748 lt_nm_to_check="${ac_tool_prefix}nm"
5749 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5750 lt_nm_to_check="$lt_nm_to_check nm"
5752 for lt_tmp_nm in $lt_nm_to_check; do
5753 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5754 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5756 test -z "$ac_dir" && ac_dir=.
5757 tmp_nm="$ac_dir/$lt_tmp_nm"
5758 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5759 # Check to see if the nm accepts a BSD-compat flag.
5760 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5761 # nm: unknown option "B" ignored
5762 # Tru64's nm complains that /dev/null is an invalid object file
5763 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5764 */dev/null* | *'Invalid file or object type'*)
5765 lt_cv_path_NM="$tmp_nm -B"
5769 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5771 lt_cv_path_NM="$tmp_nm -p"
5775 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5776 continue # so that we can try to find one that supports BSD flags
5785 : ${lt_cv_path_NM=no}
5788 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5789 $as_echo "$lt_cv_path_NM" >&6; }
5790 if test "$lt_cv_path_NM" != "no"; then
5793 # Didn't find any BSD compatible name lister, look for dumpbin.
5794 if test -n "$ac_tool_prefix"; then
5795 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5797 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5798 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5799 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5800 $as_echo_n "checking for $ac_word... " >&6; }
5801 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5802 $as_echo_n "(cached) " >&6
5804 if test -n "$DUMPBIN"; then
5805 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5811 test -z "$as_dir" && as_dir=.
5812 for ac_exec_ext in '' $ac_executable_extensions; do
5813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5814 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5815 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5824 DUMPBIN=$ac_cv_prog_DUMPBIN
5825 if test -n "$DUMPBIN"; then
5826 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5827 $as_echo "$DUMPBIN" >&6; }
5829 { $as_echo "$as_me:$LINENO: result: no" >&5
5830 $as_echo "no" >&6; }
5834 test -n "$DUMPBIN" && break
5837 if test -z "$DUMPBIN"; then
5838 ac_ct_DUMPBIN=$DUMPBIN
5839 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5841 # Extract the first word of "$ac_prog", so it can be a program name with args.
5842 set dummy $ac_prog; ac_word=$2
5843 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5844 $as_echo_n "checking for $ac_word... " >&6; }
5845 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5846 $as_echo_n "(cached) " >&6
5848 if test -n "$ac_ct_DUMPBIN"; then
5849 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855 test -z "$as_dir" && as_dir=.
5856 for ac_exec_ext in '' $ac_executable_extensions; do
5857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5858 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5859 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5868 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5869 if test -n "$ac_ct_DUMPBIN"; then
5870 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5871 $as_echo "$ac_ct_DUMPBIN" >&6; }
5873 { $as_echo "$as_me:$LINENO: result: no" >&5
5874 $as_echo "no" >&6; }
5878 test -n "$ac_ct_DUMPBIN" && break
5881 if test "x$ac_ct_DUMPBIN" = x; then
5884 case $cross_compiling:$ac_tool_warned in
5886 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5888 ac_tool_warned=yes ;;
5890 DUMPBIN=$ac_ct_DUMPBIN
5895 if test "$DUMPBIN" != ":"; then
5899 test -z "$NM" && NM=nm
5906 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5907 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5908 if test "${lt_cv_nm_interface+set}" = set; then
5909 $as_echo_n "(cached) " >&6
5911 lt_cv_nm_interface="BSD nm"
5912 echo "int some_variable = 0;" > conftest.$ac_ext
5913 (eval echo "\"\$as_me:5913: $ac_compile\"" >&5)
5914 (eval "$ac_compile" 2>conftest.err)
5915 cat conftest.err >&5
5916 (eval echo "\"\$as_me:5916: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5917 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5918 cat conftest.err >&5
5919 (eval echo "\"\$as_me:5919: output\"" >&5)
5920 cat conftest.out >&5
5921 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5922 lt_cv_nm_interface="MS dumpbin"
5926 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5927 $as_echo "$lt_cv_nm_interface" >&6; }
5929 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5930 $as_echo_n "checking whether ln -s works... " >&6; }
5932 if test "$LN_S" = "ln -s"; then
5933 { $as_echo "$as_me:$LINENO: result: yes" >&5
5934 $as_echo "yes" >&6; }
5936 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5937 $as_echo "no, using $LN_S" >&6; }
5940 # find the maximum length of command line arguments
5941 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5942 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5943 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5944 $as_echo_n "(cached) " >&6
5951 # On DJGPP, this test can blow up pretty badly due to problems in libc
5952 # (any single argument exceeding 2000 bytes causes a buffer overrun
5953 # during glob expansion). Even if it were fixed, the result of this
5954 # check would be larger than it should be.
5955 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5959 # Under GNU Hurd, this test is not required because there is
5960 # no limit to the length of command line arguments.
5961 # Libtool will interpret -1 as no limit whatsoever
5962 lt_cv_sys_max_cmd_len=-1;
5965 cygwin* | mingw* | cegcc*)
5966 # On Win9x/ME, this test blows up -- it succeeds, but takes
5967 # about 5 minutes as the teststring grows exponentially.
5968 # Worse, since 9x/ME are not pre-emptively multitasking,
5969 # you end up with a "frozen" computer, even though with patience
5970 # the test eventually succeeds (with a max line length of 256k).
5971 # Instead, let's just punt: use the minimum linelength reported by
5972 # all of the supported platforms: 8192 (on NT/2K/XP).
5973 lt_cv_sys_max_cmd_len=8192;
5977 # On AmigaOS with pdksh, this test takes hours, literally.
5978 # So we just punt and use a minimum line length of 8192.
5979 lt_cv_sys_max_cmd_len=8192;
5982 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5983 # This has been around since 386BSD, at least. Likely further.
5984 if test -x /sbin/sysctl; then
5985 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5986 elif test -x /usr/sbin/sysctl; then
5987 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5989 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5991 # And add a safety zone
5992 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5993 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5997 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5998 lt_cv_sys_max_cmd_len=196608
6002 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6003 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6004 # nice to cause kernel panics so lets avoid the loop below.
6005 # First set a reasonable default.
6006 lt_cv_sys_max_cmd_len=16384
6008 if test -x /sbin/sysconfig; then
6009 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6010 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6015 lt_cv_sys_max_cmd_len=102400
6017 sysv5* | sco5v6* | sysv4.2uw2*)
6018 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6019 if test -n "$kargmax"; then
6020 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6022 lt_cv_sys_max_cmd_len=32768
6026 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6027 if test -n "$lt_cv_sys_max_cmd_len"; then
6028 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6029 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6031 # Make teststring a little bigger before we do anything with it.
6032 # a 1K string should be a reasonable start.
6033 for i in 1 2 3 4 5 6 7 8 ; do
6034 teststring=$teststring$teststring
6036 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6037 # If test is not a shell built-in, we'll probably end up computing a
6038 # maximum length that is only half of the actual maximum length, but
6040 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6041 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6042 test $i != 17 # 1/2 MB should be enough
6045 teststring=$teststring$teststring
6047 # Only check the string length outside the loop.
6048 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6050 # Add a significant safety factor because C++ compilers can tack on
6051 # massive amounts of additional arguments before passing them to the
6052 # linker. It appears as though 1/2 is a usable value.
6053 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6060 if test -n $lt_cv_sys_max_cmd_len ; then
6061 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6062 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6064 { $as_echo "$as_me:$LINENO: result: none" >&5
6065 $as_echo "none" >&6; }
6067 max_cmd_len=$lt_cv_sys_max_cmd_len
6078 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6079 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6080 # Try some XSI features
6083 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6085 && eval 'test $(( 1 + 1 )) -eq 2 \
6086 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6088 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
6089 $as_echo "$xsi_shell" >&6; }
6092 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6093 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6095 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6097 && lt_shell_append=yes
6098 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6099 $as_echo "$lt_shell_append" >&6; }
6102 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6112 # test EBCDIC or ASCII
6113 case `echo X|tr X '\101'` in
6114 A) # ASCII based system
6115 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6116 lt_SP2NL='tr \040 \012'
6117 lt_NL2SP='tr \015\012 \040\040'
6119 *) # EBCDIC based system
6120 lt_SP2NL='tr \100 \n'
6121 lt_NL2SP='tr \r\n \100\100'
6133 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6134 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6135 if test "${lt_cv_ld_reload_flag+set}" = set; then
6136 $as_echo_n "(cached) " >&6
6138 lt_cv_ld_reload_flag='-r'
6140 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6141 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6142 reload_flag=$lt_cv_ld_reload_flag
6143 case $reload_flag in
6145 *) reload_flag=" $reload_flag" ;;
6147 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6150 if test "$GCC" = yes; then
6151 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6153 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6166 if test -n "$ac_tool_prefix"; then
6167 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6168 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6169 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6170 $as_echo_n "checking for $ac_word... " >&6; }
6171 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6172 $as_echo_n "(cached) " >&6
6174 if test -n "$OBJDUMP"; then
6175 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181 test -z "$as_dir" && as_dir=.
6182 for ac_exec_ext in '' $ac_executable_extensions; do
6183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6184 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6185 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6194 OBJDUMP=$ac_cv_prog_OBJDUMP
6195 if test -n "$OBJDUMP"; then
6196 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6197 $as_echo "$OBJDUMP" >&6; }
6199 { $as_echo "$as_me:$LINENO: result: no" >&5
6200 $as_echo "no" >&6; }
6205 if test -z "$ac_cv_prog_OBJDUMP"; then
6206 ac_ct_OBJDUMP=$OBJDUMP
6207 # Extract the first word of "objdump", so it can be a program name with args.
6208 set dummy objdump; ac_word=$2
6209 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6210 $as_echo_n "checking for $ac_word... " >&6; }
6211 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6212 $as_echo_n "(cached) " >&6
6214 if test -n "$ac_ct_OBJDUMP"; then
6215 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221 test -z "$as_dir" && as_dir=.
6222 for ac_exec_ext in '' $ac_executable_extensions; do
6223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6224 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6225 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6234 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6235 if test -n "$ac_ct_OBJDUMP"; then
6236 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6237 $as_echo "$ac_ct_OBJDUMP" >&6; }
6239 { $as_echo "$as_me:$LINENO: result: no" >&5
6240 $as_echo "no" >&6; }
6243 if test "x$ac_ct_OBJDUMP" = x; then
6246 case $cross_compiling:$ac_tool_warned in
6248 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6249 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6250 ac_tool_warned=yes ;;
6252 OBJDUMP=$ac_ct_OBJDUMP
6255 OBJDUMP="$ac_cv_prog_OBJDUMP"
6258 test -z "$OBJDUMP" && OBJDUMP=objdump
6265 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6266 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6267 if test "${lt_cv_deplibs_check_method+set}" = set; then
6268 $as_echo_n "(cached) " >&6
6270 lt_cv_file_magic_cmd='$MAGIC_CMD'
6271 lt_cv_file_magic_test_file=
6272 lt_cv_deplibs_check_method='unknown'
6273 # Need to set the preceding variable on all platforms that support
6274 # interlibrary dependencies.
6275 # 'none' -- dependencies not supported.
6276 # `unknown' -- same as none, but documents that we really don't know.
6277 # 'pass_all' -- all dependencies passed with no checks.
6278 # 'test_compile' -- check by making test program.
6279 # 'file_magic [[regex]]' -- check by looking for files in library path
6280 # which responds to the $file_magic_cmd with a given extended regex.
6281 # If you have `file' or equivalent on your system and you're not sure
6282 # whether `pass_all' will *always* work, you probably want this one.
6286 lt_cv_deplibs_check_method=pass_all
6290 lt_cv_deplibs_check_method=pass_all
6294 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6295 lt_cv_file_magic_cmd='/usr/bin/file -L'
6296 lt_cv_file_magic_test_file=/shlib/libc.so
6300 # func_win32_libid is a shell function defined in ltmain.sh
6301 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6302 lt_cv_file_magic_cmd='func_win32_libid'
6306 # Base MSYS/MinGW do not provide the 'file' command needed by
6307 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6308 # unless we find 'file', for example because we are cross-compiling.
6309 if ( file / ) >/dev/null 2>&1; then
6310 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6311 lt_cv_file_magic_cmd='func_win32_libid'
6313 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6314 lt_cv_file_magic_cmd='$OBJDUMP -f'
6319 # use the weaker test based on 'objdump'. See mingw*.
6320 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6321 lt_cv_file_magic_cmd='$OBJDUMP -f'
6324 darwin* | rhapsody*)
6325 lt_cv_deplibs_check_method=pass_all
6328 freebsd* | dragonfly*)
6329 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6332 # Not sure whether the presence of OpenBSD here was a mistake.
6333 # Let's accept both of them until this is cleared up.
6334 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6335 lt_cv_file_magic_cmd=/usr/bin/file
6336 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6340 lt_cv_deplibs_check_method=pass_all
6345 lt_cv_deplibs_check_method=pass_all
6348 hpux10.20* | hpux11*)
6349 lt_cv_file_magic_cmd=/usr/bin/file
6352 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6353 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6356 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]'
6357 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6360 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6361 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6367 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6368 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6371 irix5* | irix6* | nonstopux*)
6373 *-32|*"-32 ") libmagic=32-bit;;
6374 *-n32|*"-n32 ") libmagic=N32;;
6375 *-64|*"-64 ") libmagic=64-bit;;
6376 *) libmagic=never-match;;
6378 lt_cv_deplibs_check_method=pass_all
6381 # This must be Linux ELF.
6382 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6383 lt_cv_deplibs_check_method=pass_all
6387 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6388 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6390 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6395 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6396 lt_cv_file_magic_cmd=/usr/bin/file
6397 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6401 lt_cv_deplibs_check_method=pass_all
6405 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6406 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6408 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6412 osf3* | osf4* | osf5*)
6413 lt_cv_deplibs_check_method=pass_all
6417 lt_cv_deplibs_check_method=pass_all
6421 lt_cv_deplibs_check_method=pass_all
6424 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6425 lt_cv_deplibs_check_method=pass_all
6429 case $host_vendor in
6431 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]'
6432 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6435 lt_cv_deplibs_check_method=pass_all
6438 lt_cv_file_magic_cmd='/bin/file'
6439 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6442 lt_cv_file_magic_cmd='/bin/file'
6443 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6444 lt_cv_file_magic_test_file=/lib/libc.so
6447 lt_cv_deplibs_check_method=pass_all
6450 lt_cv_deplibs_check_method=pass_all
6456 lt_cv_deplibs_check_method=pass_all
6461 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6462 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6463 file_magic_cmd=$lt_cv_file_magic_cmd
6464 deplibs_check_method=$lt_cv_deplibs_check_method
6465 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6478 if test -n "$ac_tool_prefix"; then
6479 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6480 set dummy ${ac_tool_prefix}ar; ac_word=$2
6481 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6482 $as_echo_n "checking for $ac_word... " >&6; }
6483 if test "${ac_cv_prog_AR+set}" = set; then
6484 $as_echo_n "(cached) " >&6
6486 if test -n "$AR"; then
6487 ac_cv_prog_AR="$AR" # Let the user override the test.
6489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493 test -z "$as_dir" && as_dir=.
6494 for ac_exec_ext in '' $ac_executable_extensions; do
6495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6496 ac_cv_prog_AR="${ac_tool_prefix}ar"
6497 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6507 if test -n "$AR"; then
6508 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6509 $as_echo "$AR" >&6; }
6511 { $as_echo "$as_me:$LINENO: result: no" >&5
6512 $as_echo "no" >&6; }
6517 if test -z "$ac_cv_prog_AR"; then
6519 # Extract the first word of "ar", so it can be a program name with args.
6520 set dummy ar; ac_word=$2
6521 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6522 $as_echo_n "checking for $ac_word... " >&6; }
6523 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6524 $as_echo_n "(cached) " >&6
6526 if test -n "$ac_ct_AR"; then
6527 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6533 test -z "$as_dir" && as_dir=.
6534 for ac_exec_ext in '' $ac_executable_extensions; do
6535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6536 ac_cv_prog_ac_ct_AR="ar"
6537 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6546 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6547 if test -n "$ac_ct_AR"; then
6548 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6549 $as_echo "$ac_ct_AR" >&6; }
6551 { $as_echo "$as_me:$LINENO: result: no" >&5
6552 $as_echo "no" >&6; }
6555 if test "x$ac_ct_AR" = x; then
6558 case $cross_compiling:$ac_tool_warned in
6560 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6562 ac_tool_warned=yes ;;
6570 test -z "$AR" && AR=ar
6571 test -z "$AR_FLAGS" && AR_FLAGS=cru
6583 if test -n "$ac_tool_prefix"; then
6584 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6585 set dummy ${ac_tool_prefix}strip; ac_word=$2
6586 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6587 $as_echo_n "checking for $ac_word... " >&6; }
6588 if test "${ac_cv_prog_STRIP+set}" = set; then
6589 $as_echo_n "(cached) " >&6
6591 if test -n "$STRIP"; then
6592 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598 test -z "$as_dir" && as_dir=.
6599 for ac_exec_ext in '' $ac_executable_extensions; do
6600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6601 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6602 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6611 STRIP=$ac_cv_prog_STRIP
6612 if test -n "$STRIP"; then
6613 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6614 $as_echo "$STRIP" >&6; }
6616 { $as_echo "$as_me:$LINENO: result: no" >&5
6617 $as_echo "no" >&6; }
6622 if test -z "$ac_cv_prog_STRIP"; then
6624 # Extract the first word of "strip", so it can be a program name with args.
6625 set dummy strip; ac_word=$2
6626 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6627 $as_echo_n "checking for $ac_word... " >&6; }
6628 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6629 $as_echo_n "(cached) " >&6
6631 if test -n "$ac_ct_STRIP"; then
6632 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638 test -z "$as_dir" && as_dir=.
6639 for ac_exec_ext in '' $ac_executable_extensions; do
6640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6641 ac_cv_prog_ac_ct_STRIP="strip"
6642 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6651 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6652 if test -n "$ac_ct_STRIP"; then
6653 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6654 $as_echo "$ac_ct_STRIP" >&6; }
6656 { $as_echo "$as_me:$LINENO: result: no" >&5
6657 $as_echo "no" >&6; }
6660 if test "x$ac_ct_STRIP" = x; then
6663 case $cross_compiling:$ac_tool_warned in
6665 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6667 ac_tool_warned=yes ;;
6672 STRIP="$ac_cv_prog_STRIP"
6675 test -z "$STRIP" && STRIP=:
6682 if test -n "$ac_tool_prefix"; then
6683 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6684 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6685 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6686 $as_echo_n "checking for $ac_word... " >&6; }
6687 if test "${ac_cv_prog_RANLIB+set}" = set; then
6688 $as_echo_n "(cached) " >&6
6690 if test -n "$RANLIB"; then
6691 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6697 test -z "$as_dir" && as_dir=.
6698 for ac_exec_ext in '' $ac_executable_extensions; do
6699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6700 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6701 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6710 RANLIB=$ac_cv_prog_RANLIB
6711 if test -n "$RANLIB"; then
6712 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6713 $as_echo "$RANLIB" >&6; }
6715 { $as_echo "$as_me:$LINENO: result: no" >&5
6716 $as_echo "no" >&6; }
6721 if test -z "$ac_cv_prog_RANLIB"; then
6722 ac_ct_RANLIB=$RANLIB
6723 # Extract the first word of "ranlib", so it can be a program name with args.
6724 set dummy ranlib; ac_word=$2
6725 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6726 $as_echo_n "checking for $ac_word... " >&6; }
6727 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6728 $as_echo_n "(cached) " >&6
6730 if test -n "$ac_ct_RANLIB"; then
6731 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737 test -z "$as_dir" && as_dir=.
6738 for ac_exec_ext in '' $ac_executable_extensions; do
6739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6740 ac_cv_prog_ac_ct_RANLIB="ranlib"
6741 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6750 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6751 if test -n "$ac_ct_RANLIB"; then
6752 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6753 $as_echo "$ac_ct_RANLIB" >&6; }
6755 { $as_echo "$as_me:$LINENO: result: no" >&5
6756 $as_echo "no" >&6; }
6759 if test "x$ac_ct_RANLIB" = x; then
6762 case $cross_compiling:$ac_tool_warned in
6764 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6765 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6766 ac_tool_warned=yes ;;
6768 RANLIB=$ac_ct_RANLIB
6771 RANLIB="$ac_cv_prog_RANLIB"
6774 test -z "$RANLIB" && RANLIB=:
6781 # Determine commands to create old-style static archives.
6782 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6783 old_postinstall_cmds='chmod 644 $oldlib'
6784 old_postuninstall_cmds=
6786 if test -n "$RANLIB"; then
6789 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6792 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6795 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6831 # If no C compiler was specified, use CC.
6834 # If no C compiler flags were specified, use CFLAGS.
6835 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6837 # Allow CC to be a program name with arguments.
6841 # Check for command to grab the raw symbol name followed by C symbol from nm.
6842 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6843 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6844 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6845 $as_echo_n "(cached) " >&6
6848 # These are sane defaults that work on at least a few old systems.
6849 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6851 # Character class describing NM global symbol codes.
6852 symcode='[BCDEGRST]'
6854 # Regexp to match symbols that can be accessed directly from C.
6855 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6857 # Define system-specific variables.
6862 cygwin* | mingw* | pw32* | cegcc*)
6863 symcode='[ABCDGISTW]'
6866 if test "$host_cpu" = ia64; then
6867 symcode='[ABCDEGRST]'
6871 symcode='[BCDEGRST]'
6874 symcode='[BCDEGQRST]'
6885 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6893 # If we're using GNU nm, then use its standard symbol codes.
6894 case `$NM -V 2>&1` in
6895 *GNU* | *'with BFD'*)
6896 symcode='[ABCDGIRSTW]' ;;
6899 # Transform an extracted symbol line into a proper C declaration.
6900 # Some systems (esp. on ia64) link data and code symbols differently,
6901 # so use this general approach.
6902 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6904 # Transform an extracted symbol line into symbol name and symbol address
6905 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6906 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'"
6908 # Handle CRLF in mingw tool chain
6912 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6916 # Try without a prefix underscore, then with it.
6917 for ac_symprfx in "" "_"; do
6919 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6920 symxfrm="\\1 $ac_symprfx\\2 \\2"
6922 # Write the raw and C identifiers.
6923 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6924 # Fake it for dumpbin and say T for any non-static function
6925 # and D for any global variable.
6926 # Also find C++ and __fastcall symbols from MSVC++,
6927 # which start with @ or ?.
6928 lt_cv_sys_global_symbol_pipe="$AWK '"\
6929 " {last_section=section; section=\$ 3};"\
6930 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6931 " \$ 0!~/External *\|/{next};"\
6932 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6933 " {if(hide[section]) next};"\
6934 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6935 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6936 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6937 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6938 " ' prfx=^$ac_symprfx"
6940 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6943 # Check to see that the pipe works correctly.
6947 cat > conftest.$ac_ext <<_LT_EOF
6952 void nm_test_func(void);
6953 void nm_test_func(void){}
6957 int main(){nm_test_var='a';nm_test_func();return(0);}
6960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6961 (eval $ac_compile) 2>&5
6963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); }; then
6965 # Now try to grab the symbols.
6967 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6968 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); } && test -s "$nlist"; then
6972 # Try sorting and uniquifying the output.
6973 if sort "$nlist" | uniq > "$nlist"T; then
6974 mv -f "$nlist"T "$nlist"
6979 # Make sure that we snagged all the symbols we need.
6980 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6981 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6982 cat <<_LT_EOF > conftest.$ac_ext
6988 # Now generate the symbol file.
6989 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6991 cat <<_LT_EOF >> conftest.$ac_ext
6993 /* The mapping between symbol names and symbols. */
6998 lt__PROGRAM__LTX_preloaded_symbols[] =
7000 { "@PROGRAM@", (void *) 0 },
7002 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7003 cat <<\_LT_EOF >> conftest.$ac_ext
7007 /* This works around a problem in FreeBSD linker */
7008 #ifdef FREEBSD_WORKAROUND
7009 static const void *lt_preloaded_setup() {
7010 return lt__PROGRAM__LTX_preloaded_symbols;
7018 # Now try linking the two files.
7019 mv conftest.$ac_objext conftstm.$ac_objext
7020 lt_save_LIBS="$LIBS"
7021 lt_save_CFLAGS="$CFLAGS"
7022 LIBS="conftstm.$ac_objext"
7023 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7025 (eval $ac_link) 2>&5
7027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7031 LIBS="$lt_save_LIBS"
7032 CFLAGS="$lt_save_CFLAGS"
7034 echo "cannot find nm_test_func in $nlist" >&5
7037 echo "cannot find nm_test_var in $nlist" >&5
7040 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7043 echo "$progname: failed program was:" >&5
7044 cat conftest.$ac_ext >&5
7046 rm -rf conftest* conftst*
7048 # Do not use the global_symbol_pipe unless it works.
7049 if test "$pipe_works" = yes; then
7052 lt_cv_sys_global_symbol_pipe=
7058 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7059 lt_cv_sys_global_symbol_to_cdecl=
7061 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7062 { $as_echo "$as_me:$LINENO: result: failed" >&5
7063 $as_echo "failed" >&6; }
7065 { $as_echo "$as_me:$LINENO: result: ok" >&5
7066 $as_echo "ok" >&6; }
7091 # Check whether --enable-libtool-lock was given.
7092 if test "${enable_libtool_lock+set}" = set; then
7093 enableval=$enable_libtool_lock;
7096 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7098 # Some flags need to be propagated to the compiler or linker for good
7102 # Find out which ABI we are using.
7103 echo 'int i;' > conftest.$ac_ext
7104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7105 (eval $ac_compile) 2>&5
7107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7108 (exit $ac_status); }; then
7109 case `/usr/bin/file conftest.$ac_objext` in
7121 # Find out which ABI we are using.
7122 echo '#line 7122 "configure"' > conftest.$ac_ext
7123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7124 (eval $ac_compile) 2>&5
7126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); }; then
7128 if test "$lt_cv_prog_gnu_ld" = yes; then
7129 case `/usr/bin/file conftest.$ac_objext` in
7131 LD="${LD-ld} -melf32bsmip"
7134 LD="${LD-ld} -melf32bmipn32"
7137 LD="${LD-ld} -melf64bmip"
7141 case `/usr/bin/file conftest.$ac_objext` in
7157 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7158 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7159 # Find out which ABI we are using.
7160 echo 'int i;' > conftest.$ac_ext
7161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7162 (eval $ac_compile) 2>&5
7164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); }; then
7166 case `/usr/bin/file conftest.o` in
7169 x86_64-*kfreebsd*-gnu)
7170 LD="${LD-ld} -m elf_i386_fbsd"
7173 LD="${LD-ld} -m elf_i386"
7175 ppc64-*linux*|powerpc64-*linux*)
7176 LD="${LD-ld} -m elf32ppclinux"
7179 LD="${LD-ld} -m elf_s390"
7182 LD="${LD-ld} -m elf32_sparc"
7188 x86_64-*kfreebsd*-gnu)
7189 LD="${LD-ld} -m elf_x86_64_fbsd"
7192 LD="${LD-ld} -m elf_x86_64"
7194 ppc*-*linux*|powerpc*-*linux*)
7195 LD="${LD-ld} -m elf64ppc"
7197 s390*-*linux*|s390*-*tpf*)
7198 LD="${LD-ld} -m elf64_s390"
7201 LD="${LD-ld} -m elf64_sparc"
7211 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7212 SAVE_CFLAGS="$CFLAGS"
7213 CFLAGS="$CFLAGS -belf"
7214 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7215 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7216 if test "${lt_cv_cc_needs_belf+set}" = set; then
7217 $as_echo_n "(cached) " >&6
7220 ac_cpp='$CPP $CPPFLAGS'
7221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7225 cat >conftest.$ac_ext <<_ACEOF
7228 cat confdefs.h >>conftest.$ac_ext
7229 cat >>conftest.$ac_ext <<_ACEOF
7230 /* end confdefs.h. */
7240 rm -f conftest.$ac_objext conftest$ac_exeext
7241 if { (ac_try="$ac_link"
7243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7244 *) ac_try_echo=$ac_try;;
7246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7247 $as_echo "$ac_try_echo") >&5
7248 (eval "$ac_link") 2>conftest.er1
7250 grep -v '^ *+' conftest.er1 >conftest.err
7252 cat conftest.err >&5
7253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254 (exit $ac_status); } && {
7255 test -z "$ac_c_werror_flag" ||
7256 test ! -s conftest.err
7257 } && test -s conftest$ac_exeext && {
7258 test "$cross_compiling" = yes ||
7259 $as_test_x conftest$ac_exeext
7261 lt_cv_cc_needs_belf=yes
7263 $as_echo "$as_me: failed program was:" >&5
7264 sed 's/^/| /' conftest.$ac_ext >&5
7266 lt_cv_cc_needs_belf=no
7269 rm -rf conftest.dSYM
7270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7271 conftest$ac_exeext conftest.$ac_ext
7273 ac_cpp='$CPP $CPPFLAGS'
7274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7279 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7280 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7281 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7282 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7283 CFLAGS="$SAVE_CFLAGS"
7287 # Find out which ABI we are using.
7288 echo 'int i;' > conftest.$ac_ext
7289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7290 (eval $ac_compile) 2>&5
7292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); }; then
7294 case `/usr/bin/file conftest.o` in
7296 case $lt_cv_prog_gnu_ld in
7297 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7299 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7311 need_locks="$enable_libtool_lock"
7315 rhapsody* | darwin*)
7316 if test -n "$ac_tool_prefix"; then
7317 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7318 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7319 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7320 $as_echo_n "checking for $ac_word... " >&6; }
7321 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7322 $as_echo_n "(cached) " >&6
7324 if test -n "$DSYMUTIL"; then
7325 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331 test -z "$as_dir" && as_dir=.
7332 for ac_exec_ext in '' $ac_executable_extensions; do
7333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7334 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7335 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7344 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7345 if test -n "$DSYMUTIL"; then
7346 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7347 $as_echo "$DSYMUTIL" >&6; }
7349 { $as_echo "$as_me:$LINENO: result: no" >&5
7350 $as_echo "no" >&6; }
7355 if test -z "$ac_cv_prog_DSYMUTIL"; then
7356 ac_ct_DSYMUTIL=$DSYMUTIL
7357 # Extract the first word of "dsymutil", so it can be a program name with args.
7358 set dummy dsymutil; ac_word=$2
7359 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7360 $as_echo_n "checking for $ac_word... " >&6; }
7361 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7362 $as_echo_n "(cached) " >&6
7364 if test -n "$ac_ct_DSYMUTIL"; then
7365 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7371 test -z "$as_dir" && as_dir=.
7372 for ac_exec_ext in '' $ac_executable_extensions; do
7373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7374 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7375 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7384 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7385 if test -n "$ac_ct_DSYMUTIL"; then
7386 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7387 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7389 { $as_echo "$as_me:$LINENO: result: no" >&5
7390 $as_echo "no" >&6; }
7393 if test "x$ac_ct_DSYMUTIL" = x; then
7396 case $cross_compiling:$ac_tool_warned in
7398 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7400 ac_tool_warned=yes ;;
7402 DSYMUTIL=$ac_ct_DSYMUTIL
7405 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7408 if test -n "$ac_tool_prefix"; then
7409 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7410 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7411 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7412 $as_echo_n "checking for $ac_word... " >&6; }
7413 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7414 $as_echo_n "(cached) " >&6
7416 if test -n "$NMEDIT"; then
7417 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423 test -z "$as_dir" && as_dir=.
7424 for ac_exec_ext in '' $ac_executable_extensions; do
7425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7426 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7427 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7436 NMEDIT=$ac_cv_prog_NMEDIT
7437 if test -n "$NMEDIT"; then
7438 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7439 $as_echo "$NMEDIT" >&6; }
7441 { $as_echo "$as_me:$LINENO: result: no" >&5
7442 $as_echo "no" >&6; }
7447 if test -z "$ac_cv_prog_NMEDIT"; then
7448 ac_ct_NMEDIT=$NMEDIT
7449 # Extract the first word of "nmedit", so it can be a program name with args.
7450 set dummy nmedit; ac_word=$2
7451 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7452 $as_echo_n "checking for $ac_word... " >&6; }
7453 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7454 $as_echo_n "(cached) " >&6
7456 if test -n "$ac_ct_NMEDIT"; then
7457 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463 test -z "$as_dir" && as_dir=.
7464 for ac_exec_ext in '' $ac_executable_extensions; do
7465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7466 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7467 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7476 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7477 if test -n "$ac_ct_NMEDIT"; then
7478 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7479 $as_echo "$ac_ct_NMEDIT" >&6; }
7481 { $as_echo "$as_me:$LINENO: result: no" >&5
7482 $as_echo "no" >&6; }
7485 if test "x$ac_ct_NMEDIT" = x; then
7488 case $cross_compiling:$ac_tool_warned in
7490 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7491 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7492 ac_tool_warned=yes ;;
7494 NMEDIT=$ac_ct_NMEDIT
7497 NMEDIT="$ac_cv_prog_NMEDIT"
7500 if test -n "$ac_tool_prefix"; then
7501 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7502 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7503 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7504 $as_echo_n "checking for $ac_word... " >&6; }
7505 if test "${ac_cv_prog_LIPO+set}" = set; then
7506 $as_echo_n "(cached) " >&6
7508 if test -n "$LIPO"; then
7509 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515 test -z "$as_dir" && as_dir=.
7516 for ac_exec_ext in '' $ac_executable_extensions; do
7517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7518 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7519 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7528 LIPO=$ac_cv_prog_LIPO
7529 if test -n "$LIPO"; then
7530 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
7531 $as_echo "$LIPO" >&6; }
7533 { $as_echo "$as_me:$LINENO: result: no" >&5
7534 $as_echo "no" >&6; }
7539 if test -z "$ac_cv_prog_LIPO"; then
7541 # Extract the first word of "lipo", so it can be a program name with args.
7542 set dummy lipo; ac_word=$2
7543 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7544 $as_echo_n "checking for $ac_word... " >&6; }
7545 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7546 $as_echo_n "(cached) " >&6
7548 if test -n "$ac_ct_LIPO"; then
7549 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7555 test -z "$as_dir" && as_dir=.
7556 for ac_exec_ext in '' $ac_executable_extensions; do
7557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7558 ac_cv_prog_ac_ct_LIPO="lipo"
7559 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7568 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7569 if test -n "$ac_ct_LIPO"; then
7570 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7571 $as_echo "$ac_ct_LIPO" >&6; }
7573 { $as_echo "$as_me:$LINENO: result: no" >&5
7574 $as_echo "no" >&6; }
7577 if test "x$ac_ct_LIPO" = x; then
7580 case $cross_compiling:$ac_tool_warned in
7582 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7583 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7584 ac_tool_warned=yes ;;
7589 LIPO="$ac_cv_prog_LIPO"
7592 if test -n "$ac_tool_prefix"; then
7593 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7594 set dummy ${ac_tool_prefix}otool; ac_word=$2
7595 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7596 $as_echo_n "checking for $ac_word... " >&6; }
7597 if test "${ac_cv_prog_OTOOL+set}" = set; then
7598 $as_echo_n "(cached) " >&6
7600 if test -n "$OTOOL"; then
7601 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7607 test -z "$as_dir" && as_dir=.
7608 for ac_exec_ext in '' $ac_executable_extensions; do
7609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7610 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7611 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7620 OTOOL=$ac_cv_prog_OTOOL
7621 if test -n "$OTOOL"; then
7622 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
7623 $as_echo "$OTOOL" >&6; }
7625 { $as_echo "$as_me:$LINENO: result: no" >&5
7626 $as_echo "no" >&6; }
7631 if test -z "$ac_cv_prog_OTOOL"; then
7633 # Extract the first word of "otool", so it can be a program name with args.
7634 set dummy otool; ac_word=$2
7635 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7636 $as_echo_n "checking for $ac_word... " >&6; }
7637 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7638 $as_echo_n "(cached) " >&6
7640 if test -n "$ac_ct_OTOOL"; then
7641 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647 test -z "$as_dir" && as_dir=.
7648 for ac_exec_ext in '' $ac_executable_extensions; do
7649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7650 ac_cv_prog_ac_ct_OTOOL="otool"
7651 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7660 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7661 if test -n "$ac_ct_OTOOL"; then
7662 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7663 $as_echo "$ac_ct_OTOOL" >&6; }
7665 { $as_echo "$as_me:$LINENO: result: no" >&5
7666 $as_echo "no" >&6; }
7669 if test "x$ac_ct_OTOOL" = x; then
7672 case $cross_compiling:$ac_tool_warned in
7674 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7675 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7676 ac_tool_warned=yes ;;
7681 OTOOL="$ac_cv_prog_OTOOL"
7684 if test -n "$ac_tool_prefix"; then
7685 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7686 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7687 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7688 $as_echo_n "checking for $ac_word... " >&6; }
7689 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7690 $as_echo_n "(cached) " >&6
7692 if test -n "$OTOOL64"; then
7693 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699 test -z "$as_dir" && as_dir=.
7700 for ac_exec_ext in '' $ac_executable_extensions; do
7701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7702 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7703 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7712 OTOOL64=$ac_cv_prog_OTOOL64
7713 if test -n "$OTOOL64"; then
7714 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
7715 $as_echo "$OTOOL64" >&6; }
7717 { $as_echo "$as_me:$LINENO: result: no" >&5
7718 $as_echo "no" >&6; }
7723 if test -z "$ac_cv_prog_OTOOL64"; then
7724 ac_ct_OTOOL64=$OTOOL64
7725 # Extract the first word of "otool64", so it can be a program name with args.
7726 set dummy otool64; ac_word=$2
7727 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7728 $as_echo_n "checking for $ac_word... " >&6; }
7729 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7730 $as_echo_n "(cached) " >&6
7732 if test -n "$ac_ct_OTOOL64"; then
7733 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7739 test -z "$as_dir" && as_dir=.
7740 for ac_exec_ext in '' $ac_executable_extensions; do
7741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7742 ac_cv_prog_ac_ct_OTOOL64="otool64"
7743 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7752 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7753 if test -n "$ac_ct_OTOOL64"; then
7754 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7755 $as_echo "$ac_ct_OTOOL64" >&6; }
7757 { $as_echo "$as_me:$LINENO: result: no" >&5
7758 $as_echo "no" >&6; }
7761 if test "x$ac_ct_OTOOL64" = x; then
7764 case $cross_compiling:$ac_tool_warned in
7766 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7767 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7768 ac_tool_warned=yes ;;
7770 OTOOL64=$ac_ct_OTOOL64
7773 OTOOL64="$ac_cv_prog_OTOOL64"
7802 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7803 $as_echo_n "checking for -single_module linker flag... " >&6; }
7804 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7805 $as_echo_n "(cached) " >&6
7807 lt_cv_apple_cc_single_mod=no
7808 if test -z "${LT_MULTI_MODULE}"; then
7809 # By default we will add the -single_module flag. You can override
7810 # by either setting the environment variable LT_MULTI_MODULE
7811 # non-empty at configure time, or by adding -multi_module to the
7813 rm -rf libconftest.dylib*
7814 echo "int foo(void){return 1;}" > conftest.c
7815 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7816 -dynamiclib -Wl,-single_module conftest.c" >&5
7817 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7818 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7820 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7821 lt_cv_apple_cc_single_mod=yes
7823 cat conftest.err >&5
7825 rm -rf libconftest.dylib*
7829 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7830 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7831 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7832 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7833 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7834 $as_echo_n "(cached) " >&6
7836 lt_cv_ld_exported_symbols_list=no
7837 save_LDFLAGS=$LDFLAGS
7838 echo "_main" > conftest.sym
7839 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7840 cat >conftest.$ac_ext <<_ACEOF
7843 cat confdefs.h >>conftest.$ac_ext
7844 cat >>conftest.$ac_ext <<_ACEOF
7845 /* end confdefs.h. */
7855 rm -f conftest.$ac_objext conftest$ac_exeext
7856 if { (ac_try="$ac_link"
7858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7859 *) ac_try_echo=$ac_try;;
7861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7862 $as_echo "$ac_try_echo") >&5
7863 (eval "$ac_link") 2>conftest.er1
7865 grep -v '^ *+' conftest.er1 >conftest.err
7867 cat conftest.err >&5
7868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869 (exit $ac_status); } && {
7870 test -z "$ac_c_werror_flag" ||
7871 test ! -s conftest.err
7872 } && test -s conftest$ac_exeext && {
7873 test "$cross_compiling" = yes ||
7874 $as_test_x conftest$ac_exeext
7876 lt_cv_ld_exported_symbols_list=yes
7878 $as_echo "$as_me: failed program was:" >&5
7879 sed 's/^/| /' conftest.$ac_ext >&5
7881 lt_cv_ld_exported_symbols_list=no
7884 rm -rf conftest.dSYM
7885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7886 conftest$ac_exeext conftest.$ac_ext
7887 LDFLAGS="$save_LDFLAGS"
7890 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7891 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7893 rhapsody* | darwin1.[012])
7894 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7896 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7897 darwin*) # darwin 5.x on
7898 # if running on 10.5 or later, the deployment target defaults
7899 # to the OS version, if on x86, and 10.4, the deployment
7900 # target defaults to 10.4. Don't you love it?
7901 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7902 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7903 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7905 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7907 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7911 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7912 _lt_dar_single_mod='$single_module'
7914 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7915 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7917 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7919 if test "$DSYMUTIL" != ":"; then
7920 _lt_dsymutil='~$DSYMUTIL $lib || :'
7928 ac_cpp='$CPP $CPPFLAGS'
7929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7932 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7933 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7934 # On Suns, sometimes $CPP names a directory.
7935 if test -n "$CPP" && test -d "$CPP"; then
7938 if test -z "$CPP"; then
7939 if test "${ac_cv_prog_CPP+set}" = set; then
7940 $as_echo_n "(cached) " >&6
7942 # Double quotes because CPP needs to be expanded
7943 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7946 for ac_c_preproc_warn_flag in '' yes
7948 # Use a header file that comes with gcc, so configuring glibc
7949 # with a fresh cross-compiler works.
7950 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7951 # <limits.h> exists even on freestanding compilers.
7952 # On the NeXT, cc -E runs the code through the compiler's parser,
7953 # not just through cpp. "Syntax error" is here to catch this case.
7954 cat >conftest.$ac_ext <<_ACEOF
7957 cat confdefs.h >>conftest.$ac_ext
7958 cat >>conftest.$ac_ext <<_ACEOF
7959 /* end confdefs.h. */
7961 # include <limits.h>
7963 # include <assert.h>
7967 if { (ac_try="$ac_cpp conftest.$ac_ext"
7969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7970 *) ac_try_echo=$ac_try;;
7972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7973 $as_echo "$ac_try_echo") >&5
7974 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7976 grep -v '^ *+' conftest.er1 >conftest.err
7978 cat conftest.err >&5
7979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); } >/dev/null && {
7981 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7982 test ! -s conftest.err
7986 $as_echo "$as_me: failed program was:" >&5
7987 sed 's/^/| /' conftest.$ac_ext >&5
7989 # Broken: fails on valid input.
7993 rm -f conftest.err conftest.$ac_ext
7995 # OK, works on sane cases. Now check whether nonexistent headers
7996 # can be detected and how.
7997 cat >conftest.$ac_ext <<_ACEOF
8000 cat confdefs.h >>conftest.$ac_ext
8001 cat >>conftest.$ac_ext <<_ACEOF
8002 /* end confdefs.h. */
8003 #include <ac_nonexistent.h>
8005 if { (ac_try="$ac_cpp conftest.$ac_ext"
8007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8008 *) ac_try_echo=$ac_try;;
8010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8011 $as_echo "$ac_try_echo") >&5
8012 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8014 grep -v '^ *+' conftest.er1 >conftest.err
8016 cat conftest.err >&5
8017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); } >/dev/null && {
8019 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8020 test ! -s conftest.err
8022 # Broken: success on invalid input.
8025 $as_echo "$as_me: failed program was:" >&5
8026 sed 's/^/| /' conftest.$ac_ext >&5
8028 # Passes both tests.
8033 rm -f conftest.err conftest.$ac_ext
8036 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8037 rm -f conftest.err conftest.$ac_ext
8038 if $ac_preproc_ok; then
8050 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
8051 $as_echo "$CPP" >&6; }
8053 for ac_c_preproc_warn_flag in '' yes
8055 # Use a header file that comes with gcc, so configuring glibc
8056 # with a fresh cross-compiler works.
8057 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8058 # <limits.h> exists even on freestanding compilers.
8059 # On the NeXT, cc -E runs the code through the compiler's parser,
8060 # not just through cpp. "Syntax error" is here to catch this case.
8061 cat >conftest.$ac_ext <<_ACEOF
8064 cat confdefs.h >>conftest.$ac_ext
8065 cat >>conftest.$ac_ext <<_ACEOF
8066 /* end confdefs.h. */
8068 # include <limits.h>
8070 # include <assert.h>
8074 if { (ac_try="$ac_cpp conftest.$ac_ext"
8076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8077 *) ac_try_echo=$ac_try;;
8079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8080 $as_echo "$ac_try_echo") >&5
8081 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8083 grep -v '^ *+' conftest.er1 >conftest.err
8085 cat conftest.err >&5
8086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); } >/dev/null && {
8088 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8089 test ! -s conftest.err
8093 $as_echo "$as_me: failed program was:" >&5
8094 sed 's/^/| /' conftest.$ac_ext >&5
8096 # Broken: fails on valid input.
8100 rm -f conftest.err conftest.$ac_ext
8102 # OK, works on sane cases. Now check whether nonexistent headers
8103 # can be detected and how.
8104 cat >conftest.$ac_ext <<_ACEOF
8107 cat confdefs.h >>conftest.$ac_ext
8108 cat >>conftest.$ac_ext <<_ACEOF
8109 /* end confdefs.h. */
8110 #include <ac_nonexistent.h>
8112 if { (ac_try="$ac_cpp conftest.$ac_ext"
8114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8115 *) ac_try_echo=$ac_try;;
8117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8118 $as_echo "$ac_try_echo") >&5
8119 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8121 grep -v '^ *+' conftest.er1 >conftest.err
8123 cat conftest.err >&5
8124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 (exit $ac_status); } >/dev/null && {
8126 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8127 test ! -s conftest.err
8129 # Broken: success on invalid input.
8132 $as_echo "$as_me: failed program was:" >&5
8133 sed 's/^/| /' conftest.$ac_ext >&5
8135 # Passes both tests.
8140 rm -f conftest.err conftest.$ac_ext
8143 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8144 rm -f conftest.err conftest.$ac_ext
8145 if $ac_preproc_ok; then
8148 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8149 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8150 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
8151 See \`config.log' for more details." >&5
8152 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
8153 See \`config.log' for more details." >&2;}
8154 { (exit 1); exit 1; }; }; }
8158 ac_cpp='$CPP $CPPFLAGS'
8159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8164 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8165 $as_echo_n "checking for ANSI C header files... " >&6; }
8166 if test "${ac_cv_header_stdc+set}" = set; then
8167 $as_echo_n "(cached) " >&6
8169 cat >conftest.$ac_ext <<_ACEOF
8172 cat confdefs.h >>conftest.$ac_ext
8173 cat >>conftest.$ac_ext <<_ACEOF
8174 /* end confdefs.h. */
8188 rm -f conftest.$ac_objext
8189 if { (ac_try="$ac_compile"
8191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8192 *) ac_try_echo=$ac_try;;
8194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8195 $as_echo "$ac_try_echo") >&5
8196 (eval "$ac_compile") 2>conftest.er1
8198 grep -v '^ *+' conftest.er1 >conftest.err
8200 cat conftest.err >&5
8201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); } && {
8203 test -z "$ac_c_werror_flag" ||
8204 test ! -s conftest.err
8205 } && test -s conftest.$ac_objext; then
8206 ac_cv_header_stdc=yes
8208 $as_echo "$as_me: failed program was:" >&5
8209 sed 's/^/| /' conftest.$ac_ext >&5
8211 ac_cv_header_stdc=no
8214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8216 if test $ac_cv_header_stdc = yes; then
8217 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8218 cat >conftest.$ac_ext <<_ACEOF
8221 cat confdefs.h >>conftest.$ac_ext
8222 cat >>conftest.$ac_ext <<_ACEOF
8223 /* end confdefs.h. */
8227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8228 $EGREP "memchr" >/dev/null 2>&1; then
8231 ac_cv_header_stdc=no
8237 if test $ac_cv_header_stdc = yes; then
8238 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8239 cat >conftest.$ac_ext <<_ACEOF
8242 cat confdefs.h >>conftest.$ac_ext
8243 cat >>conftest.$ac_ext <<_ACEOF
8244 /* end confdefs.h. */
8248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8249 $EGREP "free" >/dev/null 2>&1; then
8252 ac_cv_header_stdc=no
8258 if test $ac_cv_header_stdc = yes; then
8259 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8260 if test "$cross_compiling" = yes; then
8263 cat >conftest.$ac_ext <<_ACEOF
8266 cat confdefs.h >>conftest.$ac_ext
8267 cat >>conftest.$ac_ext <<_ACEOF
8268 /* end confdefs.h. */
8271 #if ((' ' & 0x0FF) == 0x020)
8272 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8273 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8275 # define ISLOWER(c) \
8276 (('a' <= (c) && (c) <= 'i') \
8277 || ('j' <= (c) && (c) <= 'r') \
8278 || ('s' <= (c) && (c) <= 'z'))
8279 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8282 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8287 for (i = 0; i < 256; i++)
8288 if (XOR (islower (i), ISLOWER (i))
8289 || toupper (i) != TOUPPER (i))
8294 rm -f conftest$ac_exeext
8295 if { (ac_try="$ac_link"
8297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8298 *) ac_try_echo=$ac_try;;
8300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8301 $as_echo "$ac_try_echo") >&5
8302 (eval "$ac_link") 2>&5
8304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8306 { (case "(($ac_try" in
8307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8308 *) ac_try_echo=$ac_try;;
8310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8311 $as_echo "$ac_try_echo") >&5
8312 (eval "$ac_try") 2>&5
8314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); }; }; then
8318 $as_echo "$as_me: program exited with status $ac_status" >&5
8319 $as_echo "$as_me: failed program was:" >&5
8320 sed 's/^/| /' conftest.$ac_ext >&5
8323 ac_cv_header_stdc=no
8325 rm -rf conftest.dSYM
8326 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8332 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8333 $as_echo "$ac_cv_header_stdc" >&6; }
8334 if test $ac_cv_header_stdc = yes; then
8336 cat >>confdefs.h <<\_ACEOF
8337 #define STDC_HEADERS 1
8342 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8352 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8353 inttypes.h stdint.h unistd.h
8355 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8356 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8357 $as_echo_n "checking for $ac_header... " >&6; }
8358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8359 $as_echo_n "(cached) " >&6
8361 cat >conftest.$ac_ext <<_ACEOF
8364 cat confdefs.h >>conftest.$ac_ext
8365 cat >>conftest.$ac_ext <<_ACEOF
8366 /* end confdefs.h. */
8367 $ac_includes_default
8369 #include <$ac_header>
8371 rm -f conftest.$ac_objext
8372 if { (ac_try="$ac_compile"
8374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8375 *) ac_try_echo=$ac_try;;
8377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8378 $as_echo "$ac_try_echo") >&5
8379 (eval "$ac_compile") 2>conftest.er1
8381 grep -v '^ *+' conftest.er1 >conftest.err
8383 cat conftest.err >&5
8384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); } && {
8386 test -z "$ac_c_werror_flag" ||
8387 test ! -s conftest.err
8388 } && test -s conftest.$ac_objext; then
8389 eval "$as_ac_Header=yes"
8391 $as_echo "$as_me: failed program was:" >&5
8392 sed 's/^/| /' conftest.$ac_ext >&5
8394 eval "$as_ac_Header=no"
8397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8399 ac_res=`eval 'as_val=${'$as_ac_Header'}
8400 $as_echo "$as_val"'`
8401 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8402 $as_echo "$ac_res" >&6; }
8403 as_val=`eval 'as_val=${'$as_ac_Header'}
8404 $as_echo "$as_val"'`
8405 if test "x$as_val" = x""yes; then
8406 cat >>confdefs.h <<_ACEOF
8407 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8416 for ac_header in dlfcn.h
8418 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8419 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8420 $as_echo_n "checking for $ac_header... " >&6; }
8421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8422 $as_echo_n "(cached) " >&6
8424 cat >conftest.$ac_ext <<_ACEOF
8427 cat confdefs.h >>conftest.$ac_ext
8428 cat >>conftest.$ac_ext <<_ACEOF
8429 /* end confdefs.h. */
8430 $ac_includes_default
8432 #include <$ac_header>
8434 rm -f conftest.$ac_objext
8435 if { (ac_try="$ac_compile"
8437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8438 *) ac_try_echo=$ac_try;;
8440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8441 $as_echo "$ac_try_echo") >&5
8442 (eval "$ac_compile") 2>conftest.er1
8444 grep -v '^ *+' conftest.er1 >conftest.err
8446 cat conftest.err >&5
8447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); } && {
8449 test -z "$ac_c_werror_flag" ||
8450 test ! -s conftest.err
8451 } && test -s conftest.$ac_objext; then
8452 eval "$as_ac_Header=yes"
8454 $as_echo "$as_me: failed program was:" >&5
8455 sed 's/^/| /' conftest.$ac_ext >&5
8457 eval "$as_ac_Header=no"
8460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8462 ac_res=`eval 'as_val=${'$as_ac_Header'}
8463 $as_echo "$as_val"'`
8464 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8465 $as_echo "$ac_res" >&6; }
8466 as_val=`eval 'as_val=${'$as_ac_Header'}
8467 $as_echo "$as_val"'`
8468 if test "x$as_val" = x""yes; then
8469 cat >>confdefs.h <<_ACEOF
8470 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8487 # Check whether --enable-shared was given.
8488 if test "${enable_shared+set}" = set; then
8489 enableval=$enable_shared; p=${PACKAGE-default}
8491 yes) enable_shared=yes ;;
8492 no) enable_shared=no ;;
8495 # Look at the argument we got. We use all the common list separators.
8496 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8497 for pkg in $enableval; do
8499 if test "X$pkg" = "X$p"; then
8518 # Check whether --enable-static was given.
8519 if test "${enable_static+set}" = set; then
8520 enableval=$enable_static; p=${PACKAGE-default}
8522 yes) enable_static=yes ;;
8523 no) enable_static=no ;;
8526 # Look at the argument we got. We use all the common list separators.
8527 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8528 for pkg in $enableval; do
8530 if test "X$pkg" = "X$p"; then
8550 # Check whether --with-pic was given.
8551 if test "${with_pic+set}" = set; then
8552 withval=$with_pic; pic_mode="$withval"
8558 test -z "$pic_mode" && pic_mode=default
8566 # Check whether --enable-fast-install was given.
8567 if test "${enable_fast_install+set}" = set; then
8568 enableval=$enable_fast_install; p=${PACKAGE-default}
8570 yes) enable_fast_install=yes ;;
8571 no) enable_fast_install=no ;;
8573 enable_fast_install=no
8574 # Look at the argument we got. We use all the common list separators.
8575 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8576 for pkg in $enableval; do
8578 if test "X$pkg" = "X$p"; then
8579 enable_fast_install=yes
8586 enable_fast_install=yes
8599 # This can be used to rebuild libtool when needed
8600 LIBTOOL_DEPS="$ltmain"
8602 # Always use our own libtool.
8603 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8629 test -z "$LN_S" && LN_S="ln -s"
8644 if test -n "${ZSH_VERSION+set}" ; then
8645 setopt NO_GLOB_SUBST
8648 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
8649 $as_echo_n "checking for objdir... " >&6; }
8650 if test "${lt_cv_objdir+set}" = set; then
8651 $as_echo_n "(cached) " >&6
8653 rm -f .libs 2>/dev/null
8654 mkdir .libs 2>/dev/null
8655 if test -d .libs; then
8658 # MS-DOS does not allow filenames that begin with a dot.
8661 rmdir .libs 2>/dev/null
8663 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8664 $as_echo "$lt_cv_objdir" >&6; }
8665 objdir=$lt_cv_objdir
8671 cat >>confdefs.h <<_ACEOF
8672 #define LT_OBJDIR "$lt_cv_objdir/"
8693 # AIX sometimes has problems with the GCC collect2 program. For some
8694 # reason, if we set the COLLECT_NAMES environment variable, the problems
8695 # vanish in a puff of smoke.
8696 if test "X${COLLECT_NAMES+set}" != Xset; then
8698 export COLLECT_NAMES
8703 # Sed substitution that helps us do robust quoting. It backslashifies
8704 # metacharacters that are still active within double-quoted strings.
8705 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8707 # Same as above, but do not quote variable references.
8708 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8710 # Sed substitution to delay expansion of an escaped shell variable in a
8711 # double_quote_subst'ed string.
8712 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8714 # Sed substitution to delay expansion of an escaped single quote.
8715 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8717 # Sed substitution to avoid accidental globbing in evaled expressions
8718 no_glob_subst='s/\*/\\\*/g'
8722 can_build_shared=yes
8724 # All known linkers require a `.a' archive for static linking (except MSVC,
8725 # which needs '.lib').
8728 with_gnu_ld="$lt_cv_prog_gnu_ld"
8731 old_CFLAGS="$CFLAGS"
8733 # Set sane defaults for various variables
8734 test -z "$CC" && CC=cc
8735 test -z "$LTCC" && LTCC=$CC
8736 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8737 test -z "$LD" && LD=ld
8738 test -z "$ac_objext" && ac_objext=o
8740 for cc_temp in $compiler""; do
8742 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8743 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8748 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8751 # Only perform the check for file, if the check method requires it
8752 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8753 case $deplibs_check_method in
8755 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8756 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8757 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8758 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8759 $as_echo_n "(cached) " >&6
8763 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8766 lt_save_MAGIC_CMD="$MAGIC_CMD"
8767 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8768 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8769 for ac_dir in $ac_dummy; do
8771 test -z "$ac_dir" && ac_dir=.
8772 if test -f $ac_dir/${ac_tool_prefix}file; then
8773 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8774 if test -n "$file_magic_test_file"; then
8775 case $deplibs_check_method in
8777 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8778 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8779 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8780 $EGREP "$file_magic_regex" > /dev/null; then
8785 *** Warning: the command libtool uses to detect shared libraries,
8786 *** $file_magic_cmd, produces output that libtool cannot recognize.
8787 *** The result is that libtool may fail to recognize shared libraries
8788 *** as such. This will affect the creation of libtool libraries that
8789 *** depend on shared libraries, but programs linked with such libtool
8790 *** libraries will work regardless of this problem. Nevertheless, you
8791 *** may want to report the problem to your system manager and/or to
8792 *** bug-libtool@gnu.org
8802 MAGIC_CMD="$lt_save_MAGIC_CMD"
8807 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8808 if test -n "$MAGIC_CMD"; then
8809 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8810 $as_echo "$MAGIC_CMD" >&6; }
8812 { $as_echo "$as_me:$LINENO: result: no" >&5
8813 $as_echo "no" >&6; }
8820 if test -z "$lt_cv_path_MAGIC_CMD"; then
8821 if test -n "$ac_tool_prefix"; then
8822 { $as_echo "$as_me:$LINENO: checking for file" >&5
8823 $as_echo_n "checking for file... " >&6; }
8824 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8825 $as_echo_n "(cached) " >&6
8829 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8832 lt_save_MAGIC_CMD="$MAGIC_CMD"
8833 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8834 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8835 for ac_dir in $ac_dummy; do
8837 test -z "$ac_dir" && ac_dir=.
8838 if test -f $ac_dir/file; then
8839 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8840 if test -n "$file_magic_test_file"; then
8841 case $deplibs_check_method in
8843 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8844 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8845 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8846 $EGREP "$file_magic_regex" > /dev/null; then
8851 *** Warning: the command libtool uses to detect shared libraries,
8852 *** $file_magic_cmd, produces output that libtool cannot recognize.
8853 *** The result is that libtool may fail to recognize shared libraries
8854 *** as such. This will affect the creation of libtool libraries that
8855 *** depend on shared libraries, but programs linked with such libtool
8856 *** libraries will work regardless of this problem. Nevertheless, you
8857 *** may want to report the problem to your system manager and/or to
8858 *** bug-libtool@gnu.org
8868 MAGIC_CMD="$lt_save_MAGIC_CMD"
8873 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8874 if test -n "$MAGIC_CMD"; then
8875 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8876 $as_echo "$MAGIC_CMD" >&6; }
8878 { $as_echo "$as_me:$LINENO: result: no" >&5
8879 $as_echo "no" >&6; }
8892 # Use C for the default configuration in the libtool script
8896 ac_cpp='$CPP $CPPFLAGS'
8897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8902 # Source file extension for C test sources.
8905 # Object file extension for compiled C test sources.
8909 # Code to be used in simple compile tests
8910 lt_simple_compile_test_code="int some_variable = 0;"
8912 # Code to be used in simple link tests
8913 lt_simple_link_test_code='int main(){return(0);}'
8921 # If no C compiler was specified, use CC.
8924 # If no C compiler flags were specified, use CFLAGS.
8925 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8927 # Allow CC to be a program name with arguments.
8930 # Save the default compiler, since it gets overwritten when the other
8931 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8932 compiler_DEFAULT=$CC
8934 # save warnings/boilerplate of simple test code
8935 ac_outfile=conftest.$ac_objext
8936 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8937 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8938 _lt_compiler_boilerplate=`cat conftest.err`
8941 ac_outfile=conftest.$ac_objext
8942 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8943 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8944 _lt_linker_boilerplate=`cat conftest.err`
8949 ## There is no encapsulation within the following macros, do not change
8950 ## the running order or otherwise move them around unless you know exactly
8951 ## what you are doing...
8952 if test -n "$compiler"; then
8954 lt_prog_compiler_no_builtin_flag=
8956 if test "$GCC" = yes; then
8957 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8959 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8960 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8961 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8962 $as_echo_n "(cached) " >&6
8964 lt_cv_prog_compiler_rtti_exceptions=no
8965 ac_outfile=conftest.$ac_objext
8966 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8967 lt_compiler_flag="-fno-rtti -fno-exceptions"
8968 # Insert the option either (1) after the last *FLAGS variable, or
8969 # (2) before a word containing "conftest.", or (3) at the end.
8970 # Note that $ac_compile itself does not contain backslashes and begins
8971 # with a dollar sign (not a hyphen), so the echo should work correctly.
8972 # The option is referenced via a variable to avoid confusing sed.
8973 lt_compile=`echo "$ac_compile" | $SED \
8974 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8975 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8976 -e 's:$: $lt_compiler_flag:'`
8977 (eval echo "\"\$as_me:8977: $lt_compile\"" >&5)
8978 (eval "$lt_compile" 2>conftest.err)
8980 cat conftest.err >&5
8981 echo "$as_me:8981: \$? = $ac_status" >&5
8982 if (exit $ac_status) && test -s "$ac_outfile"; then
8983 # The compiler can only warn and ignore the option if not recognized
8984 # So say no if there are warnings other than the usual output.
8985 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8986 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8987 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8988 lt_cv_prog_compiler_rtti_exceptions=yes
8994 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8995 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8997 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8998 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9010 lt_prog_compiler_wl=
9011 lt_prog_compiler_pic=
9012 lt_prog_compiler_static=
9014 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9015 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9017 if test "$GCC" = yes; then
9018 lt_prog_compiler_wl='-Wl,'
9019 lt_prog_compiler_static='-static'
9023 # All AIX code is PIC.
9024 if test "$host_cpu" = ia64; then
9025 # AIX 5 now supports IA64 processor
9026 lt_prog_compiler_static='-Bstatic'
9033 # see comment about AmigaOS4 .so support
9034 lt_prog_compiler_pic='-fPIC'
9037 # FIXME: we need at least 68020 code to build shared libraries, but
9038 # adding the `-m68020' flag to GCC prevents building anything better,
9040 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9045 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9046 # PIC is the default for these OSes.
9049 mingw* | cygwin* | pw32* | os2* | cegcc*)
9050 # This hack is so that the source file can tell whether it is being
9051 # built for inclusion in a dll (and should export symbols for example).
9052 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9053 # (--disable-auto-import) libraries
9054 lt_prog_compiler_pic='-DDLL_EXPORT'
9057 darwin* | rhapsody*)
9058 # PIC is the default on this platform
9059 # Common symbols not allowed in MH_DYLIB files
9060 lt_prog_compiler_pic='-fno-common'
9064 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9065 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9066 # sets the default TLS model and affects inlining.
9072 lt_prog_compiler_pic='-fPIC'
9078 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9079 # Instead, we relocate shared libraries at runtime.
9083 # Just because we use GCC doesn't mean we suddenly get shared libraries
9084 # on systems that don't support them.
9085 lt_prog_compiler_can_build_shared=no
9090 # QNX uses GNU C++, but need to define -shared option too, otherwise
9092 lt_prog_compiler_pic='-fPIC -shared'
9096 if test -d /usr/nec; then
9097 lt_prog_compiler_pic=-Kconform_pic
9102 lt_prog_compiler_pic='-fPIC'
9106 # PORTME Check for flag to pass linker flags through the system compiler.
9109 lt_prog_compiler_wl='-Wl,'
9110 if test "$host_cpu" = ia64; then
9111 # AIX 5 now supports IA64 processor
9112 lt_prog_compiler_static='-Bstatic'
9114 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9118 mingw* | cygwin* | pw32* | os2* | cegcc*)
9119 # This hack is so that the source file can tell whether it is being
9120 # built for inclusion in a dll (and should export symbols for example).
9121 lt_prog_compiler_pic='-DDLL_EXPORT'
9124 hpux9* | hpux10* | hpux11*)
9125 lt_prog_compiler_wl='-Wl,'
9126 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9133 lt_prog_compiler_pic='+Z'
9136 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9137 lt_prog_compiler_static='${wl}-a ${wl}archive'
9140 irix5* | irix6* | nonstopux*)
9141 lt_prog_compiler_wl='-Wl,'
9142 # PIC (with -KPIC) is the default.
9143 lt_prog_compiler_static='-non_shared'
9146 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9147 case $cc_basename in
9148 # old Intel for x86_64 which still supported -KPIC.
9150 lt_prog_compiler_wl='-Wl,'
9151 lt_prog_compiler_pic='-KPIC'
9152 lt_prog_compiler_static='-static'
9154 # icc used to be incompatible with GCC.
9155 # ICC 10 doesn't accept -KPIC any more.
9157 lt_prog_compiler_wl='-Wl,'
9158 lt_prog_compiler_pic='-fPIC'
9159 lt_prog_compiler_static='-static'
9161 # Lahey Fortran 8.1.
9163 lt_prog_compiler_wl='-Wl,'
9164 lt_prog_compiler_pic='--shared'
9165 lt_prog_compiler_static='--static'
9167 pgcc* | pgf77* | pgf90* | pgf95*)
9168 # Portland Group compilers (*not* the Pentium gcc compiler,
9169 # which looks to be a dead project)
9170 lt_prog_compiler_wl='-Wl,'
9171 lt_prog_compiler_pic='-fpic'
9172 lt_prog_compiler_static='-Bstatic'
9175 lt_prog_compiler_wl='-Wl,'
9176 # All Alpha code is PIC.
9177 lt_prog_compiler_static='-non_shared'
9180 # IBM XL C 8.0/Fortran 10.1 on PPC
9181 lt_prog_compiler_wl='-Wl,'
9182 lt_prog_compiler_pic='-qpic'
9183 lt_prog_compiler_static='-qstaticlink'
9186 case `$CC -V 2>&1 | sed 5q` in
9189 lt_prog_compiler_pic='-KPIC'
9190 lt_prog_compiler_static='-Bstatic'
9191 lt_prog_compiler_wl='-Wl,'
9194 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9195 lt_prog_compiler_pic='-KPIC'
9196 lt_prog_compiler_static='-Bstatic'
9197 lt_prog_compiler_wl=''
9205 lt_prog_compiler_pic='-KPIC'
9206 lt_prog_compiler_static='-Bstatic'
9210 # QNX uses GNU C++, but need to define -shared option too, otherwise
9212 lt_prog_compiler_pic='-fPIC -shared'
9215 osf3* | osf4* | osf5*)
9216 lt_prog_compiler_wl='-Wl,'
9217 # All OSF/1 code is PIC.
9218 lt_prog_compiler_static='-non_shared'
9222 lt_prog_compiler_static='-non_shared'
9226 lt_prog_compiler_pic='-KPIC'
9227 lt_prog_compiler_static='-Bstatic'
9228 case $cc_basename in
9230 lt_prog_compiler_wl='-Qoption ld ';;
9232 lt_prog_compiler_wl='-Wl,';;
9237 lt_prog_compiler_wl='-Qoption ld '
9238 lt_prog_compiler_pic='-PIC'
9239 lt_prog_compiler_static='-Bstatic'
9242 sysv4 | sysv4.2uw2* | sysv4.3*)
9243 lt_prog_compiler_wl='-Wl,'
9244 lt_prog_compiler_pic='-KPIC'
9245 lt_prog_compiler_static='-Bstatic'
9249 if test -d /usr/nec ;then
9250 lt_prog_compiler_pic='-Kconform_pic'
9251 lt_prog_compiler_static='-Bstatic'
9255 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9256 lt_prog_compiler_wl='-Wl,'
9257 lt_prog_compiler_pic='-KPIC'
9258 lt_prog_compiler_static='-Bstatic'
9262 lt_prog_compiler_wl='-Wl,'
9263 lt_prog_compiler_can_build_shared=no
9267 lt_prog_compiler_pic='-pic'
9268 lt_prog_compiler_static='-Bstatic'
9272 lt_prog_compiler_can_build_shared=no
9278 # For platforms which do not support PIC, -DPIC is meaningless:
9280 lt_prog_compiler_pic=
9283 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9286 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9287 $as_echo "$lt_prog_compiler_pic" >&6; }
9295 # Check to make sure the PIC flag actually works.
9297 if test -n "$lt_prog_compiler_pic"; then
9298 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9299 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9300 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9301 $as_echo_n "(cached) " >&6
9303 lt_cv_prog_compiler_pic_works=no
9304 ac_outfile=conftest.$ac_objext
9305 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9306 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9307 # Insert the option either (1) after the last *FLAGS variable, or
9308 # (2) before a word containing "conftest.", or (3) at the end.
9309 # Note that $ac_compile itself does not contain backslashes and begins
9310 # with a dollar sign (not a hyphen), so the echo should work correctly.
9311 # The option is referenced via a variable to avoid confusing sed.
9312 lt_compile=`echo "$ac_compile" | $SED \
9313 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9314 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9315 -e 's:$: $lt_compiler_flag:'`
9316 (eval echo "\"\$as_me:9316: $lt_compile\"" >&5)
9317 (eval "$lt_compile" 2>conftest.err)
9319 cat conftest.err >&5
9320 echo "$as_me:9320: \$? = $ac_status" >&5
9321 if (exit $ac_status) && test -s "$ac_outfile"; then
9322 # The compiler can only warn and ignore the option if not recognized
9323 # So say no if there are warnings other than the usual output.
9324 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9325 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9326 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9327 lt_cv_prog_compiler_pic_works=yes
9333 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9334 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9336 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9337 case $lt_prog_compiler_pic in
9339 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9342 lt_prog_compiler_pic=
9343 lt_prog_compiler_can_build_shared=no
9354 # Check to make sure the static flag actually works.
9356 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9357 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9358 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9359 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9360 $as_echo_n "(cached) " >&6
9362 lt_cv_prog_compiler_static_works=no
9363 save_LDFLAGS="$LDFLAGS"
9364 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9365 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9366 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9367 # The linker can only warn and ignore the option if not recognized
9368 # So say no if there are warnings
9369 if test -s conftest.err; then
9370 # Append any errors to the config.log.
9371 cat conftest.err 1>&5
9372 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9373 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9374 if diff conftest.exp conftest.er2 >/dev/null; then
9375 lt_cv_prog_compiler_static_works=yes
9378 lt_cv_prog_compiler_static_works=yes
9382 LDFLAGS="$save_LDFLAGS"
9385 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9386 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9388 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9391 lt_prog_compiler_static=
9400 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9401 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9402 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9403 $as_echo_n "(cached) " >&6
9405 lt_cv_prog_compiler_c_o=no
9406 $RM -r conftest 2>/dev/null
9410 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9412 lt_compiler_flag="-o out/conftest2.$ac_objext"
9413 # Insert the option either (1) after the last *FLAGS variable, or
9414 # (2) before a word containing "conftest.", or (3) at the end.
9415 # Note that $ac_compile itself does not contain backslashes and begins
9416 # with a dollar sign (not a hyphen), so the echo should work correctly.
9417 lt_compile=`echo "$ac_compile" | $SED \
9418 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9419 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9420 -e 's:$: $lt_compiler_flag:'`
9421 (eval echo "\"\$as_me:9421: $lt_compile\"" >&5)
9422 (eval "$lt_compile" 2>out/conftest.err)
9424 cat out/conftest.err >&5
9425 echo "$as_me:9425: \$? = $ac_status" >&5
9426 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9428 # The compiler can only warn and ignore the option if not recognized
9429 # So say no if there are warnings
9430 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9431 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9432 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9433 lt_cv_prog_compiler_c_o=yes
9438 # SGI C++ compiler will create directory out/ii_files/ for
9439 # template instantiation
9440 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9441 $RM out/* && rmdir out
9447 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9448 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9455 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9456 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9457 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9458 $as_echo_n "(cached) " >&6
9460 lt_cv_prog_compiler_c_o=no
9461 $RM -r conftest 2>/dev/null
9465 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9467 lt_compiler_flag="-o out/conftest2.$ac_objext"
9468 # Insert the option either (1) after the last *FLAGS variable, or
9469 # (2) before a word containing "conftest.", or (3) at the end.
9470 # Note that $ac_compile itself does not contain backslashes and begins
9471 # with a dollar sign (not a hyphen), so the echo should work correctly.
9472 lt_compile=`echo "$ac_compile" | $SED \
9473 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9474 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9475 -e 's:$: $lt_compiler_flag:'`
9476 (eval echo "\"\$as_me:9476: $lt_compile\"" >&5)
9477 (eval "$lt_compile" 2>out/conftest.err)
9479 cat out/conftest.err >&5
9480 echo "$as_me:9480: \$? = $ac_status" >&5
9481 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9483 # The compiler can only warn and ignore the option if not recognized
9484 # So say no if there are warnings
9485 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9486 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9487 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9488 lt_cv_prog_compiler_c_o=yes
9493 # SGI C++ compiler will create directory out/ii_files/ for
9494 # template instantiation
9495 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9496 $RM out/* && rmdir out
9502 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9503 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9508 hard_links="nottested"
9509 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9510 # do not overwrite the value of need_locks provided by the user
9511 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9512 $as_echo_n "checking if we can lock with hard links... " >&6; }
9515 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9517 ln conftest.a conftest.b 2>&5 || hard_links=no
9518 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9519 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
9520 $as_echo "$hard_links" >&6; }
9521 if test "$hard_links" = no; then
9522 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9523 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9535 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9536 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9539 allow_undefined_flag=
9540 always_export_symbols=no
9542 archive_expsym_cmds=
9543 compiler_needs_object=no
9544 enable_shared_with_static_runtimes=no
9545 export_dynamic_flag_spec=
9546 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9547 hardcode_automatic=no
9549 hardcode_direct_absolute=no
9550 hardcode_libdir_flag_spec=
9551 hardcode_libdir_flag_spec_ld=
9552 hardcode_libdir_separator=
9554 hardcode_shlibpath_var=unsupported
9556 link_all_deplibs=unknown
9559 old_archive_from_new_cmds=
9560 old_archive_from_expsyms_cmds=
9561 thread_safe_flag_spec=
9562 whole_archive_flag_spec=
9563 # include_expsyms should be a list of space-separated symbols to be *always*
9564 # included in the symbol list
9566 # exclude_expsyms can be an extended regexp of symbols to exclude
9567 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9568 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9569 # as well as any symbol that contains `d'.
9570 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9571 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9572 # platforms (ab)use it in PIC code, but their linkers get confused if
9573 # the symbol is explicitly referenced. Since portable code cannot
9574 # rely on this symbol name, it's probably fine to never include it in
9575 # preloaded symbol tables.
9576 # Exclude shared library initialization/finalization symbols.
9577 extract_expsyms_cmds=
9580 cygwin* | mingw* | pw32* | cegcc*)
9581 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9582 # When not using gcc, we currently assume that we are using
9583 # Microsoft Visual C++.
9584 if test "$GCC" != yes; then
9589 # we just hope/assume this is gcc and not c89 (= MSVC++)
9598 if test "$with_gnu_ld" = yes; then
9599 # If archive_cmds runs LD, not CC, wlarc should be empty
9602 # Set some defaults for GNU ld with shared library support. These
9603 # are reset later if shared libraries are not supported. Putting them
9604 # here allows them to be overridden if necessary.
9605 runpath_var=LD_RUN_PATH
9606 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9607 export_dynamic_flag_spec='${wl}--export-dynamic'
9608 # ancient GNU ld didn't support --whole-archive et. al.
9609 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9610 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9612 whole_archive_flag_spec=
9614 supports_anon_versioning=no
9615 case `$LD -v 2>&1` in
9616 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9617 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9618 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9619 *\ 2.11.*) ;; # other 2.11 versions
9620 *) supports_anon_versioning=yes ;;
9623 # See if GNU ld supports shared libraries.
9626 # On AIX/PPC, the GNU linker is very broken
9627 if test "$host_cpu" != ia64; then
9631 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9632 *** to be unable to reliably create shared libraries on AIX.
9633 *** Therefore, libtool is disabling shared libraries support. If you
9634 *** really care for shared libraries, you may want to modify your PATH
9635 *** so that a non-GNU linker is found, and then restart.
9644 # see comment about AmigaOS4 .so support
9645 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9646 archive_expsym_cmds=''
9649 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)'
9650 hardcode_libdir_flag_spec='-L$libdir'
9651 hardcode_minus_L=yes
9657 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9658 allow_undefined_flag=unsupported
9659 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9660 # support --undefined. This deserves some investigation. FIXME
9661 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9667 cygwin* | mingw* | pw32* | cegcc*)
9668 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9669 # as there is no search path for DLLs.
9670 hardcode_libdir_flag_spec='-L$libdir'
9671 allow_undefined_flag=unsupported
9672 always_export_symbols=no
9673 enable_shared_with_static_runtimes=yes
9674 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9676 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9677 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9678 # If the export-symbols file already is a .def file (1st line
9679 # is EXPORTS), use it as is; otherwise, prepend...
9680 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9681 cp $export_symbols $output_objdir/$soname.def;
9683 echo EXPORTS > $output_objdir/$soname.def;
9684 cat $export_symbols >> $output_objdir/$soname.def;
9686 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9694 hardcode_shlibpath_var=no
9695 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9696 export_dynamic_flag_spec='${wl}-E'
9697 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9698 # Instead, shared libraries are loaded at an image base (0x10000000 by
9699 # default) and relocated if they conflict, which is a slow very memory
9700 # consuming and fragmenting process. To avoid this, we pick a random,
9701 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9702 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9703 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9704 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'
9707 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9709 if test "$host_os" = linux-dietlibc; then
9710 case $cc_basename in
9711 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9714 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9715 && test "$tmp_diet" = no
9718 tmp_sharedflag='-shared'
9719 case $cc_basename,$host_cpu in
9720 pgcc*) # Portland Group C compiler
9721 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'
9722 tmp_addflag=' $pic_flag'
9724 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9725 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'
9726 tmp_addflag=' $pic_flag -Mnomain' ;;
9727 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9728 tmp_addflag=' -i_dynamic' ;;
9729 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9730 tmp_addflag=' -i_dynamic -nofor_main' ;;
9731 ifc* | ifort*) # Intel Fortran compiler
9732 tmp_addflag=' -nofor_main' ;;
9733 lf95*) # Lahey Fortran 8.1
9734 whole_archive_flag_spec=
9735 tmp_sharedflag='--shared' ;;
9736 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9737 tmp_sharedflag='-qmkshrobj'
9740 case `$CC -V 2>&1 | sed 5q` in
9741 *Sun\ C*) # Sun C 5.9
9742 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'
9743 compiler_needs_object=yes
9744 tmp_sharedflag='-G' ;;
9745 *Sun\ F*) # Sun Fortran 8.3
9746 tmp_sharedflag='-G' ;;
9748 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9750 if test "x$supports_anon_versioning" = xyes; then
9751 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9752 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9753 echo "local: *; };" >> $output_objdir/$libname.ver~
9754 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9757 case $cc_basename in
9759 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9760 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9761 hardcode_libdir_flag_spec=
9762 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9763 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9764 if test "x$supports_anon_versioning" = xyes; then
9765 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9766 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9767 echo "local: *; };" >> $output_objdir/$libname.ver~
9768 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9778 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9779 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9782 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9783 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9788 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9792 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9793 *** create shared libraries on Solaris systems. Therefore, libtool
9794 *** is disabling shared libraries support. We urge you to upgrade GNU
9795 *** binutils to release 2.9.1 or newer. Another option is to modify
9796 *** your PATH or compiler configuration so that the native linker is
9797 *** used, and then restart.
9800 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9801 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9802 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9808 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9809 case `$LD -v 2>&1` in
9810 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9814 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9815 *** reliably create shared libraries on SCO systems. Therefore, libtool
9816 *** is disabling shared libraries support. We urge you to upgrade GNU
9817 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9818 *** your PATH or compiler configuration so that the native linker is
9819 *** used, and then restart.
9824 # For security reasons, it is highly recommended that you always
9825 # use absolute paths for naming shared libraries, and exclude the
9826 # DT_RUNPATH tag from executables and libraries. But doing so
9827 # requires that you compile everything twice, which is a pain.
9828 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9829 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9830 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9831 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9840 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9843 hardcode_shlibpath_var=no
9847 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9848 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9849 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9856 if test "$ld_shlibs" = no; then
9858 hardcode_libdir_flag_spec=
9859 export_dynamic_flag_spec=
9860 whole_archive_flag_spec=
9863 # PORTME fill in a description of your system's linker (not GNU ld)
9866 allow_undefined_flag=unsupported
9867 always_export_symbols=yes
9868 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'
9869 # Note: this linker hardcodes the directories in LIBPATH if there
9870 # are no directories specified by -L.
9871 hardcode_minus_L=yes
9872 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9873 # Neither direct hardcoding nor static linking is supported with a
9875 hardcode_direct=unsupported
9880 if test "$host_cpu" = ia64; then
9881 # On IA64, the linker does run time linking by default, so we don't
9882 # have to do anything special.
9883 aix_use_runtimelinking=no
9884 exp_sym_flag='-Bexport'
9887 # If we're using GNU nm, then we don't want the "-C" option.
9888 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9889 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9890 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'
9892 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'
9894 aix_use_runtimelinking=no
9896 # Test if we are trying to use run time linking or normal
9897 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9898 # need to do runtime linking.
9899 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9900 for ld_flag in $LDFLAGS; do
9901 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9902 aix_use_runtimelinking=yes
9909 exp_sym_flag='-bexport'
9910 no_entry_flag='-bnoentry'
9913 # When large executables or shared objects are built, AIX ld can
9914 # have problems creating the table of contents. If linking a library
9915 # or program results in "error TOC overflow" add -mminimal-toc to
9916 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9917 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9921 hardcode_direct_absolute=yes
9922 hardcode_libdir_separator=':'
9923 link_all_deplibs=yes
9924 file_list_spec='${wl}-f,'
9926 if test "$GCC" = yes; then
9927 case $host_os in aix4.[012]|aix4.[012].*)
9928 # We only want to do this on AIX 4.2 and lower, the check
9929 # below for broken collect2 doesn't work under 4.3+
9930 collect2name=`${CC} -print-prog-name=collect2`
9931 if test -f "$collect2name" &&
9932 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9934 # We have reworked collect2
9937 # We have old collect2
9938 hardcode_direct=unsupported
9939 # It fails to find uninstalled libraries when the uninstalled
9940 # path is not listed in the libpath. Setting hardcode_minus_L
9941 # to unsupported forces relinking
9942 hardcode_minus_L=yes
9943 hardcode_libdir_flag_spec='-L$libdir'
9944 hardcode_libdir_separator=
9948 shared_flag='-shared'
9949 if test "$aix_use_runtimelinking" = yes; then
9950 shared_flag="$shared_flag "'${wl}-G'
9954 if test "$host_cpu" = ia64; then
9955 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9956 # chokes on -Wl,-G. The following line is correct:
9959 if test "$aix_use_runtimelinking" = yes; then
9960 shared_flag='${wl}-G'
9962 shared_flag='${wl}-bM:SRE'
9967 export_dynamic_flag_spec='${wl}-bexpall'
9968 # It seems that -bexpall does not export symbols beginning with
9969 # underscore (_), so it is better to generate a list of symbols to export.
9970 always_export_symbols=yes
9971 if test "$aix_use_runtimelinking" = yes; then
9972 # Warning - without using the other runtime loading flags (-brtl),
9973 # -berok will link without error, but may produce a broken library.
9974 allow_undefined_flag='-berok'
9975 # Determine the default libpath from the value encoded in an
9977 cat >conftest.$ac_ext <<_ACEOF
9980 cat confdefs.h >>conftest.$ac_ext
9981 cat >>conftest.$ac_ext <<_ACEOF
9982 /* end confdefs.h. */
9992 rm -f conftest.$ac_objext conftest$ac_exeext
9993 if { (ac_try="$ac_link"
9995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9996 *) ac_try_echo=$ac_try;;
9998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9999 $as_echo "$ac_try_echo") >&5
10000 (eval "$ac_link") 2>conftest.er1
10002 grep -v '^ *+' conftest.er1 >conftest.err
10004 cat conftest.err >&5
10005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); } && {
10007 test -z "$ac_c_werror_flag" ||
10008 test ! -s conftest.err
10009 } && test -s conftest$ac_exeext && {
10010 test "$cross_compiling" = yes ||
10011 $as_test_x conftest$ac_exeext
10014 lt_aix_libpath_sed='
10015 /Import File Strings/,/^$/ {
10021 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10022 # Check for a 64-bit object if we didn't find anything.
10023 if test -z "$aix_libpath"; then
10024 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10027 $as_echo "$as_me: failed program was:" >&5
10028 sed 's/^/| /' conftest.$ac_ext >&5
10033 rm -rf conftest.dSYM
10034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10035 conftest$ac_exeext conftest.$ac_ext
10036 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10038 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10039 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"
10041 if test "$host_cpu" = ia64; then
10042 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10043 allow_undefined_flag="-z nodefs"
10044 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"
10046 # Determine the default libpath from the value encoded in an
10047 # empty executable.
10048 cat >conftest.$ac_ext <<_ACEOF
10051 cat confdefs.h >>conftest.$ac_ext
10052 cat >>conftest.$ac_ext <<_ACEOF
10053 /* end confdefs.h. */
10063 rm -f conftest.$ac_objext conftest$ac_exeext
10064 if { (ac_try="$ac_link"
10065 case "(($ac_try" in
10066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10067 *) ac_try_echo=$ac_try;;
10069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10070 $as_echo "$ac_try_echo") >&5
10071 (eval "$ac_link") 2>conftest.er1
10073 grep -v '^ *+' conftest.er1 >conftest.err
10075 cat conftest.err >&5
10076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); } && {
10078 test -z "$ac_c_werror_flag" ||
10079 test ! -s conftest.err
10080 } && test -s conftest$ac_exeext && {
10081 test "$cross_compiling" = yes ||
10082 $as_test_x conftest$ac_exeext
10085 lt_aix_libpath_sed='
10086 /Import File Strings/,/^$/ {
10092 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10093 # Check for a 64-bit object if we didn't find anything.
10094 if test -z "$aix_libpath"; then
10095 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10098 $as_echo "$as_me: failed program was:" >&5
10099 sed 's/^/| /' conftest.$ac_ext >&5
10104 rm -rf conftest.dSYM
10105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10106 conftest$ac_exeext conftest.$ac_ext
10107 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10109 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10110 # Warning - without using the other run time loading flags,
10111 # -berok will link without error, but may produce a broken library.
10112 no_undefined_flag=' ${wl}-bernotok'
10113 allow_undefined_flag=' ${wl}-berok'
10114 # Exported symbols can be pulled into shared objects from archives
10115 whole_archive_flag_spec='$convenience'
10116 archive_cmds_need_lc=yes
10117 # This is similar to how AIX traditionally builds its shared libraries.
10118 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'
10126 # see comment about AmigaOS4 .so support
10127 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10128 archive_expsym_cmds=''
10131 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)'
10132 hardcode_libdir_flag_spec='-L$libdir'
10133 hardcode_minus_L=yes
10139 export_dynamic_flag_spec=-rdynamic
10142 cygwin* | mingw* | pw32* | cegcc*)
10143 # When not using gcc, we currently assume that we are using
10144 # Microsoft Visual C++.
10145 # hardcode_libdir_flag_spec is actually meaningless, as there is
10146 # no search path for DLLs.
10147 hardcode_libdir_flag_spec=' '
10148 allow_undefined_flag=unsupported
10149 # Tell ltmain to make .lib files, not .a files.
10151 # Tell ltmain to make .dll files, not .so files.
10153 # FIXME: Setting linknames here is a bad hack.
10154 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10155 # The linker will automatically build a .lib file if we build a DLL.
10156 old_archive_from_new_cmds='true'
10157 # FIXME: Should let the user specify the lib program.
10158 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10159 fix_srcfile_path='`cygpath -w "$srcfile"`'
10160 enable_shared_with_static_runtimes=yes
10163 darwin* | rhapsody*)
10166 archive_cmds_need_lc=no
10168 hardcode_automatic=yes
10169 hardcode_shlibpath_var=unsupported
10170 whole_archive_flag_spec=''
10171 link_all_deplibs=yes
10172 allow_undefined_flag="$_lt_dar_allow_undefined"
10173 case $cc_basename in
10174 ifort*) _lt_dar_can_shared=yes ;;
10175 *) _lt_dar_can_shared=$GCC ;;
10177 if test "$_lt_dar_can_shared" = "yes"; then
10178 output_verbose_link_cmd=echo
10179 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10180 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10181 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}"
10182 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}"
10191 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10192 hardcode_libdir_flag_spec='-L$libdir'
10193 hardcode_shlibpath_var=no
10200 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10201 # support. Future versions do this automatically, but an explicit c++rt0.o
10202 # does not break anything, and helps significantly (at the cost of a little
10205 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10206 hardcode_libdir_flag_spec='-R$libdir'
10207 hardcode_direct=yes
10208 hardcode_shlibpath_var=no
10211 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10213 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10214 hardcode_direct=yes
10215 hardcode_minus_L=yes
10216 hardcode_shlibpath_var=no
10219 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10220 freebsd* | dragonfly*)
10221 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10222 hardcode_libdir_flag_spec='-R$libdir'
10223 hardcode_direct=yes
10224 hardcode_shlibpath_var=no
10228 if test "$GCC" = yes; then
10229 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'
10231 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'
10233 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10234 hardcode_libdir_separator=:
10235 hardcode_direct=yes
10237 # hardcode_minus_L: Not really in the search PATH,
10238 # but as the default location of the library.
10239 hardcode_minus_L=yes
10240 export_dynamic_flag_spec='${wl}-E'
10244 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10245 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10247 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10249 if test "$with_gnu_ld" = no; then
10250 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10251 hardcode_libdir_flag_spec_ld='+b $libdir'
10252 hardcode_libdir_separator=:
10253 hardcode_direct=yes
10254 hardcode_direct_absolute=yes
10255 export_dynamic_flag_spec='${wl}-E'
10256 # hardcode_minus_L: Not really in the search PATH,
10257 # but as the default location of the library.
10258 hardcode_minus_L=yes
10263 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10266 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10269 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10272 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10278 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10281 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10284 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10288 if test "$with_gnu_ld" = no; then
10289 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10290 hardcode_libdir_separator=:
10295 hardcode_shlibpath_var=no
10298 hardcode_direct=yes
10299 hardcode_direct_absolute=yes
10300 export_dynamic_flag_spec='${wl}-E'
10302 # hardcode_minus_L: Not really in the search PATH,
10303 # but as the default location of the library.
10304 hardcode_minus_L=yes
10310 irix5* | irix6* | nonstopux*)
10311 if test "$GCC" = yes; then
10312 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'
10313 # Try to use the -exported_symbol ld option, if it does not
10314 # work, assume that -exports_file does not work either and
10315 # implicitly export all symbols.
10316 save_LDFLAGS="$LDFLAGS"
10317 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10318 cat >conftest.$ac_ext <<_ACEOF
10321 rm -f conftest.$ac_objext conftest$ac_exeext
10322 if { (ac_try="$ac_link"
10323 case "(($ac_try" in
10324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10325 *) ac_try_echo=$ac_try;;
10327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10328 $as_echo "$ac_try_echo") >&5
10329 (eval "$ac_link") 2>conftest.er1
10331 grep -v '^ *+' conftest.er1 >conftest.err
10333 cat conftest.err >&5
10334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335 (exit $ac_status); } && {
10336 test -z "$ac_c_werror_flag" ||
10337 test ! -s conftest.err
10338 } && test -s conftest$ac_exeext && {
10339 test "$cross_compiling" = yes ||
10340 $as_test_x conftest$ac_exeext
10342 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'
10345 $as_echo "$as_me: failed program was:" >&5
10346 sed 's/^/| /' conftest.$ac_ext >&5
10351 rm -rf conftest.dSYM
10352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10353 conftest$ac_exeext conftest.$ac_ext
10354 LDFLAGS="$save_LDFLAGS"
10356 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'
10357 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'
10359 archive_cmds_need_lc='no'
10360 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10361 hardcode_libdir_separator=:
10363 link_all_deplibs=yes
10367 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10368 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10370 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10372 hardcode_libdir_flag_spec='-R$libdir'
10373 hardcode_direct=yes
10374 hardcode_shlibpath_var=no
10378 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10379 hardcode_direct=yes
10380 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10381 hardcode_libdir_separator=:
10382 hardcode_shlibpath_var=no
10389 if test -f /usr/libexec/ld.so; then
10390 hardcode_direct=yes
10391 hardcode_shlibpath_var=no
10392 hardcode_direct_absolute=yes
10393 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10394 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10395 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10396 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10397 export_dynamic_flag_spec='${wl}-E'
10400 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10401 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10402 hardcode_libdir_flag_spec='-R$libdir'
10405 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10406 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10416 hardcode_libdir_flag_spec='-L$libdir'
10417 hardcode_minus_L=yes
10418 allow_undefined_flag=unsupported
10419 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'
10420 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10424 if test "$GCC" = yes; then
10425 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10426 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'
10428 allow_undefined_flag=' -expect_unresolved \*'
10429 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'
10431 archive_cmds_need_lc='no'
10432 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10433 hardcode_libdir_separator=:
10436 osf4* | osf5*) # as osf3* with the addition of -msym flag
10437 if test "$GCC" = yes; then
10438 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10439 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'
10440 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10442 allow_undefined_flag=' -expect_unresolved \*'
10443 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'
10444 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~
10445 $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'
10447 # Both c and cxx compiler support -rpath directly
10448 hardcode_libdir_flag_spec='-rpath $libdir'
10450 archive_cmds_need_lc='no'
10451 hardcode_libdir_separator=:
10455 no_undefined_flag=' -z defs'
10456 if test "$GCC" = yes; then
10458 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10459 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10460 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10462 case `$CC -V 2>&1` in
10465 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10466 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10467 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10471 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10472 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10473 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10477 hardcode_libdir_flag_spec='-R$libdir'
10478 hardcode_shlibpath_var=no
10480 solaris2.[0-5] | solaris2.[0-5].*) ;;
10482 # The compiler driver will combine and reorder linker options,
10483 # but understands `-z linker_flag'. GCC discards it without `$wl',
10484 # but is careful enough not to reorder.
10485 # Supported since Solaris 2.6 (maybe 2.5.1?)
10486 if test "$GCC" = yes; then
10487 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10489 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10493 link_all_deplibs=yes
10497 if test "x$host_vendor" = xsequent; then
10498 # Use $CC to link under sequent, because it throws in some extra .o
10499 # files that make .init and .fini sections work.
10500 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10502 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10504 hardcode_libdir_flag_spec='-L$libdir'
10505 hardcode_direct=yes
10506 hardcode_minus_L=yes
10507 hardcode_shlibpath_var=no
10511 case $host_vendor in
10513 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10514 hardcode_direct=yes # is this really true???
10517 ## LD is ld it makes a PLAMLIB
10518 ## CC just makes a GrossModule.
10519 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10520 reload_cmds='$CC -r -o $output$reload_objs'
10524 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10525 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10528 runpath_var='LD_RUN_PATH'
10529 hardcode_shlibpath_var=no
10533 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10534 hardcode_shlibpath_var=no
10535 export_dynamic_flag_spec='-Bexport'
10539 if test -d /usr/nec; then
10540 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10541 hardcode_shlibpath_var=no
10542 runpath_var=LD_RUN_PATH
10543 hardcode_runpath_var=yes
10548 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10549 no_undefined_flag='${wl}-z,text'
10550 archive_cmds_need_lc=no
10551 hardcode_shlibpath_var=no
10552 runpath_var='LD_RUN_PATH'
10554 if test "$GCC" = yes; then
10555 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10556 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10558 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10559 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10563 sysv5* | sco3.2v5* | sco5v6*)
10564 # Note: We can NOT use -z defs as we might desire, because we do not
10565 # link with -lc, and that would cause any symbols used from libc to
10566 # always be unresolved, which means just about no library would
10567 # ever link correctly. If we're not using GNU ld we use -z text
10568 # though, which does catch some bad symbols but isn't as heavy-handed
10570 no_undefined_flag='${wl}-z,text'
10571 allow_undefined_flag='${wl}-z,nodefs'
10572 archive_cmds_need_lc=no
10573 hardcode_shlibpath_var=no
10574 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10575 hardcode_libdir_separator=':'
10576 link_all_deplibs=yes
10577 export_dynamic_flag_spec='${wl}-Bexport'
10578 runpath_var='LD_RUN_PATH'
10580 if test "$GCC" = yes; then
10581 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10582 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10584 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10585 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10590 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10591 hardcode_libdir_flag_spec='-L$libdir'
10592 hardcode_shlibpath_var=no
10600 if test x$host_vendor = xsni; then
10602 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10603 export_dynamic_flag_spec='${wl}-Blargedynsym'
10609 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10610 $as_echo "$ld_shlibs" >&6; }
10611 test "$ld_shlibs" = no && can_build_shared=no
10613 with_gnu_ld=$with_gnu_ld
10630 # Do we need to explicitly link libc?
10632 case "x$archive_cmds_need_lc" in
10634 # Assume -lc should be added
10635 archive_cmds_need_lc=yes
10637 if test "$enable_shared" = yes && test "$GCC" = yes; then
10638 case $archive_cmds in
10640 # FIXME: we may have to deal with multi-command sequences.
10643 # Test whether the compiler implicitly links with -lc since on some
10644 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10645 # to ld, don't add -lc before -lgcc.
10646 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10647 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10648 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
10649 $as_echo_n "(cached) " >&6
10652 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10655 (eval $ac_compile) 2>&5
10657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658 (exit $ac_status); } 2>conftest.err; then
10661 libobjs=conftest.$ac_objext
10663 wl=$lt_prog_compiler_wl
10664 pic_flag=$lt_prog_compiler_pic
10670 lt_save_allow_undefined_flag=$allow_undefined_flag
10671 allow_undefined_flag=
10672 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10673 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); }
10678 lt_cv_archive_cmds_need_lc=no
10680 lt_cv_archive_cmds_need_lc=yes
10682 allow_undefined_flag=$lt_save_allow_undefined_flag
10684 cat conftest.err 1>&5
10689 { $as_echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
10690 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10691 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10854 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10855 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10857 if test "$GCC" = yes; then
10859 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10860 *) lt_awk_arg="/^libraries:/" ;;
10862 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10863 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10864 # if the path contains ";" then we assume it to be the separator
10865 # otherwise default to the standard path separator (i.e. ":") - it is
10866 # assumed that no part of a normal pathname contains ";" but that should
10867 # okay in the real world where ";" in dirpaths is itself problematic.
10868 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10870 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10872 # Ok, now we have the path, separated by spaces, we can step through it
10873 # and add multilib dir if necessary.
10874 lt_tmp_lt_search_path_spec=
10875 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10876 for lt_sys_path in $lt_search_path_spec; do
10877 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10878 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10880 test -d "$lt_sys_path" && \
10881 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10884 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10885 BEGIN {RS=" "; FS="/|\n";} {
10888 for (lt_i = NF; lt_i > 0; lt_i--) {
10889 if ($lt_i != "" && $lt_i != ".") {
10890 if ($lt_i == "..") {
10893 if (lt_count == 0) {
10894 lt_foo="/" $lt_i lt_foo;
10901 if (lt_foo != "") { lt_freq[lt_foo]++; }
10902 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10904 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10906 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10908 library_names_spec=
10909 libname_spec='lib$name'
10913 postuninstall_cmds=
10917 shlibpath_overrides_runpath=unknown
10919 dynamic_linker="$host_os ld.so"
10920 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10921 need_lib_prefix=unknown
10922 hardcode_into_libs=no
10924 # when you set need_version to no, make sure it does not cause -set_version
10925 # flags to be left without arguments
10926 need_version=unknown
10931 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10932 shlibpath_var=LIBPATH
10934 # AIX 3 has no versioning support, so we append a major version to the name.
10935 soname_spec='${libname}${release}${shared_ext}$major'
10942 hardcode_into_libs=yes
10943 if test "$host_cpu" = ia64; then
10944 # AIX 5 supports IA64
10945 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10946 shlibpath_var=LD_LIBRARY_PATH
10948 # With GCC up to 2.95.x, collect2 would create an import file
10949 # for dependence libraries. The import file would start with
10950 # the line `#! .'. This would cause the generated library to
10951 # depend on `.', always an invalid library. This was fixed in
10952 # development snapshots of GCC prior to 3.0.
10954 aix4 | aix4.[01] | aix4.[01].*)
10955 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10957 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10960 can_build_shared=no
10964 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10965 # soname into executable. Probably we can add versioning support to
10966 # collect2, so additional links can be useful in future.
10967 if test "$aix_use_runtimelinking" = yes; then
10968 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10969 # instead of lib<name>.a to let people know that these are not
10970 # typical AIX shared libraries.
10971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10973 # We preserve .a as extension for shared libraries through AIX4.2
10974 # and later when we are not doing run time linking.
10975 library_names_spec='${libname}${release}.a $libname.a'
10976 soname_spec='${libname}${release}${shared_ext}$major'
10978 shlibpath_var=LIBPATH
10985 # Since July 2007 AmigaOS4 officially supports .so libraries.
10986 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10990 library_names_spec='$libname.ixlibrary $libname.a'
10991 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10992 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'
10998 library_names_spec='${libname}${shared_ext}'
10999 dynamic_linker="$host_os ld.so"
11000 shlibpath_var=LIBRARY_PATH
11006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11007 soname_spec='${libname}${release}${shared_ext}$major'
11008 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11009 shlibpath_var=LD_LIBRARY_PATH
11010 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11011 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11012 # the default ld.so.conf also contains /usr/contrib/lib and
11013 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11014 # libtool to hard-code these into programs
11017 cygwin* | mingw* | pw32* | cegcc*)
11018 version_type=windows
11023 case $GCC,$host_os in
11024 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11025 library_names_spec='$libname.dll.a'
11026 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11027 postinstall_cmds='base_file=`basename \${file}`~
11028 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11029 dldir=$destdir/`dirname \$dlpath`~
11030 test -d \$dldir || mkdir -p \$dldir~
11031 $install_prog $dir/$dlname \$dldir/$dlname~
11032 chmod a+x \$dldir/$dlname~
11033 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11034 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11036 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11037 dlpath=$dir/\$dldll~
11039 shlibpath_overrides_runpath=yes
11043 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11044 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11045 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11048 # MinGW DLLs use traditional 'lib' prefix
11049 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11050 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11051 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11052 # It is most probably a Windows format PATH printed by
11053 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11054 # path with ; separators, and with drive letters. We can handle the
11055 # drive letters (cygwin fileutils understands them), so leave them,
11056 # especially as we might pass files found there to a mingw objdump,
11057 # which wouldn't understand a cygwinified path. Ahh.
11058 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11060 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11064 # pw32 DLLs use 'pw' prefix rather than 'lib'
11065 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11071 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11074 dynamic_linker='Win32 ld.exe'
11075 # FIXME: first we should search . and the directory the executable is in
11079 darwin* | rhapsody*)
11080 dynamic_linker="$host_os dyld"
11081 version_type=darwin
11084 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11085 soname_spec='${libname}${release}${major}$shared_ext'
11086 shlibpath_overrides_runpath=yes
11087 shlibpath_var=DYLD_LIBRARY_PATH
11088 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11090 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11091 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11099 soname_spec='${libname}${release}${shared_ext}$major'
11100 shlibpath_var=LD_LIBRARY_PATH
11107 freebsd* | dragonfly*)
11108 # DragonFly does not have aout. When/if they implement a new
11109 # versioning mechanism, adjust this.
11110 if test -x /usr/bin/objformat; then
11111 objformat=`/usr/bin/objformat`
11114 freebsd[123]*) objformat=aout ;;
11115 *) objformat=elf ;;
11118 version_type=freebsd-$objformat
11119 case $version_type in
11121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11126 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11130 shlibpath_var=LD_LIBRARY_PATH
11133 shlibpath_overrides_runpath=yes
11135 freebsd3.[01]* | freebsdelf3.[01]*)
11136 shlibpath_overrides_runpath=yes
11137 hardcode_into_libs=yes
11139 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11140 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11141 shlibpath_overrides_runpath=no
11142 hardcode_into_libs=yes
11144 *) # from 4.6 on, and DragonFly
11145 shlibpath_overrides_runpath=yes
11146 hardcode_into_libs=yes
11155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11156 soname_spec='${libname}${release}${shared_ext}$major'
11157 shlibpath_var=LD_LIBRARY_PATH
11158 hardcode_into_libs=yes
11161 hpux9* | hpux10* | hpux11*)
11162 # Give a soname corresponding to the major version so that dld.sl refuses to
11163 # link against other versions.
11170 hardcode_into_libs=yes
11171 dynamic_linker="$host_os dld.so"
11172 shlibpath_var=LD_LIBRARY_PATH
11173 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11175 soname_spec='${libname}${release}${shared_ext}$major'
11176 if test "X$HPUX_IA64_MODE" = X32; then
11177 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11179 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11181 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11185 hardcode_into_libs=yes
11186 dynamic_linker="$host_os dld.sl"
11187 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11188 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11190 soname_spec='${libname}${release}${shared_ext}$major'
11191 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11192 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11196 dynamic_linker="$host_os dld.sl"
11197 shlibpath_var=SHLIB_PATH
11198 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11200 soname_spec='${libname}${release}${shared_ext}$major'
11203 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11204 postinstall_cmds='chmod 555 $lib'
11211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11212 soname_spec='${libname}${release}${shared_ext}$major'
11213 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11214 shlibpath_var=LD_LIBRARY_PATH
11215 shlibpath_overrides_runpath=no
11216 hardcode_into_libs=yes
11219 irix5* | irix6* | nonstopux*)
11221 nonstopux*) version_type=nonstopux ;;
11223 if test "$lt_cv_prog_gnu_ld" = yes; then
11231 soname_spec='${libname}${release}${shared_ext}$major'
11232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11234 irix5* | nonstopux*)
11235 libsuff= shlibsuff=
11238 case $LD in # libtool.m4 will add one of these switches to LD
11239 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11240 libsuff= shlibsuff= libmagic=32-bit;;
11241 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11242 libsuff=32 shlibsuff=N32 libmagic=N32;;
11243 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11244 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11245 *) libsuff= shlibsuff= libmagic=never-match;;
11249 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11250 shlibpath_overrides_runpath=no
11251 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11252 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11253 hardcode_into_libs=yes
11256 # No shared lib support for Linux oldld, aout, or coff.
11257 linux*oldld* | linux*aout* | linux*coff*)
11261 # This must be Linux ELF.
11262 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11267 soname_spec='${libname}${release}${shared_ext}$major'
11268 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11269 shlibpath_var=LD_LIBRARY_PATH
11270 shlibpath_overrides_runpath=no
11272 # Some binutils ld are patched to set DT_RUNPATH
11273 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
11274 $as_echo_n "(cached) " >&6
11276 lt_cv_shlibpath_overrides_runpath=no
11277 save_LDFLAGS=$LDFLAGS
11278 save_libdir=$libdir
11279 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11280 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11281 cat >conftest.$ac_ext <<_ACEOF
11284 cat confdefs.h >>conftest.$ac_ext
11285 cat >>conftest.$ac_ext <<_ACEOF
11286 /* end confdefs.h. */
11296 rm -f conftest.$ac_objext conftest$ac_exeext
11297 if { (ac_try="$ac_link"
11298 case "(($ac_try" in
11299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11300 *) ac_try_echo=$ac_try;;
11302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11303 $as_echo "$ac_try_echo") >&5
11304 (eval "$ac_link") 2>conftest.er1
11306 grep -v '^ *+' conftest.er1 >conftest.err
11308 cat conftest.err >&5
11309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); } && {
11311 test -z "$ac_c_werror_flag" ||
11312 test ! -s conftest.err
11313 } && test -s conftest$ac_exeext && {
11314 test "$cross_compiling" = yes ||
11315 $as_test_x conftest$ac_exeext
11317 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11318 lt_cv_shlibpath_overrides_runpath=yes
11322 $as_echo "$as_me: failed program was:" >&5
11323 sed 's/^/| /' conftest.$ac_ext >&5
11328 rm -rf conftest.dSYM
11329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11330 conftest$ac_exeext conftest.$ac_ext
11331 LDFLAGS=$save_LDFLAGS
11332 libdir=$save_libdir
11336 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11338 # This implies no fast_install, which is unacceptable.
11339 # Some rework will be needed to allow for fast_install
11340 # before this can be enabled.
11341 hardcode_into_libs=yes
11343 # Append ld.so.conf contents to the search path
11344 if test -f /etc/ld.so.conf; then
11345 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' ' '`
11346 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11349 # We used to test for /lib/ld.so.1 and disable shared libraries on
11350 # powerpc, because MkLinux only supported shared libraries with the
11351 # GNU dynamic linker. Since this was broken with cross compilers,
11352 # most powerpc-linux boxes support dynamic linking these days and
11353 # people can always --disable-shared, the test was removed, and we
11354 # assume the GNU/Linux dynamic linker is in use.
11355 dynamic_linker='GNU/Linux ld.so'
11362 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11364 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11365 dynamic_linker='NetBSD (a.out) ld.so'
11367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11368 soname_spec='${libname}${release}${shared_ext}$major'
11369 dynamic_linker='NetBSD ld.elf_so'
11371 shlibpath_var=LD_LIBRARY_PATH
11372 shlibpath_overrides_runpath=yes
11373 hardcode_into_libs=yes
11378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11379 shlibpath_var=LD_LIBRARY_PATH
11380 shlibpath_overrides_runpath=yes
11387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11388 soname_spec='${libname}${release}${shared_ext}$major'
11389 shlibpath_var=LD_LIBRARY_PATH
11390 shlibpath_overrides_runpath=no
11391 hardcode_into_libs=yes
11392 dynamic_linker='ldqnx.so'
11397 sys_lib_dlsearch_path_spec="/usr/lib"
11399 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11401 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11402 *) need_version=no ;;
11404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11405 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11406 shlibpath_var=LD_LIBRARY_PATH
11407 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11409 openbsd2.[89] | openbsd2.[89].*)
11410 shlibpath_overrides_runpath=no
11413 shlibpath_overrides_runpath=yes
11417 shlibpath_overrides_runpath=yes
11422 libname_spec='$name'
11425 library_names_spec='$libname${shared_ext} $libname.a'
11426 dynamic_linker='OS/2 ld.exe'
11427 shlibpath_var=LIBPATH
11430 osf3* | osf4* | osf5*)
11434 soname_spec='${libname}${release}${shared_ext}$major'
11435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11436 shlibpath_var=LD_LIBRARY_PATH
11437 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11438 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11450 soname_spec='${libname}${release}${shared_ext}$major'
11451 shlibpath_var=LD_LIBRARY_PATH
11452 shlibpath_overrides_runpath=yes
11453 hardcode_into_libs=yes
11454 # ldd complains unless libraries are executable
11455 postinstall_cmds='chmod +x $lib'
11460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11461 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11462 shlibpath_var=LD_LIBRARY_PATH
11463 shlibpath_overrides_runpath=yes
11464 if test "$with_gnu_ld" = yes; then
11472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11473 soname_spec='${libname}${release}${shared_ext}$major'
11474 shlibpath_var=LD_LIBRARY_PATH
11475 case $host_vendor in
11477 shlibpath_overrides_runpath=no
11479 runpath_var=LD_RUN_PATH
11487 shlibpath_overrides_runpath=no
11488 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11494 if test -d /usr/nec ;then
11496 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11497 soname_spec='$libname${shared_ext}.$major'
11498 shlibpath_var=LD_LIBRARY_PATH
11502 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11503 version_type=freebsd-elf
11506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11507 soname_spec='${libname}${release}${shared_ext}$major'
11508 shlibpath_var=LD_LIBRARY_PATH
11509 shlibpath_overrides_runpath=yes
11510 hardcode_into_libs=yes
11511 if test "$with_gnu_ld" = yes; then
11512 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11514 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11517 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11521 sys_lib_dlsearch_path_spec='/usr/lib'
11525 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11530 shlibpath_var=LD_LIBRARY_PATH
11531 shlibpath_overrides_runpath=no
11532 hardcode_into_libs=yes
11537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11538 soname_spec='${libname}${release}${shared_ext}$major'
11539 shlibpath_var=LD_LIBRARY_PATH
11546 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11547 $as_echo "$dynamic_linker" >&6; }
11548 test "$dynamic_linker" = no && can_build_shared=no
11550 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11551 if test "$GCC" = yes; then
11552 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11555 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11556 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11558 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11559 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11648 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11649 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11651 if test -n "$hardcode_libdir_flag_spec" ||
11652 test -n "$runpath_var" ||
11653 test "X$hardcode_automatic" = "Xyes" ; then
11655 # We can hardcode non-existent directories.
11656 if test "$hardcode_direct" != no &&
11657 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11658 # have to relink, otherwise we might link with an installed library
11659 # when we should be linking with a yet-to-be-installed one
11660 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11661 test "$hardcode_minus_L" != no; then
11662 # Linking always hardcodes the temporary library directory.
11663 hardcode_action=relink
11665 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11666 hardcode_action=immediate
11669 # We cannot hardcode anything, or else we can only hardcode existing
11671 hardcode_action=unsupported
11673 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11674 $as_echo "$hardcode_action" >&6; }
11676 if test "$hardcode_action" = relink ||
11677 test "$inherit_rpath" = yes; then
11678 # Fast installation is not supported
11679 enable_fast_install=no
11680 elif test "$shlibpath_overrides_runpath" = yes ||
11681 test "$enable_shared" = no; then
11682 # Fast installation is not necessary
11683 enable_fast_install=needless
11691 if test "x$enable_dlopen" != xyes; then
11692 enable_dlopen=unknown
11693 enable_dlopen_self=unknown
11694 enable_dlopen_self_static=unknown
11701 lt_cv_dlopen="load_add_on"
11703 lt_cv_dlopen_self=yes
11706 mingw* | pw32* | cegcc*)
11707 lt_cv_dlopen="LoadLibrary"
11712 lt_cv_dlopen="dlopen"
11717 # if libdl is installed we need to link against it
11718 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11719 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11720 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11721 $as_echo_n "(cached) " >&6
11723 ac_check_lib_save_LIBS=$LIBS
11725 cat >conftest.$ac_ext <<_ACEOF
11728 cat confdefs.h >>conftest.$ac_ext
11729 cat >>conftest.$ac_ext <<_ACEOF
11730 /* end confdefs.h. */
11732 /* Override any GCC internal prototype to avoid an error.
11733 Use char because int might match the return type of a GCC
11734 builtin and then its argument prototype would still apply. */
11747 rm -f conftest.$ac_objext conftest$ac_exeext
11748 if { (ac_try="$ac_link"
11749 case "(($ac_try" in
11750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11751 *) ac_try_echo=$ac_try;;
11753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11754 $as_echo "$ac_try_echo") >&5
11755 (eval "$ac_link") 2>conftest.er1
11757 grep -v '^ *+' conftest.er1 >conftest.err
11759 cat conftest.err >&5
11760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); } && {
11762 test -z "$ac_c_werror_flag" ||
11763 test ! -s conftest.err
11764 } && test -s conftest$ac_exeext && {
11765 test "$cross_compiling" = yes ||
11766 $as_test_x conftest$ac_exeext
11768 ac_cv_lib_dl_dlopen=yes
11770 $as_echo "$as_me: failed program was:" >&5
11771 sed 's/^/| /' conftest.$ac_ext >&5
11773 ac_cv_lib_dl_dlopen=no
11776 rm -rf conftest.dSYM
11777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11778 conftest$ac_exeext conftest.$ac_ext
11779 LIBS=$ac_check_lib_save_LIBS
11781 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11782 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11783 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11784 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11787 lt_cv_dlopen="dyld"
11789 lt_cv_dlopen_self=yes
11796 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11797 $as_echo_n "checking for shl_load... " >&6; }
11798 if test "${ac_cv_func_shl_load+set}" = set; then
11799 $as_echo_n "(cached) " >&6
11801 cat >conftest.$ac_ext <<_ACEOF
11804 cat confdefs.h >>conftest.$ac_ext
11805 cat >>conftest.$ac_ext <<_ACEOF
11806 /* end confdefs.h. */
11807 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11809 #define shl_load innocuous_shl_load
11811 /* System header to define __stub macros and hopefully few prototypes,
11812 which can conflict with char shl_load (); below.
11813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11814 <limits.h> exists even on freestanding compilers. */
11817 # include <limits.h>
11819 # include <assert.h>
11824 /* Override any GCC internal prototype to avoid an error.
11825 Use char because int might match the return type of a GCC
11826 builtin and then its argument prototype would still apply. */
11831 /* The GNU C library defines this for functions which it implements
11832 to always fail with ENOSYS. Some functions are actually named
11833 something starting with __ and the normal name is an alias. */
11834 #if defined __stub_shl_load || defined __stub___shl_load
11841 return shl_load ();
11846 rm -f conftest.$ac_objext conftest$ac_exeext
11847 if { (ac_try="$ac_link"
11848 case "(($ac_try" in
11849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11850 *) ac_try_echo=$ac_try;;
11852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11853 $as_echo "$ac_try_echo") >&5
11854 (eval "$ac_link") 2>conftest.er1
11856 grep -v '^ *+' conftest.er1 >conftest.err
11858 cat conftest.err >&5
11859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); } && {
11861 test -z "$ac_c_werror_flag" ||
11862 test ! -s conftest.err
11863 } && test -s conftest$ac_exeext && {
11864 test "$cross_compiling" = yes ||
11865 $as_test_x conftest$ac_exeext
11867 ac_cv_func_shl_load=yes
11869 $as_echo "$as_me: failed program was:" >&5
11870 sed 's/^/| /' conftest.$ac_ext >&5
11872 ac_cv_func_shl_load=no
11875 rm -rf conftest.dSYM
11876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11877 conftest$ac_exeext conftest.$ac_ext
11879 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11880 $as_echo "$ac_cv_func_shl_load" >&6; }
11881 if test "x$ac_cv_func_shl_load" = x""yes; then
11882 lt_cv_dlopen="shl_load"
11884 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11885 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11886 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11887 $as_echo_n "(cached) " >&6
11889 ac_check_lib_save_LIBS=$LIBS
11891 cat >conftest.$ac_ext <<_ACEOF
11894 cat confdefs.h >>conftest.$ac_ext
11895 cat >>conftest.$ac_ext <<_ACEOF
11896 /* end confdefs.h. */
11898 /* Override any GCC internal prototype to avoid an error.
11899 Use char because int might match the return type of a GCC
11900 builtin and then its argument prototype would still apply. */
11908 return shl_load ();
11913 rm -f conftest.$ac_objext conftest$ac_exeext
11914 if { (ac_try="$ac_link"
11915 case "(($ac_try" in
11916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11917 *) ac_try_echo=$ac_try;;
11919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11920 $as_echo "$ac_try_echo") >&5
11921 (eval "$ac_link") 2>conftest.er1
11923 grep -v '^ *+' conftest.er1 >conftest.err
11925 cat conftest.err >&5
11926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); } && {
11928 test -z "$ac_c_werror_flag" ||
11929 test ! -s conftest.err
11930 } && test -s conftest$ac_exeext && {
11931 test "$cross_compiling" = yes ||
11932 $as_test_x conftest$ac_exeext
11934 ac_cv_lib_dld_shl_load=yes
11936 $as_echo "$as_me: failed program was:" >&5
11937 sed 's/^/| /' conftest.$ac_ext >&5
11939 ac_cv_lib_dld_shl_load=no
11942 rm -rf conftest.dSYM
11943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11944 conftest$ac_exeext conftest.$ac_ext
11945 LIBS=$ac_check_lib_save_LIBS
11947 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11948 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11949 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
11950 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11952 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11953 $as_echo_n "checking for dlopen... " >&6; }
11954 if test "${ac_cv_func_dlopen+set}" = set; then
11955 $as_echo_n "(cached) " >&6
11957 cat >conftest.$ac_ext <<_ACEOF
11960 cat confdefs.h >>conftest.$ac_ext
11961 cat >>conftest.$ac_ext <<_ACEOF
11962 /* end confdefs.h. */
11963 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11965 #define dlopen innocuous_dlopen
11967 /* System header to define __stub macros and hopefully few prototypes,
11968 which can conflict with char dlopen (); below.
11969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11970 <limits.h> exists even on freestanding compilers. */
11973 # include <limits.h>
11975 # include <assert.h>
11980 /* Override any GCC internal prototype to avoid an error.
11981 Use char because int might match the return type of a GCC
11982 builtin and then its argument prototype would still apply. */
11987 /* The GNU C library defines this for functions which it implements
11988 to always fail with ENOSYS. Some functions are actually named
11989 something starting with __ and the normal name is an alias. */
11990 #if defined __stub_dlopen || defined __stub___dlopen
12002 rm -f conftest.$ac_objext conftest$ac_exeext
12003 if { (ac_try="$ac_link"
12004 case "(($ac_try" in
12005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12006 *) ac_try_echo=$ac_try;;
12008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12009 $as_echo "$ac_try_echo") >&5
12010 (eval "$ac_link") 2>conftest.er1
12012 grep -v '^ *+' conftest.er1 >conftest.err
12014 cat conftest.err >&5
12015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); } && {
12017 test -z "$ac_c_werror_flag" ||
12018 test ! -s conftest.err
12019 } && test -s conftest$ac_exeext && {
12020 test "$cross_compiling" = yes ||
12021 $as_test_x conftest$ac_exeext
12023 ac_cv_func_dlopen=yes
12025 $as_echo "$as_me: failed program was:" >&5
12026 sed 's/^/| /' conftest.$ac_ext >&5
12028 ac_cv_func_dlopen=no
12031 rm -rf conftest.dSYM
12032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12033 conftest$ac_exeext conftest.$ac_ext
12035 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12036 $as_echo "$ac_cv_func_dlopen" >&6; }
12037 if test "x$ac_cv_func_dlopen" = x""yes; then
12038 lt_cv_dlopen="dlopen"
12040 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12041 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12042 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12043 $as_echo_n "(cached) " >&6
12045 ac_check_lib_save_LIBS=$LIBS
12047 cat >conftest.$ac_ext <<_ACEOF
12050 cat confdefs.h >>conftest.$ac_ext
12051 cat >>conftest.$ac_ext <<_ACEOF
12052 /* end confdefs.h. */
12054 /* Override any GCC internal prototype to avoid an error.
12055 Use char because int might match the return type of a GCC
12056 builtin and then its argument prototype would still apply. */
12069 rm -f conftest.$ac_objext conftest$ac_exeext
12070 if { (ac_try="$ac_link"
12071 case "(($ac_try" in
12072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12073 *) ac_try_echo=$ac_try;;
12075 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12076 $as_echo "$ac_try_echo") >&5
12077 (eval "$ac_link") 2>conftest.er1
12079 grep -v '^ *+' conftest.er1 >conftest.err
12081 cat conftest.err >&5
12082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); } && {
12084 test -z "$ac_c_werror_flag" ||
12085 test ! -s conftest.err
12086 } && test -s conftest$ac_exeext && {
12087 test "$cross_compiling" = yes ||
12088 $as_test_x conftest$ac_exeext
12090 ac_cv_lib_dl_dlopen=yes
12092 $as_echo "$as_me: failed program was:" >&5
12093 sed 's/^/| /' conftest.$ac_ext >&5
12095 ac_cv_lib_dl_dlopen=no
12098 rm -rf conftest.dSYM
12099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12100 conftest$ac_exeext conftest.$ac_ext
12101 LIBS=$ac_check_lib_save_LIBS
12103 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12104 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12105 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12106 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12108 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12109 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12110 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12111 $as_echo_n "(cached) " >&6
12113 ac_check_lib_save_LIBS=$LIBS
12114 LIBS="-lsvld $LIBS"
12115 cat >conftest.$ac_ext <<_ACEOF
12118 cat confdefs.h >>conftest.$ac_ext
12119 cat >>conftest.$ac_ext <<_ACEOF
12120 /* end confdefs.h. */
12122 /* Override any GCC internal prototype to avoid an error.
12123 Use char because int might match the return type of a GCC
12124 builtin and then its argument prototype would still apply. */
12137 rm -f conftest.$ac_objext conftest$ac_exeext
12138 if { (ac_try="$ac_link"
12139 case "(($ac_try" in
12140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12141 *) ac_try_echo=$ac_try;;
12143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12144 $as_echo "$ac_try_echo") >&5
12145 (eval "$ac_link") 2>conftest.er1
12147 grep -v '^ *+' conftest.er1 >conftest.err
12149 cat conftest.err >&5
12150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151 (exit $ac_status); } && {
12152 test -z "$ac_c_werror_flag" ||
12153 test ! -s conftest.err
12154 } && test -s conftest$ac_exeext && {
12155 test "$cross_compiling" = yes ||
12156 $as_test_x conftest$ac_exeext
12158 ac_cv_lib_svld_dlopen=yes
12160 $as_echo "$as_me: failed program was:" >&5
12161 sed 's/^/| /' conftest.$ac_ext >&5
12163 ac_cv_lib_svld_dlopen=no
12166 rm -rf conftest.dSYM
12167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12168 conftest$ac_exeext conftest.$ac_ext
12169 LIBS=$ac_check_lib_save_LIBS
12171 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12172 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12173 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
12174 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12176 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12177 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12178 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12179 $as_echo_n "(cached) " >&6
12181 ac_check_lib_save_LIBS=$LIBS
12183 cat >conftest.$ac_ext <<_ACEOF
12186 cat confdefs.h >>conftest.$ac_ext
12187 cat >>conftest.$ac_ext <<_ACEOF
12188 /* end confdefs.h. */
12190 /* Override any GCC internal prototype to avoid an error.
12191 Use char because int might match the return type of a GCC
12192 builtin and then its argument prototype would still apply. */
12200 return dld_link ();
12205 rm -f conftest.$ac_objext conftest$ac_exeext
12206 if { (ac_try="$ac_link"
12207 case "(($ac_try" in
12208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12209 *) ac_try_echo=$ac_try;;
12211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12212 $as_echo "$ac_try_echo") >&5
12213 (eval "$ac_link") 2>conftest.er1
12215 grep -v '^ *+' conftest.er1 >conftest.err
12217 cat conftest.err >&5
12218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); } && {
12220 test -z "$ac_c_werror_flag" ||
12221 test ! -s conftest.err
12222 } && test -s conftest$ac_exeext && {
12223 test "$cross_compiling" = yes ||
12224 $as_test_x conftest$ac_exeext
12226 ac_cv_lib_dld_dld_link=yes
12228 $as_echo "$as_me: failed program was:" >&5
12229 sed 's/^/| /' conftest.$ac_ext >&5
12231 ac_cv_lib_dld_dld_link=no
12234 rm -rf conftest.dSYM
12235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12236 conftest$ac_exeext conftest.$ac_ext
12237 LIBS=$ac_check_lib_save_LIBS
12239 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12240 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12241 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12242 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12263 if test "x$lt_cv_dlopen" != xno; then
12269 case $lt_cv_dlopen in
12271 save_CPPFLAGS="$CPPFLAGS"
12272 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12274 save_LDFLAGS="$LDFLAGS"
12275 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12278 LIBS="$lt_cv_dlopen_libs $LIBS"
12280 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12281 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12282 if test "${lt_cv_dlopen_self+set}" = set; then
12283 $as_echo_n "(cached) " >&6
12285 if test "$cross_compiling" = yes; then :
12286 lt_cv_dlopen_self=cross
12288 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12289 lt_status=$lt_dlunknown
12290 cat > conftest.$ac_ext <<_LT_EOF
12291 #line 12291 "configure"
12292 #include "confdefs.h"
12301 # define LT_DLGLOBAL RTLD_GLOBAL
12304 # define LT_DLGLOBAL DL_GLOBAL
12306 # define LT_DLGLOBAL 0
12310 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12311 find out it does not work in some platform. */
12312 #ifndef LT_DLLAZY_OR_NOW
12314 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12317 # define LT_DLLAZY_OR_NOW DL_LAZY
12320 # define LT_DLLAZY_OR_NOW RTLD_NOW
12323 # define LT_DLLAZY_OR_NOW DL_NOW
12325 # define LT_DLLAZY_OR_NOW 0
12332 void fnord() { int i=42;}
12335 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12336 int status = $lt_dlunknown;
12340 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12341 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12342 /* dlclose (self); */
12350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12351 (eval $ac_link) 2>&5
12353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12355 (./conftest; exit; ) >&5 2>/dev/null
12357 case x$lt_status in
12358 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12359 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12360 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12363 # compilation failed
12364 lt_cv_dlopen_self=no
12371 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12372 $as_echo "$lt_cv_dlopen_self" >&6; }
12374 if test "x$lt_cv_dlopen_self" = xyes; then
12375 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12376 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12377 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12378 if test "${lt_cv_dlopen_self_static+set}" = set; then
12379 $as_echo_n "(cached) " >&6
12381 if test "$cross_compiling" = yes; then :
12382 lt_cv_dlopen_self_static=cross
12384 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12385 lt_status=$lt_dlunknown
12386 cat > conftest.$ac_ext <<_LT_EOF
12387 #line 12387 "configure"
12388 #include "confdefs.h"
12397 # define LT_DLGLOBAL RTLD_GLOBAL
12400 # define LT_DLGLOBAL DL_GLOBAL
12402 # define LT_DLGLOBAL 0
12406 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12407 find out it does not work in some platform. */
12408 #ifndef LT_DLLAZY_OR_NOW
12410 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12413 # define LT_DLLAZY_OR_NOW DL_LAZY
12416 # define LT_DLLAZY_OR_NOW RTLD_NOW
12419 # define LT_DLLAZY_OR_NOW DL_NOW
12421 # define LT_DLLAZY_OR_NOW 0
12428 void fnord() { int i=42;}
12431 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12432 int status = $lt_dlunknown;
12436 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12437 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12438 /* dlclose (self); */
12446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12447 (eval $ac_link) 2>&5
12449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12451 (./conftest; exit; ) >&5 2>/dev/null
12453 case x$lt_status in
12454 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12455 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12456 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12459 # compilation failed
12460 lt_cv_dlopen_self_static=no
12467 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12468 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12471 CPPFLAGS="$save_CPPFLAGS"
12472 LDFLAGS="$save_LDFLAGS"
12477 case $lt_cv_dlopen_self in
12478 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12479 *) enable_dlopen_self=unknown ;;
12482 case $lt_cv_dlopen_self_static in
12483 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12484 *) enable_dlopen_self_static=unknown ;;
12506 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12507 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12508 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12509 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12510 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12511 { $as_echo "$as_me:$LINENO: result: yes" >&5
12512 $as_echo "yes" >&6; }
12514 # FIXME - insert some real tests, host_os isn't really good enough
12517 if test -n "$STRIP" ; then
12518 striplib="$STRIP -x"
12519 old_striplib="$STRIP -S"
12520 { $as_echo "$as_me:$LINENO: result: yes" >&5
12521 $as_echo "yes" >&6; }
12523 { $as_echo "$as_me:$LINENO: result: no" >&5
12524 $as_echo "no" >&6; }
12528 { $as_echo "$as_me:$LINENO: result: no" >&5
12529 $as_echo "no" >&6; }
12545 # Report which library types will actually be built
12546 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12547 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12548 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12549 $as_echo "$can_build_shared" >&6; }
12551 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12552 $as_echo_n "checking whether to build shared libraries... " >&6; }
12553 test "$can_build_shared" = "no" && enable_shared=no
12555 # On AIX, shared libraries and static libraries use the same namespace, and
12556 # are all built from PIC.
12559 test "$enable_shared" = yes && enable_static=no
12560 if test -n "$RANLIB"; then
12561 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12562 postinstall_cmds='$RANLIB $lib'
12567 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12568 test "$enable_shared" = yes && enable_static=no
12572 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12573 $as_echo "$enable_shared" >&6; }
12575 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12576 $as_echo_n "checking whether to build static libraries... " >&6; }
12577 # Make sure either enable_shared or enable_static is yes.
12578 test "$enable_shared" = yes || enable_static=yes
12579 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12580 $as_echo "$enable_static" >&6; }
12587 ac_cpp='$CPP $CPPFLAGS'
12588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12606 ac_config_commands="$ac_config_commands libtool"
12611 # Only expand once:
12616 if test -n "${machine_dir}"; then
12617 MACHINE_OBJLIST=machine/${machine_dir}/objectlist.awk.in
12618 MACHINE_LIB=machine/${machine_dir}/lib.a
12625 subdirs="$subdirs machine"
12628 ac_config_files="$ac_config_files Makefile"
12630 cat >confcache <<\_ACEOF
12631 # This file is a shell script that caches the results of configure
12632 # tests run on this system so they can be shared between configure
12633 # scripts and configure runs, see configure's option --config-cache.
12634 # It is not useful on other systems. If it contains results you don't
12635 # want to keep, you may remove or edit it.
12637 # config.status only pays attention to the cache file if you give it
12638 # the --recheck option to rerun configure.
12640 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12641 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12642 # following values.
12646 # The following way of writing the cache mishandles newlines in values,
12647 # but we know of no workaround that is simple, portable, and efficient.
12648 # So, we kill variables containing newlines.
12649 # Ultrix sh set writes to stderr and can't be redirected directly,
12650 # and sets the high bit in the cache file unless we assign to the vars.
12652 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12653 eval ac_val=\$$ac_var
12657 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
12658 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12661 _ | IFS | as_nl) ;; #(
12662 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12663 *) $as_unset $ac_var ;;
12669 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12670 *${as_nl}ac_space=\ *)
12671 # `set' does not quote correctly, so add quotes (double-quote
12672 # substitution turns \\\\ into \\, and sed turns \\ into \).
12675 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12678 # `set' quotes correctly as required by POSIX, so do not add quotes.
12679 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12688 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12690 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12692 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12693 if test -w "$cache_file"; then
12694 test "x$cache_file" != "x/dev/null" &&
12695 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12696 $as_echo "$as_me: updating cache $cache_file" >&6;}
12697 cat confcache >$cache_file
12699 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12700 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12705 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12706 # Let make expand exec_prefix.
12707 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12709 # Transform confdefs.h into DEFS.
12710 # Protect against shell expansion while executing Makefile rules.
12711 # Protect against Makefile macro expansion.
12713 # If the first sed substitution is executed (which looks for macros that
12714 # take arguments), then branch to the quote section. Otherwise,
12715 # look for a macro that doesn't take arguments.
12725 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
12727 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
12731 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
12744 DEFS=`sed -n "$ac_script" confdefs.h`
12749 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12750 # 1. Remove the extension, and $U if already installed.
12751 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12752 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12753 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12754 # will be set to the directory where LIBOBJS objects are built.
12755 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12756 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12758 LIBOBJS=$ac_libobjs
12760 LTLIBOBJS=$ac_ltlibobjs
12763 if test -z "${MAY_SUPPLY_SYSCALLS_TRUE}" && test -z "${MAY_SUPPLY_SYSCALLS_FALSE}"; then
12764 { { $as_echo "$as_me:$LINENO: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
12765 Usually this means the macro was only invoked conditionally." >&5
12766 $as_echo "$as_me: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
12767 Usually this means the macro was only invoked conditionally." >&2;}
12768 { (exit 1); exit 1; }; }
12770 if test -n "$EXEEXT"; then
12772 am__EXEEXT_FALSE='#'
12774 am__EXEEXT_TRUE='#'
12778 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12779 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12780 Usually this means the macro was only invoked conditionally." >&5
12781 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
12782 Usually this means the macro was only invoked conditionally." >&2;}
12783 { (exit 1); exit 1; }; }
12785 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12786 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12787 Usually this means the macro was only invoked conditionally." >&5
12788 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12789 Usually this means the macro was only invoked conditionally." >&2;}
12790 { (exit 1); exit 1; }; }
12792 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12793 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12794 Usually this means the macro was only invoked conditionally." >&5
12795 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12796 Usually this means the macro was only invoked conditionally." >&2;}
12797 { (exit 1); exit 1; }; }
12799 if test -z "${ELIX_LEVEL_0_TRUE}" && test -z "${ELIX_LEVEL_0_FALSE}"; then
12800 { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_0\" was never defined.
12801 Usually this means the macro was only invoked conditionally." >&5
12802 $as_echo "$as_me: error: conditional \"ELIX_LEVEL_0\" was never defined.
12803 Usually this means the macro was only invoked conditionally." >&2;}
12804 { (exit 1); exit 1; }; }
12806 if test -z "${ELIX_LEVEL_1_TRUE}" && test -z "${ELIX_LEVEL_1_FALSE}"; then
12807 { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_1\" was never defined.
12808 Usually this means the macro was only invoked conditionally." >&5
12809 $as_echo "$as_me: error: conditional \"ELIX_LEVEL_1\" was never defined.
12810 Usually this means the macro was only invoked conditionally." >&2;}
12811 { (exit 1); exit 1; }; }
12813 if test -z "${ELIX_LEVEL_2_TRUE}" && test -z "${ELIX_LEVEL_2_FALSE}"; then
12814 { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_2\" was never defined.
12815 Usually this means the macro was only invoked conditionally." >&5
12816 $as_echo "$as_me: error: conditional \"ELIX_LEVEL_2\" was never defined.
12817 Usually this means the macro was only invoked conditionally." >&2;}
12818 { (exit 1); exit 1; }; }
12820 if test -z "${ELIX_LEVEL_3_TRUE}" && test -z "${ELIX_LEVEL_3_FALSE}"; then
12821 { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_3\" was never defined.
12822 Usually this means the macro was only invoked conditionally." >&5
12823 $as_echo "$as_me: error: conditional \"ELIX_LEVEL_3\" was never defined.
12824 Usually this means the macro was only invoked conditionally." >&2;}
12825 { (exit 1); exit 1; }; }
12827 if test -z "${ELIX_LEVEL_4_TRUE}" && test -z "${ELIX_LEVEL_4_FALSE}"; then
12828 { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_4\" was never defined.
12829 Usually this means the macro was only invoked conditionally." >&5
12830 $as_echo "$as_me: error: conditional \"ELIX_LEVEL_4\" was never defined.
12831 Usually this means the macro was only invoked conditionally." >&2;}
12832 { (exit 1); exit 1; }; }
12834 if test -z "${USE_LIBTOOL_TRUE}" && test -z "${USE_LIBTOOL_FALSE}"; then
12835 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_LIBTOOL\" was never defined.
12836 Usually this means the macro was only invoked conditionally." >&5
12837 $as_echo "$as_me: error: conditional \"USE_LIBTOOL\" was never defined.
12838 Usually this means the macro was only invoked conditionally." >&2;}
12839 { (exit 1); exit 1; }; }
12841 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12842 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12843 Usually this means the macro was only invoked conditionally." >&5
12844 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12845 Usually this means the macro was only invoked conditionally." >&2;}
12846 { (exit 1); exit 1; }; }
12849 : ${CONFIG_STATUS=./config.status}
12851 ac_clean_files_save=$ac_clean_files
12852 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12853 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12854 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12855 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12857 # Generated by $as_me.
12858 # Run this file to recreate the current configuration.
12859 # Compiler output produced by configure, useful for debugging
12860 # configure, is in config.log if it exists.
12863 ac_cs_recheck=false
12865 SHELL=\${CONFIG_SHELL-$SHELL}
12868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12869 ## --------------------- ##
12870 ## M4sh Initialization. ##
12871 ## --------------------- ##
12873 # Be more Bourne compatible
12874 DUALCASE=1; export DUALCASE # for MKS sh
12875 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12878 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12879 # is contrary to our usage. Disable this feature.
12880 alias -g '${1+"$@"}'='"$@"'
12881 setopt NO_GLOB_SUBST
12883 case `(set -o) 2>/dev/null` in
12884 *posix*) set -o posix ;;
12893 # Avoid depending upon Character Ranges.
12894 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12895 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12896 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12897 as_cr_digits='0123456789'
12898 as_cr_alnum=$as_cr_Letters$as_cr_digits
12903 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12904 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12905 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12906 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12907 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12908 as_echo='printf %s\n'
12909 as_echo_n='printf %s'
12911 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12912 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12913 as_echo_n='/usr/ucb/echo -n'
12915 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12916 as_echo_n_body='eval
12920 expr "X$arg" : "X\\(.*\\)$as_nl";
12921 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12923 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12925 export as_echo_n_body
12926 as_echo_n='sh -c $as_echo_n_body as_echo'
12928 export as_echo_body
12929 as_echo='sh -c $as_echo_body as_echo'
12932 # The user is always right.
12933 if test "${PATH_SEPARATOR+set}" != set; then
12935 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12936 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12941 # Support unset when possible.
12942 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12950 # We need space, tab and new line, in precisely that order. Quoting is
12951 # there to prevent editors from complaining about space-tab.
12952 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12953 # splitting by setting IFS to empty value.)
12956 # Find who we are. Look in the path if we contain no directory separator.
12958 *[\\/]* ) as_myself=$0 ;;
12959 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12960 for as_dir in $PATH
12963 test -z "$as_dir" && as_dir=.
12964 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12970 # We did not find ourselves, most probably we were run as `sh COMMAND'
12971 # in which case we are not to be found in the path.
12972 if test "x$as_myself" = x; then
12975 if test ! -f "$as_myself"; then
12976 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12977 { (exit 1); exit 1; }
12980 # Work around bugs in pre-3.0 UWIN ksh.
12981 for as_var in ENV MAIL MAILPATH
12982 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12994 # Required to use basename.
12995 if expr a : '\(a\)' >/dev/null 2>&1 &&
12996 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13002 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13003 as_basename=basename
13009 # Name of the executable.
13010 as_me=`$as_basename -- "$0" ||
13011 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13012 X"$0" : 'X\(//\)$' \| \
13013 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13015 sed '/^.*\/\([^/][^/]*\)\/*$/{
13034 as_lineno_1=$LINENO
13035 as_lineno_2=$LINENO
13036 test "x$as_lineno_1" != "x$as_lineno_2" &&
13037 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13039 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13040 # uniformly replaced by the line number. The first 'sed' inserts a
13041 # line-number line after each line using $LINENO; the second 'sed'
13042 # does the real work. The second script uses 'N' to pair each
13043 # line-number line with the line containing $LINENO, and appends
13044 # trailing '-' during substitution so that $LINENO is not a special
13045 # case at line end.
13046 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13047 # scripts with optimization help from Paolo Bonzini. Blame Lee
13048 # E. McMahon (1931-1989) for sed's syntax. :-)
13060 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13063 ' >$as_me.lineno &&
13064 chmod +x "$as_me.lineno" ||
13065 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13066 { (exit 1); exit 1; }; }
13068 # Don't try to exec as it changes $[0], causing all sort of problems
13069 # (the dirname of $[0] is not the place where we might find the
13070 # original and so on. Autoconf is especially sensitive to this).
13071 . "./$as_me.lineno"
13072 # Exit status is that of the last command.
13077 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13083 ECHO_C= ECHO_N= ECHO_T=
13084 case `echo -n x` in
13086 case `echo 'x\c'` in
13087 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13093 if expr a : '\(a\)' >/dev/null 2>&1 &&
13094 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13100 rm -f conf$$ conf$$.exe conf$$.file
13101 if test -d conf$$.dir; then
13102 rm -f conf$$.dir/conf$$.file
13105 mkdir conf$$.dir 2>/dev/null
13107 if (echo >conf$$.file) 2>/dev/null; then
13108 if ln -s conf$$.file conf$$ 2>/dev/null; then
13110 # ... but there are two gotchas:
13111 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13112 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13113 # In both cases, we have to default to `cp -p'.
13114 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13116 elif ln conf$$.file conf$$ 2>/dev/null; then
13124 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13125 rmdir conf$$.dir 2>/dev/null
13127 if mkdir -p . 2>/dev/null; then
13130 test -d ./-p && rmdir ./-p
13134 if test -x / >/dev/null 2>&1; then
13135 as_test_x='test -x'
13137 if ls -dL / >/dev/null 2>&1; then
13144 if test -d "$1"; then
13150 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13151 ???[sx]*):;;*)false;;esac;fi
13155 as_executable_p=$as_test_x
13157 # Sed expression to map a string onto a valid CPP name.
13158 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13160 # Sed expression to map a string onto a valid variable name.
13161 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13166 # Save the log message, to keep $[0] and so on meaningful, and to
13167 # report actual input values of CONFIG_FILES etc. instead of their
13168 # values after options handling.
13170 This file was extended by newlib $as_me 1.18.0, which was
13171 generated by GNU Autoconf 2.63. Invocation command line was
13173 CONFIG_FILES = $CONFIG_FILES
13174 CONFIG_HEADERS = $CONFIG_HEADERS
13175 CONFIG_LINKS = $CONFIG_LINKS
13176 CONFIG_COMMANDS = $CONFIG_COMMANDS
13179 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13184 case $ac_config_files in *"
13185 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13190 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13191 # Files that config.status was made for.
13192 config_files="$ac_config_files"
13193 config_commands="$ac_config_commands"
13197 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13199 \`$as_me' instantiates files from templates according to the
13200 current configuration.
13202 Usage: $0 [OPTION]... [FILE]...
13204 -h, --help print this help, then exit
13205 -V, --version print version number and configuration settings, then exit
13206 -q, --quiet, --silent
13207 do not print progress messages
13208 -d, --debug don't remove temporary files
13209 --recheck update $as_me by reconfiguring in the same conditions
13210 --file=FILE[:TEMPLATE]
13211 instantiate the configuration file FILE
13213 Configuration files:
13216 Configuration commands:
13219 Report bugs to <bug-autoconf@gnu.org>."
13222 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13224 newlib config.status 1.18.0
13225 configured by $0, generated by GNU Autoconf 2.63,
13226 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13228 Copyright (C) 2008 Free Software Foundation, Inc.
13229 This config.status script is free software; the Free Software Foundation
13230 gives unlimited permission to copy, distribute and modify it."
13237 test -n "\$AWK" || AWK=awk
13240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13241 # The default lists apply if the user does not specify any file.
13247 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13248 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13259 # Handling of the options.
13260 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13262 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13263 $as_echo "$ac_cs_version"; exit ;;
13264 --debug | --debu | --deb | --de | --d | -d )
13266 --file | --fil | --fi | --f )
13269 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13271 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13272 ac_need_defaults=false;;
13273 --he | --h | --help | --hel | -h )
13274 $as_echo "$ac_cs_usage"; exit ;;
13275 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13276 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13279 # This is an error.
13280 -*) { $as_echo "$as_me: error: unrecognized option: $1
13281 Try \`$0 --help' for more information." >&2
13282 { (exit 1); exit 1; }; } ;;
13284 *) ac_config_targets="$ac_config_targets $1"
13285 ac_need_defaults=false ;;
13291 ac_configure_extra_args=
13293 if $ac_cs_silent; then
13295 ac_configure_extra_args="$ac_configure_extra_args --silent"
13299 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13300 if \$ac_cs_recheck; then
13301 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13303 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13304 CONFIG_SHELL='$SHELL'
13305 export CONFIG_SHELL
13310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13314 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13315 ## Running $as_me. ##
13321 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13325 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13328 # The HP-UX ksh and POSIX shell print the target directory to stdout
13329 # if CDPATH is set.
13330 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13332 sed_quote_subst='$sed_quote_subst'
13333 double_quote_subst='$double_quote_subst'
13334 delay_variable_subst='$delay_variable_subst'
13335 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13336 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13337 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
13338 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13339 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13340 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13341 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13342 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13343 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13344 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13345 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13346 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13347 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13348 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13349 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13350 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13351 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13352 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13353 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13354 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13355 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13356 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13357 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13358 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13359 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13360 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13361 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13362 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13363 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13364 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13365 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13366 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13367 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13368 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13369 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13370 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13371 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13372 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13373 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13374 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13375 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13376 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13377 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13378 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13379 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13380 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13381 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"`'
13382 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"`'
13383 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13384 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13385 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13386 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13387 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13388 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13389 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13390 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13391 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13392 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13393 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13394 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13395 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13396 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13397 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13398 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13399 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13400 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13401 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13402 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13403 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13404 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13405 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13406 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13407 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13408 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13409 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13410 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13411 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13412 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13413 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13414 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13415 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13416 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13417 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13418 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13419 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13420 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13421 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13422 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13423 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13424 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13425 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13426 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13427 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13428 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13429 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13430 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13431 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13432 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13433 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13434 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13435 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13436 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13437 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13438 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13439 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13440 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13441 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13442 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13443 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13444 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13445 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13446 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13447 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13448 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13449 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13450 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13451 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13452 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13453 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13454 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13457 LTCFLAGS='$LTCFLAGS'
13458 compiler='$compiler_DEFAULT'
13460 # Quote evaled strings.
13471 deplibs_check_method \
13480 lt_cv_sys_global_symbol_pipe \
13481 lt_cv_sys_global_symbol_to_cdecl \
13482 lt_cv_sys_global_symbol_to_c_name_address \
13483 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13486 lt_prog_compiler_no_builtin_flag \
13487 lt_prog_compiler_wl \
13488 lt_prog_compiler_pic \
13489 lt_prog_compiler_static \
13490 lt_cv_prog_compiler_c_o \
13498 export_dynamic_flag_spec \
13499 whole_archive_flag_spec \
13500 compiler_needs_object \
13502 allow_undefined_flag \
13503 no_undefined_flag \
13504 hardcode_libdir_flag_spec \
13505 hardcode_libdir_flag_spec_ld \
13506 hardcode_libdir_separator \
13511 variables_saved_for_relink \
13513 library_names_spec \
13518 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13519 *[\\\\\\\`\\"\\\$]*)
13520 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13523 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13528 # Double-quote double-evaled strings.
13529 for var in reload_cmds \
13530 old_postinstall_cmds \
13531 old_postuninstall_cmds \
13533 extract_expsyms_cmds \
13534 old_archive_from_new_cmds \
13535 old_archive_from_expsyms_cmds \
13537 archive_expsym_cmds \
13539 module_expsym_cmds \
13540 export_symbols_cmds \
13543 postuninstall_cmds \
13545 sys_lib_search_path_spec \
13546 sys_lib_dlsearch_path_spec; do
13547 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13548 *[\\\\\\\`\\"\\\$]*)
13549 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13552 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13557 # Fix-up fallback echo if it was mangled by the above quoting rules.
13559 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13563 ac_aux_dir='$ac_aux_dir'
13564 xsi_shell='$xsi_shell'
13565 lt_shell_append='$lt_shell_append'
13567 # See if we are running on zsh, and set the options which allow our
13568 # commands through without removal of \ escapes INIT.
13569 if test -n "\${ZSH_VERSION+set}" ; then
13570 setopt NO_GLOB_SUBST
13576 TIMESTAMP='$TIMESTAMP'
13585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13587 # Handling of arguments.
13588 for ac_config_target in $ac_config_targets
13590 case $ac_config_target in
13591 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13592 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13593 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13595 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13596 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13597 { (exit 1); exit 1; }; };;
13602 # If the user did not use the arguments to specify the items to instantiate,
13603 # then the envvar interface is used. Set only those that are not.
13604 # We use the long form for the default assignment because of an extremely
13605 # bizarre bug on SunOS 4.1.3.
13606 if $ac_need_defaults; then
13607 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13608 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13611 # Have a temporary directory for convenience. Make it in the build tree
13612 # simply because there is no reason against having it here, and in addition,
13613 # creating and moving files from /tmp can sometimes cause problems.
13614 # Hook for its removal unless debugging.
13615 # Note that there is a small window in which the directory will not be cleaned:
13616 # after its creation but before its name has been assigned to `$tmp'.
13620 trap 'exit_status=$?
13621 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13623 trap '{ (exit 1); exit 1; }' 1 2 13 15
13625 # Create a (secure) tmp directory for tmp files.
13628 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13629 test -n "$tmp" && test -d "$tmp"
13632 tmp=./conf$$-$RANDOM
13633 (umask 077 && mkdir "$tmp")
13636 $as_echo "$as_me: cannot create a temporary directory in ." >&2
13637 { (exit 1); exit 1; }
13640 # Set up the scripts for CONFIG_FILES section.
13641 # No need to generate them if there are no CONFIG_FILES.
13642 # This happens for instance with `./config.status config.h'.
13643 if test -n "$CONFIG_FILES"; then
13647 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13648 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13651 ac_cs_awk_cr=$ac_cr
13654 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13659 echo "cat >conf$$subs.awk <<_ACEOF" &&
13660 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13662 } >conf$$subs.sh ||
13663 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13664 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13665 { (exit 1); exit 1; }; }
13666 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13668 for ac_last_try in false false false false false :; do
13669 . ./conf$$subs.sh ||
13670 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13671 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13672 { (exit 1); exit 1; }; }
13674 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13675 if test $ac_delim_n = $ac_delim_num; then
13677 elif $ac_last_try; then
13678 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13679 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13680 { (exit 1); exit 1; }; }
13682 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13685 rm -f conf$$subs.sh
13687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13688 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13692 s/^/S["/; s/!.*/"]=/
13702 s/\(.\{148\}\).*/\1/
13704 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13709 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13716 s/\(.\{148\}\).*/\1/
13718 s/["\\]/\\&/g; s/^/"/; s/$/"/
13722 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13727 ' <conf$$subs.awk | sed '
13732 ' >>$CONFIG_STATUS || ac_write_fail=1
13733 rm -f conf$$subs.awk
13734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13736 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13737 for (key in S) S_is_set[key] = 1
13743 nfields = split(line, field, "@")
13745 len = length(field[1])
13746 for (i = 2; i < nfields; i++) {
13748 keylen = length(key)
13749 if (S_is_set[key]) {
13751 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13752 len += length(value) + length(field[++i])
13763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13764 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13765 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13768 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13769 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13770 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
13771 { (exit 1); exit 1; }; }
13774 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13775 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13776 # trailing colons and then remove the whole line if VPATH becomes empty
13777 # (actually we leave an empty line to preserve line numbers).
13778 if test "x$srcdir" = x.; then
13779 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13780 s/:*\$(srcdir):*/:/
13781 s/:*\${srcdir}:*/:/
13783 s/^\([^=]*=[ ]*\):*/\1/
13789 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13790 fi # test -n "$CONFIG_FILES"
13793 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
13798 :[FHLC]) ac_mode=$ac_tag; continue;;
13800 case $ac_mode$ac_tag in
13802 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
13803 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
13804 { (exit 1); exit 1; }; };;
13805 :[FH]-) ac_tag=-:-;;
13806 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13823 -) ac_f="$tmp/stdin";;
13824 *) # Look for the file first in the build tree, then in the source tree
13825 # (if the path is not absolute). The absolute path cannot be DOS-style,
13826 # because $ac_f cannot contain `:'.
13830 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13832 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13833 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13834 { (exit 1); exit 1; }; };;
13836 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13837 ac_file_inputs="$ac_file_inputs '$ac_f'"
13840 # Let's still pretend it is `configure' which instantiates (i.e., don't
13841 # use $as_me), people would be surprised to read:
13842 # /* config.h. Generated by config.status. */
13843 configure_input='Generated from '`
13844 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13846 if test x"$ac_file" != x-; then
13847 configure_input="$ac_file. $configure_input"
13848 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
13849 $as_echo "$as_me: creating $ac_file" >&6;}
13851 # Neutralize special characters interpreted by sed in replacement strings.
13852 case $configure_input in #(
13853 *\&* | *\|* | *\\* )
13854 ac_sed_conf_input=`$as_echo "$configure_input" |
13855 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13856 *) ac_sed_conf_input=$configure_input;;
13860 *:-:* | *:-) cat >"$tmp/stdin" \
13861 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13862 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13863 { (exit 1); exit 1; }; } ;;
13868 ac_dir=`$as_dirname -- "$ac_file" ||
13869 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13870 X"$ac_file" : 'X\(//\)[^/]' \| \
13871 X"$ac_file" : 'X\(//\)$' \| \
13872 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13873 $as_echo X"$ac_file" |
13874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13878 /^X\(\/\/\)[^/].*/{
13893 -*) as_dir=./$as_dir;;
13895 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13899 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13900 *) as_qdir=$as_dir;;
13902 as_dirs="'$as_qdir' $as_dirs"
13903 as_dir=`$as_dirname -- "$as_dir" ||
13904 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13905 X"$as_dir" : 'X\(//\)[^/]' \| \
13906 X"$as_dir" : 'X\(//\)$' \| \
13907 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13908 $as_echo X"$as_dir" |
13909 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13913 /^X\(\/\/\)[^/].*/{
13926 test -d "$as_dir" && break
13928 test -z "$as_dirs" || eval "mkdir $as_dirs"
13929 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13930 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13931 { (exit 1); exit 1; }; }; }
13935 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13937 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13938 # A ".." for each directory in $ac_dir_suffix.
13939 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13940 case $ac_top_builddir_sub in
13941 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13942 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13945 ac_abs_top_builddir=$ac_pwd
13946 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13947 # for backward compatibility:
13948 ac_top_builddir=$ac_top_build_prefix
13951 .) # We are building in place.
13953 ac_top_srcdir=$ac_top_builddir_sub
13954 ac_abs_top_srcdir=$ac_pwd ;;
13955 [\\/]* | ?:[\\/]* ) # Absolute name.
13956 ac_srcdir=$srcdir$ac_dir_suffix;
13957 ac_top_srcdir=$srcdir
13958 ac_abs_top_srcdir=$srcdir ;;
13959 *) # Relative name.
13960 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13961 ac_top_srcdir=$ac_top_build_prefix$srcdir
13962 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13964 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13974 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13975 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13977 ac_MKDIR_P=$MKDIR_P
13979 [\\/$]* | ?:[\\/]* ) ;;
13980 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13984 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13985 # If the template does not know about datarootdir, expand it.
13986 # FIXME: This hack should be removed a few years after 2.60.
13987 ac_datarootdir_hack=; ac_datarootdir_seen=
14000 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14001 *datarootdir*) ac_datarootdir_seen=yes;;
14002 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14003 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14004 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14006 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14007 ac_datarootdir_hack='
14008 s&@datadir@&$datadir&g
14009 s&@docdir@&$docdir&g
14010 s&@infodir@&$infodir&g
14011 s&@localedir@&$localedir&g
14012 s&@mandir@&$mandir&g
14013 s&\\\${datarootdir}&$datarootdir&g' ;;
14017 # Neutralize VPATH when `$srcdir' = `.'.
14018 # Shell code in configure.ac might set extrasub.
14019 # FIXME: do we really want to maintain this feature?
14020 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14021 ac_sed_extra="$ac_vpsub
14024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14026 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14027 s|@configure_input@|$ac_sed_conf_input|;t t
14028 s&@top_builddir@&$ac_top_builddir_sub&;t t
14029 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14030 s&@srcdir@&$ac_srcdir&;t t
14031 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14032 s&@top_srcdir@&$ac_top_srcdir&;t t
14033 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14034 s&@builddir@&$ac_builddir&;t t
14035 s&@abs_builddir@&$ac_abs_builddir&;t t
14036 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14037 s&@INSTALL@&$ac_INSTALL&;t t
14038 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14039 $ac_datarootdir_hack
14041 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14042 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14043 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14044 { (exit 1); exit 1; }; }
14046 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14047 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14048 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14049 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14050 which seems to be undefined. Please make sure it is defined." >&5
14051 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14052 which seems to be undefined. Please make sure it is defined." >&2;}
14056 -) cat "$tmp/out" && rm -f "$tmp/out";;
14057 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14059 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14060 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14061 { (exit 1); exit 1; }; }
14065 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14066 $as_echo "$as_me: executing $ac_file commands" >&6;}
14071 case $ac_file$ac_mode in
14072 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14073 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14074 # are listed without --file. Let's play safe and only enable the eval
14075 # if we detect the quoting.
14076 case $CONFIG_FILES in
14077 *\'*) eval set x "$CONFIG_FILES" ;;
14078 *) set x $CONFIG_FILES ;;
14083 # Strip MF so we end up with the name of the file.
14084 mf=`echo "$mf" | sed -e 's/:.*$//'`
14085 # Check whether this is an Automake generated Makefile or not.
14086 # We used to match only the files named `Makefile.in', but
14087 # some people rename them; so instead we look at the file content.
14088 # Grep'ing the first line is not enough: some people post-process
14089 # each Makefile.in and add a new line on top of each file to say so.
14090 # Grep'ing the whole file is not good either: AIX grep has a line
14091 # limit of 2048, but all sed's we know have understand at least 4000.
14092 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14093 dirpart=`$as_dirname -- "$mf" ||
14094 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14095 X"$mf" : 'X\(//\)[^/]' \| \
14096 X"$mf" : 'X\(//\)$' \| \
14097 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14103 /^X\(\/\/\)[^/].*/{
14119 # Extract the definition of DEPDIR, am__include, and am__quote
14120 # from the Makefile without running `make'.
14121 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14122 test -z "$DEPDIR" && continue
14123 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14124 test -z "am__include" && continue
14125 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14126 # When using ansi2knr, U may be empty or an underscore; expand it
14127 U=`sed -n 's/^U = //p' < "$mf"`
14128 # Find all dependency output files, they are included files with
14129 # $(DEPDIR) in their names. We invoke sed twice because it is the
14130 # simplest approach to changing $(DEPDIR) to its actual value in the
14132 for file in `sed -n "
14133 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14134 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14135 # Make sure the directory exists.
14136 test -f "$dirpart/$file" && continue
14137 fdir=`$as_dirname -- "$file" ||
14138 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14139 X"$file" : 'X\(//\)[^/]' \| \
14140 X"$file" : 'X\(//\)$' \| \
14141 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14142 $as_echo X"$file" |
14143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14147 /^X\(\/\/\)[^/].*/{
14160 { as_dir=$dirpart/$fdir
14162 -*) as_dir=./$as_dir;;
14164 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14168 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14169 *) as_qdir=$as_dir;;
14171 as_dirs="'$as_qdir' $as_dirs"
14172 as_dir=`$as_dirname -- "$as_dir" ||
14173 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14174 X"$as_dir" : 'X\(//\)[^/]' \| \
14175 X"$as_dir" : 'X\(//\)$' \| \
14176 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14177 $as_echo X"$as_dir" |
14178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14182 /^X\(\/\/\)[^/].*/{
14195 test -d "$as_dir" && break
14197 test -z "$as_dirs" || eval "mkdir $as_dirs"
14198 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14199 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14200 { (exit 1); exit 1; }; }; }
14201 # echo "creating $dirpart/$file"
14202 echo '# dummy' > "$dirpart/$file"
14209 # See if we are running on zsh, and set the options which allow our
14210 # commands through without removal of \ escapes.
14211 if test -n "${ZSH_VERSION+set}" ; then
14212 setopt NO_GLOB_SUBST
14215 cfgfile="${ofile}T"
14216 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14219 cat <<_LT_EOF >> "$cfgfile"
14222 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14223 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14224 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14225 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14227 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14228 # 2006, 2007, 2008 Free Software Foundation, Inc.
14229 # Written by Gordon Matzigkeit, 1996
14231 # This file is part of GNU Libtool.
14233 # GNU Libtool is free software; you can redistribute it and/or
14234 # modify it under the terms of the GNU General Public License as
14235 # published by the Free Software Foundation; either version 2 of
14236 # the License, or (at your option) any later version.
14238 # As a special exception to the GNU General Public License,
14239 # if you distribute this file as part of a program or library that
14240 # is built using GNU Libtool, you may include this file under the
14241 # same distribution terms that you use for the rest of that program.
14243 # GNU Libtool is distributed in the hope that it will be useful,
14244 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14245 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14246 # GNU General Public License for more details.
14248 # You should have received a copy of the GNU General Public License
14249 # along with GNU Libtool; see the file COPYING. If not, a copy
14250 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14251 # obtained by writing to the Free Software Foundation, Inc.,
14252 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14255 # The names of the tagged configurations supported by this script.
14258 # ### BEGIN LIBTOOL CONFIG
14260 # A sed program that does not truncate output.
14263 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14264 Xsed="\$SED -e 1s/^X//"
14266 # Assembler program.
14269 # DLL creation program.
14272 # Object dumper program.
14275 # Which release of libtool.m4 was used?
14276 macro_version=$macro_version
14277 macro_revision=$macro_revision
14279 # Whether or not to build shared libraries.
14280 build_libtool_libs=$enable_shared
14282 # Whether or not to build static libraries.
14283 build_old_libs=$enable_static
14285 # What type of objects to build.
14288 # Whether or not to optimize for fast installation.
14289 fast_install=$enable_fast_install
14292 host_alias=$host_alias
14296 # The build system.
14297 build_alias=$build_alias
14301 # A grep program that handles long lines.
14307 # A literal string matcher.
14310 # A BSD- or MS-compatible name lister.
14313 # Whether we need soft or hard links.
14316 # What is the maximum length of a command?
14317 max_cmd_len=$max_cmd_len
14319 # Object file suffix (normally "o").
14322 # Executable file suffix (normally "").
14325 # whether the shell understands "unset".
14328 # turn spaces into newlines.
14331 # turn newlines into spaces.
14334 # How to create reloadable object files.
14335 reload_flag=$lt_reload_flag
14336 reload_cmds=$lt_reload_cmds
14338 # Method to check whether dependent libraries are shared objects.
14339 deplibs_check_method=$lt_deplibs_check_method
14341 # Command to use when deplibs_check_method == "file_magic".
14342 file_magic_cmd=$lt_file_magic_cmd
14346 AR_FLAGS=$lt_AR_FLAGS
14348 # A symbol stripping program.
14351 # Commands used to install an old-style archive.
14353 old_postinstall_cmds=$lt_old_postinstall_cmds
14354 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14359 # LTCC compiler flags.
14360 LTCFLAGS=$lt_CFLAGS
14362 # Take the output of nm and produce a listing of raw symbols and C names.
14363 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14365 # Transform the output of nm in a proper C declaration.
14366 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14368 # Transform the output of nm in a C name address pair.
14369 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14371 # Transform the output of nm in a C name address pair when lib prefix is needed.
14372 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14374 # The name of the directory that contains temporary libtool files.
14377 # Shell to use when invoking shell scripts.
14380 # An echo program that does not interpret backslashes.
14383 # Used to examine libraries when file_magic_cmd begins with "file".
14384 MAGIC_CMD=$MAGIC_CMD
14386 # Must we lock files when doing compilation?
14387 need_locks=$lt_need_locks
14389 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14390 DSYMUTIL=$lt_DSYMUTIL
14392 # Tool to change global to local symbols on Mac OS X.
14395 # Tool to manipulate fat objects and archives on Mac OS X.
14398 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14401 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14402 OTOOL64=$lt_OTOOL64
14404 # Old archive suffix (normally "a").
14407 # Shared library suffix (normally ".so").
14408 shrext_cmds=$lt_shrext_cmds
14410 # The commands to extract the exported symbol list from a shared archive.
14411 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14413 # Variables whose values should be saved in libtool wrapper scripts and
14414 # restored at link time.
14415 variables_saved_for_relink=$lt_variables_saved_for_relink
14417 # Do we need the "lib" prefix for modules?
14418 need_lib_prefix=$need_lib_prefix
14420 # Do we need a version for libraries?
14421 need_version=$need_version
14423 # Library versioning type.
14424 version_type=$version_type
14426 # Shared library runtime path variable.
14427 runpath_var=$runpath_var
14429 # Shared library path variable.
14430 shlibpath_var=$shlibpath_var
14432 # Is shlibpath searched before the hard-coded library search path?
14433 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14435 # Format of library name prefix.
14436 libname_spec=$lt_libname_spec
14438 # List of archive names. First name is the real one, the rest are links.
14439 # The last name is the one that the linker finds with -lNAME
14440 library_names_spec=$lt_library_names_spec
14442 # The coded name of the library, if different from the real name.
14443 soname_spec=$lt_soname_spec
14445 # Command to use after installation of a shared archive.
14446 postinstall_cmds=$lt_postinstall_cmds
14448 # Command to use after uninstallation of a shared archive.
14449 postuninstall_cmds=$lt_postuninstall_cmds
14451 # Commands used to finish a libtool library installation in a directory.
14452 finish_cmds=$lt_finish_cmds
14454 # As "finish_cmds", except a single script fragment to be evaled but
14456 finish_eval=$lt_finish_eval
14458 # Whether we should hardcode library paths into libraries.
14459 hardcode_into_libs=$hardcode_into_libs
14461 # Compile-time system search path for libraries.
14462 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14464 # Run-time system search path for libraries.
14465 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14467 # Whether dlopen is supported.
14468 dlopen_support=$enable_dlopen
14470 # Whether dlopen of programs is supported.
14471 dlopen_self=$enable_dlopen_self
14473 # Whether dlopen of statically linked programs is supported.
14474 dlopen_self_static=$enable_dlopen_self_static
14476 # Commands to strip libraries.
14477 old_striplib=$lt_old_striplib
14478 striplib=$lt_striplib
14481 # The linker used to build libraries.
14484 # Commands used to build an old-style archive.
14485 old_archive_cmds=$lt_old_archive_cmds
14487 # A language specific compiler.
14490 # Is the compiler the GNU compiler?
14493 # Compiler flag to turn off builtin functions.
14494 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14496 # How to pass a linker flag through the compiler.
14497 wl=$lt_lt_prog_compiler_wl
14499 # Additional compiler flags for building library objects.
14500 pic_flag=$lt_lt_prog_compiler_pic
14502 # Compiler flag to prevent dynamic linking.
14503 link_static_flag=$lt_lt_prog_compiler_static
14505 # Does compiler simultaneously support -c and -o options?
14506 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14508 # Whether or not to add -lc for building shared libraries.
14509 build_libtool_need_lc=$archive_cmds_need_lc
14511 # Whether or not to disallow shared libs when runtime libs are static.
14512 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14514 # Compiler flag to allow reflexive dlopens.
14515 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14517 # Compiler flag to generate shared objects directly from archives.
14518 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14520 # Whether the compiler copes with passing no objects directly.
14521 compiler_needs_object=$lt_compiler_needs_object
14523 # Create an old-style archive from a shared archive.
14524 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14526 # Create a temporary old-style archive to link instead of a shared archive.
14527 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14529 # Commands used to build a shared archive.
14530 archive_cmds=$lt_archive_cmds
14531 archive_expsym_cmds=$lt_archive_expsym_cmds
14533 # Commands used to build a loadable module if different from building
14534 # a shared archive.
14535 module_cmds=$lt_module_cmds
14536 module_expsym_cmds=$lt_module_expsym_cmds
14538 # Whether we are building with GNU ld or not.
14539 with_gnu_ld=$lt_with_gnu_ld
14541 # Flag that allows shared libraries with undefined symbols to be built.
14542 allow_undefined_flag=$lt_allow_undefined_flag
14544 # Flag that enforces no undefined symbols.
14545 no_undefined_flag=$lt_no_undefined_flag
14547 # Flag to hardcode \$libdir into a binary during linking.
14548 # This must work even if \$libdir does not exist
14549 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14551 # If ld is used when linking, flag to hardcode \$libdir into a binary
14552 # during linking. This must work even if \$libdir does not exist.
14553 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14555 # Whether we need a single "-rpath" flag with a separated argument.
14556 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14558 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14559 # DIR into the resulting binary.
14560 hardcode_direct=$hardcode_direct
14562 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14563 # DIR into the resulting binary and the resulting library dependency is
14564 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14565 # library is relocated.
14566 hardcode_direct_absolute=$hardcode_direct_absolute
14568 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14569 # into the resulting binary.
14570 hardcode_minus_L=$hardcode_minus_L
14572 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14573 # into the resulting binary.
14574 hardcode_shlibpath_var=$hardcode_shlibpath_var
14576 # Set to "yes" if building a shared library automatically hardcodes DIR
14577 # into the library and all subsequent libraries and executables linked
14579 hardcode_automatic=$hardcode_automatic
14581 # Set to yes if linker adds runtime paths of dependent libraries
14582 # to runtime path list.
14583 inherit_rpath=$inherit_rpath
14585 # Whether libtool must link a program against all its dependency libraries.
14586 link_all_deplibs=$link_all_deplibs
14588 # Fix the shell variable \$srcfile for the compiler.
14589 fix_srcfile_path=$lt_fix_srcfile_path
14591 # Set to "yes" if exported symbols are required.
14592 always_export_symbols=$always_export_symbols
14594 # The commands to list exported symbols.
14595 export_symbols_cmds=$lt_export_symbols_cmds
14597 # Symbols that should not be listed in the preloaded symbols.
14598 exclude_expsyms=$lt_exclude_expsyms
14600 # Symbols that must always be exported.
14601 include_expsyms=$lt_include_expsyms
14603 # Commands necessary for linking programs (against libraries) with templates.
14604 prelink_cmds=$lt_prelink_cmds
14606 # Specify filename containing input files.
14607 file_list_spec=$lt_file_list_spec
14609 # How to hardcode a shared library path into an executable.
14610 hardcode_action=$hardcode_action
14612 # ### END LIBTOOL CONFIG
14618 cat <<\_LT_EOF >> "$cfgfile"
14619 # AIX sometimes has problems with the GCC collect2 program. For some
14620 # reason, if we set the COLLECT_NAMES environment variable, the problems
14621 # vanish in a puff of smoke.
14622 if test "X${COLLECT_NAMES+set}" != Xset; then
14624 export COLLECT_NAMES
14631 ltmain="$ac_aux_dir/ltmain.sh"
14634 # We use sed instead of cat because bash on DJGPP gets confused if
14635 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14636 # text mode, it properly converts lines to CR/LF. This bash problem
14637 # is reportedly fixed, but why not run on old versions too?
14638 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14639 || (rm -f "$cfgfile"; exit 1)
14643 cat << \_LT_EOF >> "$cfgfile"
14645 # func_dirname file append nondir_replacement
14646 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14647 # otherwise set result to NONDIR_REPLACEMENT.
14651 */*) func_dirname_result="${1%/*}${2}" ;;
14652 * ) func_dirname_result="${3}" ;;
14656 # func_basename file
14659 func_basename_result="${1##*/}"
14662 # func_dirname_and_basename file append nondir_replacement
14663 # perform func_basename and func_dirname in a single function
14665 # dirname: Compute the dirname of FILE. If nonempty,
14666 # add APPEND to the result, otherwise set result
14667 # to NONDIR_REPLACEMENT.
14668 # value returned in "$func_dirname_result"
14669 # basename: Compute filename of FILE.
14670 # value retuned in "$func_basename_result"
14671 # Implementation must be kept synchronized with func_dirname
14672 # and func_basename. For efficiency, we do not delegate to
14673 # those functions but instead duplicate the functionality here.
14674 func_dirname_and_basename ()
14677 */*) func_dirname_result="${1%/*}${2}" ;;
14678 * ) func_dirname_result="${3}" ;;
14680 func_basename_result="${1##*/}"
14683 # func_stripname prefix suffix name
14684 # strip PREFIX and SUFFIX off of NAME.
14685 # PREFIX and SUFFIX must not contain globbing or regex special
14686 # characters, hashes, percent signs, but SUFFIX may contain a leading
14687 # dot (in which case that matches only a dot).
14690 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14691 # positional parameters, so assign one to ordinary parameter first.
14692 func_stripname_result=${3}
14693 func_stripname_result=${func_stripname_result#"${1}"}
14694 func_stripname_result=${func_stripname_result%"${2}"}
14700 func_opt_split_opt=${1%%=*}
14701 func_opt_split_arg=${1#*=}
14708 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14709 *) func_lo2o_result=${1} ;;
14713 # func_xform libobj-or-source
14716 func_xform_result=${1%.*}.lo
14719 # func_arith arithmetic-term...
14722 func_arith_result=$(( $* ))
14726 # STRING may not start with a hyphen.
14729 func_len_result=${#1}
14734 *) # Bourne compatible functions.
14735 cat << \_LT_EOF >> "$cfgfile"
14737 # func_dirname file append nondir_replacement
14738 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14739 # otherwise set result to NONDIR_REPLACEMENT.
14742 # Extract subdirectory from the argument.
14743 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14744 if test "X$func_dirname_result" = "X${1}"; then
14745 func_dirname_result="${3}"
14747 func_dirname_result="$func_dirname_result${2}"
14751 # func_basename file
14754 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14758 # func_stripname prefix suffix name
14759 # strip PREFIX and SUFFIX off of NAME.
14760 # PREFIX and SUFFIX must not contain globbing or regex special
14761 # characters, hashes, percent signs, but SUFFIX may contain a leading
14762 # dot (in which case that matches only a dot).
14763 # func_strip_suffix prefix name
14767 .*) func_stripname_result=`$ECHO "X${3}" \
14768 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14769 *) func_stripname_result=`$ECHO "X${3}" \
14770 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14775 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14776 my_sed_long_arg='1s/^-[^=]*=//'
14781 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14782 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14788 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14791 # func_xform libobj-or-source
14794 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14797 # func_arith arithmetic-term...
14800 func_arith_result=`expr "$@"`
14804 # STRING may not start with a hyphen.
14807 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14813 case $lt_shell_append in
14815 cat << \_LT_EOF >> "$cfgfile"
14817 # func_append var value
14818 # Append VALUE to the end of shell variable VAR.
14826 cat << \_LT_EOF >> "$cfgfile"
14828 # func_append var value
14829 # Append VALUE to the end of shell variable VAR.
14840 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14841 || (rm -f "$cfgfile"; exit 1)
14843 mv -f "$cfgfile" "$ofile" ||
14844 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14853 { (exit 0); exit 0; }
14855 chmod +x $CONFIG_STATUS
14856 ac_clean_files=$ac_clean_files_save
14858 test $ac_write_fail = 0 ||
14859 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
14860 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
14861 { (exit 1); exit 1; }; }
14864 # configure is writing to config.log, and then calls config.status.
14865 # config.status does its own redirection, appending to config.log.
14866 # Unfortunately, on DOS this fails, as config.log is still kept open
14867 # by configure, so config.status won't be able to write to it; its
14868 # output is simply discarded. So we exec the FD to /dev/null,
14869 # effectively closing config.log, so it can be properly (re)opened and
14870 # appended to by config.status. When coming back to configure, we
14871 # need to make the FD available again.
14872 if test "$no_create" != yes; then
14874 ac_config_status_args=
14875 test "$silent" = yes &&
14876 ac_config_status_args="$ac_config_status_args --quiet"
14878 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14880 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14881 # would make configure fail if this is the last instruction.
14882 $ac_cs_success || { (exit 1); exit 1; }
14886 # CONFIG_SUBDIRS section.
14888 if test "$no_recursion" != yes; then
14890 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
14891 # so they do not pile up.
14892 ac_sub_configure_args=
14894 eval "set x $ac_configure_args"
14898 if test -n "$ac_prev"; then
14903 -cache-file | --cache-file | --cache-fil | --cache-fi \
14904 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
14905 ac_prev=cache_file ;;
14906 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
14907 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
14910 --config-cache | -C)
14912 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
14914 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
14916 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
14918 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
14920 --disable-option-checking)
14924 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14926 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
14930 # Always prepend --prefix to ensure using the same prefix
14931 # in subdir configurations.
14932 ac_arg="--prefix=$prefix"
14934 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14936 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
14939 if test "$silent" = yes; then
14940 ac_sub_configure_args="--silent $ac_sub_configure_args"
14943 # Always prepend --disable-option-checking to silence warnings, since
14944 # different subdirs can have different --enable and --with options.
14945 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
14948 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
14950 # Do not complain, so a configure script can configure whichever
14951 # parts of a large source tree are present.
14952 test -d "$srcdir/$ac_dir" || continue
14954 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
14955 $as_echo "$as_me:$LINENO: $ac_msg" >&5
14956 $as_echo "$ac_msg" >&6
14959 -*) as_dir=./$as_dir;;
14961 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14965 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14966 *) as_qdir=$as_dir;;
14968 as_dirs="'$as_qdir' $as_dirs"
14969 as_dir=`$as_dirname -- "$as_dir" ||
14970 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14971 X"$as_dir" : 'X\(//\)[^/]' \| \
14972 X"$as_dir" : 'X\(//\)$' \| \
14973 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14974 $as_echo X"$as_dir" |
14975 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14979 /^X\(\/\/\)[^/].*/{
14992 test -d "$as_dir" && break
14994 test -z "$as_dirs" || eval "mkdir $as_dirs"
14995 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14996 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14997 { (exit 1); exit 1; }; }; }
15001 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15003 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15004 # A ".." for each directory in $ac_dir_suffix.
15005 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15006 case $ac_top_builddir_sub in
15007 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15008 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15011 ac_abs_top_builddir=$ac_pwd
15012 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15013 # for backward compatibility:
15014 ac_top_builddir=$ac_top_build_prefix
15017 .) # We are building in place.
15019 ac_top_srcdir=$ac_top_builddir_sub
15020 ac_abs_top_srcdir=$ac_pwd ;;
15021 [\\/]* | ?:[\\/]* ) # Absolute name.
15022 ac_srcdir=$srcdir$ac_dir_suffix;
15023 ac_top_srcdir=$srcdir
15024 ac_abs_top_srcdir=$srcdir ;;
15025 *) # Relative name.
15026 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15027 ac_top_srcdir=$ac_top_build_prefix$srcdir
15028 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15030 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15035 # Check for guested configure; otherwise get Cygnus style configure.
15036 if test -f "$ac_srcdir/configure.gnu"; then
15037 ac_sub_configure=$ac_srcdir/configure.gnu
15038 elif test -f "$ac_srcdir/configure"; then
15039 ac_sub_configure=$ac_srcdir/configure
15040 elif test -f "$ac_srcdir/configure.in"; then
15041 # This should be Cygnus configure.
15042 ac_sub_configure=$ac_aux_dir/configure
15044 { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
15045 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
15049 # The recursion is here.
15050 if test -n "$ac_sub_configure"; then
15051 # Make the cache file name correct relative to the subdirectory.
15052 case $cache_file in
15053 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
15054 *) # Relative name.
15055 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
15058 { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
15059 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
15060 # The eval makes quoting arguments work.
15061 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
15062 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
15063 { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
15064 $as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
15065 { (exit 1); exit 1; }; }
15071 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15072 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15073 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}