2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for shellinabox 2.7.
5 # Report bugs to <markus@shellinabox.com>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
98 # Find who we are. Look in the path if we contain no directory separator.
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
182 if test $as_have_required = yes && (eval ":
192 as_func_ret_success () {
195 as_func_ret_failure () {
200 if as_func_success; then
204 echo as_func_success failed.
207 if as_func_failure; then
209 echo as_func_failure succeeded.
212 if as_func_ret_success; then
216 echo as_func_ret_success failed.
219 if as_func_ret_failure; then
221 echo as_func_ret_failure succeeded.
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
228 echo positional parameters were not saved.
231 test \$exitcode = 0) || { (exit 1); exit 1; }
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246 test -z "$as_dir" && as_dir=.
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
279 CONFIG_SHELL=$as_shell
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
307 as_func_ret_success () {
310 as_func_ret_failure () {
315 if as_func_success; then
319 echo as_func_success failed.
322 if as_func_failure; then
324 echo as_func_failure succeeded.
327 if as_func_ret_success; then
331 echo as_func_ret_success failed.
334 if as_func_ret_failure; then
336 echo as_func_ret_failure succeeded.
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
343 echo positional parameters were not saved.
346 test $exitcode = 0) || { (exit 1); exit 1; }
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
387 (eval "as_func_return () {
396 as_func_ret_success () {
399 as_func_ret_failure () {
404 if as_func_success; then
408 echo as_func_success failed.
411 if as_func_failure; then
413 echo as_func_failure succeeded.
416 if as_func_ret_success; then
420 echo as_func_ret_success failed.
423 if as_func_ret_failure; then
425 echo as_func_ret_failure succeeded.
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
432 echo positional parameters were not saved.
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
483 # Exit status is that of the last command.
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
494 ECHO_C= ECHO_N= ECHO_T=
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
516 mkdir conf$$.dir 2>/dev/null
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527 elif ln conf$$.file conf$$ 2>/dev/null; then
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
538 if mkdir -p . 2>/dev/null; then
541 test -d ./-p && rmdir ./-p
545 if test -x / >/dev/null 2>&1; then
548 if ls -dL / >/dev/null 2>&1; then
555 if test -d "$1"; then
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
566 as_executable_p=$as_test_x
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
588 if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
591 elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
594 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $echo works!
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
602 if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
615 if test -z "$ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
621 echo_test_string=`eval $cmd` &&
622 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
629 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
630 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
631 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # The Solaris, AIX, and Digital Unix default echo programs unquote
635 # backslashes. This makes it impossible to quote backslashes using
636 # echo "$something" | sed 's/\\/\\\\/g'
638 # So, first we look for a working echo in the user's PATH.
640 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
641 for dir in $PATH /usr/ucb; do
643 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
644 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
645 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
646 test "X$echo_testing_string" = "X$echo_test_string"; then
653 if test "X$echo" = Xecho; then
654 # We didn't find a better echo, so look for alternatives.
655 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
656 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 # This shell has a builtin print -r that does the trick.
660 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
661 test "X$CONFIG_SHELL" != X/bin/ksh; then
662 # If we have ksh, try running configure again with it.
663 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
664 export ORIGINAL_CONFIG_SHELL
665 CONFIG_SHELL=/bin/ksh
667 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
671 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
672 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
673 test "X$echo_testing_string" = "X$echo_test_string"; then
676 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
677 test "X$echo_testing_string" = 'X\t' &&
678 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
679 test "X$echo_testing_string" = "X$echo_test_string"; then
680 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
682 SHELL="$CONFIG_SHELL"
684 echo="$CONFIG_SHELL $0 --fallback-echo"
685 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
686 test "X$echo_testing_string" = 'X\t' &&
687 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
688 test "X$echo_testing_string" = "X$echo_test_string"; then
689 echo="$CONFIG_SHELL $0 --fallback-echo"
691 # maybe with a smaller string...
694 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
695 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
702 if test "$prev" != 'sed 50q "$0"'; then
703 echo_test_string=`eval $prev`
704 export echo_test_string
705 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
707 # Oops. We lost completely, so just stick with echo.
716 # Copy echo and quote the copy suitably for passing to libtool from
717 # the Makefile, instead of quoting the original, which is used later.
719 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
720 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
726 tagnames=${tagnames+${tagnames},}CXX
728 tagnames=${tagnames+${tagnames},}F77
730 exec 7<&0 </dev/null 6>&1
733 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
734 # so uname gets run too.
735 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
740 ac_default_prefix=/usr/local
742 ac_config_libobj_dir=.
748 SHELL=${CONFIG_SHELL-/bin/sh}
750 # Identity of this package.
751 PACKAGE_NAME='shellinabox'
752 PACKAGE_TARNAME='shellinabox'
753 PACKAGE_VERSION='2.7'
754 PACKAGE_STRING='shellinabox 2.7'
755 PACKAGE_BUGREPORT='markus@shellinabox.com'
758 # Factoring default headers for most tests.
759 ac_includes_default="\
761 #ifdef HAVE_SYS_TYPES_H
762 # include <sys/types.h>
764 #ifdef HAVE_SYS_STAT_H
765 # include <sys/stat.h>
771 # ifdef HAVE_STDLIB_H
776 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
781 #ifdef HAVE_STRINGS_H
782 # include <strings.h>
784 #ifdef HAVE_INTTYPES_H
785 # include <inttypes.h>
794 ac_subst_vars='LTLIBOBJS
850 INSTALL_STRIP_PROGRAM
893 program_transform_name
905 enable_option_checking
906 enable_dependency_tracking
916 enable_runtime_loading
918 ac_precious_vars='build_alias
935 # Initialize some variables set by options.
937 ac_init_version=false
938 ac_unrecognized_opts=
940 # The variables have the same names as the options, with
941 # dashes changed to underlines.
949 program_transform_name=s,x,x,
957 # Installation directory options.
958 # These are left unexpanded so users can "make install exec_prefix=/foo"
959 # and all the variables that are supposed to be based on exec_prefix
960 # by default will actually change.
961 # Use braces instead of parens because sh, perl, etc. also accept them.
962 # (The list follows the same order as the GNU Coding Standards.)
963 bindir='${exec_prefix}/bin'
964 sbindir='${exec_prefix}/sbin'
965 libexecdir='${exec_prefix}/libexec'
966 datarootdir='${prefix}/share'
967 datadir='${datarootdir}'
968 sysconfdir='${prefix}/etc'
969 sharedstatedir='${prefix}/com'
970 localstatedir='${prefix}/var'
971 includedir='${prefix}/include'
972 oldincludedir='/usr/include'
973 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
974 infodir='${datarootdir}/info'
979 libdir='${exec_prefix}/lib'
980 localedir='${datarootdir}/locale'
981 mandir='${datarootdir}/man'
987 # If the previous option needs an argument, assign it.
988 if test -n "$ac_prev"; then
989 eval $ac_prev=\$ac_option
995 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
999 # Accept the important Cygnus configure options, so we can diagnose typos.
1001 case $ac_dashdash$ac_option in
1005 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1007 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1008 bindir=$ac_optarg ;;
1010 -build | --build | --buil | --bui | --bu)
1011 ac_prev=build_alias ;;
1012 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1013 build_alias=$ac_optarg ;;
1015 -cache-file | --cache-file | --cache-fil | --cache-fi \
1016 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1017 ac_prev=cache_file ;;
1018 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1019 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1020 cache_file=$ac_optarg ;;
1022 --config-cache | -C)
1023 cache_file=config.cache ;;
1025 -datadir | --datadir | --datadi | --datad)
1027 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1028 datadir=$ac_optarg ;;
1030 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1031 | --dataroo | --dataro | --datar)
1032 ac_prev=datarootdir ;;
1033 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1034 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1035 datarootdir=$ac_optarg ;;
1037 -disable-* | --disable-*)
1038 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1039 # Reject names that are not valid shell variable names.
1040 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1041 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1042 { (exit 1); exit 1; }; }
1043 ac_useropt_orig=$ac_useropt
1044 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1045 case $ac_user_opts in
1047 "enable_$ac_useropt"
1049 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1050 ac_unrecognized_sep=', ';;
1052 eval enable_$ac_useropt=no ;;
1054 -docdir | --docdir | --docdi | --doc | --do)
1056 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1057 docdir=$ac_optarg ;;
1059 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1061 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1062 dvidir=$ac_optarg ;;
1064 -enable-* | --enable-*)
1065 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
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--enable-$ac_useropt_orig"
1077 ac_unrecognized_sep=', ';;
1079 eval enable_$ac_useropt=\$ac_optarg ;;
1081 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1082 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1083 | --exec | --exe | --ex)
1084 ac_prev=exec_prefix ;;
1085 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1086 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1087 | --exec=* | --exe=* | --ex=*)
1088 exec_prefix=$ac_optarg ;;
1090 -gas | --gas | --ga | --g)
1091 # Obsolete; use --with-gas.
1094 -help | --help | --hel | --he | -h)
1095 ac_init_help=long ;;
1096 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1097 ac_init_help=recursive ;;
1098 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1099 ac_init_help=short ;;
1101 -host | --host | --hos | --ho)
1102 ac_prev=host_alias ;;
1103 -host=* | --host=* | --hos=* | --ho=*)
1104 host_alias=$ac_optarg ;;
1106 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1108 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1110 htmldir=$ac_optarg ;;
1112 -includedir | --includedir | --includedi | --included | --include \
1113 | --includ | --inclu | --incl | --inc)
1114 ac_prev=includedir ;;
1115 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1116 | --includ=* | --inclu=* | --incl=* | --inc=*)
1117 includedir=$ac_optarg ;;
1119 -infodir | --infodir | --infodi | --infod | --info | --inf)
1121 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1122 infodir=$ac_optarg ;;
1124 -libdir | --libdir | --libdi | --libd)
1126 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1127 libdir=$ac_optarg ;;
1129 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1130 | --libexe | --libex | --libe)
1131 ac_prev=libexecdir ;;
1132 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1133 | --libexe=* | --libex=* | --libe=*)
1134 libexecdir=$ac_optarg ;;
1136 -localedir | --localedir | --localedi | --localed | --locale)
1137 ac_prev=localedir ;;
1138 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1139 localedir=$ac_optarg ;;
1141 -localstatedir | --localstatedir | --localstatedi | --localstated \
1142 | --localstate | --localstat | --localsta | --localst | --locals)
1143 ac_prev=localstatedir ;;
1144 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1145 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1146 localstatedir=$ac_optarg ;;
1148 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1150 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1151 mandir=$ac_optarg ;;
1153 -nfp | --nfp | --nf)
1154 # Obsolete; use --without-fp.
1157 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1158 | --no-cr | --no-c | -n)
1161 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1162 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1165 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1166 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1167 | --oldin | --oldi | --old | --ol | --o)
1168 ac_prev=oldincludedir ;;
1169 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1170 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1171 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1172 oldincludedir=$ac_optarg ;;
1174 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1176 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1177 prefix=$ac_optarg ;;
1179 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1180 | --program-pre | --program-pr | --program-p)
1181 ac_prev=program_prefix ;;
1182 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1183 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1184 program_prefix=$ac_optarg ;;
1186 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1187 | --program-suf | --program-su | --program-s)
1188 ac_prev=program_suffix ;;
1189 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1190 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1191 program_suffix=$ac_optarg ;;
1193 -program-transform-name | --program-transform-name \
1194 | --program-transform-nam | --program-transform-na \
1195 | --program-transform-n | --program-transform- \
1196 | --program-transform | --program-transfor \
1197 | --program-transfo | --program-transf \
1198 | --program-trans | --program-tran \
1199 | --progr-tra | --program-tr | --program-t)
1200 ac_prev=program_transform_name ;;
1201 -program-transform-name=* | --program-transform-name=* \
1202 | --program-transform-nam=* | --program-transform-na=* \
1203 | --program-transform-n=* | --program-transform-=* \
1204 | --program-transform=* | --program-transfor=* \
1205 | --program-transfo=* | --program-transf=* \
1206 | --program-trans=* | --program-tran=* \
1207 | --progr-tra=* | --program-tr=* | --program-t=*)
1208 program_transform_name=$ac_optarg ;;
1210 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1212 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1213 pdfdir=$ac_optarg ;;
1215 -psdir | --psdir | --psdi | --psd | --ps)
1217 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1220 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1221 | -silent | --silent | --silen | --sile | --sil)
1224 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1226 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1228 sbindir=$ac_optarg ;;
1230 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1231 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1232 | --sharedst | --shareds | --shared | --share | --shar \
1234 ac_prev=sharedstatedir ;;
1235 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1236 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1237 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1239 sharedstatedir=$ac_optarg ;;
1241 -site | --site | --sit)
1243 -site=* | --site=* | --sit=*)
1246 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1248 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1249 srcdir=$ac_optarg ;;
1251 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1252 | --syscon | --sysco | --sysc | --sys | --sy)
1253 ac_prev=sysconfdir ;;
1254 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1255 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1256 sysconfdir=$ac_optarg ;;
1258 -target | --target | --targe | --targ | --tar | --ta | --t)
1259 ac_prev=target_alias ;;
1260 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1261 target_alias=$ac_optarg ;;
1263 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1266 -version | --version | --versio | --versi | --vers | -V)
1267 ac_init_version=: ;;
1270 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1271 # Reject names that are not valid shell variable names.
1272 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1273 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1274 { (exit 1); exit 1; }; }
1275 ac_useropt_orig=$ac_useropt
1276 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1277 case $ac_user_opts in
1281 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1282 ac_unrecognized_sep=', ';;
1284 eval with_$ac_useropt=\$ac_optarg ;;
1286 -without-* | --without-*)
1287 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1288 # Reject names that are not valid shell variable names.
1289 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1290 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1291 { (exit 1); exit 1; }; }
1292 ac_useropt_orig=$ac_useropt
1293 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1294 case $ac_user_opts in
1298 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1299 ac_unrecognized_sep=', ';;
1301 eval with_$ac_useropt=no ;;
1304 # Obsolete; use --with-x.
1307 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1308 | --x-incl | --x-inc | --x-in | --x-i)
1309 ac_prev=x_includes ;;
1310 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1311 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1312 x_includes=$ac_optarg ;;
1314 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1315 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1316 ac_prev=x_libraries ;;
1317 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1318 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1319 x_libraries=$ac_optarg ;;
1321 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1322 Try \`$0 --help' for more information." >&2
1323 { (exit 1); exit 1; }; }
1327 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1328 # Reject names that are not valid shell variable names.
1329 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1330 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1331 { (exit 1); exit 1; }; }
1332 eval $ac_envvar=\$ac_optarg
1333 export $ac_envvar ;;
1336 # FIXME: should be removed in autoconf 3.0.
1337 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1338 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1339 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1340 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1346 if test -n "$ac_prev"; then
1347 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1348 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1349 { (exit 1); exit 1; }; }
1352 if test -n "$ac_unrecognized_opts"; then
1353 case $enable_option_checking in
1355 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1356 { (exit 1); exit 1; }; } ;;
1357 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1361 # Check all directory arguments for consistency.
1362 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1363 datadir sysconfdir sharedstatedir localstatedir includedir \
1364 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1365 libdir localedir mandir
1367 eval ac_val=\$$ac_var
1368 # Remove trailing slashes.
1371 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1372 eval $ac_var=\$ac_val;;
1374 # Be sure to have absolute directory names.
1376 [\\/$]* | ?:[\\/]* ) continue;;
1377 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1379 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1380 { (exit 1); exit 1; }; }
1383 # There might be people who depend on the old broken behavior: `$host'
1384 # used to hold the argument of --host etc.
1385 # FIXME: To remove some day.
1388 target=$target_alias
1390 # FIXME: To remove some day.
1391 if test "x$host_alias" != x; then
1392 if test "x$build_alias" = x; then
1393 cross_compiling=maybe
1394 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1395 If a cross compiler is detected then cross compile mode will be used." >&2
1396 elif test "x$build_alias" != "x$host_alias"; then
1402 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1404 test "$silent" = yes && exec 6>/dev/null
1407 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1408 ac_ls_di=`ls -di .` &&
1409 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1410 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1411 { (exit 1); exit 1; }; }
1412 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1413 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1414 { (exit 1); exit 1; }; }
1417 # Find the source files, if location was not specified.
1418 if test -z "$srcdir"; then
1419 ac_srcdir_defaulted=yes
1420 # Try the directory containing this script, then the parent directory.
1421 ac_confdir=`$as_dirname -- "$as_myself" ||
1422 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1423 X"$as_myself" : 'X\(//\)[^/]' \| \
1424 X"$as_myself" : 'X\(//\)$' \| \
1425 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1426 $as_echo X"$as_myself" |
1427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1445 if test ! -r "$srcdir/$ac_unique_file"; then
1449 ac_srcdir_defaulted=no
1451 if test ! -r "$srcdir/$ac_unique_file"; then
1452 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1453 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1454 { (exit 1); exit 1; }; }
1456 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1458 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1459 { (exit 1); exit 1; }; }
1461 # When building in place, set srcdir=.
1462 if test "$ac_abs_confdir" = "$ac_pwd"; then
1465 # Remove unnecessary trailing slashes from srcdir.
1466 # Double slashes in file names in object file debugging info
1467 # mess up M-x gdb in Emacs.
1469 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1471 for ac_var in $ac_precious_vars; do
1472 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1473 eval ac_env_${ac_var}_value=\$${ac_var}
1474 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1475 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1479 # Report the --help message.
1481 if test "$ac_init_help" = "long"; then
1482 # Omit some internal or obsolete options to make the list less imposing.
1483 # This message is too long to be a string in the A/UX 3.1 sh.
1485 \`configure' configures shellinabox 2.7 to adapt to many kinds of systems.
1487 Usage: $0 [OPTION]... [VAR=VALUE]...
1489 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1490 VAR=VALUE. See below for descriptions of some of the useful variables.
1492 Defaults for the options are specified in brackets.
1495 -h, --help display this help and exit
1496 --help=short display options specific to this package
1497 --help=recursive display the short help of all the included packages
1498 -V, --version display version information and exit
1499 -q, --quiet, --silent do not print \`checking...' messages
1500 --cache-file=FILE cache test results in FILE [disabled]
1501 -C, --config-cache alias for \`--cache-file=config.cache'
1502 -n, --no-create do not create output files
1503 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1505 Installation directories:
1506 --prefix=PREFIX install architecture-independent files in PREFIX
1507 [$ac_default_prefix]
1508 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1511 By default, \`make install' will install all the files in
1512 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1513 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1514 for instance \`--prefix=\$HOME'.
1516 For better control, use the options below.
1518 Fine tuning of the installation directories:
1519 --bindir=DIR user executables [EPREFIX/bin]
1520 --sbindir=DIR system admin executables [EPREFIX/sbin]
1521 --libexecdir=DIR program executables [EPREFIX/libexec]
1522 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1523 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1524 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1525 --libdir=DIR object code libraries [EPREFIX/lib]
1526 --includedir=DIR C header files [PREFIX/include]
1527 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1528 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1529 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1530 --infodir=DIR info documentation [DATAROOTDIR/info]
1531 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1532 --mandir=DIR man documentation [DATAROOTDIR/man]
1533 --docdir=DIR documentation root [DATAROOTDIR/doc/shellinabox]
1534 --htmldir=DIR html documentation [DOCDIR]
1535 --dvidir=DIR dvi documentation [DOCDIR]
1536 --pdfdir=DIR pdf documentation [DOCDIR]
1537 --psdir=DIR ps documentation [DOCDIR]
1543 --program-prefix=PREFIX prepend PREFIX to installed program names
1544 --program-suffix=SUFFIX append SUFFIX to installed program names
1545 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1548 --build=BUILD configure for building on BUILD [guessed]
1549 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1553 if test -n "$ac_init_help"; then
1554 case $ac_init_help in
1555 short | recursive ) echo "Configuration of shellinabox 2.7:";;
1560 --disable-option-checking ignore unrecognized --enable/--with options
1561 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1562 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1563 --disable-dependency-tracking speeds up one-time build
1564 --enable-dependency-tracking do not reject slow dependency extractors
1565 --enable-shared[=PKGS] build shared libraries [default=yes]
1566 --enable-static[=PKGS] build static libraries [default=yes]
1567 --enable-fast-install[=PKGS]
1568 optimize for fast installation [default=yes]
1569 --disable-libtool-lock avoid locking (might break parallel builds)
1570 --disable-ssl if available at built-time, support for SSL
1571 connections will be enabled. It can still be
1572 disabled at run-time, either on the daemon's
1573 command line or if the operating system does not
1574 have the OpenSSL libraries available.
1575 --disable-pam PAM support is necessary in order to authenticate
1576 users for running programs other than their default
1578 --disable-runtime-loading ShellInABox will try to load the OpenSSL, and PAM
1579 libraries at run-time, if it has been compiled with
1580 support for these libraries, and if the operating
1581 system supports dynamic loading of libraries. This
1582 allows you to install the same binary on different
1583 systems independent of whether they have OpenSSL
1584 and PAM enabled. If you would rather directly link
1585 these libraries into the binary, thus making them a
1586 hard dependency, then disable runtime-loading.
1589 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1590 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1591 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1592 --with-pic try to use only PIC/non-PIC objects [default=use
1594 --with-tags[=TAGS] include additional configurations [automatic]
1596 Some influential environment variables:
1597 CC C compiler command
1598 CFLAGS C compiler flags
1599 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1600 nonstandard directory <lib dir>
1601 LIBS libraries to pass to the linker, e.g. -l<library>
1602 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1603 you have headers in a nonstandard directory <include dir>
1605 CXX C++ compiler command
1606 CXXFLAGS C++ compiler flags
1607 CXXCPP C++ preprocessor
1608 F77 Fortran 77 compiler command
1609 FFLAGS Fortran 77 compiler flags
1611 Use these variables to override the choices made by `configure' or to help
1612 it to find libraries and programs with nonstandard names/locations.
1614 Report bugs to <markus@shellinabox.com>.
1619 if test "$ac_init_help" = "recursive"; then
1620 # If there are subdirs, report their specific --help.
1621 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1622 test -d "$ac_dir" ||
1623 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1628 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1630 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1631 # A ".." for each directory in $ac_dir_suffix.
1632 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1633 case $ac_top_builddir_sub in
1634 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1635 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1638 ac_abs_top_builddir=$ac_pwd
1639 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1640 # for backward compatibility:
1641 ac_top_builddir=$ac_top_build_prefix
1644 .) # We are building in place.
1646 ac_top_srcdir=$ac_top_builddir_sub
1647 ac_abs_top_srcdir=$ac_pwd ;;
1648 [\\/]* | ?:[\\/]* ) # Absolute name.
1649 ac_srcdir=$srcdir$ac_dir_suffix;
1650 ac_top_srcdir=$srcdir
1651 ac_abs_top_srcdir=$srcdir ;;
1653 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1654 ac_top_srcdir=$ac_top_build_prefix$srcdir
1655 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1657 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1659 cd "$ac_dir" || { ac_status=$?; continue; }
1660 # Check for guested configure.
1661 if test -f "$ac_srcdir/configure.gnu"; then
1663 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1664 elif test -f "$ac_srcdir/configure"; then
1666 $SHELL "$ac_srcdir/configure" --help=recursive
1668 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1670 cd "$ac_pwd" || { ac_status=$?; break; }
1674 test -n "$ac_init_help" && exit $ac_status
1675 if $ac_init_version; then
1677 shellinabox configure 2.7
1678 generated by GNU Autoconf 2.63
1680 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1681 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1682 This configure script is free software; the Free Software Foundation
1683 gives unlimited permission to copy, distribute and modify it.
1687 cat >config.log <<_ACEOF
1688 This file contains any messages produced by compilers while
1689 running configure, to aid debugging if configure makes a mistake.
1691 It was created by shellinabox $as_me 2.7, which was
1692 generated by GNU Autoconf 2.63. Invocation command line was
1704 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1705 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1706 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1707 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1708 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1710 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1711 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1713 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1714 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1715 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1716 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1717 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1718 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1719 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1727 test -z "$as_dir" && as_dir=.
1728 $as_echo "PATH: $as_dir"
1744 # Keep a trace of the command line.
1745 # Strip out --no-create and --no-recursion so they do not pile up.
1746 # Strip out --silent because we don't want to record it for future runs.
1747 # Also quote any args containing shell meta-characters.
1748 # Make two passes to allow for proper duplicate-argument suppression.
1752 ac_must_keep_next=false
1758 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1759 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1760 | -silent | --silent | --silen | --sile | --sil)
1763 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1766 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1768 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1769 if test $ac_must_keep_next = true; then
1770 ac_must_keep_next=false # Got value, back to normal.
1773 *=* | --config-cache | -C | -disable-* | --disable-* \
1774 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1775 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1776 | -with-* | --with-* | -without-* | --without-* | --x)
1777 case "$ac_configure_args0 " in
1778 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1781 -* ) ac_must_keep_next=true ;;
1784 ac_configure_args="$ac_configure_args '$ac_arg'"
1789 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1790 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1792 # When interrupted or exit'd, cleanup temporary files, and complete
1793 # config.log. We remove comments because anyway the quotes in there
1794 # would cause problems or look ugly.
1795 # WARNING: Use '\'' to represent an apostrophe within the trap.
1796 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1797 trap 'exit_status=$?
1798 # Save into config.log some information that might help in debugging.
1803 ## ---------------- ##
1804 ## Cache variables. ##
1805 ## ---------------- ##
1808 # The following way of writing the cache mishandles newlines in values,
1810 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1811 eval ac_val=\$$ac_var
1815 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1816 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1819 _ | IFS | as_nl) ;; #(
1820 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1821 *) $as_unset $ac_var ;;
1826 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1827 *${as_nl}ac_space=\ *)
1829 "s/'\''/'\''\\\\'\'''\''/g;
1830 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1833 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1841 ## ----------------- ##
1842 ## Output variables. ##
1843 ## ----------------- ##
1846 for ac_var in $ac_subst_vars
1848 eval ac_val=\$$ac_var
1850 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1852 $as_echo "$ac_var='\''$ac_val'\''"
1856 if test -n "$ac_subst_files"; then
1858 ## ------------------- ##
1859 ## File substitutions. ##
1860 ## ------------------- ##
1863 for ac_var in $ac_subst_files
1865 eval ac_val=\$$ac_var
1867 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1869 $as_echo "$ac_var='\''$ac_val'\''"
1874 if test -s confdefs.h; then
1884 test "$ac_signal" != 0 &&
1885 $as_echo "$as_me: caught signal $ac_signal"
1886 $as_echo "$as_me: exit $exit_status"
1888 rm -f core *.core core.conftest.* &&
1889 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1892 for ac_signal in 1 2 13 15; do
1893 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1897 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1898 rm -f -r conftest* confdefs.h
1900 # Predefined preprocessor variables.
1902 cat >>confdefs.h <<_ACEOF
1903 #define PACKAGE_NAME "$PACKAGE_NAME"
1907 cat >>confdefs.h <<_ACEOF
1908 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1912 cat >>confdefs.h <<_ACEOF
1913 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1917 cat >>confdefs.h <<_ACEOF
1918 #define PACKAGE_STRING "$PACKAGE_STRING"
1922 cat >>confdefs.h <<_ACEOF
1923 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1927 # Let the site file select an alternate cache file if it wants to.
1928 # Prefer an explicitly selected file to automatically selected ones.
1931 if test -n "$CONFIG_SITE"; then
1932 ac_site_file1=$CONFIG_SITE
1933 elif test "x$prefix" != xNONE; then
1934 ac_site_file1=$prefix/share/config.site
1935 ac_site_file2=$prefix/etc/config.site
1937 ac_site_file1=$ac_default_prefix/share/config.site
1938 ac_site_file2=$ac_default_prefix/etc/config.site
1940 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1942 test "x$ac_site_file" = xNONE && continue
1943 if test -r "$ac_site_file"; then
1944 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1945 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1946 sed 's/^/| /' "$ac_site_file" >&5
1951 if test -r "$cache_file"; then
1952 # Some versions of bash will fail to source /dev/null (special
1953 # files actually), so we avoid doing that.
1954 if test -f "$cache_file"; then
1955 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1956 $as_echo "$as_me: loading cache $cache_file" >&6;}
1958 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1959 *) . "./$cache_file";;
1963 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1964 $as_echo "$as_me: creating cache $cache_file" >&6;}
1968 # Check that the precious variables saved in the cache have kept the same
1970 ac_cache_corrupted=false
1971 for ac_var in $ac_precious_vars; do
1972 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1973 eval ac_new_set=\$ac_env_${ac_var}_set
1974 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1975 eval ac_new_val=\$ac_env_${ac_var}_value
1976 case $ac_old_set,$ac_new_set in
1978 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1979 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1980 ac_cache_corrupted=: ;;
1982 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1983 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1984 ac_cache_corrupted=: ;;
1987 if test "x$ac_old_val" != "x$ac_new_val"; then
1988 # differences in whitespace do not lead to failure.
1989 ac_old_val_w=`echo x $ac_old_val`
1990 ac_new_val_w=`echo x $ac_new_val`
1991 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1992 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1993 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1994 ac_cache_corrupted=:
1996 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1997 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1998 eval $ac_var=\$ac_old_val
2000 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2001 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2002 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2003 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2006 # Pass precious variables to config.status.
2007 if test "$ac_new_set" = set; then
2009 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2010 *) ac_arg=$ac_var=$ac_new_val ;;
2012 case " $ac_configure_args " in
2013 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2014 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2018 if $ac_cache_corrupted; then
2019 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2020 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2021 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2022 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2023 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2024 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2025 { (exit 1); exit 1; }; }
2053 ac_cpp='$CPP $CPPFLAGS'
2054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2062 cat >>confdefs.h <<_ACEOF
2063 #define VCS_REVISION "${VCS_REVISION}"
2067 CFLAGS="${CFLAGS:--Os}"
2068 am__api_version='1.10'
2071 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2072 if test -f "$ac_dir/install-sh"; then
2074 ac_install_sh="$ac_aux_dir/install-sh -c"
2076 elif test -f "$ac_dir/install.sh"; then
2078 ac_install_sh="$ac_aux_dir/install.sh -c"
2080 elif test -f "$ac_dir/shtool"; then
2082 ac_install_sh="$ac_aux_dir/shtool install -c"
2086 if test -z "$ac_aux_dir"; then
2087 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2088 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2089 { (exit 1); exit 1; }; }
2092 # These three variables are undocumented and unsupported,
2093 # and are intended to be withdrawn in a future Autoconf release.
2094 # They can cause serious problems if a builder's source tree is in a directory
2095 # whose full name contains unusual characters.
2096 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2097 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2098 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2101 # Find a good install program. We prefer a C program (faster),
2102 # so one script is as good as another. But avoid the broken or
2103 # incompatible versions:
2104 # SysV /etc/install, /usr/sbin/install
2105 # SunOS /usr/etc/install
2106 # IRIX /sbin/install
2108 # AmigaOS /C/install, which installs bootblocks on floppy discs
2109 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2110 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2111 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2112 # OS/2's system install, which has a completely different semantic
2113 # ./install, which can be erroneously created by make from ./install.sh.
2114 # Reject install programs that cannot install multiple files.
2115 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2116 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2117 if test -z "$INSTALL"; then
2118 if test "${ac_cv_path_install+set}" = set; then
2119 $as_echo_n "(cached) " >&6
2121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125 test -z "$as_dir" && as_dir=.
2126 # Account for people who put trailing slashes in PATH elements.
2128 ./ | .// | /cC/* | \
2129 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2130 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2133 # OSF1 and SCO ODT 3.0 have their own names for install.
2134 # Don't use installbsd from OSF since it installs stuff as root
2136 for ac_prog in ginstall scoinst install; do
2137 for ac_exec_ext in '' $ac_executable_extensions; do
2138 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2139 if test $ac_prog = install &&
2140 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2141 # AIX install. It has an incompatible calling convention.
2143 elif test $ac_prog = install &&
2144 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2145 # program-specific install script used by HP pwplus--don't use.
2148 rm -rf conftest.one conftest.two conftest.dir
2149 echo one > conftest.one
2150 echo two > conftest.two
2152 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2153 test -s conftest.one && test -s conftest.two &&
2154 test -s conftest.dir/conftest.one &&
2155 test -s conftest.dir/conftest.two
2157 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2170 rm -rf conftest.one conftest.two conftest.dir
2173 if test "${ac_cv_path_install+set}" = set; then
2174 INSTALL=$ac_cv_path_install
2176 # As a last resort, use the slow shell script. Don't cache a
2177 # value for INSTALL within a source directory, because that will
2178 # break other packages using the cache if that directory is
2179 # removed, or if the value is a relative name.
2180 INSTALL=$ac_install_sh
2183 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2184 $as_echo "$INSTALL" >&6; }
2186 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2187 # It thinks the first close brace ends the variable substitution.
2188 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2190 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2192 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2194 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2195 $as_echo_n "checking whether build environment is sane... " >&6; }
2198 echo timestamp > conftest.file
2199 # Do `set' in a subshell so we don't clobber the current shell's
2200 # arguments. Must try -L first in case configure is actually a
2201 # symlink; some systems play weird games with the mod time of symlinks
2202 # (eg FreeBSD returns the mod time of the symlink's containing
2205 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2206 if test "$*" = "X"; then
2208 set X `ls -t $srcdir/configure conftest.file`
2211 if test "$*" != "X $srcdir/configure conftest.file" \
2212 && test "$*" != "X conftest.file $srcdir/configure"; then
2214 # If neither matched, then we have a broken ls. This can happen
2215 # if, for instance, CONFIG_SHELL is bash and it inherits a
2216 # broken ls alias from the environment. This has actually
2217 # happened. Such a system could not be considered "sane".
2218 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2219 alias in your environment" >&5
2220 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2221 alias in your environment" >&2;}
2222 { (exit 1); exit 1; }; }
2225 test "$2" = conftest.file
2231 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2232 Check your system clock" >&5
2233 $as_echo "$as_me: error: newly created file is older than distributed files!
2234 Check your system clock" >&2;}
2235 { (exit 1); exit 1; }; }
2237 { $as_echo "$as_me:$LINENO: result: yes" >&5
2238 $as_echo "yes" >&6; }
2239 test "$program_prefix" != NONE &&
2240 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2241 # Use a double $ so make ignores it.
2242 test "$program_suffix" != NONE &&
2243 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2244 # Double any \ or $.
2245 # By default was `s,x,x', remove it if useless.
2246 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2247 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2249 # expand $ac_aux_dir to an absolute path
2250 am_aux_dir=`cd $ac_aux_dir && pwd`
2252 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2253 # Use eval to expand $SHELL
2254 if eval "$MISSING --run true"; then
2255 am_missing_run="$MISSING --run "
2258 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2259 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2262 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2263 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2264 if test -z "$MKDIR_P"; then
2265 if test "${ac_cv_path_mkdir+set}" = set; then
2266 $as_echo_n "(cached) " >&6
2268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2269 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2272 test -z "$as_dir" && as_dir=.
2273 for ac_prog in mkdir gmkdir; do
2274 for ac_exec_ext in '' $ac_executable_extensions; do
2275 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2276 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2277 'mkdir (GNU coreutils) '* | \
2278 'mkdir (coreutils) '* | \
2279 'mkdir (fileutils) '4.1*)
2280 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2290 if test "${ac_cv_path_mkdir+set}" = set; then
2291 MKDIR_P="$ac_cv_path_mkdir -p"
2293 # As a last resort, use the slow shell script. Don't cache a
2294 # value for MKDIR_P within a source directory, because that will
2295 # break other packages using the cache if that directory is
2296 # removed, or if the value is a relative name.
2297 test -d ./--version && rmdir ./--version
2298 MKDIR_P="$ac_install_sh -d"
2301 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2302 $as_echo "$MKDIR_P" >&6; }
2306 [\\/$]* | ?:[\\/]*) ;;
2307 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2310 for ac_prog in gawk mawk nawk awk
2312 # Extract the first word of "$ac_prog", so it can be a program name with args.
2313 set dummy $ac_prog; ac_word=$2
2314 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2315 $as_echo_n "checking for $ac_word... " >&6; }
2316 if test "${ac_cv_prog_AWK+set}" = set; then
2317 $as_echo_n "(cached) " >&6
2319 if test -n "$AWK"; then
2320 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326 test -z "$as_dir" && as_dir=.
2327 for ac_exec_ext in '' $ac_executable_extensions; do
2328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2329 ac_cv_prog_AWK="$ac_prog"
2330 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2340 if test -n "$AWK"; then
2341 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2342 $as_echo "$AWK" >&6; }
2344 { $as_echo "$as_me:$LINENO: result: no" >&5
2345 $as_echo "no" >&6; }
2349 test -n "$AWK" && break
2352 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2353 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2355 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2356 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2357 $as_echo_n "(cached) " >&6
2359 cat >conftest.make <<\_ACEOF
2362 @echo '@@@%%%=$(MAKE)=@@@%%%'
2364 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2365 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2367 eval ac_cv_prog_make_${ac_make}_set=yes;;
2369 eval ac_cv_prog_make_${ac_make}_set=no;;
2373 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2374 { $as_echo "$as_me:$LINENO: result: yes" >&5
2375 $as_echo "yes" >&6; }
2378 { $as_echo "$as_me:$LINENO: result: no" >&5
2379 $as_echo "no" >&6; }
2380 SET_MAKE="MAKE=${MAKE-make}"
2383 rm -rf .tst 2>/dev/null
2384 mkdir .tst 2>/dev/null
2385 if test -d .tst; then
2390 rmdir .tst 2>/dev/null
2392 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2393 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2394 # is not polluted with repeated "-I."
2395 am__isrc=' -I$(srcdir)'
2396 # test to see if srcdir already configured
2397 if test -f $srcdir/config.status; then
2398 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2399 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2400 { (exit 1); exit 1; }; }
2404 # test whether we have cygpath
2405 if test -z "$CYGPATH_W"; then
2406 if (cygpath --version) >/dev/null 2>/dev/null; then
2407 CYGPATH_W='cygpath -w'
2414 # Define the identity of the package.
2415 PACKAGE='shellinabox'
2419 cat >>confdefs.h <<_ACEOF
2420 #define PACKAGE "$PACKAGE"
2424 cat >>confdefs.h <<_ACEOF
2425 #define VERSION "$VERSION"
2428 # Some tools Automake needs.
2430 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2433 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2436 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2439 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2442 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2444 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2446 # Installed binaries are usually stripped using `strip' when the user
2447 # run `make install-strip'. However `strip' might not be the right
2448 # tool to use in cross-compilation environments, therefore Automake
2449 # will honor the `STRIP' environment variable to overrule this program.
2450 if test "$cross_compiling" != no; then
2451 if test -n "$ac_tool_prefix"; then
2452 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2453 set dummy ${ac_tool_prefix}strip; ac_word=$2
2454 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2455 $as_echo_n "checking for $ac_word... " >&6; }
2456 if test "${ac_cv_prog_STRIP+set}" = set; then
2457 $as_echo_n "(cached) " >&6
2459 if test -n "$STRIP"; then
2460 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2466 test -z "$as_dir" && as_dir=.
2467 for ac_exec_ext in '' $ac_executable_extensions; do
2468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2469 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2470 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2479 STRIP=$ac_cv_prog_STRIP
2480 if test -n "$STRIP"; then
2481 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2482 $as_echo "$STRIP" >&6; }
2484 { $as_echo "$as_me:$LINENO: result: no" >&5
2485 $as_echo "no" >&6; }
2490 if test -z "$ac_cv_prog_STRIP"; then
2492 # Extract the first word of "strip", so it can be a program name with args.
2493 set dummy strip; ac_word=$2
2494 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2495 $as_echo_n "checking for $ac_word... " >&6; }
2496 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2497 $as_echo_n "(cached) " >&6
2499 if test -n "$ac_ct_STRIP"; then
2500 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2506 test -z "$as_dir" && as_dir=.
2507 for ac_exec_ext in '' $ac_executable_extensions; do
2508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2509 ac_cv_prog_ac_ct_STRIP="strip"
2510 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2519 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2520 if test -n "$ac_ct_STRIP"; then
2521 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2522 $as_echo "$ac_ct_STRIP" >&6; }
2524 { $as_echo "$as_me:$LINENO: result: no" >&5
2525 $as_echo "no" >&6; }
2528 if test "x$ac_ct_STRIP" = x; then
2531 case $cross_compiling:$ac_tool_warned in
2533 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2534 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2535 ac_tool_warned=yes ;;
2540 STRIP="$ac_cv_prog_STRIP"
2544 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2546 # We need awk for the "check" target. The system "awk" is bad on
2548 # Always define AMTAR for backward compatibility.
2550 AMTAR=${AMTAR-"${am_missing_run}tar"}
2552 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2558 ac_config_headers="$ac_config_headers config.h"
2561 ac_cpp='$CPP $CPPFLAGS'
2562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2565 if test -n "$ac_tool_prefix"; then
2566 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2567 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2568 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2569 $as_echo_n "checking for $ac_word... " >&6; }
2570 if test "${ac_cv_prog_CC+set}" = set; then
2571 $as_echo_n "(cached) " >&6
2573 if test -n "$CC"; then
2574 ac_cv_prog_CC="$CC" # Let the user override the test.
2576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 test -z "$as_dir" && as_dir=.
2581 for ac_exec_ext in '' $ac_executable_extensions; do
2582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2583 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2584 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2594 if test -n "$CC"; then
2595 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2596 $as_echo "$CC" >&6; }
2598 { $as_echo "$as_me:$LINENO: result: no" >&5
2599 $as_echo "no" >&6; }
2604 if test -z "$ac_cv_prog_CC"; then
2606 # Extract the first word of "gcc", so it can be a program name with args.
2607 set dummy gcc; ac_word=$2
2608 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2609 $as_echo_n "checking for $ac_word... " >&6; }
2610 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2611 $as_echo_n "(cached) " >&6
2613 if test -n "$ac_ct_CC"; then
2614 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620 test -z "$as_dir" && as_dir=.
2621 for ac_exec_ext in '' $ac_executable_extensions; do
2622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2623 ac_cv_prog_ac_ct_CC="gcc"
2624 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2633 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2634 if test -n "$ac_ct_CC"; then
2635 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2636 $as_echo "$ac_ct_CC" >&6; }
2638 { $as_echo "$as_me:$LINENO: result: no" >&5
2639 $as_echo "no" >&6; }
2642 if test "x$ac_ct_CC" = x; then
2645 case $cross_compiling:$ac_tool_warned in
2647 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2648 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2649 ac_tool_warned=yes ;;
2657 if test -z "$CC"; then
2658 if test -n "$ac_tool_prefix"; then
2659 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2660 set dummy ${ac_tool_prefix}cc; ac_word=$2
2661 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2662 $as_echo_n "checking for $ac_word... " >&6; }
2663 if test "${ac_cv_prog_CC+set}" = set; then
2664 $as_echo_n "(cached) " >&6
2666 if test -n "$CC"; then
2667 ac_cv_prog_CC="$CC" # Let the user override the test.
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673 test -z "$as_dir" && as_dir=.
2674 for ac_exec_ext in '' $ac_executable_extensions; do
2675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2676 ac_cv_prog_CC="${ac_tool_prefix}cc"
2677 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2687 if test -n "$CC"; then
2688 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2689 $as_echo "$CC" >&6; }
2691 { $as_echo "$as_me:$LINENO: result: no" >&5
2692 $as_echo "no" >&6; }
2698 if test -z "$CC"; then
2699 # Extract the first word of "cc", so it can be a program name with args.
2700 set dummy cc; ac_word=$2
2701 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2702 $as_echo_n "checking for $ac_word... " >&6; }
2703 if test "${ac_cv_prog_CC+set}" = set; then
2704 $as_echo_n "(cached) " >&6
2706 if test -n "$CC"; then
2707 ac_cv_prog_CC="$CC" # Let the user override the test.
2710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714 test -z "$as_dir" && as_dir=.
2715 for ac_exec_ext in '' $ac_executable_extensions; do
2716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2717 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2718 ac_prog_rejected=yes
2722 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2729 if test $ac_prog_rejected = yes; then
2730 # We found a bogon in the path, so make sure we never use it.
2731 set dummy $ac_cv_prog_CC
2733 if test $# != 0; then
2734 # We chose a different compiler from the bogus one.
2735 # However, it has the same basename, so the bogon will be chosen
2736 # first if we set CC to just the basename; use the full file name.
2738 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2744 if test -n "$CC"; then
2745 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2746 $as_echo "$CC" >&6; }
2748 { $as_echo "$as_me:$LINENO: result: no" >&5
2749 $as_echo "no" >&6; }
2754 if test -z "$CC"; then
2755 if test -n "$ac_tool_prefix"; then
2756 for ac_prog in cl.exe
2758 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2759 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2760 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2761 $as_echo_n "checking for $ac_word... " >&6; }
2762 if test "${ac_cv_prog_CC+set}" = set; then
2763 $as_echo_n "(cached) " >&6
2765 if test -n "$CC"; then
2766 ac_cv_prog_CC="$CC" # Let the user override the test.
2768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772 test -z "$as_dir" && as_dir=.
2773 for ac_exec_ext in '' $ac_executable_extensions; do
2774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2775 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2776 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2786 if test -n "$CC"; then
2787 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2788 $as_echo "$CC" >&6; }
2790 { $as_echo "$as_me:$LINENO: result: no" >&5
2791 $as_echo "no" >&6; }
2795 test -n "$CC" && break
2798 if test -z "$CC"; then
2800 for ac_prog in cl.exe
2802 # Extract the first word of "$ac_prog", so it can be a program name with args.
2803 set dummy $ac_prog; ac_word=$2
2804 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2805 $as_echo_n "checking for $ac_word... " >&6; }
2806 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2807 $as_echo_n "(cached) " >&6
2809 if test -n "$ac_ct_CC"; then
2810 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816 test -z "$as_dir" && as_dir=.
2817 for ac_exec_ext in '' $ac_executable_extensions; do
2818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2819 ac_cv_prog_ac_ct_CC="$ac_prog"
2820 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2829 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2830 if test -n "$ac_ct_CC"; then
2831 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2832 $as_echo "$ac_ct_CC" >&6; }
2834 { $as_echo "$as_me:$LINENO: result: no" >&5
2835 $as_echo "no" >&6; }
2839 test -n "$ac_ct_CC" && break
2842 if test "x$ac_ct_CC" = x; then
2845 case $cross_compiling:$ac_tool_warned in
2847 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2848 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2849 ac_tool_warned=yes ;;
2858 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2859 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2860 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2861 See \`config.log' for more details." >&5
2862 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2863 See \`config.log' for more details." >&2;}
2864 { (exit 1); exit 1; }; }; }
2866 # Provide some information about the compiler.
2867 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2870 { (ac_try="$ac_compiler --version >&5"
2872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2873 *) ac_try_echo=$ac_try;;
2875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2876 $as_echo "$ac_try_echo") >&5
2877 (eval "$ac_compiler --version >&5") 2>&5
2879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); }
2881 { (ac_try="$ac_compiler -v >&5"
2883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884 *) ac_try_echo=$ac_try;;
2886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2887 $as_echo "$ac_try_echo") >&5
2888 (eval "$ac_compiler -v >&5") 2>&5
2890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }
2892 { (ac_try="$ac_compiler -V >&5"
2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895 *) ac_try_echo=$ac_try;;
2897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2898 $as_echo "$ac_try_echo") >&5
2899 (eval "$ac_compiler -V >&5") 2>&5
2901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }
2904 cat >conftest.$ac_ext <<_ACEOF
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>conftest.$ac_ext <<_ACEOF
2909 /* end confdefs.h. */
2919 ac_clean_files_save=$ac_clean_files
2920 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2921 # Try to create an executable without -o first, disregard a.out.
2922 # It will help us diagnose broken compilers, and finding out an intuition
2924 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2925 $as_echo_n "checking for C compiler default output file name... " >&6; }
2926 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2928 # The possible output files:
2929 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2932 for ac_file in $ac_files
2935 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2936 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2941 if { (ac_try="$ac_link_default"
2943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944 *) ac_try_echo=$ac_try;;
2946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2947 $as_echo "$ac_try_echo") >&5
2948 (eval "$ac_link_default") 2>&5
2950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); }; then
2952 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2953 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2954 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2955 # so that the user can short-circuit this test for compilers unknown to
2957 for ac_file in $ac_files ''
2959 test -f "$ac_file" || continue
2961 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2964 # We found the default executable, but exeext='' is most
2968 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2970 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2972 # We set ac_cv_exeext here because the later test for it is not
2973 # safe: cross compilers may not add the suffix if given an `-o'
2974 # argument, so we may need to know it at that point already.
2975 # Even if this section looks crufty: it has the advantage of
2982 test "$ac_cv_exeext" = no && ac_cv_exeext=
2988 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2989 $as_echo "$ac_file" >&6; }
2990 if test -z "$ac_file"; then
2991 $as_echo "$as_me: failed program was:" >&5
2992 sed 's/^/| /' conftest.$ac_ext >&5
2994 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2996 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2997 See \`config.log' for more details." >&5
2998 $as_echo "$as_me: error: C compiler cannot create executables
2999 See \`config.log' for more details." >&2;}
3000 { (exit 77); exit 77; }; }; }
3003 ac_exeext=$ac_cv_exeext
3005 # Check that the compiler produces executables we can run. If not, either
3006 # the compiler is broken, or we cross compile.
3007 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3008 $as_echo_n "checking whether the C compiler works... " >&6; }
3009 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3010 # If not cross compiling, check that we can run a simple program.
3011 if test "$cross_compiling" != yes; then
3012 if { ac_try='./$ac_file'
3013 { (case "(($ac_try" in
3014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015 *) ac_try_echo=$ac_try;;
3017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3018 $as_echo "$ac_try_echo") >&5
3019 (eval "$ac_try") 2>&5
3021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); }; }; then
3025 if test "$cross_compiling" = maybe; then
3028 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3030 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3031 If you meant to cross compile, use \`--host'.
3032 See \`config.log' for more details." >&5
3033 $as_echo "$as_me: error: cannot run C compiled programs.
3034 If you meant to cross compile, use \`--host'.
3035 See \`config.log' for more details." >&2;}
3036 { (exit 1); exit 1; }; }; }
3040 { $as_echo "$as_me:$LINENO: result: yes" >&5
3041 $as_echo "yes" >&6; }
3043 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3044 ac_clean_files=$ac_clean_files_save
3045 # Check that the compiler produces executables we can run. If not, either
3046 # the compiler is broken, or we cross compile.
3047 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3048 $as_echo_n "checking whether we are cross compiling... " >&6; }
3049 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3050 $as_echo "$cross_compiling" >&6; }
3052 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3053 $as_echo_n "checking for suffix of executables... " >&6; }
3054 if { (ac_try="$ac_link"
3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057 *) ac_try_echo=$ac_try;;
3059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3060 $as_echo "$ac_try_echo") >&5
3061 (eval "$ac_link") 2>&5
3063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); }; then
3065 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3066 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3067 # work properly (i.e., refer to `conftest.exe'), while it won't with
3069 for ac_file in conftest.exe conftest conftest.*; do
3070 test -f "$ac_file" || continue
3072 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3073 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3079 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3081 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3082 See \`config.log' for more details." >&5
3083 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3084 See \`config.log' for more details." >&2;}
3085 { (exit 1); exit 1; }; }; }
3088 rm -f conftest$ac_cv_exeext
3089 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3090 $as_echo "$ac_cv_exeext" >&6; }
3092 rm -f conftest.$ac_ext
3093 EXEEXT=$ac_cv_exeext
3095 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3096 $as_echo_n "checking for suffix of object files... " >&6; }
3097 if test "${ac_cv_objext+set}" = set; then
3098 $as_echo_n "(cached) " >&6
3100 cat >conftest.$ac_ext <<_ACEOF
3103 cat confdefs.h >>conftest.$ac_ext
3104 cat >>conftest.$ac_ext <<_ACEOF
3105 /* end confdefs.h. */
3115 rm -f conftest.o conftest.obj
3116 if { (ac_try="$ac_compile"
3118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119 *) ac_try_echo=$ac_try;;
3121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3122 $as_echo "$ac_try_echo") >&5
3123 (eval "$ac_compile") 2>&5
3125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); }; then
3127 for ac_file in conftest.o conftest.obj conftest.*; do
3128 test -f "$ac_file" || continue;
3130 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3131 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3136 $as_echo "$as_me: failed program was:" >&5
3137 sed 's/^/| /' conftest.$ac_ext >&5
3139 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3141 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3142 See \`config.log' for more details." >&5
3143 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3144 See \`config.log' for more details." >&2;}
3145 { (exit 1); exit 1; }; }; }
3148 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3150 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3151 $as_echo "$ac_cv_objext" >&6; }
3152 OBJEXT=$ac_cv_objext
3154 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3155 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3156 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3157 $as_echo_n "(cached) " >&6
3159 cat >conftest.$ac_ext <<_ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h. */
3177 rm -f conftest.$ac_objext
3178 if { (ac_try="$ac_compile"
3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3184 $as_echo "$ac_try_echo") >&5
3185 (eval "$ac_compile") 2>conftest.er1
3187 grep -v '^ *+' conftest.er1 >conftest.err
3189 cat conftest.err >&5
3190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); } && {
3192 test -z "$ac_c_werror_flag" ||
3193 test ! -s conftest.err
3194 } && test -s conftest.$ac_objext; then
3197 $as_echo "$as_me: failed program was:" >&5
3198 sed 's/^/| /' conftest.$ac_ext >&5
3203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3207 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3208 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3209 if test $ac_compiler_gnu = yes; then
3214 ac_test_CFLAGS=${CFLAGS+set}
3215 ac_save_CFLAGS=$CFLAGS
3216 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3217 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3218 if test "${ac_cv_prog_cc_g+set}" = set; then
3219 $as_echo_n "(cached) " >&6
3221 ac_save_c_werror_flag=$ac_c_werror_flag
3222 ac_c_werror_flag=yes
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
3264 cat >conftest.$ac_ext <<_ACEOF
3267 cat confdefs.h >>conftest.$ac_ext
3268 cat >>conftest.$ac_ext <<_ACEOF
3269 /* end confdefs.h. */
3279 rm -f conftest.$ac_objext
3280 if { (ac_try="$ac_compile"
3282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283 *) ac_try_echo=$ac_try;;
3285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3286 $as_echo "$ac_try_echo") >&5
3287 (eval "$ac_compile") 2>conftest.er1
3289 grep -v '^ *+' conftest.er1 >conftest.err
3291 cat conftest.err >&5
3292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); } && {
3294 test -z "$ac_c_werror_flag" ||
3295 test ! -s conftest.err
3296 } && test -s conftest.$ac_objext; then
3299 $as_echo "$as_me: failed program was:" >&5
3300 sed 's/^/| /' conftest.$ac_ext >&5
3302 ac_c_werror_flag=$ac_save_c_werror_flag
3304 cat >conftest.$ac_ext <<_ACEOF
3307 cat confdefs.h >>conftest.$ac_ext
3308 cat >>conftest.$ac_ext <<_ACEOF
3309 /* end confdefs.h. */
3319 rm -f conftest.$ac_objext
3320 if { (ac_try="$ac_compile"
3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323 *) ac_try_echo=$ac_try;;
3325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3326 $as_echo "$ac_try_echo") >&5
3327 (eval "$ac_compile") 2>conftest.er1
3329 grep -v '^ *+' conftest.er1 >conftest.err
3331 cat conftest.err >&5
3332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); } && {
3334 test -z "$ac_c_werror_flag" ||
3335 test ! -s conftest.err
3336 } && test -s conftest.$ac_objext; then
3339 $as_echo "$as_me: failed program was:" >&5
3340 sed 's/^/| /' conftest.$ac_ext >&5
3345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3352 ac_c_werror_flag=$ac_save_c_werror_flag
3354 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3355 $as_echo "$ac_cv_prog_cc_g" >&6; }
3356 if test "$ac_test_CFLAGS" = set; then
3357 CFLAGS=$ac_save_CFLAGS
3358 elif test $ac_cv_prog_cc_g = yes; then
3359 if test "$GCC" = yes; then
3365 if test "$GCC" = yes; then
3371 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3372 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3373 if test "${ac_cv_prog_cc_c89+set}" = set; then
3374 $as_echo_n "(cached) " >&6
3376 ac_cv_prog_cc_c89=no
3378 cat >conftest.$ac_ext <<_ACEOF
3381 cat confdefs.h >>conftest.$ac_ext
3382 cat >>conftest.$ac_ext <<_ACEOF
3383 /* end confdefs.h. */
3386 #include <sys/types.h>
3387 #include <sys/stat.h>
3388 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3389 struct buf { int x; };
3390 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3391 static char *e (p, i)
3397 static char *f (char * (*g) (char **, int), char **p, ...)
3402 s = g (p, va_arg (v,int));
3407 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3408 function prototypes and stuff, but not '\xHH' hex character constants.
3409 These don't provoke an error unfortunately, instead are silently treated
3410 as 'x'. The following induces an error, until -std is added to get
3411 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3412 array size at least. It's necessary to write '\x00'==0 to get something
3413 that's true only with -std. */
3414 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3416 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3417 inside strings and character constants. */
3419 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3421 int test (int i, double x);
3422 struct s1 {int (*f) (int a);};
3423 struct s2 {int (*f) (double a);};
3424 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3430 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3435 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3436 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3438 CC="$ac_save_CC $ac_arg"
3439 rm -f conftest.$ac_objext
3440 if { (ac_try="$ac_compile"
3442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443 *) ac_try_echo=$ac_try;;
3445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3446 $as_echo "$ac_try_echo") >&5
3447 (eval "$ac_compile") 2>conftest.er1
3449 grep -v '^ *+' conftest.er1 >conftest.err
3451 cat conftest.err >&5
3452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); } && {
3454 test -z "$ac_c_werror_flag" ||
3455 test ! -s conftest.err
3456 } && test -s conftest.$ac_objext; then
3457 ac_cv_prog_cc_c89=$ac_arg
3459 $as_echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3465 rm -f core conftest.err conftest.$ac_objext
3466 test "x$ac_cv_prog_cc_c89" != "xno" && break
3468 rm -f conftest.$ac_ext
3473 case "x$ac_cv_prog_cc_c89" in
3475 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3476 $as_echo "none needed" >&6; } ;;
3478 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3479 $as_echo "unsupported" >&6; } ;;
3481 CC="$CC $ac_cv_prog_cc_c89"
3482 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3483 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3488 ac_cpp='$CPP $CPPFLAGS'
3489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3492 DEPDIR="${am__leading_dot}deps"
3494 ac_config_commands="$ac_config_commands depfiles"
3497 am_make=${MAKE-make}
3498 cat > confinc << 'END'
3503 # If we don't find an include directive, just comment out the code.
3504 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3505 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3509 # First try GNU make style include.
3510 echo "include confinc" > confmf
3511 # We grep out `Entering directory' and `Leaving directory'
3512 # messages which can occur if `w' ends up in MAKEFLAGS.
3513 # In particular we don't look at `^make:' because GNU make might
3514 # be invoked under some other name (usually "gmake"), in which
3515 # case it prints its new name instead of `make'.
3516 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3521 # Now try BSD make style include.
3522 if test "$am__include" = "#"; then
3523 echo '.include "confinc"' > confmf
3524 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3525 am__include=.include
3532 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3533 $as_echo "$_am_result" >&6; }
3534 rm -f confinc confmf
3536 # Check whether --enable-dependency-tracking was given.
3537 if test "${enable_dependency_tracking+set}" = set; then
3538 enableval=$enable_dependency_tracking;
3541 if test "x$enable_dependency_tracking" != xno; then
3542 am_depcomp="$ac_aux_dir/depcomp"
3545 if test "x$enable_dependency_tracking" != xno; then
3555 depcc="$CC" am_compiler_list=
3557 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3558 $as_echo_n "checking dependency style of $depcc... " >&6; }
3559 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3560 $as_echo_n "(cached) " >&6
3562 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3563 # We make a subdir and do the tests there. Otherwise we can end up
3564 # making bogus files that we don't know about and never remove. For
3565 # instance it was reported that on HP-UX the gcc test will end up
3566 # making a dummy file named `D' -- because `-MD' means `put the output
3569 # Copy depcomp to subdir because otherwise we won't find it if we're
3570 # using a relative directory.
3571 cp "$am_depcomp" conftest.dir
3573 # We will build objects and dependencies in a subdirectory because
3574 # it helps to detect inapplicable dependency modes. For instance
3575 # both Tru64's cc and ICC support -MD to output dependencies as a
3576 # side effect of compilation, but ICC will put the dependencies in
3577 # the current directory while Tru64 will put them in the object
3581 am_cv_CC_dependencies_compiler_type=none
3582 if test "$am_compiler_list" = ""; then
3583 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3585 for depmode in $am_compiler_list; do
3586 # Setup a source with many dependencies, because some compilers
3587 # like to wrap large dependency lists on column 80 (with \), and
3588 # we should not choose a depcomp mode which is confused by this.
3590 # We need to recreate these files for each test, as the compiler may
3591 # overwrite some of them when testing with obscure command lines.
3592 # This happens at least with the AIX C compiler.
3594 for i in 1 2 3 4 5 6; do
3595 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3596 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3597 # Solaris 8's {/usr,}/bin/sh.
3598 touch sub/conftst$i.h
3600 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3604 # after this tag, mechanisms are not by side-effect, so they'll
3605 # only be used when explicitly requested
3606 if test "x$enable_dependency_tracking" = xyes; then
3614 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3615 # mode. It turns out that the SunPro C++ compiler does not properly
3616 # handle `-M -o', and we need to detect this.
3617 if depmode=$depmode \
3618 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3619 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3620 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3621 >/dev/null 2>conftest.err &&
3622 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3623 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3624 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3625 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3626 # icc doesn't choke on unknown options, it will just issue warnings
3627 # or remarks (even with -Werror). So we grep stderr for any message
3628 # that says an option was ignored or not supported.
3629 # When given -MP, icc 7.0 and 7.1 complain thusly:
3630 # icc: Command line warning: ignoring option '-M'; no argument required
3631 # The diagnosis changed in icc 8.0:
3632 # icc: Command line remark: option '-MP' not supported
3633 if (grep 'ignoring option' conftest.err ||
3634 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3635 am_cv_CC_dependencies_compiler_type=$depmode
3644 am_cv_CC_dependencies_compiler_type=none
3648 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3649 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3650 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3653 test "x$enable_dependency_tracking" != xno \
3654 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3656 am__fastdepCC_FALSE='#'
3658 am__fastdepCC_TRUE='#'
3659 am__fastdepCC_FALSE=
3664 ac_c_werror_flag=yes
3665 # Find a good install program. We prefer a C program (faster),
3666 # so one script is as good as another. But avoid the broken or
3667 # incompatible versions:
3668 # SysV /etc/install, /usr/sbin/install
3669 # SunOS /usr/etc/install
3670 # IRIX /sbin/install
3672 # AmigaOS /C/install, which installs bootblocks on floppy discs
3673 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3674 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3675 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3676 # OS/2's system install, which has a completely different semantic
3677 # ./install, which can be erroneously created by make from ./install.sh.
3678 # Reject install programs that cannot install multiple files.
3679 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3680 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3681 if test -z "$INSTALL"; then
3682 if test "${ac_cv_path_install+set}" = set; then
3683 $as_echo_n "(cached) " >&6
3685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689 test -z "$as_dir" && as_dir=.
3690 # Account for people who put trailing slashes in PATH elements.
3692 ./ | .// | /cC/* | \
3693 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3694 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3697 # OSF1 and SCO ODT 3.0 have their own names for install.
3698 # Don't use installbsd from OSF since it installs stuff as root
3700 for ac_prog in ginstall scoinst install; do
3701 for ac_exec_ext in '' $ac_executable_extensions; do
3702 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3703 if test $ac_prog = install &&
3704 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3705 # AIX install. It has an incompatible calling convention.
3707 elif test $ac_prog = install &&
3708 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3709 # program-specific install script used by HP pwplus--don't use.
3712 rm -rf conftest.one conftest.two conftest.dir
3713 echo one > conftest.one
3714 echo two > conftest.two
3716 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3717 test -s conftest.one && test -s conftest.two &&
3718 test -s conftest.dir/conftest.one &&
3719 test -s conftest.dir/conftest.two
3721 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3734 rm -rf conftest.one conftest.two conftest.dir
3737 if test "${ac_cv_path_install+set}" = set; then
3738 INSTALL=$ac_cv_path_install
3740 # As a last resort, use the slow shell script. Don't cache a
3741 # value for INSTALL within a source directory, because that will
3742 # break other packages using the cache if that directory is
3743 # removed, or if the value is a relative name.
3744 INSTALL=$ac_install_sh
3747 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3748 $as_echo "$INSTALL" >&6; }
3750 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3751 # It thinks the first close brace ends the variable substitution.
3752 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3754 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3756 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3758 # Check whether --enable-shared was given.
3759 if test "${enable_shared+set}" = set; then
3760 enableval=$enable_shared; p=${PACKAGE-default}
3762 yes) enable_shared=yes ;;
3763 no) enable_shared=no ;;
3766 # Look at the argument we got. We use all the common list separators.
3767 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3768 for pkg in $enableval; do
3770 if test "X$pkg" = "X$p"; then
3782 # Check whether --enable-static was given.
3783 if test "${enable_static+set}" = set; then
3784 enableval=$enable_static; p=${PACKAGE-default}
3786 yes) enable_static=yes ;;
3787 no) enable_static=no ;;
3790 # Look at the argument we got. We use all the common list separators.
3791 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3792 for pkg in $enableval; do
3794 if test "X$pkg" = "X$p"; then
3806 # Check whether --enable-fast-install was given.
3807 if test "${enable_fast_install+set}" = set; then
3808 enableval=$enable_fast_install; p=${PACKAGE-default}
3810 yes) enable_fast_install=yes ;;
3811 no) enable_fast_install=no ;;
3813 enable_fast_install=no
3814 # Look at the argument we got. We use all the common list separators.
3815 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3816 for pkg in $enableval; do
3818 if test "X$pkg" = "X$p"; then
3819 enable_fast_install=yes
3826 enable_fast_install=yes
3830 # Make sure we can run config.sub.
3831 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3832 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3833 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3834 { (exit 1); exit 1; }; }
3836 { $as_echo "$as_me:$LINENO: checking build system type" >&5
3837 $as_echo_n "checking build system type... " >&6; }
3838 if test "${ac_cv_build+set}" = set; then
3839 $as_echo_n "(cached) " >&6
3841 ac_build_alias=$build_alias
3842 test "x$ac_build_alias" = x &&
3843 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3844 test "x$ac_build_alias" = x &&
3845 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3846 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3847 { (exit 1); exit 1; }; }
3848 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3849 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3850 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3851 { (exit 1); exit 1; }; }
3854 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3855 $as_echo "$ac_cv_build" >&6; }
3856 case $ac_cv_build in
3858 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3859 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
3860 { (exit 1); exit 1; }; };;
3863 ac_save_IFS=$IFS; IFS='-'
3869 # Remember, the first character of IFS is used to create $*,
3870 # except with old shells:
3873 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3876 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3877 $as_echo_n "checking host system type... " >&6; }
3878 if test "${ac_cv_host+set}" = set; then
3879 $as_echo_n "(cached) " >&6
3881 if test "x$host_alias" = x; then
3882 ac_cv_host=$ac_cv_build
3884 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3885 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3886 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3887 { (exit 1); exit 1; }; }
3891 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3892 $as_echo "$ac_cv_host" >&6; }
3895 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3896 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3897 { (exit 1); exit 1; }; };;
3900 ac_save_IFS=$IFS; IFS='-'
3906 # Remember, the first character of IFS is used to create $*,
3907 # except with old shells:
3910 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3913 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3914 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3915 if test "${lt_cv_path_SED+set}" = set; then
3916 $as_echo_n "(cached) " >&6
3918 # Loop through the user's path and test for sed and gsed.
3919 # Then use that list of sed's as ones to test for truncation.
3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924 test -z "$as_dir" && as_dir=.
3925 for lt_ac_prog in sed gsed; do
3926 for ac_exec_ext in '' $ac_executable_extensions; do
3927 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3928 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3936 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3937 # along with /bin/sed that truncates output.
3938 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3939 test ! -f $lt_ac_sed && continue
3940 cat /dev/null > conftest.in
3942 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3943 # Check for GNU sed and select it if it is found.
3944 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3945 lt_cv_path_SED=$lt_ac_sed
3949 cat conftest.in conftest.in >conftest.tmp
3950 mv conftest.tmp conftest.in
3951 cp conftest.in conftest.nl
3953 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3954 cmp -s conftest.out conftest.nl || break
3955 # 10000 chars as input seems more than enough
3956 test $lt_ac_count -gt 10 && break
3957 lt_ac_count=`expr $lt_ac_count + 1`
3958 if test $lt_ac_count -gt $lt_ac_max; then
3959 lt_ac_max=$lt_ac_count
3960 lt_cv_path_SED=$lt_ac_sed
3969 { $as_echo "$as_me:$LINENO: result: $SED" >&5
3970 $as_echo "$SED" >&6; }
3972 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3973 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3974 if test "${ac_cv_path_GREP+set}" = set; then
3975 $as_echo_n "(cached) " >&6
3977 if test -z "$GREP"; then
3978 ac_path_GREP_found=false
3979 # Loop through the user's path and test for each of PROGNAME-LIST
3980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3981 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3984 test -z "$as_dir" && as_dir=.
3985 for ac_prog in grep ggrep; do
3986 for ac_exec_ext in '' $ac_executable_extensions; do
3987 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3988 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3989 # Check for GNU ac_path_GREP and select it if it is found.
3990 # Check for GNU $ac_path_GREP
3991 case `"$ac_path_GREP" --version 2>&1` in
3993 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3996 $as_echo_n 0123456789 >"conftest.in"
3999 cat "conftest.in" "conftest.in" >"conftest.tmp"
4000 mv "conftest.tmp" "conftest.in"
4001 cp "conftest.in" "conftest.nl"
4002 $as_echo 'GREP' >> "conftest.nl"
4003 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4004 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4005 ac_count=`expr $ac_count + 1`
4006 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4007 # Best one so far, save it but keep looking for a better one
4008 ac_cv_path_GREP="$ac_path_GREP"
4009 ac_path_GREP_max=$ac_count
4011 # 10*(2^10) chars as input seems more than enough
4012 test $ac_count -gt 10 && break
4014 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4017 $ac_path_GREP_found && break 3
4022 if test -z "$ac_cv_path_GREP"; then
4023 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4024 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4025 { (exit 1); exit 1; }; }
4028 ac_cv_path_GREP=$GREP
4032 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4033 $as_echo "$ac_cv_path_GREP" >&6; }
4034 GREP="$ac_cv_path_GREP"
4037 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4038 $as_echo_n "checking for egrep... " >&6; }
4039 if test "${ac_cv_path_EGREP+set}" = set; then
4040 $as_echo_n "(cached) " >&6
4042 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4043 then ac_cv_path_EGREP="$GREP -E"
4045 if test -z "$EGREP"; then
4046 ac_path_EGREP_found=false
4047 # Loop through the user's path and test for each of PROGNAME-LIST
4048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4049 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4052 test -z "$as_dir" && as_dir=.
4053 for ac_prog in egrep; do
4054 for ac_exec_ext in '' $ac_executable_extensions; do
4055 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4056 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4057 # Check for GNU ac_path_EGREP and select it if it is found.
4058 # Check for GNU $ac_path_EGREP
4059 case `"$ac_path_EGREP" --version 2>&1` in
4061 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4064 $as_echo_n 0123456789 >"conftest.in"
4067 cat "conftest.in" "conftest.in" >"conftest.tmp"
4068 mv "conftest.tmp" "conftest.in"
4069 cp "conftest.in" "conftest.nl"
4070 $as_echo 'EGREP' >> "conftest.nl"
4071 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4072 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4073 ac_count=`expr $ac_count + 1`
4074 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4075 # Best one so far, save it but keep looking for a better one
4076 ac_cv_path_EGREP="$ac_path_EGREP"
4077 ac_path_EGREP_max=$ac_count
4079 # 10*(2^10) chars as input seems more than enough
4080 test $ac_count -gt 10 && break
4082 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4085 $ac_path_EGREP_found && break 3
4090 if test -z "$ac_cv_path_EGREP"; then
4091 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4092 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4093 { (exit 1); exit 1; }; }
4096 ac_cv_path_EGREP=$EGREP
4101 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4102 $as_echo "$ac_cv_path_EGREP" >&6; }
4103 EGREP="$ac_cv_path_EGREP"
4107 # Check whether --with-gnu-ld was given.
4108 if test "${with_gnu_ld+set}" = set; then
4109 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4115 if test "$GCC" = yes; then
4116 # Check if gcc -print-prog-name=ld gives a path.
4117 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4118 $as_echo_n "checking for ld used by $CC... " >&6; }
4121 # gcc leaves a trailing carriage return which upsets mingw
4122 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4124 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4127 # Accept absolute paths.
4129 re_direlt='/[^/][^/]*/\.\./'
4130 # Canonicalize the pathname of ld
4131 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4132 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4133 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4135 test -z "$LD" && LD="$ac_prog"
4138 # If it fails, then pretend we aren't using GCC.
4142 # If it is relative, then search for the first ld in PATH.
4146 elif test "$with_gnu_ld" = yes; then
4147 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4148 $as_echo_n "checking for GNU ld... " >&6; }
4150 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4151 $as_echo_n "checking for non-GNU ld... " >&6; }
4153 if test "${lt_cv_path_LD+set}" = set; then
4154 $as_echo_n "(cached) " >&6
4156 if test -z "$LD"; then
4157 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4158 for ac_dir in $PATH; do
4160 test -z "$ac_dir" && ac_dir=.
4161 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4162 lt_cv_path_LD="$ac_dir/$ac_prog"
4163 # Check to see if the program is GNU ld. I'd rather use --version,
4164 # but apparently some variants of GNU ld only accept -v.
4165 # Break only if it was the GNU/non-GNU ld that we prefer.
4166 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4167 *GNU* | *'with BFD'*)
4168 test "$with_gnu_ld" != no && break
4171 test "$with_gnu_ld" != yes && break
4178 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4183 if test -n "$LD"; then
4184 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4185 $as_echo "$LD" >&6; }
4187 { $as_echo "$as_me:$LINENO: result: no" >&5
4188 $as_echo "no" >&6; }
4190 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4191 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4192 { (exit 1); exit 1; }; }
4193 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4194 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4195 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4196 $as_echo_n "(cached) " >&6
4198 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4199 case `$LD -v 2>&1 </dev/null` in
4200 *GNU* | *'with BFD'*)
4201 lt_cv_prog_gnu_ld=yes
4204 lt_cv_prog_gnu_ld=no
4208 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4209 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4210 with_gnu_ld=$lt_cv_prog_gnu_ld
4213 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4214 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4215 if test "${lt_cv_ld_reload_flag+set}" = set; then
4216 $as_echo_n "(cached) " >&6
4218 lt_cv_ld_reload_flag='-r'
4220 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4221 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4222 reload_flag=$lt_cv_ld_reload_flag
4223 case $reload_flag in
4225 *) reload_flag=" $reload_flag" ;;
4227 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4230 if test "$GCC" = yes; then
4231 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4233 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4238 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4239 $as_echo_n "checking for BSD-compatible nm... " >&6; }
4240 if test "${lt_cv_path_NM+set}" = set; then
4241 $as_echo_n "(cached) " >&6
4243 if test -n "$NM"; then
4244 # Let the user override the test.
4247 lt_nm_to_check="${ac_tool_prefix}nm"
4248 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4249 lt_nm_to_check="$lt_nm_to_check nm"
4251 for lt_tmp_nm in $lt_nm_to_check; do
4252 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4253 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4255 test -z "$ac_dir" && ac_dir=.
4256 tmp_nm="$ac_dir/$lt_tmp_nm"
4257 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4258 # Check to see if the nm accepts a BSD-compat flag.
4259 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4260 # nm: unknown option "B" ignored
4261 # Tru64's nm complains that /dev/null is an invalid object file
4262 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4263 */dev/null* | *'Invalid file or object type'*)
4264 lt_cv_path_NM="$tmp_nm -B"
4268 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4270 lt_cv_path_NM="$tmp_nm -p"
4274 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4275 continue # so that we can try to find one that supports BSD flags
4284 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4287 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4288 $as_echo "$lt_cv_path_NM" >&6; }
4291 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4292 $as_echo_n "checking whether ln -s works... " >&6; }
4294 if test "$LN_S" = "ln -s"; then
4295 { $as_echo "$as_me:$LINENO: result: yes" >&5
4296 $as_echo "yes" >&6; }
4298 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4299 $as_echo "no, using $LN_S" >&6; }
4302 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4303 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4304 if test "${lt_cv_deplibs_check_method+set}" = set; then
4305 $as_echo_n "(cached) " >&6
4307 lt_cv_file_magic_cmd='$MAGIC_CMD'
4308 lt_cv_file_magic_test_file=
4309 lt_cv_deplibs_check_method='unknown'
4310 # Need to set the preceding variable on all platforms that support
4311 # interlibrary dependencies.
4312 # 'none' -- dependencies not supported.
4313 # `unknown' -- same as none, but documents that we really don't know.
4314 # 'pass_all' -- all dependencies passed with no checks.
4315 # 'test_compile' -- check by making test program.
4316 # 'file_magic [[regex]]' -- check by looking for files in library path
4317 # which responds to the $file_magic_cmd with a given extended regex.
4318 # If you have `file' or equivalent on your system and you're not sure
4319 # whether `pass_all' will *always* work, you probably want this one.
4323 lt_cv_deplibs_check_method=pass_all
4327 lt_cv_deplibs_check_method=pass_all
4331 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4332 lt_cv_file_magic_cmd='/usr/bin/file -L'
4333 lt_cv_file_magic_test_file=/shlib/libc.so
4337 # func_win32_libid is a shell function defined in ltmain.sh
4338 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4339 lt_cv_file_magic_cmd='func_win32_libid'
4343 # Base MSYS/MinGW do not provide the 'file' command needed by
4344 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4345 # unless we find 'file', for example because we are cross-compiling.
4346 if ( file / ) >/dev/null 2>&1; then
4347 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4348 lt_cv_file_magic_cmd='func_win32_libid'
4350 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4351 lt_cv_file_magic_cmd='$OBJDUMP -f'
4355 darwin* | rhapsody*)
4356 lt_cv_deplibs_check_method=pass_all
4359 freebsd* | dragonfly*)
4360 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4363 # Not sure whether the presence of OpenBSD here was a mistake.
4364 # Let's accept both of them until this is cleared up.
4365 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4366 lt_cv_file_magic_cmd=/usr/bin/file
4367 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4371 lt_cv_deplibs_check_method=pass_all
4376 lt_cv_deplibs_check_method=pass_all
4379 hpux10.20* | hpux11*)
4380 lt_cv_file_magic_cmd=/usr/bin/file
4383 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4384 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4387 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]'
4388 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4391 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4392 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4398 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4399 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4402 irix5* | irix6* | nonstopux*)
4404 *-32|*"-32 ") libmagic=32-bit;;
4405 *-n32|*"-n32 ") libmagic=N32;;
4406 *-64|*"-64 ") libmagic=64-bit;;
4407 *) libmagic=never-match;;
4409 lt_cv_deplibs_check_method=pass_all
4412 # This must be Linux ELF.
4413 linux* | k*bsd*-gnu)
4414 lt_cv_deplibs_check_method=pass_all
4417 netbsd* | netbsdelf*-gnu)
4418 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4419 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4421 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4426 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4427 lt_cv_file_magic_cmd=/usr/bin/file
4428 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4432 lt_cv_deplibs_check_method=unknown
4436 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4437 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4439 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4443 osf3* | osf4* | osf5*)
4444 lt_cv_deplibs_check_method=pass_all
4448 lt_cv_deplibs_check_method=pass_all
4452 lt_cv_deplibs_check_method=pass_all
4456 case $host_vendor in
4458 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]'
4459 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4462 lt_cv_deplibs_check_method=pass_all
4465 lt_cv_file_magic_cmd='/bin/file'
4466 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4469 lt_cv_file_magic_cmd='/bin/file'
4470 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4471 lt_cv_file_magic_test_file=/lib/libc.so
4474 lt_cv_deplibs_check_method=pass_all
4477 lt_cv_deplibs_check_method=pass_all
4482 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4483 lt_cv_deplibs_check_method=pass_all
4488 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4489 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4490 file_magic_cmd=$lt_cv_file_magic_cmd
4491 deplibs_check_method=$lt_cv_deplibs_check_method
4492 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4497 # If no C compiler was specified, use CC.
4500 # If no C compiler flags were specified, use CFLAGS.
4501 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4503 # Allow CC to be a program name with arguments.
4507 # Check whether --enable-libtool-lock was given.
4508 if test "${enable_libtool_lock+set}" = set; then
4509 enableval=$enable_libtool_lock;
4512 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4514 # Some flags need to be propagated to the compiler or linker for good
4518 # Find out which ABI we are using.
4519 echo 'int i;' > conftest.$ac_ext
4520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4521 (eval $ac_compile) 2>&5
4523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); }; then
4525 case `/usr/bin/file conftest.$ac_objext` in
4537 # Find out which ABI we are using.
4538 echo '#line 4538 "configure"' > conftest.$ac_ext
4539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4540 (eval $ac_compile) 2>&5
4542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); }; then
4544 if test "$lt_cv_prog_gnu_ld" = yes; then
4545 case `/usr/bin/file conftest.$ac_objext` in
4547 LD="${LD-ld} -melf32bsmip"
4550 LD="${LD-ld} -melf32bmipn32"
4553 LD="${LD-ld} -melf64bmip"
4557 case `/usr/bin/file conftest.$ac_objext` in
4573 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4574 s390*-*linux*|sparc*-*linux*)
4575 # Find out which ABI we are using.
4576 echo 'int i;' > conftest.$ac_ext
4577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4578 (eval $ac_compile) 2>&5
4580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581 (exit $ac_status); }; then
4582 case `/usr/bin/file conftest.o` in
4585 x86_64-*kfreebsd*-gnu)
4586 LD="${LD-ld} -m elf_i386_fbsd"
4589 LD="${LD-ld} -m elf_i386"
4591 ppc64-*linux*|powerpc64-*linux*)
4592 LD="${LD-ld} -m elf32ppclinux"
4595 LD="${LD-ld} -m elf_s390"
4598 LD="${LD-ld} -m elf32_sparc"
4604 x86_64-*kfreebsd*-gnu)
4605 LD="${LD-ld} -m elf_x86_64_fbsd"
4608 LD="${LD-ld} -m elf_x86_64"
4610 ppc*-*linux*|powerpc*-*linux*)
4611 LD="${LD-ld} -m elf64ppc"
4614 LD="${LD-ld} -m elf64_s390"
4617 LD="${LD-ld} -m elf64_sparc"
4627 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4628 SAVE_CFLAGS="$CFLAGS"
4629 CFLAGS="$CFLAGS -belf"
4630 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4631 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4632 if test "${lt_cv_cc_needs_belf+set}" = set; then
4633 $as_echo_n "(cached) " >&6
4636 ac_cpp='$CPP $CPPFLAGS'
4637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4641 cat >conftest.$ac_ext <<_ACEOF
4644 cat confdefs.h >>conftest.$ac_ext
4645 cat >>conftest.$ac_ext <<_ACEOF
4646 /* end confdefs.h. */
4656 rm -f conftest.$ac_objext conftest$ac_exeext
4657 if { (ac_try="$ac_link"
4659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4660 *) ac_try_echo=$ac_try;;
4662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4663 $as_echo "$ac_try_echo") >&5
4664 (eval "$ac_link") 2>conftest.er1
4666 grep -v '^ *+' conftest.er1 >conftest.err
4668 cat conftest.err >&5
4669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); } && {
4671 test -z "$ac_c_werror_flag" ||
4672 test ! -s conftest.err
4673 } && test -s conftest$ac_exeext && {
4674 test "$cross_compiling" = yes ||
4675 $as_test_x conftest$ac_exeext
4677 lt_cv_cc_needs_belf=yes
4679 $as_echo "$as_me: failed program was:" >&5
4680 sed 's/^/| /' conftest.$ac_ext >&5
4682 lt_cv_cc_needs_belf=no
4685 rm -rf conftest.dSYM
4686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4687 conftest$ac_exeext conftest.$ac_ext
4689 ac_cpp='$CPP $CPPFLAGS'
4690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4695 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4696 $as_echo "$lt_cv_cc_needs_belf" >&6; }
4697 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4698 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4699 CFLAGS="$SAVE_CFLAGS"
4703 # Find out which ABI we are using.
4704 echo 'int i;' > conftest.$ac_ext
4705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4706 (eval $ac_compile) 2>&5
4708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709 (exit $ac_status); }; then
4710 case `/usr/bin/file conftest.o` in
4712 case $lt_cv_prog_gnu_ld in
4713 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4715 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4729 need_locks="$enable_libtool_lock"
4733 ac_cpp='$CPP $CPPFLAGS'
4734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4737 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4738 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4739 # On Suns, sometimes $CPP names a directory.
4740 if test -n "$CPP" && test -d "$CPP"; then
4743 if test -z "$CPP"; then
4744 if test "${ac_cv_prog_CPP+set}" = set; then
4745 $as_echo_n "(cached) " >&6
4747 # Double quotes because CPP needs to be expanded
4748 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4751 for ac_c_preproc_warn_flag in '' yes
4753 # Use a header file that comes with gcc, so configuring glibc
4754 # with a fresh cross-compiler works.
4755 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4756 # <limits.h> exists even on freestanding compilers.
4757 # On the NeXT, cc -E runs the code through the compiler's parser,
4758 # not just through cpp. "Syntax error" is here to catch this case.
4759 cat >conftest.$ac_ext <<_ACEOF
4762 cat confdefs.h >>conftest.$ac_ext
4763 cat >>conftest.$ac_ext <<_ACEOF
4764 /* end confdefs.h. */
4766 # include <limits.h>
4768 # include <assert.h>
4772 if { (ac_try="$ac_cpp conftest.$ac_ext"
4774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4775 *) ac_try_echo=$ac_try;;
4777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4778 $as_echo "$ac_try_echo") >&5
4779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4781 grep -v '^ *+' conftest.er1 >conftest.err
4783 cat conftest.err >&5
4784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); } >/dev/null && {
4786 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4787 test ! -s conftest.err
4791 $as_echo "$as_me: failed program was:" >&5
4792 sed 's/^/| /' conftest.$ac_ext >&5
4794 # Broken: fails on valid input.
4798 rm -f conftest.err conftest.$ac_ext
4800 # OK, works on sane cases. Now check whether nonexistent headers
4801 # can be detected and how.
4802 cat >conftest.$ac_ext <<_ACEOF
4805 cat confdefs.h >>conftest.$ac_ext
4806 cat >>conftest.$ac_ext <<_ACEOF
4807 /* end confdefs.h. */
4808 #include <ac_nonexistent.h>
4810 if { (ac_try="$ac_cpp conftest.$ac_ext"
4812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4813 *) ac_try_echo=$ac_try;;
4815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4816 $as_echo "$ac_try_echo") >&5
4817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4819 grep -v '^ *+' conftest.er1 >conftest.err
4821 cat conftest.err >&5
4822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); } >/dev/null && {
4824 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4825 test ! -s conftest.err
4827 # Broken: success on invalid input.
4830 $as_echo "$as_me: failed program was:" >&5
4831 sed 's/^/| /' conftest.$ac_ext >&5
4833 # Passes both tests.
4838 rm -f conftest.err conftest.$ac_ext
4841 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4842 rm -f conftest.err conftest.$ac_ext
4843 if $ac_preproc_ok; then
4855 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4856 $as_echo "$CPP" >&6; }
4858 for ac_c_preproc_warn_flag in '' yes
4860 # Use a header file that comes with gcc, so configuring glibc
4861 # with a fresh cross-compiler works.
4862 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4863 # <limits.h> exists even on freestanding compilers.
4864 # On the NeXT, cc -E runs the code through the compiler's parser,
4865 # not just through cpp. "Syntax error" is here to catch this case.
4866 cat >conftest.$ac_ext <<_ACEOF
4869 cat confdefs.h >>conftest.$ac_ext
4870 cat >>conftest.$ac_ext <<_ACEOF
4871 /* end confdefs.h. */
4873 # include <limits.h>
4875 # include <assert.h>
4879 if { (ac_try="$ac_cpp conftest.$ac_ext"
4881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4882 *) ac_try_echo=$ac_try;;
4884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4885 $as_echo "$ac_try_echo") >&5
4886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4888 grep -v '^ *+' conftest.er1 >conftest.err
4890 cat conftest.err >&5
4891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); } >/dev/null && {
4893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4894 test ! -s conftest.err
4898 $as_echo "$as_me: failed program was:" >&5
4899 sed 's/^/| /' conftest.$ac_ext >&5
4901 # Broken: fails on valid input.
4905 rm -f conftest.err conftest.$ac_ext
4907 # OK, works on sane cases. Now check whether nonexistent headers
4908 # can be detected and how.
4909 cat >conftest.$ac_ext <<_ACEOF
4912 cat confdefs.h >>conftest.$ac_ext
4913 cat >>conftest.$ac_ext <<_ACEOF
4914 /* end confdefs.h. */
4915 #include <ac_nonexistent.h>
4917 if { (ac_try="$ac_cpp conftest.$ac_ext"
4919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4920 *) ac_try_echo=$ac_try;;
4922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4923 $as_echo "$ac_try_echo") >&5
4924 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4926 grep -v '^ *+' conftest.er1 >conftest.err
4928 cat conftest.err >&5
4929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930 (exit $ac_status); } >/dev/null && {
4931 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4932 test ! -s conftest.err
4934 # Broken: success on invalid input.
4937 $as_echo "$as_me: failed program was:" >&5
4938 sed 's/^/| /' conftest.$ac_ext >&5
4940 # Passes both tests.
4945 rm -f conftest.err conftest.$ac_ext
4948 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4949 rm -f conftest.err conftest.$ac_ext
4950 if $ac_preproc_ok; then
4953 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4954 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4955 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4956 See \`config.log' for more details." >&5
4957 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4958 See \`config.log' for more details." >&2;}
4959 { (exit 1); exit 1; }; }; }
4963 ac_cpp='$CPP $CPPFLAGS'
4964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4969 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4970 $as_echo_n "checking for ANSI C header files... " >&6; }
4971 if test "${ac_cv_header_stdc+set}" = set; then
4972 $as_echo_n "(cached) " >&6
4974 cat >conftest.$ac_ext <<_ACEOF
4977 cat confdefs.h >>conftest.$ac_ext
4978 cat >>conftest.$ac_ext <<_ACEOF
4979 /* end confdefs.h. */
4993 rm -f conftest.$ac_objext
4994 if { (ac_try="$ac_compile"
4996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4997 *) ac_try_echo=$ac_try;;
4999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5000 $as_echo "$ac_try_echo") >&5
5001 (eval "$ac_compile") 2>conftest.er1
5003 grep -v '^ *+' conftest.er1 >conftest.err
5005 cat conftest.err >&5
5006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); } && {
5008 test -z "$ac_c_werror_flag" ||
5009 test ! -s conftest.err
5010 } && test -s conftest.$ac_objext; then
5011 ac_cv_header_stdc=yes
5013 $as_echo "$as_me: failed program was:" >&5
5014 sed 's/^/| /' conftest.$ac_ext >&5
5016 ac_cv_header_stdc=no
5019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5021 if test $ac_cv_header_stdc = yes; then
5022 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5023 cat >conftest.$ac_ext <<_ACEOF
5026 cat confdefs.h >>conftest.$ac_ext
5027 cat >>conftest.$ac_ext <<_ACEOF
5028 /* end confdefs.h. */
5032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5033 $EGREP "memchr" >/dev/null 2>&1; then
5036 ac_cv_header_stdc=no
5042 if test $ac_cv_header_stdc = yes; then
5043 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5044 cat >conftest.$ac_ext <<_ACEOF
5047 cat confdefs.h >>conftest.$ac_ext
5048 cat >>conftest.$ac_ext <<_ACEOF
5049 /* end confdefs.h. */
5053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5054 $EGREP "free" >/dev/null 2>&1; then
5057 ac_cv_header_stdc=no
5063 if test $ac_cv_header_stdc = yes; then
5064 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5065 if test "$cross_compiling" = yes; then
5068 cat >conftest.$ac_ext <<_ACEOF
5071 cat confdefs.h >>conftest.$ac_ext
5072 cat >>conftest.$ac_ext <<_ACEOF
5073 /* end confdefs.h. */
5076 #if ((' ' & 0x0FF) == 0x020)
5077 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5078 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5080 # define ISLOWER(c) \
5081 (('a' <= (c) && (c) <= 'i') \
5082 || ('j' <= (c) && (c) <= 'r') \
5083 || ('s' <= (c) && (c) <= 'z'))
5084 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5087 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5092 for (i = 0; i < 256; i++)
5093 if (XOR (islower (i), ISLOWER (i))
5094 || toupper (i) != TOUPPER (i))
5099 rm -f conftest$ac_exeext
5100 if { (ac_try="$ac_link"
5102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5103 *) ac_try_echo=$ac_try;;
5105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5106 $as_echo "$ac_try_echo") >&5
5107 (eval "$ac_link") 2>&5
5109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5111 { (case "(($ac_try" in
5112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5113 *) ac_try_echo=$ac_try;;
5115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5116 $as_echo "$ac_try_echo") >&5
5117 (eval "$ac_try") 2>&5
5119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); }; }; then
5123 $as_echo "$as_me: program exited with status $ac_status" >&5
5124 $as_echo "$as_me: failed program was:" >&5
5125 sed 's/^/| /' conftest.$ac_ext >&5
5128 ac_cv_header_stdc=no
5130 rm -rf conftest.dSYM
5131 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5137 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5138 $as_echo "$ac_cv_header_stdc" >&6; }
5139 if test $ac_cv_header_stdc = yes; then
5141 cat >>confdefs.h <<\_ACEOF
5142 #define STDC_HEADERS 1
5147 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5157 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5158 inttypes.h stdint.h unistd.h
5160 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5161 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5162 $as_echo_n "checking for $ac_header... " >&6; }
5163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5164 $as_echo_n "(cached) " >&6
5166 cat >conftest.$ac_ext <<_ACEOF
5169 cat confdefs.h >>conftest.$ac_ext
5170 cat >>conftest.$ac_ext <<_ACEOF
5171 /* end confdefs.h. */
5172 $ac_includes_default
5174 #include <$ac_header>
5176 rm -f conftest.$ac_objext
5177 if { (ac_try="$ac_compile"
5179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5180 *) ac_try_echo=$ac_try;;
5182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5183 $as_echo "$ac_try_echo") >&5
5184 (eval "$ac_compile") 2>conftest.er1
5186 grep -v '^ *+' conftest.er1 >conftest.err
5188 cat conftest.err >&5
5189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); } && {
5191 test -z "$ac_c_werror_flag" ||
5192 test ! -s conftest.err
5193 } && test -s conftest.$ac_objext; then
5194 eval "$as_ac_Header=yes"
5196 $as_echo "$as_me: failed program was:" >&5
5197 sed 's/^/| /' conftest.$ac_ext >&5
5199 eval "$as_ac_Header=no"
5202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5204 ac_res=`eval 'as_val=${'$as_ac_Header'}
5205 $as_echo "$as_val"'`
5206 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5207 $as_echo "$ac_res" >&6; }
5208 as_val=`eval 'as_val=${'$as_ac_Header'}
5209 $as_echo "$as_val"'`
5210 if test "x$as_val" = x""yes; then
5211 cat >>confdefs.h <<_ACEOF
5212 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5221 for ac_header in dlfcn.h
5223 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5225 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5226 $as_echo_n "checking for $ac_header... " >&6; }
5227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5228 $as_echo_n "(cached) " >&6
5230 ac_res=`eval 'as_val=${'$as_ac_Header'}
5231 $as_echo "$as_val"'`
5232 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5233 $as_echo "$ac_res" >&6; }
5235 # Is the header compilable?
5236 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5237 $as_echo_n "checking $ac_header usability... " >&6; }
5238 cat >conftest.$ac_ext <<_ACEOF
5241 cat confdefs.h >>conftest.$ac_ext
5242 cat >>conftest.$ac_ext <<_ACEOF
5243 /* end confdefs.h. */
5244 $ac_includes_default
5245 #include <$ac_header>
5247 rm -f conftest.$ac_objext
5248 if { (ac_try="$ac_compile"
5250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5251 *) ac_try_echo=$ac_try;;
5253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5254 $as_echo "$ac_try_echo") >&5
5255 (eval "$ac_compile") 2>conftest.er1
5257 grep -v '^ *+' conftest.er1 >conftest.err
5259 cat conftest.err >&5
5260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); } && {
5262 test -z "$ac_c_werror_flag" ||
5263 test ! -s conftest.err
5264 } && test -s conftest.$ac_objext; then
5265 ac_header_compiler=yes
5267 $as_echo "$as_me: failed program was:" >&5
5268 sed 's/^/| /' conftest.$ac_ext >&5
5270 ac_header_compiler=no
5273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5274 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5275 $as_echo "$ac_header_compiler" >&6; }
5277 # Is the header present?
5278 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5279 $as_echo_n "checking $ac_header presence... " >&6; }
5280 cat >conftest.$ac_ext <<_ACEOF
5283 cat confdefs.h >>conftest.$ac_ext
5284 cat >>conftest.$ac_ext <<_ACEOF
5285 /* end confdefs.h. */
5286 #include <$ac_header>
5288 if { (ac_try="$ac_cpp conftest.$ac_ext"
5290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5291 *) ac_try_echo=$ac_try;;
5293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5294 $as_echo "$ac_try_echo") >&5
5295 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5297 grep -v '^ *+' conftest.er1 >conftest.err
5299 cat conftest.err >&5
5300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); } >/dev/null && {
5302 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5303 test ! -s conftest.err
5305 ac_header_preproc=yes
5307 $as_echo "$as_me: failed program was:" >&5
5308 sed 's/^/| /' conftest.$ac_ext >&5
5310 ac_header_preproc=no
5313 rm -f conftest.err conftest.$ac_ext
5314 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5315 $as_echo "$ac_header_preproc" >&6; }
5317 # So? What about this header?
5318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5320 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5321 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5322 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5323 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5324 ac_header_preproc=yes
5327 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5328 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5329 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5330 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5331 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5332 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5333 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5334 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5335 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5336 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5337 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5338 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5340 ## ------------------------------------- ##
5341 ## Report this to markus@shellinabox.com ##
5342 ## ------------------------------------- ##
5344 ) | sed "s/^/$as_me: WARNING: /" >&2
5347 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5348 $as_echo_n "checking for $ac_header... " >&6; }
5349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5350 $as_echo_n "(cached) " >&6
5352 eval "$as_ac_Header=\$ac_header_preproc"
5354 ac_res=`eval 'as_val=${'$as_ac_Header'}
5355 $as_echo "$as_val"'`
5356 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5357 $as_echo "$ac_res" >&6; }
5360 as_val=`eval 'as_val=${'$as_ac_Header'}
5361 $as_echo "$as_val"'`
5362 if test "x$as_val" = x""yes; then
5363 cat >>confdefs.h <<_ACEOF
5364 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5372 ac_cpp='$CXXCPP $CPPFLAGS'
5373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5376 if test -z "$CXX"; then
5377 if test -n "$CCC"; then
5380 if test -n "$ac_tool_prefix"; then
5381 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5383 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5384 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5385 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5386 $as_echo_n "checking for $ac_word... " >&6; }
5387 if test "${ac_cv_prog_CXX+set}" = set; then
5388 $as_echo_n "(cached) " >&6
5390 if test -n "$CXX"; then
5391 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397 test -z "$as_dir" && as_dir=.
5398 for ac_exec_ext in '' $ac_executable_extensions; do
5399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5400 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5401 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5411 if test -n "$CXX"; then
5412 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5413 $as_echo "$CXX" >&6; }
5415 { $as_echo "$as_me:$LINENO: result: no" >&5
5416 $as_echo "no" >&6; }
5420 test -n "$CXX" && break
5423 if test -z "$CXX"; then
5425 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5427 # Extract the first word of "$ac_prog", so it can be a program name with args.
5428 set dummy $ac_prog; ac_word=$2
5429 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5430 $as_echo_n "checking for $ac_word... " >&6; }
5431 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5432 $as_echo_n "(cached) " >&6
5434 if test -n "$ac_ct_CXX"; then
5435 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5441 test -z "$as_dir" && as_dir=.
5442 for ac_exec_ext in '' $ac_executable_extensions; do
5443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5444 ac_cv_prog_ac_ct_CXX="$ac_prog"
5445 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5454 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5455 if test -n "$ac_ct_CXX"; then
5456 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5457 $as_echo "$ac_ct_CXX" >&6; }
5459 { $as_echo "$as_me:$LINENO: result: no" >&5
5460 $as_echo "no" >&6; }
5464 test -n "$ac_ct_CXX" && break
5467 if test "x$ac_ct_CXX" = x; then
5470 case $cross_compiling:$ac_tool_warned in
5472 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5473 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5474 ac_tool_warned=yes ;;
5482 # Provide some information about the compiler.
5483 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5486 { (ac_try="$ac_compiler --version >&5"
5488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5489 *) ac_try_echo=$ac_try;;
5491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5492 $as_echo "$ac_try_echo") >&5
5493 (eval "$ac_compiler --version >&5") 2>&5
5495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); }
5497 { (ac_try="$ac_compiler -v >&5"
5499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5500 *) ac_try_echo=$ac_try;;
5502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5503 $as_echo "$ac_try_echo") >&5
5504 (eval "$ac_compiler -v >&5") 2>&5
5506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); }
5508 { (ac_try="$ac_compiler -V >&5"
5510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5511 *) ac_try_echo=$ac_try;;
5513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5514 $as_echo "$ac_try_echo") >&5
5515 (eval "$ac_compiler -V >&5") 2>&5
5517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); }
5520 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5521 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5522 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5523 $as_echo_n "(cached) " >&6
5525 cat >conftest.$ac_ext <<_ACEOF
5528 cat confdefs.h >>conftest.$ac_ext
5529 cat >>conftest.$ac_ext <<_ACEOF
5530 /* end confdefs.h. */
5543 rm -f conftest.$ac_objext
5544 if { (ac_try="$ac_compile"
5546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5547 *) ac_try_echo=$ac_try;;
5549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5550 $as_echo "$ac_try_echo") >&5
5551 (eval "$ac_compile") 2>conftest.er1
5553 grep -v '^ *+' conftest.er1 >conftest.err
5555 cat conftest.err >&5
5556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); } && {
5558 test -z "$ac_cxx_werror_flag" ||
5559 test ! -s conftest.err
5560 } && test -s conftest.$ac_objext; then
5563 $as_echo "$as_me: failed program was:" >&5
5564 sed 's/^/| /' conftest.$ac_ext >&5
5569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5570 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5573 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5574 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5575 if test $ac_compiler_gnu = yes; then
5580 ac_test_CXXFLAGS=${CXXFLAGS+set}
5581 ac_save_CXXFLAGS=$CXXFLAGS
5582 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5583 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5584 if test "${ac_cv_prog_cxx_g+set}" = set; then
5585 $as_echo_n "(cached) " >&6
5587 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5588 ac_cxx_werror_flag=yes
5591 cat >conftest.$ac_ext <<_ACEOF
5594 cat confdefs.h >>conftest.$ac_ext
5595 cat >>conftest.$ac_ext <<_ACEOF
5596 /* end confdefs.h. */
5606 rm -f conftest.$ac_objext
5607 if { (ac_try="$ac_compile"
5609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5610 *) ac_try_echo=$ac_try;;
5612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5613 $as_echo "$ac_try_echo") >&5
5614 (eval "$ac_compile") 2>conftest.er1
5616 grep -v '^ *+' conftest.er1 >conftest.err
5618 cat conftest.err >&5
5619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); } && {
5621 test -z "$ac_cxx_werror_flag" ||
5622 test ! -s conftest.err
5623 } && test -s conftest.$ac_objext; then
5624 ac_cv_prog_cxx_g=yes
5626 $as_echo "$as_me: failed program was:" >&5
5627 sed 's/^/| /' conftest.$ac_ext >&5
5630 cat >conftest.$ac_ext <<_ACEOF
5633 cat confdefs.h >>conftest.$ac_ext
5634 cat >>conftest.$ac_ext <<_ACEOF
5635 /* end confdefs.h. */
5645 rm -f conftest.$ac_objext
5646 if { (ac_try="$ac_compile"
5648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5649 *) ac_try_echo=$ac_try;;
5651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5652 $as_echo "$ac_try_echo") >&5
5653 (eval "$ac_compile") 2>conftest.er1
5655 grep -v '^ *+' conftest.er1 >conftest.err
5657 cat conftest.err >&5
5658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); } && {
5660 test -z "$ac_cxx_werror_flag" ||
5661 test ! -s conftest.err
5662 } && test -s conftest.$ac_objext; then
5665 $as_echo "$as_me: failed program was:" >&5
5666 sed 's/^/| /' conftest.$ac_ext >&5
5668 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5670 cat >conftest.$ac_ext <<_ACEOF
5673 cat confdefs.h >>conftest.$ac_ext
5674 cat >>conftest.$ac_ext <<_ACEOF
5675 /* end confdefs.h. */
5685 rm -f conftest.$ac_objext
5686 if { (ac_try="$ac_compile"
5688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5689 *) ac_try_echo=$ac_try;;
5691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5692 $as_echo "$ac_try_echo") >&5
5693 (eval "$ac_compile") 2>conftest.er1
5695 grep -v '^ *+' conftest.er1 >conftest.err
5697 cat conftest.err >&5
5698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699 (exit $ac_status); } && {
5700 test -z "$ac_cxx_werror_flag" ||
5701 test ! -s conftest.err
5702 } && test -s conftest.$ac_objext; then
5703 ac_cv_prog_cxx_g=yes
5705 $as_echo "$as_me: failed program was:" >&5
5706 sed 's/^/| /' conftest.$ac_ext >&5
5711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5718 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5720 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5721 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5722 if test "$ac_test_CXXFLAGS" = set; then
5723 CXXFLAGS=$ac_save_CXXFLAGS
5724 elif test $ac_cv_prog_cxx_g = yes; then
5725 if test "$GXX" = yes; then
5731 if test "$GXX" = yes; then
5738 ac_cpp='$CXXCPP $CPPFLAGS'
5739 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5740 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5741 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5743 depcc="$CXX" am_compiler_list=
5745 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5746 $as_echo_n "checking dependency style of $depcc... " >&6; }
5747 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5748 $as_echo_n "(cached) " >&6
5750 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5751 # We make a subdir and do the tests there. Otherwise we can end up
5752 # making bogus files that we don't know about and never remove. For
5753 # instance it was reported that on HP-UX the gcc test will end up
5754 # making a dummy file named `D' -- because `-MD' means `put the output
5757 # Copy depcomp to subdir because otherwise we won't find it if we're
5758 # using a relative directory.
5759 cp "$am_depcomp" conftest.dir
5761 # We will build objects and dependencies in a subdirectory because
5762 # it helps to detect inapplicable dependency modes. For instance
5763 # both Tru64's cc and ICC support -MD to output dependencies as a
5764 # side effect of compilation, but ICC will put the dependencies in
5765 # the current directory while Tru64 will put them in the object
5769 am_cv_CXX_dependencies_compiler_type=none
5770 if test "$am_compiler_list" = ""; then
5771 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5773 for depmode in $am_compiler_list; do
5774 # Setup a source with many dependencies, because some compilers
5775 # like to wrap large dependency lists on column 80 (with \), and
5776 # we should not choose a depcomp mode which is confused by this.
5778 # We need to recreate these files for each test, as the compiler may
5779 # overwrite some of them when testing with obscure command lines.
5780 # This happens at least with the AIX C compiler.
5782 for i in 1 2 3 4 5 6; do
5783 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5784 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5785 # Solaris 8's {/usr,}/bin/sh.
5786 touch sub/conftst$i.h
5788 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5792 # after this tag, mechanisms are not by side-effect, so they'll
5793 # only be used when explicitly requested
5794 if test "x$enable_dependency_tracking" = xyes; then
5802 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5803 # mode. It turns out that the SunPro C++ compiler does not properly
5804 # handle `-M -o', and we need to detect this.
5805 if depmode=$depmode \
5806 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5807 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5808 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5809 >/dev/null 2>conftest.err &&
5810 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5811 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5812 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5813 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5814 # icc doesn't choke on unknown options, it will just issue warnings
5815 # or remarks (even with -Werror). So we grep stderr for any message
5816 # that says an option was ignored or not supported.
5817 # When given -MP, icc 7.0 and 7.1 complain thusly:
5818 # icc: Command line warning: ignoring option '-M'; no argument required
5819 # The diagnosis changed in icc 8.0:
5820 # icc: Command line remark: option '-MP' not supported
5821 if (grep 'ignoring option' conftest.err ||
5822 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5823 am_cv_CXX_dependencies_compiler_type=$depmode
5832 am_cv_CXX_dependencies_compiler_type=none
5836 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5837 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5838 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5841 test "x$enable_dependency_tracking" != xno \
5842 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5843 am__fastdepCXX_TRUE=
5844 am__fastdepCXX_FALSE='#'
5846 am__fastdepCXX_TRUE='#'
5847 am__fastdepCXX_FALSE=
5853 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5854 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5855 (test "X$CXX" != "Xg++"))) ; then
5857 ac_cpp='$CXXCPP $CPPFLAGS'
5858 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5859 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5860 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5861 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5862 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5863 if test -z "$CXXCPP"; then
5864 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5865 $as_echo_n "(cached) " >&6
5867 # Double quotes because CXXCPP needs to be expanded
5868 for CXXCPP in "$CXX -E" "/lib/cpp"
5871 for ac_cxx_preproc_warn_flag in '' yes
5873 # Use a header file that comes with gcc, so configuring glibc
5874 # with a fresh cross-compiler works.
5875 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5876 # <limits.h> exists even on freestanding compilers.
5877 # On the NeXT, cc -E runs the code through the compiler's parser,
5878 # not just through cpp. "Syntax error" is here to catch this case.
5879 cat >conftest.$ac_ext <<_ACEOF
5882 cat confdefs.h >>conftest.$ac_ext
5883 cat >>conftest.$ac_ext <<_ACEOF
5884 /* end confdefs.h. */
5886 # include <limits.h>
5888 # include <assert.h>
5892 if { (ac_try="$ac_cpp conftest.$ac_ext"
5894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5895 *) ac_try_echo=$ac_try;;
5897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5898 $as_echo "$ac_try_echo") >&5
5899 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5901 grep -v '^ *+' conftest.er1 >conftest.err
5903 cat conftest.err >&5
5904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); } >/dev/null && {
5906 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5907 test ! -s conftest.err
5911 $as_echo "$as_me: failed program was:" >&5
5912 sed 's/^/| /' conftest.$ac_ext >&5
5914 # Broken: fails on valid input.
5918 rm -f conftest.err conftest.$ac_ext
5920 # OK, works on sane cases. Now check whether nonexistent headers
5921 # can be detected and how.
5922 cat >conftest.$ac_ext <<_ACEOF
5925 cat confdefs.h >>conftest.$ac_ext
5926 cat >>conftest.$ac_ext <<_ACEOF
5927 /* end confdefs.h. */
5928 #include <ac_nonexistent.h>
5930 if { (ac_try="$ac_cpp conftest.$ac_ext"
5932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5933 *) ac_try_echo=$ac_try;;
5935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5936 $as_echo "$ac_try_echo") >&5
5937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5939 grep -v '^ *+' conftest.er1 >conftest.err
5941 cat conftest.err >&5
5942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); } >/dev/null && {
5944 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5945 test ! -s conftest.err
5947 # Broken: success on invalid input.
5950 $as_echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5953 # Passes both tests.
5958 rm -f conftest.err conftest.$ac_ext
5961 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5962 rm -f conftest.err conftest.$ac_ext
5963 if $ac_preproc_ok; then
5968 ac_cv_prog_CXXCPP=$CXXCPP
5971 CXXCPP=$ac_cv_prog_CXXCPP
5973 ac_cv_prog_CXXCPP=$CXXCPP
5975 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5976 $as_echo "$CXXCPP" >&6; }
5978 for ac_cxx_preproc_warn_flag in '' yes
5980 # Use a header file that comes with gcc, so configuring glibc
5981 # with a fresh cross-compiler works.
5982 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5983 # <limits.h> exists even on freestanding compilers.
5984 # On the NeXT, cc -E runs the code through the compiler's parser,
5985 # not just through cpp. "Syntax error" is here to catch this case.
5986 cat >conftest.$ac_ext <<_ACEOF
5989 cat confdefs.h >>conftest.$ac_ext
5990 cat >>conftest.$ac_ext <<_ACEOF
5991 /* end confdefs.h. */
5993 # include <limits.h>
5995 # include <assert.h>
5999 if { (ac_try="$ac_cpp conftest.$ac_ext"
6001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6002 *) ac_try_echo=$ac_try;;
6004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6005 $as_echo "$ac_try_echo") >&5
6006 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6008 grep -v '^ *+' conftest.er1 >conftest.err
6010 cat conftest.err >&5
6011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); } >/dev/null && {
6013 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6014 test ! -s conftest.err
6018 $as_echo "$as_me: failed program was:" >&5
6019 sed 's/^/| /' conftest.$ac_ext >&5
6021 # Broken: fails on valid input.
6025 rm -f conftest.err conftest.$ac_ext
6027 # OK, works on sane cases. Now check whether nonexistent headers
6028 # can be detected and how.
6029 cat >conftest.$ac_ext <<_ACEOF
6032 cat confdefs.h >>conftest.$ac_ext
6033 cat >>conftest.$ac_ext <<_ACEOF
6034 /* end confdefs.h. */
6035 #include <ac_nonexistent.h>
6037 if { (ac_try="$ac_cpp conftest.$ac_ext"
6039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6040 *) ac_try_echo=$ac_try;;
6042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6043 $as_echo "$ac_try_echo") >&5
6044 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6046 grep -v '^ *+' conftest.er1 >conftest.err
6048 cat conftest.err >&5
6049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); } >/dev/null && {
6051 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6052 test ! -s conftest.err
6054 # Broken: success on invalid input.
6057 $as_echo "$as_me: failed program was:" >&5
6058 sed 's/^/| /' conftest.$ac_ext >&5
6060 # Passes both tests.
6065 rm -f conftest.err conftest.$ac_ext
6068 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6069 rm -f conftest.err conftest.$ac_ext
6070 if $ac_preproc_ok; then
6073 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6074 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6075 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6076 See \`config.log' for more details." >&5
6077 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6078 See \`config.log' for more details." >&2;}
6079 { (exit 1); exit 1; }; }; }
6083 ac_cpp='$CXXCPP $CPPFLAGS'
6084 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6085 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6086 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6092 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6093 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6094 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6095 if test -n "$ac_tool_prefix"; then
6096 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6098 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6099 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6100 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6101 $as_echo_n "checking for $ac_word... " >&6; }
6102 if test "${ac_cv_prog_F77+set}" = set; then
6103 $as_echo_n "(cached) " >&6
6105 if test -n "$F77"; then
6106 ac_cv_prog_F77="$F77" # Let the user override the test.
6108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112 test -z "$as_dir" && as_dir=.
6113 for ac_exec_ext in '' $ac_executable_extensions; do
6114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6115 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6116 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6126 if test -n "$F77"; then
6127 { $as_echo "$as_me:$LINENO: result: $F77" >&5
6128 $as_echo "$F77" >&6; }
6130 { $as_echo "$as_me:$LINENO: result: no" >&5
6131 $as_echo "no" >&6; }
6135 test -n "$F77" && break
6138 if test -z "$F77"; then
6140 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6142 # Extract the first word of "$ac_prog", so it can be a program name with args.
6143 set dummy $ac_prog; ac_word=$2
6144 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6145 $as_echo_n "checking for $ac_word... " >&6; }
6146 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6147 $as_echo_n "(cached) " >&6
6149 if test -n "$ac_ct_F77"; then
6150 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156 test -z "$as_dir" && as_dir=.
6157 for ac_exec_ext in '' $ac_executable_extensions; do
6158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6159 ac_cv_prog_ac_ct_F77="$ac_prog"
6160 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6169 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6170 if test -n "$ac_ct_F77"; then
6171 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6172 $as_echo "$ac_ct_F77" >&6; }
6174 { $as_echo "$as_me:$LINENO: result: no" >&5
6175 $as_echo "no" >&6; }
6179 test -n "$ac_ct_F77" && break
6182 if test "x$ac_ct_F77" = x; then
6185 case $cross_compiling:$ac_tool_warned in
6187 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6189 ac_tool_warned=yes ;;
6196 # Provide some information about the compiler.
6197 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6200 { (ac_try="$ac_compiler --version >&5"
6202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6203 *) ac_try_echo=$ac_try;;
6205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6206 $as_echo "$ac_try_echo") >&5
6207 (eval "$ac_compiler --version >&5") 2>&5
6209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); }
6211 { (ac_try="$ac_compiler -v >&5"
6213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6214 *) ac_try_echo=$ac_try;;
6216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6217 $as_echo "$ac_try_echo") >&5
6218 (eval "$ac_compiler -v >&5") 2>&5
6220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); }
6222 { (ac_try="$ac_compiler -V >&5"
6224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6225 *) ac_try_echo=$ac_try;;
6227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6228 $as_echo "$ac_try_echo") >&5
6229 (eval "$ac_compiler -V >&5") 2>&5
6231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); }
6235 # If we don't use `.F' as extension, the preprocessor is not run on the
6236 # input file. (Note that this only needs to work for GNU compilers.)
6239 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6240 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6241 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6242 $as_echo_n "(cached) " >&6
6244 cat >conftest.$ac_ext <<_ACEOF
6252 rm -f conftest.$ac_objext
6253 if { (ac_try="$ac_compile"
6255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6256 *) ac_try_echo=$ac_try;;
6258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6259 $as_echo "$ac_try_echo") >&5
6260 (eval "$ac_compile") 2>conftest.er1
6262 grep -v '^ *+' conftest.er1 >conftest.err
6264 cat conftest.err >&5
6265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); } && {
6267 test -z "$ac_f77_werror_flag" ||
6268 test ! -s conftest.err
6269 } && test -s conftest.$ac_objext; then
6272 $as_echo "$as_me: failed program was:" >&5
6273 sed 's/^/| /' conftest.$ac_ext >&5
6278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6279 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6282 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6283 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6285 ac_test_FFLAGS=${FFLAGS+set}
6286 ac_save_FFLAGS=$FFLAGS
6288 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6289 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6290 if test "${ac_cv_prog_f77_g+set}" = set; then
6291 $as_echo_n "(cached) " >&6
6294 cat >conftest.$ac_ext <<_ACEOF
6299 rm -f conftest.$ac_objext
6300 if { (ac_try="$ac_compile"
6302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6303 *) ac_try_echo=$ac_try;;
6305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6306 $as_echo "$ac_try_echo") >&5
6307 (eval "$ac_compile") 2>conftest.er1
6309 grep -v '^ *+' conftest.er1 >conftest.err
6311 cat conftest.err >&5
6312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); } && {
6314 test -z "$ac_f77_werror_flag" ||
6315 test ! -s conftest.err
6316 } && test -s conftest.$ac_objext; then
6317 ac_cv_prog_f77_g=yes
6319 $as_echo "$as_me: failed program was:" >&5
6320 sed 's/^/| /' conftest.$ac_ext >&5
6325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6328 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6329 $as_echo "$ac_cv_prog_f77_g" >&6; }
6330 if test "$ac_test_FFLAGS" = set; then
6331 FFLAGS=$ac_save_FFLAGS
6332 elif test $ac_cv_prog_f77_g = yes; then
6333 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6339 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6346 if test $ac_compiler_gnu = yes; then
6352 ac_cpp='$CPP $CPPFLAGS'
6353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6359 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6360 # find the maximum length of command line arguments
6361 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6362 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6363 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6364 $as_echo_n "(cached) " >&6
6371 # On DJGPP, this test can blow up pretty badly due to problems in libc
6372 # (any single argument exceeding 2000 bytes causes a buffer overrun
6373 # during glob expansion). Even if it were fixed, the result of this
6374 # check would be larger than it should be.
6375 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6379 # Under GNU Hurd, this test is not required because there is
6380 # no limit to the length of command line arguments.
6381 # Libtool will interpret -1 as no limit whatsoever
6382 lt_cv_sys_max_cmd_len=-1;
6386 # On Win9x/ME, this test blows up -- it succeeds, but takes
6387 # about 5 minutes as the teststring grows exponentially.
6388 # Worse, since 9x/ME are not pre-emptively multitasking,
6389 # you end up with a "frozen" computer, even though with patience
6390 # the test eventually succeeds (with a max line length of 256k).
6391 # Instead, let's just punt: use the minimum linelength reported by
6392 # all of the supported platforms: 8192 (on NT/2K/XP).
6393 lt_cv_sys_max_cmd_len=8192;
6397 # On AmigaOS with pdksh, this test takes hours, literally.
6398 # So we just punt and use a minimum line length of 8192.
6399 lt_cv_sys_max_cmd_len=8192;
6402 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6403 # This has been around since 386BSD, at least. Likely further.
6404 if test -x /sbin/sysctl; then
6405 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6406 elif test -x /usr/sbin/sysctl; then
6407 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6409 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6411 # And add a safety zone
6412 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6413 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6417 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6418 lt_cv_sys_max_cmd_len=196608
6422 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6423 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6424 # nice to cause kernel panics so lets avoid the loop below.
6425 # First set a reasonable default.
6426 lt_cv_sys_max_cmd_len=16384
6428 if test -x /sbin/sysconfig; then
6429 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6430 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6435 lt_cv_sys_max_cmd_len=102400
6437 sysv5* | sco5v6* | sysv4.2uw2*)
6438 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6439 if test -n "$kargmax"; then
6440 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6442 lt_cv_sys_max_cmd_len=32768
6446 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6447 if test -n "$lt_cv_sys_max_cmd_len"; then
6448 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6449 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6451 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6452 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6453 = "XX$teststring") >/dev/null 2>&1 &&
6454 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6455 lt_cv_sys_max_cmd_len=$new_result &&
6456 test $i != 17 # 1/2 MB should be enough
6459 teststring=$teststring$teststring
6462 # Add a significant safety factor because C++ compilers can tack on massive
6463 # amounts of additional arguments before passing them to the linker.
6464 # It appears as though 1/2 is a usable value.
6465 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6472 if test -n $lt_cv_sys_max_cmd_len ; then
6473 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6474 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6476 { $as_echo "$as_me:$LINENO: result: none" >&5
6477 $as_echo "none" >&6; }
6484 # Check for command to grab the raw symbol name followed by C symbol from nm.
6485 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6486 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6487 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6488 $as_echo_n "(cached) " >&6
6491 # These are sane defaults that work on at least a few old systems.
6492 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6494 # Character class describing NM global symbol codes.
6495 symcode='[BCDEGRST]'
6497 # Regexp to match symbols that can be accessed directly from C.
6498 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6500 # Transform an extracted symbol line into a proper C declaration
6501 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6503 # Transform an extracted symbol line into symbol name and symbol address
6504 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6506 # Define system-specific variables.
6511 cygwin* | mingw* | pw32*)
6512 symcode='[ABCDGISTW]'
6514 hpux*) # Its linker distinguishes data from code symbols
6515 if test "$host_cpu" = ia64; then
6516 symcode='[ABCDEGRST]'
6518 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6519 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6521 linux* | k*bsd*-gnu)
6522 if test "$host_cpu" = ia64; then
6523 symcode='[ABCDGIRSTW]'
6524 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6525 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6529 symcode='[BCDEGRST]'
6532 symcode='[BCDEGQRST]'
6543 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6551 # Handle CRLF in mingw tool chain
6555 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6559 # If we're using GNU nm, then use its standard symbol codes.
6560 case `$NM -V 2>&1` in
6561 *GNU* | *'with BFD'*)
6562 symcode='[ABCDGIRSTW]' ;;
6565 # Try without a prefix undercore, then with it.
6566 for ac_symprfx in "" "_"; do
6568 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6569 symxfrm="\\1 $ac_symprfx\\2 \\2"
6571 # Write the raw and C identifiers.
6572 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6574 # Check to see that the pipe works correctly.
6578 cat > conftest.$ac_ext <<EOF
6583 void nm_test_func(){}
6587 int main(){nm_test_var='a';nm_test_func();return(0);}
6590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6591 (eval $ac_compile) 2>&5
6593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); }; then
6595 # Now try to grab the symbols.
6597 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6598 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); } && test -s "$nlist"; then
6602 # Try sorting and uniquifying the output.
6603 if sort "$nlist" | uniq > "$nlist"T; then
6604 mv -f "$nlist"T "$nlist"
6609 # Make sure that we snagged all the symbols we need.
6610 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6611 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6612 cat <<EOF > conftest.$ac_ext
6618 # Now generate the symbol file.
6619 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6621 cat <<EOF >> conftest.$ac_ext
6622 #if defined (__STDC__) && __STDC__
6623 # define lt_ptr_t void *
6625 # define lt_ptr_t char *
6629 /* The mapping between symbol names and symbols. */
6634 lt_preloaded_symbols[] =
6637 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6638 cat <<\EOF >> conftest.$ac_ext
6646 # Now try linking the two files.
6647 mv conftest.$ac_objext conftstm.$ac_objext
6648 lt_save_LIBS="$LIBS"
6649 lt_save_CFLAGS="$CFLAGS"
6650 LIBS="conftstm.$ac_objext"
6651 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6653 (eval $ac_link) 2>&5
6655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6659 LIBS="$lt_save_LIBS"
6660 CFLAGS="$lt_save_CFLAGS"
6662 echo "cannot find nm_test_func in $nlist" >&5
6665 echo "cannot find nm_test_var in $nlist" >&5
6668 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6671 echo "$progname: failed program was:" >&5
6672 cat conftest.$ac_ext >&5
6674 rm -rf conftest* conftst*
6676 # Do not use the global_symbol_pipe unless it works.
6677 if test "$pipe_works" = yes; then
6680 lt_cv_sys_global_symbol_pipe=
6686 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6687 lt_cv_sys_global_symbol_to_cdecl=
6689 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6690 { $as_echo "$as_me:$LINENO: result: failed" >&5
6691 $as_echo "failed" >&6; }
6693 { $as_echo "$as_me:$LINENO: result: ok" >&5
6694 $as_echo "ok" >&6; }
6697 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
6698 $as_echo_n "checking for objdir... " >&6; }
6699 if test "${lt_cv_objdir+set}" = set; then
6700 $as_echo_n "(cached) " >&6
6702 rm -f .libs 2>/dev/null
6703 mkdir .libs 2>/dev/null
6704 if test -d .libs; then
6707 # MS-DOS does not allow filenames that begin with a dot.
6710 rmdir .libs 2>/dev/null
6712 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6713 $as_echo "$lt_cv_objdir" >&6; }
6714 objdir=$lt_cv_objdir
6722 # AIX sometimes has problems with the GCC collect2 program. For some
6723 # reason, if we set the COLLECT_NAMES environment variable, the problems
6724 # vanish in a puff of smoke.
6725 if test "X${COLLECT_NAMES+set}" != Xset; then
6727 export COLLECT_NAMES
6732 # Sed substitution that helps us do robust quoting. It backslashifies
6733 # metacharacters that are still active within double-quoted strings.
6734 Xsed='sed -e 1s/^X//'
6735 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6737 # Same as above, but do not quote variable references.
6738 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6740 # Sed substitution to delay expansion of an escaped shell variable in a
6741 # double_quote_subst'ed string.
6742 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6744 # Sed substitution to avoid accidental globbing in evaled expressions
6745 no_glob_subst='s/\*/\\\*/g'
6751 default_ofile=libtool
6752 can_build_shared=yes
6754 # All known linkers require a `.a' archive for static linking (except MSVC,
6755 # which needs '.lib').
6757 ltmain="$ac_aux_dir/ltmain.sh"
6758 ofile="$default_ofile"
6759 with_gnu_ld="$lt_cv_prog_gnu_ld"
6761 if test -n "$ac_tool_prefix"; then
6762 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6763 set dummy ${ac_tool_prefix}ar; ac_word=$2
6764 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6765 $as_echo_n "checking for $ac_word... " >&6; }
6766 if test "${ac_cv_prog_AR+set}" = set; then
6767 $as_echo_n "(cached) " >&6
6769 if test -n "$AR"; then
6770 ac_cv_prog_AR="$AR" # Let the user override the test.
6772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776 test -z "$as_dir" && as_dir=.
6777 for ac_exec_ext in '' $ac_executable_extensions; do
6778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6779 ac_cv_prog_AR="${ac_tool_prefix}ar"
6780 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6790 if test -n "$AR"; then
6791 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6792 $as_echo "$AR" >&6; }
6794 { $as_echo "$as_me:$LINENO: result: no" >&5
6795 $as_echo "no" >&6; }
6800 if test -z "$ac_cv_prog_AR"; then
6802 # Extract the first word of "ar", so it can be a program name with args.
6803 set dummy ar; ac_word=$2
6804 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6805 $as_echo_n "checking for $ac_word... " >&6; }
6806 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6807 $as_echo_n "(cached) " >&6
6809 if test -n "$ac_ct_AR"; then
6810 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816 test -z "$as_dir" && as_dir=.
6817 for ac_exec_ext in '' $ac_executable_extensions; do
6818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6819 ac_cv_prog_ac_ct_AR="ar"
6820 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6829 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6830 if test -n "$ac_ct_AR"; then
6831 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6832 $as_echo "$ac_ct_AR" >&6; }
6834 { $as_echo "$as_me:$LINENO: result: no" >&5
6835 $as_echo "no" >&6; }
6838 if test "x$ac_ct_AR" = x; then
6841 case $cross_compiling:$ac_tool_warned in
6843 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6845 ac_tool_warned=yes ;;
6853 if test -n "$ac_tool_prefix"; then
6854 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6855 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6856 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6857 $as_echo_n "checking for $ac_word... " >&6; }
6858 if test "${ac_cv_prog_RANLIB+set}" = set; then
6859 $as_echo_n "(cached) " >&6
6861 if test -n "$RANLIB"; then
6862 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868 test -z "$as_dir" && as_dir=.
6869 for ac_exec_ext in '' $ac_executable_extensions; do
6870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6871 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6872 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6881 RANLIB=$ac_cv_prog_RANLIB
6882 if test -n "$RANLIB"; then
6883 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6884 $as_echo "$RANLIB" >&6; }
6886 { $as_echo "$as_me:$LINENO: result: no" >&5
6887 $as_echo "no" >&6; }
6892 if test -z "$ac_cv_prog_RANLIB"; then
6893 ac_ct_RANLIB=$RANLIB
6894 # Extract the first word of "ranlib", so it can be a program name with args.
6895 set dummy ranlib; ac_word=$2
6896 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6897 $as_echo_n "checking for $ac_word... " >&6; }
6898 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6899 $as_echo_n "(cached) " >&6
6901 if test -n "$ac_ct_RANLIB"; then
6902 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908 test -z "$as_dir" && as_dir=.
6909 for ac_exec_ext in '' $ac_executable_extensions; do
6910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6911 ac_cv_prog_ac_ct_RANLIB="ranlib"
6912 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6921 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6922 if test -n "$ac_ct_RANLIB"; then
6923 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6924 $as_echo "$ac_ct_RANLIB" >&6; }
6926 { $as_echo "$as_me:$LINENO: result: no" >&5
6927 $as_echo "no" >&6; }
6930 if test "x$ac_ct_RANLIB" = x; then
6933 case $cross_compiling:$ac_tool_warned in
6935 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6936 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6937 ac_tool_warned=yes ;;
6939 RANLIB=$ac_ct_RANLIB
6942 RANLIB="$ac_cv_prog_RANLIB"
6945 if test -n "$ac_tool_prefix"; then
6946 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6947 set dummy ${ac_tool_prefix}strip; ac_word=$2
6948 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6949 $as_echo_n "checking for $ac_word... " >&6; }
6950 if test "${ac_cv_prog_STRIP+set}" = set; then
6951 $as_echo_n "(cached) " >&6
6953 if test -n "$STRIP"; then
6954 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960 test -z "$as_dir" && as_dir=.
6961 for ac_exec_ext in '' $ac_executable_extensions; do
6962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6963 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6964 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6973 STRIP=$ac_cv_prog_STRIP
6974 if test -n "$STRIP"; then
6975 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6976 $as_echo "$STRIP" >&6; }
6978 { $as_echo "$as_me:$LINENO: result: no" >&5
6979 $as_echo "no" >&6; }
6984 if test -z "$ac_cv_prog_STRIP"; then
6986 # Extract the first word of "strip", so it can be a program name with args.
6987 set dummy strip; ac_word=$2
6988 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6989 $as_echo_n "checking for $ac_word... " >&6; }
6990 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6991 $as_echo_n "(cached) " >&6
6993 if test -n "$ac_ct_STRIP"; then
6994 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000 test -z "$as_dir" && as_dir=.
7001 for ac_exec_ext in '' $ac_executable_extensions; do
7002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7003 ac_cv_prog_ac_ct_STRIP="strip"
7004 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7013 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7014 if test -n "$ac_ct_STRIP"; then
7015 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7016 $as_echo "$ac_ct_STRIP" >&6; }
7018 { $as_echo "$as_me:$LINENO: result: no" >&5
7019 $as_echo "no" >&6; }
7022 if test "x$ac_ct_STRIP" = x; then
7025 case $cross_compiling:$ac_tool_warned in
7027 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7028 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7029 ac_tool_warned=yes ;;
7034 STRIP="$ac_cv_prog_STRIP"
7039 old_CFLAGS="$CFLAGS"
7041 # Set sane defaults for various variables
7042 test -z "$AR" && AR=ar
7043 test -z "$AR_FLAGS" && AR_FLAGS=cru
7044 test -z "$AS" && AS=as
7045 test -z "$CC" && CC=cc
7046 test -z "$LTCC" && LTCC=$CC
7047 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7048 test -z "$DLLTOOL" && DLLTOOL=dlltool
7049 test -z "$LD" && LD=ld
7050 test -z "$LN_S" && LN_S="ln -s"
7051 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7052 test -z "$NM" && NM=nm
7053 test -z "$SED" && SED=sed
7054 test -z "$OBJDUMP" && OBJDUMP=objdump
7055 test -z "$RANLIB" && RANLIB=:
7056 test -z "$STRIP" && STRIP=:
7057 test -z "$ac_objext" && ac_objext=o
7059 # Determine commands to create old-style static archives.
7060 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7061 old_postinstall_cmds='chmod 644 $oldlib'
7062 old_postuninstall_cmds=
7064 if test -n "$RANLIB"; then
7067 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7070 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7073 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7076 for cc_temp in $compiler""; do
7078 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7079 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7084 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7087 # Only perform the check for file, if the check method requires it
7088 case $deplibs_check_method in
7090 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7091 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7092 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7093 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7094 $as_echo_n "(cached) " >&6
7098 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7101 lt_save_MAGIC_CMD="$MAGIC_CMD"
7102 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7103 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7104 for ac_dir in $ac_dummy; do
7106 test -z "$ac_dir" && ac_dir=.
7107 if test -f $ac_dir/${ac_tool_prefix}file; then
7108 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7109 if test -n "$file_magic_test_file"; then
7110 case $deplibs_check_method in
7112 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7113 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7114 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7115 $EGREP "$file_magic_regex" > /dev/null; then
7120 *** Warning: the command libtool uses to detect shared libraries,
7121 *** $file_magic_cmd, produces output that libtool cannot recognize.
7122 *** The result is that libtool may fail to recognize shared libraries
7123 *** as such. This will affect the creation of libtool libraries that
7124 *** depend on shared libraries, but programs linked with such libtool
7125 *** libraries will work regardless of this problem. Nevertheless, you
7126 *** may want to report the problem to your system manager and/or to
7127 *** bug-libtool@gnu.org
7137 MAGIC_CMD="$lt_save_MAGIC_CMD"
7142 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7143 if test -n "$MAGIC_CMD"; then
7144 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7145 $as_echo "$MAGIC_CMD" >&6; }
7147 { $as_echo "$as_me:$LINENO: result: no" >&5
7148 $as_echo "no" >&6; }
7151 if test -z "$lt_cv_path_MAGIC_CMD"; then
7152 if test -n "$ac_tool_prefix"; then
7153 { $as_echo "$as_me:$LINENO: checking for file" >&5
7154 $as_echo_n "checking for file... " >&6; }
7155 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7156 $as_echo_n "(cached) " >&6
7160 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7163 lt_save_MAGIC_CMD="$MAGIC_CMD"
7164 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7165 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7166 for ac_dir in $ac_dummy; do
7168 test -z "$ac_dir" && ac_dir=.
7169 if test -f $ac_dir/file; then
7170 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7171 if test -n "$file_magic_test_file"; then
7172 case $deplibs_check_method in
7174 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7175 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7176 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7177 $EGREP "$file_magic_regex" > /dev/null; then
7182 *** Warning: the command libtool uses to detect shared libraries,
7183 *** $file_magic_cmd, produces output that libtool cannot recognize.
7184 *** The result is that libtool may fail to recognize shared libraries
7185 *** as such. This will affect the creation of libtool libraries that
7186 *** depend on shared libraries, but programs linked with such libtool
7187 *** libraries will work regardless of this problem. Nevertheless, you
7188 *** may want to report the problem to your system manager and/or to
7189 *** bug-libtool@gnu.org
7199 MAGIC_CMD="$lt_save_MAGIC_CMD"
7204 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7205 if test -n "$MAGIC_CMD"; then
7206 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7207 $as_echo "$MAGIC_CMD" >&6; }
7209 { $as_echo "$as_me:$LINENO: result: no" >&5
7210 $as_echo "no" >&6; }
7224 rhapsody* | darwin*)
7225 if test -n "$ac_tool_prefix"; then
7226 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7227 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7228 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7229 $as_echo_n "checking for $ac_word... " >&6; }
7230 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7231 $as_echo_n "(cached) " >&6
7233 if test -n "$DSYMUTIL"; then
7234 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240 test -z "$as_dir" && as_dir=.
7241 for ac_exec_ext in '' $ac_executable_extensions; do
7242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7243 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7244 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7253 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7254 if test -n "$DSYMUTIL"; then
7255 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7256 $as_echo "$DSYMUTIL" >&6; }
7258 { $as_echo "$as_me:$LINENO: result: no" >&5
7259 $as_echo "no" >&6; }
7264 if test -z "$ac_cv_prog_DSYMUTIL"; then
7265 ac_ct_DSYMUTIL=$DSYMUTIL
7266 # Extract the first word of "dsymutil", so it can be a program name with args.
7267 set dummy dsymutil; ac_word=$2
7268 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7269 $as_echo_n "checking for $ac_word... " >&6; }
7270 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7271 $as_echo_n "(cached) " >&6
7273 if test -n "$ac_ct_DSYMUTIL"; then
7274 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7280 test -z "$as_dir" && as_dir=.
7281 for ac_exec_ext in '' $ac_executable_extensions; do
7282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7283 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7284 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7293 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7294 if test -n "$ac_ct_DSYMUTIL"; then
7295 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7296 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7298 { $as_echo "$as_me:$LINENO: result: no" >&5
7299 $as_echo "no" >&6; }
7302 if test "x$ac_ct_DSYMUTIL" = x; then
7305 case $cross_compiling:$ac_tool_warned in
7307 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7309 ac_tool_warned=yes ;;
7311 DSYMUTIL=$ac_ct_DSYMUTIL
7314 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7317 if test -n "$ac_tool_prefix"; then
7318 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7319 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7320 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7321 $as_echo_n "checking for $ac_word... " >&6; }
7322 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7323 $as_echo_n "(cached) " >&6
7325 if test -n "$NMEDIT"; then
7326 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332 test -z "$as_dir" && as_dir=.
7333 for ac_exec_ext in '' $ac_executable_extensions; do
7334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7335 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7336 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7345 NMEDIT=$ac_cv_prog_NMEDIT
7346 if test -n "$NMEDIT"; then
7347 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7348 $as_echo "$NMEDIT" >&6; }
7350 { $as_echo "$as_me:$LINENO: result: no" >&5
7351 $as_echo "no" >&6; }
7356 if test -z "$ac_cv_prog_NMEDIT"; then
7357 ac_ct_NMEDIT=$NMEDIT
7358 # Extract the first word of "nmedit", so it can be a program name with args.
7359 set dummy nmedit; ac_word=$2
7360 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7361 $as_echo_n "checking for $ac_word... " >&6; }
7362 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7363 $as_echo_n "(cached) " >&6
7365 if test -n "$ac_ct_NMEDIT"; then
7366 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7372 test -z "$as_dir" && as_dir=.
7373 for ac_exec_ext in '' $ac_executable_extensions; do
7374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7375 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7376 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7385 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7386 if test -n "$ac_ct_NMEDIT"; then
7387 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7388 $as_echo "$ac_ct_NMEDIT" >&6; }
7390 { $as_echo "$as_me:$LINENO: result: no" >&5
7391 $as_echo "no" >&6; }
7394 if test "x$ac_ct_NMEDIT" = x; then
7397 case $cross_compiling:$ac_tool_warned in
7399 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7401 ac_tool_warned=yes ;;
7403 NMEDIT=$ac_ct_NMEDIT
7406 NMEDIT="$ac_cv_prog_NMEDIT"
7410 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7411 $as_echo_n "checking for -single_module linker flag... " >&6; }
7412 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7413 $as_echo_n "(cached) " >&6
7415 lt_cv_apple_cc_single_mod=no
7416 if test -z "${LT_MULTI_MODULE}"; then
7417 # By default we will add the -single_module flag. You can override
7418 # by either setting the environment variable LT_MULTI_MODULE
7419 # non-empty at configure time, or by adding -multi_module to the
7421 echo "int foo(void){return 1;}" > conftest.c
7422 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7423 -dynamiclib ${wl}-single_module conftest.c
7424 if test -f libconftest.dylib; then
7425 lt_cv_apple_cc_single_mod=yes
7426 rm -rf libconftest.dylib*
7431 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7432 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7433 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7434 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7435 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7436 $as_echo_n "(cached) " >&6
7438 lt_cv_ld_exported_symbols_list=no
7439 save_LDFLAGS=$LDFLAGS
7440 echo "_main" > conftest.sym
7441 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7442 cat >conftest.$ac_ext <<_ACEOF
7445 cat confdefs.h >>conftest.$ac_ext
7446 cat >>conftest.$ac_ext <<_ACEOF
7447 /* end confdefs.h. */
7457 rm -f conftest.$ac_objext conftest$ac_exeext
7458 if { (ac_try="$ac_link"
7460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7461 *) ac_try_echo=$ac_try;;
7463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7464 $as_echo "$ac_try_echo") >&5
7465 (eval "$ac_link") 2>conftest.er1
7467 grep -v '^ *+' conftest.er1 >conftest.err
7469 cat conftest.err >&5
7470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471 (exit $ac_status); } && {
7472 test -z "$ac_c_werror_flag" ||
7473 test ! -s conftest.err
7474 } && test -s conftest$ac_exeext && {
7475 test "$cross_compiling" = yes ||
7476 $as_test_x conftest$ac_exeext
7478 lt_cv_ld_exported_symbols_list=yes
7480 $as_echo "$as_me: failed program was:" >&5
7481 sed 's/^/| /' conftest.$ac_ext >&5
7483 lt_cv_ld_exported_symbols_list=no
7486 rm -rf conftest.dSYM
7487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7488 conftest$ac_exeext conftest.$ac_ext
7489 LDFLAGS="$save_LDFLAGS"
7492 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7493 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7495 rhapsody* | darwin1.[0123])
7496 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7498 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7500 # if running on 10.5 or later, the deployment target defaults
7501 # to the OS version, if on x86, and 10.4, the deployment
7502 # target defaults to 10.4. Don't you love it?
7503 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7504 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7505 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7507 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7509 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7513 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7514 _lt_dar_single_mod='$single_module'
7516 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7517 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7519 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7521 if test "$DSYMUTIL" != ":"; then
7522 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7533 # Check whether --enable-libtool-lock was given.
7534 if test "${enable_libtool_lock+set}" = set; then
7535 enableval=$enable_libtool_lock;
7538 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7541 # Check whether --with-pic was given.
7542 if test "${with_pic+set}" = set; then
7543 withval=$with_pic; pic_mode="$withval"
7548 test -z "$pic_mode" && pic_mode=default
7550 # Use C for the default configuration in the libtool script
7554 ac_cpp='$CPP $CPPFLAGS'
7555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7560 # Source file extension for C test sources.
7563 # Object file extension for compiled C test sources.
7567 # Code to be used in simple compile tests
7568 lt_simple_compile_test_code="int some_variable = 0;"
7570 # Code to be used in simple link tests
7571 lt_simple_link_test_code='int main(){return(0);}'
7574 # If no C compiler was specified, use CC.
7577 # If no C compiler flags were specified, use CFLAGS.
7578 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7580 # Allow CC to be a program name with arguments.
7584 # save warnings/boilerplate of simple test code
7585 ac_outfile=conftest.$ac_objext
7586 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7587 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7588 _lt_compiler_boilerplate=`cat conftest.err`
7591 ac_outfile=conftest.$ac_objext
7592 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7593 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7594 _lt_linker_boilerplate=`cat conftest.err`
7599 lt_prog_compiler_no_builtin_flag=
7601 if test "$GCC" = yes; then
7602 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7605 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7606 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7607 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7608 $as_echo_n "(cached) " >&6
7610 lt_cv_prog_compiler_rtti_exceptions=no
7611 ac_outfile=conftest.$ac_objext
7612 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7613 lt_compiler_flag="-fno-rtti -fno-exceptions"
7614 # Insert the option either (1) after the last *FLAGS variable, or
7615 # (2) before a word containing "conftest.", or (3) at the end.
7616 # Note that $ac_compile itself does not contain backslashes and begins
7617 # with a dollar sign (not a hyphen), so the echo should work correctly.
7618 # The option is referenced via a variable to avoid confusing sed.
7619 lt_compile=`echo "$ac_compile" | $SED \
7620 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7621 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7622 -e 's:$: $lt_compiler_flag:'`
7623 (eval echo "\"\$as_me:7623: $lt_compile\"" >&5)
7624 (eval "$lt_compile" 2>conftest.err)
7626 cat conftest.err >&5
7627 echo "$as_me:7627: \$? = $ac_status" >&5
7628 if (exit $ac_status) && test -s "$ac_outfile"; then
7629 # The compiler can only warn and ignore the option if not recognized
7630 # So say no if there are warnings other than the usual output.
7631 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7632 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7633 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7634 lt_cv_prog_compiler_rtti_exceptions=yes
7640 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7641 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7643 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7644 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7651 lt_prog_compiler_wl=
7652 lt_prog_compiler_pic=
7653 lt_prog_compiler_static=
7655 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7656 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7658 if test "$GCC" = yes; then
7659 lt_prog_compiler_wl='-Wl,'
7660 lt_prog_compiler_static='-static'
7664 # All AIX code is PIC.
7665 if test "$host_cpu" = ia64; then
7666 # AIX 5 now supports IA64 processor
7667 lt_prog_compiler_static='-Bstatic'
7672 # FIXME: we need at least 68020 code to build shared libraries, but
7673 # adding the `-m68020' flag to GCC prevents building anything better,
7675 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7678 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7679 # PIC is the default for these OSes.
7682 mingw* | cygwin* | pw32* | os2*)
7683 # This hack is so that the source file can tell whether it is being
7684 # built for inclusion in a dll (and should export symbols for example).
7685 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7686 # (--disable-auto-import) libraries
7687 lt_prog_compiler_pic='-DDLL_EXPORT'
7690 darwin* | rhapsody*)
7691 # PIC is the default on this platform
7692 # Common symbols not allowed in MH_DYLIB files
7693 lt_prog_compiler_pic='-fno-common'
7697 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7698 # Instead, we relocate shared libraries at runtime.
7702 # Just because we use GCC doesn't mean we suddenly get shared libraries
7703 # on systems that don't support them.
7704 lt_prog_compiler_can_build_shared=no
7709 if test -d /usr/nec; then
7710 lt_prog_compiler_pic=-Kconform_pic
7715 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7722 lt_prog_compiler_pic='-fPIC'
7728 lt_prog_compiler_pic='-fPIC'
7732 # PORTME Check for flag to pass linker flags through the system compiler.
7735 lt_prog_compiler_wl='-Wl,'
7736 if test "$host_cpu" = ia64; then
7737 # AIX 5 now supports IA64 processor
7738 lt_prog_compiler_static='-Bstatic'
7740 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7744 # PIC is the default on this platform
7745 # Common symbols not allowed in MH_DYLIB files
7746 case $cc_basename in
7748 lt_prog_compiler_pic='-qnocommon'
7749 lt_prog_compiler_wl='-Wl,'
7754 mingw* | cygwin* | pw32* | os2*)
7755 # This hack is so that the source file can tell whether it is being
7756 # built for inclusion in a dll (and should export symbols for example).
7757 lt_prog_compiler_pic='-DDLL_EXPORT'
7760 hpux9* | hpux10* | hpux11*)
7761 lt_prog_compiler_wl='-Wl,'
7762 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7769 lt_prog_compiler_pic='+Z'
7772 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7773 lt_prog_compiler_static='${wl}-a ${wl}archive'
7776 irix5* | irix6* | nonstopux*)
7777 lt_prog_compiler_wl='-Wl,'
7778 # PIC (with -KPIC) is the default.
7779 lt_prog_compiler_static='-non_shared'
7783 lt_prog_compiler_pic='-KPIC'
7784 lt_prog_compiler_static='-Bstatic'
7787 linux* | k*bsd*-gnu)
7788 case $cc_basename in
7790 lt_prog_compiler_wl='-Wl,'
7791 lt_prog_compiler_pic='-KPIC'
7792 lt_prog_compiler_static='-static'
7794 pgcc* | pgf77* | pgf90* | pgf95*)
7795 # Portland Group compilers (*not* the Pentium gcc compiler,
7796 # which looks to be a dead project)
7797 lt_prog_compiler_wl='-Wl,'
7798 lt_prog_compiler_pic='-fpic'
7799 lt_prog_compiler_static='-Bstatic'
7802 lt_prog_compiler_wl='-Wl,'
7803 # All Alpha code is PIC.
7804 lt_prog_compiler_static='-non_shared'
7807 case `$CC -V 2>&1 | sed 5q` in
7810 lt_prog_compiler_pic='-KPIC'
7811 lt_prog_compiler_static='-Bstatic'
7812 lt_prog_compiler_wl='-Wl,'
7815 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7816 lt_prog_compiler_pic='-KPIC'
7817 lt_prog_compiler_static='-Bstatic'
7818 lt_prog_compiler_wl=''
7825 osf3* | osf4* | osf5*)
7826 lt_prog_compiler_wl='-Wl,'
7827 # All OSF/1 code is PIC.
7828 lt_prog_compiler_static='-non_shared'
7832 lt_prog_compiler_static='-non_shared'
7836 lt_prog_compiler_pic='-KPIC'
7837 lt_prog_compiler_static='-Bstatic'
7838 case $cc_basename in
7840 lt_prog_compiler_wl='-Qoption ld ';;
7842 lt_prog_compiler_wl='-Wl,';;
7847 lt_prog_compiler_wl='-Qoption ld '
7848 lt_prog_compiler_pic='-PIC'
7849 lt_prog_compiler_static='-Bstatic'
7852 sysv4 | sysv4.2uw2* | sysv4.3*)
7853 lt_prog_compiler_wl='-Wl,'
7854 lt_prog_compiler_pic='-KPIC'
7855 lt_prog_compiler_static='-Bstatic'
7859 if test -d /usr/nec ;then
7860 lt_prog_compiler_pic='-Kconform_pic'
7861 lt_prog_compiler_static='-Bstatic'
7865 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7866 lt_prog_compiler_wl='-Wl,'
7867 lt_prog_compiler_pic='-KPIC'
7868 lt_prog_compiler_static='-Bstatic'
7872 lt_prog_compiler_wl='-Wl,'
7873 lt_prog_compiler_can_build_shared=no
7877 lt_prog_compiler_pic='-pic'
7878 lt_prog_compiler_static='-Bstatic'
7882 lt_prog_compiler_can_build_shared=no
7887 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7888 $as_echo "$lt_prog_compiler_pic" >&6; }
7891 # Check to make sure the PIC flag actually works.
7893 if test -n "$lt_prog_compiler_pic"; then
7895 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7896 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7897 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7898 $as_echo_n "(cached) " >&6
7900 lt_cv_prog_compiler_pic_works=no
7901 ac_outfile=conftest.$ac_objext
7902 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7903 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7904 # Insert the option either (1) after the last *FLAGS variable, or
7905 # (2) before a word containing "conftest.", or (3) at the end.
7906 # Note that $ac_compile itself does not contain backslashes and begins
7907 # with a dollar sign (not a hyphen), so the echo should work correctly.
7908 # The option is referenced via a variable to avoid confusing sed.
7909 lt_compile=`echo "$ac_compile" | $SED \
7910 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7911 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7912 -e 's:$: $lt_compiler_flag:'`
7913 (eval echo "\"\$as_me:7913: $lt_compile\"" >&5)
7914 (eval "$lt_compile" 2>conftest.err)
7916 cat conftest.err >&5
7917 echo "$as_me:7917: \$? = $ac_status" >&5
7918 if (exit $ac_status) && test -s "$ac_outfile"; then
7919 # The compiler can only warn and ignore the option if not recognized
7920 # So say no if there are warnings other than the usual output.
7921 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7922 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7923 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7924 lt_cv_prog_compiler_pic_works=yes
7930 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7931 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7933 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7934 case $lt_prog_compiler_pic in
7936 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7939 lt_prog_compiler_pic=
7940 lt_prog_compiler_can_build_shared=no
7945 # For platforms which do not support PIC, -DPIC is meaningless:
7947 lt_prog_compiler_pic=
7950 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7955 # Check to make sure the static flag actually works.
7957 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7958 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7959 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7960 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7961 $as_echo_n "(cached) " >&6
7963 lt_cv_prog_compiler_static_works=no
7964 save_LDFLAGS="$LDFLAGS"
7965 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7966 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7967 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7968 # The linker can only warn and ignore the option if not recognized
7969 # So say no if there are warnings
7970 if test -s conftest.err; then
7971 # Append any errors to the config.log.
7972 cat conftest.err 1>&5
7973 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7974 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7975 if diff conftest.exp conftest.er2 >/dev/null; then
7976 lt_cv_prog_compiler_static_works=yes
7979 lt_cv_prog_compiler_static_works=yes
7983 LDFLAGS="$save_LDFLAGS"
7986 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7987 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7989 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7992 lt_prog_compiler_static=
7996 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7997 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7998 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7999 $as_echo_n "(cached) " >&6
8001 lt_cv_prog_compiler_c_o=no
8002 $rm -r conftest 2>/dev/null
8006 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8008 lt_compiler_flag="-o out/conftest2.$ac_objext"
8009 # Insert the option either (1) after the last *FLAGS variable, or
8010 # (2) before a word containing "conftest.", or (3) at the end.
8011 # Note that $ac_compile itself does not contain backslashes and begins
8012 # with a dollar sign (not a hyphen), so the echo should work correctly.
8013 lt_compile=`echo "$ac_compile" | $SED \
8014 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8015 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8016 -e 's:$: $lt_compiler_flag:'`
8017 (eval echo "\"\$as_me:8017: $lt_compile\"" >&5)
8018 (eval "$lt_compile" 2>out/conftest.err)
8020 cat out/conftest.err >&5
8021 echo "$as_me:8021: \$? = $ac_status" >&5
8022 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8024 # The compiler can only warn and ignore the option if not recognized
8025 # So say no if there are warnings
8026 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8027 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8028 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8029 lt_cv_prog_compiler_c_o=yes
8034 # SGI C++ compiler will create directory out/ii_files/ for
8035 # template instantiation
8036 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8037 $rm out/* && rmdir out
8043 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8044 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8047 hard_links="nottested"
8048 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8049 # do not overwrite the value of need_locks provided by the user
8050 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8051 $as_echo_n "checking if we can lock with hard links... " >&6; }
8054 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8056 ln conftest.a conftest.b 2>&5 || hard_links=no
8057 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8058 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8059 $as_echo "$hard_links" >&6; }
8060 if test "$hard_links" = no; then
8061 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8062 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8069 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8070 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8073 allow_undefined_flag=
8074 enable_shared_with_static_runtimes=no
8076 archive_expsym_cmds=
8077 old_archive_From_new_cmds=
8078 old_archive_from_expsyms_cmds=
8079 export_dynamic_flag_spec=
8080 whole_archive_flag_spec=
8081 thread_safe_flag_spec=
8082 hardcode_libdir_flag_spec=
8083 hardcode_libdir_flag_spec_ld=
8084 hardcode_libdir_separator=
8087 hardcode_shlibpath_var=unsupported
8088 link_all_deplibs=unknown
8089 hardcode_automatic=no
8092 always_export_symbols=no
8093 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8094 # include_expsyms should be a list of space-separated symbols to be *always*
8095 # included in the symbol list
8097 # exclude_expsyms can be an extended regexp of symbols to exclude
8098 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8099 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8100 # as well as any symbol that contains `d'.
8101 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8102 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8103 # platforms (ab)use it in PIC code, but their linkers get confused if
8104 # the symbol is explicitly referenced. Since portable code cannot
8105 # rely on this symbol name, it's probably fine to never include it in
8106 # preloaded symbol tables.
8107 # Exclude shared library initialization/finalization symbols.
8108 extract_expsyms_cmds=
8109 # Just being paranoid about ensuring that cc_basename is set.
8110 for cc_temp in $compiler""; do
8112 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8113 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8118 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8121 cygwin* | mingw* | pw32*)
8122 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8123 # When not using gcc, we currently assume that we are using
8124 # Microsoft Visual C++.
8125 if test "$GCC" != yes; then
8130 # we just hope/assume this is gcc and not c89 (= MSVC++)
8139 if test "$with_gnu_ld" = yes; then
8140 # If archive_cmds runs LD, not CC, wlarc should be empty
8143 # Set some defaults for GNU ld with shared library support. These
8144 # are reset later if shared libraries are not supported. Putting them
8145 # here allows them to be overridden if necessary.
8146 runpath_var=LD_RUN_PATH
8147 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8148 export_dynamic_flag_spec='${wl}--export-dynamic'
8149 # ancient GNU ld didn't support --whole-archive et. al.
8150 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8151 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8153 whole_archive_flag_spec=
8155 supports_anon_versioning=no
8156 case `$LD -v 2>/dev/null` in
8157 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8158 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8159 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8160 *\ 2.11.*) ;; # other 2.11 versions
8161 *) supports_anon_versioning=yes ;;
8164 # See if GNU ld supports shared libraries.
8167 # On AIX/PPC, the GNU linker is very broken
8168 if test "$host_cpu" != ia64; then
8172 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8173 *** to be unable to reliably create shared libraries on AIX.
8174 *** Therefore, libtool is disabling shared libraries support. If you
8175 *** really care for shared libraries, you may want to modify your PATH
8176 *** so that a non-GNU linker is found, and then restart.
8183 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)'
8184 hardcode_libdir_flag_spec='-L$libdir'
8185 hardcode_minus_L=yes
8187 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8188 # that the semantics of dynamic libraries on AmigaOS, at least up
8189 # to version 4, is to share data among multiple programs linked
8190 # with the same dynamic library. Since this doesn't match the
8191 # behavior of shared libraries on other platforms, we can't use
8197 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8198 allow_undefined_flag=unsupported
8199 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8200 # support --undefined. This deserves some investigation. FIXME
8201 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8207 cygwin* | mingw* | pw32*)
8208 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8209 # as there is no search path for DLLs.
8210 hardcode_libdir_flag_spec='-L$libdir'
8211 allow_undefined_flag=unsupported
8212 always_export_symbols=no
8213 enable_shared_with_static_runtimes=yes
8214 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8216 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8217 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8218 # If the export-symbols file already is a .def file (1st line
8219 # is EXPORTS), use it as is; otherwise, prepend...
8220 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8221 cp $export_symbols $output_objdir/$soname.def;
8223 echo EXPORTS > $output_objdir/$soname.def;
8224 cat $export_symbols >> $output_objdir/$soname.def;
8226 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8234 hardcode_shlibpath_var=no
8235 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8236 export_dynamic_flag_spec='${wl}-E'
8237 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8238 # Instead, shared libraries are loaded at an image base (0x10000000 by
8239 # default) and relocated if they conflict, which is a slow very memory
8240 # consuming and fragmenting process. To avoid this, we pick a random,
8241 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8242 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8243 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8244 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'
8247 gnu* | linux* | k*bsd*-gnu)
8248 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8250 case $cc_basename,$host_cpu in
8251 pgcc*) # Portland Group C compiler
8252 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'
8253 tmp_addflag=' $pic_flag'
8255 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8256 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'
8257 tmp_addflag=' $pic_flag -Mnomain' ;;
8258 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8259 tmp_addflag=' -i_dynamic' ;;
8260 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8261 tmp_addflag=' -i_dynamic -nofor_main' ;;
8262 ifc* | ifort*) # Intel Fortran compiler
8263 tmp_addflag=' -nofor_main' ;;
8265 case `$CC -V 2>&1 | sed 5q` in
8266 *Sun\ C*) # Sun C 5.9
8267 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'
8268 tmp_sharedflag='-G' ;;
8269 *Sun\ F*) # Sun Fortran 8.3
8270 tmp_sharedflag='-G' ;;
8272 tmp_sharedflag='-shared' ;;
8274 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8276 if test $supports_anon_versioning = yes; then
8277 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8278 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8279 $echo "local: *; };" >> $output_objdir/$libname.ver~
8280 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8288 netbsd* | netbsdelf*-gnu)
8289 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8290 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8293 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8294 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8299 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8303 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8304 *** create shared libraries on Solaris systems. Therefore, libtool
8305 *** is disabling shared libraries support. We urge you to upgrade GNU
8306 *** binutils to release 2.9.1 or newer. Another option is to modify
8307 *** your PATH or compiler configuration so that the native linker is
8308 *** used, and then restart.
8311 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8312 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8313 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8319 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8320 case `$LD -v 2>&1` in
8321 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8325 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8326 *** reliably create shared libraries on SCO systems. Therefore, libtool
8327 *** is disabling shared libraries support. We urge you to upgrade GNU
8328 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8329 *** your PATH or compiler configuration so that the native linker is
8330 *** used, and then restart.
8335 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8336 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8337 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8338 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8347 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8350 hardcode_shlibpath_var=no
8354 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8355 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8356 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8363 if test "$ld_shlibs" = no; then
8365 hardcode_libdir_flag_spec=
8366 export_dynamic_flag_spec=
8367 whole_archive_flag_spec=
8370 # PORTME fill in a description of your system's linker (not GNU ld)
8373 allow_undefined_flag=unsupported
8374 always_export_symbols=yes
8375 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'
8376 # Note: this linker hardcodes the directories in LIBPATH if there
8377 # are no directories specified by -L.
8378 hardcode_minus_L=yes
8379 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8380 # Neither direct hardcoding nor static linking is supported with a
8382 hardcode_direct=unsupported
8387 if test "$host_cpu" = ia64; then
8388 # On IA64, the linker does run time linking by default, so we don't
8389 # have to do anything special.
8390 aix_use_runtimelinking=no
8391 exp_sym_flag='-Bexport'
8394 # If we're using GNU nm, then we don't want the "-C" option.
8395 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8396 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8397 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'
8399 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'
8401 aix_use_runtimelinking=no
8403 # Test if we are trying to use run time linking or normal
8404 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8405 # need to do runtime linking.
8406 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8407 for ld_flag in $LDFLAGS; do
8408 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8409 aix_use_runtimelinking=yes
8416 exp_sym_flag='-bexport'
8417 no_entry_flag='-bnoentry'
8420 # When large executables or shared objects are built, AIX ld can
8421 # have problems creating the table of contents. If linking a library
8422 # or program results in "error TOC overflow" add -mminimal-toc to
8423 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8424 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8428 hardcode_libdir_separator=':'
8429 link_all_deplibs=yes
8431 if test "$GCC" = yes; then
8432 case $host_os in aix4.[012]|aix4.[012].*)
8433 # We only want to do this on AIX 4.2 and lower, the check
8434 # below for broken collect2 doesn't work under 4.3+
8435 collect2name=`${CC} -print-prog-name=collect2`
8436 if test -f "$collect2name" && \
8437 strings "$collect2name" | grep resolve_lib_name >/dev/null
8439 # We have reworked collect2
8442 # We have old collect2
8443 hardcode_direct=unsupported
8444 # It fails to find uninstalled libraries when the uninstalled
8445 # path is not listed in the libpath. Setting hardcode_minus_L
8446 # to unsupported forces relinking
8447 hardcode_minus_L=yes
8448 hardcode_libdir_flag_spec='-L$libdir'
8449 hardcode_libdir_separator=
8453 shared_flag='-shared'
8454 if test "$aix_use_runtimelinking" = yes; then
8455 shared_flag="$shared_flag "'${wl}-G'
8459 if test "$host_cpu" = ia64; then
8460 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8461 # chokes on -Wl,-G. The following line is correct:
8464 if test "$aix_use_runtimelinking" = yes; then
8465 shared_flag='${wl}-G'
8467 shared_flag='${wl}-bM:SRE'
8472 # It seems that -bexpall does not export symbols beginning with
8473 # underscore (_), so it is better to generate a list of symbols to export.
8474 always_export_symbols=yes
8475 if test "$aix_use_runtimelinking" = yes; then
8476 # Warning - without using the other runtime loading flags (-brtl),
8477 # -berok will link without error, but may produce a broken library.
8478 allow_undefined_flag='-berok'
8479 # Determine the default libpath from the value encoded in an empty executable.
8480 cat >conftest.$ac_ext <<_ACEOF
8483 cat confdefs.h >>conftest.$ac_ext
8484 cat >>conftest.$ac_ext <<_ACEOF
8485 /* end confdefs.h. */
8495 rm -f conftest.$ac_objext conftest$ac_exeext
8496 if { (ac_try="$ac_link"
8498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8499 *) ac_try_echo=$ac_try;;
8501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8502 $as_echo "$ac_try_echo") >&5
8503 (eval "$ac_link") 2>conftest.er1
8505 grep -v '^ *+' conftest.er1 >conftest.err
8507 cat conftest.err >&5
8508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); } && {
8510 test -z "$ac_c_werror_flag" ||
8511 test ! -s conftest.err
8512 } && test -s conftest$ac_exeext && {
8513 test "$cross_compiling" = yes ||
8514 $as_test_x conftest$ac_exeext
8517 lt_aix_libpath_sed='
8518 /Import File Strings/,/^$/ {
8524 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8525 # Check for a 64-bit object if we didn't find anything.
8526 if test -z "$aix_libpath"; then
8527 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8530 $as_echo "$as_me: failed program was:" >&5
8531 sed 's/^/| /' conftest.$ac_ext >&5
8536 rm -rf conftest.dSYM
8537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8538 conftest$ac_exeext conftest.$ac_ext
8539 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8541 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8542 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8544 if test "$host_cpu" = ia64; then
8545 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8546 allow_undefined_flag="-z nodefs"
8547 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"
8549 # Determine the default libpath from the value encoded in an empty executable.
8550 cat >conftest.$ac_ext <<_ACEOF
8553 cat confdefs.h >>conftest.$ac_ext
8554 cat >>conftest.$ac_ext <<_ACEOF
8555 /* end confdefs.h. */
8565 rm -f conftest.$ac_objext conftest$ac_exeext
8566 if { (ac_try="$ac_link"
8568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8569 *) ac_try_echo=$ac_try;;
8571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8572 $as_echo "$ac_try_echo") >&5
8573 (eval "$ac_link") 2>conftest.er1
8575 grep -v '^ *+' conftest.er1 >conftest.err
8577 cat conftest.err >&5
8578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); } && {
8580 test -z "$ac_c_werror_flag" ||
8581 test ! -s conftest.err
8582 } && test -s conftest$ac_exeext && {
8583 test "$cross_compiling" = yes ||
8584 $as_test_x conftest$ac_exeext
8587 lt_aix_libpath_sed='
8588 /Import File Strings/,/^$/ {
8594 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8595 # Check for a 64-bit object if we didn't find anything.
8596 if test -z "$aix_libpath"; then
8597 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8600 $as_echo "$as_me: failed program was:" >&5
8601 sed 's/^/| /' conftest.$ac_ext >&5
8606 rm -rf conftest.dSYM
8607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8608 conftest$ac_exeext conftest.$ac_ext
8609 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8611 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8612 # Warning - without using the other run time loading flags,
8613 # -berok will link without error, but may produce a broken library.
8614 no_undefined_flag=' ${wl}-bernotok'
8615 allow_undefined_flag=' ${wl}-berok'
8616 # Exported symbols can be pulled into shared objects from archives
8617 whole_archive_flag_spec='$convenience'
8618 archive_cmds_need_lc=yes
8619 # This is similar to how AIX traditionally builds its shared libraries.
8620 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'
8626 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)'
8627 hardcode_libdir_flag_spec='-L$libdir'
8628 hardcode_minus_L=yes
8629 # see comment about different semantics on the GNU ld section
8634 export_dynamic_flag_spec=-rdynamic
8637 cygwin* | mingw* | pw32*)
8638 # When not using gcc, we currently assume that we are using
8639 # Microsoft Visual C++.
8640 # hardcode_libdir_flag_spec is actually meaningless, as there is
8641 # no search path for DLLs.
8642 hardcode_libdir_flag_spec=' '
8643 allow_undefined_flag=unsupported
8644 # Tell ltmain to make .lib files, not .a files.
8646 # Tell ltmain to make .dll files, not .so files.
8648 # FIXME: Setting linknames here is a bad hack.
8649 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8650 # The linker will automatically build a .lib file if we build a DLL.
8651 old_archive_From_new_cmds='true'
8652 # FIXME: Should let the user specify the lib program.
8653 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8654 fix_srcfile_path='`cygpath -w "$srcfile"`'
8655 enable_shared_with_static_runtimes=yes
8658 darwin* | rhapsody*)
8660 rhapsody* | darwin1.[012])
8661 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8664 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8665 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8667 case ${MACOSX_DEPLOYMENT_TARGET} in
8669 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8672 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8678 archive_cmds_need_lc=no
8680 hardcode_automatic=yes
8681 hardcode_shlibpath_var=unsupported
8682 whole_archive_flag_spec=''
8683 link_all_deplibs=yes
8684 if test "$GCC" = yes ; then
8685 output_verbose_link_cmd='echo'
8686 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8687 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8688 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}"
8689 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}"
8691 case $cc_basename in
8693 output_verbose_link_cmd='echo'
8694 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8695 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8696 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8697 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8698 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8708 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8709 hardcode_libdir_flag_spec='-L$libdir'
8710 hardcode_shlibpath_var=no
8717 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8718 # support. Future versions do this automatically, but an explicit c++rt0.o
8719 # does not break anything, and helps significantly (at the cost of a little
8722 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8723 hardcode_libdir_flag_spec='-R$libdir'
8725 hardcode_shlibpath_var=no
8728 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8730 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8732 hardcode_minus_L=yes
8733 hardcode_shlibpath_var=no
8736 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8737 freebsd* | dragonfly*)
8738 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8739 hardcode_libdir_flag_spec='-R$libdir'
8741 hardcode_shlibpath_var=no
8745 if test "$GCC" = yes; then
8746 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'
8748 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'
8750 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8751 hardcode_libdir_separator=:
8754 # hardcode_minus_L: Not really in the search PATH,
8755 # but as the default location of the library.
8756 hardcode_minus_L=yes
8757 export_dynamic_flag_spec='${wl}-E'
8761 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8762 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8764 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8766 if test "$with_gnu_ld" = no; then
8767 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8768 hardcode_libdir_separator=:
8771 export_dynamic_flag_spec='${wl}-E'
8773 # hardcode_minus_L: Not really in the search PATH,
8774 # but as the default location of the library.
8775 hardcode_minus_L=yes
8780 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8783 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8786 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8789 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8795 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8798 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8801 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8805 if test "$with_gnu_ld" = no; then
8806 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8807 hardcode_libdir_separator=:
8811 hardcode_libdir_flag_spec_ld='+b $libdir'
8813 hardcode_shlibpath_var=no
8817 export_dynamic_flag_spec='${wl}-E'
8819 # hardcode_minus_L: Not really in the search PATH,
8820 # but as the default location of the library.
8821 hardcode_minus_L=yes
8827 irix5* | irix6* | nonstopux*)
8828 if test "$GCC" = yes; then
8829 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8831 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8832 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8834 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8835 hardcode_libdir_separator=:
8836 link_all_deplibs=yes
8839 netbsd* | netbsdelf*-gnu)
8840 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8841 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8843 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8845 hardcode_libdir_flag_spec='-R$libdir'
8847 hardcode_shlibpath_var=no
8851 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8853 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8854 hardcode_libdir_separator=:
8855 hardcode_shlibpath_var=no
8859 if test -f /usr/libexec/ld.so; then
8861 hardcode_shlibpath_var=no
8862 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8863 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8864 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8865 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8866 export_dynamic_flag_spec='${wl}-E'
8869 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8870 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8871 hardcode_libdir_flag_spec='-R$libdir'
8874 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8875 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8885 hardcode_libdir_flag_spec='-L$libdir'
8886 hardcode_minus_L=yes
8887 allow_undefined_flag=unsupported
8888 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'
8889 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8893 if test "$GCC" = yes; then
8894 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8895 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8897 allow_undefined_flag=' -expect_unresolved \*'
8898 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8900 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8901 hardcode_libdir_separator=:
8904 osf4* | osf5*) # as osf3* with the addition of -msym flag
8905 if test "$GCC" = yes; then
8906 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8907 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8908 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8910 allow_undefined_flag=' -expect_unresolved \*'
8911 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8912 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8913 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8915 # Both c and cxx compiler support -rpath directly
8916 hardcode_libdir_flag_spec='-rpath $libdir'
8918 hardcode_libdir_separator=:
8922 no_undefined_flag=' -z text'
8923 if test "$GCC" = yes; then
8925 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8926 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8927 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8930 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8931 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8932 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8934 hardcode_libdir_flag_spec='-R$libdir'
8935 hardcode_shlibpath_var=no
8937 solaris2.[0-5] | solaris2.[0-5].*) ;;
8939 # The compiler driver will combine and reorder linker options,
8940 # but understands `-z linker_flag'. GCC discards it without `$wl',
8941 # but is careful enough not to reorder.
8942 # Supported since Solaris 2.6 (maybe 2.5.1?)
8943 if test "$GCC" = yes; then
8944 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8946 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8950 link_all_deplibs=yes
8954 if test "x$host_vendor" = xsequent; then
8955 # Use $CC to link under sequent, because it throws in some extra .o
8956 # files that make .init and .fini sections work.
8957 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8959 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8961 hardcode_libdir_flag_spec='-L$libdir'
8963 hardcode_minus_L=yes
8964 hardcode_shlibpath_var=no
8968 case $host_vendor in
8970 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8971 hardcode_direct=yes # is this really true???
8974 ## LD is ld it makes a PLAMLIB
8975 ## CC just makes a GrossModule.
8976 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8977 reload_cmds='$CC -r -o $output$reload_objs'
8981 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8982 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8985 runpath_var='LD_RUN_PATH'
8986 hardcode_shlibpath_var=no
8990 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8991 hardcode_shlibpath_var=no
8992 export_dynamic_flag_spec='-Bexport'
8996 if test -d /usr/nec; then
8997 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8998 hardcode_shlibpath_var=no
8999 runpath_var=LD_RUN_PATH
9000 hardcode_runpath_var=yes
9005 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9006 no_undefined_flag='${wl}-z,text'
9007 archive_cmds_need_lc=no
9008 hardcode_shlibpath_var=no
9009 runpath_var='LD_RUN_PATH'
9011 if test "$GCC" = yes; then
9012 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9013 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9015 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9016 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9020 sysv5* | sco3.2v5* | sco5v6*)
9021 # Note: We can NOT use -z defs as we might desire, because we do not
9022 # link with -lc, and that would cause any symbols used from libc to
9023 # always be unresolved, which means just about no library would
9024 # ever link correctly. If we're not using GNU ld we use -z text
9025 # though, which does catch some bad symbols but isn't as heavy-handed
9027 no_undefined_flag='${wl}-z,text'
9028 allow_undefined_flag='${wl}-z,nodefs'
9029 archive_cmds_need_lc=no
9030 hardcode_shlibpath_var=no
9031 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9032 hardcode_libdir_separator=':'
9033 link_all_deplibs=yes
9034 export_dynamic_flag_spec='${wl}-Bexport'
9035 runpath_var='LD_RUN_PATH'
9037 if test "$GCC" = yes; then
9038 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9039 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9041 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9042 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9047 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9048 hardcode_libdir_flag_spec='-L$libdir'
9049 hardcode_shlibpath_var=no
9058 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9059 $as_echo "$ld_shlibs" >&6; }
9060 test "$ld_shlibs" = no && can_build_shared=no
9063 # Do we need to explicitly link libc?
9065 case "x$archive_cmds_need_lc" in
9067 # Assume -lc should be added
9068 archive_cmds_need_lc=yes
9070 if test "$enable_shared" = yes && test "$GCC" = yes; then
9071 case $archive_cmds in
9073 # FIXME: we may have to deal with multi-command sequences.
9076 # Test whether the compiler implicitly links with -lc since on some
9077 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9078 # to ld, don't add -lc before -lgcc.
9079 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9080 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9082 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9085 (eval $ac_compile) 2>&5
9087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088 (exit $ac_status); } 2>conftest.err; then
9091 libobjs=conftest.$ac_objext
9093 wl=$lt_prog_compiler_wl
9094 pic_flag=$lt_prog_compiler_pic
9100 lt_save_allow_undefined_flag=$allow_undefined_flag
9101 allow_undefined_flag=
9102 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9103 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); }
9108 archive_cmds_need_lc=no
9110 archive_cmds_need_lc=yes
9112 allow_undefined_flag=$lt_save_allow_undefined_flag
9114 cat conftest.err 1>&5
9117 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9118 $as_echo "$archive_cmds_need_lc" >&6; }
9125 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9126 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9128 libname_spec='lib$name'
9136 shlibpath_overrides_runpath=unknown
9138 dynamic_linker="$host_os ld.so"
9139 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9141 if test "$GCC" = yes; then
9143 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9144 *) lt_awk_arg="/^libraries:/" ;;
9146 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9147 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9148 # if the path contains ";" then we assume it to be the separator
9149 # otherwise default to the standard path separator (i.e. ":") - it is
9150 # assumed that no part of a normal pathname contains ";" but that should
9151 # okay in the real world where ";" in dirpaths is itself problematic.
9152 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9154 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9156 # Ok, now we have the path, separated by spaces, we can step through it
9157 # and add multilib dir if necessary.
9158 lt_tmp_lt_search_path_spec=
9159 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9160 for lt_sys_path in $lt_search_path_spec; do
9161 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9162 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9164 test -d "$lt_sys_path" && \
9165 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9168 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9169 BEGIN {RS=" "; FS="/|\n";} {
9172 for (lt_i = NF; lt_i > 0; lt_i--) {
9173 if ($lt_i != "" && $lt_i != ".") {
9174 if ($lt_i == "..") {
9177 if (lt_count == 0) {
9178 lt_foo="/" $lt_i lt_foo;
9185 if (lt_foo != "") { lt_freq[lt_foo]++; }
9186 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9188 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9190 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9192 need_lib_prefix=unknown
9193 hardcode_into_libs=no
9195 # when you set need_version to no, make sure it does not cause -set_version
9196 # flags to be left without arguments
9197 need_version=unknown
9202 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9203 shlibpath_var=LIBPATH
9205 # AIX 3 has no versioning support, so we append a major version to the name.
9206 soname_spec='${libname}${release}${shared_ext}$major'
9213 hardcode_into_libs=yes
9214 if test "$host_cpu" = ia64; then
9215 # AIX 5 supports IA64
9216 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9217 shlibpath_var=LD_LIBRARY_PATH
9219 # With GCC up to 2.95.x, collect2 would create an import file
9220 # for dependence libraries. The import file would start with
9221 # the line `#! .'. This would cause the generated library to
9222 # depend on `.', always an invalid library. This was fixed in
9223 # development snapshots of GCC prior to 3.0.
9225 aix4 | aix4.[01] | aix4.[01].*)
9226 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9228 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9235 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9236 # soname into executable. Probably we can add versioning support to
9237 # collect2, so additional links can be useful in future.
9238 if test "$aix_use_runtimelinking" = yes; then
9239 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9240 # instead of lib<name>.a to let people know that these are not
9241 # typical AIX shared libraries.
9242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9244 # We preserve .a as extension for shared libraries through AIX4.2
9245 # and later when we are not doing run time linking.
9246 library_names_spec='${libname}${release}.a $libname.a'
9247 soname_spec='${libname}${release}${shared_ext}$major'
9249 shlibpath_var=LIBPATH
9254 library_names_spec='$libname.ixlibrary $libname.a'
9255 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9256 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'
9260 library_names_spec='${libname}${shared_ext}'
9261 dynamic_linker="$host_os ld.so"
9262 shlibpath_var=LIBRARY_PATH
9268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9269 soname_spec='${libname}${release}${shared_ext}$major'
9270 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9271 shlibpath_var=LD_LIBRARY_PATH
9272 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9273 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9274 # the default ld.so.conf also contains /usr/contrib/lib and
9275 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9276 # libtool to hard-code these into programs
9279 cygwin* | mingw* | pw32*)
9280 version_type=windows
9285 case $GCC,$host_os in
9286 yes,cygwin* | yes,mingw* | yes,pw32*)
9287 library_names_spec='$libname.dll.a'
9288 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9289 postinstall_cmds='base_file=`basename \${file}`~
9290 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9291 dldir=$destdir/`dirname \$dlpath`~
9292 test -d \$dldir || mkdir -p \$dldir~
9293 $install_prog $dir/$dlname \$dldir/$dlname~
9294 chmod a+x \$dldir/$dlname'
9295 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9296 dlpath=$dir/\$dldll~
9298 shlibpath_overrides_runpath=yes
9302 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9303 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9304 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9307 # MinGW DLLs use traditional 'lib' prefix
9308 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9309 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9310 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9311 # It is most probably a Windows format PATH printed by
9312 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9313 # path with ; separators, and with drive letters. We can handle the
9314 # drive letters (cygwin fileutils understands them), so leave them,
9315 # especially as we might pass files found there to a mingw objdump,
9316 # which wouldn't understand a cygwinified path. Ahh.
9317 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9319 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9323 # pw32 DLLs use 'pw' prefix rather than 'lib'
9324 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9330 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9333 dynamic_linker='Win32 ld.exe'
9334 # FIXME: first we should search . and the directory the executable is in
9338 darwin* | rhapsody*)
9339 dynamic_linker="$host_os dyld"
9343 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9344 soname_spec='${libname}${release}${major}$shared_ext'
9345 shlibpath_overrides_runpath=yes
9346 shlibpath_var=DYLD_LIBRARY_PATH
9347 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9349 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9350 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9358 soname_spec='${libname}${release}${shared_ext}$major'
9359 shlibpath_var=LD_LIBRARY_PATH
9366 freebsd* | dragonfly*)
9367 # DragonFly does not have aout. When/if they implement a new
9368 # versioning mechanism, adjust this.
9369 if test -x /usr/bin/objformat; then
9370 objformat=`/usr/bin/objformat`
9373 freebsd[123]*) objformat=aout ;;
9377 version_type=freebsd-$objformat
9378 case $version_type in
9380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9385 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9389 shlibpath_var=LD_LIBRARY_PATH
9392 shlibpath_overrides_runpath=yes
9394 freebsd3.[01]* | freebsdelf3.[01]*)
9395 shlibpath_overrides_runpath=yes
9396 hardcode_into_libs=yes
9398 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9399 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9400 shlibpath_overrides_runpath=no
9401 hardcode_into_libs=yes
9403 *) # from 4.6 on, and DragonFly
9404 shlibpath_overrides_runpath=yes
9405 hardcode_into_libs=yes
9414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9415 soname_spec='${libname}${release}${shared_ext}$major'
9416 shlibpath_var=LD_LIBRARY_PATH
9417 hardcode_into_libs=yes
9420 hpux9* | hpux10* | hpux11*)
9421 # Give a soname corresponding to the major version so that dld.sl refuses to
9422 # link against other versions.
9429 hardcode_into_libs=yes
9430 dynamic_linker="$host_os dld.so"
9431 shlibpath_var=LD_LIBRARY_PATH
9432 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9434 soname_spec='${libname}${release}${shared_ext}$major'
9435 if test "X$HPUX_IA64_MODE" = X32; then
9436 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9438 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9440 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9444 hardcode_into_libs=yes
9445 dynamic_linker="$host_os dld.sl"
9446 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9447 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9449 soname_spec='${libname}${release}${shared_ext}$major'
9450 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9451 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9455 dynamic_linker="$host_os dld.sl"
9456 shlibpath_var=SHLIB_PATH
9457 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9459 soname_spec='${libname}${release}${shared_ext}$major'
9462 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9463 postinstall_cmds='chmod 555 $lib'
9470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9471 soname_spec='${libname}${release}${shared_ext}$major'
9472 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9473 shlibpath_var=LD_LIBRARY_PATH
9474 shlibpath_overrides_runpath=no
9475 hardcode_into_libs=yes
9478 irix5* | irix6* | nonstopux*)
9480 nonstopux*) version_type=nonstopux ;;
9482 if test "$lt_cv_prog_gnu_ld" = yes; then
9490 soname_spec='${libname}${release}${shared_ext}$major'
9491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9493 irix5* | nonstopux*)
9497 case $LD in # libtool.m4 will add one of these switches to LD
9498 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9499 libsuff= shlibsuff= libmagic=32-bit;;
9500 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9501 libsuff=32 shlibsuff=N32 libmagic=N32;;
9502 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9503 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9504 *) libsuff= shlibsuff= libmagic=never-match;;
9508 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9509 shlibpath_overrides_runpath=no
9510 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9511 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9512 hardcode_into_libs=yes
9515 # No shared lib support for Linux oldld, aout, or coff.
9516 linux*oldld* | linux*aout* | linux*coff*)
9520 # This must be Linux ELF.
9521 linux* | k*bsd*-gnu)
9525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9526 soname_spec='${libname}${release}${shared_ext}$major'
9527 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9528 shlibpath_var=LD_LIBRARY_PATH
9529 shlibpath_overrides_runpath=no
9530 # This implies no fast_install, which is unacceptable.
9531 # Some rework will be needed to allow for fast_install
9532 # before this can be enabled.
9533 hardcode_into_libs=yes
9535 # Append ld.so.conf contents to the search path
9536 if test -f /etc/ld.so.conf; then
9537 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' ' '`
9538 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9541 # We used to test for /lib/ld.so.1 and disable shared libraries on
9542 # powerpc, because MkLinux only supported shared libraries with the
9543 # GNU dynamic linker. Since this was broken with cross compilers,
9544 # most powerpc-linux boxes support dynamic linking these days and
9545 # people can always --disable-shared, the test was removed, and we
9546 # assume the GNU/Linux dynamic linker is in use.
9547 dynamic_linker='GNU/Linux ld.so'
9554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9555 soname_spec='${libname}${release}${shared_ext}$major'
9556 shlibpath_var=LD_LIBRARY_PATH
9557 shlibpath_overrides_runpath=no
9558 hardcode_into_libs=yes
9559 dynamic_linker='NetBSD ld.elf_so'
9566 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9568 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9569 dynamic_linker='NetBSD (a.out) ld.so'
9571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9572 soname_spec='${libname}${release}${shared_ext}$major'
9573 dynamic_linker='NetBSD ld.elf_so'
9575 shlibpath_var=LD_LIBRARY_PATH
9576 shlibpath_overrides_runpath=yes
9577 hardcode_into_libs=yes
9582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9583 shlibpath_var=LD_LIBRARY_PATH
9584 shlibpath_overrides_runpath=yes
9591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9592 soname_spec='${libname}${release}${shared_ext}$major'
9593 shlibpath_var=LD_LIBRARY_PATH
9594 shlibpath_overrides_runpath=yes
9599 sys_lib_dlsearch_path_spec="/usr/lib"
9601 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9603 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9604 *) need_version=no ;;
9606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9607 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9608 shlibpath_var=LD_LIBRARY_PATH
9609 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9611 openbsd2.[89] | openbsd2.[89].*)
9612 shlibpath_overrides_runpath=no
9615 shlibpath_overrides_runpath=yes
9619 shlibpath_overrides_runpath=yes
9624 libname_spec='$name'
9627 library_names_spec='$libname${shared_ext} $libname.a'
9628 dynamic_linker='OS/2 ld.exe'
9629 shlibpath_var=LIBPATH
9632 osf3* | osf4* | osf5*)
9636 soname_spec='${libname}${release}${shared_ext}$major'
9637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9638 shlibpath_var=LD_LIBRARY_PATH
9639 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9640 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9652 soname_spec='${libname}${release}${shared_ext}$major'
9653 shlibpath_var=LD_LIBRARY_PATH
9654 shlibpath_overrides_runpath=yes
9655 hardcode_into_libs=yes
9656 # ldd complains unless libraries are executable
9657 postinstall_cmds='chmod +x $lib'
9662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9663 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9664 shlibpath_var=LD_LIBRARY_PATH
9665 shlibpath_overrides_runpath=yes
9666 if test "$with_gnu_ld" = yes; then
9674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9675 soname_spec='${libname}${release}${shared_ext}$major'
9676 shlibpath_var=LD_LIBRARY_PATH
9677 case $host_vendor in
9679 shlibpath_overrides_runpath=no
9681 export_dynamic_flag_spec='${wl}-Blargedynsym'
9682 runpath_var=LD_RUN_PATH
9690 shlibpath_overrides_runpath=no
9691 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9697 if test -d /usr/nec ;then
9699 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9700 soname_spec='$libname${shared_ext}.$major'
9701 shlibpath_var=LD_LIBRARY_PATH
9705 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9706 version_type=freebsd-elf
9709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9710 soname_spec='${libname}${release}${shared_ext}$major'
9711 shlibpath_var=LD_LIBRARY_PATH
9712 hardcode_into_libs=yes
9713 if test "$with_gnu_ld" = yes; then
9714 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9715 shlibpath_overrides_runpath=no
9717 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9718 shlibpath_overrides_runpath=yes
9721 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9725 sys_lib_dlsearch_path_spec='/usr/lib'
9730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9731 soname_spec='${libname}${release}${shared_ext}$major'
9732 shlibpath_var=LD_LIBRARY_PATH
9739 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9740 $as_echo "$dynamic_linker" >&6; }
9741 test "$dynamic_linker" = no && can_build_shared=no
9743 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9744 $as_echo_n "(cached) " >&6
9746 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9749 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9750 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9751 $as_echo_n "(cached) " >&6
9753 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9756 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9758 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9759 if test "$GCC" = yes; then
9760 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9763 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9764 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9766 if test -n "$hardcode_libdir_flag_spec" || \
9767 test -n "$runpath_var" || \
9768 test "X$hardcode_automatic" = "Xyes" ; then
9770 # We can hardcode non-existant directories.
9771 if test "$hardcode_direct" != no &&
9772 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9773 # have to relink, otherwise we might link with an installed library
9774 # when we should be linking with a yet-to-be-installed one
9775 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9776 test "$hardcode_minus_L" != no; then
9777 # Linking always hardcodes the temporary library directory.
9778 hardcode_action=relink
9780 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9781 hardcode_action=immediate
9784 # We cannot hardcode anything, or else we can only hardcode existing
9786 hardcode_action=unsupported
9788 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9789 $as_echo "$hardcode_action" >&6; }
9791 if test "$hardcode_action" = relink; then
9792 # Fast installation is not supported
9793 enable_fast_install=no
9794 elif test "$shlibpath_overrides_runpath" = yes ||
9795 test "$enable_shared" = no; then
9796 # Fast installation is not necessary
9797 enable_fast_install=needless
9802 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9803 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9804 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9805 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9806 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9807 { $as_echo "$as_me:$LINENO: result: yes" >&5
9808 $as_echo "yes" >&6; }
9810 # FIXME - insert some real tests, host_os isn't really good enough
9813 if test -n "$STRIP" ; then
9814 striplib="$STRIP -x"
9815 old_striplib="$STRIP -S"
9816 { $as_echo "$as_me:$LINENO: result: yes" >&5
9817 $as_echo "yes" >&6; }
9819 { $as_echo "$as_me:$LINENO: result: no" >&5
9820 $as_echo "no" >&6; }
9824 { $as_echo "$as_me:$LINENO: result: no" >&5
9825 $as_echo "no" >&6; }
9830 if test "x$enable_dlopen" != xyes; then
9831 enable_dlopen=unknown
9832 enable_dlopen_self=unknown
9833 enable_dlopen_self_static=unknown
9840 lt_cv_dlopen="load_add_on"
9842 lt_cv_dlopen_self=yes
9846 lt_cv_dlopen="LoadLibrary"
9851 lt_cv_dlopen="dlopen"
9856 # if libdl is installed we need to link against it
9857 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9858 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9859 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9860 $as_echo_n "(cached) " >&6
9862 ac_check_lib_save_LIBS=$LIBS
9864 cat >conftest.$ac_ext <<_ACEOF
9867 cat confdefs.h >>conftest.$ac_ext
9868 cat >>conftest.$ac_ext <<_ACEOF
9869 /* end confdefs.h. */
9871 /* Override any GCC internal prototype to avoid an error.
9872 Use char because int might match the return type of a GCC
9873 builtin and then its argument prototype would still apply. */
9886 rm -f conftest.$ac_objext conftest$ac_exeext
9887 if { (ac_try="$ac_link"
9889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9890 *) ac_try_echo=$ac_try;;
9892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9893 $as_echo "$ac_try_echo") >&5
9894 (eval "$ac_link") 2>conftest.er1
9896 grep -v '^ *+' conftest.er1 >conftest.err
9898 cat conftest.err >&5
9899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); } && {
9901 test -z "$ac_c_werror_flag" ||
9902 test ! -s conftest.err
9903 } && test -s conftest$ac_exeext && {
9904 test "$cross_compiling" = yes ||
9905 $as_test_x conftest$ac_exeext
9907 ac_cv_lib_dl_dlopen=yes
9909 $as_echo "$as_me: failed program was:" >&5
9910 sed 's/^/| /' conftest.$ac_ext >&5
9912 ac_cv_lib_dl_dlopen=no
9915 rm -rf conftest.dSYM
9916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9917 conftest$ac_exeext conftest.$ac_ext
9918 LIBS=$ac_check_lib_save_LIBS
9920 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9921 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9922 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9923 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9928 lt_cv_dlopen_self=yes
9935 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9936 $as_echo_n "checking for shl_load... " >&6; }
9937 if test "${ac_cv_func_shl_load+set}" = set; then
9938 $as_echo_n "(cached) " >&6
9940 cat >conftest.$ac_ext <<_ACEOF
9943 cat confdefs.h >>conftest.$ac_ext
9944 cat >>conftest.$ac_ext <<_ACEOF
9945 /* end confdefs.h. */
9946 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9948 #define shl_load innocuous_shl_load
9950 /* System header to define __stub macros and hopefully few prototypes,
9951 which can conflict with char shl_load (); below.
9952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9953 <limits.h> exists even on freestanding compilers. */
9956 # include <limits.h>
9958 # include <assert.h>
9963 /* Override any GCC internal prototype to avoid an error.
9964 Use char because int might match the return type of a GCC
9965 builtin and then its argument prototype would still apply. */
9970 /* The GNU C library defines this for functions which it implements
9971 to always fail with ENOSYS. Some functions are actually named
9972 something starting with __ and the normal name is an alias. */
9973 #if defined __stub_shl_load || defined __stub___shl_load
9985 rm -f conftest.$ac_objext conftest$ac_exeext
9986 if { (ac_try="$ac_link"
9988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9989 *) ac_try_echo=$ac_try;;
9991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9992 $as_echo "$ac_try_echo") >&5
9993 (eval "$ac_link") 2>conftest.er1
9995 grep -v '^ *+' conftest.er1 >conftest.err
9997 cat conftest.err >&5
9998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999 (exit $ac_status); } && {
10000 test -z "$ac_c_werror_flag" ||
10001 test ! -s conftest.err
10002 } && test -s conftest$ac_exeext && {
10003 test "$cross_compiling" = yes ||
10004 $as_test_x conftest$ac_exeext
10006 ac_cv_func_shl_load=yes
10008 $as_echo "$as_me: failed program was:" >&5
10009 sed 's/^/| /' conftest.$ac_ext >&5
10011 ac_cv_func_shl_load=no
10014 rm -rf conftest.dSYM
10015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10016 conftest$ac_exeext conftest.$ac_ext
10018 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10019 $as_echo "$ac_cv_func_shl_load" >&6; }
10020 if test "x$ac_cv_func_shl_load" = x""yes; then
10021 lt_cv_dlopen="shl_load"
10023 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10024 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10025 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10026 $as_echo_n "(cached) " >&6
10028 ac_check_lib_save_LIBS=$LIBS
10030 cat >conftest.$ac_ext <<_ACEOF
10033 cat confdefs.h >>conftest.$ac_ext
10034 cat >>conftest.$ac_ext <<_ACEOF
10035 /* end confdefs.h. */
10037 /* Override any GCC internal prototype to avoid an error.
10038 Use char because int might match the return type of a GCC
10039 builtin and then its argument prototype would still apply. */
10047 return shl_load ();
10052 rm -f conftest.$ac_objext conftest$ac_exeext
10053 if { (ac_try="$ac_link"
10054 case "(($ac_try" in
10055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10056 *) ac_try_echo=$ac_try;;
10058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10059 $as_echo "$ac_try_echo") >&5
10060 (eval "$ac_link") 2>conftest.er1
10062 grep -v '^ *+' conftest.er1 >conftest.err
10064 cat conftest.err >&5
10065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); } && {
10067 test -z "$ac_c_werror_flag" ||
10068 test ! -s conftest.err
10069 } && test -s conftest$ac_exeext && {
10070 test "$cross_compiling" = yes ||
10071 $as_test_x conftest$ac_exeext
10073 ac_cv_lib_dld_shl_load=yes
10075 $as_echo "$as_me: failed program was:" >&5
10076 sed 's/^/| /' conftest.$ac_ext >&5
10078 ac_cv_lib_dld_shl_load=no
10081 rm -rf conftest.dSYM
10082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10083 conftest$ac_exeext conftest.$ac_ext
10084 LIBS=$ac_check_lib_save_LIBS
10086 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10087 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10088 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10089 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10091 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10092 $as_echo_n "checking for dlopen... " >&6; }
10093 if test "${ac_cv_func_dlopen+set}" = set; then
10094 $as_echo_n "(cached) " >&6
10096 cat >conftest.$ac_ext <<_ACEOF
10099 cat confdefs.h >>conftest.$ac_ext
10100 cat >>conftest.$ac_ext <<_ACEOF
10101 /* end confdefs.h. */
10102 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10104 #define dlopen innocuous_dlopen
10106 /* System header to define __stub macros and hopefully few prototypes,
10107 which can conflict with char dlopen (); below.
10108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10109 <limits.h> exists even on freestanding compilers. */
10112 # include <limits.h>
10114 # include <assert.h>
10119 /* Override any GCC internal prototype to avoid an error.
10120 Use char because int might match the return type of a GCC
10121 builtin and then its argument prototype would still apply. */
10126 /* The GNU C library defines this for functions which it implements
10127 to always fail with ENOSYS. Some functions are actually named
10128 something starting with __ and the normal name is an alias. */
10129 #if defined __stub_dlopen || defined __stub___dlopen
10141 rm -f conftest.$ac_objext conftest$ac_exeext
10142 if { (ac_try="$ac_link"
10143 case "(($ac_try" in
10144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10145 *) ac_try_echo=$ac_try;;
10147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10148 $as_echo "$ac_try_echo") >&5
10149 (eval "$ac_link") 2>conftest.er1
10151 grep -v '^ *+' conftest.er1 >conftest.err
10153 cat conftest.err >&5
10154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); } && {
10156 test -z "$ac_c_werror_flag" ||
10157 test ! -s conftest.err
10158 } && test -s conftest$ac_exeext && {
10159 test "$cross_compiling" = yes ||
10160 $as_test_x conftest$ac_exeext
10162 ac_cv_func_dlopen=yes
10164 $as_echo "$as_me: failed program was:" >&5
10165 sed 's/^/| /' conftest.$ac_ext >&5
10167 ac_cv_func_dlopen=no
10170 rm -rf conftest.dSYM
10171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10172 conftest$ac_exeext conftest.$ac_ext
10174 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10175 $as_echo "$ac_cv_func_dlopen" >&6; }
10176 if test "x$ac_cv_func_dlopen" = x""yes; then
10177 lt_cv_dlopen="dlopen"
10179 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10180 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10181 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10182 $as_echo_n "(cached) " >&6
10184 ac_check_lib_save_LIBS=$LIBS
10186 cat >conftest.$ac_ext <<_ACEOF
10189 cat confdefs.h >>conftest.$ac_ext
10190 cat >>conftest.$ac_ext <<_ACEOF
10191 /* end confdefs.h. */
10193 /* Override any GCC internal prototype to avoid an error.
10194 Use char because int might match the return type of a GCC
10195 builtin and then its argument prototype would still apply. */
10208 rm -f conftest.$ac_objext conftest$ac_exeext
10209 if { (ac_try="$ac_link"
10210 case "(($ac_try" in
10211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10212 *) ac_try_echo=$ac_try;;
10214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10215 $as_echo "$ac_try_echo") >&5
10216 (eval "$ac_link") 2>conftest.er1
10218 grep -v '^ *+' conftest.er1 >conftest.err
10220 cat conftest.err >&5
10221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); } && {
10223 test -z "$ac_c_werror_flag" ||
10224 test ! -s conftest.err
10225 } && test -s conftest$ac_exeext && {
10226 test "$cross_compiling" = yes ||
10227 $as_test_x conftest$ac_exeext
10229 ac_cv_lib_dl_dlopen=yes
10231 $as_echo "$as_me: failed program was:" >&5
10232 sed 's/^/| /' conftest.$ac_ext >&5
10234 ac_cv_lib_dl_dlopen=no
10237 rm -rf conftest.dSYM
10238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10239 conftest$ac_exeext conftest.$ac_ext
10240 LIBS=$ac_check_lib_save_LIBS
10242 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10243 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10244 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10245 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10247 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10248 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10249 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10250 $as_echo_n "(cached) " >&6
10252 ac_check_lib_save_LIBS=$LIBS
10253 LIBS="-lsvld $LIBS"
10254 cat >conftest.$ac_ext <<_ACEOF
10257 cat confdefs.h >>conftest.$ac_ext
10258 cat >>conftest.$ac_ext <<_ACEOF
10259 /* end confdefs.h. */
10261 /* Override any GCC internal prototype to avoid an error.
10262 Use char because int might match the return type of a GCC
10263 builtin and then its argument prototype would still apply. */
10276 rm -f conftest.$ac_objext conftest$ac_exeext
10277 if { (ac_try="$ac_link"
10278 case "(($ac_try" in
10279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10280 *) ac_try_echo=$ac_try;;
10282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10283 $as_echo "$ac_try_echo") >&5
10284 (eval "$ac_link") 2>conftest.er1
10286 grep -v '^ *+' conftest.er1 >conftest.err
10288 cat conftest.err >&5
10289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290 (exit $ac_status); } && {
10291 test -z "$ac_c_werror_flag" ||
10292 test ! -s conftest.err
10293 } && test -s conftest$ac_exeext && {
10294 test "$cross_compiling" = yes ||
10295 $as_test_x conftest$ac_exeext
10297 ac_cv_lib_svld_dlopen=yes
10299 $as_echo "$as_me: failed program was:" >&5
10300 sed 's/^/| /' conftest.$ac_ext >&5
10302 ac_cv_lib_svld_dlopen=no
10305 rm -rf conftest.dSYM
10306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10307 conftest$ac_exeext conftest.$ac_ext
10308 LIBS=$ac_check_lib_save_LIBS
10310 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10311 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10312 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10313 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10315 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10316 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10317 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10318 $as_echo_n "(cached) " >&6
10320 ac_check_lib_save_LIBS=$LIBS
10322 cat >conftest.$ac_ext <<_ACEOF
10325 cat confdefs.h >>conftest.$ac_ext
10326 cat >>conftest.$ac_ext <<_ACEOF
10327 /* end confdefs.h. */
10329 /* Override any GCC internal prototype to avoid an error.
10330 Use char because int might match the return type of a GCC
10331 builtin and then its argument prototype would still apply. */
10339 return dld_link ();
10344 rm -f conftest.$ac_objext conftest$ac_exeext
10345 if { (ac_try="$ac_link"
10346 case "(($ac_try" in
10347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10348 *) ac_try_echo=$ac_try;;
10350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10351 $as_echo "$ac_try_echo") >&5
10352 (eval "$ac_link") 2>conftest.er1
10354 grep -v '^ *+' conftest.er1 >conftest.err
10356 cat conftest.err >&5
10357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358 (exit $ac_status); } && {
10359 test -z "$ac_c_werror_flag" ||
10360 test ! -s conftest.err
10361 } && test -s conftest$ac_exeext && {
10362 test "$cross_compiling" = yes ||
10363 $as_test_x conftest$ac_exeext
10365 ac_cv_lib_dld_dld_link=yes
10367 $as_echo "$as_me: failed program was:" >&5
10368 sed 's/^/| /' conftest.$ac_ext >&5
10370 ac_cv_lib_dld_dld_link=no
10373 rm -rf conftest.dSYM
10374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10375 conftest$ac_exeext conftest.$ac_ext
10376 LIBS=$ac_check_lib_save_LIBS
10378 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10379 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10380 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10381 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10402 if test "x$lt_cv_dlopen" != xno; then
10408 case $lt_cv_dlopen in
10410 save_CPPFLAGS="$CPPFLAGS"
10411 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10413 save_LDFLAGS="$LDFLAGS"
10414 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10417 LIBS="$lt_cv_dlopen_libs $LIBS"
10419 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10420 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10421 if test "${lt_cv_dlopen_self+set}" = set; then
10422 $as_echo_n "(cached) " >&6
10424 if test "$cross_compiling" = yes; then :
10425 lt_cv_dlopen_self=cross
10427 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10428 lt_status=$lt_dlunknown
10429 cat > conftest.$ac_ext <<EOF
10430 #line 10430 "configure"
10431 #include "confdefs.h"
10440 # define LT_DLGLOBAL RTLD_GLOBAL
10443 # define LT_DLGLOBAL DL_GLOBAL
10445 # define LT_DLGLOBAL 0
10449 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10450 find out it does not work in some platform. */
10451 #ifndef LT_DLLAZY_OR_NOW
10453 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10456 # define LT_DLLAZY_OR_NOW DL_LAZY
10459 # define LT_DLLAZY_OR_NOW RTLD_NOW
10462 # define LT_DLLAZY_OR_NOW DL_NOW
10464 # define LT_DLLAZY_OR_NOW 0
10472 extern "C" void exit (int);
10475 void fnord() { int i=42;}
10478 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10479 int status = $lt_dlunknown;
10483 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10484 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10485 /* dlclose (self); */
10493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10494 (eval $ac_link) 2>&5
10496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10498 (./conftest; exit; ) >&5 2>/dev/null
10500 case x$lt_status in
10501 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10502 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10503 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10506 # compilation failed
10507 lt_cv_dlopen_self=no
10514 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10515 $as_echo "$lt_cv_dlopen_self" >&6; }
10517 if test "x$lt_cv_dlopen_self" = xyes; then
10518 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10519 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10520 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10521 if test "${lt_cv_dlopen_self_static+set}" = set; then
10522 $as_echo_n "(cached) " >&6
10524 if test "$cross_compiling" = yes; then :
10525 lt_cv_dlopen_self_static=cross
10527 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10528 lt_status=$lt_dlunknown
10529 cat > conftest.$ac_ext <<EOF
10530 #line 10530 "configure"
10531 #include "confdefs.h"
10540 # define LT_DLGLOBAL RTLD_GLOBAL
10543 # define LT_DLGLOBAL DL_GLOBAL
10545 # define LT_DLGLOBAL 0
10549 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10550 find out it does not work in some platform. */
10551 #ifndef LT_DLLAZY_OR_NOW
10553 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10556 # define LT_DLLAZY_OR_NOW DL_LAZY
10559 # define LT_DLLAZY_OR_NOW RTLD_NOW
10562 # define LT_DLLAZY_OR_NOW DL_NOW
10564 # define LT_DLLAZY_OR_NOW 0
10572 extern "C" void exit (int);
10575 void fnord() { int i=42;}
10578 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10579 int status = $lt_dlunknown;
10583 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10584 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10585 /* dlclose (self); */
10593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10594 (eval $ac_link) 2>&5
10596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10598 (./conftest; exit; ) >&5 2>/dev/null
10600 case x$lt_status in
10601 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10602 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10603 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10606 # compilation failed
10607 lt_cv_dlopen_self_static=no
10614 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10615 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10618 CPPFLAGS="$save_CPPFLAGS"
10619 LDFLAGS="$save_LDFLAGS"
10624 case $lt_cv_dlopen_self in
10625 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10626 *) enable_dlopen_self=unknown ;;
10629 case $lt_cv_dlopen_self_static in
10630 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10631 *) enable_dlopen_self_static=unknown ;;
10636 # Report which library types will actually be built
10637 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10638 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10639 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10640 $as_echo "$can_build_shared" >&6; }
10642 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10643 $as_echo_n "checking whether to build shared libraries... " >&6; }
10644 test "$can_build_shared" = "no" && enable_shared=no
10646 # On AIX, shared libraries and static libraries use the same namespace, and
10647 # are all built from PIC.
10650 test "$enable_shared" = yes && enable_static=no
10651 if test -n "$RANLIB"; then
10652 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10653 postinstall_cmds='$RANLIB $lib'
10658 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10659 test "$enable_shared" = yes && enable_static=no
10663 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10664 $as_echo "$enable_shared" >&6; }
10666 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10667 $as_echo_n "checking whether to build static libraries... " >&6; }
10668 # Make sure either enable_shared or enable_static is yes.
10669 test "$enable_shared" = yes || enable_static=yes
10670 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10671 $as_echo "$enable_static" >&6; }
10673 # The else clause should only fire when bootstrapping the
10674 # libtool distribution, otherwise you forgot to ship ltmain.sh
10675 # with your package, and you will get complaints that there are
10676 # no rules to generate ltmain.sh.
10677 if test -f "$ltmain"; then
10678 # See if we are running on zsh, and set the options which allow our commands through
10679 # without removal of \ escapes.
10680 if test -n "${ZSH_VERSION+set}" ; then
10681 setopt NO_GLOB_SUBST
10683 # Now quote all the things that may contain metacharacters while being
10684 # careful not to overquote the AC_SUBSTed values. We take copies of the
10685 # variables and quote the copies for generation of the libtool script.
10686 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10688 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10689 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10690 deplibs_check_method reload_flag reload_cmds need_locks \
10691 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10692 lt_cv_sys_global_symbol_to_c_name_address \
10693 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10694 old_postinstall_cmds old_postuninstall_cmds \
10698 lt_prog_compiler_wl \
10699 lt_prog_compiler_pic \
10700 lt_prog_compiler_static \
10701 lt_prog_compiler_no_builtin_flag \
10702 export_dynamic_flag_spec \
10703 thread_safe_flag_spec \
10704 whole_archive_flag_spec \
10705 enable_shared_with_static_runtimes \
10707 old_archive_from_new_cmds \
10712 compiler_lib_search_path \
10713 compiler_lib_search_dirs \
10715 archive_expsym_cmds \
10717 postuninstall_cmds \
10718 old_archive_from_expsyms_cmds \
10719 allow_undefined_flag \
10720 no_undefined_flag \
10721 export_symbols_cmds \
10722 hardcode_libdir_flag_spec \
10723 hardcode_libdir_flag_spec_ld \
10724 hardcode_libdir_separator \
10725 hardcode_automatic \
10727 module_expsym_cmds \
10728 lt_cv_prog_compiler_c_o \
10731 include_expsyms; do
10734 old_archive_cmds | \
10735 old_archive_from_new_cmds | \
10737 archive_expsym_cmds | \
10739 module_expsym_cmds | \
10740 old_archive_from_expsyms_cmds | \
10741 export_symbols_cmds | \
10742 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10743 postinstall_cmds | postuninstall_cmds | \
10744 old_postinstall_cmds | old_postuninstall_cmds | \
10745 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10746 # Double-quote double-evaled strings.
10747 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10750 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10756 *'\$0 --fallback-echo"')
10757 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10761 cfgfile="${ofile}T"
10762 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10764 { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10765 $as_echo "$as_me: creating $ofile" >&6;}
10767 cat <<__EOF__ >> "$cfgfile"
10770 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10771 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10772 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10774 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10775 # Free Software Foundation, Inc.
10777 # This file is part of GNU Libtool:
10778 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10780 # This program is free software; you can redistribute it and/or modify
10781 # it under the terms of the GNU General Public License as published by
10782 # the Free Software Foundation; either version 2 of the License, or
10783 # (at your option) any later version.
10785 # This program is distributed in the hope that it will be useful, but
10786 # WITHOUT ANY WARRANTY; without even the implied warranty of
10787 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10788 # General Public License for more details.
10790 # You should have received a copy of the GNU General Public License
10791 # along with this program; if not, write to the Free Software
10792 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10794 # As a special exception to the GNU General Public License, if you
10795 # distribute this file as part of a program that contains a
10796 # configuration script generated by Autoconf, you may include it under
10797 # the same distribution terms that you use for the rest of that program.
10799 # A sed program that does not truncate output.
10802 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10803 Xsed="$SED -e 1s/^X//"
10805 # The HP-UX ksh and POSIX shell print the target directory to stdout
10806 # if CDPATH is set.
10807 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10809 # The names of the tagged configurations supported by this script.
10812 # ### BEGIN LIBTOOL CONFIG
10814 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10816 # Shell to use when invoking shell scripts.
10819 # Whether or not to build shared libraries.
10820 build_libtool_libs=$enable_shared
10822 # Whether or not to build static libraries.
10823 build_old_libs=$enable_static
10825 # Whether or not to add -lc for building shared libraries.
10826 build_libtool_need_lc=$archive_cmds_need_lc
10828 # Whether or not to disallow shared libs when runtime libs are static
10829 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10831 # Whether or not to optimize for fast installation.
10832 fast_install=$enable_fast_install
10835 host_alias=$host_alias
10839 # The build system.
10840 build_alias=$build_alias
10844 # An echo program that does not interpret backslashes.
10849 AR_FLAGS=$lt_AR_FLAGS
10854 # LTCC compiler flags.
10855 LTCFLAGS=$lt_LTCFLAGS
10857 # A language-specific compiler.
10860 # Is the compiler the GNU C compiler?
10866 # The linker used to build libraries.
10869 # Whether we need hard or soft links.
10872 # A BSD-compatible nm program.
10875 # A symbol stripping program
10878 # Used to examine libraries when file_magic_cmd begins "file"
10879 MAGIC_CMD=$MAGIC_CMD
10881 # Used on cygwin: DLL creation program.
10884 # Used on cygwin: object dumper.
10887 # Used on cygwin: assembler.
10890 # The name of the directory that contains temporary libtool files.
10893 # How to create reloadable object files.
10894 reload_flag=$lt_reload_flag
10895 reload_cmds=$lt_reload_cmds
10897 # How to pass a linker flag through the compiler.
10898 wl=$lt_lt_prog_compiler_wl
10900 # Object file suffix (normally "o").
10901 objext="$ac_objext"
10903 # Old archive suffix (normally "a").
10906 # Shared library suffix (normally ".so").
10907 shrext_cmds='$shrext_cmds'
10909 # Executable file suffix (normally "").
10912 # Additional compiler flags for building library objects.
10913 pic_flag=$lt_lt_prog_compiler_pic
10916 # What is the maximum length of a command?
10917 max_cmd_len=$lt_cv_sys_max_cmd_len
10919 # Does compiler simultaneously support -c and -o options?
10920 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10922 # Must we lock files when doing compilation?
10923 need_locks=$lt_need_locks
10925 # Do we need the lib prefix for modules?
10926 need_lib_prefix=$need_lib_prefix
10928 # Do we need a version for libraries?
10929 need_version=$need_version
10931 # Whether dlopen is supported.
10932 dlopen_support=$enable_dlopen
10934 # Whether dlopen of programs is supported.
10935 dlopen_self=$enable_dlopen_self
10937 # Whether dlopen of statically linked programs is supported.
10938 dlopen_self_static=$enable_dlopen_self_static
10940 # Compiler flag to prevent dynamic linking.
10941 link_static_flag=$lt_lt_prog_compiler_static
10943 # Compiler flag to turn off builtin functions.
10944 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10946 # Compiler flag to allow reflexive dlopens.
10947 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10949 # Compiler flag to generate shared objects directly from archives.
10950 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10952 # Compiler flag to generate thread-safe objects.
10953 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10955 # Library versioning type.
10956 version_type=$version_type
10958 # Format of library name prefix.
10959 libname_spec=$lt_libname_spec
10961 # List of archive names. First name is the real one, the rest are links.
10962 # The last name is the one that the linker finds with -lNAME.
10963 library_names_spec=$lt_library_names_spec
10965 # The coded name of the library, if different from the real name.
10966 soname_spec=$lt_soname_spec
10968 # Commands used to build and install an old-style archive.
10970 old_archive_cmds=$lt_old_archive_cmds
10971 old_postinstall_cmds=$lt_old_postinstall_cmds
10972 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10974 # Create an old-style archive from a shared archive.
10975 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10977 # Create a temporary old-style archive to link instead of a shared archive.
10978 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10980 # Commands used to build and install a shared archive.
10981 archive_cmds=$lt_archive_cmds
10982 archive_expsym_cmds=$lt_archive_expsym_cmds
10983 postinstall_cmds=$lt_postinstall_cmds
10984 postuninstall_cmds=$lt_postuninstall_cmds
10986 # Commands used to build a loadable module (assumed same as above if empty)
10987 module_cmds=$lt_module_cmds
10988 module_expsym_cmds=$lt_module_expsym_cmds
10990 # Commands to strip libraries.
10991 old_striplib=$lt_old_striplib
10992 striplib=$lt_striplib
10994 # Dependencies to place before the objects being linked to create a
10996 predep_objects=$lt_predep_objects
10998 # Dependencies to place after the objects being linked to create a
11000 postdep_objects=$lt_postdep_objects
11002 # Dependencies to place before the objects being linked to create a
11004 predeps=$lt_predeps
11006 # Dependencies to place after the objects being linked to create a
11008 postdeps=$lt_postdeps
11010 # The directories searched by this compiler when creating a shared
11012 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11014 # The library search path used internally by the compiler when linking
11015 # a shared library.
11016 compiler_lib_search_path=$lt_compiler_lib_search_path
11018 # Method to check whether dependent libraries are shared objects.
11019 deplibs_check_method=$lt_deplibs_check_method
11021 # Command to use when deplibs_check_method == file_magic.
11022 file_magic_cmd=$lt_file_magic_cmd
11024 # Flag that allows shared libraries with undefined symbols to be built.
11025 allow_undefined_flag=$lt_allow_undefined_flag
11027 # Flag that forces no undefined symbols.
11028 no_undefined_flag=$lt_no_undefined_flag
11030 # Commands used to finish a libtool library installation in a directory.
11031 finish_cmds=$lt_finish_cmds
11033 # Same as above, but a single script fragment to be evaled but not shown.
11034 finish_eval=$lt_finish_eval
11036 # Take the output of nm and produce a listing of raw symbols and C names.
11037 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11039 # Transform the output of nm in a proper C declaration
11040 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11042 # Transform the output of nm in a C name address pair
11043 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11045 # This is the shared library runtime path variable.
11046 runpath_var=$runpath_var
11048 # This is the shared library path variable.
11049 shlibpath_var=$shlibpath_var
11051 # Is shlibpath searched before the hard-coded library search path?
11052 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11054 # How to hardcode a shared library path into an executable.
11055 hardcode_action=$hardcode_action
11057 # Whether we should hardcode library paths into libraries.
11058 hardcode_into_libs=$hardcode_into_libs
11060 # Flag to hardcode \$libdir into a binary during linking.
11061 # This must work even if \$libdir does not exist.
11062 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11064 # If ld is used when linking, flag to hardcode \$libdir into
11065 # a binary during linking. This must work even if \$libdir does
11067 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11069 # Whether we need a single -rpath flag with a separated argument.
11070 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11072 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11073 # resulting binary.
11074 hardcode_direct=$hardcode_direct
11076 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11077 # resulting binary.
11078 hardcode_minus_L=$hardcode_minus_L
11080 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11081 # the resulting binary.
11082 hardcode_shlibpath_var=$hardcode_shlibpath_var
11084 # Set to yes if building a shared library automatically hardcodes DIR into the library
11085 # and all subsequent libraries and executables linked against it.
11086 hardcode_automatic=$hardcode_automatic
11088 # Variables whose values should be saved in libtool wrapper scripts and
11089 # restored at relink time.
11090 variables_saved_for_relink="$variables_saved_for_relink"
11092 # Whether libtool must link a program against all its dependency libraries.
11093 link_all_deplibs=$link_all_deplibs
11095 # Compile-time system search path for libraries
11096 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11098 # Run-time system search path for libraries
11099 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11101 # Fix the shell variable \$srcfile for the compiler.
11102 fix_srcfile_path=$lt_fix_srcfile_path
11104 # Set to yes if exported symbols are required.
11105 always_export_symbols=$always_export_symbols
11107 # The commands to list exported symbols.
11108 export_symbols_cmds=$lt_export_symbols_cmds
11110 # The commands to extract the exported symbol list from a shared archive.
11111 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11113 # Symbols that should not be listed in the preloaded symbols.
11114 exclude_expsyms=$lt_exclude_expsyms
11116 # Symbols that must always be exported.
11117 include_expsyms=$lt_include_expsyms
11119 # ### END LIBTOOL CONFIG
11126 cat <<\EOF >> "$cfgfile"
11128 # AIX sometimes has problems with the GCC collect2 program. For some
11129 # reason, if we set the COLLECT_NAMES environment variable, the problems
11130 # vanish in a puff of smoke.
11131 if test "X${COLLECT_NAMES+set}" != Xset; then
11133 export COLLECT_NAMES
11139 # We use sed instead of cat because bash on DJGPP gets confused if
11140 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11141 # text mode, it properly converts lines to CR/LF. This bash problem
11142 # is reportedly fixed, but why not run on old versions too?
11143 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11145 mv -f "$cfgfile" "$ofile" || \
11146 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11150 # If there is no Makefile yet, we rely on a make rule to execute
11151 # `config.status --recheck' to rerun these tests and create the
11152 # libtool script then.
11153 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11154 if test -f "$ltmain_in"; then
11155 test -f Makefile && make "$ltmain"
11161 ac_cpp='$CPP $CPPFLAGS'
11162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11169 # Check whether --with-tags was given.
11170 if test "${with_tags+set}" = set; then
11171 withval=$with_tags; tagnames="$withval"
11175 if test -f "$ltmain" && test -n "$tagnames"; then
11176 if test ! -f "${ofile}"; then
11177 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11178 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11181 if test -z "$LTCC"; then
11182 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11183 if test -z "$LTCC"; then
11184 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11185 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11187 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11188 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11191 if test -z "$LTCFLAGS"; then
11192 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11195 # Extract list of available tagged configurations in $ofile.
11196 # Note that this assumes the entire list is on one line.
11197 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11199 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11200 for tagname in $tagnames; do
11202 # Check whether tagname contains only valid characters
11203 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11205 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11206 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11207 { (exit 1); exit 1; }; }
11211 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11213 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11214 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11215 { (exit 1); exit 1; }; }
11218 # Update the list of available tags.
11219 if test -n "$tagname"; then
11220 echo appending configuration tag \"$tagname\" to $ofile
11224 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11225 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11226 (test "X$CXX" != "Xg++"))) ; then
11228 ac_cpp='$CXXCPP $CPPFLAGS'
11229 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11230 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11231 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11236 archive_cmds_need_lc_CXX=no
11237 allow_undefined_flag_CXX=
11238 always_export_symbols_CXX=no
11239 archive_expsym_cmds_CXX=
11240 export_dynamic_flag_spec_CXX=
11241 hardcode_direct_CXX=no
11242 hardcode_libdir_flag_spec_CXX=
11243 hardcode_libdir_flag_spec_ld_CXX=
11244 hardcode_libdir_separator_CXX=
11245 hardcode_minus_L_CXX=no
11246 hardcode_shlibpath_var_CXX=unsupported
11247 hardcode_automatic_CXX=no
11249 module_expsym_cmds_CXX=
11250 link_all_deplibs_CXX=unknown
11251 old_archive_cmds_CXX=$old_archive_cmds
11252 no_undefined_flag_CXX=
11253 whole_archive_flag_spec_CXX=
11254 enable_shared_with_static_runtimes_CXX=no
11256 # Dependencies to place before and after the object being linked:
11257 predep_objects_CXX=
11258 postdep_objects_CXX=
11261 compiler_lib_search_path_CXX=
11262 compiler_lib_search_dirs_CXX=
11264 # Source file extension for C++ test sources.
11267 # Object file extension for compiled C++ test sources.
11271 # Code to be used in simple compile tests
11272 lt_simple_compile_test_code="int some_variable = 0;"
11274 # Code to be used in simple link tests
11275 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11277 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11279 # If no C compiler was specified, use CC.
11282 # If no C compiler flags were specified, use CFLAGS.
11283 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11285 # Allow CC to be a program name with arguments.
11289 # save warnings/boilerplate of simple test code
11290 ac_outfile=conftest.$ac_objext
11291 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11292 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11293 _lt_compiler_boilerplate=`cat conftest.err`
11296 ac_outfile=conftest.$ac_objext
11297 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11298 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11299 _lt_linker_boilerplate=`cat conftest.err`
11303 # Allow CC to be a program name with arguments.
11308 lt_save_with_gnu_ld=$with_gnu_ld
11309 lt_save_path_LD=$lt_cv_path_LD
11310 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11311 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11313 $as_unset lt_cv_prog_gnu_ld
11315 if test -n "${lt_cv_path_LDCXX+set}"; then
11316 lt_cv_path_LD=$lt_cv_path_LDCXX
11318 $as_unset lt_cv_path_LD
11320 test -z "${LDCXX+set}" || LD=$LDCXX
11324 for cc_temp in $compiler""; do
11326 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11327 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11332 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11335 # We don't want -fno-exception wen compiling C++ code, so set the
11336 # no_builtin_flag separately
11337 if test "$GXX" = yes; then
11338 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11340 lt_prog_compiler_no_builtin_flag_CXX=
11343 if test "$GXX" = yes; then
11344 # Set up default GNU C++ configuration
11347 # Check whether --with-gnu-ld was given.
11348 if test "${with_gnu_ld+set}" = set; then
11349 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11355 if test "$GCC" = yes; then
11356 # Check if gcc -print-prog-name=ld gives a path.
11357 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11358 $as_echo_n "checking for ld used by $CC... " >&6; }
11361 # gcc leaves a trailing carriage return which upsets mingw
11362 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11364 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11367 # Accept absolute paths.
11369 re_direlt='/[^/][^/]*/\.\./'
11370 # Canonicalize the pathname of ld
11371 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11372 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11373 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11375 test -z "$LD" && LD="$ac_prog"
11378 # If it fails, then pretend we aren't using GCC.
11382 # If it is relative, then search for the first ld in PATH.
11383 with_gnu_ld=unknown
11386 elif test "$with_gnu_ld" = yes; then
11387 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11388 $as_echo_n "checking for GNU ld... " >&6; }
11390 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11391 $as_echo_n "checking for non-GNU ld... " >&6; }
11393 if test "${lt_cv_path_LD+set}" = set; then
11394 $as_echo_n "(cached) " >&6
11396 if test -z "$LD"; then
11397 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11398 for ac_dir in $PATH; do
11400 test -z "$ac_dir" && ac_dir=.
11401 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11402 lt_cv_path_LD="$ac_dir/$ac_prog"
11403 # Check to see if the program is GNU ld. I'd rather use --version,
11404 # but apparently some variants of GNU ld only accept -v.
11405 # Break only if it was the GNU/non-GNU ld that we prefer.
11406 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11407 *GNU* | *'with BFD'*)
11408 test "$with_gnu_ld" != no && break
11411 test "$with_gnu_ld" != yes && break
11418 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11422 LD="$lt_cv_path_LD"
11423 if test -n "$LD"; then
11424 { $as_echo "$as_me:$LINENO: result: $LD" >&5
11425 $as_echo "$LD" >&6; }
11427 { $as_echo "$as_me:$LINENO: result: no" >&5
11428 $as_echo "no" >&6; }
11430 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11431 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11432 { (exit 1); exit 1; }; }
11433 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11434 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11435 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11436 $as_echo_n "(cached) " >&6
11438 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11439 case `$LD -v 2>&1 </dev/null` in
11440 *GNU* | *'with BFD'*)
11441 lt_cv_prog_gnu_ld=yes
11444 lt_cv_prog_gnu_ld=no
11448 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11449 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11450 with_gnu_ld=$lt_cv_prog_gnu_ld
11454 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11455 # archiving commands below assume that GNU ld is being used.
11456 if test "$with_gnu_ld" = yes; then
11457 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11458 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11460 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11461 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11463 # If archive_cmds runs LD, not CC, wlarc should be empty
11464 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11465 # investigate it a little bit more. (MM)
11468 # ancient GNU ld didn't support --whole-archive et. al.
11469 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11470 grep 'no-whole-archive' > /dev/null; then
11471 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11473 whole_archive_flag_spec_CXX=
11479 # A generic and very simple default shared library creation
11480 # command for GNU C++ for the case where it uses the native
11481 # linker, instead of GNU ld. If possible, this setting should
11482 # overridden to take advantage of the native linker features on
11483 # the platform it is being used on.
11484 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11487 # Commands to make compiler produce verbose output that lists
11488 # what "hidden" libraries, object files and flags are used when
11489 # linking a shared library.
11490 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11498 # PORTME: fill in a description of your system's C++ link characteristics
11499 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11500 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11504 # FIXME: insert proper C++ library support
11508 if test "$host_cpu" = ia64; then
11509 # On IA64, the linker does run time linking by default, so we don't
11510 # have to do anything special.
11511 aix_use_runtimelinking=no
11512 exp_sym_flag='-Bexport'
11515 aix_use_runtimelinking=no
11517 # Test if we are trying to use run time linking or normal
11518 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11519 # need to do runtime linking.
11520 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11521 for ld_flag in $LDFLAGS; do
11524 aix_use_runtimelinking=yes
11532 exp_sym_flag='-bexport'
11533 no_entry_flag='-bnoentry'
11536 # When large executables or shared objects are built, AIX ld can
11537 # have problems creating the table of contents. If linking a library
11538 # or program results in "error TOC overflow" add -mminimal-toc to
11539 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11540 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11542 archive_cmds_CXX=''
11543 hardcode_direct_CXX=yes
11544 hardcode_libdir_separator_CXX=':'
11545 link_all_deplibs_CXX=yes
11547 if test "$GXX" = yes; then
11548 case $host_os in aix4.[012]|aix4.[012].*)
11549 # We only want to do this on AIX 4.2 and lower, the check
11550 # below for broken collect2 doesn't work under 4.3+
11551 collect2name=`${CC} -print-prog-name=collect2`
11552 if test -f "$collect2name" && \
11553 strings "$collect2name" | grep resolve_lib_name >/dev/null
11555 # We have reworked collect2
11558 # We have old collect2
11559 hardcode_direct_CXX=unsupported
11560 # It fails to find uninstalled libraries when the uninstalled
11561 # path is not listed in the libpath. Setting hardcode_minus_L
11562 # to unsupported forces relinking
11563 hardcode_minus_L_CXX=yes
11564 hardcode_libdir_flag_spec_CXX='-L$libdir'
11565 hardcode_libdir_separator_CXX=
11569 shared_flag='-shared'
11570 if test "$aix_use_runtimelinking" = yes; then
11571 shared_flag="$shared_flag "'${wl}-G'
11575 if test "$host_cpu" = ia64; then
11576 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11577 # chokes on -Wl,-G. The following line is correct:
11580 if test "$aix_use_runtimelinking" = yes; then
11581 shared_flag='${wl}-G'
11583 shared_flag='${wl}-bM:SRE'
11588 # It seems that -bexpall does not export symbols beginning with
11589 # underscore (_), so it is better to generate a list of symbols to export.
11590 always_export_symbols_CXX=yes
11591 if test "$aix_use_runtimelinking" = yes; then
11592 # Warning - without using the other runtime loading flags (-brtl),
11593 # -berok will link without error, but may produce a broken library.
11594 allow_undefined_flag_CXX='-berok'
11595 # Determine the default libpath from the value encoded in an empty executable.
11596 cat >conftest.$ac_ext <<_ACEOF
11599 cat confdefs.h >>conftest.$ac_ext
11600 cat >>conftest.$ac_ext <<_ACEOF
11601 /* end confdefs.h. */
11611 rm -f conftest.$ac_objext conftest$ac_exeext
11612 if { (ac_try="$ac_link"
11613 case "(($ac_try" in
11614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11615 *) ac_try_echo=$ac_try;;
11617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11618 $as_echo "$ac_try_echo") >&5
11619 (eval "$ac_link") 2>conftest.er1
11621 grep -v '^ *+' conftest.er1 >conftest.err
11623 cat conftest.err >&5
11624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); } && {
11626 test -z "$ac_cxx_werror_flag" ||
11627 test ! -s conftest.err
11628 } && test -s conftest$ac_exeext && {
11629 test "$cross_compiling" = yes ||
11630 $as_test_x conftest$ac_exeext
11633 lt_aix_libpath_sed='
11634 /Import File Strings/,/^$/ {
11640 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11641 # Check for a 64-bit object if we didn't find anything.
11642 if test -z "$aix_libpath"; then
11643 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11646 $as_echo "$as_me: failed program was:" >&5
11647 sed 's/^/| /' conftest.$ac_ext >&5
11652 rm -rf conftest.dSYM
11653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11654 conftest$ac_exeext conftest.$ac_ext
11655 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11657 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11659 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11661 if test "$host_cpu" = ia64; then
11662 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11663 allow_undefined_flag_CXX="-z nodefs"
11664 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11666 # Determine the default libpath from the value encoded in an empty executable.
11667 cat >conftest.$ac_ext <<_ACEOF
11670 cat confdefs.h >>conftest.$ac_ext
11671 cat >>conftest.$ac_ext <<_ACEOF
11672 /* end confdefs.h. */
11682 rm -f conftest.$ac_objext conftest$ac_exeext
11683 if { (ac_try="$ac_link"
11684 case "(($ac_try" in
11685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11686 *) ac_try_echo=$ac_try;;
11688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11689 $as_echo "$ac_try_echo") >&5
11690 (eval "$ac_link") 2>conftest.er1
11692 grep -v '^ *+' conftest.er1 >conftest.err
11694 cat conftest.err >&5
11695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); } && {
11697 test -z "$ac_cxx_werror_flag" ||
11698 test ! -s conftest.err
11699 } && test -s conftest$ac_exeext && {
11700 test "$cross_compiling" = yes ||
11701 $as_test_x conftest$ac_exeext
11704 lt_aix_libpath_sed='
11705 /Import File Strings/,/^$/ {
11711 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11712 # Check for a 64-bit object if we didn't find anything.
11713 if test -z "$aix_libpath"; then
11714 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11717 $as_echo "$as_me: failed program was:" >&5
11718 sed 's/^/| /' conftest.$ac_ext >&5
11723 rm -rf conftest.dSYM
11724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11725 conftest$ac_exeext conftest.$ac_ext
11726 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11728 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11729 # Warning - without using the other run time loading flags,
11730 # -berok will link without error, but may produce a broken library.
11731 no_undefined_flag_CXX=' ${wl}-bernotok'
11732 allow_undefined_flag_CXX=' ${wl}-berok'
11733 # Exported symbols can be pulled into shared objects from archives
11734 whole_archive_flag_spec_CXX='$convenience'
11735 archive_cmds_need_lc_CXX=yes
11736 # This is similar to how AIX traditionally builds its shared libraries.
11737 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11743 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11744 allow_undefined_flag_CXX=unsupported
11745 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11746 # support --undefined. This deserves some investigation. FIXME
11747 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11754 case $cc_basename in
11756 # FIXME: insert proper C++ library support
11762 cygwin* | mingw* | pw32*)
11763 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11764 # as there is no search path for DLLs.
11765 hardcode_libdir_flag_spec_CXX='-L$libdir'
11766 allow_undefined_flag_CXX=unsupported
11767 always_export_symbols_CXX=no
11768 enable_shared_with_static_runtimes_CXX=yes
11770 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11771 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11772 # If the export-symbols file already is a .def file (1st line
11773 # is EXPORTS), use it as is; otherwise, prepend...
11774 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11775 cp $export_symbols $output_objdir/$soname.def;
11777 echo EXPORTS > $output_objdir/$soname.def;
11778 cat $export_symbols >> $output_objdir/$soname.def;
11780 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11785 darwin* | rhapsody*)
11786 archive_cmds_need_lc_CXX=no
11787 hardcode_direct_CXX=no
11788 hardcode_automatic_CXX=yes
11789 hardcode_shlibpath_var_CXX=unsupported
11790 whole_archive_flag_spec_CXX=''
11791 link_all_deplibs_CXX=yes
11792 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11793 if test "$GXX" = yes ; then
11794 output_verbose_link_cmd='echo'
11795 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11796 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11797 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11798 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11799 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11800 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11801 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11804 case $cc_basename in
11806 output_verbose_link_cmd='echo'
11807 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11808 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11809 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11810 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11811 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11821 case $cc_basename in
11823 # FIXME: insert proper C++ library support
11827 # Green Hills C++ Compiler
11828 # FIXME: insert proper C++ library support
11832 # FIXME: insert proper C++ library support
11838 # C++ shared libraries reported to be fairly broken before switch to ELF
11842 archive_cmds_need_lc_CXX=no
11844 freebsd* | dragonfly*)
11845 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11852 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11853 hardcode_libdir_separator_CXX=:
11854 export_dynamic_flag_spec_CXX='${wl}-E'
11855 hardcode_direct_CXX=yes
11856 hardcode_minus_L_CXX=yes # Not in the search PATH,
11857 # but as the default
11858 # location of the library.
11860 case $cc_basename in
11862 # FIXME: insert proper C++ library support
11866 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11867 # Commands to make compiler produce verbose output that lists
11868 # what "hidden" libraries, object files and flags are used when
11869 # linking a shared library.
11871 # There doesn't appear to be a way to prevent this compiler from
11872 # explicitly linking system object files so we need to strip them
11873 # from the output so that they don't get included in the library
11875 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11878 if test "$GXX" = yes; then
11879 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11881 # FIXME: insert proper C++ library support
11888 if test $with_gnu_ld = no; then
11889 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11890 hardcode_libdir_separator_CXX=:
11895 export_dynamic_flag_spec_CXX='${wl}-E'
11901 hardcode_direct_CXX=no
11902 hardcode_shlibpath_var_CXX=no
11905 hardcode_direct_CXX=yes
11906 hardcode_minus_L_CXX=yes # Not in the search PATH,
11907 # but as the default
11908 # location of the library.
11912 case $cc_basename in
11914 # FIXME: insert proper C++ library support
11920 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11923 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11926 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11929 # Commands to make compiler produce verbose output that lists
11930 # what "hidden" libraries, object files and flags are used when
11931 # linking a shared library.
11933 # There doesn't appear to be a way to prevent this compiler from
11934 # explicitly linking system object files so we need to strip them
11935 # from the output so that they don't get included in the library
11937 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11940 if test "$GXX" = yes; then
11941 if test $with_gnu_ld = no; then
11944 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11947 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11950 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11955 # FIXME: insert proper C++ library support
11962 hardcode_direct_CXX=no
11963 hardcode_shlibpath_var_CXX=no
11964 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11965 export_dynamic_flag_spec_CXX='${wl}-E'
11966 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11967 # Instead, shared libraries are loaded at an image base (0x10000000 by
11968 # default) and relocated if they conflict, which is a slow very memory
11969 # consuming and fragmenting process. To avoid this, we pick a random,
11970 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11971 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11972 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11973 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11976 case $cc_basename in
11979 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11981 # Archives containing C++ object files must be created using
11982 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11983 # necessary to make sure instantiated templates are included
11985 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11988 if test "$GXX" = yes; then
11989 if test "$with_gnu_ld" = no; then
11990 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11992 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11995 link_all_deplibs_CXX=yes
11998 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11999 hardcode_libdir_separator_CXX=:
12001 linux* | k*bsd*-gnu)
12002 case $cc_basename in
12004 # Kuck and Associates, Inc. (KAI) C++ Compiler
12006 # KCC will only create a shared library if the output file
12007 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12008 # to its proper name (with version) after linking.
12009 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12010 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12011 # Commands to make compiler produce verbose output that lists
12012 # what "hidden" libraries, object files and flags are used when
12013 # linking a shared library.
12015 # There doesn't appear to be a way to prevent this compiler from
12016 # explicitly linking system object files so we need to strip them
12017 # from the output so that they don't get included in the library
12019 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12021 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12022 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12024 # Archives containing C++ object files must be created using
12025 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12026 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12031 # version 8.0 and above of icpc choke on multiply defined symbols
12032 # if we add $predep_objects and $postdep_objects, however 7.1 and
12033 # earlier do not add the objects themselves.
12034 case `$CC -V 2>&1` in
12036 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12037 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12039 *) # Version 8.0 or newer
12042 ia64*) tmp_idyn=' -i_dynamic';;
12044 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12045 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12048 archive_cmds_need_lc_CXX=no
12049 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12050 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12051 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12054 # Portland Group C++ compiler
12055 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12056 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12058 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12059 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12060 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12064 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12065 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12067 runpath_var=LD_RUN_PATH
12068 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12069 hardcode_libdir_separator_CXX=:
12071 # Commands to make compiler produce verbose output that lists
12072 # what "hidden" libraries, object files and flags are used when
12073 # linking a shared library.
12075 # There doesn't appear to be a way to prevent this compiler from
12076 # explicitly linking system object files so we need to strip them
12077 # from the output so that they don't get included in the library
12079 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12082 case `$CC -V 2>&1 | sed 5q` in
12085 no_undefined_flag_CXX=' -zdefs'
12086 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12087 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12088 hardcode_libdir_flag_spec_CXX='-R$libdir'
12089 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12091 # Not sure whether something based on
12092 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12094 output_verbose_link_cmd='echo'
12096 # Archives containing C++ object files must be created using
12097 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12098 # necessary to make sure instantiated templates are included
12100 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12107 # FIXME: insert proper C++ library support
12111 # FIXME: insert proper C++ library support
12115 case $cc_basename in
12117 # FIXME: insert proper C++ library support
12121 # FIXME: insert proper C++ library support
12126 netbsd* | netbsdelf*-gnu)
12127 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12128 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12130 hardcode_libdir_flag_spec_CXX='-R$libdir'
12131 hardcode_direct_CXX=yes
12132 hardcode_shlibpath_var_CXX=no
12134 # Workaround some broken pre-1.5 toolchains
12135 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12138 # C++ shared libraries are fairly broken
12142 if test -f /usr/libexec/ld.so; then
12143 hardcode_direct_CXX=yes
12144 hardcode_shlibpath_var_CXX=no
12145 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12146 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12147 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12148 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12149 export_dynamic_flag_spec_CXX='${wl}-E'
12150 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12152 output_verbose_link_cmd='echo'
12158 case $cc_basename in
12160 # Kuck and Associates, Inc. (KAI) C++ Compiler
12162 # KCC will only create a shared library if the output file
12163 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12164 # to its proper name (with version) after linking.
12165 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12167 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12168 hardcode_libdir_separator_CXX=:
12170 # Archives containing C++ object files must be created using
12171 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12172 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12176 # Rational C++ 2.4.1
12177 # FIXME: insert proper C++ library support
12181 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12182 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12184 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12185 hardcode_libdir_separator_CXX=:
12187 # Commands to make compiler produce verbose output that lists
12188 # what "hidden" libraries, object files and flags are used when
12189 # linking a shared library.
12191 # There doesn't appear to be a way to prevent this compiler from
12192 # explicitly linking system object files so we need to strip them
12193 # from the output so that they don't get included in the library
12195 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12198 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12199 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12200 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12202 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12203 hardcode_libdir_separator_CXX=:
12205 # Commands to make compiler produce verbose output that lists
12206 # what "hidden" libraries, object files and flags are used when
12207 # linking a shared library.
12208 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12211 # FIXME: insert proper C++ library support
12218 case $cc_basename in
12220 # Kuck and Associates, Inc. (KAI) C++ Compiler
12222 # KCC will only create a shared library if the output file
12223 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12224 # to its proper name (with version) after linking.
12225 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12227 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12228 hardcode_libdir_separator_CXX=:
12230 # Archives containing C++ object files must be created using
12231 # the KAI C++ compiler.
12232 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12235 # Rational C++ 2.4.1
12236 # FIXME: insert proper C++ library support
12240 allow_undefined_flag_CXX=' -expect_unresolved \*'
12241 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12242 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12243 echo "-hidden">> $lib.exp~
12244 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12247 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12248 hardcode_libdir_separator_CXX=:
12250 # Commands to make compiler produce verbose output that lists
12251 # what "hidden" libraries, object files and flags are used when
12252 # linking a shared library.
12254 # There doesn't appear to be a way to prevent this compiler from
12255 # explicitly linking system object files so we need to strip them
12256 # from the output so that they don't get included in the library
12258 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12261 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12262 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12263 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12265 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12266 hardcode_libdir_separator_CXX=:
12268 # Commands to make compiler produce verbose output that lists
12269 # what "hidden" libraries, object files and flags are used when
12270 # linking a shared library.
12271 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12274 # FIXME: insert proper C++ library support
12281 # FIXME: insert proper C++ library support
12285 case $cc_basename in
12288 # FIXME: insert proper C++ library support
12293 # FIXME: insert proper C++ library support
12297 # FIXME: insert proper C++ library support
12303 case $cc_basename in
12305 # Sun C++ 4.2, 5.x and Centerline C++
12306 archive_cmds_need_lc_CXX=yes
12307 no_undefined_flag_CXX=' -zdefs'
12308 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12309 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12310 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12312 hardcode_libdir_flag_spec_CXX='-R$libdir'
12313 hardcode_shlibpath_var_CXX=no
12315 solaris2.[0-5] | solaris2.[0-5].*) ;;
12317 # The compiler driver will combine and reorder linker options,
12318 # but understands `-z linker_flag'.
12319 # Supported since Solaris 2.6 (maybe 2.5.1?)
12320 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12323 link_all_deplibs_CXX=yes
12325 output_verbose_link_cmd='echo'
12327 # Archives containing C++ object files must be created using
12328 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12329 # necessary to make sure instantiated templates are included
12331 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12334 # Green Hills C++ Compiler
12335 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12337 # The C++ compiler must be used to create the archive.
12338 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12341 # GNU C++ compiler with Solaris linker
12342 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12343 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12344 if $CC --version | grep -v '^2\.7' > /dev/null; then
12345 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12346 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12347 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12349 # Commands to make compiler produce verbose output that lists
12350 # what "hidden" libraries, object files and flags are used when
12351 # linking a shared library.
12352 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12354 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12356 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12357 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12358 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12360 # Commands to make compiler produce verbose output that lists
12361 # what "hidden" libraries, object files and flags are used when
12362 # linking a shared library.
12363 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12366 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12368 solaris2.[0-5] | solaris2.[0-5].*) ;;
12370 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12377 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12378 no_undefined_flag_CXX='${wl}-z,text'
12379 archive_cmds_need_lc_CXX=no
12380 hardcode_shlibpath_var_CXX=no
12381 runpath_var='LD_RUN_PATH'
12383 case $cc_basename in
12385 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12386 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12389 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12390 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12394 sysv5* | sco3.2v5* | sco5v6*)
12395 # Note: We can NOT use -z defs as we might desire, because we do not
12396 # link with -lc, and that would cause any symbols used from libc to
12397 # always be unresolved, which means just about no library would
12398 # ever link correctly. If we're not using GNU ld we use -z text
12399 # though, which does catch some bad symbols but isn't as heavy-handed
12401 # For security reasons, it is highly recommended that you always
12402 # use absolute paths for naming shared libraries, and exclude the
12403 # DT_RUNPATH tag from executables and libraries. But doing so
12404 # requires that you compile everything twice, which is a pain.
12405 # So that behaviour is only enabled if SCOABSPATH is set to a
12406 # non-empty value in the environment. Most likely only useful for
12407 # creating official distributions of packages.
12408 # This is a hack until libtool officially supports absolute path
12409 # names for shared libraries.
12410 no_undefined_flag_CXX='${wl}-z,text'
12411 allow_undefined_flag_CXX='${wl}-z,nodefs'
12412 archive_cmds_need_lc_CXX=no
12413 hardcode_shlibpath_var_CXX=no
12414 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12415 hardcode_libdir_separator_CXX=':'
12416 link_all_deplibs_CXX=yes
12417 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12418 runpath_var='LD_RUN_PATH'
12420 case $cc_basename in
12422 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12423 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12426 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12427 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12432 case $cc_basename in
12434 # NonStop-UX NCC 3.20
12435 # FIXME: insert proper C++ library support
12439 # FIXME: insert proper C++ library support
12445 # FIXME: insert proper C++ library support
12449 # FIXME: insert proper C++ library support
12453 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12454 $as_echo "$ld_shlibs_CXX" >&6; }
12455 test "$ld_shlibs_CXX" = no && can_build_shared=no
12460 cat > conftest.$ac_ext <<EOF
12464 Foo (void) { a = 0; }
12470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12471 (eval $ac_compile) 2>&5
12473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); }; then
12475 # Parse the compiler output and extract the necessary
12476 # objects, libraries and library flags.
12478 # Sentinel used to keep track of whether or not we are before
12479 # the conftest object file.
12480 pre_test_object_deps_done=no
12482 # The `*' in the case matches for architectures that use `case' in
12483 # $output_verbose_cmd can trigger glob expansion during the loop
12484 # eval without this substitution.
12485 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12487 for p in `eval $output_verbose_link_cmd`; do
12491 # Some compilers place space between "-{L,R}" and the path.
12492 # Remove the space.
12493 if test $p = "-L" \
12494 || test $p = "-R"; then
12501 if test "$pre_test_object_deps_done" = no; then
12504 # Internal compiler library paths should come after those
12505 # provided the user. The postdeps already come after the
12506 # user supplied libs so there is no need to process them.
12507 if test -z "$compiler_lib_search_path_CXX"; then
12508 compiler_lib_search_path_CXX="${prev}${p}"
12510 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12513 # The "-l" case would never come before the object being
12514 # linked, so don't bother handling this case.
12517 if test -z "$postdeps_CXX"; then
12518 postdeps_CXX="${prev}${p}"
12520 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12526 # This assumes that the test object file only shows up
12527 # once in the compiler output.
12528 if test "$p" = "conftest.$objext"; then
12529 pre_test_object_deps_done=yes
12533 if test "$pre_test_object_deps_done" = no; then
12534 if test -z "$predep_objects_CXX"; then
12535 predep_objects_CXX="$p"
12537 predep_objects_CXX="$predep_objects_CXX $p"
12540 if test -z "$postdep_objects_CXX"; then
12541 postdep_objects_CXX="$p"
12543 postdep_objects_CXX="$postdep_objects_CXX $p"
12548 *) ;; # Ignore the rest.
12556 echo "libtool.m4: error: problem compiling CXX test program"
12559 $rm -f confest.$objext
12561 compiler_lib_search_dirs_CXX=
12562 if test -n "$compiler_lib_search_path_CXX"; then
12563 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12566 # PORTME: override above test on systems where it is broken
12569 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12570 # hack all around it, let's just trust "g++" to DTRT.
12571 predep_objects_CXX=
12572 postdep_objects_CXX=
12577 case `$CC -V 2>&1 | sed 5q` in
12581 # The more standards-conforming stlport4 library is
12582 # incompatible with the Cstd library. Avoid specifying
12583 # it if it's in CXXFLAGS. Ignore libCrun as
12584 # -library=stlport4 depends on it.
12585 case " $CXX $CXXFLAGS " in
12586 *" -library=stlport4 "*)
12587 solaris_use_stlport4=yes
12590 if test "$solaris_use_stlport4" != yes; then
12591 postdeps_CXX='-library=Cstd -library=Crun'
12598 case $cc_basename in
12600 # The more standards-conforming stlport4 library is
12601 # incompatible with the Cstd library. Avoid specifying
12602 # it if it's in CXXFLAGS. Ignore libCrun as
12603 # -library=stlport4 depends on it.
12604 case " $CXX $CXXFLAGS " in
12605 *" -library=stlport4 "*)
12606 solaris_use_stlport4=yes
12610 # Adding this requires a known-good setup of shared libraries for
12611 # Sun compiler versions before 5.6, else PIC objects from an old
12612 # archive will be linked into the output, leading to subtle bugs.
12613 if test "$solaris_use_stlport4" != yes; then
12614 postdeps_CXX='-library=Cstd -library=Crun'
12621 case " $postdeps_CXX " in
12622 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12625 lt_prog_compiler_wl_CXX=
12626 lt_prog_compiler_pic_CXX=
12627 lt_prog_compiler_static_CXX=
12629 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12630 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12632 # C++ specific cases for pic, static, wl, etc.
12633 if test "$GXX" = yes; then
12634 lt_prog_compiler_wl_CXX='-Wl,'
12635 lt_prog_compiler_static_CXX='-static'
12639 # All AIX code is PIC.
12640 if test "$host_cpu" = ia64; then
12641 # AIX 5 now supports IA64 processor
12642 lt_prog_compiler_static_CXX='-Bstatic'
12646 # FIXME: we need at least 68020 code to build shared libraries, but
12647 # adding the `-m68020' flag to GCC prevents building anything better,
12649 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12651 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12652 # PIC is the default for these OSes.
12654 mingw* | cygwin* | os2* | pw32*)
12655 # This hack is so that the source file can tell whether it is being
12656 # built for inclusion in a dll (and should export symbols for example).
12657 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12658 # (--disable-auto-import) libraries
12659 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12661 darwin* | rhapsody*)
12662 # PIC is the default on this platform
12663 # Common symbols not allowed in MH_DYLIB files
12664 lt_prog_compiler_pic_CXX='-fno-common'
12667 # DJGPP does not support shared libraries at all
12668 lt_prog_compiler_pic_CXX=
12671 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12672 # Instead, we relocate shared libraries at runtime.
12675 if test -d /usr/nec; then
12676 lt_prog_compiler_pic_CXX=-Kconform_pic
12680 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12681 # not for PA HP-UX.
12686 lt_prog_compiler_pic_CXX='-fPIC'
12691 lt_prog_compiler_pic_CXX='-fPIC'
12697 # All AIX code is PIC.
12698 if test "$host_cpu" = ia64; then
12699 # AIX 5 now supports IA64 processor
12700 lt_prog_compiler_static_CXX='-Bstatic'
12702 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12706 case $cc_basename in
12708 # Green Hills C++ Compiler
12709 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12714 # PIC is the default on this platform
12715 # Common symbols not allowed in MH_DYLIB files
12716 case $cc_basename in
12718 lt_prog_compiler_pic_CXX='-qnocommon'
12719 lt_prog_compiler_wl_CXX='-Wl,'
12724 case $cc_basename in
12726 lt_prog_compiler_pic_CXX='-KPIC'
12729 # Green Hills C++ Compiler
12730 lt_prog_compiler_pic_CXX='-pic'
12736 freebsd* | dragonfly*)
12737 # FreeBSD uses GNU C++
12739 hpux9* | hpux10* | hpux11*)
12740 case $cc_basename in
12742 lt_prog_compiler_wl_CXX='-Wl,'
12743 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12744 if test "$host_cpu" != ia64; then
12745 lt_prog_compiler_pic_CXX='+Z'
12749 lt_prog_compiler_wl_CXX='-Wl,'
12750 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12756 lt_prog_compiler_pic_CXX='+Z'
12765 # This is c89, which is MS Visual C++ (no shared libs)
12766 # Anyone wants to do a port?
12768 irix5* | irix6* | nonstopux*)
12769 case $cc_basename in
12771 lt_prog_compiler_wl_CXX='-Wl,'
12772 lt_prog_compiler_static_CXX='-non_shared'
12773 # CC pic flag -KPIC is the default.
12779 linux* | k*bsd*-gnu)
12780 case $cc_basename in
12783 lt_prog_compiler_wl_CXX='--backend -Wl,'
12784 lt_prog_compiler_pic_CXX='-fPIC'
12788 lt_prog_compiler_wl_CXX='-Wl,'
12789 lt_prog_compiler_pic_CXX='-KPIC'
12790 lt_prog_compiler_static_CXX='-static'
12793 # Portland Group C++ compiler.
12794 lt_prog_compiler_wl_CXX='-Wl,'
12795 lt_prog_compiler_pic_CXX='-fpic'
12796 lt_prog_compiler_static_CXX='-Bstatic'
12800 # Make sure the PIC flag is empty. It appears that all Alpha
12801 # Linux and Compaq Tru64 Unix objects are PIC.
12802 lt_prog_compiler_pic_CXX=
12803 lt_prog_compiler_static_CXX='-non_shared'
12806 case `$CC -V 2>&1 | sed 5q` in
12809 lt_prog_compiler_pic_CXX='-KPIC'
12810 lt_prog_compiler_static_CXX='-Bstatic'
12811 lt_prog_compiler_wl_CXX='-Qoption ld '
12822 case $cc_basename in
12824 lt_prog_compiler_pic_CXX='-W c,exportall'
12830 netbsd* | netbsdelf*-gnu)
12832 osf3* | osf4* | osf5*)
12833 case $cc_basename in
12835 lt_prog_compiler_wl_CXX='--backend -Wl,'
12838 # Rational C++ 2.4.1
12839 lt_prog_compiler_pic_CXX='-pic'
12842 # Digital/Compaq C++
12843 lt_prog_compiler_wl_CXX='-Wl,'
12844 # Make sure the PIC flag is empty. It appears that all Alpha
12845 # Linux and Compaq Tru64 Unix objects are PIC.
12846 lt_prog_compiler_pic_CXX=
12847 lt_prog_compiler_static_CXX='-non_shared'
12856 case $cc_basename in
12858 # Sun C++ 4.2, 5.x and Centerline C++
12859 lt_prog_compiler_pic_CXX='-KPIC'
12860 lt_prog_compiler_static_CXX='-Bstatic'
12861 lt_prog_compiler_wl_CXX='-Qoption ld '
12864 # Green Hills C++ Compiler
12865 lt_prog_compiler_pic_CXX='-PIC'
12872 case $cc_basename in
12875 lt_prog_compiler_pic_CXX='-pic'
12876 lt_prog_compiler_static_CXX='-Bstatic'
12880 lt_prog_compiler_pic_CXX='-pic'
12887 case $cc_basename in
12889 # NonStop-UX NCC 3.20
12890 lt_prog_compiler_pic_CXX='-KPIC'
12896 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12897 case $cc_basename in
12899 lt_prog_compiler_wl_CXX='-Wl,'
12900 lt_prog_compiler_pic_CXX='-KPIC'
12901 lt_prog_compiler_static_CXX='-Bstatic'
12908 lt_prog_compiler_can_build_shared_CXX=no
12913 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12914 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12917 # Check to make sure the PIC flag actually works.
12919 if test -n "$lt_prog_compiler_pic_CXX"; then
12921 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12922 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12923 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12924 $as_echo_n "(cached) " >&6
12926 lt_cv_prog_compiler_pic_works_CXX=no
12927 ac_outfile=conftest.$ac_objext
12928 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12929 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12930 # Insert the option either (1) after the last *FLAGS variable, or
12931 # (2) before a word containing "conftest.", or (3) at the end.
12932 # Note that $ac_compile itself does not contain backslashes and begins
12933 # with a dollar sign (not a hyphen), so the echo should work correctly.
12934 # The option is referenced via a variable to avoid confusing sed.
12935 lt_compile=`echo "$ac_compile" | $SED \
12936 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12937 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12938 -e 's:$: $lt_compiler_flag:'`
12939 (eval echo "\"\$as_me:12939: $lt_compile\"" >&5)
12940 (eval "$lt_compile" 2>conftest.err)
12942 cat conftest.err >&5
12943 echo "$as_me:12943: \$? = $ac_status" >&5
12944 if (exit $ac_status) && test -s "$ac_outfile"; then
12945 # The compiler can only warn and ignore the option if not recognized
12946 # So say no if there are warnings other than the usual output.
12947 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12948 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12949 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12950 lt_cv_prog_compiler_pic_works_CXX=yes
12956 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12957 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12959 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12960 case $lt_prog_compiler_pic_CXX in
12962 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12965 lt_prog_compiler_pic_CXX=
12966 lt_prog_compiler_can_build_shared_CXX=no
12971 # For platforms which do not support PIC, -DPIC is meaningless:
12973 lt_prog_compiler_pic_CXX=
12976 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12981 # Check to make sure the static flag actually works.
12983 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12984 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12985 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12986 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12987 $as_echo_n "(cached) " >&6
12989 lt_cv_prog_compiler_static_works_CXX=no
12990 save_LDFLAGS="$LDFLAGS"
12991 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12992 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12993 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12994 # The linker can only warn and ignore the option if not recognized
12995 # So say no if there are warnings
12996 if test -s conftest.err; then
12997 # Append any errors to the config.log.
12998 cat conftest.err 1>&5
12999 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13000 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13001 if diff conftest.exp conftest.er2 >/dev/null; then
13002 lt_cv_prog_compiler_static_works_CXX=yes
13005 lt_cv_prog_compiler_static_works_CXX=yes
13009 LDFLAGS="$save_LDFLAGS"
13012 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13013 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13015 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13018 lt_prog_compiler_static_CXX=
13022 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13023 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13024 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13025 $as_echo_n "(cached) " >&6
13027 lt_cv_prog_compiler_c_o_CXX=no
13028 $rm -r conftest 2>/dev/null
13032 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13034 lt_compiler_flag="-o out/conftest2.$ac_objext"
13035 # Insert the option either (1) after the last *FLAGS variable, or
13036 # (2) before a word containing "conftest.", or (3) at the end.
13037 # Note that $ac_compile itself does not contain backslashes and begins
13038 # with a dollar sign (not a hyphen), so the echo should work correctly.
13039 lt_compile=`echo "$ac_compile" | $SED \
13040 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13041 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13042 -e 's:$: $lt_compiler_flag:'`
13043 (eval echo "\"\$as_me:13043: $lt_compile\"" >&5)
13044 (eval "$lt_compile" 2>out/conftest.err)
13046 cat out/conftest.err >&5
13047 echo "$as_me:13047: \$? = $ac_status" >&5
13048 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13050 # The compiler can only warn and ignore the option if not recognized
13051 # So say no if there are warnings
13052 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13053 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13054 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13055 lt_cv_prog_compiler_c_o_CXX=yes
13060 # SGI C++ compiler will create directory out/ii_files/ for
13061 # template instantiation
13062 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13063 $rm out/* && rmdir out
13069 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13070 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13073 hard_links="nottested"
13074 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13075 # do not overwrite the value of need_locks provided by the user
13076 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13077 $as_echo_n "checking if we can lock with hard links... " >&6; }
13080 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13082 ln conftest.a conftest.b 2>&5 || hard_links=no
13083 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13084 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13085 $as_echo "$hard_links" >&6; }
13086 if test "$hard_links" = no; then
13087 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13088 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13095 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13096 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13098 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13101 # If we're using GNU nm, then we don't want the "-C" option.
13102 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13103 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13104 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13106 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13110 export_symbols_cmds_CXX="$ltdll_cmds"
13113 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13115 linux* | k*bsd*-gnu)
13116 link_all_deplibs_CXX=no
13119 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13122 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13124 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13125 $as_echo "$ld_shlibs_CXX" >&6; }
13126 test "$ld_shlibs_CXX" = no && can_build_shared=no
13129 # Do we need to explicitly link libc?
13131 case "x$archive_cmds_need_lc_CXX" in
13133 # Assume -lc should be added
13134 archive_cmds_need_lc_CXX=yes
13136 if test "$enable_shared" = yes && test "$GCC" = yes; then
13137 case $archive_cmds_CXX in
13139 # FIXME: we may have to deal with multi-command sequences.
13142 # Test whether the compiler implicitly links with -lc since on some
13143 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13144 # to ld, don't add -lc before -lgcc.
13145 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13146 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13148 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13151 (eval $ac_compile) 2>&5
13153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); } 2>conftest.err; then
13157 libobjs=conftest.$ac_objext
13159 wl=$lt_prog_compiler_wl_CXX
13160 pic_flag=$lt_prog_compiler_pic_CXX
13166 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13167 allow_undefined_flag_CXX=
13168 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13169 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172 (exit $ac_status); }
13174 archive_cmds_need_lc_CXX=no
13176 archive_cmds_need_lc_CXX=yes
13178 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13180 cat conftest.err 1>&5
13183 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13184 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
13191 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13192 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13193 library_names_spec=
13194 libname_spec='lib$name'
13198 postuninstall_cmds=
13202 shlibpath_overrides_runpath=unknown
13204 dynamic_linker="$host_os ld.so"
13205 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13207 need_lib_prefix=unknown
13208 hardcode_into_libs=no
13210 # when you set need_version to no, make sure it does not cause -set_version
13211 # flags to be left without arguments
13212 need_version=unknown
13217 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13218 shlibpath_var=LIBPATH
13220 # AIX 3 has no versioning support, so we append a major version to the name.
13221 soname_spec='${libname}${release}${shared_ext}$major'
13228 hardcode_into_libs=yes
13229 if test "$host_cpu" = ia64; then
13230 # AIX 5 supports IA64
13231 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13232 shlibpath_var=LD_LIBRARY_PATH
13234 # With GCC up to 2.95.x, collect2 would create an import file
13235 # for dependence libraries. The import file would start with
13236 # the line `#! .'. This would cause the generated library to
13237 # depend on `.', always an invalid library. This was fixed in
13238 # development snapshots of GCC prior to 3.0.
13240 aix4 | aix4.[01] | aix4.[01].*)
13241 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13243 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13246 can_build_shared=no
13250 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13251 # soname into executable. Probably we can add versioning support to
13252 # collect2, so additional links can be useful in future.
13253 if test "$aix_use_runtimelinking" = yes; then
13254 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13255 # instead of lib<name>.a to let people know that these are not
13256 # typical AIX shared libraries.
13257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13259 # We preserve .a as extension for shared libraries through AIX4.2
13260 # and later when we are not doing run time linking.
13261 library_names_spec='${libname}${release}.a $libname.a'
13262 soname_spec='${libname}${release}${shared_ext}$major'
13264 shlibpath_var=LIBPATH
13269 library_names_spec='$libname.ixlibrary $libname.a'
13270 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13271 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'
13275 library_names_spec='${libname}${shared_ext}'
13276 dynamic_linker="$host_os ld.so"
13277 shlibpath_var=LIBRARY_PATH
13283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13284 soname_spec='${libname}${release}${shared_ext}$major'
13285 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13286 shlibpath_var=LD_LIBRARY_PATH
13287 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13288 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13289 # the default ld.so.conf also contains /usr/contrib/lib and
13290 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13291 # libtool to hard-code these into programs
13294 cygwin* | mingw* | pw32*)
13295 version_type=windows
13300 case $GCC,$host_os in
13301 yes,cygwin* | yes,mingw* | yes,pw32*)
13302 library_names_spec='$libname.dll.a'
13303 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13304 postinstall_cmds='base_file=`basename \${file}`~
13305 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13306 dldir=$destdir/`dirname \$dlpath`~
13307 test -d \$dldir || mkdir -p \$dldir~
13308 $install_prog $dir/$dlname \$dldir/$dlname~
13309 chmod a+x \$dldir/$dlname'
13310 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13311 dlpath=$dir/\$dldll~
13313 shlibpath_overrides_runpath=yes
13317 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13318 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13319 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13322 # MinGW DLLs use traditional 'lib' prefix
13323 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13324 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13325 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13326 # It is most probably a Windows format PATH printed by
13327 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13328 # path with ; separators, and with drive letters. We can handle the
13329 # drive letters (cygwin fileutils understands them), so leave them,
13330 # especially as we might pass files found there to a mingw objdump,
13331 # which wouldn't understand a cygwinified path. Ahh.
13332 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13334 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13338 # pw32 DLLs use 'pw' prefix rather than 'lib'
13339 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13345 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13348 dynamic_linker='Win32 ld.exe'
13349 # FIXME: first we should search . and the directory the executable is in
13353 darwin* | rhapsody*)
13354 dynamic_linker="$host_os dyld"
13355 version_type=darwin
13358 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13359 soname_spec='${libname}${release}${major}$shared_ext'
13360 shlibpath_overrides_runpath=yes
13361 shlibpath_var=DYLD_LIBRARY_PATH
13362 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13364 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13372 soname_spec='${libname}${release}${shared_ext}$major'
13373 shlibpath_var=LD_LIBRARY_PATH
13380 freebsd* | dragonfly*)
13381 # DragonFly does not have aout. When/if they implement a new
13382 # versioning mechanism, adjust this.
13383 if test -x /usr/bin/objformat; then
13384 objformat=`/usr/bin/objformat`
13387 freebsd[123]*) objformat=aout ;;
13388 *) objformat=elf ;;
13391 version_type=freebsd-$objformat
13392 case $version_type in
13394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13399 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13403 shlibpath_var=LD_LIBRARY_PATH
13406 shlibpath_overrides_runpath=yes
13408 freebsd3.[01]* | freebsdelf3.[01]*)
13409 shlibpath_overrides_runpath=yes
13410 hardcode_into_libs=yes
13412 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13413 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13414 shlibpath_overrides_runpath=no
13415 hardcode_into_libs=yes
13417 *) # from 4.6 on, and DragonFly
13418 shlibpath_overrides_runpath=yes
13419 hardcode_into_libs=yes
13428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13429 soname_spec='${libname}${release}${shared_ext}$major'
13430 shlibpath_var=LD_LIBRARY_PATH
13431 hardcode_into_libs=yes
13434 hpux9* | hpux10* | hpux11*)
13435 # Give a soname corresponding to the major version so that dld.sl refuses to
13436 # link against other versions.
13443 hardcode_into_libs=yes
13444 dynamic_linker="$host_os dld.so"
13445 shlibpath_var=LD_LIBRARY_PATH
13446 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13448 soname_spec='${libname}${release}${shared_ext}$major'
13449 if test "X$HPUX_IA64_MODE" = X32; then
13450 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13452 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13454 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13458 hardcode_into_libs=yes
13459 dynamic_linker="$host_os dld.sl"
13460 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13461 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13463 soname_spec='${libname}${release}${shared_ext}$major'
13464 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13465 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13469 dynamic_linker="$host_os dld.sl"
13470 shlibpath_var=SHLIB_PATH
13471 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13473 soname_spec='${libname}${release}${shared_ext}$major'
13476 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13477 postinstall_cmds='chmod 555 $lib'
13484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13485 soname_spec='${libname}${release}${shared_ext}$major'
13486 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13487 shlibpath_var=LD_LIBRARY_PATH
13488 shlibpath_overrides_runpath=no
13489 hardcode_into_libs=yes
13492 irix5* | irix6* | nonstopux*)
13494 nonstopux*) version_type=nonstopux ;;
13496 if test "$lt_cv_prog_gnu_ld" = yes; then
13504 soname_spec='${libname}${release}${shared_ext}$major'
13505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13507 irix5* | nonstopux*)
13508 libsuff= shlibsuff=
13511 case $LD in # libtool.m4 will add one of these switches to LD
13512 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13513 libsuff= shlibsuff= libmagic=32-bit;;
13514 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13515 libsuff=32 shlibsuff=N32 libmagic=N32;;
13516 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13517 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13518 *) libsuff= shlibsuff= libmagic=never-match;;
13522 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13523 shlibpath_overrides_runpath=no
13524 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13525 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13526 hardcode_into_libs=yes
13529 # No shared lib support for Linux oldld, aout, or coff.
13530 linux*oldld* | linux*aout* | linux*coff*)
13534 # This must be Linux ELF.
13535 linux* | k*bsd*-gnu)
13539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13540 soname_spec='${libname}${release}${shared_ext}$major'
13541 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13542 shlibpath_var=LD_LIBRARY_PATH
13543 shlibpath_overrides_runpath=no
13544 # This implies no fast_install, which is unacceptable.
13545 # Some rework will be needed to allow for fast_install
13546 # before this can be enabled.
13547 hardcode_into_libs=yes
13549 # Append ld.so.conf contents to the search path
13550 if test -f /etc/ld.so.conf; then
13551 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' ' '`
13552 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13555 # We used to test for /lib/ld.so.1 and disable shared libraries on
13556 # powerpc, because MkLinux only supported shared libraries with the
13557 # GNU dynamic linker. Since this was broken with cross compilers,
13558 # most powerpc-linux boxes support dynamic linking these days and
13559 # people can always --disable-shared, the test was removed, and we
13560 # assume the GNU/Linux dynamic linker is in use.
13561 dynamic_linker='GNU/Linux ld.so'
13568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13569 soname_spec='${libname}${release}${shared_ext}$major'
13570 shlibpath_var=LD_LIBRARY_PATH
13571 shlibpath_overrides_runpath=no
13572 hardcode_into_libs=yes
13573 dynamic_linker='NetBSD ld.elf_so'
13580 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13582 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13583 dynamic_linker='NetBSD (a.out) ld.so'
13585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13586 soname_spec='${libname}${release}${shared_ext}$major'
13587 dynamic_linker='NetBSD ld.elf_so'
13589 shlibpath_var=LD_LIBRARY_PATH
13590 shlibpath_overrides_runpath=yes
13591 hardcode_into_libs=yes
13596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13597 shlibpath_var=LD_LIBRARY_PATH
13598 shlibpath_overrides_runpath=yes
13605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13606 soname_spec='${libname}${release}${shared_ext}$major'
13607 shlibpath_var=LD_LIBRARY_PATH
13608 shlibpath_overrides_runpath=yes
13613 sys_lib_dlsearch_path_spec="/usr/lib"
13615 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13617 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13618 *) need_version=no ;;
13620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13621 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13622 shlibpath_var=LD_LIBRARY_PATH
13623 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13625 openbsd2.[89] | openbsd2.[89].*)
13626 shlibpath_overrides_runpath=no
13629 shlibpath_overrides_runpath=yes
13633 shlibpath_overrides_runpath=yes
13638 libname_spec='$name'
13641 library_names_spec='$libname${shared_ext} $libname.a'
13642 dynamic_linker='OS/2 ld.exe'
13643 shlibpath_var=LIBPATH
13646 osf3* | osf4* | osf5*)
13650 soname_spec='${libname}${release}${shared_ext}$major'
13651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13652 shlibpath_var=LD_LIBRARY_PATH
13653 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13654 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13666 soname_spec='${libname}${release}${shared_ext}$major'
13667 shlibpath_var=LD_LIBRARY_PATH
13668 shlibpath_overrides_runpath=yes
13669 hardcode_into_libs=yes
13670 # ldd complains unless libraries are executable
13671 postinstall_cmds='chmod +x $lib'
13676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13677 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13678 shlibpath_var=LD_LIBRARY_PATH
13679 shlibpath_overrides_runpath=yes
13680 if test "$with_gnu_ld" = yes; then
13688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13689 soname_spec='${libname}${release}${shared_ext}$major'
13690 shlibpath_var=LD_LIBRARY_PATH
13691 case $host_vendor in
13693 shlibpath_overrides_runpath=no
13695 export_dynamic_flag_spec='${wl}-Blargedynsym'
13696 runpath_var=LD_RUN_PATH
13704 shlibpath_overrides_runpath=no
13705 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13711 if test -d /usr/nec ;then
13713 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13714 soname_spec='$libname${shared_ext}.$major'
13715 shlibpath_var=LD_LIBRARY_PATH
13719 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13720 version_type=freebsd-elf
13723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13724 soname_spec='${libname}${release}${shared_ext}$major'
13725 shlibpath_var=LD_LIBRARY_PATH
13726 hardcode_into_libs=yes
13727 if test "$with_gnu_ld" = yes; then
13728 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13729 shlibpath_overrides_runpath=no
13731 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13732 shlibpath_overrides_runpath=yes
13735 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13739 sys_lib_dlsearch_path_spec='/usr/lib'
13744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13745 soname_spec='${libname}${release}${shared_ext}$major'
13746 shlibpath_var=LD_LIBRARY_PATH
13753 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13754 $as_echo "$dynamic_linker" >&6; }
13755 test "$dynamic_linker" = no && can_build_shared=no
13757 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13758 $as_echo_n "(cached) " >&6
13760 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13763 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13764 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13765 $as_echo_n "(cached) " >&6
13767 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13770 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13772 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13773 if test "$GCC" = yes; then
13774 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13777 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13778 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13779 hardcode_action_CXX=
13780 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13781 test -n "$runpath_var_CXX" || \
13782 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13784 # We can hardcode non-existant directories.
13785 if test "$hardcode_direct_CXX" != no &&
13786 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13787 # have to relink, otherwise we might link with an installed library
13788 # when we should be linking with a yet-to-be-installed one
13789 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13790 test "$hardcode_minus_L_CXX" != no; then
13791 # Linking always hardcodes the temporary library directory.
13792 hardcode_action_CXX=relink
13794 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13795 hardcode_action_CXX=immediate
13798 # We cannot hardcode anything, or else we can only hardcode existing
13800 hardcode_action_CXX=unsupported
13802 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13803 $as_echo "$hardcode_action_CXX" >&6; }
13805 if test "$hardcode_action_CXX" = relink; then
13806 # Fast installation is not supported
13807 enable_fast_install=no
13808 elif test "$shlibpath_overrides_runpath" = yes ||
13809 test "$enable_shared" = no; then
13810 # Fast installation is not necessary
13811 enable_fast_install=needless
13815 # The else clause should only fire when bootstrapping the
13816 # libtool distribution, otherwise you forgot to ship ltmain.sh
13817 # with your package, and you will get complaints that there are
13818 # no rules to generate ltmain.sh.
13819 if test -f "$ltmain"; then
13820 # See if we are running on zsh, and set the options which allow our commands through
13821 # without removal of \ escapes.
13822 if test -n "${ZSH_VERSION+set}" ; then
13823 setopt NO_GLOB_SUBST
13825 # Now quote all the things that may contain metacharacters while being
13826 # careful not to overquote the AC_SUBSTed values. We take copies of the
13827 # variables and quote the copies for generation of the libtool script.
13828 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13830 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13831 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13832 deplibs_check_method reload_flag reload_cmds need_locks \
13833 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13834 lt_cv_sys_global_symbol_to_c_name_address \
13835 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13836 old_postinstall_cmds old_postuninstall_cmds \
13840 lt_prog_compiler_wl_CXX \
13841 lt_prog_compiler_pic_CXX \
13842 lt_prog_compiler_static_CXX \
13843 lt_prog_compiler_no_builtin_flag_CXX \
13844 export_dynamic_flag_spec_CXX \
13845 thread_safe_flag_spec_CXX \
13846 whole_archive_flag_spec_CXX \
13847 enable_shared_with_static_runtimes_CXX \
13848 old_archive_cmds_CXX \
13849 old_archive_from_new_cmds_CXX \
13850 predep_objects_CXX \
13851 postdep_objects_CXX \
13854 compiler_lib_search_path_CXX \
13855 compiler_lib_search_dirs_CXX \
13857 archive_expsym_cmds_CXX \
13858 postinstall_cmds_CXX \
13859 postuninstall_cmds_CXX \
13860 old_archive_from_expsyms_cmds_CXX \
13861 allow_undefined_flag_CXX \
13862 no_undefined_flag_CXX \
13863 export_symbols_cmds_CXX \
13864 hardcode_libdir_flag_spec_CXX \
13865 hardcode_libdir_flag_spec_ld_CXX \
13866 hardcode_libdir_separator_CXX \
13867 hardcode_automatic_CXX \
13869 module_expsym_cmds_CXX \
13870 lt_cv_prog_compiler_c_o_CXX \
13871 fix_srcfile_path_CXX \
13872 exclude_expsyms_CXX \
13873 include_expsyms_CXX; do
13876 old_archive_cmds_CXX | \
13877 old_archive_from_new_cmds_CXX | \
13878 archive_cmds_CXX | \
13879 archive_expsym_cmds_CXX | \
13880 module_cmds_CXX | \
13881 module_expsym_cmds_CXX | \
13882 old_archive_from_expsyms_cmds_CXX | \
13883 export_symbols_cmds_CXX | \
13884 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13885 postinstall_cmds | postuninstall_cmds | \
13886 old_postinstall_cmds | old_postuninstall_cmds | \
13887 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13888 # Double-quote double-evaled strings.
13889 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13892 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13898 *'\$0 --fallback-echo"')
13899 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13905 cat <<__EOF__ >> "$cfgfile"
13906 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13908 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13910 # Shell to use when invoking shell scripts.
13913 # Whether or not to build shared libraries.
13914 build_libtool_libs=$enable_shared
13916 # Whether or not to build static libraries.
13917 build_old_libs=$enable_static
13919 # Whether or not to add -lc for building shared libraries.
13920 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13922 # Whether or not to disallow shared libs when runtime libs are static
13923 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13925 # Whether or not to optimize for fast installation.
13926 fast_install=$enable_fast_install
13929 host_alias=$host_alias
13933 # The build system.
13934 build_alias=$build_alias
13938 # An echo program that does not interpret backslashes.
13943 AR_FLAGS=$lt_AR_FLAGS
13948 # LTCC compiler flags.
13949 LTCFLAGS=$lt_LTCFLAGS
13951 # A language-specific compiler.
13952 CC=$lt_compiler_CXX
13954 # Is the compiler the GNU C compiler?
13960 # The linker used to build libraries.
13963 # Whether we need hard or soft links.
13966 # A BSD-compatible nm program.
13969 # A symbol stripping program
13972 # Used to examine libraries when file_magic_cmd begins "file"
13973 MAGIC_CMD=$MAGIC_CMD
13975 # Used on cygwin: DLL creation program.
13978 # Used on cygwin: object dumper.
13981 # Used on cygwin: assembler.
13984 # The name of the directory that contains temporary libtool files.
13987 # How to create reloadable object files.
13988 reload_flag=$lt_reload_flag
13989 reload_cmds=$lt_reload_cmds
13991 # How to pass a linker flag through the compiler.
13992 wl=$lt_lt_prog_compiler_wl_CXX
13994 # Object file suffix (normally "o").
13995 objext="$ac_objext"
13997 # Old archive suffix (normally "a").
14000 # Shared library suffix (normally ".so").
14001 shrext_cmds='$shrext_cmds'
14003 # Executable file suffix (normally "").
14006 # Additional compiler flags for building library objects.
14007 pic_flag=$lt_lt_prog_compiler_pic_CXX
14010 # What is the maximum length of a command?
14011 max_cmd_len=$lt_cv_sys_max_cmd_len
14013 # Does compiler simultaneously support -c and -o options?
14014 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14016 # Must we lock files when doing compilation?
14017 need_locks=$lt_need_locks
14019 # Do we need the lib prefix for modules?
14020 need_lib_prefix=$need_lib_prefix
14022 # Do we need a version for libraries?
14023 need_version=$need_version
14025 # Whether dlopen is supported.
14026 dlopen_support=$enable_dlopen
14028 # Whether dlopen of programs is supported.
14029 dlopen_self=$enable_dlopen_self
14031 # Whether dlopen of statically linked programs is supported.
14032 dlopen_self_static=$enable_dlopen_self_static
14034 # Compiler flag to prevent dynamic linking.
14035 link_static_flag=$lt_lt_prog_compiler_static_CXX
14037 # Compiler flag to turn off builtin functions.
14038 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14040 # Compiler flag to allow reflexive dlopens.
14041 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14043 # Compiler flag to generate shared objects directly from archives.
14044 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14046 # Compiler flag to generate thread-safe objects.
14047 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14049 # Library versioning type.
14050 version_type=$version_type
14052 # Format of library name prefix.
14053 libname_spec=$lt_libname_spec
14055 # List of archive names. First name is the real one, the rest are links.
14056 # The last name is the one that the linker finds with -lNAME.
14057 library_names_spec=$lt_library_names_spec
14059 # The coded name of the library, if different from the real name.
14060 soname_spec=$lt_soname_spec
14062 # Commands used to build and install an old-style archive.
14064 old_archive_cmds=$lt_old_archive_cmds_CXX
14065 old_postinstall_cmds=$lt_old_postinstall_cmds
14066 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14068 # Create an old-style archive from a shared archive.
14069 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14071 # Create a temporary old-style archive to link instead of a shared archive.
14072 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14074 # Commands used to build and install a shared archive.
14075 archive_cmds=$lt_archive_cmds_CXX
14076 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14077 postinstall_cmds=$lt_postinstall_cmds
14078 postuninstall_cmds=$lt_postuninstall_cmds
14080 # Commands used to build a loadable module (assumed same as above if empty)
14081 module_cmds=$lt_module_cmds_CXX
14082 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14084 # Commands to strip libraries.
14085 old_striplib=$lt_old_striplib
14086 striplib=$lt_striplib
14088 # Dependencies to place before the objects being linked to create a
14090 predep_objects=$lt_predep_objects_CXX
14092 # Dependencies to place after the objects being linked to create a
14094 postdep_objects=$lt_postdep_objects_CXX
14096 # Dependencies to place before the objects being linked to create a
14098 predeps=$lt_predeps_CXX
14100 # Dependencies to place after the objects being linked to create a
14102 postdeps=$lt_postdeps_CXX
14104 # The directories searched by this compiler when creating a shared
14106 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14108 # The library search path used internally by the compiler when linking
14109 # a shared library.
14110 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14112 # Method to check whether dependent libraries are shared objects.
14113 deplibs_check_method=$lt_deplibs_check_method
14115 # Command to use when deplibs_check_method == file_magic.
14116 file_magic_cmd=$lt_file_magic_cmd
14118 # Flag that allows shared libraries with undefined symbols to be built.
14119 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14121 # Flag that forces no undefined symbols.
14122 no_undefined_flag=$lt_no_undefined_flag_CXX
14124 # Commands used to finish a libtool library installation in a directory.
14125 finish_cmds=$lt_finish_cmds
14127 # Same as above, but a single script fragment to be evaled but not shown.
14128 finish_eval=$lt_finish_eval
14130 # Take the output of nm and produce a listing of raw symbols and C names.
14131 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14133 # Transform the output of nm in a proper C declaration
14134 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14136 # Transform the output of nm in a C name address pair
14137 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14139 # This is the shared library runtime path variable.
14140 runpath_var=$runpath_var
14142 # This is the shared library path variable.
14143 shlibpath_var=$shlibpath_var
14145 # Is shlibpath searched before the hard-coded library search path?
14146 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14148 # How to hardcode a shared library path into an executable.
14149 hardcode_action=$hardcode_action_CXX
14151 # Whether we should hardcode library paths into libraries.
14152 hardcode_into_libs=$hardcode_into_libs
14154 # Flag to hardcode \$libdir into a binary during linking.
14155 # This must work even if \$libdir does not exist.
14156 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14158 # If ld is used when linking, flag to hardcode \$libdir into
14159 # a binary during linking. This must work even if \$libdir does
14161 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14163 # Whether we need a single -rpath flag with a separated argument.
14164 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14166 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14167 # resulting binary.
14168 hardcode_direct=$hardcode_direct_CXX
14170 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14171 # resulting binary.
14172 hardcode_minus_L=$hardcode_minus_L_CXX
14174 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14175 # the resulting binary.
14176 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14178 # Set to yes if building a shared library automatically hardcodes DIR into the library
14179 # and all subsequent libraries and executables linked against it.
14180 hardcode_automatic=$hardcode_automatic_CXX
14182 # Variables whose values should be saved in libtool wrapper scripts and
14183 # restored at relink time.
14184 variables_saved_for_relink="$variables_saved_for_relink"
14186 # Whether libtool must link a program against all its dependency libraries.
14187 link_all_deplibs=$link_all_deplibs_CXX
14189 # Compile-time system search path for libraries
14190 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14192 # Run-time system search path for libraries
14193 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14195 # Fix the shell variable \$srcfile for the compiler.
14196 fix_srcfile_path=$lt_fix_srcfile_path
14198 # Set to yes if exported symbols are required.
14199 always_export_symbols=$always_export_symbols_CXX
14201 # The commands to list exported symbols.
14202 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14204 # The commands to extract the exported symbol list from a shared archive.
14205 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14207 # Symbols that should not be listed in the preloaded symbols.
14208 exclude_expsyms=$lt_exclude_expsyms_CXX
14210 # Symbols that must always be exported.
14211 include_expsyms=$lt_include_expsyms_CXX
14213 # ### END LIBTOOL TAG CONFIG: $tagname
14219 # If there is no Makefile yet, we rely on a make rule to execute
14220 # `config.status --recheck' to rerun these tests and create the
14221 # libtool script then.
14222 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14223 if test -f "$ltmain_in"; then
14224 test -f Makefile && make "$ltmain"
14230 ac_cpp='$CPP $CPPFLAGS'
14231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14239 with_gnu_ldcxx=$with_gnu_ld
14240 with_gnu_ld=$lt_save_with_gnu_ld
14241 lt_cv_path_LDCXX=$lt_cv_path_LD
14242 lt_cv_path_LD=$lt_save_path_LD
14243 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14244 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14252 if test -n "$F77" && test "X$F77" != "Xno"; then
14255 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14256 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14257 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14260 archive_cmds_need_lc_F77=no
14261 allow_undefined_flag_F77=
14262 always_export_symbols_F77=no
14263 archive_expsym_cmds_F77=
14264 export_dynamic_flag_spec_F77=
14265 hardcode_direct_F77=no
14266 hardcode_libdir_flag_spec_F77=
14267 hardcode_libdir_flag_spec_ld_F77=
14268 hardcode_libdir_separator_F77=
14269 hardcode_minus_L_F77=no
14270 hardcode_automatic_F77=no
14272 module_expsym_cmds_F77=
14273 link_all_deplibs_F77=unknown
14274 old_archive_cmds_F77=$old_archive_cmds
14275 no_undefined_flag_F77=
14276 whole_archive_flag_spec_F77=
14277 enable_shared_with_static_runtimes_F77=no
14279 # Source file extension for f77 test sources.
14282 # Object file extension for compiled f77 test sources.
14286 # Code to be used in simple compile tests
14287 lt_simple_compile_test_code="\
14293 # Code to be used in simple link tests
14294 lt_simple_link_test_code="\
14299 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14301 # If no C compiler was specified, use CC.
14304 # If no C compiler flags were specified, use CFLAGS.
14305 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14307 # Allow CC to be a program name with arguments.
14311 # save warnings/boilerplate of simple test code
14312 ac_outfile=conftest.$ac_objext
14313 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14314 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14315 _lt_compiler_boilerplate=`cat conftest.err`
14318 ac_outfile=conftest.$ac_objext
14319 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14320 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14321 _lt_linker_boilerplate=`cat conftest.err`
14325 # Allow CC to be a program name with arguments.
14330 for cc_temp in $compiler""; do
14332 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14333 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14338 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14341 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14342 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14343 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14344 $as_echo "$can_build_shared" >&6; }
14346 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14347 $as_echo_n "checking whether to build shared libraries... " >&6; }
14348 test "$can_build_shared" = "no" && enable_shared=no
14350 # On AIX, shared libraries and static libraries use the same namespace, and
14351 # are all built from PIC.
14354 test "$enable_shared" = yes && enable_static=no
14355 if test -n "$RANLIB"; then
14356 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14357 postinstall_cmds='$RANLIB $lib'
14361 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14362 test "$enable_shared" = yes && enable_static=no
14366 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14367 $as_echo "$enable_shared" >&6; }
14369 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14370 $as_echo_n "checking whether to build static libraries... " >&6; }
14371 # Make sure either enable_shared or enable_static is yes.
14372 test "$enable_shared" = yes || enable_static=yes
14373 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14374 $as_echo "$enable_static" >&6; }
14379 lt_prog_compiler_wl_F77=
14380 lt_prog_compiler_pic_F77=
14381 lt_prog_compiler_static_F77=
14383 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14384 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14386 if test "$GCC" = yes; then
14387 lt_prog_compiler_wl_F77='-Wl,'
14388 lt_prog_compiler_static_F77='-static'
14392 # All AIX code is PIC.
14393 if test "$host_cpu" = ia64; then
14394 # AIX 5 now supports IA64 processor
14395 lt_prog_compiler_static_F77='-Bstatic'
14400 # FIXME: we need at least 68020 code to build shared libraries, but
14401 # adding the `-m68020' flag to GCC prevents building anything better,
14403 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14406 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14407 # PIC is the default for these OSes.
14410 mingw* | cygwin* | pw32* | os2*)
14411 # This hack is so that the source file can tell whether it is being
14412 # built for inclusion in a dll (and should export symbols for example).
14413 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14414 # (--disable-auto-import) libraries
14415 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14418 darwin* | rhapsody*)
14419 # PIC is the default on this platform
14420 # Common symbols not allowed in MH_DYLIB files
14421 lt_prog_compiler_pic_F77='-fno-common'
14425 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14426 # Instead, we relocate shared libraries at runtime.
14430 # Just because we use GCC doesn't mean we suddenly get shared libraries
14431 # on systems that don't support them.
14432 lt_prog_compiler_can_build_shared_F77=no
14437 if test -d /usr/nec; then
14438 lt_prog_compiler_pic_F77=-Kconform_pic
14443 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14444 # not for PA HP-UX.
14450 lt_prog_compiler_pic_F77='-fPIC'
14456 lt_prog_compiler_pic_F77='-fPIC'
14460 # PORTME Check for flag to pass linker flags through the system compiler.
14463 lt_prog_compiler_wl_F77='-Wl,'
14464 if test "$host_cpu" = ia64; then
14465 # AIX 5 now supports IA64 processor
14466 lt_prog_compiler_static_F77='-Bstatic'
14468 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14472 # PIC is the default on this platform
14473 # Common symbols not allowed in MH_DYLIB files
14474 case $cc_basename in
14476 lt_prog_compiler_pic_F77='-qnocommon'
14477 lt_prog_compiler_wl_F77='-Wl,'
14482 mingw* | cygwin* | pw32* | os2*)
14483 # This hack is so that the source file can tell whether it is being
14484 # built for inclusion in a dll (and should export symbols for example).
14485 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14488 hpux9* | hpux10* | hpux11*)
14489 lt_prog_compiler_wl_F77='-Wl,'
14490 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14491 # not for PA HP-UX.
14497 lt_prog_compiler_pic_F77='+Z'
14500 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14501 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14504 irix5* | irix6* | nonstopux*)
14505 lt_prog_compiler_wl_F77='-Wl,'
14506 # PIC (with -KPIC) is the default.
14507 lt_prog_compiler_static_F77='-non_shared'
14511 lt_prog_compiler_pic_F77='-KPIC'
14512 lt_prog_compiler_static_F77='-Bstatic'
14515 linux* | k*bsd*-gnu)
14516 case $cc_basename in
14518 lt_prog_compiler_wl_F77='-Wl,'
14519 lt_prog_compiler_pic_F77='-KPIC'
14520 lt_prog_compiler_static_F77='-static'
14522 pgcc* | pgf77* | pgf90* | pgf95*)
14523 # Portland Group compilers (*not* the Pentium gcc compiler,
14524 # which looks to be a dead project)
14525 lt_prog_compiler_wl_F77='-Wl,'
14526 lt_prog_compiler_pic_F77='-fpic'
14527 lt_prog_compiler_static_F77='-Bstatic'
14530 lt_prog_compiler_wl_F77='-Wl,'
14531 # All Alpha code is PIC.
14532 lt_prog_compiler_static_F77='-non_shared'
14535 case `$CC -V 2>&1 | sed 5q` in
14538 lt_prog_compiler_pic_F77='-KPIC'
14539 lt_prog_compiler_static_F77='-Bstatic'
14540 lt_prog_compiler_wl_F77='-Wl,'
14543 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14544 lt_prog_compiler_pic_F77='-KPIC'
14545 lt_prog_compiler_static_F77='-Bstatic'
14546 lt_prog_compiler_wl_F77=''
14553 osf3* | osf4* | osf5*)
14554 lt_prog_compiler_wl_F77='-Wl,'
14555 # All OSF/1 code is PIC.
14556 lt_prog_compiler_static_F77='-non_shared'
14560 lt_prog_compiler_static_F77='-non_shared'
14564 lt_prog_compiler_pic_F77='-KPIC'
14565 lt_prog_compiler_static_F77='-Bstatic'
14566 case $cc_basename in
14567 f77* | f90* | f95*)
14568 lt_prog_compiler_wl_F77='-Qoption ld ';;
14570 lt_prog_compiler_wl_F77='-Wl,';;
14575 lt_prog_compiler_wl_F77='-Qoption ld '
14576 lt_prog_compiler_pic_F77='-PIC'
14577 lt_prog_compiler_static_F77='-Bstatic'
14580 sysv4 | sysv4.2uw2* | sysv4.3*)
14581 lt_prog_compiler_wl_F77='-Wl,'
14582 lt_prog_compiler_pic_F77='-KPIC'
14583 lt_prog_compiler_static_F77='-Bstatic'
14587 if test -d /usr/nec ;then
14588 lt_prog_compiler_pic_F77='-Kconform_pic'
14589 lt_prog_compiler_static_F77='-Bstatic'
14593 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14594 lt_prog_compiler_wl_F77='-Wl,'
14595 lt_prog_compiler_pic_F77='-KPIC'
14596 lt_prog_compiler_static_F77='-Bstatic'
14600 lt_prog_compiler_wl_F77='-Wl,'
14601 lt_prog_compiler_can_build_shared_F77=no
14605 lt_prog_compiler_pic_F77='-pic'
14606 lt_prog_compiler_static_F77='-Bstatic'
14610 lt_prog_compiler_can_build_shared_F77=no
14615 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14616 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
14619 # Check to make sure the PIC flag actually works.
14621 if test -n "$lt_prog_compiler_pic_F77"; then
14623 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14624 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14625 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14626 $as_echo_n "(cached) " >&6
14628 lt_cv_prog_compiler_pic_works_F77=no
14629 ac_outfile=conftest.$ac_objext
14630 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14631 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14632 # Insert the option either (1) after the last *FLAGS variable, or
14633 # (2) before a word containing "conftest.", or (3) at the end.
14634 # Note that $ac_compile itself does not contain backslashes and begins
14635 # with a dollar sign (not a hyphen), so the echo should work correctly.
14636 # The option is referenced via a variable to avoid confusing sed.
14637 lt_compile=`echo "$ac_compile" | $SED \
14638 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14639 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14640 -e 's:$: $lt_compiler_flag:'`
14641 (eval echo "\"\$as_me:14641: $lt_compile\"" >&5)
14642 (eval "$lt_compile" 2>conftest.err)
14644 cat conftest.err >&5
14645 echo "$as_me:14645: \$? = $ac_status" >&5
14646 if (exit $ac_status) && test -s "$ac_outfile"; then
14647 # The compiler can only warn and ignore the option if not recognized
14648 # So say no if there are warnings other than the usual output.
14649 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14650 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14651 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14652 lt_cv_prog_compiler_pic_works_F77=yes
14658 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14659 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14661 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14662 case $lt_prog_compiler_pic_F77 in
14664 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14667 lt_prog_compiler_pic_F77=
14668 lt_prog_compiler_can_build_shared_F77=no
14673 # For platforms which do not support PIC, -DPIC is meaningless:
14675 lt_prog_compiler_pic_F77=
14678 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14683 # Check to make sure the static flag actually works.
14685 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14686 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14687 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14688 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14689 $as_echo_n "(cached) " >&6
14691 lt_cv_prog_compiler_static_works_F77=no
14692 save_LDFLAGS="$LDFLAGS"
14693 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14694 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14695 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14696 # The linker can only warn and ignore the option if not recognized
14697 # So say no if there are warnings
14698 if test -s conftest.err; then
14699 # Append any errors to the config.log.
14700 cat conftest.err 1>&5
14701 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14702 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14703 if diff conftest.exp conftest.er2 >/dev/null; then
14704 lt_cv_prog_compiler_static_works_F77=yes
14707 lt_cv_prog_compiler_static_works_F77=yes
14711 LDFLAGS="$save_LDFLAGS"
14714 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14715 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14717 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14720 lt_prog_compiler_static_F77=
14724 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14725 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14726 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14727 $as_echo_n "(cached) " >&6
14729 lt_cv_prog_compiler_c_o_F77=no
14730 $rm -r conftest 2>/dev/null
14734 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14736 lt_compiler_flag="-o out/conftest2.$ac_objext"
14737 # Insert the option either (1) after the last *FLAGS variable, or
14738 # (2) before a word containing "conftest.", or (3) at the end.
14739 # Note that $ac_compile itself does not contain backslashes and begins
14740 # with a dollar sign (not a hyphen), so the echo should work correctly.
14741 lt_compile=`echo "$ac_compile" | $SED \
14742 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14743 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14744 -e 's:$: $lt_compiler_flag:'`
14745 (eval echo "\"\$as_me:14745: $lt_compile\"" >&5)
14746 (eval "$lt_compile" 2>out/conftest.err)
14748 cat out/conftest.err >&5
14749 echo "$as_me:14749: \$? = $ac_status" >&5
14750 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14752 # The compiler can only warn and ignore the option if not recognized
14753 # So say no if there are warnings
14754 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14755 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14756 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14757 lt_cv_prog_compiler_c_o_F77=yes
14762 # SGI C++ compiler will create directory out/ii_files/ for
14763 # template instantiation
14764 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14765 $rm out/* && rmdir out
14771 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14772 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14775 hard_links="nottested"
14776 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14777 # do not overwrite the value of need_locks provided by the user
14778 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14779 $as_echo_n "checking if we can lock with hard links... " >&6; }
14782 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14784 ln conftest.a conftest.b 2>&5 || hard_links=no
14785 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14786 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14787 $as_echo "$hard_links" >&6; }
14788 if test "$hard_links" = no; then
14789 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14790 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14797 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14798 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14801 allow_undefined_flag_F77=
14802 enable_shared_with_static_runtimes_F77=no
14804 archive_expsym_cmds_F77=
14805 old_archive_From_new_cmds_F77=
14806 old_archive_from_expsyms_cmds_F77=
14807 export_dynamic_flag_spec_F77=
14808 whole_archive_flag_spec_F77=
14809 thread_safe_flag_spec_F77=
14810 hardcode_libdir_flag_spec_F77=
14811 hardcode_libdir_flag_spec_ld_F77=
14812 hardcode_libdir_separator_F77=
14813 hardcode_direct_F77=no
14814 hardcode_minus_L_F77=no
14815 hardcode_shlibpath_var_F77=unsupported
14816 link_all_deplibs_F77=unknown
14817 hardcode_automatic_F77=no
14819 module_expsym_cmds_F77=
14820 always_export_symbols_F77=no
14821 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14822 # include_expsyms should be a list of space-separated symbols to be *always*
14823 # included in the symbol list
14824 include_expsyms_F77=
14825 # exclude_expsyms can be an extended regexp of symbols to exclude
14826 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14827 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14828 # as well as any symbol that contains `d'.
14829 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14830 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14831 # platforms (ab)use it in PIC code, but their linkers get confused if
14832 # the symbol is explicitly referenced. Since portable code cannot
14833 # rely on this symbol name, it's probably fine to never include it in
14834 # preloaded symbol tables.
14835 # Exclude shared library initialization/finalization symbols.
14836 extract_expsyms_cmds=
14837 # Just being paranoid about ensuring that cc_basename is set.
14838 for cc_temp in $compiler""; do
14840 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14841 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14846 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14849 cygwin* | mingw* | pw32*)
14850 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14851 # When not using gcc, we currently assume that we are using
14852 # Microsoft Visual C++.
14853 if test "$GCC" != yes; then
14858 # we just hope/assume this is gcc and not c89 (= MSVC++)
14867 if test "$with_gnu_ld" = yes; then
14868 # If archive_cmds runs LD, not CC, wlarc should be empty
14871 # Set some defaults for GNU ld with shared library support. These
14872 # are reset later if shared libraries are not supported. Putting them
14873 # here allows them to be overridden if necessary.
14874 runpath_var=LD_RUN_PATH
14875 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14876 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14877 # ancient GNU ld didn't support --whole-archive et. al.
14878 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14879 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14881 whole_archive_flag_spec_F77=
14883 supports_anon_versioning=no
14884 case `$LD -v 2>/dev/null` in
14885 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14886 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14887 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14888 *\ 2.11.*) ;; # other 2.11 versions
14889 *) supports_anon_versioning=yes ;;
14892 # See if GNU ld supports shared libraries.
14895 # On AIX/PPC, the GNU linker is very broken
14896 if test "$host_cpu" != ia64; then
14900 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14901 *** to be unable to reliably create shared libraries on AIX.
14902 *** Therefore, libtool is disabling shared libraries support. If you
14903 *** really care for shared libraries, you may want to modify your PATH
14904 *** so that a non-GNU linker is found, and then restart.
14911 archive_cmds_F77='$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)'
14912 hardcode_libdir_flag_spec_F77='-L$libdir'
14913 hardcode_minus_L_F77=yes
14915 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14916 # that the semantics of dynamic libraries on AmigaOS, at least up
14917 # to version 4, is to share data among multiple programs linked
14918 # with the same dynamic library. Since this doesn't match the
14919 # behavior of shared libraries on other platforms, we can't use
14925 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14926 allow_undefined_flag_F77=unsupported
14927 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14928 # support --undefined. This deserves some investigation. FIXME
14929 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14935 cygwin* | mingw* | pw32*)
14936 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14937 # as there is no search path for DLLs.
14938 hardcode_libdir_flag_spec_F77='-L$libdir'
14939 allow_undefined_flag_F77=unsupported
14940 always_export_symbols_F77=no
14941 enable_shared_with_static_runtimes_F77=yes
14942 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14944 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14945 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14946 # If the export-symbols file already is a .def file (1st line
14947 # is EXPORTS), use it as is; otherwise, prepend...
14948 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14949 cp $export_symbols $output_objdir/$soname.def;
14951 echo EXPORTS > $output_objdir/$soname.def;
14952 cat $export_symbols >> $output_objdir/$soname.def;
14954 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14961 hardcode_direct_F77=no
14962 hardcode_shlibpath_var_F77=no
14963 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14964 export_dynamic_flag_spec_F77='${wl}-E'
14965 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14966 # Instead, shared libraries are loaded at an image base (0x10000000 by
14967 # default) and relocated if they conflict, which is a slow very memory
14968 # consuming and fragmenting process. To avoid this, we pick a random,
14969 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14970 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14971 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14972 archive_expsym_cmds_F77='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'
14975 gnu* | linux* | k*bsd*-gnu)
14976 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14978 case $cc_basename,$host_cpu in
14979 pgcc*) # Portland Group C compiler
14980 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14981 tmp_addflag=' $pic_flag'
14983 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14984 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14985 tmp_addflag=' $pic_flag -Mnomain' ;;
14986 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14987 tmp_addflag=' -i_dynamic' ;;
14988 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14989 tmp_addflag=' -i_dynamic -nofor_main' ;;
14990 ifc* | ifort*) # Intel Fortran compiler
14991 tmp_addflag=' -nofor_main' ;;
14993 case `$CC -V 2>&1 | sed 5q` in
14994 *Sun\ C*) # Sun C 5.9
14995 whole_archive_flag_spec_F77='${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'
14996 tmp_sharedflag='-G' ;;
14997 *Sun\ F*) # Sun Fortran 8.3
14998 tmp_sharedflag='-G' ;;
15000 tmp_sharedflag='-shared' ;;
15002 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15004 if test $supports_anon_versioning = yes; then
15005 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15006 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15007 $echo "local: *; };" >> $output_objdir/$libname.ver~
15008 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15010 link_all_deplibs_F77=no
15016 netbsd* | netbsdelf*-gnu)
15017 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15018 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15021 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15022 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15027 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15031 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15032 *** create shared libraries on Solaris systems. Therefore, libtool
15033 *** is disabling shared libraries support. We urge you to upgrade GNU
15034 *** binutils to release 2.9.1 or newer. Another option is to modify
15035 *** your PATH or compiler configuration so that the native linker is
15036 *** used, and then restart.
15039 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15040 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15041 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15047 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15048 case `$LD -v 2>&1` in
15049 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15053 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15054 *** reliably create shared libraries on SCO systems. Therefore, libtool
15055 *** is disabling shared libraries support. We urge you to upgrade GNU
15056 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15057 *** your PATH or compiler configuration so that the native linker is
15058 *** used, and then restart.
15063 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15064 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15065 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15066 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15075 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15077 hardcode_direct_F77=yes
15078 hardcode_shlibpath_var_F77=no
15082 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15083 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15084 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15091 if test "$ld_shlibs_F77" = no; then
15093 hardcode_libdir_flag_spec_F77=
15094 export_dynamic_flag_spec_F77=
15095 whole_archive_flag_spec_F77=
15098 # PORTME fill in a description of your system's linker (not GNU ld)
15101 allow_undefined_flag_F77=unsupported
15102 always_export_symbols_F77=yes
15103 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15104 # Note: this linker hardcodes the directories in LIBPATH if there
15105 # are no directories specified by -L.
15106 hardcode_minus_L_F77=yes
15107 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15108 # Neither direct hardcoding nor static linking is supported with a
15110 hardcode_direct_F77=unsupported
15115 if test "$host_cpu" = ia64; then
15116 # On IA64, the linker does run time linking by default, so we don't
15117 # have to do anything special.
15118 aix_use_runtimelinking=no
15119 exp_sym_flag='-Bexport'
15122 # If we're using GNU nm, then we don't want the "-C" option.
15123 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15124 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15125 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15127 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15129 aix_use_runtimelinking=no
15131 # Test if we are trying to use run time linking or normal
15132 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15133 # need to do runtime linking.
15134 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15135 for ld_flag in $LDFLAGS; do
15136 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15137 aix_use_runtimelinking=yes
15144 exp_sym_flag='-bexport'
15145 no_entry_flag='-bnoentry'
15148 # When large executables or shared objects are built, AIX ld can
15149 # have problems creating the table of contents. If linking a library
15150 # or program results in "error TOC overflow" add -mminimal-toc to
15151 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15152 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15154 archive_cmds_F77=''
15155 hardcode_direct_F77=yes
15156 hardcode_libdir_separator_F77=':'
15157 link_all_deplibs_F77=yes
15159 if test "$GCC" = yes; then
15160 case $host_os in aix4.[012]|aix4.[012].*)
15161 # We only want to do this on AIX 4.2 and lower, the check
15162 # below for broken collect2 doesn't work under 4.3+
15163 collect2name=`${CC} -print-prog-name=collect2`
15164 if test -f "$collect2name" && \
15165 strings "$collect2name" | grep resolve_lib_name >/dev/null
15167 # We have reworked collect2
15170 # We have old collect2
15171 hardcode_direct_F77=unsupported
15172 # It fails to find uninstalled libraries when the uninstalled
15173 # path is not listed in the libpath. Setting hardcode_minus_L
15174 # to unsupported forces relinking
15175 hardcode_minus_L_F77=yes
15176 hardcode_libdir_flag_spec_F77='-L$libdir'
15177 hardcode_libdir_separator_F77=
15181 shared_flag='-shared'
15182 if test "$aix_use_runtimelinking" = yes; then
15183 shared_flag="$shared_flag "'${wl}-G'
15187 if test "$host_cpu" = ia64; then
15188 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15189 # chokes on -Wl,-G. The following line is correct:
15192 if test "$aix_use_runtimelinking" = yes; then
15193 shared_flag='${wl}-G'
15195 shared_flag='${wl}-bM:SRE'
15200 # It seems that -bexpall does not export symbols beginning with
15201 # underscore (_), so it is better to generate a list of symbols to export.
15202 always_export_symbols_F77=yes
15203 if test "$aix_use_runtimelinking" = yes; then
15204 # Warning - without using the other runtime loading flags (-brtl),
15205 # -berok will link without error, but may produce a broken library.
15206 allow_undefined_flag_F77='-berok'
15207 # Determine the default libpath from the value encoded in an empty executable.
15208 cat >conftest.$ac_ext <<_ACEOF
15213 rm -f conftest.$ac_objext conftest$ac_exeext
15214 if { (ac_try="$ac_link"
15215 case "(($ac_try" in
15216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15217 *) ac_try_echo=$ac_try;;
15219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15220 $as_echo "$ac_try_echo") >&5
15221 (eval "$ac_link") 2>conftest.er1
15223 grep -v '^ *+' conftest.er1 >conftest.err
15225 cat conftest.err >&5
15226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227 (exit $ac_status); } && {
15228 test -z "$ac_f77_werror_flag" ||
15229 test ! -s conftest.err
15230 } && test -s conftest$ac_exeext && {
15231 test "$cross_compiling" = yes ||
15232 $as_test_x conftest$ac_exeext
15235 lt_aix_libpath_sed='
15236 /Import File Strings/,/^$/ {
15242 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15243 # Check for a 64-bit object if we didn't find anything.
15244 if test -z "$aix_libpath"; then
15245 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15248 $as_echo "$as_me: failed program was:" >&5
15249 sed 's/^/| /' conftest.$ac_ext >&5
15254 rm -rf conftest.dSYM
15255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15256 conftest$ac_exeext conftest.$ac_ext
15257 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15259 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15260 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15262 if test "$host_cpu" = ia64; then
15263 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15264 allow_undefined_flag_F77="-z nodefs"
15265 archive_expsym_cmds_F77="\$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"
15267 # Determine the default libpath from the value encoded in an empty executable.
15268 cat >conftest.$ac_ext <<_ACEOF
15273 rm -f conftest.$ac_objext conftest$ac_exeext
15274 if { (ac_try="$ac_link"
15275 case "(($ac_try" in
15276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15277 *) ac_try_echo=$ac_try;;
15279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15280 $as_echo "$ac_try_echo") >&5
15281 (eval "$ac_link") 2>conftest.er1
15283 grep -v '^ *+' conftest.er1 >conftest.err
15285 cat conftest.err >&5
15286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 (exit $ac_status); } && {
15288 test -z "$ac_f77_werror_flag" ||
15289 test ! -s conftest.err
15290 } && test -s conftest$ac_exeext && {
15291 test "$cross_compiling" = yes ||
15292 $as_test_x conftest$ac_exeext
15295 lt_aix_libpath_sed='
15296 /Import File Strings/,/^$/ {
15302 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15303 # Check for a 64-bit object if we didn't find anything.
15304 if test -z "$aix_libpath"; then
15305 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15308 $as_echo "$as_me: failed program was:" >&5
15309 sed 's/^/| /' conftest.$ac_ext >&5
15314 rm -rf conftest.dSYM
15315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15316 conftest$ac_exeext conftest.$ac_ext
15317 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15319 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15320 # Warning - without using the other run time loading flags,
15321 # -berok will link without error, but may produce a broken library.
15322 no_undefined_flag_F77=' ${wl}-bernotok'
15323 allow_undefined_flag_F77=' ${wl}-berok'
15324 # Exported symbols can be pulled into shared objects from archives
15325 whole_archive_flag_spec_F77='$convenience'
15326 archive_cmds_need_lc_F77=yes
15327 # This is similar to how AIX traditionally builds its shared libraries.
15328 archive_expsym_cmds_F77="\$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'
15334 archive_cmds_F77='$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)'
15335 hardcode_libdir_flag_spec_F77='-L$libdir'
15336 hardcode_minus_L_F77=yes
15337 # see comment about different semantics on the GNU ld section
15342 export_dynamic_flag_spec_F77=-rdynamic
15345 cygwin* | mingw* | pw32*)
15346 # When not using gcc, we currently assume that we are using
15347 # Microsoft Visual C++.
15348 # hardcode_libdir_flag_spec is actually meaningless, as there is
15349 # no search path for DLLs.
15350 hardcode_libdir_flag_spec_F77=' '
15351 allow_undefined_flag_F77=unsupported
15352 # Tell ltmain to make .lib files, not .a files.
15354 # Tell ltmain to make .dll files, not .so files.
15356 # FIXME: Setting linknames here is a bad hack.
15357 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15358 # The linker will automatically build a .lib file if we build a DLL.
15359 old_archive_From_new_cmds_F77='true'
15360 # FIXME: Should let the user specify the lib program.
15361 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15362 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15363 enable_shared_with_static_runtimes_F77=yes
15366 darwin* | rhapsody*)
15368 rhapsody* | darwin1.[012])
15369 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15372 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15373 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15375 case ${MACOSX_DEPLOYMENT_TARGET} in
15377 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15380 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15386 archive_cmds_need_lc_F77=no
15387 hardcode_direct_F77=no
15388 hardcode_automatic_F77=yes
15389 hardcode_shlibpath_var_F77=unsupported
15390 whole_archive_flag_spec_F77=''
15391 link_all_deplibs_F77=yes
15392 if test "$GCC" = yes ; then
15393 output_verbose_link_cmd='echo'
15394 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15395 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15396 archive_expsym_cmds_F77="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}"
15397 module_expsym_cmds_F77="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}"
15399 case $cc_basename in
15401 output_verbose_link_cmd='echo'
15402 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15403 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15404 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15405 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15406 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15416 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15417 hardcode_libdir_flag_spec_F77='-L$libdir'
15418 hardcode_shlibpath_var_F77=no
15425 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15426 # support. Future versions do this automatically, but an explicit c++rt0.o
15427 # does not break anything, and helps significantly (at the cost of a little
15430 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15431 hardcode_libdir_flag_spec_F77='-R$libdir'
15432 hardcode_direct_F77=yes
15433 hardcode_shlibpath_var_F77=no
15436 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15438 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15439 hardcode_direct_F77=yes
15440 hardcode_minus_L_F77=yes
15441 hardcode_shlibpath_var_F77=no
15444 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15445 freebsd* | dragonfly*)
15446 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15447 hardcode_libdir_flag_spec_F77='-R$libdir'
15448 hardcode_direct_F77=yes
15449 hardcode_shlibpath_var_F77=no
15453 if test "$GCC" = yes; then
15454 archive_cmds_F77='$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'
15456 archive_cmds_F77='$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'
15458 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15459 hardcode_libdir_separator_F77=:
15460 hardcode_direct_F77=yes
15462 # hardcode_minus_L: Not really in the search PATH,
15463 # but as the default location of the library.
15464 hardcode_minus_L_F77=yes
15465 export_dynamic_flag_spec_F77='${wl}-E'
15469 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15470 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15472 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15474 if test "$with_gnu_ld" = no; then
15475 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15476 hardcode_libdir_separator_F77=:
15478 hardcode_direct_F77=yes
15479 export_dynamic_flag_spec_F77='${wl}-E'
15481 # hardcode_minus_L: Not really in the search PATH,
15482 # but as the default location of the library.
15483 hardcode_minus_L_F77=yes
15488 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15491 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15494 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15497 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15503 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15506 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15509 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15513 if test "$with_gnu_ld" = no; then
15514 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15515 hardcode_libdir_separator_F77=:
15519 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15520 hardcode_direct_F77=no
15521 hardcode_shlibpath_var_F77=no
15524 hardcode_direct_F77=yes
15525 export_dynamic_flag_spec_F77='${wl}-E'
15527 # hardcode_minus_L: Not really in the search PATH,
15528 # but as the default location of the library.
15529 hardcode_minus_L_F77=yes
15535 irix5* | irix6* | nonstopux*)
15536 if test "$GCC" = yes; then
15537 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15539 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15540 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15542 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15543 hardcode_libdir_separator_F77=:
15544 link_all_deplibs_F77=yes
15547 netbsd* | netbsdelf*-gnu)
15548 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15549 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15551 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15553 hardcode_libdir_flag_spec_F77='-R$libdir'
15554 hardcode_direct_F77=yes
15555 hardcode_shlibpath_var_F77=no
15559 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15560 hardcode_direct_F77=yes
15561 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15562 hardcode_libdir_separator_F77=:
15563 hardcode_shlibpath_var_F77=no
15567 if test -f /usr/libexec/ld.so; then
15568 hardcode_direct_F77=yes
15569 hardcode_shlibpath_var_F77=no
15570 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15571 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15572 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15573 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15574 export_dynamic_flag_spec_F77='${wl}-E'
15577 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15578 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15579 hardcode_libdir_flag_spec_F77='-R$libdir'
15582 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15583 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15593 hardcode_libdir_flag_spec_F77='-L$libdir'
15594 hardcode_minus_L_F77=yes
15595 allow_undefined_flag_F77=unsupported
15596 archive_cmds_F77='$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'
15597 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15601 if test "$GCC" = yes; then
15602 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15603 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15605 allow_undefined_flag_F77=' -expect_unresolved \*'
15606 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15608 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15609 hardcode_libdir_separator_F77=:
15612 osf4* | osf5*) # as osf3* with the addition of -msym flag
15613 if test "$GCC" = yes; then
15614 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15615 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15616 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15618 allow_undefined_flag_F77=' -expect_unresolved \*'
15619 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15620 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15621 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15623 # Both c and cxx compiler support -rpath directly
15624 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15626 hardcode_libdir_separator_F77=:
15630 no_undefined_flag_F77=' -z text'
15631 if test "$GCC" = yes; then
15633 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15634 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15635 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15638 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15639 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15640 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15642 hardcode_libdir_flag_spec_F77='-R$libdir'
15643 hardcode_shlibpath_var_F77=no
15645 solaris2.[0-5] | solaris2.[0-5].*) ;;
15647 # The compiler driver will combine and reorder linker options,
15648 # but understands `-z linker_flag'. GCC discards it without `$wl',
15649 # but is careful enough not to reorder.
15650 # Supported since Solaris 2.6 (maybe 2.5.1?)
15651 if test "$GCC" = yes; then
15652 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15654 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15658 link_all_deplibs_F77=yes
15662 if test "x$host_vendor" = xsequent; then
15663 # Use $CC to link under sequent, because it throws in some extra .o
15664 # files that make .init and .fini sections work.
15665 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15667 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15669 hardcode_libdir_flag_spec_F77='-L$libdir'
15670 hardcode_direct_F77=yes
15671 hardcode_minus_L_F77=yes
15672 hardcode_shlibpath_var_F77=no
15676 case $host_vendor in
15678 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15679 hardcode_direct_F77=yes # is this really true???
15682 ## LD is ld it makes a PLAMLIB
15683 ## CC just makes a GrossModule.
15684 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15685 reload_cmds_F77='$CC -r -o $output$reload_objs'
15686 hardcode_direct_F77=no
15689 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15690 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15693 runpath_var='LD_RUN_PATH'
15694 hardcode_shlibpath_var_F77=no
15698 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15699 hardcode_shlibpath_var_F77=no
15700 export_dynamic_flag_spec_F77='-Bexport'
15704 if test -d /usr/nec; then
15705 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15706 hardcode_shlibpath_var_F77=no
15707 runpath_var=LD_RUN_PATH
15708 hardcode_runpath_var=yes
15713 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15714 no_undefined_flag_F77='${wl}-z,text'
15715 archive_cmds_need_lc_F77=no
15716 hardcode_shlibpath_var_F77=no
15717 runpath_var='LD_RUN_PATH'
15719 if test "$GCC" = yes; then
15720 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15721 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15723 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15724 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15728 sysv5* | sco3.2v5* | sco5v6*)
15729 # Note: We can NOT use -z defs as we might desire, because we do not
15730 # link with -lc, and that would cause any symbols used from libc to
15731 # always be unresolved, which means just about no library would
15732 # ever link correctly. If we're not using GNU ld we use -z text
15733 # though, which does catch some bad symbols but isn't as heavy-handed
15735 no_undefined_flag_F77='${wl}-z,text'
15736 allow_undefined_flag_F77='${wl}-z,nodefs'
15737 archive_cmds_need_lc_F77=no
15738 hardcode_shlibpath_var_F77=no
15739 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15740 hardcode_libdir_separator_F77=':'
15741 link_all_deplibs_F77=yes
15742 export_dynamic_flag_spec_F77='${wl}-Bexport'
15743 runpath_var='LD_RUN_PATH'
15745 if test "$GCC" = yes; then
15746 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15747 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15749 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15750 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15755 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15756 hardcode_libdir_flag_spec_F77='-L$libdir'
15757 hardcode_shlibpath_var_F77=no
15766 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15767 $as_echo "$ld_shlibs_F77" >&6; }
15768 test "$ld_shlibs_F77" = no && can_build_shared=no
15771 # Do we need to explicitly link libc?
15773 case "x$archive_cmds_need_lc_F77" in
15775 # Assume -lc should be added
15776 archive_cmds_need_lc_F77=yes
15778 if test "$enable_shared" = yes && test "$GCC" = yes; then
15779 case $archive_cmds_F77 in
15781 # FIXME: we may have to deal with multi-command sequences.
15784 # Test whether the compiler implicitly links with -lc since on some
15785 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15786 # to ld, don't add -lc before -lgcc.
15787 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15788 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15790 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15793 (eval $ac_compile) 2>&5
15795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796 (exit $ac_status); } 2>conftest.err; then
15799 libobjs=conftest.$ac_objext
15801 wl=$lt_prog_compiler_wl_F77
15802 pic_flag=$lt_prog_compiler_pic_F77
15808 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15809 allow_undefined_flag_F77=
15810 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15811 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814 (exit $ac_status); }
15816 archive_cmds_need_lc_F77=no
15818 archive_cmds_need_lc_F77=yes
15820 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15822 cat conftest.err 1>&5
15825 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15826 $as_echo "$archive_cmds_need_lc_F77" >&6; }
15833 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15834 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15835 library_names_spec=
15836 libname_spec='lib$name'
15840 postuninstall_cmds=
15844 shlibpath_overrides_runpath=unknown
15846 dynamic_linker="$host_os ld.so"
15847 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15849 need_lib_prefix=unknown
15850 hardcode_into_libs=no
15852 # when you set need_version to no, make sure it does not cause -set_version
15853 # flags to be left without arguments
15854 need_version=unknown
15859 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15860 shlibpath_var=LIBPATH
15862 # AIX 3 has no versioning support, so we append a major version to the name.
15863 soname_spec='${libname}${release}${shared_ext}$major'
15870 hardcode_into_libs=yes
15871 if test "$host_cpu" = ia64; then
15872 # AIX 5 supports IA64
15873 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15874 shlibpath_var=LD_LIBRARY_PATH
15876 # With GCC up to 2.95.x, collect2 would create an import file
15877 # for dependence libraries. The import file would start with
15878 # the line `#! .'. This would cause the generated library to
15879 # depend on `.', always an invalid library. This was fixed in
15880 # development snapshots of GCC prior to 3.0.
15882 aix4 | aix4.[01] | aix4.[01].*)
15883 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15885 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15888 can_build_shared=no
15892 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15893 # soname into executable. Probably we can add versioning support to
15894 # collect2, so additional links can be useful in future.
15895 if test "$aix_use_runtimelinking" = yes; then
15896 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15897 # instead of lib<name>.a to let people know that these are not
15898 # typical AIX shared libraries.
15899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15901 # We preserve .a as extension for shared libraries through AIX4.2
15902 # and later when we are not doing run time linking.
15903 library_names_spec='${libname}${release}.a $libname.a'
15904 soname_spec='${libname}${release}${shared_ext}$major'
15906 shlibpath_var=LIBPATH
15911 library_names_spec='$libname.ixlibrary $libname.a'
15912 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15913 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'
15917 library_names_spec='${libname}${shared_ext}'
15918 dynamic_linker="$host_os ld.so"
15919 shlibpath_var=LIBRARY_PATH
15925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15926 soname_spec='${libname}${release}${shared_ext}$major'
15927 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15928 shlibpath_var=LD_LIBRARY_PATH
15929 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15930 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15931 # the default ld.so.conf also contains /usr/contrib/lib and
15932 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15933 # libtool to hard-code these into programs
15936 cygwin* | mingw* | pw32*)
15937 version_type=windows
15942 case $GCC,$host_os in
15943 yes,cygwin* | yes,mingw* | yes,pw32*)
15944 library_names_spec='$libname.dll.a'
15945 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15946 postinstall_cmds='base_file=`basename \${file}`~
15947 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15948 dldir=$destdir/`dirname \$dlpath`~
15949 test -d \$dldir || mkdir -p \$dldir~
15950 $install_prog $dir/$dlname \$dldir/$dlname~
15951 chmod a+x \$dldir/$dlname'
15952 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15953 dlpath=$dir/\$dldll~
15955 shlibpath_overrides_runpath=yes
15959 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15960 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15961 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15964 # MinGW DLLs use traditional 'lib' prefix
15965 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15966 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15967 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15968 # It is most probably a Windows format PATH printed by
15969 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15970 # path with ; separators, and with drive letters. We can handle the
15971 # drive letters (cygwin fileutils understands them), so leave them,
15972 # especially as we might pass files found there to a mingw objdump,
15973 # which wouldn't understand a cygwinified path. Ahh.
15974 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15976 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15980 # pw32 DLLs use 'pw' prefix rather than 'lib'
15981 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15987 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15990 dynamic_linker='Win32 ld.exe'
15991 # FIXME: first we should search . and the directory the executable is in
15995 darwin* | rhapsody*)
15996 dynamic_linker="$host_os dyld"
15997 version_type=darwin
16000 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16001 soname_spec='${libname}${release}${major}$shared_ext'
16002 shlibpath_overrides_runpath=yes
16003 shlibpath_var=DYLD_LIBRARY_PATH
16004 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16006 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16014 soname_spec='${libname}${release}${shared_ext}$major'
16015 shlibpath_var=LD_LIBRARY_PATH
16022 freebsd* | dragonfly*)
16023 # DragonFly does not have aout. When/if they implement a new
16024 # versioning mechanism, adjust this.
16025 if test -x /usr/bin/objformat; then
16026 objformat=`/usr/bin/objformat`
16029 freebsd[123]*) objformat=aout ;;
16030 *) objformat=elf ;;
16033 version_type=freebsd-$objformat
16034 case $version_type in
16036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16041 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16045 shlibpath_var=LD_LIBRARY_PATH
16048 shlibpath_overrides_runpath=yes
16050 freebsd3.[01]* | freebsdelf3.[01]*)
16051 shlibpath_overrides_runpath=yes
16052 hardcode_into_libs=yes
16054 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16055 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16056 shlibpath_overrides_runpath=no
16057 hardcode_into_libs=yes
16059 *) # from 4.6 on, and DragonFly
16060 shlibpath_overrides_runpath=yes
16061 hardcode_into_libs=yes
16070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16071 soname_spec='${libname}${release}${shared_ext}$major'
16072 shlibpath_var=LD_LIBRARY_PATH
16073 hardcode_into_libs=yes
16076 hpux9* | hpux10* | hpux11*)
16077 # Give a soname corresponding to the major version so that dld.sl refuses to
16078 # link against other versions.
16085 hardcode_into_libs=yes
16086 dynamic_linker="$host_os dld.so"
16087 shlibpath_var=LD_LIBRARY_PATH
16088 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16090 soname_spec='${libname}${release}${shared_ext}$major'
16091 if test "X$HPUX_IA64_MODE" = X32; then
16092 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16094 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16096 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16100 hardcode_into_libs=yes
16101 dynamic_linker="$host_os dld.sl"
16102 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16103 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16105 soname_spec='${libname}${release}${shared_ext}$major'
16106 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16107 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16111 dynamic_linker="$host_os dld.sl"
16112 shlibpath_var=SHLIB_PATH
16113 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16115 soname_spec='${libname}${release}${shared_ext}$major'
16118 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16119 postinstall_cmds='chmod 555 $lib'
16126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16127 soname_spec='${libname}${release}${shared_ext}$major'
16128 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16129 shlibpath_var=LD_LIBRARY_PATH
16130 shlibpath_overrides_runpath=no
16131 hardcode_into_libs=yes
16134 irix5* | irix6* | nonstopux*)
16136 nonstopux*) version_type=nonstopux ;;
16138 if test "$lt_cv_prog_gnu_ld" = yes; then
16146 soname_spec='${libname}${release}${shared_ext}$major'
16147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16149 irix5* | nonstopux*)
16150 libsuff= shlibsuff=
16153 case $LD in # libtool.m4 will add one of these switches to LD
16154 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16155 libsuff= shlibsuff= libmagic=32-bit;;
16156 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16157 libsuff=32 shlibsuff=N32 libmagic=N32;;
16158 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16159 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16160 *) libsuff= shlibsuff= libmagic=never-match;;
16164 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16165 shlibpath_overrides_runpath=no
16166 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16167 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16168 hardcode_into_libs=yes
16171 # No shared lib support for Linux oldld, aout, or coff.
16172 linux*oldld* | linux*aout* | linux*coff*)
16176 # This must be Linux ELF.
16177 linux* | k*bsd*-gnu)
16181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16182 soname_spec='${libname}${release}${shared_ext}$major'
16183 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16184 shlibpath_var=LD_LIBRARY_PATH
16185 shlibpath_overrides_runpath=no
16186 # This implies no fast_install, which is unacceptable.
16187 # Some rework will be needed to allow for fast_install
16188 # before this can be enabled.
16189 hardcode_into_libs=yes
16191 # Append ld.so.conf contents to the search path
16192 if test -f /etc/ld.so.conf; then
16193 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' ' '`
16194 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16197 # We used to test for /lib/ld.so.1 and disable shared libraries on
16198 # powerpc, because MkLinux only supported shared libraries with the
16199 # GNU dynamic linker. Since this was broken with cross compilers,
16200 # most powerpc-linux boxes support dynamic linking these days and
16201 # people can always --disable-shared, the test was removed, and we
16202 # assume the GNU/Linux dynamic linker is in use.
16203 dynamic_linker='GNU/Linux ld.so'
16210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16211 soname_spec='${libname}${release}${shared_ext}$major'
16212 shlibpath_var=LD_LIBRARY_PATH
16213 shlibpath_overrides_runpath=no
16214 hardcode_into_libs=yes
16215 dynamic_linker='NetBSD ld.elf_so'
16222 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16224 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16225 dynamic_linker='NetBSD (a.out) ld.so'
16227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16228 soname_spec='${libname}${release}${shared_ext}$major'
16229 dynamic_linker='NetBSD ld.elf_so'
16231 shlibpath_var=LD_LIBRARY_PATH
16232 shlibpath_overrides_runpath=yes
16233 hardcode_into_libs=yes
16238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16239 shlibpath_var=LD_LIBRARY_PATH
16240 shlibpath_overrides_runpath=yes
16247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16248 soname_spec='${libname}${release}${shared_ext}$major'
16249 shlibpath_var=LD_LIBRARY_PATH
16250 shlibpath_overrides_runpath=yes
16255 sys_lib_dlsearch_path_spec="/usr/lib"
16257 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16259 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16260 *) need_version=no ;;
16262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16263 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16264 shlibpath_var=LD_LIBRARY_PATH
16265 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16267 openbsd2.[89] | openbsd2.[89].*)
16268 shlibpath_overrides_runpath=no
16271 shlibpath_overrides_runpath=yes
16275 shlibpath_overrides_runpath=yes
16280 libname_spec='$name'
16283 library_names_spec='$libname${shared_ext} $libname.a'
16284 dynamic_linker='OS/2 ld.exe'
16285 shlibpath_var=LIBPATH
16288 osf3* | osf4* | osf5*)
16292 soname_spec='${libname}${release}${shared_ext}$major'
16293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16294 shlibpath_var=LD_LIBRARY_PATH
16295 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16296 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16308 soname_spec='${libname}${release}${shared_ext}$major'
16309 shlibpath_var=LD_LIBRARY_PATH
16310 shlibpath_overrides_runpath=yes
16311 hardcode_into_libs=yes
16312 # ldd complains unless libraries are executable
16313 postinstall_cmds='chmod +x $lib'
16318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16319 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16320 shlibpath_var=LD_LIBRARY_PATH
16321 shlibpath_overrides_runpath=yes
16322 if test "$with_gnu_ld" = yes; then
16330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16331 soname_spec='${libname}${release}${shared_ext}$major'
16332 shlibpath_var=LD_LIBRARY_PATH
16333 case $host_vendor in
16335 shlibpath_overrides_runpath=no
16337 export_dynamic_flag_spec='${wl}-Blargedynsym'
16338 runpath_var=LD_RUN_PATH
16346 shlibpath_overrides_runpath=no
16347 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16353 if test -d /usr/nec ;then
16355 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16356 soname_spec='$libname${shared_ext}.$major'
16357 shlibpath_var=LD_LIBRARY_PATH
16361 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16362 version_type=freebsd-elf
16365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16366 soname_spec='${libname}${release}${shared_ext}$major'
16367 shlibpath_var=LD_LIBRARY_PATH
16368 hardcode_into_libs=yes
16369 if test "$with_gnu_ld" = yes; then
16370 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16371 shlibpath_overrides_runpath=no
16373 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16374 shlibpath_overrides_runpath=yes
16377 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16381 sys_lib_dlsearch_path_spec='/usr/lib'
16386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16387 soname_spec='${libname}${release}${shared_ext}$major'
16388 shlibpath_var=LD_LIBRARY_PATH
16395 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16396 $as_echo "$dynamic_linker" >&6; }
16397 test "$dynamic_linker" = no && can_build_shared=no
16399 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16400 $as_echo_n "(cached) " >&6
16402 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16405 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16406 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16407 $as_echo_n "(cached) " >&6
16409 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16412 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16414 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16415 if test "$GCC" = yes; then
16416 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16419 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16420 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16421 hardcode_action_F77=
16422 if test -n "$hardcode_libdir_flag_spec_F77" || \
16423 test -n "$runpath_var_F77" || \
16424 test "X$hardcode_automatic_F77" = "Xyes" ; then
16426 # We can hardcode non-existant directories.
16427 if test "$hardcode_direct_F77" != no &&
16428 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16429 # have to relink, otherwise we might link with an installed library
16430 # when we should be linking with a yet-to-be-installed one
16431 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16432 test "$hardcode_minus_L_F77" != no; then
16433 # Linking always hardcodes the temporary library directory.
16434 hardcode_action_F77=relink
16436 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16437 hardcode_action_F77=immediate
16440 # We cannot hardcode anything, or else we can only hardcode existing
16442 hardcode_action_F77=unsupported
16444 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16445 $as_echo "$hardcode_action_F77" >&6; }
16447 if test "$hardcode_action_F77" = relink; then
16448 # Fast installation is not supported
16449 enable_fast_install=no
16450 elif test "$shlibpath_overrides_runpath" = yes ||
16451 test "$enable_shared" = no; then
16452 # Fast installation is not necessary
16453 enable_fast_install=needless
16457 # The else clause should only fire when bootstrapping the
16458 # libtool distribution, otherwise you forgot to ship ltmain.sh
16459 # with your package, and you will get complaints that there are
16460 # no rules to generate ltmain.sh.
16461 if test -f "$ltmain"; then
16462 # See if we are running on zsh, and set the options which allow our commands through
16463 # without removal of \ escapes.
16464 if test -n "${ZSH_VERSION+set}" ; then
16465 setopt NO_GLOB_SUBST
16467 # Now quote all the things that may contain metacharacters while being
16468 # careful not to overquote the AC_SUBSTed values. We take copies of the
16469 # variables and quote the copies for generation of the libtool script.
16470 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16472 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16473 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16474 deplibs_check_method reload_flag reload_cmds need_locks \
16475 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16476 lt_cv_sys_global_symbol_to_c_name_address \
16477 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16478 old_postinstall_cmds old_postuninstall_cmds \
16482 lt_prog_compiler_wl_F77 \
16483 lt_prog_compiler_pic_F77 \
16484 lt_prog_compiler_static_F77 \
16485 lt_prog_compiler_no_builtin_flag_F77 \
16486 export_dynamic_flag_spec_F77 \
16487 thread_safe_flag_spec_F77 \
16488 whole_archive_flag_spec_F77 \
16489 enable_shared_with_static_runtimes_F77 \
16490 old_archive_cmds_F77 \
16491 old_archive_from_new_cmds_F77 \
16492 predep_objects_F77 \
16493 postdep_objects_F77 \
16496 compiler_lib_search_path_F77 \
16497 compiler_lib_search_dirs_F77 \
16499 archive_expsym_cmds_F77 \
16500 postinstall_cmds_F77 \
16501 postuninstall_cmds_F77 \
16502 old_archive_from_expsyms_cmds_F77 \
16503 allow_undefined_flag_F77 \
16504 no_undefined_flag_F77 \
16505 export_symbols_cmds_F77 \
16506 hardcode_libdir_flag_spec_F77 \
16507 hardcode_libdir_flag_spec_ld_F77 \
16508 hardcode_libdir_separator_F77 \
16509 hardcode_automatic_F77 \
16511 module_expsym_cmds_F77 \
16512 lt_cv_prog_compiler_c_o_F77 \
16513 fix_srcfile_path_F77 \
16514 exclude_expsyms_F77 \
16515 include_expsyms_F77; do
16518 old_archive_cmds_F77 | \
16519 old_archive_from_new_cmds_F77 | \
16520 archive_cmds_F77 | \
16521 archive_expsym_cmds_F77 | \
16522 module_cmds_F77 | \
16523 module_expsym_cmds_F77 | \
16524 old_archive_from_expsyms_cmds_F77 | \
16525 export_symbols_cmds_F77 | \
16526 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16527 postinstall_cmds | postuninstall_cmds | \
16528 old_postinstall_cmds | old_postuninstall_cmds | \
16529 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16530 # Double-quote double-evaled strings.
16531 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16534 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16540 *'\$0 --fallback-echo"')
16541 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16547 cat <<__EOF__ >> "$cfgfile"
16548 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16550 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16552 # Shell to use when invoking shell scripts.
16555 # Whether or not to build shared libraries.
16556 build_libtool_libs=$enable_shared
16558 # Whether or not to build static libraries.
16559 build_old_libs=$enable_static
16561 # Whether or not to add -lc for building shared libraries.
16562 build_libtool_need_lc=$archive_cmds_need_lc_F77
16564 # Whether or not to disallow shared libs when runtime libs are static
16565 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16567 # Whether or not to optimize for fast installation.
16568 fast_install=$enable_fast_install
16571 host_alias=$host_alias
16575 # The build system.
16576 build_alias=$build_alias
16580 # An echo program that does not interpret backslashes.
16585 AR_FLAGS=$lt_AR_FLAGS
16590 # LTCC compiler flags.
16591 LTCFLAGS=$lt_LTCFLAGS
16593 # A language-specific compiler.
16594 CC=$lt_compiler_F77
16596 # Is the compiler the GNU C compiler?
16602 # The linker used to build libraries.
16605 # Whether we need hard or soft links.
16608 # A BSD-compatible nm program.
16611 # A symbol stripping program
16614 # Used to examine libraries when file_magic_cmd begins "file"
16615 MAGIC_CMD=$MAGIC_CMD
16617 # Used on cygwin: DLL creation program.
16620 # Used on cygwin: object dumper.
16623 # Used on cygwin: assembler.
16626 # The name of the directory that contains temporary libtool files.
16629 # How to create reloadable object files.
16630 reload_flag=$lt_reload_flag
16631 reload_cmds=$lt_reload_cmds
16633 # How to pass a linker flag through the compiler.
16634 wl=$lt_lt_prog_compiler_wl_F77
16636 # Object file suffix (normally "o").
16637 objext="$ac_objext"
16639 # Old archive suffix (normally "a").
16642 # Shared library suffix (normally ".so").
16643 shrext_cmds='$shrext_cmds'
16645 # Executable file suffix (normally "").
16648 # Additional compiler flags for building library objects.
16649 pic_flag=$lt_lt_prog_compiler_pic_F77
16652 # What is the maximum length of a command?
16653 max_cmd_len=$lt_cv_sys_max_cmd_len
16655 # Does compiler simultaneously support -c and -o options?
16656 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16658 # Must we lock files when doing compilation?
16659 need_locks=$lt_need_locks
16661 # Do we need the lib prefix for modules?
16662 need_lib_prefix=$need_lib_prefix
16664 # Do we need a version for libraries?
16665 need_version=$need_version
16667 # Whether dlopen is supported.
16668 dlopen_support=$enable_dlopen
16670 # Whether dlopen of programs is supported.
16671 dlopen_self=$enable_dlopen_self
16673 # Whether dlopen of statically linked programs is supported.
16674 dlopen_self_static=$enable_dlopen_self_static
16676 # Compiler flag to prevent dynamic linking.
16677 link_static_flag=$lt_lt_prog_compiler_static_F77
16679 # Compiler flag to turn off builtin functions.
16680 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16682 # Compiler flag to allow reflexive dlopens.
16683 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16685 # Compiler flag to generate shared objects directly from archives.
16686 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16688 # Compiler flag to generate thread-safe objects.
16689 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16691 # Library versioning type.
16692 version_type=$version_type
16694 # Format of library name prefix.
16695 libname_spec=$lt_libname_spec
16697 # List of archive names. First name is the real one, the rest are links.
16698 # The last name is the one that the linker finds with -lNAME.
16699 library_names_spec=$lt_library_names_spec
16701 # The coded name of the library, if different from the real name.
16702 soname_spec=$lt_soname_spec
16704 # Commands used to build and install an old-style archive.
16706 old_archive_cmds=$lt_old_archive_cmds_F77
16707 old_postinstall_cmds=$lt_old_postinstall_cmds
16708 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16710 # Create an old-style archive from a shared archive.
16711 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16713 # Create a temporary old-style archive to link instead of a shared archive.
16714 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16716 # Commands used to build and install a shared archive.
16717 archive_cmds=$lt_archive_cmds_F77
16718 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16719 postinstall_cmds=$lt_postinstall_cmds
16720 postuninstall_cmds=$lt_postuninstall_cmds
16722 # Commands used to build a loadable module (assumed same as above if empty)
16723 module_cmds=$lt_module_cmds_F77
16724 module_expsym_cmds=$lt_module_expsym_cmds_F77
16726 # Commands to strip libraries.
16727 old_striplib=$lt_old_striplib
16728 striplib=$lt_striplib
16730 # Dependencies to place before the objects being linked to create a
16732 predep_objects=$lt_predep_objects_F77
16734 # Dependencies to place after the objects being linked to create a
16736 postdep_objects=$lt_postdep_objects_F77
16738 # Dependencies to place before the objects being linked to create a
16740 predeps=$lt_predeps_F77
16742 # Dependencies to place after the objects being linked to create a
16744 postdeps=$lt_postdeps_F77
16746 # The directories searched by this compiler when creating a shared
16748 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16750 # The library search path used internally by the compiler when linking
16751 # a shared library.
16752 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16754 # Method to check whether dependent libraries are shared objects.
16755 deplibs_check_method=$lt_deplibs_check_method
16757 # Command to use when deplibs_check_method == file_magic.
16758 file_magic_cmd=$lt_file_magic_cmd
16760 # Flag that allows shared libraries with undefined symbols to be built.
16761 allow_undefined_flag=$lt_allow_undefined_flag_F77
16763 # Flag that forces no undefined symbols.
16764 no_undefined_flag=$lt_no_undefined_flag_F77
16766 # Commands used to finish a libtool library installation in a directory.
16767 finish_cmds=$lt_finish_cmds
16769 # Same as above, but a single script fragment to be evaled but not shown.
16770 finish_eval=$lt_finish_eval
16772 # Take the output of nm and produce a listing of raw symbols and C names.
16773 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16775 # Transform the output of nm in a proper C declaration
16776 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16778 # Transform the output of nm in a C name address pair
16779 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16781 # This is the shared library runtime path variable.
16782 runpath_var=$runpath_var
16784 # This is the shared library path variable.
16785 shlibpath_var=$shlibpath_var
16787 # Is shlibpath searched before the hard-coded library search path?
16788 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16790 # How to hardcode a shared library path into an executable.
16791 hardcode_action=$hardcode_action_F77
16793 # Whether we should hardcode library paths into libraries.
16794 hardcode_into_libs=$hardcode_into_libs
16796 # Flag to hardcode \$libdir into a binary during linking.
16797 # This must work even if \$libdir does not exist.
16798 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16800 # If ld is used when linking, flag to hardcode \$libdir into
16801 # a binary during linking. This must work even if \$libdir does
16803 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16805 # Whether we need a single -rpath flag with a separated argument.
16806 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16808 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16809 # resulting binary.
16810 hardcode_direct=$hardcode_direct_F77
16812 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16813 # resulting binary.
16814 hardcode_minus_L=$hardcode_minus_L_F77
16816 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16817 # the resulting binary.
16818 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16820 # Set to yes if building a shared library automatically hardcodes DIR into the library
16821 # and all subsequent libraries and executables linked against it.
16822 hardcode_automatic=$hardcode_automatic_F77
16824 # Variables whose values should be saved in libtool wrapper scripts and
16825 # restored at relink time.
16826 variables_saved_for_relink="$variables_saved_for_relink"
16828 # Whether libtool must link a program against all its dependency libraries.
16829 link_all_deplibs=$link_all_deplibs_F77
16831 # Compile-time system search path for libraries
16832 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16834 # Run-time system search path for libraries
16835 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16837 # Fix the shell variable \$srcfile for the compiler.
16838 fix_srcfile_path=$lt_fix_srcfile_path
16840 # Set to yes if exported symbols are required.
16841 always_export_symbols=$always_export_symbols_F77
16843 # The commands to list exported symbols.
16844 export_symbols_cmds=$lt_export_symbols_cmds_F77
16846 # The commands to extract the exported symbol list from a shared archive.
16847 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16849 # Symbols that should not be listed in the preloaded symbols.
16850 exclude_expsyms=$lt_exclude_expsyms_F77
16852 # Symbols that must always be exported.
16853 include_expsyms=$lt_include_expsyms_F77
16855 # ### END LIBTOOL TAG CONFIG: $tagname
16861 # If there is no Makefile yet, we rely on a make rule to execute
16862 # `config.status --recheck' to rerun these tests and create the
16863 # libtool script then.
16864 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16865 if test -f "$ltmain_in"; then
16866 test -f Makefile && make "$ltmain"
16872 ac_cpp='$CPP $CPPFLAGS'
16873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16885 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16888 # Source file extension for Java test sources.
16891 # Object file extension for compiled Java test sources.
16895 # Code to be used in simple compile tests
16896 lt_simple_compile_test_code="class foo {}"
16898 # Code to be used in simple link tests
16899 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16901 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16903 # If no C compiler was specified, use CC.
16906 # If no C compiler flags were specified, use CFLAGS.
16907 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16909 # Allow CC to be a program name with arguments.
16913 # save warnings/boilerplate of simple test code
16914 ac_outfile=conftest.$ac_objext
16915 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16916 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16917 _lt_compiler_boilerplate=`cat conftest.err`
16920 ac_outfile=conftest.$ac_objext
16921 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16922 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16923 _lt_linker_boilerplate=`cat conftest.err`
16927 # Allow CC to be a program name with arguments.
16932 for cc_temp in $compiler""; do
16934 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16935 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16940 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16943 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16944 archive_cmds_need_lc_GCJ=no
16946 old_archive_cmds_GCJ=$old_archive_cmds
16949 lt_prog_compiler_no_builtin_flag_GCJ=
16951 if test "$GCC" = yes; then
16952 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16955 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16956 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16957 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16958 $as_echo_n "(cached) " >&6
16960 lt_cv_prog_compiler_rtti_exceptions=no
16961 ac_outfile=conftest.$ac_objext
16962 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16963 lt_compiler_flag="-fno-rtti -fno-exceptions"
16964 # Insert the option either (1) after the last *FLAGS variable, or
16965 # (2) before a word containing "conftest.", or (3) at the end.
16966 # Note that $ac_compile itself does not contain backslashes and begins
16967 # with a dollar sign (not a hyphen), so the echo should work correctly.
16968 # The option is referenced via a variable to avoid confusing sed.
16969 lt_compile=`echo "$ac_compile" | $SED \
16970 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16971 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16972 -e 's:$: $lt_compiler_flag:'`
16973 (eval echo "\"\$as_me:16973: $lt_compile\"" >&5)
16974 (eval "$lt_compile" 2>conftest.err)
16976 cat conftest.err >&5
16977 echo "$as_me:16977: \$? = $ac_status" >&5
16978 if (exit $ac_status) && test -s "$ac_outfile"; then
16979 # The compiler can only warn and ignore the option if not recognized
16980 # So say no if there are warnings other than the usual output.
16981 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16982 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16983 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16984 lt_cv_prog_compiler_rtti_exceptions=yes
16990 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16991 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16993 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16994 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17001 lt_prog_compiler_wl_GCJ=
17002 lt_prog_compiler_pic_GCJ=
17003 lt_prog_compiler_static_GCJ=
17005 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17006 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17008 if test "$GCC" = yes; then
17009 lt_prog_compiler_wl_GCJ='-Wl,'
17010 lt_prog_compiler_static_GCJ='-static'
17014 # All AIX code is PIC.
17015 if test "$host_cpu" = ia64; then
17016 # AIX 5 now supports IA64 processor
17017 lt_prog_compiler_static_GCJ='-Bstatic'
17022 # FIXME: we need at least 68020 code to build shared libraries, but
17023 # adding the `-m68020' flag to GCC prevents building anything better,
17025 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17028 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17029 # PIC is the default for these OSes.
17032 mingw* | cygwin* | pw32* | os2*)
17033 # This hack is so that the source file can tell whether it is being
17034 # built for inclusion in a dll (and should export symbols for example).
17035 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17036 # (--disable-auto-import) libraries
17040 darwin* | rhapsody*)
17041 # PIC is the default on this platform
17042 # Common symbols not allowed in MH_DYLIB files
17043 lt_prog_compiler_pic_GCJ='-fno-common'
17047 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17048 # Instead, we relocate shared libraries at runtime.
17052 # Just because we use GCC doesn't mean we suddenly get shared libraries
17053 # on systems that don't support them.
17054 lt_prog_compiler_can_build_shared_GCJ=no
17059 if test -d /usr/nec; then
17060 lt_prog_compiler_pic_GCJ=-Kconform_pic
17065 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17066 # not for PA HP-UX.
17072 lt_prog_compiler_pic_GCJ='-fPIC'
17078 lt_prog_compiler_pic_GCJ='-fPIC'
17082 # PORTME Check for flag to pass linker flags through the system compiler.
17085 lt_prog_compiler_wl_GCJ='-Wl,'
17086 if test "$host_cpu" = ia64; then
17087 # AIX 5 now supports IA64 processor
17088 lt_prog_compiler_static_GCJ='-Bstatic'
17090 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17094 # PIC is the default on this platform
17095 # Common symbols not allowed in MH_DYLIB files
17096 case $cc_basename in
17098 lt_prog_compiler_pic_GCJ='-qnocommon'
17099 lt_prog_compiler_wl_GCJ='-Wl,'
17104 mingw* | cygwin* | pw32* | os2*)
17105 # This hack is so that the source file can tell whether it is being
17106 # built for inclusion in a dll (and should export symbols for example).
17110 hpux9* | hpux10* | hpux11*)
17111 lt_prog_compiler_wl_GCJ='-Wl,'
17112 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17113 # not for PA HP-UX.
17119 lt_prog_compiler_pic_GCJ='+Z'
17122 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17123 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17126 irix5* | irix6* | nonstopux*)
17127 lt_prog_compiler_wl_GCJ='-Wl,'
17128 # PIC (with -KPIC) is the default.
17129 lt_prog_compiler_static_GCJ='-non_shared'
17133 lt_prog_compiler_pic_GCJ='-KPIC'
17134 lt_prog_compiler_static_GCJ='-Bstatic'
17137 linux* | k*bsd*-gnu)
17138 case $cc_basename in
17140 lt_prog_compiler_wl_GCJ='-Wl,'
17141 lt_prog_compiler_pic_GCJ='-KPIC'
17142 lt_prog_compiler_static_GCJ='-static'
17144 pgcc* | pgf77* | pgf90* | pgf95*)
17145 # Portland Group compilers (*not* the Pentium gcc compiler,
17146 # which looks to be a dead project)
17147 lt_prog_compiler_wl_GCJ='-Wl,'
17148 lt_prog_compiler_pic_GCJ='-fpic'
17149 lt_prog_compiler_static_GCJ='-Bstatic'
17152 lt_prog_compiler_wl_GCJ='-Wl,'
17153 # All Alpha code is PIC.
17154 lt_prog_compiler_static_GCJ='-non_shared'
17157 case `$CC -V 2>&1 | sed 5q` in
17160 lt_prog_compiler_pic_GCJ='-KPIC'
17161 lt_prog_compiler_static_GCJ='-Bstatic'
17162 lt_prog_compiler_wl_GCJ='-Wl,'
17165 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17166 lt_prog_compiler_pic_GCJ='-KPIC'
17167 lt_prog_compiler_static_GCJ='-Bstatic'
17168 lt_prog_compiler_wl_GCJ=''
17175 osf3* | osf4* | osf5*)
17176 lt_prog_compiler_wl_GCJ='-Wl,'
17177 # All OSF/1 code is PIC.
17178 lt_prog_compiler_static_GCJ='-non_shared'
17182 lt_prog_compiler_static_GCJ='-non_shared'
17186 lt_prog_compiler_pic_GCJ='-KPIC'
17187 lt_prog_compiler_static_GCJ='-Bstatic'
17188 case $cc_basename in
17189 f77* | f90* | f95*)
17190 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17192 lt_prog_compiler_wl_GCJ='-Wl,';;
17197 lt_prog_compiler_wl_GCJ='-Qoption ld '
17198 lt_prog_compiler_pic_GCJ='-PIC'
17199 lt_prog_compiler_static_GCJ='-Bstatic'
17202 sysv4 | sysv4.2uw2* | sysv4.3*)
17203 lt_prog_compiler_wl_GCJ='-Wl,'
17204 lt_prog_compiler_pic_GCJ='-KPIC'
17205 lt_prog_compiler_static_GCJ='-Bstatic'
17209 if test -d /usr/nec ;then
17210 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17211 lt_prog_compiler_static_GCJ='-Bstatic'
17215 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17216 lt_prog_compiler_wl_GCJ='-Wl,'
17217 lt_prog_compiler_pic_GCJ='-KPIC'
17218 lt_prog_compiler_static_GCJ='-Bstatic'
17222 lt_prog_compiler_wl_GCJ='-Wl,'
17223 lt_prog_compiler_can_build_shared_GCJ=no
17227 lt_prog_compiler_pic_GCJ='-pic'
17228 lt_prog_compiler_static_GCJ='-Bstatic'
17232 lt_prog_compiler_can_build_shared_GCJ=no
17237 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17238 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17241 # Check to make sure the PIC flag actually works.
17243 if test -n "$lt_prog_compiler_pic_GCJ"; then
17245 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17246 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17247 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17248 $as_echo_n "(cached) " >&6
17250 lt_cv_prog_compiler_pic_works_GCJ=no
17251 ac_outfile=conftest.$ac_objext
17252 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17253 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17254 # Insert the option either (1) after the last *FLAGS variable, or
17255 # (2) before a word containing "conftest.", or (3) at the end.
17256 # Note that $ac_compile itself does not contain backslashes and begins
17257 # with a dollar sign (not a hyphen), so the echo should work correctly.
17258 # The option is referenced via a variable to avoid confusing sed.
17259 lt_compile=`echo "$ac_compile" | $SED \
17260 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17261 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17262 -e 's:$: $lt_compiler_flag:'`
17263 (eval echo "\"\$as_me:17263: $lt_compile\"" >&5)
17264 (eval "$lt_compile" 2>conftest.err)
17266 cat conftest.err >&5
17267 echo "$as_me:17267: \$? = $ac_status" >&5
17268 if (exit $ac_status) && test -s "$ac_outfile"; then
17269 # The compiler can only warn and ignore the option if not recognized
17270 # So say no if there are warnings other than the usual output.
17271 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17272 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17273 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17274 lt_cv_prog_compiler_pic_works_GCJ=yes
17280 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17281 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17283 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17284 case $lt_prog_compiler_pic_GCJ in
17286 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17289 lt_prog_compiler_pic_GCJ=
17290 lt_prog_compiler_can_build_shared_GCJ=no
17295 # For platforms which do not support PIC, -DPIC is meaningless:
17297 lt_prog_compiler_pic_GCJ=
17300 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17305 # Check to make sure the static flag actually works.
17307 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17308 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17309 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17310 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17311 $as_echo_n "(cached) " >&6
17313 lt_cv_prog_compiler_static_works_GCJ=no
17314 save_LDFLAGS="$LDFLAGS"
17315 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17316 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17317 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17318 # The linker can only warn and ignore the option if not recognized
17319 # So say no if there are warnings
17320 if test -s conftest.err; then
17321 # Append any errors to the config.log.
17322 cat conftest.err 1>&5
17323 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17324 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17325 if diff conftest.exp conftest.er2 >/dev/null; then
17326 lt_cv_prog_compiler_static_works_GCJ=yes
17329 lt_cv_prog_compiler_static_works_GCJ=yes
17333 LDFLAGS="$save_LDFLAGS"
17336 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17337 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17339 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17342 lt_prog_compiler_static_GCJ=
17346 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17347 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17348 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17349 $as_echo_n "(cached) " >&6
17351 lt_cv_prog_compiler_c_o_GCJ=no
17352 $rm -r conftest 2>/dev/null
17356 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17358 lt_compiler_flag="-o out/conftest2.$ac_objext"
17359 # Insert the option either (1) after the last *FLAGS variable, or
17360 # (2) before a word containing "conftest.", or (3) at the end.
17361 # Note that $ac_compile itself does not contain backslashes and begins
17362 # with a dollar sign (not a hyphen), so the echo should work correctly.
17363 lt_compile=`echo "$ac_compile" | $SED \
17364 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17365 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17366 -e 's:$: $lt_compiler_flag:'`
17367 (eval echo "\"\$as_me:17367: $lt_compile\"" >&5)
17368 (eval "$lt_compile" 2>out/conftest.err)
17370 cat out/conftest.err >&5
17371 echo "$as_me:17371: \$? = $ac_status" >&5
17372 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17374 # The compiler can only warn and ignore the option if not recognized
17375 # So say no if there are warnings
17376 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17377 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17378 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17379 lt_cv_prog_compiler_c_o_GCJ=yes
17384 # SGI C++ compiler will create directory out/ii_files/ for
17385 # template instantiation
17386 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17387 $rm out/* && rmdir out
17393 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17394 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17397 hard_links="nottested"
17398 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17399 # do not overwrite the value of need_locks provided by the user
17400 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17401 $as_echo_n "checking if we can lock with hard links... " >&6; }
17404 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17406 ln conftest.a conftest.b 2>&5 || hard_links=no
17407 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17408 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17409 $as_echo "$hard_links" >&6; }
17410 if test "$hard_links" = no; then
17411 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17412 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17419 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17420 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17423 allow_undefined_flag_GCJ=
17424 enable_shared_with_static_runtimes_GCJ=no
17426 archive_expsym_cmds_GCJ=
17427 old_archive_From_new_cmds_GCJ=
17428 old_archive_from_expsyms_cmds_GCJ=
17429 export_dynamic_flag_spec_GCJ=
17430 whole_archive_flag_spec_GCJ=
17431 thread_safe_flag_spec_GCJ=
17432 hardcode_libdir_flag_spec_GCJ=
17433 hardcode_libdir_flag_spec_ld_GCJ=
17434 hardcode_libdir_separator_GCJ=
17435 hardcode_direct_GCJ=no
17436 hardcode_minus_L_GCJ=no
17437 hardcode_shlibpath_var_GCJ=unsupported
17438 link_all_deplibs_GCJ=unknown
17439 hardcode_automatic_GCJ=no
17441 module_expsym_cmds_GCJ=
17442 always_export_symbols_GCJ=no
17443 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17444 # include_expsyms should be a list of space-separated symbols to be *always*
17445 # included in the symbol list
17446 include_expsyms_GCJ=
17447 # exclude_expsyms can be an extended regexp of symbols to exclude
17448 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17449 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17450 # as well as any symbol that contains `d'.
17451 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17452 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17453 # platforms (ab)use it in PIC code, but their linkers get confused if
17454 # the symbol is explicitly referenced. Since portable code cannot
17455 # rely on this symbol name, it's probably fine to never include it in
17456 # preloaded symbol tables.
17457 # Exclude shared library initialization/finalization symbols.
17458 extract_expsyms_cmds=
17459 # Just being paranoid about ensuring that cc_basename is set.
17460 for cc_temp in $compiler""; do
17462 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17463 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17468 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17471 cygwin* | mingw* | pw32*)
17472 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17473 # When not using gcc, we currently assume that we are using
17474 # Microsoft Visual C++.
17475 if test "$GCC" != yes; then
17480 # we just hope/assume this is gcc and not c89 (= MSVC++)
17489 if test "$with_gnu_ld" = yes; then
17490 # If archive_cmds runs LD, not CC, wlarc should be empty
17493 # Set some defaults for GNU ld with shared library support. These
17494 # are reset later if shared libraries are not supported. Putting them
17495 # here allows them to be overridden if necessary.
17496 runpath_var=LD_RUN_PATH
17497 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17498 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17499 # ancient GNU ld didn't support --whole-archive et. al.
17500 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17501 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17503 whole_archive_flag_spec_GCJ=
17505 supports_anon_versioning=no
17506 case `$LD -v 2>/dev/null` in
17507 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17508 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17509 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17510 *\ 2.11.*) ;; # other 2.11 versions
17511 *) supports_anon_versioning=yes ;;
17514 # See if GNU ld supports shared libraries.
17517 # On AIX/PPC, the GNU linker is very broken
17518 if test "$host_cpu" != ia64; then
17522 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17523 *** to be unable to reliably create shared libraries on AIX.
17524 *** Therefore, libtool is disabling shared libraries support. If you
17525 *** really care for shared libraries, you may want to modify your PATH
17526 *** so that a non-GNU linker is found, and then restart.
17533 archive_cmds_GCJ='$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)'
17534 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17535 hardcode_minus_L_GCJ=yes
17537 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17538 # that the semantics of dynamic libraries on AmigaOS, at least up
17539 # to version 4, is to share data among multiple programs linked
17540 # with the same dynamic library. Since this doesn't match the
17541 # behavior of shared libraries on other platforms, we can't use
17547 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17548 allow_undefined_flag_GCJ=unsupported
17549 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17550 # support --undefined. This deserves some investigation. FIXME
17551 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17557 cygwin* | mingw* | pw32*)
17558 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17559 # as there is no search path for DLLs.
17560 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17561 allow_undefined_flag_GCJ=unsupported
17562 always_export_symbols_GCJ=no
17563 enable_shared_with_static_runtimes_GCJ=yes
17564 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17566 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17567 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17568 # If the export-symbols file already is a .def file (1st line
17569 # is EXPORTS), use it as is; otherwise, prepend...
17570 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17571 cp $export_symbols $output_objdir/$soname.def;
17573 echo EXPORTS > $output_objdir/$soname.def;
17574 cat $export_symbols >> $output_objdir/$soname.def;
17576 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17583 hardcode_direct_GCJ=no
17584 hardcode_shlibpath_var_GCJ=no
17585 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17586 export_dynamic_flag_spec_GCJ='${wl}-E'
17587 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17588 # Instead, shared libraries are loaded at an image base (0x10000000 by
17589 # default) and relocated if they conflict, which is a slow very memory
17590 # consuming and fragmenting process. To avoid this, we pick a random,
17591 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17592 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17593 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17594 archive_expsym_cmds_GCJ='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'
17597 gnu* | linux* | k*bsd*-gnu)
17598 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17600 case $cc_basename,$host_cpu in
17601 pgcc*) # Portland Group C compiler
17602 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17603 tmp_addflag=' $pic_flag'
17605 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17606 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17607 tmp_addflag=' $pic_flag -Mnomain' ;;
17608 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17609 tmp_addflag=' -i_dynamic' ;;
17610 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17611 tmp_addflag=' -i_dynamic -nofor_main' ;;
17612 ifc* | ifort*) # Intel Fortran compiler
17613 tmp_addflag=' -nofor_main' ;;
17615 case `$CC -V 2>&1 | sed 5q` in
17616 *Sun\ C*) # Sun C 5.9
17617 whole_archive_flag_spec_GCJ='${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'
17618 tmp_sharedflag='-G' ;;
17619 *Sun\ F*) # Sun Fortran 8.3
17620 tmp_sharedflag='-G' ;;
17622 tmp_sharedflag='-shared' ;;
17624 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17626 if test $supports_anon_versioning = yes; then
17627 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17628 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17629 $echo "local: *; };" >> $output_objdir/$libname.ver~
17630 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17632 link_all_deplibs_GCJ=no
17638 netbsd* | netbsdelf*-gnu)
17639 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17640 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17643 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17644 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17649 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17653 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17654 *** create shared libraries on Solaris systems. Therefore, libtool
17655 *** is disabling shared libraries support. We urge you to upgrade GNU
17656 *** binutils to release 2.9.1 or newer. Another option is to modify
17657 *** your PATH or compiler configuration so that the native linker is
17658 *** used, and then restart.
17661 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17662 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17663 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17669 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17670 case `$LD -v 2>&1` in
17671 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17675 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17676 *** reliably create shared libraries on SCO systems. Therefore, libtool
17677 *** is disabling shared libraries support. We urge you to upgrade GNU
17678 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17679 *** your PATH or compiler configuration so that the native linker is
17680 *** used, and then restart.
17685 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17686 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17687 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17688 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17697 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17699 hardcode_direct_GCJ=yes
17700 hardcode_shlibpath_var_GCJ=no
17704 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17705 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17706 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17713 if test "$ld_shlibs_GCJ" = no; then
17715 hardcode_libdir_flag_spec_GCJ=
17716 export_dynamic_flag_spec_GCJ=
17717 whole_archive_flag_spec_GCJ=
17720 # PORTME fill in a description of your system's linker (not GNU ld)
17723 allow_undefined_flag_GCJ=unsupported
17724 always_export_symbols_GCJ=yes
17725 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17726 # Note: this linker hardcodes the directories in LIBPATH if there
17727 # are no directories specified by -L.
17728 hardcode_minus_L_GCJ=yes
17729 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17730 # Neither direct hardcoding nor static linking is supported with a
17732 hardcode_direct_GCJ=unsupported
17737 if test "$host_cpu" = ia64; then
17738 # On IA64, the linker does run time linking by default, so we don't
17739 # have to do anything special.
17740 aix_use_runtimelinking=no
17741 exp_sym_flag='-Bexport'
17744 # If we're using GNU nm, then we don't want the "-C" option.
17745 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17746 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17747 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17749 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17751 aix_use_runtimelinking=no
17753 # Test if we are trying to use run time linking or normal
17754 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17755 # need to do runtime linking.
17756 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17757 for ld_flag in $LDFLAGS; do
17758 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17759 aix_use_runtimelinking=yes
17766 exp_sym_flag='-bexport'
17767 no_entry_flag='-bnoentry'
17770 # When large executables or shared objects are built, AIX ld can
17771 # have problems creating the table of contents. If linking a library
17772 # or program results in "error TOC overflow" add -mminimal-toc to
17773 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17774 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17776 archive_cmds_GCJ=''
17777 hardcode_direct_GCJ=yes
17778 hardcode_libdir_separator_GCJ=':'
17779 link_all_deplibs_GCJ=yes
17781 if test "$GCC" = yes; then
17782 case $host_os in aix4.[012]|aix4.[012].*)
17783 # We only want to do this on AIX 4.2 and lower, the check
17784 # below for broken collect2 doesn't work under 4.3+
17785 collect2name=`${CC} -print-prog-name=collect2`
17786 if test -f "$collect2name" && \
17787 strings "$collect2name" | grep resolve_lib_name >/dev/null
17789 # We have reworked collect2
17792 # We have old collect2
17793 hardcode_direct_GCJ=unsupported
17794 # It fails to find uninstalled libraries when the uninstalled
17795 # path is not listed in the libpath. Setting hardcode_minus_L
17796 # to unsupported forces relinking
17797 hardcode_minus_L_GCJ=yes
17798 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17799 hardcode_libdir_separator_GCJ=
17803 shared_flag='-shared'
17804 if test "$aix_use_runtimelinking" = yes; then
17805 shared_flag="$shared_flag "'${wl}-G'
17809 if test "$host_cpu" = ia64; then
17810 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17811 # chokes on -Wl,-G. The following line is correct:
17814 if test "$aix_use_runtimelinking" = yes; then
17815 shared_flag='${wl}-G'
17817 shared_flag='${wl}-bM:SRE'
17822 # It seems that -bexpall does not export symbols beginning with
17823 # underscore (_), so it is better to generate a list of symbols to export.
17824 always_export_symbols_GCJ=yes
17825 if test "$aix_use_runtimelinking" = yes; then
17826 # Warning - without using the other runtime loading flags (-brtl),
17827 # -berok will link without error, but may produce a broken library.
17828 allow_undefined_flag_GCJ='-berok'
17829 # Determine the default libpath from the value encoded in an empty executable.
17830 cat >conftest.$ac_ext <<_ACEOF
17833 cat confdefs.h >>conftest.$ac_ext
17834 cat >>conftest.$ac_ext <<_ACEOF
17835 /* end confdefs.h. */
17845 rm -f conftest.$ac_objext conftest$ac_exeext
17846 if { (ac_try="$ac_link"
17847 case "(($ac_try" in
17848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17849 *) ac_try_echo=$ac_try;;
17851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17852 $as_echo "$ac_try_echo") >&5
17853 (eval "$ac_link") 2>conftest.er1
17855 grep -v '^ *+' conftest.er1 >conftest.err
17857 cat conftest.err >&5
17858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); } && {
17860 test -z "$ac_c_werror_flag" ||
17861 test ! -s conftest.err
17862 } && test -s conftest$ac_exeext && {
17863 test "$cross_compiling" = yes ||
17864 $as_test_x conftest$ac_exeext
17867 lt_aix_libpath_sed='
17868 /Import File Strings/,/^$/ {
17874 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17875 # Check for a 64-bit object if we didn't find anything.
17876 if test -z "$aix_libpath"; then
17877 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17880 $as_echo "$as_me: failed program was:" >&5
17881 sed 's/^/| /' conftest.$ac_ext >&5
17886 rm -rf conftest.dSYM
17887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17888 conftest$ac_exeext conftest.$ac_ext
17889 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17891 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17892 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17894 if test "$host_cpu" = ia64; then
17895 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17896 allow_undefined_flag_GCJ="-z nodefs"
17897 archive_expsym_cmds_GCJ="\$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"
17899 # Determine the default libpath from the value encoded in an empty executable.
17900 cat >conftest.$ac_ext <<_ACEOF
17903 cat confdefs.h >>conftest.$ac_ext
17904 cat >>conftest.$ac_ext <<_ACEOF
17905 /* end confdefs.h. */
17915 rm -f conftest.$ac_objext conftest$ac_exeext
17916 if { (ac_try="$ac_link"
17917 case "(($ac_try" in
17918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17919 *) ac_try_echo=$ac_try;;
17921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17922 $as_echo "$ac_try_echo") >&5
17923 (eval "$ac_link") 2>conftest.er1
17925 grep -v '^ *+' conftest.er1 >conftest.err
17927 cat conftest.err >&5
17928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929 (exit $ac_status); } && {
17930 test -z "$ac_c_werror_flag" ||
17931 test ! -s conftest.err
17932 } && test -s conftest$ac_exeext && {
17933 test "$cross_compiling" = yes ||
17934 $as_test_x conftest$ac_exeext
17937 lt_aix_libpath_sed='
17938 /Import File Strings/,/^$/ {
17944 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17945 # Check for a 64-bit object if we didn't find anything.
17946 if test -z "$aix_libpath"; then
17947 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17950 $as_echo "$as_me: failed program was:" >&5
17951 sed 's/^/| /' conftest.$ac_ext >&5
17956 rm -rf conftest.dSYM
17957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17958 conftest$ac_exeext conftest.$ac_ext
17959 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17961 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17962 # Warning - without using the other run time loading flags,
17963 # -berok will link without error, but may produce a broken library.
17964 no_undefined_flag_GCJ=' ${wl}-bernotok'
17965 allow_undefined_flag_GCJ=' ${wl}-berok'
17966 # Exported symbols can be pulled into shared objects from archives
17967 whole_archive_flag_spec_GCJ='$convenience'
17968 archive_cmds_need_lc_GCJ=yes
17969 # This is similar to how AIX traditionally builds its shared libraries.
17970 archive_expsym_cmds_GCJ="\$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'
17976 archive_cmds_GCJ='$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)'
17977 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17978 hardcode_minus_L_GCJ=yes
17979 # see comment about different semantics on the GNU ld section
17984 export_dynamic_flag_spec_GCJ=-rdynamic
17987 cygwin* | mingw* | pw32*)
17988 # When not using gcc, we currently assume that we are using
17989 # Microsoft Visual C++.
17990 # hardcode_libdir_flag_spec is actually meaningless, as there is
17991 # no search path for DLLs.
17992 hardcode_libdir_flag_spec_GCJ=' '
17993 allow_undefined_flag_GCJ=unsupported
17994 # Tell ltmain to make .lib files, not .a files.
17996 # Tell ltmain to make .dll files, not .so files.
17998 # FIXME: Setting linknames here is a bad hack.
17999 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18000 # The linker will automatically build a .lib file if we build a DLL.
18001 old_archive_From_new_cmds_GCJ='true'
18002 # FIXME: Should let the user specify the lib program.
18003 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18004 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18005 enable_shared_with_static_runtimes_GCJ=yes
18008 darwin* | rhapsody*)
18010 rhapsody* | darwin1.[012])
18011 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18014 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18015 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18017 case ${MACOSX_DEPLOYMENT_TARGET} in
18019 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18022 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18028 archive_cmds_need_lc_GCJ=no
18029 hardcode_direct_GCJ=no
18030 hardcode_automatic_GCJ=yes
18031 hardcode_shlibpath_var_GCJ=unsupported
18032 whole_archive_flag_spec_GCJ=''
18033 link_all_deplibs_GCJ=yes
18034 if test "$GCC" = yes ; then
18035 output_verbose_link_cmd='echo'
18036 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18037 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18038 archive_expsym_cmds_GCJ="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}"
18039 module_expsym_cmds_GCJ="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}"
18041 case $cc_basename in
18043 output_verbose_link_cmd='echo'
18044 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18045 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18046 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18047 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18048 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18058 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18059 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18060 hardcode_shlibpath_var_GCJ=no
18067 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18068 # support. Future versions do this automatically, but an explicit c++rt0.o
18069 # does not break anything, and helps significantly (at the cost of a little
18072 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18073 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18074 hardcode_direct_GCJ=yes
18075 hardcode_shlibpath_var_GCJ=no
18078 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18080 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18081 hardcode_direct_GCJ=yes
18082 hardcode_minus_L_GCJ=yes
18083 hardcode_shlibpath_var_GCJ=no
18086 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18087 freebsd* | dragonfly*)
18088 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18089 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18090 hardcode_direct_GCJ=yes
18091 hardcode_shlibpath_var_GCJ=no
18095 if test "$GCC" = yes; then
18096 archive_cmds_GCJ='$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'
18098 archive_cmds_GCJ='$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'
18100 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18101 hardcode_libdir_separator_GCJ=:
18102 hardcode_direct_GCJ=yes
18104 # hardcode_minus_L: Not really in the search PATH,
18105 # but as the default location of the library.
18106 hardcode_minus_L_GCJ=yes
18107 export_dynamic_flag_spec_GCJ='${wl}-E'
18111 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18112 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18114 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18116 if test "$with_gnu_ld" = no; then
18117 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18118 hardcode_libdir_separator_GCJ=:
18120 hardcode_direct_GCJ=yes
18121 export_dynamic_flag_spec_GCJ='${wl}-E'
18123 # hardcode_minus_L: Not really in the search PATH,
18124 # but as the default location of the library.
18125 hardcode_minus_L_GCJ=yes
18130 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18133 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18136 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18139 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18145 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18148 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18151 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18155 if test "$with_gnu_ld" = no; then
18156 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18157 hardcode_libdir_separator_GCJ=:
18161 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18162 hardcode_direct_GCJ=no
18163 hardcode_shlibpath_var_GCJ=no
18166 hardcode_direct_GCJ=yes
18167 export_dynamic_flag_spec_GCJ='${wl}-E'
18169 # hardcode_minus_L: Not really in the search PATH,
18170 # but as the default location of the library.
18171 hardcode_minus_L_GCJ=yes
18177 irix5* | irix6* | nonstopux*)
18178 if test "$GCC" = yes; then
18179 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18181 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18182 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18184 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18185 hardcode_libdir_separator_GCJ=:
18186 link_all_deplibs_GCJ=yes
18189 netbsd* | netbsdelf*-gnu)
18190 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18191 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18193 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18195 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18196 hardcode_direct_GCJ=yes
18197 hardcode_shlibpath_var_GCJ=no
18201 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18202 hardcode_direct_GCJ=yes
18203 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18204 hardcode_libdir_separator_GCJ=:
18205 hardcode_shlibpath_var_GCJ=no
18209 if test -f /usr/libexec/ld.so; then
18210 hardcode_direct_GCJ=yes
18211 hardcode_shlibpath_var_GCJ=no
18212 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18213 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18214 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18215 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18216 export_dynamic_flag_spec_GCJ='${wl}-E'
18219 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18220 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18221 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18224 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18225 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18235 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18236 hardcode_minus_L_GCJ=yes
18237 allow_undefined_flag_GCJ=unsupported
18238 archive_cmds_GCJ='$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'
18239 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18243 if test "$GCC" = yes; then
18244 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18245 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18247 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18248 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18250 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18251 hardcode_libdir_separator_GCJ=:
18254 osf4* | osf5*) # as osf3* with the addition of -msym flag
18255 if test "$GCC" = yes; then
18256 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18257 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18258 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18260 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18261 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18262 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18263 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18265 # Both c and cxx compiler support -rpath directly
18266 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18268 hardcode_libdir_separator_GCJ=:
18272 no_undefined_flag_GCJ=' -z text'
18273 if test "$GCC" = yes; then
18275 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18276 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18277 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18280 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18281 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18282 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18284 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18285 hardcode_shlibpath_var_GCJ=no
18287 solaris2.[0-5] | solaris2.[0-5].*) ;;
18289 # The compiler driver will combine and reorder linker options,
18290 # but understands `-z linker_flag'. GCC discards it without `$wl',
18291 # but is careful enough not to reorder.
18292 # Supported since Solaris 2.6 (maybe 2.5.1?)
18293 if test "$GCC" = yes; then
18294 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18296 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18300 link_all_deplibs_GCJ=yes
18304 if test "x$host_vendor" = xsequent; then
18305 # Use $CC to link under sequent, because it throws in some extra .o
18306 # files that make .init and .fini sections work.
18307 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18309 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18311 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18312 hardcode_direct_GCJ=yes
18313 hardcode_minus_L_GCJ=yes
18314 hardcode_shlibpath_var_GCJ=no
18318 case $host_vendor in
18320 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18321 hardcode_direct_GCJ=yes # is this really true???
18324 ## LD is ld it makes a PLAMLIB
18325 ## CC just makes a GrossModule.
18326 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18327 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18328 hardcode_direct_GCJ=no
18331 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18332 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18335 runpath_var='LD_RUN_PATH'
18336 hardcode_shlibpath_var_GCJ=no
18340 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18341 hardcode_shlibpath_var_GCJ=no
18342 export_dynamic_flag_spec_GCJ='-Bexport'
18346 if test -d /usr/nec; then
18347 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18348 hardcode_shlibpath_var_GCJ=no
18349 runpath_var=LD_RUN_PATH
18350 hardcode_runpath_var=yes
18355 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18356 no_undefined_flag_GCJ='${wl}-z,text'
18357 archive_cmds_need_lc_GCJ=no
18358 hardcode_shlibpath_var_GCJ=no
18359 runpath_var='LD_RUN_PATH'
18361 if test "$GCC" = yes; then
18362 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18363 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18365 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18366 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18370 sysv5* | sco3.2v5* | sco5v6*)
18371 # Note: We can NOT use -z defs as we might desire, because we do not
18372 # link with -lc, and that would cause any symbols used from libc to
18373 # always be unresolved, which means just about no library would
18374 # ever link correctly. If we're not using GNU ld we use -z text
18375 # though, which does catch some bad symbols but isn't as heavy-handed
18377 no_undefined_flag_GCJ='${wl}-z,text'
18378 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18379 archive_cmds_need_lc_GCJ=no
18380 hardcode_shlibpath_var_GCJ=no
18381 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18382 hardcode_libdir_separator_GCJ=':'
18383 link_all_deplibs_GCJ=yes
18384 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18385 runpath_var='LD_RUN_PATH'
18387 if test "$GCC" = yes; then
18388 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18389 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18391 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18392 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18397 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18398 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18399 hardcode_shlibpath_var_GCJ=no
18408 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18409 $as_echo "$ld_shlibs_GCJ" >&6; }
18410 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18413 # Do we need to explicitly link libc?
18415 case "x$archive_cmds_need_lc_GCJ" in
18417 # Assume -lc should be added
18418 archive_cmds_need_lc_GCJ=yes
18420 if test "$enable_shared" = yes && test "$GCC" = yes; then
18421 case $archive_cmds_GCJ in
18423 # FIXME: we may have to deal with multi-command sequences.
18426 # Test whether the compiler implicitly links with -lc since on some
18427 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18428 # to ld, don't add -lc before -lgcc.
18429 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18430 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18432 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18435 (eval $ac_compile) 2>&5
18437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438 (exit $ac_status); } 2>conftest.err; then
18441 libobjs=conftest.$ac_objext
18443 wl=$lt_prog_compiler_wl_GCJ
18444 pic_flag=$lt_prog_compiler_pic_GCJ
18450 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18451 allow_undefined_flag_GCJ=
18452 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18453 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); }
18458 archive_cmds_need_lc_GCJ=no
18460 archive_cmds_need_lc_GCJ=yes
18462 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18464 cat conftest.err 1>&5
18467 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18468 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18475 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18476 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18477 library_names_spec=
18478 libname_spec='lib$name'
18482 postuninstall_cmds=
18486 shlibpath_overrides_runpath=unknown
18488 dynamic_linker="$host_os ld.so"
18489 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18491 need_lib_prefix=unknown
18492 hardcode_into_libs=no
18494 # when you set need_version to no, make sure it does not cause -set_version
18495 # flags to be left without arguments
18496 need_version=unknown
18501 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18502 shlibpath_var=LIBPATH
18504 # AIX 3 has no versioning support, so we append a major version to the name.
18505 soname_spec='${libname}${release}${shared_ext}$major'
18512 hardcode_into_libs=yes
18513 if test "$host_cpu" = ia64; then
18514 # AIX 5 supports IA64
18515 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18516 shlibpath_var=LD_LIBRARY_PATH
18518 # With GCC up to 2.95.x, collect2 would create an import file
18519 # for dependence libraries. The import file would start with
18520 # the line `#! .'. This would cause the generated library to
18521 # depend on `.', always an invalid library. This was fixed in
18522 # development snapshots of GCC prior to 3.0.
18524 aix4 | aix4.[01] | aix4.[01].*)
18525 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18527 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18530 can_build_shared=no
18534 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18535 # soname into executable. Probably we can add versioning support to
18536 # collect2, so additional links can be useful in future.
18537 if test "$aix_use_runtimelinking" = yes; then
18538 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18539 # instead of lib<name>.a to let people know that these are not
18540 # typical AIX shared libraries.
18541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18543 # We preserve .a as extension for shared libraries through AIX4.2
18544 # and later when we are not doing run time linking.
18545 library_names_spec='${libname}${release}.a $libname.a'
18546 soname_spec='${libname}${release}${shared_ext}$major'
18548 shlibpath_var=LIBPATH
18553 library_names_spec='$libname.ixlibrary $libname.a'
18554 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18555 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'
18559 library_names_spec='${libname}${shared_ext}'
18560 dynamic_linker="$host_os ld.so"
18561 shlibpath_var=LIBRARY_PATH
18567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18568 soname_spec='${libname}${release}${shared_ext}$major'
18569 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18570 shlibpath_var=LD_LIBRARY_PATH
18571 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18572 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18573 # the default ld.so.conf also contains /usr/contrib/lib and
18574 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18575 # libtool to hard-code these into programs
18578 cygwin* | mingw* | pw32*)
18579 version_type=windows
18584 case $GCC,$host_os in
18585 yes,cygwin* | yes,mingw* | yes,pw32*)
18586 library_names_spec='$libname.dll.a'
18587 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18588 postinstall_cmds='base_file=`basename \${file}`~
18589 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18590 dldir=$destdir/`dirname \$dlpath`~
18591 test -d \$dldir || mkdir -p \$dldir~
18592 $install_prog $dir/$dlname \$dldir/$dlname~
18593 chmod a+x \$dldir/$dlname'
18594 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18595 dlpath=$dir/\$dldll~
18597 shlibpath_overrides_runpath=yes
18601 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18602 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18603 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18606 # MinGW DLLs use traditional 'lib' prefix
18607 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18608 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18609 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18610 # It is most probably a Windows format PATH printed by
18611 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18612 # path with ; separators, and with drive letters. We can handle the
18613 # drive letters (cygwin fileutils understands them), so leave them,
18614 # especially as we might pass files found there to a mingw objdump,
18615 # which wouldn't understand a cygwinified path. Ahh.
18616 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18618 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18622 # pw32 DLLs use 'pw' prefix rather than 'lib'
18623 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18629 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18632 dynamic_linker='Win32 ld.exe'
18633 # FIXME: first we should search . and the directory the executable is in
18637 darwin* | rhapsody*)
18638 dynamic_linker="$host_os dyld"
18639 version_type=darwin
18642 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18643 soname_spec='${libname}${release}${major}$shared_ext'
18644 shlibpath_overrides_runpath=yes
18645 shlibpath_var=DYLD_LIBRARY_PATH
18646 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18648 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18656 soname_spec='${libname}${release}${shared_ext}$major'
18657 shlibpath_var=LD_LIBRARY_PATH
18664 freebsd* | dragonfly*)
18665 # DragonFly does not have aout. When/if they implement a new
18666 # versioning mechanism, adjust this.
18667 if test -x /usr/bin/objformat; then
18668 objformat=`/usr/bin/objformat`
18671 freebsd[123]*) objformat=aout ;;
18672 *) objformat=elf ;;
18675 version_type=freebsd-$objformat
18676 case $version_type in
18678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18683 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18687 shlibpath_var=LD_LIBRARY_PATH
18690 shlibpath_overrides_runpath=yes
18692 freebsd3.[01]* | freebsdelf3.[01]*)
18693 shlibpath_overrides_runpath=yes
18694 hardcode_into_libs=yes
18696 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18697 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18698 shlibpath_overrides_runpath=no
18699 hardcode_into_libs=yes
18701 *) # from 4.6 on, and DragonFly
18702 shlibpath_overrides_runpath=yes
18703 hardcode_into_libs=yes
18712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18713 soname_spec='${libname}${release}${shared_ext}$major'
18714 shlibpath_var=LD_LIBRARY_PATH
18715 hardcode_into_libs=yes
18718 hpux9* | hpux10* | hpux11*)
18719 # Give a soname corresponding to the major version so that dld.sl refuses to
18720 # link against other versions.
18727 hardcode_into_libs=yes
18728 dynamic_linker="$host_os dld.so"
18729 shlibpath_var=LD_LIBRARY_PATH
18730 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18732 soname_spec='${libname}${release}${shared_ext}$major'
18733 if test "X$HPUX_IA64_MODE" = X32; then
18734 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18736 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18738 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18742 hardcode_into_libs=yes
18743 dynamic_linker="$host_os dld.sl"
18744 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18745 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18747 soname_spec='${libname}${release}${shared_ext}$major'
18748 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18749 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18753 dynamic_linker="$host_os dld.sl"
18754 shlibpath_var=SHLIB_PATH
18755 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18757 soname_spec='${libname}${release}${shared_ext}$major'
18760 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18761 postinstall_cmds='chmod 555 $lib'
18768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18769 soname_spec='${libname}${release}${shared_ext}$major'
18770 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18771 shlibpath_var=LD_LIBRARY_PATH
18772 shlibpath_overrides_runpath=no
18773 hardcode_into_libs=yes
18776 irix5* | irix6* | nonstopux*)
18778 nonstopux*) version_type=nonstopux ;;
18780 if test "$lt_cv_prog_gnu_ld" = yes; then
18788 soname_spec='${libname}${release}${shared_ext}$major'
18789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18791 irix5* | nonstopux*)
18792 libsuff= shlibsuff=
18795 case $LD in # libtool.m4 will add one of these switches to LD
18796 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18797 libsuff= shlibsuff= libmagic=32-bit;;
18798 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18799 libsuff=32 shlibsuff=N32 libmagic=N32;;
18800 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18801 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18802 *) libsuff= shlibsuff= libmagic=never-match;;
18806 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18807 shlibpath_overrides_runpath=no
18808 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18809 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18810 hardcode_into_libs=yes
18813 # No shared lib support for Linux oldld, aout, or coff.
18814 linux*oldld* | linux*aout* | linux*coff*)
18818 # This must be Linux ELF.
18819 linux* | k*bsd*-gnu)
18823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18824 soname_spec='${libname}${release}${shared_ext}$major'
18825 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18826 shlibpath_var=LD_LIBRARY_PATH
18827 shlibpath_overrides_runpath=no
18828 # This implies no fast_install, which is unacceptable.
18829 # Some rework will be needed to allow for fast_install
18830 # before this can be enabled.
18831 hardcode_into_libs=yes
18833 # Append ld.so.conf contents to the search path
18834 if test -f /etc/ld.so.conf; then
18835 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' ' '`
18836 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18839 # We used to test for /lib/ld.so.1 and disable shared libraries on
18840 # powerpc, because MkLinux only supported shared libraries with the
18841 # GNU dynamic linker. Since this was broken with cross compilers,
18842 # most powerpc-linux boxes support dynamic linking these days and
18843 # people can always --disable-shared, the test was removed, and we
18844 # assume the GNU/Linux dynamic linker is in use.
18845 dynamic_linker='GNU/Linux ld.so'
18852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18853 soname_spec='${libname}${release}${shared_ext}$major'
18854 shlibpath_var=LD_LIBRARY_PATH
18855 shlibpath_overrides_runpath=no
18856 hardcode_into_libs=yes
18857 dynamic_linker='NetBSD ld.elf_so'
18864 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18866 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18867 dynamic_linker='NetBSD (a.out) ld.so'
18869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18870 soname_spec='${libname}${release}${shared_ext}$major'
18871 dynamic_linker='NetBSD ld.elf_so'
18873 shlibpath_var=LD_LIBRARY_PATH
18874 shlibpath_overrides_runpath=yes
18875 hardcode_into_libs=yes
18880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18881 shlibpath_var=LD_LIBRARY_PATH
18882 shlibpath_overrides_runpath=yes
18889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18890 soname_spec='${libname}${release}${shared_ext}$major'
18891 shlibpath_var=LD_LIBRARY_PATH
18892 shlibpath_overrides_runpath=yes
18897 sys_lib_dlsearch_path_spec="/usr/lib"
18899 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18901 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18902 *) need_version=no ;;
18904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18905 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18906 shlibpath_var=LD_LIBRARY_PATH
18907 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18909 openbsd2.[89] | openbsd2.[89].*)
18910 shlibpath_overrides_runpath=no
18913 shlibpath_overrides_runpath=yes
18917 shlibpath_overrides_runpath=yes
18922 libname_spec='$name'
18925 library_names_spec='$libname${shared_ext} $libname.a'
18926 dynamic_linker='OS/2 ld.exe'
18927 shlibpath_var=LIBPATH
18930 osf3* | osf4* | osf5*)
18934 soname_spec='${libname}${release}${shared_ext}$major'
18935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18936 shlibpath_var=LD_LIBRARY_PATH
18937 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18938 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18950 soname_spec='${libname}${release}${shared_ext}$major'
18951 shlibpath_var=LD_LIBRARY_PATH
18952 shlibpath_overrides_runpath=yes
18953 hardcode_into_libs=yes
18954 # ldd complains unless libraries are executable
18955 postinstall_cmds='chmod +x $lib'
18960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18961 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18962 shlibpath_var=LD_LIBRARY_PATH
18963 shlibpath_overrides_runpath=yes
18964 if test "$with_gnu_ld" = yes; then
18972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18973 soname_spec='${libname}${release}${shared_ext}$major'
18974 shlibpath_var=LD_LIBRARY_PATH
18975 case $host_vendor in
18977 shlibpath_overrides_runpath=no
18979 export_dynamic_flag_spec='${wl}-Blargedynsym'
18980 runpath_var=LD_RUN_PATH
18988 shlibpath_overrides_runpath=no
18989 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18995 if test -d /usr/nec ;then
18997 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18998 soname_spec='$libname${shared_ext}.$major'
18999 shlibpath_var=LD_LIBRARY_PATH
19003 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19004 version_type=freebsd-elf
19007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19008 soname_spec='${libname}${release}${shared_ext}$major'
19009 shlibpath_var=LD_LIBRARY_PATH
19010 hardcode_into_libs=yes
19011 if test "$with_gnu_ld" = yes; then
19012 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19013 shlibpath_overrides_runpath=no
19015 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19016 shlibpath_overrides_runpath=yes
19019 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19023 sys_lib_dlsearch_path_spec='/usr/lib'
19028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19029 soname_spec='${libname}${release}${shared_ext}$major'
19030 shlibpath_var=LD_LIBRARY_PATH
19037 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19038 $as_echo "$dynamic_linker" >&6; }
19039 test "$dynamic_linker" = no && can_build_shared=no
19041 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19042 $as_echo_n "(cached) " >&6
19044 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19047 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19048 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19049 $as_echo_n "(cached) " >&6
19051 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19054 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19056 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19057 if test "$GCC" = yes; then
19058 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19061 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19062 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19063 hardcode_action_GCJ=
19064 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19065 test -n "$runpath_var_GCJ" || \
19066 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19068 # We can hardcode non-existant directories.
19069 if test "$hardcode_direct_GCJ" != no &&
19070 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19071 # have to relink, otherwise we might link with an installed library
19072 # when we should be linking with a yet-to-be-installed one
19073 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19074 test "$hardcode_minus_L_GCJ" != no; then
19075 # Linking always hardcodes the temporary library directory.
19076 hardcode_action_GCJ=relink
19078 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19079 hardcode_action_GCJ=immediate
19082 # We cannot hardcode anything, or else we can only hardcode existing
19084 hardcode_action_GCJ=unsupported
19086 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19087 $as_echo "$hardcode_action_GCJ" >&6; }
19089 if test "$hardcode_action_GCJ" = relink; then
19090 # Fast installation is not supported
19091 enable_fast_install=no
19092 elif test "$shlibpath_overrides_runpath" = yes ||
19093 test "$enable_shared" = no; then
19094 # Fast installation is not necessary
19095 enable_fast_install=needless
19099 # The else clause should only fire when bootstrapping the
19100 # libtool distribution, otherwise you forgot to ship ltmain.sh
19101 # with your package, and you will get complaints that there are
19102 # no rules to generate ltmain.sh.
19103 if test -f "$ltmain"; then
19104 # See if we are running on zsh, and set the options which allow our commands through
19105 # without removal of \ escapes.
19106 if test -n "${ZSH_VERSION+set}" ; then
19107 setopt NO_GLOB_SUBST
19109 # Now quote all the things that may contain metacharacters while being
19110 # careful not to overquote the AC_SUBSTed values. We take copies of the
19111 # variables and quote the copies for generation of the libtool script.
19112 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19114 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19115 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19116 deplibs_check_method reload_flag reload_cmds need_locks \
19117 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19118 lt_cv_sys_global_symbol_to_c_name_address \
19119 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19120 old_postinstall_cmds old_postuninstall_cmds \
19124 lt_prog_compiler_wl_GCJ \
19125 lt_prog_compiler_pic_GCJ \
19126 lt_prog_compiler_static_GCJ \
19127 lt_prog_compiler_no_builtin_flag_GCJ \
19128 export_dynamic_flag_spec_GCJ \
19129 thread_safe_flag_spec_GCJ \
19130 whole_archive_flag_spec_GCJ \
19131 enable_shared_with_static_runtimes_GCJ \
19132 old_archive_cmds_GCJ \
19133 old_archive_from_new_cmds_GCJ \
19134 predep_objects_GCJ \
19135 postdep_objects_GCJ \
19138 compiler_lib_search_path_GCJ \
19139 compiler_lib_search_dirs_GCJ \
19141 archive_expsym_cmds_GCJ \
19142 postinstall_cmds_GCJ \
19143 postuninstall_cmds_GCJ \
19144 old_archive_from_expsyms_cmds_GCJ \
19145 allow_undefined_flag_GCJ \
19146 no_undefined_flag_GCJ \
19147 export_symbols_cmds_GCJ \
19148 hardcode_libdir_flag_spec_GCJ \
19149 hardcode_libdir_flag_spec_ld_GCJ \
19150 hardcode_libdir_separator_GCJ \
19151 hardcode_automatic_GCJ \
19153 module_expsym_cmds_GCJ \
19154 lt_cv_prog_compiler_c_o_GCJ \
19155 fix_srcfile_path_GCJ \
19156 exclude_expsyms_GCJ \
19157 include_expsyms_GCJ; do
19160 old_archive_cmds_GCJ | \
19161 old_archive_from_new_cmds_GCJ | \
19162 archive_cmds_GCJ | \
19163 archive_expsym_cmds_GCJ | \
19164 module_cmds_GCJ | \
19165 module_expsym_cmds_GCJ | \
19166 old_archive_from_expsyms_cmds_GCJ | \
19167 export_symbols_cmds_GCJ | \
19168 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19169 postinstall_cmds | postuninstall_cmds | \
19170 old_postinstall_cmds | old_postuninstall_cmds | \
19171 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19172 # Double-quote double-evaled strings.
19173 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19176 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19182 *'\$0 --fallback-echo"')
19183 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19189 cat <<__EOF__ >> "$cfgfile"
19190 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19192 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19194 # Shell to use when invoking shell scripts.
19197 # Whether or not to build shared libraries.
19198 build_libtool_libs=$enable_shared
19200 # Whether or not to build static libraries.
19201 build_old_libs=$enable_static
19203 # Whether or not to add -lc for building shared libraries.
19204 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19206 # Whether or not to disallow shared libs when runtime libs are static
19207 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19209 # Whether or not to optimize for fast installation.
19210 fast_install=$enable_fast_install
19213 host_alias=$host_alias
19217 # The build system.
19218 build_alias=$build_alias
19222 # An echo program that does not interpret backslashes.
19227 AR_FLAGS=$lt_AR_FLAGS
19232 # LTCC compiler flags.
19233 LTCFLAGS=$lt_LTCFLAGS
19235 # A language-specific compiler.
19236 CC=$lt_compiler_GCJ
19238 # Is the compiler the GNU C compiler?
19244 # The linker used to build libraries.
19247 # Whether we need hard or soft links.
19250 # A BSD-compatible nm program.
19253 # A symbol stripping program
19256 # Used to examine libraries when file_magic_cmd begins "file"
19257 MAGIC_CMD=$MAGIC_CMD
19259 # Used on cygwin: DLL creation program.
19262 # Used on cygwin: object dumper.
19265 # Used on cygwin: assembler.
19268 # The name of the directory that contains temporary libtool files.
19271 # How to create reloadable object files.
19272 reload_flag=$lt_reload_flag
19273 reload_cmds=$lt_reload_cmds
19275 # How to pass a linker flag through the compiler.
19276 wl=$lt_lt_prog_compiler_wl_GCJ
19278 # Object file suffix (normally "o").
19279 objext="$ac_objext"
19281 # Old archive suffix (normally "a").
19284 # Shared library suffix (normally ".so").
19285 shrext_cmds='$shrext_cmds'
19287 # Executable file suffix (normally "").
19290 # Additional compiler flags for building library objects.
19291 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19294 # What is the maximum length of a command?
19295 max_cmd_len=$lt_cv_sys_max_cmd_len
19297 # Does compiler simultaneously support -c and -o options?
19298 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19300 # Must we lock files when doing compilation?
19301 need_locks=$lt_need_locks
19303 # Do we need the lib prefix for modules?
19304 need_lib_prefix=$need_lib_prefix
19306 # Do we need a version for libraries?
19307 need_version=$need_version
19309 # Whether dlopen is supported.
19310 dlopen_support=$enable_dlopen
19312 # Whether dlopen of programs is supported.
19313 dlopen_self=$enable_dlopen_self
19315 # Whether dlopen of statically linked programs is supported.
19316 dlopen_self_static=$enable_dlopen_self_static
19318 # Compiler flag to prevent dynamic linking.
19319 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19321 # Compiler flag to turn off builtin functions.
19322 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19324 # Compiler flag to allow reflexive dlopens.
19325 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19327 # Compiler flag to generate shared objects directly from archives.
19328 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19330 # Compiler flag to generate thread-safe objects.
19331 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19333 # Library versioning type.
19334 version_type=$version_type
19336 # Format of library name prefix.
19337 libname_spec=$lt_libname_spec
19339 # List of archive names. First name is the real one, the rest are links.
19340 # The last name is the one that the linker finds with -lNAME.
19341 library_names_spec=$lt_library_names_spec
19343 # The coded name of the library, if different from the real name.
19344 soname_spec=$lt_soname_spec
19346 # Commands used to build and install an old-style archive.
19348 old_archive_cmds=$lt_old_archive_cmds_GCJ
19349 old_postinstall_cmds=$lt_old_postinstall_cmds
19350 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19352 # Create an old-style archive from a shared archive.
19353 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19355 # Create a temporary old-style archive to link instead of a shared archive.
19356 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19358 # Commands used to build and install a shared archive.
19359 archive_cmds=$lt_archive_cmds_GCJ
19360 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19361 postinstall_cmds=$lt_postinstall_cmds
19362 postuninstall_cmds=$lt_postuninstall_cmds
19364 # Commands used to build a loadable module (assumed same as above if empty)
19365 module_cmds=$lt_module_cmds_GCJ
19366 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19368 # Commands to strip libraries.
19369 old_striplib=$lt_old_striplib
19370 striplib=$lt_striplib
19372 # Dependencies to place before the objects being linked to create a
19374 predep_objects=$lt_predep_objects_GCJ
19376 # Dependencies to place after the objects being linked to create a
19378 postdep_objects=$lt_postdep_objects_GCJ
19380 # Dependencies to place before the objects being linked to create a
19382 predeps=$lt_predeps_GCJ
19384 # Dependencies to place after the objects being linked to create a
19386 postdeps=$lt_postdeps_GCJ
19388 # The directories searched by this compiler when creating a shared
19390 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19392 # The library search path used internally by the compiler when linking
19393 # a shared library.
19394 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19396 # Method to check whether dependent libraries are shared objects.
19397 deplibs_check_method=$lt_deplibs_check_method
19399 # Command to use when deplibs_check_method == file_magic.
19400 file_magic_cmd=$lt_file_magic_cmd
19402 # Flag that allows shared libraries with undefined symbols to be built.
19403 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19405 # Flag that forces no undefined symbols.
19406 no_undefined_flag=$lt_no_undefined_flag_GCJ
19408 # Commands used to finish a libtool library installation in a directory.
19409 finish_cmds=$lt_finish_cmds
19411 # Same as above, but a single script fragment to be evaled but not shown.
19412 finish_eval=$lt_finish_eval
19414 # Take the output of nm and produce a listing of raw symbols and C names.
19415 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19417 # Transform the output of nm in a proper C declaration
19418 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19420 # Transform the output of nm in a C name address pair
19421 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19423 # This is the shared library runtime path variable.
19424 runpath_var=$runpath_var
19426 # This is the shared library path variable.
19427 shlibpath_var=$shlibpath_var
19429 # Is shlibpath searched before the hard-coded library search path?
19430 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19432 # How to hardcode a shared library path into an executable.
19433 hardcode_action=$hardcode_action_GCJ
19435 # Whether we should hardcode library paths into libraries.
19436 hardcode_into_libs=$hardcode_into_libs
19438 # Flag to hardcode \$libdir into a binary during linking.
19439 # This must work even if \$libdir does not exist.
19440 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19442 # If ld is used when linking, flag to hardcode \$libdir into
19443 # a binary during linking. This must work even if \$libdir does
19445 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19447 # Whether we need a single -rpath flag with a separated argument.
19448 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19450 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19451 # resulting binary.
19452 hardcode_direct=$hardcode_direct_GCJ
19454 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19455 # resulting binary.
19456 hardcode_minus_L=$hardcode_minus_L_GCJ
19458 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19459 # the resulting binary.
19460 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19462 # Set to yes if building a shared library automatically hardcodes DIR into the library
19463 # and all subsequent libraries and executables linked against it.
19464 hardcode_automatic=$hardcode_automatic_GCJ
19466 # Variables whose values should be saved in libtool wrapper scripts and
19467 # restored at relink time.
19468 variables_saved_for_relink="$variables_saved_for_relink"
19470 # Whether libtool must link a program against all its dependency libraries.
19471 link_all_deplibs=$link_all_deplibs_GCJ
19473 # Compile-time system search path for libraries
19474 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19476 # Run-time system search path for libraries
19477 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19479 # Fix the shell variable \$srcfile for the compiler.
19480 fix_srcfile_path=$lt_fix_srcfile_path
19482 # Set to yes if exported symbols are required.
19483 always_export_symbols=$always_export_symbols_GCJ
19485 # The commands to list exported symbols.
19486 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19488 # The commands to extract the exported symbol list from a shared archive.
19489 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19491 # Symbols that should not be listed in the preloaded symbols.
19492 exclude_expsyms=$lt_exclude_expsyms_GCJ
19494 # Symbols that must always be exported.
19495 include_expsyms=$lt_include_expsyms_GCJ
19497 # ### END LIBTOOL TAG CONFIG: $tagname
19503 # If there is no Makefile yet, we rely on a make rule to execute
19504 # `config.status --recheck' to rerun these tests and create the
19505 # libtool script then.
19506 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19507 if test -f "$ltmain_in"; then
19508 test -f Makefile && make "$ltmain"
19514 ac_cpp='$CPP $CPPFLAGS'
19515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19529 # Source file extension for RC test sources.
19532 # Object file extension for compiled RC test sources.
19536 # Code to be used in simple compile tests
19537 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19539 # Code to be used in simple link tests
19540 lt_simple_link_test_code="$lt_simple_compile_test_code"
19542 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19544 # If no C compiler was specified, use CC.
19547 # If no C compiler flags were specified, use CFLAGS.
19548 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19550 # Allow CC to be a program name with arguments.
19554 # save warnings/boilerplate of simple test code
19555 ac_outfile=conftest.$ac_objext
19556 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19557 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19558 _lt_compiler_boilerplate=`cat conftest.err`
19561 ac_outfile=conftest.$ac_objext
19562 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19563 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19564 _lt_linker_boilerplate=`cat conftest.err`
19568 # Allow CC to be a program name with arguments.
19573 for cc_temp in $compiler""; do
19575 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19576 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19581 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19583 lt_cv_prog_compiler_c_o_RC=yes
19585 # The else clause should only fire when bootstrapping the
19586 # libtool distribution, otherwise you forgot to ship ltmain.sh
19587 # with your package, and you will get complaints that there are
19588 # no rules to generate ltmain.sh.
19589 if test -f "$ltmain"; then
19590 # See if we are running on zsh, and set the options which allow our commands through
19591 # without removal of \ escapes.
19592 if test -n "${ZSH_VERSION+set}" ; then
19593 setopt NO_GLOB_SUBST
19595 # Now quote all the things that may contain metacharacters while being
19596 # careful not to overquote the AC_SUBSTed values. We take copies of the
19597 # variables and quote the copies for generation of the libtool script.
19598 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19600 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19601 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19602 deplibs_check_method reload_flag reload_cmds need_locks \
19603 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19604 lt_cv_sys_global_symbol_to_c_name_address \
19605 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19606 old_postinstall_cmds old_postuninstall_cmds \
19610 lt_prog_compiler_wl_RC \
19611 lt_prog_compiler_pic_RC \
19612 lt_prog_compiler_static_RC \
19613 lt_prog_compiler_no_builtin_flag_RC \
19614 export_dynamic_flag_spec_RC \
19615 thread_safe_flag_spec_RC \
19616 whole_archive_flag_spec_RC \
19617 enable_shared_with_static_runtimes_RC \
19618 old_archive_cmds_RC \
19619 old_archive_from_new_cmds_RC \
19620 predep_objects_RC \
19621 postdep_objects_RC \
19624 compiler_lib_search_path_RC \
19625 compiler_lib_search_dirs_RC \
19627 archive_expsym_cmds_RC \
19628 postinstall_cmds_RC \
19629 postuninstall_cmds_RC \
19630 old_archive_from_expsyms_cmds_RC \
19631 allow_undefined_flag_RC \
19632 no_undefined_flag_RC \
19633 export_symbols_cmds_RC \
19634 hardcode_libdir_flag_spec_RC \
19635 hardcode_libdir_flag_spec_ld_RC \
19636 hardcode_libdir_separator_RC \
19637 hardcode_automatic_RC \
19639 module_expsym_cmds_RC \
19640 lt_cv_prog_compiler_c_o_RC \
19641 fix_srcfile_path_RC \
19642 exclude_expsyms_RC \
19643 include_expsyms_RC; do
19646 old_archive_cmds_RC | \
19647 old_archive_from_new_cmds_RC | \
19648 archive_cmds_RC | \
19649 archive_expsym_cmds_RC | \
19651 module_expsym_cmds_RC | \
19652 old_archive_from_expsyms_cmds_RC | \
19653 export_symbols_cmds_RC | \
19654 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19655 postinstall_cmds | postuninstall_cmds | \
19656 old_postinstall_cmds | old_postuninstall_cmds | \
19657 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19658 # Double-quote double-evaled strings.
19659 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19662 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19668 *'\$0 --fallback-echo"')
19669 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19675 cat <<__EOF__ >> "$cfgfile"
19676 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19678 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19680 # Shell to use when invoking shell scripts.
19683 # Whether or not to build shared libraries.
19684 build_libtool_libs=$enable_shared
19686 # Whether or not to build static libraries.
19687 build_old_libs=$enable_static
19689 # Whether or not to add -lc for building shared libraries.
19690 build_libtool_need_lc=$archive_cmds_need_lc_RC
19692 # Whether or not to disallow shared libs when runtime libs are static
19693 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19695 # Whether or not to optimize for fast installation.
19696 fast_install=$enable_fast_install
19699 host_alias=$host_alias
19703 # The build system.
19704 build_alias=$build_alias
19708 # An echo program that does not interpret backslashes.
19713 AR_FLAGS=$lt_AR_FLAGS
19718 # LTCC compiler flags.
19719 LTCFLAGS=$lt_LTCFLAGS
19721 # A language-specific compiler.
19724 # Is the compiler the GNU C compiler?
19730 # The linker used to build libraries.
19733 # Whether we need hard or soft links.
19736 # A BSD-compatible nm program.
19739 # A symbol stripping program
19742 # Used to examine libraries when file_magic_cmd begins "file"
19743 MAGIC_CMD=$MAGIC_CMD
19745 # Used on cygwin: DLL creation program.
19748 # Used on cygwin: object dumper.
19751 # Used on cygwin: assembler.
19754 # The name of the directory that contains temporary libtool files.
19757 # How to create reloadable object files.
19758 reload_flag=$lt_reload_flag
19759 reload_cmds=$lt_reload_cmds
19761 # How to pass a linker flag through the compiler.
19762 wl=$lt_lt_prog_compiler_wl_RC
19764 # Object file suffix (normally "o").
19765 objext="$ac_objext"
19767 # Old archive suffix (normally "a").
19770 # Shared library suffix (normally ".so").
19771 shrext_cmds='$shrext_cmds'
19773 # Executable file suffix (normally "").
19776 # Additional compiler flags for building library objects.
19777 pic_flag=$lt_lt_prog_compiler_pic_RC
19780 # What is the maximum length of a command?
19781 max_cmd_len=$lt_cv_sys_max_cmd_len
19783 # Does compiler simultaneously support -c and -o options?
19784 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19786 # Must we lock files when doing compilation?
19787 need_locks=$lt_need_locks
19789 # Do we need the lib prefix for modules?
19790 need_lib_prefix=$need_lib_prefix
19792 # Do we need a version for libraries?
19793 need_version=$need_version
19795 # Whether dlopen is supported.
19796 dlopen_support=$enable_dlopen
19798 # Whether dlopen of programs is supported.
19799 dlopen_self=$enable_dlopen_self
19801 # Whether dlopen of statically linked programs is supported.
19802 dlopen_self_static=$enable_dlopen_self_static
19804 # Compiler flag to prevent dynamic linking.
19805 link_static_flag=$lt_lt_prog_compiler_static_RC
19807 # Compiler flag to turn off builtin functions.
19808 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19810 # Compiler flag to allow reflexive dlopens.
19811 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19813 # Compiler flag to generate shared objects directly from archives.
19814 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19816 # Compiler flag to generate thread-safe objects.
19817 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19819 # Library versioning type.
19820 version_type=$version_type
19822 # Format of library name prefix.
19823 libname_spec=$lt_libname_spec
19825 # List of archive names. First name is the real one, the rest are links.
19826 # The last name is the one that the linker finds with -lNAME.
19827 library_names_spec=$lt_library_names_spec
19829 # The coded name of the library, if different from the real name.
19830 soname_spec=$lt_soname_spec
19832 # Commands used to build and install an old-style archive.
19834 old_archive_cmds=$lt_old_archive_cmds_RC
19835 old_postinstall_cmds=$lt_old_postinstall_cmds
19836 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19838 # Create an old-style archive from a shared archive.
19839 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19841 # Create a temporary old-style archive to link instead of a shared archive.
19842 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19844 # Commands used to build and install a shared archive.
19845 archive_cmds=$lt_archive_cmds_RC
19846 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19847 postinstall_cmds=$lt_postinstall_cmds
19848 postuninstall_cmds=$lt_postuninstall_cmds
19850 # Commands used to build a loadable module (assumed same as above if empty)
19851 module_cmds=$lt_module_cmds_RC
19852 module_expsym_cmds=$lt_module_expsym_cmds_RC
19854 # Commands to strip libraries.
19855 old_striplib=$lt_old_striplib
19856 striplib=$lt_striplib
19858 # Dependencies to place before the objects being linked to create a
19860 predep_objects=$lt_predep_objects_RC
19862 # Dependencies to place after the objects being linked to create a
19864 postdep_objects=$lt_postdep_objects_RC
19866 # Dependencies to place before the objects being linked to create a
19868 predeps=$lt_predeps_RC
19870 # Dependencies to place after the objects being linked to create a
19872 postdeps=$lt_postdeps_RC
19874 # The directories searched by this compiler when creating a shared
19876 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19878 # The library search path used internally by the compiler when linking
19879 # a shared library.
19880 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19882 # Method to check whether dependent libraries are shared objects.
19883 deplibs_check_method=$lt_deplibs_check_method
19885 # Command to use when deplibs_check_method == file_magic.
19886 file_magic_cmd=$lt_file_magic_cmd
19888 # Flag that allows shared libraries with undefined symbols to be built.
19889 allow_undefined_flag=$lt_allow_undefined_flag_RC
19891 # Flag that forces no undefined symbols.
19892 no_undefined_flag=$lt_no_undefined_flag_RC
19894 # Commands used to finish a libtool library installation in a directory.
19895 finish_cmds=$lt_finish_cmds
19897 # Same as above, but a single script fragment to be evaled but not shown.
19898 finish_eval=$lt_finish_eval
19900 # Take the output of nm and produce a listing of raw symbols and C names.
19901 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19903 # Transform the output of nm in a proper C declaration
19904 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19906 # Transform the output of nm in a C name address pair
19907 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19909 # This is the shared library runtime path variable.
19910 runpath_var=$runpath_var
19912 # This is the shared library path variable.
19913 shlibpath_var=$shlibpath_var
19915 # Is shlibpath searched before the hard-coded library search path?
19916 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19918 # How to hardcode a shared library path into an executable.
19919 hardcode_action=$hardcode_action_RC
19921 # Whether we should hardcode library paths into libraries.
19922 hardcode_into_libs=$hardcode_into_libs
19924 # Flag to hardcode \$libdir into a binary during linking.
19925 # This must work even if \$libdir does not exist.
19926 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19928 # If ld is used when linking, flag to hardcode \$libdir into
19929 # a binary during linking. This must work even if \$libdir does
19931 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19933 # Whether we need a single -rpath flag with a separated argument.
19934 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19936 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19937 # resulting binary.
19938 hardcode_direct=$hardcode_direct_RC
19940 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19941 # resulting binary.
19942 hardcode_minus_L=$hardcode_minus_L_RC
19944 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19945 # the resulting binary.
19946 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19948 # Set to yes if building a shared library automatically hardcodes DIR into the library
19949 # and all subsequent libraries and executables linked against it.
19950 hardcode_automatic=$hardcode_automatic_RC
19952 # Variables whose values should be saved in libtool wrapper scripts and
19953 # restored at relink time.
19954 variables_saved_for_relink="$variables_saved_for_relink"
19956 # Whether libtool must link a program against all its dependency libraries.
19957 link_all_deplibs=$link_all_deplibs_RC
19959 # Compile-time system search path for libraries
19960 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19962 # Run-time system search path for libraries
19963 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19965 # Fix the shell variable \$srcfile for the compiler.
19966 fix_srcfile_path=$lt_fix_srcfile_path
19968 # Set to yes if exported symbols are required.
19969 always_export_symbols=$always_export_symbols_RC
19971 # The commands to list exported symbols.
19972 export_symbols_cmds=$lt_export_symbols_cmds_RC
19974 # The commands to extract the exported symbol list from a shared archive.
19975 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19977 # Symbols that should not be listed in the preloaded symbols.
19978 exclude_expsyms=$lt_exclude_expsyms_RC
19980 # Symbols that must always be exported.
19981 include_expsyms=$lt_include_expsyms_RC
19983 # ### END LIBTOOL TAG CONFIG: $tagname
19989 # If there is no Makefile yet, we rely on a make rule to execute
19990 # `config.status --recheck' to rerun these tests and create the
19991 # libtool script then.
19992 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19993 if test -f "$ltmain_in"; then
19994 test -f Makefile && make "$ltmain"
20000 ac_cpp='$CPP $CPPFLAGS'
20001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20010 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20011 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20012 { (exit 1); exit 1; }; }
20016 # Append the new tag name to the list of available tags.
20017 if test -n "$tagname" ; then
20018 available_tags="$available_tags $tagname"
20024 # Now substitute the updated list of available tags.
20025 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20026 mv "${ofile}T" "$ofile"
20030 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20031 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20032 { (exit 1); exit 1; }; }
20038 # This can be used to rebuild libtool when needed
20039 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20041 # Always use our own libtool.
20042 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20044 # Prevent multiple expansion
20066 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20067 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20068 if test "${ac_cv_c_const+set}" = set; then
20069 $as_echo_n "(cached) " >&6
20071 cat >conftest.$ac_ext <<_ACEOF
20074 cat confdefs.h >>conftest.$ac_ext
20075 cat >>conftest.$ac_ext <<_ACEOF
20076 /* end confdefs.h. */
20081 /* FIXME: Include the comments suggested by Paul. */
20082 #ifndef __cplusplus
20083 /* Ultrix mips cc rejects this. */
20084 typedef int charset[2];
20086 /* SunOS 4.1.1 cc rejects this. */
20087 char const *const *pcpcc;
20089 /* NEC SVR4.0.2 mips cc rejects this. */
20090 struct point {int x, y;};
20091 static struct point const zero = {0,0};
20092 /* AIX XL C 1.02.0.0 rejects this.
20093 It does not let you subtract one const X* pointer from another in
20094 an arm of an if-expression whose if-part is not a constant
20096 const char *g = "string";
20097 pcpcc = &g + (g ? g-g : 0);
20098 /* HPUX 7.0 cc rejects these. */
20100 ppc = (char**) pcpcc;
20101 pcpcc = (char const *const *) ppc;
20102 { /* SCO 3.2v4 cc rejects this. */
20104 char const *s = 0 ? (char *) 0 : (char const *) 0;
20109 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20110 int x[] = {25, 17};
20111 const int *foo = &x[0];
20114 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20115 typedef const int *iptr;
20119 { /* AIX XL C 1.02.0.0 rejects this saying
20120 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20121 struct s { int j; const int *ap[3]; };
20122 struct s *b; b->j = 5;
20124 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20125 const int foo = 10;
20126 if (!foo) return 0;
20128 return !cs[0] && !zero.x;
20135 rm -f conftest.$ac_objext
20136 if { (ac_try="$ac_compile"
20137 case "(($ac_try" in
20138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20139 *) ac_try_echo=$ac_try;;
20141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20142 $as_echo "$ac_try_echo") >&5
20143 (eval "$ac_compile") 2>conftest.er1
20145 grep -v '^ *+' conftest.er1 >conftest.err
20147 cat conftest.err >&5
20148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149 (exit $ac_status); } && {
20150 test -z "$ac_c_werror_flag" ||
20151 test ! -s conftest.err
20152 } && test -s conftest.$ac_objext; then
20155 $as_echo "$as_me: failed program was:" >&5
20156 sed 's/^/| /' conftest.$ac_ext >&5
20161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20163 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20164 $as_echo "$ac_cv_c_const" >&6; }
20165 if test $ac_cv_c_const = no; then
20167 cat >>confdefs.h <<\_ACEOF
20173 if test $ac_cv_c_compiler_gnu = yes; then
20174 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
20175 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
20176 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
20177 $as_echo_n "(cached) " >&6
20179 ac_pattern="Autoconf.*'x'"
20180 cat >conftest.$ac_ext <<_ACEOF
20183 cat confdefs.h >>conftest.$ac_ext
20184 cat >>conftest.$ac_ext <<_ACEOF
20185 /* end confdefs.h. */
20189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20190 $EGREP "$ac_pattern" >/dev/null 2>&1; then
20191 ac_cv_prog_gcc_traditional=yes
20193 ac_cv_prog_gcc_traditional=no
20198 if test $ac_cv_prog_gcc_traditional = no; then
20199 cat >conftest.$ac_ext <<_ACEOF
20202 cat confdefs.h >>conftest.$ac_ext
20203 cat >>conftest.$ac_ext <<_ACEOF
20204 /* end confdefs.h. */
20205 #include <termio.h>
20208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20209 $EGREP "$ac_pattern" >/dev/null 2>&1; then
20210 ac_cv_prog_gcc_traditional=yes
20216 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
20217 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
20218 if test $ac_cv_prog_gcc_traditional = yes; then
20219 CC="$CC -traditional"
20229 for ac_header in libutil.h pthread.h sys/prctrl.h utmp.h utmpx.h
20231 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20233 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20234 $as_echo_n "checking for $ac_header... " >&6; }
20235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20236 $as_echo_n "(cached) " >&6
20238 ac_res=`eval 'as_val=${'$as_ac_Header'}
20239 $as_echo "$as_val"'`
20240 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20241 $as_echo "$ac_res" >&6; }
20243 # Is the header compilable?
20244 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20245 $as_echo_n "checking $ac_header usability... " >&6; }
20246 cat >conftest.$ac_ext <<_ACEOF
20249 cat confdefs.h >>conftest.$ac_ext
20250 cat >>conftest.$ac_ext <<_ACEOF
20251 /* end confdefs.h. */
20252 $ac_includes_default
20253 #include <$ac_header>
20255 rm -f conftest.$ac_objext
20256 if { (ac_try="$ac_compile"
20257 case "(($ac_try" in
20258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20259 *) ac_try_echo=$ac_try;;
20261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20262 $as_echo "$ac_try_echo") >&5
20263 (eval "$ac_compile") 2>conftest.er1
20265 grep -v '^ *+' conftest.er1 >conftest.err
20267 cat conftest.err >&5
20268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269 (exit $ac_status); } && {
20270 test -z "$ac_c_werror_flag" ||
20271 test ! -s conftest.err
20272 } && test -s conftest.$ac_objext; then
20273 ac_header_compiler=yes
20275 $as_echo "$as_me: failed program was:" >&5
20276 sed 's/^/| /' conftest.$ac_ext >&5
20278 ac_header_compiler=no
20281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20282 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20283 $as_echo "$ac_header_compiler" >&6; }
20285 # Is the header present?
20286 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20287 $as_echo_n "checking $ac_header presence... " >&6; }
20288 cat >conftest.$ac_ext <<_ACEOF
20291 cat confdefs.h >>conftest.$ac_ext
20292 cat >>conftest.$ac_ext <<_ACEOF
20293 /* end confdefs.h. */
20294 #include <$ac_header>
20296 if { (ac_try="$ac_cpp conftest.$ac_ext"
20297 case "(($ac_try" in
20298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20299 *) ac_try_echo=$ac_try;;
20301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20302 $as_echo "$ac_try_echo") >&5
20303 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20305 grep -v '^ *+' conftest.er1 >conftest.err
20307 cat conftest.err >&5
20308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309 (exit $ac_status); } >/dev/null && {
20310 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20311 test ! -s conftest.err
20313 ac_header_preproc=yes
20315 $as_echo "$as_me: failed program was:" >&5
20316 sed 's/^/| /' conftest.$ac_ext >&5
20318 ac_header_preproc=no
20321 rm -f conftest.err conftest.$ac_ext
20322 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20323 $as_echo "$ac_header_preproc" >&6; }
20325 # So? What about this header?
20326 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20328 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20329 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20330 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20331 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20332 ac_header_preproc=yes
20335 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20336 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20337 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20338 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20339 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20340 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20341 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20342 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20343 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20344 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20345 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20346 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20348 ## ------------------------------------- ##
20349 ## Report this to markus@shellinabox.com ##
20350 ## ------------------------------------- ##
20352 ) | sed "s/^/$as_me: WARNING: /" >&2
20355 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20356 $as_echo_n "checking for $ac_header... " >&6; }
20357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20358 $as_echo_n "(cached) " >&6
20360 eval "$as_ac_Header=\$ac_header_preproc"
20362 ac_res=`eval 'as_val=${'$as_ac_Header'}
20363 $as_echo "$as_val"'`
20364 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20365 $as_echo "$ac_res" >&6; }
20368 as_val=`eval 'as_val=${'$as_ac_Header'}
20369 $as_echo "$as_val"'`
20370 if test "x$as_val" = x""yes; then
20371 cat >>confdefs.h <<_ACEOF
20372 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20381 for ac_func in login_tty
20383 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20384 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20385 $as_echo_n "checking for $ac_func... " >&6; }
20386 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20387 $as_echo_n "(cached) " >&6
20389 cat >conftest.$ac_ext <<_ACEOF
20392 cat confdefs.h >>conftest.$ac_ext
20393 cat >>conftest.$ac_ext <<_ACEOF
20394 /* end confdefs.h. */
20395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20397 #define $ac_func innocuous_$ac_func
20399 /* System header to define __stub macros and hopefully few prototypes,
20400 which can conflict with char $ac_func (); below.
20401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20402 <limits.h> exists even on freestanding compilers. */
20405 # include <limits.h>
20407 # include <assert.h>
20412 /* Override any GCC internal prototype to avoid an error.
20413 Use char because int might match the return type of a GCC
20414 builtin and then its argument prototype would still apply. */
20419 /* The GNU C library defines this for functions which it implements
20420 to always fail with ENOSYS. Some functions are actually named
20421 something starting with __ and the normal name is an alias. */
20422 #if defined __stub_$ac_func || defined __stub___$ac_func
20429 return $ac_func ();
20434 rm -f conftest.$ac_objext conftest$ac_exeext
20435 if { (ac_try="$ac_link"
20436 case "(($ac_try" in
20437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20438 *) ac_try_echo=$ac_try;;
20440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20441 $as_echo "$ac_try_echo") >&5
20442 (eval "$ac_link") 2>conftest.er1
20444 grep -v '^ *+' conftest.er1 >conftest.err
20446 cat conftest.err >&5
20447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448 (exit $ac_status); } && {
20449 test -z "$ac_c_werror_flag" ||
20450 test ! -s conftest.err
20451 } && test -s conftest$ac_exeext && {
20452 test "$cross_compiling" = yes ||
20453 $as_test_x conftest$ac_exeext
20455 eval "$as_ac_var=yes"
20457 $as_echo "$as_me: failed program was:" >&5
20458 sed 's/^/| /' conftest.$ac_ext >&5
20460 eval "$as_ac_var=no"
20463 rm -rf conftest.dSYM
20464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20465 conftest$ac_exeext conftest.$ac_ext
20467 ac_res=`eval 'as_val=${'$as_ac_var'}
20468 $as_echo "$as_val"'`
20469 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20470 $as_echo "$ac_res" >&6; }
20471 as_val=`eval 'as_val=${'$as_ac_var'}
20472 $as_echo "$as_val"'`
20473 if test "x$as_val" = x""yes; then
20474 cat >>confdefs.h <<_ACEOF
20475 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20479 { $as_echo "$as_me:$LINENO: checking for login_tty in -lutil" >&5
20480 $as_echo_n "checking for login_tty in -lutil... " >&6; }
20481 if test "${ac_cv_lib_util_login_tty+set}" = set; then
20482 $as_echo_n "(cached) " >&6
20484 ac_check_lib_save_LIBS=$LIBS
20485 LIBS="-lutil $LIBS"
20486 cat >conftest.$ac_ext <<_ACEOF
20489 cat confdefs.h >>conftest.$ac_ext
20490 cat >>conftest.$ac_ext <<_ACEOF
20491 /* end confdefs.h. */
20493 /* Override any GCC internal prototype to avoid an error.
20494 Use char because int might match the return type of a GCC
20495 builtin and then its argument prototype would still apply. */
20503 return login_tty ();
20508 rm -f conftest.$ac_objext conftest$ac_exeext
20509 if { (ac_try="$ac_link"
20510 case "(($ac_try" in
20511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20512 *) ac_try_echo=$ac_try;;
20514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20515 $as_echo "$ac_try_echo") >&5
20516 (eval "$ac_link") 2>conftest.er1
20518 grep -v '^ *+' conftest.er1 >conftest.err
20520 cat conftest.err >&5
20521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20522 (exit $ac_status); } && {
20523 test -z "$ac_c_werror_flag" ||
20524 test ! -s conftest.err
20525 } && test -s conftest$ac_exeext && {
20526 test "$cross_compiling" = yes ||
20527 $as_test_x conftest$ac_exeext
20529 ac_cv_lib_util_login_tty=yes
20531 $as_echo "$as_me: failed program was:" >&5
20532 sed 's/^/| /' conftest.$ac_ext >&5
20534 ac_cv_lib_util_login_tty=no
20537 rm -rf conftest.dSYM
20538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20539 conftest$ac_exeext conftest.$ac_ext
20540 LIBS=$ac_check_lib_save_LIBS
20542 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_login_tty" >&5
20543 $as_echo "$ac_cv_lib_util_login_tty" >&6; }
20544 if test "x$ac_cv_lib_util_login_tty" = x""yes; then
20545 LIBS="-lutil $LIBS"
20546 cat >>confdefs.h <<\_ACEOF
20547 #define HAVE_LOGIN_TTY 1
20556 cat >conftest.$ac_ext <<_ACEOF
20559 cat confdefs.h >>conftest.$ac_ext
20560 cat >>conftest.$ac_ext <<_ACEOF
20561 /* end confdefs.h. */
20562 #ifndef _XOPEN_SOURCE
20563 #define _XOPEN_SOURCE
20565 #ifndef _GNU_SOURCE
20566 #define _GNU_SOURCE
20568 #include <stdlib.h>
20572 char buf[10]; ptsname_r(0, buf, sizeof(buf));
20577 rm -f conftest.$ac_objext conftest$ac_exeext
20578 if { (ac_try="$ac_link"
20579 case "(($ac_try" in
20580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20581 *) ac_try_echo=$ac_try;;
20583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20584 $as_echo "$ac_try_echo") >&5
20585 (eval "$ac_link") 2>conftest.er1
20587 grep -v '^ *+' conftest.er1 >conftest.err
20589 cat conftest.err >&5
20590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591 (exit $ac_status); } && {
20592 test -z "$ac_c_werror_flag" ||
20593 test ! -s conftest.err
20594 } && test -s conftest$ac_exeext && {
20595 test "$cross_compiling" = yes ||
20596 $as_test_x conftest$ac_exeext
20599 cat >>confdefs.h <<\_ACEOF
20600 #define HAVE_PTSNAME_R 1
20604 $as_echo "$as_me: failed program was:" >&5
20605 sed 's/^/| /' conftest.$ac_ext >&5
20610 rm -rf conftest.dSYM
20611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20612 conftest$ac_exeext conftest.$ac_ext
20614 # Check whether --enable-ssl was given.
20615 if test "${enable_ssl+set}" = set; then
20616 enableval=$enable_ssl;
20620 # Check whether --enable-pam was given.
20621 if test "${enable_pam+set}" = set; then
20622 enableval=$enable_pam;
20626 # Check whether --enable-runtime-loading was given.
20627 if test "${enable_runtime_loading+set}" = set; then
20628 enableval=$enable_runtime_loading;
20632 if test "x$enable_ssl" != xno; then
20636 for ac_header in openssl/bio.h openssl/err.h openssl/ssl.h
20638 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20639 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20640 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20641 $as_echo_n "checking for $ac_header... " >&6; }
20642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20643 $as_echo_n "(cached) " >&6
20645 ac_res=`eval 'as_val=${'$as_ac_Header'}
20646 $as_echo "$as_val"'`
20647 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20648 $as_echo "$ac_res" >&6; }
20650 # Is the header compilable?
20651 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20652 $as_echo_n "checking $ac_header usability... " >&6; }
20653 cat >conftest.$ac_ext <<_ACEOF
20656 cat confdefs.h >>conftest.$ac_ext
20657 cat >>conftest.$ac_ext <<_ACEOF
20658 /* end confdefs.h. */
20659 $ac_includes_default
20660 #include <$ac_header>
20662 rm -f conftest.$ac_objext
20663 if { (ac_try="$ac_compile"
20664 case "(($ac_try" in
20665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20666 *) ac_try_echo=$ac_try;;
20668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20669 $as_echo "$ac_try_echo") >&5
20670 (eval "$ac_compile") 2>conftest.er1
20672 grep -v '^ *+' conftest.er1 >conftest.err
20674 cat conftest.err >&5
20675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676 (exit $ac_status); } && {
20677 test -z "$ac_c_werror_flag" ||
20678 test ! -s conftest.err
20679 } && test -s conftest.$ac_objext; then
20680 ac_header_compiler=yes
20682 $as_echo "$as_me: failed program was:" >&5
20683 sed 's/^/| /' conftest.$ac_ext >&5
20685 ac_header_compiler=no
20688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20689 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20690 $as_echo "$ac_header_compiler" >&6; }
20692 # Is the header present?
20693 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20694 $as_echo_n "checking $ac_header presence... " >&6; }
20695 cat >conftest.$ac_ext <<_ACEOF
20698 cat confdefs.h >>conftest.$ac_ext
20699 cat >>conftest.$ac_ext <<_ACEOF
20700 /* end confdefs.h. */
20701 #include <$ac_header>
20703 if { (ac_try="$ac_cpp conftest.$ac_ext"
20704 case "(($ac_try" in
20705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20706 *) ac_try_echo=$ac_try;;
20708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20709 $as_echo "$ac_try_echo") >&5
20710 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20712 grep -v '^ *+' conftest.er1 >conftest.err
20714 cat conftest.err >&5
20715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716 (exit $ac_status); } >/dev/null && {
20717 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20718 test ! -s conftest.err
20720 ac_header_preproc=yes
20722 $as_echo "$as_me: failed program was:" >&5
20723 sed 's/^/| /' conftest.$ac_ext >&5
20725 ac_header_preproc=no
20728 rm -f conftest.err conftest.$ac_ext
20729 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20730 $as_echo "$ac_header_preproc" >&6; }
20732 # So? What about this header?
20733 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20735 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20736 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20737 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20738 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20739 ac_header_preproc=yes
20742 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20743 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20744 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20745 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20746 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20747 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20748 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20749 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20750 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20751 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20752 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20753 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20755 ## ------------------------------------- ##
20756 ## Report this to markus@shellinabox.com ##
20757 ## ------------------------------------- ##
20759 ) | sed "s/^/$as_me: WARNING: /" >&2
20762 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20763 $as_echo_n "checking for $ac_header... " >&6; }
20764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20765 $as_echo_n "(cached) " >&6
20767 eval "$as_ac_Header=\$ac_header_preproc"
20769 ac_res=`eval 'as_val=${'$as_ac_Header'}
20770 $as_echo "$as_val"'`
20771 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20772 $as_echo "$ac_res" >&6; }
20775 as_val=`eval 'as_val=${'$as_ac_Header'}
20776 $as_echo "$as_val"'`
20777 if test "x$as_val" = x""yes; then
20778 cat >>confdefs.h <<_ACEOF
20779 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20788 if test "x$enable_pam" != xno; then
20792 for ac_header in security/pam_appl.h security/pam_client.h \
20793 security/pam_misc.h
20795 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20797 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20798 $as_echo_n "checking for $ac_header... " >&6; }
20799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20800 $as_echo_n "(cached) " >&6
20802 ac_res=`eval 'as_val=${'$as_ac_Header'}
20803 $as_echo "$as_val"'`
20804 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20805 $as_echo "$ac_res" >&6; }
20807 # Is the header compilable?
20808 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20809 $as_echo_n "checking $ac_header usability... " >&6; }
20810 cat >conftest.$ac_ext <<_ACEOF
20813 cat confdefs.h >>conftest.$ac_ext
20814 cat >>conftest.$ac_ext <<_ACEOF
20815 /* end confdefs.h. */
20816 $ac_includes_default
20817 #include <$ac_header>
20819 rm -f conftest.$ac_objext
20820 if { (ac_try="$ac_compile"
20821 case "(($ac_try" in
20822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20823 *) ac_try_echo=$ac_try;;
20825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20826 $as_echo "$ac_try_echo") >&5
20827 (eval "$ac_compile") 2>conftest.er1
20829 grep -v '^ *+' conftest.er1 >conftest.err
20831 cat conftest.err >&5
20832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20833 (exit $ac_status); } && {
20834 test -z "$ac_c_werror_flag" ||
20835 test ! -s conftest.err
20836 } && test -s conftest.$ac_objext; then
20837 ac_header_compiler=yes
20839 $as_echo "$as_me: failed program was:" >&5
20840 sed 's/^/| /' conftest.$ac_ext >&5
20842 ac_header_compiler=no
20845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20846 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20847 $as_echo "$ac_header_compiler" >&6; }
20849 # Is the header present?
20850 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20851 $as_echo_n "checking $ac_header presence... " >&6; }
20852 cat >conftest.$ac_ext <<_ACEOF
20855 cat confdefs.h >>conftest.$ac_ext
20856 cat >>conftest.$ac_ext <<_ACEOF
20857 /* end confdefs.h. */
20858 #include <$ac_header>
20860 if { (ac_try="$ac_cpp conftest.$ac_ext"
20861 case "(($ac_try" in
20862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20863 *) ac_try_echo=$ac_try;;
20865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20866 $as_echo "$ac_try_echo") >&5
20867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20869 grep -v '^ *+' conftest.er1 >conftest.err
20871 cat conftest.err >&5
20872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873 (exit $ac_status); } >/dev/null && {
20874 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20875 test ! -s conftest.err
20877 ac_header_preproc=yes
20879 $as_echo "$as_me: failed program was:" >&5
20880 sed 's/^/| /' conftest.$ac_ext >&5
20882 ac_header_preproc=no
20885 rm -f conftest.err conftest.$ac_ext
20886 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20887 $as_echo "$ac_header_preproc" >&6; }
20889 # So? What about this header?
20890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20892 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20893 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20894 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20895 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20896 ac_header_preproc=yes
20899 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20900 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20901 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20902 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20903 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20904 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20905 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20906 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20907 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20908 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20909 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20910 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20912 ## ------------------------------------- ##
20913 ## Report this to markus@shellinabox.com ##
20914 ## ------------------------------------- ##
20916 ) | sed "s/^/$as_me: WARNING: /" >&2
20919 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20920 $as_echo_n "checking for $ac_header... " >&6; }
20921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20922 $as_echo_n "(cached) " >&6
20924 eval "$as_ac_Header=\$ac_header_preproc"
20926 ac_res=`eval 'as_val=${'$as_ac_Header'}
20927 $as_echo "$as_val"'`
20928 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20929 $as_echo "$ac_res" >&6; }
20932 as_val=`eval 'as_val=${'$as_ac_Header'}
20933 $as_echo "$as_val"'`
20934 if test "x$as_val" = x""yes; then
20935 cat >>confdefs.h <<_ACEOF
20936 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20945 if test "x$enable_runtime_loading" != xno; then
20947 for ac_func in dlopen
20949 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20950 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20951 $as_echo_n "checking for $ac_func... " >&6; }
20952 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20953 $as_echo_n "(cached) " >&6
20955 cat >conftest.$ac_ext <<_ACEOF
20958 cat confdefs.h >>conftest.$ac_ext
20959 cat >>conftest.$ac_ext <<_ACEOF
20960 /* end confdefs.h. */
20961 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20963 #define $ac_func innocuous_$ac_func
20965 /* System header to define __stub macros and hopefully few prototypes,
20966 which can conflict with char $ac_func (); below.
20967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20968 <limits.h> exists even on freestanding compilers. */
20971 # include <limits.h>
20973 # include <assert.h>
20978 /* Override any GCC internal prototype to avoid an error.
20979 Use char because int might match the return type of a GCC
20980 builtin and then its argument prototype would still apply. */
20985 /* The GNU C library defines this for functions which it implements
20986 to always fail with ENOSYS. Some functions are actually named
20987 something starting with __ and the normal name is an alias. */
20988 #if defined __stub_$ac_func || defined __stub___$ac_func
20995 return $ac_func ();
21000 rm -f conftest.$ac_objext conftest$ac_exeext
21001 if { (ac_try="$ac_link"
21002 case "(($ac_try" in
21003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21004 *) ac_try_echo=$ac_try;;
21006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21007 $as_echo "$ac_try_echo") >&5
21008 (eval "$ac_link") 2>conftest.er1
21010 grep -v '^ *+' conftest.er1 >conftest.err
21012 cat conftest.err >&5
21013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014 (exit $ac_status); } && {
21015 test -z "$ac_c_werror_flag" ||
21016 test ! -s conftest.err
21017 } && test -s conftest$ac_exeext && {
21018 test "$cross_compiling" = yes ||
21019 $as_test_x conftest$ac_exeext
21021 eval "$as_ac_var=yes"
21023 $as_echo "$as_me: failed program was:" >&5
21024 sed 's/^/| /' conftest.$ac_ext >&5
21026 eval "$as_ac_var=no"
21029 rm -rf conftest.dSYM
21030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21031 conftest$ac_exeext conftest.$ac_ext
21033 ac_res=`eval 'as_val=${'$as_ac_var'}
21034 $as_echo "$as_val"'`
21035 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21036 $as_echo "$ac_res" >&6; }
21037 as_val=`eval 'as_val=${'$as_ac_var'}
21038 $as_echo "$as_val"'`
21039 if test "x$as_val" = x""yes; then
21040 cat >>confdefs.h <<_ACEOF
21041 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21045 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21046 $as_echo_n "checking for dlopen in -ldl... " >&6; }
21047 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21048 $as_echo_n "(cached) " >&6
21050 ac_check_lib_save_LIBS=$LIBS
21052 cat >conftest.$ac_ext <<_ACEOF
21055 cat confdefs.h >>conftest.$ac_ext
21056 cat >>conftest.$ac_ext <<_ACEOF
21057 /* end confdefs.h. */
21059 /* Override any GCC internal prototype to avoid an error.
21060 Use char because int might match the return type of a GCC
21061 builtin and then its argument prototype would still apply. */
21074 rm -f conftest.$ac_objext conftest$ac_exeext
21075 if { (ac_try="$ac_link"
21076 case "(($ac_try" in
21077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21078 *) ac_try_echo=$ac_try;;
21080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21081 $as_echo "$ac_try_echo") >&5
21082 (eval "$ac_link") 2>conftest.er1
21084 grep -v '^ *+' conftest.er1 >conftest.err
21086 cat conftest.err >&5
21087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088 (exit $ac_status); } && {
21089 test -z "$ac_c_werror_flag" ||
21090 test ! -s conftest.err
21091 } && test -s conftest$ac_exeext && {
21092 test "$cross_compiling" = yes ||
21093 $as_test_x conftest$ac_exeext
21095 ac_cv_lib_dl_dlopen=yes
21097 $as_echo "$as_me: failed program was:" >&5
21098 sed 's/^/| /' conftest.$ac_ext >&5
21100 ac_cv_lib_dl_dlopen=no
21103 rm -rf conftest.dSYM
21104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21105 conftest$ac_exeext conftest.$ac_ext
21106 LIBS=$ac_check_lib_save_LIBS
21108 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21109 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
21110 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
21112 cat >>confdefs.h <<\_ACEOF
21113 #define HAVE_DLOPEN 1
21117 enable_runtime_loading=no
21125 if test "x$enable_runtime_loading" == xno; then
21126 if test "x$enable_ssl" != xno; then
21127 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
21128 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
21129 $as_echo_n "checking for openssl/ssl.h... " >&6; }
21130 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
21131 $as_echo_n "(cached) " >&6
21133 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
21134 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
21136 # Is the header compilable?
21137 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
21138 $as_echo_n "checking openssl/ssl.h usability... " >&6; }
21139 cat >conftest.$ac_ext <<_ACEOF
21142 cat confdefs.h >>conftest.$ac_ext
21143 cat >>conftest.$ac_ext <<_ACEOF
21144 /* end confdefs.h. */
21145 $ac_includes_default
21146 #include <openssl/ssl.h>
21148 rm -f conftest.$ac_objext
21149 if { (ac_try="$ac_compile"
21150 case "(($ac_try" in
21151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21152 *) ac_try_echo=$ac_try;;
21154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21155 $as_echo "$ac_try_echo") >&5
21156 (eval "$ac_compile") 2>conftest.er1
21158 grep -v '^ *+' conftest.er1 >conftest.err
21160 cat conftest.err >&5
21161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21162 (exit $ac_status); } && {
21163 test -z "$ac_c_werror_flag" ||
21164 test ! -s conftest.err
21165 } && test -s conftest.$ac_objext; then
21166 ac_header_compiler=yes
21168 $as_echo "$as_me: failed program was:" >&5
21169 sed 's/^/| /' conftest.$ac_ext >&5
21171 ac_header_compiler=no
21174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21175 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21176 $as_echo "$ac_header_compiler" >&6; }
21178 # Is the header present?
21179 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
21180 $as_echo_n "checking openssl/ssl.h presence... " >&6; }
21181 cat >conftest.$ac_ext <<_ACEOF
21184 cat confdefs.h >>conftest.$ac_ext
21185 cat >>conftest.$ac_ext <<_ACEOF
21186 /* end confdefs.h. */
21187 #include <openssl/ssl.h>
21189 if { (ac_try="$ac_cpp conftest.$ac_ext"
21190 case "(($ac_try" in
21191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21192 *) ac_try_echo=$ac_try;;
21194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21195 $as_echo "$ac_try_echo") >&5
21196 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21198 grep -v '^ *+' conftest.er1 >conftest.err
21200 cat conftest.err >&5
21201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202 (exit $ac_status); } >/dev/null && {
21203 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21204 test ! -s conftest.err
21206 ac_header_preproc=yes
21208 $as_echo "$as_me: failed program was:" >&5
21209 sed 's/^/| /' conftest.$ac_ext >&5
21211 ac_header_preproc=no
21214 rm -f conftest.err conftest.$ac_ext
21215 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21216 $as_echo "$ac_header_preproc" >&6; }
21218 # So? What about this header?
21219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21221 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
21222 $as_echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21223 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
21224 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
21225 ac_header_preproc=yes
21228 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
21229 $as_echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
21230 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
21231 $as_echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
21232 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
21233 $as_echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
21234 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
21235 $as_echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
21236 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
21237 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
21238 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
21239 $as_echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
21241 ## ------------------------------------- ##
21242 ## Report this to markus@shellinabox.com ##
21243 ## ------------------------------------- ##
21245 ) | sed "s/^/$as_me: WARNING: /" >&2
21248 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
21249 $as_echo_n "checking for openssl/ssl.h... " >&6; }
21250 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
21251 $as_echo_n "(cached) " >&6
21253 ac_cv_header_openssl_ssl_h=$ac_header_preproc
21255 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
21256 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
21259 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then
21266 if test "x$enable_pam" != xno; then
21267 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
21268 { $as_echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
21269 $as_echo_n "checking for security/pam_appl.h... " >&6; }
21270 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
21271 $as_echo_n "(cached) " >&6
21273 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
21274 $as_echo "$ac_cv_header_security_pam_appl_h" >&6; }
21276 # Is the header compilable?
21277 { $as_echo "$as_me:$LINENO: checking security/pam_appl.h usability" >&5
21278 $as_echo_n "checking security/pam_appl.h usability... " >&6; }
21279 cat >conftest.$ac_ext <<_ACEOF
21282 cat confdefs.h >>conftest.$ac_ext
21283 cat >>conftest.$ac_ext <<_ACEOF
21284 /* end confdefs.h. */
21285 $ac_includes_default
21286 #include <security/pam_appl.h>
21288 rm -f conftest.$ac_objext
21289 if { (ac_try="$ac_compile"
21290 case "(($ac_try" in
21291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21292 *) ac_try_echo=$ac_try;;
21294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21295 $as_echo "$ac_try_echo") >&5
21296 (eval "$ac_compile") 2>conftest.er1
21298 grep -v '^ *+' conftest.er1 >conftest.err
21300 cat conftest.err >&5
21301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302 (exit $ac_status); } && {
21303 test -z "$ac_c_werror_flag" ||
21304 test ! -s conftest.err
21305 } && test -s conftest.$ac_objext; then
21306 ac_header_compiler=yes
21308 $as_echo "$as_me: failed program was:" >&5
21309 sed 's/^/| /' conftest.$ac_ext >&5
21311 ac_header_compiler=no
21314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21315 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21316 $as_echo "$ac_header_compiler" >&6; }
21318 # Is the header present?
21319 { $as_echo "$as_me:$LINENO: checking security/pam_appl.h presence" >&5
21320 $as_echo_n "checking security/pam_appl.h presence... " >&6; }
21321 cat >conftest.$ac_ext <<_ACEOF
21324 cat confdefs.h >>conftest.$ac_ext
21325 cat >>conftest.$ac_ext <<_ACEOF
21326 /* end confdefs.h. */
21327 #include <security/pam_appl.h>
21329 if { (ac_try="$ac_cpp conftest.$ac_ext"
21330 case "(($ac_try" in
21331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21332 *) ac_try_echo=$ac_try;;
21334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21335 $as_echo "$ac_try_echo") >&5
21336 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21338 grep -v '^ *+' conftest.er1 >conftest.err
21340 cat conftest.err >&5
21341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342 (exit $ac_status); } >/dev/null && {
21343 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21344 test ! -s conftest.err
21346 ac_header_preproc=yes
21348 $as_echo "$as_me: failed program was:" >&5
21349 sed 's/^/| /' conftest.$ac_ext >&5
21351 ac_header_preproc=no
21354 rm -f conftest.err conftest.$ac_ext
21355 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21356 $as_echo "$ac_header_preproc" >&6; }
21358 # So? What about this header?
21359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21361 { $as_echo "$as_me:$LINENO: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&5
21362 $as_echo "$as_me: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21363 { $as_echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the compiler's result" >&5
21364 $as_echo "$as_me: WARNING: security/pam_appl.h: proceeding with the compiler's result" >&2;}
21365 ac_header_preproc=yes
21368 { $as_echo "$as_me:$LINENO: WARNING: security/pam_appl.h: present but cannot be compiled" >&5
21369 $as_echo "$as_me: WARNING: security/pam_appl.h: present but cannot be compiled" >&2;}
21370 { $as_echo "$as_me:$LINENO: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&5
21371 $as_echo "$as_me: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&2;}
21372 { $as_echo "$as_me:$LINENO: WARNING: security/pam_appl.h: see the Autoconf documentation" >&5
21373 $as_echo "$as_me: WARNING: security/pam_appl.h: see the Autoconf documentation" >&2;}
21374 { $as_echo "$as_me:$LINENO: WARNING: security/pam_appl.h: section \"Present But Cannot Be Compiled\"" >&5
21375 $as_echo "$as_me: WARNING: security/pam_appl.h: section \"Present But Cannot Be Compiled\"" >&2;}
21376 { $as_echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
21377 $as_echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;}
21378 { $as_echo "$as_me:$LINENO: WARNING: security/pam_appl.h: in the future, the compiler will take precedence" >&5
21379 $as_echo "$as_me: WARNING: security/pam_appl.h: in the future, the compiler will take precedence" >&2;}
21381 ## ------------------------------------- ##
21382 ## Report this to markus@shellinabox.com ##
21383 ## ------------------------------------- ##
21385 ) | sed "s/^/$as_me: WARNING: /" >&2
21388 { $as_echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
21389 $as_echo_n "checking for security/pam_appl.h... " >&6; }
21390 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
21391 $as_echo_n "(cached) " >&6
21393 ac_cv_header_security_pam_appl_h=$ac_header_preproc
21395 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
21396 $as_echo "$ac_cv_header_security_pam_appl_h" >&6; }
21399 if test "x$ac_cv_header_security_pam_appl_h" = x""yes; then
21404 if test "${ac_cv_header_security_pam_misc_h+set}" = set; then
21405 { $as_echo "$as_me:$LINENO: checking for security/pam_misc.h" >&5
21406 $as_echo_n "checking for security/pam_misc.h... " >&6; }
21407 if test "${ac_cv_header_security_pam_misc_h+set}" = set; then
21408 $as_echo_n "(cached) " >&6
21410 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_misc_h" >&5
21411 $as_echo "$ac_cv_header_security_pam_misc_h" >&6; }
21413 # Is the header compilable?
21414 { $as_echo "$as_me:$LINENO: checking security/pam_misc.h usability" >&5
21415 $as_echo_n "checking security/pam_misc.h usability... " >&6; }
21416 cat >conftest.$ac_ext <<_ACEOF
21419 cat confdefs.h >>conftest.$ac_ext
21420 cat >>conftest.$ac_ext <<_ACEOF
21421 /* end confdefs.h. */
21422 $ac_includes_default
21423 #include <security/pam_misc.h>
21425 rm -f conftest.$ac_objext
21426 if { (ac_try="$ac_compile"
21427 case "(($ac_try" in
21428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21429 *) ac_try_echo=$ac_try;;
21431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21432 $as_echo "$ac_try_echo") >&5
21433 (eval "$ac_compile") 2>conftest.er1
21435 grep -v '^ *+' conftest.er1 >conftest.err
21437 cat conftest.err >&5
21438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21439 (exit $ac_status); } && {
21440 test -z "$ac_c_werror_flag" ||
21441 test ! -s conftest.err
21442 } && test -s conftest.$ac_objext; then
21443 ac_header_compiler=yes
21445 $as_echo "$as_me: failed program was:" >&5
21446 sed 's/^/| /' conftest.$ac_ext >&5
21448 ac_header_compiler=no
21451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21452 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21453 $as_echo "$ac_header_compiler" >&6; }
21455 # Is the header present?
21456 { $as_echo "$as_me:$LINENO: checking security/pam_misc.h presence" >&5
21457 $as_echo_n "checking security/pam_misc.h presence... " >&6; }
21458 cat >conftest.$ac_ext <<_ACEOF
21461 cat confdefs.h >>conftest.$ac_ext
21462 cat >>conftest.$ac_ext <<_ACEOF
21463 /* end confdefs.h. */
21464 #include <security/pam_misc.h>
21466 if { (ac_try="$ac_cpp conftest.$ac_ext"
21467 case "(($ac_try" in
21468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21469 *) ac_try_echo=$ac_try;;
21471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21472 $as_echo "$ac_try_echo") >&5
21473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21475 grep -v '^ *+' conftest.er1 >conftest.err
21477 cat conftest.err >&5
21478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479 (exit $ac_status); } >/dev/null && {
21480 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21481 test ! -s conftest.err
21483 ac_header_preproc=yes
21485 $as_echo "$as_me: failed program was:" >&5
21486 sed 's/^/| /' conftest.$ac_ext >&5
21488 ac_header_preproc=no
21491 rm -f conftest.err conftest.$ac_ext
21492 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21493 $as_echo "$ac_header_preproc" >&6; }
21495 # So? What about this header?
21496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21498 { $as_echo "$as_me:$LINENO: WARNING: security/pam_misc.h: accepted by the compiler, rejected by the preprocessor!" >&5
21499 $as_echo "$as_me: WARNING: security/pam_misc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21500 { $as_echo "$as_me:$LINENO: WARNING: security/pam_misc.h: proceeding with the compiler's result" >&5
21501 $as_echo "$as_me: WARNING: security/pam_misc.h: proceeding with the compiler's result" >&2;}
21502 ac_header_preproc=yes
21505 { $as_echo "$as_me:$LINENO: WARNING: security/pam_misc.h: present but cannot be compiled" >&5
21506 $as_echo "$as_me: WARNING: security/pam_misc.h: present but cannot be compiled" >&2;}
21507 { $as_echo "$as_me:$LINENO: WARNING: security/pam_misc.h: check for missing prerequisite headers?" >&5
21508 $as_echo "$as_me: WARNING: security/pam_misc.h: check for missing prerequisite headers?" >&2;}
21509 { $as_echo "$as_me:$LINENO: WARNING: security/pam_misc.h: see the Autoconf documentation" >&5
21510 $as_echo "$as_me: WARNING: security/pam_misc.h: see the Autoconf documentation" >&2;}
21511 { $as_echo "$as_me:$LINENO: WARNING: security/pam_misc.h: section \"Present But Cannot Be Compiled\"" >&5
21512 $as_echo "$as_me: WARNING: security/pam_misc.h: section \"Present But Cannot Be Compiled\"" >&2;}
21513 { $as_echo "$as_me:$LINENO: WARNING: security/pam_misc.h: proceeding with the preprocessor's result" >&5
21514 $as_echo "$as_me: WARNING: security/pam_misc.h: proceeding with the preprocessor's result" >&2;}
21515 { $as_echo "$as_me:$LINENO: WARNING: security/pam_misc.h: in the future, the compiler will take precedence" >&5
21516 $as_echo "$as_me: WARNING: security/pam_misc.h: in the future, the compiler will take precedence" >&2;}
21518 ## ------------------------------------- ##
21519 ## Report this to markus@shellinabox.com ##
21520 ## ------------------------------------- ##
21522 ) | sed "s/^/$as_me: WARNING: /" >&2
21525 { $as_echo "$as_me:$LINENO: checking for security/pam_misc.h" >&5
21526 $as_echo_n "checking for security/pam_misc.h... " >&6; }
21527 if test "${ac_cv_header_security_pam_misc_h+set}" = set; then
21528 $as_echo_n "(cached) " >&6
21530 ac_cv_header_security_pam_misc_h=$ac_header_preproc
21532 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_misc_h" >&5
21533 $as_echo "$ac_cv_header_security_pam_misc_h" >&6; }
21536 if test "x$ac_cv_header_security_pam_misc_h" = x""yes; then
21537 LIBS="-lpam_misc $LIBS"
21544 ac_config_files="$ac_config_files Makefile"
21546 cat >confcache <<\_ACEOF
21547 # This file is a shell script that caches the results of configure
21548 # tests run on this system so they can be shared between configure
21549 # scripts and configure runs, see configure's option --config-cache.
21550 # It is not useful on other systems. If it contains results you don't
21551 # want to keep, you may remove or edit it.
21553 # config.status only pays attention to the cache file if you give it
21554 # the --recheck option to rerun configure.
21556 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21557 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21558 # following values.
21562 # The following way of writing the cache mishandles newlines in values,
21563 # but we know of no workaround that is simple, portable, and efficient.
21564 # So, we kill variables containing newlines.
21565 # Ultrix sh set writes to stderr and can't be redirected directly,
21566 # and sets the high bit in the cache file unless we assign to the vars.
21568 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21569 eval ac_val=\$$ac_var
21573 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
21574 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21577 _ | IFS | as_nl) ;; #(
21578 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21579 *) $as_unset $ac_var ;;
21585 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21586 *${as_nl}ac_space=\ *)
21587 # `set' does not quote correctly, so add quotes (double-quote
21588 # substitution turns \\\\ into \\, and sed turns \\ into \).
21591 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21594 # `set' quotes correctly as required by POSIX, so do not add quotes.
21595 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21604 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21606 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21608 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21609 if test -w "$cache_file"; then
21610 test "x$cache_file" != "x/dev/null" &&
21611 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
21612 $as_echo "$as_me: updating cache $cache_file" >&6;}
21613 cat confcache >$cache_file
21615 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21616 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21621 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21622 # Let make expand exec_prefix.
21623 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21625 DEFS=-DHAVE_CONFIG_H
21629 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21630 # 1. Remove the extension, and $U if already installed.
21631 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21632 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21633 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21634 # will be set to the directory where LIBOBJS objects are built.
21635 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21636 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21638 LIBOBJS=$ac_libobjs
21640 LTLIBOBJS=$ac_ltlibobjs
21643 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21644 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21645 Usually this means the macro was only invoked conditionally." >&5
21646 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
21647 Usually this means the macro was only invoked conditionally." >&2;}
21648 { (exit 1); exit 1; }; }
21650 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21651 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21652 Usually this means the macro was only invoked conditionally." >&5
21653 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21654 Usually this means the macro was only invoked conditionally." >&2;}
21655 { (exit 1); exit 1; }; }
21657 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21658 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21659 Usually this means the macro was only invoked conditionally." >&5
21660 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21661 Usually this means the macro was only invoked conditionally." >&2;}
21662 { (exit 1); exit 1; }; }
21665 : ${CONFIG_STATUS=./config.status}
21667 ac_clean_files_save=$ac_clean_files
21668 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21669 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21670 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21671 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21673 # Generated by $as_me.
21674 # Run this file to recreate the current configuration.
21675 # Compiler output produced by configure, useful for debugging
21676 # configure, is in config.log if it exists.
21679 ac_cs_recheck=false
21681 SHELL=\${CONFIG_SHELL-$SHELL}
21684 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21685 ## --------------------- ##
21686 ## M4sh Initialization. ##
21687 ## --------------------- ##
21689 # Be more Bourne compatible
21690 DUALCASE=1; export DUALCASE # for MKS sh
21691 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21694 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21695 # is contrary to our usage. Disable this feature.
21696 alias -g '${1+"$@"}'='"$@"'
21697 setopt NO_GLOB_SUBST
21699 case `(set -o) 2>/dev/null` in
21700 *posix*) set -o posix ;;
21709 # Avoid depending upon Character Ranges.
21710 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21711 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21712 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21713 as_cr_digits='0123456789'
21714 as_cr_alnum=$as_cr_Letters$as_cr_digits
21719 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21720 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21721 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21722 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21723 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21724 as_echo='printf %s\n'
21725 as_echo_n='printf %s'
21727 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21728 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21729 as_echo_n='/usr/ucb/echo -n'
21731 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21732 as_echo_n_body='eval
21736 expr "X$arg" : "X\\(.*\\)$as_nl";
21737 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21739 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21741 export as_echo_n_body
21742 as_echo_n='sh -c $as_echo_n_body as_echo'
21744 export as_echo_body
21745 as_echo='sh -c $as_echo_body as_echo'
21748 # The user is always right.
21749 if test "${PATH_SEPARATOR+set}" != set; then
21751 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21752 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21757 # Support unset when possible.
21758 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21766 # We need space, tab and new line, in precisely that order. Quoting is
21767 # there to prevent editors from complaining about space-tab.
21768 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21769 # splitting by setting IFS to empty value.)
21772 # Find who we are. Look in the path if we contain no directory separator.
21774 *[\\/]* ) as_myself=$0 ;;
21775 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21776 for as_dir in $PATH
21779 test -z "$as_dir" && as_dir=.
21780 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21786 # We did not find ourselves, most probably we were run as `sh COMMAND'
21787 # in which case we are not to be found in the path.
21788 if test "x$as_myself" = x; then
21791 if test ! -f "$as_myself"; then
21792 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21793 { (exit 1); exit 1; }
21796 # Work around bugs in pre-3.0 UWIN ksh.
21797 for as_var in ENV MAIL MAILPATH
21798 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21810 # Required to use basename.
21811 if expr a : '\(a\)' >/dev/null 2>&1 &&
21812 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21818 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21819 as_basename=basename
21825 # Name of the executable.
21826 as_me=`$as_basename -- "$0" ||
21827 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21828 X"$0" : 'X\(//\)$' \| \
21829 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21831 sed '/^.*\/\([^/][^/]*\)\/*$/{
21850 as_lineno_1=$LINENO
21851 as_lineno_2=$LINENO
21852 test "x$as_lineno_1" != "x$as_lineno_2" &&
21853 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21855 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21856 # uniformly replaced by the line number. The first 'sed' inserts a
21857 # line-number line after each line using $LINENO; the second 'sed'
21858 # does the real work. The second script uses 'N' to pair each
21859 # line-number line with the line containing $LINENO, and appends
21860 # trailing '-' during substitution so that $LINENO is not a special
21861 # case at line end.
21862 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21863 # scripts with optimization help from Paolo Bonzini. Blame Lee
21864 # E. McMahon (1931-1989) for sed's syntax. :-)
21876 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21879 ' >$as_me.lineno &&
21880 chmod +x "$as_me.lineno" ||
21881 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21882 { (exit 1); exit 1; }; }
21884 # Don't try to exec as it changes $[0], causing all sort of problems
21885 # (the dirname of $[0] is not the place where we might find the
21886 # original and so on. Autoconf is especially sensitive to this).
21887 . "./$as_me.lineno"
21888 # Exit status is that of the last command.
21893 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21899 ECHO_C= ECHO_N= ECHO_T=
21900 case `echo -n x` in
21902 case `echo 'x\c'` in
21903 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21909 if expr a : '\(a\)' >/dev/null 2>&1 &&
21910 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21916 rm -f conf$$ conf$$.exe conf$$.file
21917 if test -d conf$$.dir; then
21918 rm -f conf$$.dir/conf$$.file
21921 mkdir conf$$.dir 2>/dev/null
21923 if (echo >conf$$.file) 2>/dev/null; then
21924 if ln -s conf$$.file conf$$ 2>/dev/null; then
21926 # ... but there are two gotchas:
21927 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21928 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21929 # In both cases, we have to default to `cp -p'.
21930 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21932 elif ln conf$$.file conf$$ 2>/dev/null; then
21940 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21941 rmdir conf$$.dir 2>/dev/null
21943 if mkdir -p . 2>/dev/null; then
21946 test -d ./-p && rmdir ./-p
21950 if test -x / >/dev/null 2>&1; then
21951 as_test_x='test -x'
21953 if ls -dL / >/dev/null 2>&1; then
21960 if test -d "$1"; then
21966 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21967 ???[sx]*):;;*)false;;esac;fi
21971 as_executable_p=$as_test_x
21973 # Sed expression to map a string onto a valid CPP name.
21974 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21976 # Sed expression to map a string onto a valid variable name.
21977 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21982 # Save the log message, to keep $[0] and so on meaningful, and to
21983 # report actual input values of CONFIG_FILES etc. instead of their
21984 # values after options handling.
21986 This file was extended by shellinabox $as_me 2.7, which was
21987 generated by GNU Autoconf 2.63. Invocation command line was
21989 CONFIG_FILES = $CONFIG_FILES
21990 CONFIG_HEADERS = $CONFIG_HEADERS
21991 CONFIG_LINKS = $CONFIG_LINKS
21992 CONFIG_COMMANDS = $CONFIG_COMMANDS
21995 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22000 case $ac_config_files in *"
22001 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22004 case $ac_config_headers in *"
22005 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22010 # Files that config.status was made for.
22011 config_files="$ac_config_files"
22012 config_headers="$ac_config_headers"
22013 config_commands="$ac_config_commands"
22017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22019 \`$as_me' instantiates files from templates according to the
22020 current configuration.
22022 Usage: $0 [OPTION]... [FILE]...
22024 -h, --help print this help, then exit
22025 -V, --version print version number and configuration settings, then exit
22026 -q, --quiet, --silent
22027 do not print progress messages
22028 -d, --debug don't remove temporary files
22029 --recheck update $as_me by reconfiguring in the same conditions
22030 --file=FILE[:TEMPLATE]
22031 instantiate the configuration file FILE
22032 --header=FILE[:TEMPLATE]
22033 instantiate the configuration header FILE
22035 Configuration files:
22038 Configuration headers:
22041 Configuration commands:
22044 Report bugs to <bug-autoconf@gnu.org>."
22047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22049 shellinabox config.status 2.7
22050 configured by $0, generated by GNU Autoconf 2.63,
22051 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22053 Copyright (C) 2008 Free Software Foundation, Inc.
22054 This config.status script is free software; the Free Software Foundation
22055 gives unlimited permission to copy, distribute and modify it."
22062 test -n "\$AWK" || AWK=awk
22065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22066 # The default lists apply if the user does not specify any file.
22072 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22073 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22084 # Handling of the options.
22085 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22087 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22088 $as_echo "$ac_cs_version"; exit ;;
22089 --debug | --debu | --deb | --de | --d | -d )
22091 --file | --fil | --fi | --f )
22094 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22096 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
22097 ac_need_defaults=false;;
22098 --header | --heade | --head | --hea )
22101 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22103 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
22104 ac_need_defaults=false;;
22106 # Conflict between --help and --header
22107 { $as_echo "$as_me: error: ambiguous option: $1
22108 Try \`$0 --help' for more information." >&2
22109 { (exit 1); exit 1; }; };;
22110 --help | --hel | -h )
22111 $as_echo "$ac_cs_usage"; exit ;;
22112 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22113 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22116 # This is an error.
22117 -*) { $as_echo "$as_me: error: unrecognized option: $1
22118 Try \`$0 --help' for more information." >&2
22119 { (exit 1); exit 1; }; } ;;
22121 *) ac_config_targets="$ac_config_targets $1"
22122 ac_need_defaults=false ;;
22128 ac_configure_extra_args=
22130 if $ac_cs_silent; then
22132 ac_configure_extra_args="$ac_configure_extra_args --silent"
22136 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22137 if \$ac_cs_recheck; then
22138 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22140 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22141 CONFIG_SHELL='$SHELL'
22142 export CONFIG_SHELL
22147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22151 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22152 ## Running $as_me. ##
22158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22162 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22166 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22168 # Handling of arguments.
22169 for ac_config_target in $ac_config_targets
22171 case $ac_config_target in
22172 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22173 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22174 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22176 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22177 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22178 { (exit 1); exit 1; }; };;
22183 # If the user did not use the arguments to specify the items to instantiate,
22184 # then the envvar interface is used. Set only those that are not.
22185 # We use the long form for the default assignment because of an extremely
22186 # bizarre bug on SunOS 4.1.3.
22187 if $ac_need_defaults; then
22188 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22189 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22190 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22193 # Have a temporary directory for convenience. Make it in the build tree
22194 # simply because there is no reason against having it here, and in addition,
22195 # creating and moving files from /tmp can sometimes cause problems.
22196 # Hook for its removal unless debugging.
22197 # Note that there is a small window in which the directory will not be cleaned:
22198 # after its creation but before its name has been assigned to `$tmp'.
22202 trap 'exit_status=$?
22203 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22205 trap '{ (exit 1); exit 1; }' 1 2 13 15
22207 # Create a (secure) tmp directory for tmp files.
22210 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22211 test -n "$tmp" && test -d "$tmp"
22214 tmp=./conf$$-$RANDOM
22215 (umask 077 && mkdir "$tmp")
22218 $as_echo "$as_me: cannot create a temporary directory in ." >&2
22219 { (exit 1); exit 1; }
22222 # Set up the scripts for CONFIG_FILES section.
22223 # No need to generate them if there are no CONFIG_FILES.
22224 # This happens for instance with `./config.status config.h'.
22225 if test -n "$CONFIG_FILES"; then
22229 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22230 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22233 ac_cs_awk_cr=$ac_cr
22236 echo 'BEGIN {' >"$tmp/subs1.awk" &&
22241 echo "cat >conf$$subs.awk <<_ACEOF" &&
22242 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22244 } >conf$$subs.sh ||
22245 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22246 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22247 { (exit 1); exit 1; }; }
22248 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22250 for ac_last_try in false false false false false :; do
22251 . ./conf$$subs.sh ||
22252 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22253 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22254 { (exit 1); exit 1; }; }
22256 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22257 if test $ac_delim_n = $ac_delim_num; then
22259 elif $ac_last_try; then
22260 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22261 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22262 { (exit 1); exit 1; }; }
22264 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22267 rm -f conf$$subs.sh
22269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22270 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22274 s/^/S["/; s/!.*/"]=/
22284 s/\(.\{148\}\).*/\1/
22286 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22291 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22298 s/\(.\{148\}\).*/\1/
22300 s/["\\]/\\&/g; s/^/"/; s/$/"/
22304 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22309 ' <conf$$subs.awk | sed '
22314 ' >>$CONFIG_STATUS || ac_write_fail=1
22315 rm -f conf$$subs.awk
22316 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22318 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22319 for (key in S) S_is_set[key] = 1
22325 nfields = split(line, field, "@")
22327 len = length(field[1])
22328 for (i = 2; i < nfields; i++) {
22330 keylen = length(key)
22331 if (S_is_set[key]) {
22333 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22334 len += length(value) + length(field[++i])
22345 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22346 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22347 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22350 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22351 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
22352 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
22353 { (exit 1); exit 1; }; }
22356 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22357 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22358 # trailing colons and then remove the whole line if VPATH becomes empty
22359 # (actually we leave an empty line to preserve line numbers).
22360 if test "x$srcdir" = x.; then
22361 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22362 s/:*\$(srcdir):*/:/
22363 s/:*\${srcdir}:*/:/
22365 s/^\([^=]*=[ ]*\):*/\1/
22371 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22372 fi # test -n "$CONFIG_FILES"
22374 # Set up the scripts for CONFIG_HEADERS section.
22375 # No need to generate them if there are no CONFIG_HEADERS.
22376 # This happens for instance with `./config.status Makefile'.
22377 if test -n "$CONFIG_HEADERS"; then
22378 cat >"$tmp/defines.awk" <<\_ACAWK ||
22382 # Transform confdefs.h into an awk script `defines.awk', embedded as
22383 # here-document in config.status, that substitutes the proper values into
22384 # config.h.in to produce config.h.
22386 # Create a delimiter string that does not exist in confdefs.h, to ease
22387 # handling of long lines.
22389 for ac_last_try in false false :; do
22390 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
22391 if test -z "$ac_t"; then
22393 elif $ac_last_try; then
22394 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
22395 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
22396 { (exit 1); exit 1; }; }
22398 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22402 # For the awk script, D is an array of macro values keyed by name,
22403 # likewise P contains macro parameters if any. Preserve backslash
22404 # newline sequences.
22406 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22408 s/.\{148\}/&'"$ac_delim"'/g
22411 s/^[ ]*#[ ]*define[ ][ ]*/ /
22418 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22420 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22424 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22425 D["\1"]=" \3\\\\\\n"\\/p
22427 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22432 s/.\{148\}/&'"$ac_delim"'/g
22437 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22440 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22442 ' <confdefs.h | sed '
22443 s/'"$ac_delim"'/"\\\
22444 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22446 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22447 for (key in D) D_is_set[key] = 1
22450 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22452 split(line, arg, " ")
22453 if (arg[1] == "#") {
22457 defundef = substr(arg[1], 2)
22460 split(mac1, mac2, "(") #)
22462 prefix = substr(line, 1, index(line, defundef) - 1)
22463 if (D_is_set[macro]) {
22464 # Preserve the white space surrounding the "#".
22465 print prefix "define", macro P[macro] D[macro]
22468 # Replace #undef with comments. This is necessary, for example,
22469 # in the case of _POSIX_SOURCE, which is predefined and required
22470 # on some systems where configure will not decide to define it.
22471 if (defundef == "undef") {
22472 print "/*", prefix defundef, macro, "*/"
22480 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22481 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
22482 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
22483 { (exit 1); exit 1; }; }
22484 fi # test -n "$CONFIG_HEADERS"
22487 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22492 :[FHLC]) ac_mode=$ac_tag; continue;;
22494 case $ac_mode$ac_tag in
22496 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
22497 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
22498 { (exit 1); exit 1; }; };;
22499 :[FH]-) ac_tag=-:-;;
22500 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22517 -) ac_f="$tmp/stdin";;
22518 *) # Look for the file first in the build tree, then in the source tree
22519 # (if the path is not absolute). The absolute path cannot be DOS-style,
22520 # because $ac_f cannot contain `:'.
22524 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22526 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22527 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22528 { (exit 1); exit 1; }; };;
22530 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22531 ac_file_inputs="$ac_file_inputs '$ac_f'"
22534 # Let's still pretend it is `configure' which instantiates (i.e., don't
22535 # use $as_me), people would be surprised to read:
22536 # /* config.h. Generated by config.status. */
22537 configure_input='Generated from '`
22538 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22540 if test x"$ac_file" != x-; then
22541 configure_input="$ac_file. $configure_input"
22542 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
22543 $as_echo "$as_me: creating $ac_file" >&6;}
22545 # Neutralize special characters interpreted by sed in replacement strings.
22546 case $configure_input in #(
22547 *\&* | *\|* | *\\* )
22548 ac_sed_conf_input=`$as_echo "$configure_input" |
22549 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22550 *) ac_sed_conf_input=$configure_input;;
22554 *:-:* | *:-) cat >"$tmp/stdin" \
22555 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22556 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22557 { (exit 1); exit 1; }; } ;;
22562 ac_dir=`$as_dirname -- "$ac_file" ||
22563 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22564 X"$ac_file" : 'X\(//\)[^/]' \| \
22565 X"$ac_file" : 'X\(//\)$' \| \
22566 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22567 $as_echo X"$ac_file" |
22568 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22572 /^X\(\/\/\)[^/].*/{
22587 -*) as_dir=./$as_dir;;
22589 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22593 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22594 *) as_qdir=$as_dir;;
22596 as_dirs="'$as_qdir' $as_dirs"
22597 as_dir=`$as_dirname -- "$as_dir" ||
22598 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22599 X"$as_dir" : 'X\(//\)[^/]' \| \
22600 X"$as_dir" : 'X\(//\)$' \| \
22601 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22602 $as_echo X"$as_dir" |
22603 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22607 /^X\(\/\/\)[^/].*/{
22620 test -d "$as_dir" && break
22622 test -z "$as_dirs" || eval "mkdir $as_dirs"
22623 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22624 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22625 { (exit 1); exit 1; }; }; }
22629 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22631 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22632 # A ".." for each directory in $ac_dir_suffix.
22633 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22634 case $ac_top_builddir_sub in
22635 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22636 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22639 ac_abs_top_builddir=$ac_pwd
22640 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22641 # for backward compatibility:
22642 ac_top_builddir=$ac_top_build_prefix
22645 .) # We are building in place.
22647 ac_top_srcdir=$ac_top_builddir_sub
22648 ac_abs_top_srcdir=$ac_pwd ;;
22649 [\\/]* | ?:[\\/]* ) # Absolute name.
22650 ac_srcdir=$srcdir$ac_dir_suffix;
22651 ac_top_srcdir=$srcdir
22652 ac_abs_top_srcdir=$srcdir ;;
22653 *) # Relative name.
22654 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22655 ac_top_srcdir=$ac_top_build_prefix$srcdir
22656 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22658 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22668 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22669 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22671 ac_MKDIR_P=$MKDIR_P
22673 [\\/$]* | ?:[\\/]* ) ;;
22674 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22679 # If the template does not know about datarootdir, expand it.
22680 # FIXME: This hack should be removed a few years after 2.60.
22681 ac_datarootdir_hack=; ac_datarootdir_seen=
22694 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22695 *datarootdir*) ac_datarootdir_seen=yes;;
22696 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22697 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22698 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22700 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22701 ac_datarootdir_hack='
22702 s&@datadir@&$datadir&g
22703 s&@docdir@&$docdir&g
22704 s&@infodir@&$infodir&g
22705 s&@localedir@&$localedir&g
22706 s&@mandir@&$mandir&g
22707 s&\\\${datarootdir}&$datarootdir&g' ;;
22711 # Neutralize VPATH when `$srcdir' = `.'.
22712 # Shell code in configure.ac might set extrasub.
22713 # FIXME: do we really want to maintain this feature?
22714 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22715 ac_sed_extra="$ac_vpsub
22718 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22720 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22721 s|@configure_input@|$ac_sed_conf_input|;t t
22722 s&@top_builddir@&$ac_top_builddir_sub&;t t
22723 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22724 s&@srcdir@&$ac_srcdir&;t t
22725 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22726 s&@top_srcdir@&$ac_top_srcdir&;t t
22727 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22728 s&@builddir@&$ac_builddir&;t t
22729 s&@abs_builddir@&$ac_abs_builddir&;t t
22730 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22731 s&@INSTALL@&$ac_INSTALL&;t t
22732 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22733 $ac_datarootdir_hack
22735 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
22736 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22737 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22738 { (exit 1); exit 1; }; }
22740 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22741 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22742 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22743 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22744 which seems to be undefined. Please make sure it is defined." >&5
22745 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22746 which seems to be undefined. Please make sure it is defined." >&2;}
22750 -) cat "$tmp/out" && rm -f "$tmp/out";;
22751 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22753 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22754 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22755 { (exit 1); exit 1; }; }
22761 if test x"$ac_file" != x-; then
22763 $as_echo "/* $configure_input */" \
22764 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
22765 } >"$tmp/config.h" \
22766 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22767 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22768 { (exit 1); exit 1; }; }
22769 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
22770 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22771 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22774 mv "$tmp/config.h" "$ac_file" \
22775 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22776 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22777 { (exit 1); exit 1; }; }
22780 $as_echo "/* $configure_input */" \
22781 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
22782 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
22783 $as_echo "$as_me: error: could not create -" >&2;}
22784 { (exit 1); exit 1; }; }
22786 # Compute "$ac_file"'s index in $config_headers.
22789 for _am_header in $config_headers :; do
22790 case $_am_header in
22791 $_am_arg | $_am_arg:* )
22794 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22797 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22798 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22799 X"$_am_arg" : 'X\(//\)[^/]' \| \
22800 X"$_am_arg" : 'X\(//\)$' \| \
22801 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22802 $as_echo X"$_am_arg" |
22803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22807 /^X\(\/\/\)[^/].*/{
22819 s/.*/./; q'`/stamp-h$_am_stamp_count
22822 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
22823 $as_echo "$as_me: executing $ac_file commands" >&6;}
22828 case $ac_file$ac_mode in
22829 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22830 # Strip MF so we end up with the name of the file.
22831 mf=`echo "$mf" | sed -e 's/:.*$//'`
22832 # Check whether this is an Automake generated Makefile or not.
22833 # We used to match only the files named `Makefile.in', but
22834 # some people rename them; so instead we look at the file content.
22835 # Grep'ing the first line is not enough: some people post-process
22836 # each Makefile.in and add a new line on top of each file to say so.
22837 # Grep'ing the whole file is not good either: AIX grep has a line
22838 # limit of 2048, but all sed's we know have understand at least 4000.
22839 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22840 dirpart=`$as_dirname -- "$mf" ||
22841 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22842 X"$mf" : 'X\(//\)[^/]' \| \
22843 X"$mf" : 'X\(//\)$' \| \
22844 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22846 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22850 /^X\(\/\/\)[^/].*/{
22866 # Extract the definition of DEPDIR, am__include, and am__quote
22867 # from the Makefile without running `make'.
22868 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22869 test -z "$DEPDIR" && continue
22870 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22871 test -z "am__include" && continue
22872 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22873 # When using ansi2knr, U may be empty or an underscore; expand it
22874 U=`sed -n 's/^U = //p' < "$mf"`
22875 # Find all dependency output files, they are included files with
22876 # $(DEPDIR) in their names. We invoke sed twice because it is the
22877 # simplest approach to changing $(DEPDIR) to its actual value in the
22879 for file in `sed -n "
22880 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22881 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22882 # Make sure the directory exists.
22883 test -f "$dirpart/$file" && continue
22884 fdir=`$as_dirname -- "$file" ||
22885 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22886 X"$file" : 'X\(//\)[^/]' \| \
22887 X"$file" : 'X\(//\)$' \| \
22888 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22889 $as_echo X"$file" |
22890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22894 /^X\(\/\/\)[^/].*/{
22907 { as_dir=$dirpart/$fdir
22909 -*) as_dir=./$as_dir;;
22911 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22915 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22916 *) as_qdir=$as_dir;;
22918 as_dirs="'$as_qdir' $as_dirs"
22919 as_dir=`$as_dirname -- "$as_dir" ||
22920 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22921 X"$as_dir" : 'X\(//\)[^/]' \| \
22922 X"$as_dir" : 'X\(//\)$' \| \
22923 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22924 $as_echo X"$as_dir" |
22925 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22929 /^X\(\/\/\)[^/].*/{
22942 test -d "$as_dir" && break
22944 test -z "$as_dirs" || eval "mkdir $as_dirs"
22945 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22946 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22947 { (exit 1); exit 1; }; }; }
22948 # echo "creating $dirpart/$file"
22949 echo '# dummy' > "$dirpart/$file"
22958 { (exit 0); exit 0; }
22960 chmod +x $CONFIG_STATUS
22961 ac_clean_files=$ac_clean_files_save
22963 test $ac_write_fail = 0 ||
22964 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
22965 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
22966 { (exit 1); exit 1; }; }
22969 # configure is writing to config.log, and then calls config.status.
22970 # config.status does its own redirection, appending to config.log.
22971 # Unfortunately, on DOS this fails, as config.log is still kept open
22972 # by configure, so config.status won't be able to write to it; its
22973 # output is simply discarded. So we exec the FD to /dev/null,
22974 # effectively closing config.log, so it can be properly (re)opened and
22975 # appended to by config.status. When coming back to configure, we
22976 # need to make the FD available again.
22977 if test "$no_create" != yes; then
22979 ac_config_status_args=
22980 test "$silent" = yes &&
22981 ac_config_status_args="$ac_config_status_args --quiet"
22983 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22985 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22986 # would make configure fail if this is the last instruction.
22987 $ac_cs_success || { (exit 1); exit 1; }
22989 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22990 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22991 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}