2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for libltdl 1.2.
5 # Report bugs to <bug-libtool@gnu.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 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 # Zsh 3.x and 4.x performs 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
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
47 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
55 # Support unset when possible.
56 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself
=$0 ;;
75 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir
=.
80 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x
; then
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var
in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C
; export $as_var
113 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
125 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132 # Name of the executable.
133 as_me
=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x
; then
157 if (eval ":") 2>/dev
/null
; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev
/null
; then
223 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
224 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir
=.
230 for as_base
in sh bash ksh sh5
; do
231 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
238 for as_shell
in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix
*) set -o posix
;;
260 CONFIG_SHELL
=$as_shell
262 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix
*) set -o posix
;;
288 as_func_ret_success
() {
291 as_func_ret_failure
() {
296 if as_func_success
; then
300 echo as_func_success failed.
303 if as_func_failure
; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success
; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure
; then
317 echo as_func_ret_failure succeeded.
320 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) ||
{ (exit 1); exit 1; }
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
344 if test "x$CONFIG_SHELL" != x
; then
345 for as_var
in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no
; then
354 echo This
script requires a shell
more modern than all the
355 echo shells that I found on your system. Please
install a
356 echo modern shell
, or manually run the
script under such a
357 echo shell
if you
do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 echo positional parameters were not saved.
416 test \$exitcode = 0") ||
{
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system
,
419 echo including any error possibly output before this
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x
"$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
463 # Exit status is that of the last command.
468 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
474 ECHO_C
= ECHO_N
= ECHO_T
=
478 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
485 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
492 rm -f conf$$ conf$$.exe conf$$.
file
493 if test -d conf$$.dir
; then
494 rm -f conf$$.dir
/conf$$.
file
500 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
508 elif ln conf$$.
file conf$$
2>/dev
/null
; then
513 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
514 rmdir conf$$.dir
2>/dev
/null
516 if mkdir
-p .
2>/dev
/null
; then
519 test -d .
/-p && rmdir .
/-p
523 if test -x / >/dev
/null
2>&1; then
526 if ls -dL / >/dev
/null
2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
544 as_executable_p
=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 # Check that we are running under the correct shell.
556 SHELL
=${CONFIG_SHELL-/bin/sh}
560 # Remove one level of quotation (which was required for Make).
561 ECHO
=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
566 if test "X$1" = X--no-reexec
; then
567 # Discard the --no-reexec flag, and continue.
569 elif test "X$1" = X--fallback-echo
; then
570 # Avoid inline document here, it may be left over
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
580 if test "X$1" = X--fallback-echo
; then
581 # used as fallback echo
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
591 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset
; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string
=`eval $cmd`) 2>/dev
/null
&&
599 echo_test_string
=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev
/null
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
616 # So, first we look for a working echo in the user's PATH.
618 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
619 for dir
in $PATH /usr
/ucb
; do
621 if (test -f $dir/echo ||
test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
631 if test "X$echo" = Xecho
; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string
=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
638 elif (test -f /bin
/ksh ||
test -f /bin
/ksh
$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL
=/bin
/ksh
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
654 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
660 SHELL
="$CONFIG_SHELL"
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
669 # maybe with a smaller string...
672 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev
/null
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string
=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685 # Oops. We lost completely, so just stick with echo.
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
704 tagnames
=${tagnames+${tagnames},}CXX
706 tagnames
=${tagnames+${tagnames},}F77
708 exec 7<&0 </dev
/null
6>&1
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
718 ac_default_prefix
=/usr
/local
720 ac_config_libobj_dir
=.
726 SHELL
=${CONFIG_SHELL-/bin/sh}
728 # Identity of this package.
729 PACKAGE_NAME
='libltdl'
730 PACKAGE_TARNAME
='libltdl'
731 PACKAGE_VERSION
='1.2'
732 PACKAGE_STRING
='libltdl 1.2'
733 PACKAGE_BUGREPORT
='bug-libtool@gnu.org'
735 ac_unique_file
="ltdl.c"
736 # Factoring default headers for most tests.
737 ac_includes_default
="\
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
749 # ifdef HAVE_STDLIB_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
781 program_transform_name
823 INSTALL_STRIP_PROGRAM
880 CONVENIENCE_LTDL_TRUE
881 CONVENIENCE_LTDL_FALSE
886 ac_precious_vars
='build_alias
903 # Initialize some variables set by options.
905 ac_init_version
=false
906 # The variables have the same names as the options, with
907 # dashes changed to underlines.
915 program_transform_name
=s
,x
,x
,
923 # Installation directory options.
924 # These are left unexpanded so users can "make install exec_prefix=/foo"
925 # and all the variables that are supposed to be based on exec_prefix
926 # by default will actually change.
927 # Use braces instead of parens because sh, perl, etc. also accept them.
928 # (The list follows the same order as the GNU Coding Standards.)
929 bindir
='${exec_prefix}/bin'
930 sbindir
='${exec_prefix}/sbin'
931 libexecdir
='${exec_prefix}/libexec'
932 datarootdir
='${prefix}/share'
933 datadir
='${datarootdir}'
934 sysconfdir
='${prefix}/etc'
935 sharedstatedir
='${prefix}/com'
936 localstatedir
='${prefix}/var'
937 includedir
='${prefix}/include'
938 oldincludedir
='/usr/include'
939 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
940 infodir
='${datarootdir}/info'
945 libdir
='${exec_prefix}/lib'
946 localedir
='${datarootdir}/locale'
947 mandir
='${datarootdir}/man'
953 # If the previous option needs an argument, assign it.
954 if test -n "$ac_prev"; then
955 eval $ac_prev=\
$ac_option
961 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
965 # Accept the important Cygnus configure options, so we can diagnose typos.
967 case $ac_dashdash$ac_option in
971 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
973 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
976 -build |
--build |
--buil |
--bui |
--bu)
977 ac_prev
=build_alias
;;
978 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
979 build_alias
=$ac_optarg ;;
981 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
982 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
983 ac_prev
=cache_file
;;
984 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
985 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
986 cache_file
=$ac_optarg ;;
989 cache_file
=config.cache
;;
991 -datadir |
--datadir |
--datadi |
--datad)
993 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
994 datadir
=$ac_optarg ;;
996 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
997 |
--dataroo |
--dataro |
--datar)
998 ac_prev
=datarootdir
;;
999 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1000 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1001 datarootdir
=$ac_optarg ;;
1003 -disable-* |
--disable-*)
1004 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1005 # Reject names that are not valid shell variable names.
1006 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1007 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1008 { (exit 1); exit 1; }; }
1009 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1010 eval enable_
$ac_feature=no
;;
1012 -docdir |
--docdir |
--docdi |
--doc |
--do)
1014 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1015 docdir
=$ac_optarg ;;
1017 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1019 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1020 dvidir
=$ac_optarg ;;
1022 -enable-* |
--enable-*)
1023 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1024 # Reject names that are not valid shell variable names.
1025 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1026 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1027 { (exit 1); exit 1; }; }
1028 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1029 eval enable_
$ac_feature=\
$ac_optarg ;;
1031 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1032 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1033 |
--exec |
--exe |
--ex)
1034 ac_prev
=exec_prefix
;;
1035 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1036 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1037 |
--exec=* |
--exe=* |
--ex=*)
1038 exec_prefix
=$ac_optarg ;;
1040 -gas |
--gas |
--ga |
--g)
1041 # Obsolete; use --with-gas.
1044 -help |
--help |
--hel |
--he |
-h)
1045 ac_init_help
=long
;;
1046 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1047 ac_init_help
=recursive
;;
1048 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1049 ac_init_help
=short
;;
1051 -host |
--host |
--hos |
--ho)
1052 ac_prev
=host_alias
;;
1053 -host=* |
--host=* |
--hos=* |
--ho=*)
1054 host_alias
=$ac_optarg ;;
1056 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1058 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1060 htmldir
=$ac_optarg ;;
1062 -includedir |
--includedir |
--includedi |
--included |
--include \
1063 |
--includ |
--inclu |
--incl |
--inc)
1064 ac_prev
=includedir
;;
1065 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1066 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1067 includedir
=$ac_optarg ;;
1069 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1071 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1072 infodir
=$ac_optarg ;;
1074 -libdir |
--libdir |
--libdi |
--libd)
1076 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1077 libdir
=$ac_optarg ;;
1079 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1080 |
--libexe |
--libex |
--libe)
1081 ac_prev
=libexecdir
;;
1082 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1083 |
--libexe=* |
--libex=* |
--libe=*)
1084 libexecdir
=$ac_optarg ;;
1086 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1087 ac_prev
=localedir
;;
1088 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1089 localedir
=$ac_optarg ;;
1091 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1092 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1093 ac_prev
=localstatedir
;;
1094 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1095 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1096 localstatedir
=$ac_optarg ;;
1098 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1100 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1101 mandir
=$ac_optarg ;;
1103 -nfp |
--nfp |
--nf)
1104 # Obsolete; use --without-fp.
1107 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1108 |
--no-cr |
--no-c |
-n)
1111 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1112 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1115 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1116 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1117 |
--oldin |
--oldi |
--old |
--ol |
--o)
1118 ac_prev
=oldincludedir
;;
1119 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1120 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1121 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1122 oldincludedir
=$ac_optarg ;;
1124 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1126 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1127 prefix
=$ac_optarg ;;
1129 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1130 |
--program-pre |
--program-pr |
--program-p)
1131 ac_prev
=program_prefix
;;
1132 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1133 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1134 program_prefix
=$ac_optarg ;;
1136 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1137 |
--program-suf |
--program-su |
--program-s)
1138 ac_prev
=program_suffix
;;
1139 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1140 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1141 program_suffix
=$ac_optarg ;;
1143 -program-transform-name |
--program-transform-name \
1144 |
--program-transform-nam |
--program-transform-na \
1145 |
--program-transform-n |
--program-transform- \
1146 |
--program-transform |
--program-transfor \
1147 |
--program-transfo |
--program-transf \
1148 |
--program-trans |
--program-tran \
1149 |
--progr-tra |
--program-tr |
--program-t)
1150 ac_prev
=program_transform_name
;;
1151 -program-transform-name=* |
--program-transform-name=* \
1152 |
--program-transform-nam=* |
--program-transform-na=* \
1153 |
--program-transform-n=* |
--program-transform-=* \
1154 |
--program-transform=* |
--program-transfor=* \
1155 |
--program-transfo=* |
--program-transf=* \
1156 |
--program-trans=* |
--program-tran=* \
1157 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1158 program_transform_name
=$ac_optarg ;;
1160 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1162 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1163 pdfdir
=$ac_optarg ;;
1165 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1167 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1170 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1171 |
-silent |
--silent |
--silen |
--sile |
--sil)
1174 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1176 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1178 sbindir
=$ac_optarg ;;
1180 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1181 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1182 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1184 ac_prev
=sharedstatedir
;;
1185 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1186 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1187 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1189 sharedstatedir
=$ac_optarg ;;
1191 -site |
--site |
--sit)
1193 -site=* |
--site=* |
--sit=*)
1196 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1198 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1199 srcdir
=$ac_optarg ;;
1201 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1202 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1203 ac_prev
=sysconfdir
;;
1204 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1205 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1206 sysconfdir
=$ac_optarg ;;
1208 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1209 ac_prev
=target_alias
;;
1210 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1211 target_alias
=$ac_optarg ;;
1213 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1216 -version |
--version |
--versio |
--versi |
--vers |
-V)
1217 ac_init_version
=: ;;
1220 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1221 # Reject names that are not valid shell variable names.
1222 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1223 { echo "$as_me: error: invalid package name: $ac_package" >&2
1224 { (exit 1); exit 1; }; }
1225 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1226 eval with_
$ac_package=\
$ac_optarg ;;
1228 -without-* |
--without-*)
1229 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1230 # Reject names that are not valid shell variable names.
1231 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1232 { echo "$as_me: error: invalid package name: $ac_package" >&2
1233 { (exit 1); exit 1; }; }
1234 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1235 eval with_
$ac_package=no
;;
1238 # Obsolete; use --with-x.
1241 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1242 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1243 ac_prev
=x_includes
;;
1244 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1245 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1246 x_includes
=$ac_optarg ;;
1248 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1249 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1250 ac_prev
=x_libraries
;;
1251 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1252 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1253 x_libraries
=$ac_optarg ;;
1255 -*) { echo "$as_me: error: unrecognized option: $ac_option
1256 Try \`$0 --help' for more information." >&2
1257 { (exit 1); exit 1; }; }
1261 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1262 # Reject names that are not valid shell variable names.
1263 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1264 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1265 { (exit 1); exit 1; }; }
1266 eval $ac_envvar=\
$ac_optarg
1267 export $ac_envvar ;;
1270 # FIXME: should be removed in autoconf 3.0.
1271 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1272 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1273 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1274 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1280 if test -n "$ac_prev"; then
1281 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1282 { echo "$as_me: error: missing argument to $ac_option" >&2
1283 { (exit 1); exit 1; }; }
1286 # Be sure to have absolute directory names.
1287 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1288 datadir sysconfdir sharedstatedir localstatedir includedir \
1289 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1290 libdir localedir mandir
1292 eval ac_val
=\$
$ac_var
1294 [\\/$
]* | ?
:[\\/]* ) continue;;
1295 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1297 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1298 { (exit 1); exit 1; }; }
1301 # There might be people who depend on the old broken behavior: `$host'
1302 # used to hold the argument of --host etc.
1303 # FIXME: To remove some day.
1306 target
=$target_alias
1308 # FIXME: To remove some day.
1309 if test "x$host_alias" != x
; then
1310 if test "x$build_alias" = x
; then
1311 cross_compiling
=maybe
1312 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1313 If a cross compiler is detected then cross compile mode will be used." >&2
1314 elif test "x$build_alias" != "x$host_alias"; then
1320 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1322 test "$silent" = yes && exec 6>/dev
/null
1325 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1326 ac_ls_di
=`ls -di .` &&
1327 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1328 { echo "$as_me: error: Working directory cannot be determined" >&2
1329 { (exit 1); exit 1; }; }
1330 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1331 { echo "$as_me: error: pwd does not report name of working directory" >&2
1332 { (exit 1); exit 1; }; }
1335 # Find the source files, if location was not specified.
1336 if test -z "$srcdir"; then
1337 ac_srcdir_defaulted
=yes
1338 # Try the directory containing this script, then the parent directory.
1339 ac_confdir
=`$as_dirname -- "$0" ||
1340 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1341 X"$0" : 'X\(//\)[^/]' \| \
1342 X"$0" : 'X\(//\)$' \| \
1343 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1363 if test ! -r "$srcdir/$ac_unique_file"; then
1367 ac_srcdir_defaulted
=no
1369 if test ! -r "$srcdir/$ac_unique_file"; then
1370 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1371 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1372 { (exit 1); exit 1; }; }
1374 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1376 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1377 { (exit 1); exit 1; }; }
1379 # When building in place, set srcdir=.
1380 if test "$ac_abs_confdir" = "$ac_pwd"; then
1383 # Remove unnecessary trailing slashes from srcdir.
1384 # Double slashes in file names in object file debugging info
1385 # mess up M-x gdb in Emacs.
1387 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1389 for ac_var
in $ac_precious_vars; do
1390 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1391 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1392 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1393 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1397 # Report the --help message.
1399 if test "$ac_init_help" = "long"; then
1400 # Omit some internal or obsolete options to make the list less imposing.
1401 # This message is too long to be a string in the A/UX 3.1 sh.
1403 \`configure' configures libltdl 1.2 to adapt to many kinds of systems.
1405 Usage: $0 [OPTION]... [VAR=VALUE]...
1407 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1408 VAR=VALUE. See below for descriptions of some of the useful variables.
1410 Defaults for the options are specified in brackets.
1413 -h, --help display this help and exit
1414 --help=short display options specific to this package
1415 --help=recursive display the short help of all the included packages
1416 -V, --version display version information and exit
1417 -q, --quiet, --silent do not print \`checking...' messages
1418 --cache-file=FILE cache test results in FILE [disabled]
1419 -C, --config-cache alias for \`--cache-file=config.cache'
1420 -n, --no-create do not create output files
1421 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1423 Installation directories:
1424 --prefix=PREFIX install architecture-independent files in PREFIX
1425 [$ac_default_prefix]
1426 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1429 By default, \`make install' will install all the files in
1430 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1431 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1432 for instance \`--prefix=\$HOME'.
1434 For better control, use the options below.
1436 Fine tuning of the installation directories:
1437 --bindir=DIR user executables [EPREFIX/bin]
1438 --sbindir=DIR system admin executables [EPREFIX/sbin]
1439 --libexecdir=DIR program executables [EPREFIX/libexec]
1440 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1441 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1442 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1443 --libdir=DIR object code libraries [EPREFIX/lib]
1444 --includedir=DIR C header files [PREFIX/include]
1445 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1446 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1447 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1448 --infodir=DIR info documentation [DATAROOTDIR/info]
1449 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1450 --mandir=DIR man documentation [DATAROOTDIR/man]
1451 --docdir=DIR documentation root [DATAROOTDIR/doc/libltdl]
1452 --htmldir=DIR html documentation [DOCDIR]
1453 --dvidir=DIR dvi documentation [DOCDIR]
1454 --pdfdir=DIR pdf documentation [DOCDIR]
1455 --psdir=DIR ps documentation [DOCDIR]
1461 --program-prefix=PREFIX prepend PREFIX to installed program names
1462 --program-suffix=SUFFIX append SUFFIX to installed program names
1463 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1466 --build=BUILD configure
for building on BUILD
[guessed
]
1467 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1471 if test -n "$ac_init_help"; then
1472 case $ac_init_help in
1473 short | recursive
) echo "Configuration of libltdl 1.2:";;
1478 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1479 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1480 --disable-dependency-tracking speeds up one-time build
1481 --enable-dependency-tracking do not reject slow dependency extractors
1482 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1483 --enable-static[=PKGS
] build static libraries
[default
=yes]
1484 --enable-fast-install[=PKGS
]
1485 optimize
for fast installation
[default
=yes]
1486 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1487 --enable-ltdl-install install libltdl
1490 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1491 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1492 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1493 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1495 --with-tags[=TAGS
] include additional configurations
[automatic
]
1497 Some influential environment variables
:
1498 CC C compiler
command
1499 CFLAGS C compiler flags
1500 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1501 nonstandard directory
<lib dir
>
1502 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1503 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1504 you have headers
in a nonstandard directory
<include dir
>
1506 CXX C
++ compiler
command
1507 CXXFLAGS C
++ compiler flags
1508 CXXCPP C
++ preprocessor
1509 F77 Fortran
77 compiler
command
1510 FFLAGS Fortran
77 compiler flags
1512 Use these variables to override the choices made by
`configure' or to help
1513 it to find libraries and programs with nonstandard names/locations.
1515 Report bugs to <bug-libtool@gnu.org>.
1520 if test "$ac_init_help" = "recursive"; then
1521 # If there are subdirs, report their specific --help.
1522 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1523 test -d "$ac_dir" || continue
1527 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1530 # A ".." for each directory in $ac_dir_suffix.
1531 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1532 case $ac_top_builddir_sub in
1533 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1537 ac_abs_top_builddir=$ac_pwd
1538 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1539 # for backward compatibility:
1540 ac_top_builddir=$ac_top_build_prefix
1543 .) # We are building in place.
1545 ac_top_srcdir=$ac_top_builddir_sub
1546 ac_abs_top_srcdir=$ac_pwd ;;
1547 [\\/]* | ?:[\\/]* ) # Absolute name.
1548 ac_srcdir=$srcdir$ac_dir_suffix;
1549 ac_top_srcdir=$srcdir
1550 ac_abs_top_srcdir=$srcdir ;;
1552 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1553 ac_top_srcdir=$ac_top_build_prefix$srcdir
1554 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1556 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1558 cd "$ac_dir" || { ac_status=$?; continue; }
1559 # Check for guested configure.
1560 if test -f "$ac_srcdir/configure.gnu"; then
1562 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1563 elif test -f "$ac_srcdir/configure"; then
1565 $SHELL "$ac_srcdir/configure" --help=recursive
1567 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1569 cd "$ac_pwd" || { ac_status=$?; break; }
1573 test -n "$ac_init_help" && exit $ac_status
1574 if $ac_init_version; then
1576 libltdl configure 1.2
1577 generated by GNU Autoconf 2.61
1579 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1580 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1581 This configure script is free software; the Free Software Foundation
1582 gives unlimited permission to copy, distribute and modify it.
1586 cat >config.log <<_ACEOF
1587 This file contains any messages produced by compilers while
1588 running configure, to aid debugging if configure makes a mistake.
1590 It was created by libltdl $as_me 1.2, which was
1591 generated by GNU Autoconf 2.61. Invocation command line was
1603 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1604 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1605 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1606 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1607 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1609 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1610 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1612 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1613 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1614 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1615 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1616 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1617 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1618 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1626 test -z "$as_dir" && as_dir=.
1627 echo "PATH: $as_dir"
1643 # Keep a trace of the command line.
1644 # Strip out --no-create and --no-recursion so they do not pile up.
1645 # Strip out --silent because we don't want to record it for future runs.
1646 # Also quote any args containing shell meta-characters.
1647 # Make two passes to allow for proper duplicate-argument suppression.
1651 ac_must_keep_next=false
1657 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1658 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1659 | -silent | --silent | --silen | --sile | --sil)
1662 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1665 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1667 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1668 if test $ac_must_keep_next = true; then
1669 ac_must_keep_next=false # Got value, back to normal.
1672 *=* | --config-cache | -C | -disable-* | --disable-* \
1673 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1674 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1675 | -with-* | --with-* | -without-* | --without-* | --x)
1676 case "$ac_configure_args0 " in
1677 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1680 -* ) ac_must_keep_next=true ;;
1683 ac_configure_args="$ac_configure_args '$ac_arg'"
1688 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1689 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1691 # When interrupted or exit'd, cleanup temporary files, and complete
1692 # config.log. We remove comments because anyway the quotes in there
1693 # would cause problems or look ugly.
1694 # WARNING: Use '\'' to represent an apostrophe within the trap.
1695 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1696 trap 'exit_status=$?
1697 # Save into config.log some information that might help in debugging.
1702 ## ---------------- ##
1703 ## Cache variables. ##
1704 ## ---------------- ##
1707 # The following way of writing the cache mishandles newlines in values,
1709 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1710 eval ac_val=\$$ac_var
1714 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1715 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1718 _ | IFS | as_nl) ;; #(
1719 *) $as_unset $ac_var ;;
1724 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1725 *${as_nl}ac_space=\ *)
1727 "s/'\''/'\''\\\\'\'''\''/g;
1728 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1731 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1739 ## ----------------- ##
1740 ## Output variables. ##
1741 ## ----------------- ##
1744 for ac_var in $ac_subst_vars
1746 eval ac_val=\$$ac_var
1748 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1750 echo "$ac_var='\''$ac_val'\''"
1754 if test -n "$ac_subst_files"; then
1756 ## ------------------- ##
1757 ## File substitutions. ##
1758 ## ------------------- ##
1761 for ac_var in $ac_subst_files
1763 eval ac_val=\$$ac_var
1765 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1767 echo "$ac_var='\''$ac_val'\''"
1772 if test -s confdefs.h; then
1782 test "$ac_signal" != 0 &&
1783 echo "$as_me: caught signal $ac_signal"
1784 echo "$as_me: exit $exit_status"
1786 rm -f core *.core core.conftest.* &&
1787 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1790 for ac_signal in 1 2 13 15; do
1791 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1795 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1796 rm -f -r conftest* confdefs.h
1798 # Predefined preprocessor variables.
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_NAME "$PACKAGE_NAME"
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1815 cat >>confdefs.h <<_ACEOF
1816 #define PACKAGE_STRING "$PACKAGE_STRING"
1820 cat >>confdefs.h <<_ACEOF
1821 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1825 # Let the site file select an alternate cache file if it wants to.
1826 # Prefer explicitly selected file to automatically selected ones.
1827 if test -n "$CONFIG_SITE"; then
1828 set x "$CONFIG_SITE"
1829 elif test "x$prefix" != xNONE; then
1830 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1832 set x "$ac_default_prefix/share/config.site" \
1833 "$ac_default_prefix/etc/config.site"
1838 if test -r "$ac_site_file"; then
1839 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1840 echo "$as_me: loading site script $ac_site_file" >&6;}
1841 sed 's/^/| /' "$ac_site_file" >&5
1846 if test -r "$cache_file"; then
1847 # Some versions of bash will fail to source /dev/null (special
1848 # files actually), so we avoid doing that.
1849 if test -f "$cache_file"; then
1850 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1851 echo "$as_me: loading cache $cache_file" >&6;}
1853 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1854 *) . "./$cache_file";;
1858 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1859 echo "$as_me: creating cache $cache_file" >&6;}
1863 # Check that the precious variables saved in the cache have kept the same
1865 ac_cache_corrupted=false
1866 for ac_var in $ac_precious_vars; do
1867 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1868 eval ac_new_set=\$ac_env_${ac_var}_set
1869 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1870 eval ac_new_val=\$ac_env_${ac_var}_value
1871 case $ac_old_set,$ac_new_set in
1873 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1874 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1875 ac_cache_corrupted=: ;;
1877 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1878 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1879 ac_cache_corrupted=: ;;
1882 if test "x$ac_old_val" != "x$ac_new_val"; then
1883 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1884 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1885 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1886 echo "$as_me: former value
: $ac_old_val" >&2;}
1887 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1888 echo "$as_me: current value
: $ac_new_val" >&2;}
1889 ac_cache_corrupted=:
1892 # Pass precious variables to config.status.
1893 if test "$ac_new_set" = set; then
1895 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1896 *) ac_arg=$ac_var=$ac_new_val ;;
1898 case " $ac_configure_args " in
1899 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1900 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1904 if $ac_cache_corrupted; then
1905 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1906 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1907 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1908 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1909 { (exit 1); exit 1; }; }
1937 ac_cpp='$CPP $CPPFLAGS'
1938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1946 ## ------------------------------- ##
1947 ## Libltdl specific configuration. ##
1948 ## ------------------------------- ##
1951 for ac_dir in . "$srcdir"/.; do
1952 if test -f "$ac_dir/install-sh"; then
1954 ac_install_sh="$ac_aux_dir/install-sh -c"
1956 elif test -f "$ac_dir/install.sh"; then
1958 ac_install_sh="$ac_aux_dir/install.sh -c"
1960 elif test -f "$ac_dir/shtool"; then
1962 ac_install_sh="$ac_aux_dir/shtool install -c"
1966 if test -z "$ac_aux_dir"; then
1967 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
1968 echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
1969 { (exit 1); exit 1; }; }
1972 # These three variables are undocumented and unsupported,
1973 # and are intended to be withdrawn in a future Autoconf release.
1974 # They can cause serious problems if a builder's source tree is in a directory
1975 # whose full name contains unusual characters.
1976 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1977 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1978 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1982 if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
1983 if test -f ${srcdir}/ltmain.sh; then
1984 # if libltdl is libtoolized, it is assumed to be stand-alone and
1985 # installed unless the command line overrides it (tested above)
1986 enable_ltdl_install=yes
1988 { echo "$as_me:$LINENO: WARNING: *** The top-level configure must select either" >&5
1989 echo "$as_me: WARNING: *** The top-level configure must select either" >&2;}
1990 { echo "$as_me:$LINENO: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&5
1991 echo "$as_me: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&2;}
1992 { { echo "$as_me:$LINENO: error: *** Maybe you want to --enable-ltdl-install?" >&5
1993 echo "$as_me: error: *** Maybe you want to --enable-ltdl-install?" >&2;}
1994 { (exit 1); exit 1; }; }
1999 ## ------------------------ ##
2000 ## Automake Initialisation. ##
2001 ## ------------------------ ##
2002 am__api_version='1.10'
2004 # Find a good install program. We prefer a C program (faster),
2005 # so one script is as good as another. But avoid the broken or
2006 # incompatible versions:
2007 # SysV /etc/install, /usr/sbin/install
2008 # SunOS /usr/etc/install
2009 # IRIX /sbin/install
2011 # AmigaOS /C/install, which installs bootblocks on floppy discs
2012 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2013 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2014 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2015 # OS/2's system install, which has a completely different semantic
2016 # ./install, which can be erroneously created by make from ./install.sh.
2017 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2018 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2019 if test -z "$INSTALL"; then
2020 if test "${ac_cv_path_install+set}" = set; then
2021 echo $ECHO_N "(cached) $ECHO_C" >&6
2023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027 test -z "$as_dir" && as_dir=.
2028 # Account for people who put trailing slashes in PATH elements.
2030 ./ | .// | /cC/* | \
2031 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2032 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2035 # OSF1 and SCO ODT 3.0 have their own names for install.
2036 # Don't use installbsd from OSF since it installs stuff as root
2038 for ac_prog in ginstall scoinst install; do
2039 for ac_exec_ext in '' $ac_executable_extensions; do
2040 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2041 if test $ac_prog = install &&
2042 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2043 # AIX install. It has an incompatible calling convention.
2045 elif test $ac_prog = install &&
2046 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2047 # program-specific install script used by HP pwplus--don't use.
2050 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2063 if test "${ac_cv_path_install+set}" = set; then
2064 INSTALL=$ac_cv_path_install
2066 # As a last resort, use the slow shell script. Don't cache a
2067 # value for INSTALL within a source directory, because that will
2068 # break other packages using the cache if that directory is
2069 # removed, or if the value is a relative name.
2070 INSTALL=$ac_install_sh
2073 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2074 echo "${ECHO_T}$INSTALL" >&6; }
2076 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2077 # It thinks the first close brace ends the variable substitution.
2078 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2080 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2082 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2084 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2085 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2088 echo timestamp > conftest.file
2089 # Do `set' in a subshell so we don't clobber the current shell
's
2090 # arguments. Must try -L first in case configure is actually a
2091 # symlink; some systems play weird games with the mod time of symlinks
2092 # (eg FreeBSD returns the mod time of the symlink's containing
2095 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2096 if test "$*" = "X"; then
2098 set X
`ls -t $srcdir/configure conftest.file`
2101 if test "$*" != "X $srcdir/configure conftest.file" \
2102 && test "$*" != "X conftest.file $srcdir/configure"; then
2104 # If neither matched, then we have a broken ls. This can happen
2105 # if, for instance, CONFIG_SHELL is bash and it inherits a
2106 # broken ls alias from the environment. This has actually
2107 # happened. Such a system could not be considered "sane".
2108 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2109 alias in your environment" >&5
2110 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2111 alias in your environment" >&2;}
2112 { (exit 1); exit 1; }; }
2115 test "$2" = conftest.
file
2121 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2122 Check your system clock" >&5
2123 echo "$as_me: error: newly created file is older than distributed files!
2124 Check your system clock" >&2;}
2125 { (exit 1); exit 1; }; }
2127 { echo "$as_me:$LINENO: result: yes" >&5
2128 echo "${ECHO_T}yes" >&6; }
2129 test "$program_prefix" != NONE
&&
2130 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2131 # Use a double $ so make ignores it.
2132 test "$program_suffix" != NONE
&&
2133 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2134 # Double any \ or $. echo might interpret backslashes.
2135 # By default was `s,x,x', remove it if useless.
2136 cat <<\_ACEOF
>conftest.
sed
2137 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
2139 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
2142 # expand $ac_aux_dir to an absolute path
2143 am_aux_dir
=`cd $ac_aux_dir && pwd`
2145 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
2146 # Use eval to expand $SHELL
2147 if eval "$MISSING --run true"; then
2148 am_missing_run
="$MISSING --run "
2151 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2152 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2155 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2156 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2157 if test -z "$MKDIR_P"; then
2158 if test "${ac_cv_path_mkdir+set}" = set; then
2159 echo $ECHO_N "(cached) $ECHO_C" >&6
2161 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2162 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2165 test -z "$as_dir" && as_dir
=.
2166 for ac_prog
in mkdir gmkdir
; do
2167 for ac_exec_ext
in '' $ac_executable_extensions; do
2168 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
2169 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2170 'mkdir (GNU coreutils) '* | \
2171 'mkdir (coreutils) '* | \
2172 'mkdir (fileutils) '4.1*)
2173 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2183 if test "${ac_cv_path_mkdir+set}" = set; then
2184 MKDIR_P
="$ac_cv_path_mkdir -p"
2186 # As a last resort, use the slow shell script. Don't cache a
2187 # value for MKDIR_P within a source directory, because that will
2188 # break other packages using the cache if that directory is
2189 # removed, or if the value is a relative name.
2190 test -d .
/--version && rmdir .
/--version
2191 MKDIR_P
="$ac_install_sh -d"
2194 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2195 echo "${ECHO_T}$MKDIR_P" >&6; }
2199 [\\/$
]* | ?
:[\\/]*) ;;
2200 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
2203 for ac_prog
in gawk mawk nawk
awk
2205 # Extract the first word of "$ac_prog", so it can be a program name with args.
2206 set dummy
$ac_prog; ac_word
=$2
2207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2209 if test "${ac_cv_prog_AWK+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2212 if test -n "$AWK"; then
2213 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2215 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2219 test -z "$as_dir" && as_dir
=.
2220 for ac_exec_ext
in '' $ac_executable_extensions; do
2221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2222 ac_cv_prog_AWK
="$ac_prog"
2223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2233 if test -n "$AWK"; then
2234 { echo "$as_me:$LINENO: result: $AWK" >&5
2235 echo "${ECHO_T}$AWK" >&6; }
2237 { echo "$as_me:$LINENO: result: no" >&5
2238 echo "${ECHO_T}no" >&6; }
2242 test -n "$AWK" && break
2245 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2246 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2247 set x
${MAKE-make}; ac_make
=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2248 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2249 echo $ECHO_N "(cached) $ECHO_C" >&6
2251 cat >conftest.
make <<\_ACEOF
2254 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2256 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2257 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2259 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2261 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2265 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2266 { echo "$as_me:$LINENO: result: yes" >&5
2267 echo "${ECHO_T}yes" >&6; }
2270 { echo "$as_me:$LINENO: result: no" >&5
2271 echo "${ECHO_T}no" >&6; }
2272 SET_MAKE
="MAKE=${MAKE-make}"
2275 rm -rf .tst
2>/dev
/null
2276 mkdir .tst
2>/dev
/null
2277 if test -d .tst
; then
2282 rmdir .tst
2>/dev
/null
2284 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2285 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2286 # is not polluted with repeated "-I."
2287 am__isrc
=' -I$(srcdir)'
2288 # test to see if srcdir already configured
2289 if test -f $srcdir/config.status
; then
2290 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2291 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2292 { (exit 1); exit 1; }; }
2296 # test whether we have cygpath
2297 if test -z "$CYGPATH_W"; then
2298 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
2299 CYGPATH_W
='cygpath -w'
2306 # Define the identity of the package.
2311 # Some tools Automake needs.
2313 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2316 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
2319 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2322 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
2325 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
2327 install_sh
=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2329 # Installed binaries are usually stripped using `strip' when the user
2330 # run `make install-strip'. However `strip' might not be the right
2331 # tool to use in cross-compilation environments, therefore Automake
2332 # will honor the `STRIP' environment variable to overrule this program.
2333 if test "$cross_compiling" != no
; then
2334 if test -n "$ac_tool_prefix"; then
2335 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2336 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2339 if test "${ac_cv_prog_STRIP+set}" = set; then
2340 echo $ECHO_N "(cached) $ECHO_C" >&6
2342 if test -n "$STRIP"; then
2343 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2345 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2349 test -z "$as_dir" && as_dir
=.
2350 for ac_exec_ext
in '' $ac_executable_extensions; do
2351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2352 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2362 STRIP
=$ac_cv_prog_STRIP
2363 if test -n "$STRIP"; then
2364 { echo "$as_me:$LINENO: result: $STRIP" >&5
2365 echo "${ECHO_T}$STRIP" >&6; }
2367 { echo "$as_me:$LINENO: result: no" >&5
2368 echo "${ECHO_T}no" >&6; }
2373 if test -z "$ac_cv_prog_STRIP"; then
2375 # Extract the first word of "strip", so it can be a program name with args.
2376 set dummy strip
; ac_word
=$2
2377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2379 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2380 echo $ECHO_N "(cached) $ECHO_C" >&6
2382 if test -n "$ac_ct_STRIP"; then
2383 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2385 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2389 test -z "$as_dir" && as_dir
=.
2390 for ac_exec_ext
in '' $ac_executable_extensions; do
2391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2392 ac_cv_prog_ac_ct_STRIP
="strip"
2393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2402 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2403 if test -n "$ac_ct_STRIP"; then
2404 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2405 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2407 { echo "$as_me:$LINENO: result: no" >&5
2408 echo "${ECHO_T}no" >&6; }
2411 if test "x$ac_ct_STRIP" = x
; then
2414 case $cross_compiling:$ac_tool_warned in
2416 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2417 whose name does not start with the host triplet. If you think this
2418 configuration is useful to you, please write to autoconf@gnu.org." >&5
2419 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2420 whose name does not start with the host triplet. If you think this
2421 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2422 ac_tool_warned
=yes ;;
2427 STRIP
="$ac_cv_prog_STRIP"
2431 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2433 # We need awk for the "check" target. The system "awk" is bad on
2435 # Always define AMTAR for backward compatibility.
2437 AMTAR
=${AMTAR-"${am_missing_run}tar"}
2439 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
2445 ac_config_headers
="$ac_config_headers config.h:config-h.in"
2449 ## ------------------ ##
2450 ## C compiler checks. ##
2451 ## ------------------ ##
2453 ac_cpp
='$CPP $CPPFLAGS'
2454 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2455 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2456 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2457 if test -n "$ac_tool_prefix"; then
2458 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2459 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2462 if test "${ac_cv_prog_CC+set}" = set; then
2463 echo $ECHO_N "(cached) $ECHO_C" >&6
2465 if test -n "$CC"; then
2466 ac_cv_prog_CC
="$CC" # Let the user override the test.
2468 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2472 test -z "$as_dir" && as_dir
=.
2473 for ac_exec_ext
in '' $ac_executable_extensions; do
2474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2475 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2486 if test -n "$CC"; then
2487 { echo "$as_me:$LINENO: result: $CC" >&5
2488 echo "${ECHO_T}$CC" >&6; }
2490 { echo "$as_me:$LINENO: result: no" >&5
2491 echo "${ECHO_T}no" >&6; }
2496 if test -z "$ac_cv_prog_CC"; then
2498 # Extract the first word of "gcc", so it can be a program name with args.
2499 set dummy gcc
; ac_word
=$2
2500 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2502 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2503 echo $ECHO_N "(cached) $ECHO_C" >&6
2505 if test -n "$ac_ct_CC"; then
2506 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2508 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2512 test -z "$as_dir" && as_dir
=.
2513 for ac_exec_ext
in '' $ac_executable_extensions; do
2514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2515 ac_cv_prog_ac_ct_CC
="gcc"
2516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2525 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2526 if test -n "$ac_ct_CC"; then
2527 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2528 echo "${ECHO_T}$ac_ct_CC" >&6; }
2530 { echo "$as_me:$LINENO: result: no" >&5
2531 echo "${ECHO_T}no" >&6; }
2534 if test "x$ac_ct_CC" = x
; then
2537 case $cross_compiling:$ac_tool_warned in
2539 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2540 whose name does not start with the host triplet. If you think this
2541 configuration is useful to you, please write to autoconf@gnu.org." >&5
2542 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2543 whose name does not start with the host triplet. If you think this
2544 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2545 ac_tool_warned
=yes ;;
2553 if test -z "$CC"; then
2554 if test -n "$ac_tool_prefix"; then
2555 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2556 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2559 if test "${ac_cv_prog_CC+set}" = set; then
2560 echo $ECHO_N "(cached) $ECHO_C" >&6
2562 if test -n "$CC"; then
2563 ac_cv_prog_CC
="$CC" # Let the user override the test.
2565 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2569 test -z "$as_dir" && as_dir
=.
2570 for ac_exec_ext
in '' $ac_executable_extensions; do
2571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2572 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2583 if test -n "$CC"; then
2584 { echo "$as_me:$LINENO: result: $CC" >&5
2585 echo "${ECHO_T}$CC" >&6; }
2587 { echo "$as_me:$LINENO: result: no" >&5
2588 echo "${ECHO_T}no" >&6; }
2594 if test -z "$CC"; then
2595 # Extract the first word of "cc", so it can be a program name with args.
2596 set dummy cc
; ac_word
=$2
2597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2599 if test "${ac_cv_prog_CC+set}" = set; then
2600 echo $ECHO_N "(cached) $ECHO_C" >&6
2602 if test -n "$CC"; then
2603 ac_cv_prog_CC
="$CC" # Let the user override the test.
2606 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2610 test -z "$as_dir" && as_dir
=.
2611 for ac_exec_ext
in '' $ac_executable_extensions; do
2612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2613 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2614 ac_prog_rejected
=yes
2618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2625 if test $ac_prog_rejected = yes; then
2626 # We found a bogon in the path, so make sure we never use it.
2627 set dummy
$ac_cv_prog_CC
2629 if test $# != 0; then
2630 # We chose a different compiler from the bogus one.
2631 # However, it has the same basename, so the bogon will be chosen
2632 # first if we set CC to just the basename; use the full file name.
2634 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2640 if test -n "$CC"; then
2641 { echo "$as_me:$LINENO: result: $CC" >&5
2642 echo "${ECHO_T}$CC" >&6; }
2644 { echo "$as_me:$LINENO: result: no" >&5
2645 echo "${ECHO_T}no" >&6; }
2650 if test -z "$CC"; then
2651 if test -n "$ac_tool_prefix"; then
2652 for ac_prog
in cl.exe
2654 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2655 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2658 if test "${ac_cv_prog_CC+set}" = set; then
2659 echo $ECHO_N "(cached) $ECHO_C" >&6
2661 if test -n "$CC"; then
2662 ac_cv_prog_CC
="$CC" # Let the user override the test.
2664 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2668 test -z "$as_dir" && as_dir
=.
2669 for ac_exec_ext
in '' $ac_executable_extensions; do
2670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2671 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2682 if test -n "$CC"; then
2683 { echo "$as_me:$LINENO: result: $CC" >&5
2684 echo "${ECHO_T}$CC" >&6; }
2686 { echo "$as_me:$LINENO: result: no" >&5
2687 echo "${ECHO_T}no" >&6; }
2691 test -n "$CC" && break
2694 if test -z "$CC"; then
2696 for ac_prog
in cl.exe
2698 # Extract the first word of "$ac_prog", so it can be a program name with args.
2699 set dummy
$ac_prog; ac_word
=$2
2700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2702 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2703 echo $ECHO_N "(cached) $ECHO_C" >&6
2705 if test -n "$ac_ct_CC"; then
2706 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2708 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2712 test -z "$as_dir" && as_dir
=.
2713 for ac_exec_ext
in '' $ac_executable_extensions; do
2714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2715 ac_cv_prog_ac_ct_CC
="$ac_prog"
2716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2725 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2726 if test -n "$ac_ct_CC"; then
2727 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2728 echo "${ECHO_T}$ac_ct_CC" >&6; }
2730 { echo "$as_me:$LINENO: result: no" >&5
2731 echo "${ECHO_T}no" >&6; }
2735 test -n "$ac_ct_CC" && break
2738 if test "x$ac_ct_CC" = x
; then
2741 case $cross_compiling:$ac_tool_warned in
2743 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2744 whose name does not start with the host triplet. If you think this
2745 configuration is useful to you, please write to autoconf@gnu.org." >&5
2746 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2747 whose name does not start with the host triplet. If you think this
2748 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2749 ac_tool_warned
=yes ;;
2758 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2759 See \`config.log' for more details." >&5
2760 echo "$as_me: error: no acceptable C compiler found in \$PATH
2761 See \`config.log' for more details." >&2;}
2762 { (exit 1); exit 1; }; }
2764 # Provide some information about the compiler.
2765 echo "$as_me:$LINENO: checking for C compiler version" >&5
2766 ac_compiler
=`set X $ac_compile; echo $2`
2767 { (ac_try
="$ac_compiler --version >&5"
2769 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2770 *) ac_try_echo=$ac_try;;
2772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2773 (eval "$ac_compiler --version >&5") 2>&5
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); }
2777 { (ac_try="$ac_compiler -v >&5"
2779 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2780 *) ac_try_echo
=$ac_try;;
2782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2783 (eval "$ac_compiler -v >&5") 2>&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }
2787 { (ac_try
="$ac_compiler -V >&5"
2789 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2790 *) ac_try_echo=$ac_try;;
2792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2793 (eval "$ac_compiler -V >&5") 2>&5
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); }
2798 cat >conftest.$ac_ext <<_ACEOF
2801 cat confdefs.h >>conftest.$ac_ext
2802 cat >>conftest.$ac_ext <<_ACEOF
2803 /* end confdefs.h. */
2813 ac_clean_files_save=$ac_clean_files
2814 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2815 # Try to create an executable without -o first, disregard a.out.
2816 # It will help us diagnose broken compilers, and finding out an intuition
2818 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2819 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2820 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2822 # List of possible output files, starting from the most likely.
2823 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2824 # only as a last resort. b.out is created by i960 compilers.
2825 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2827 # The IRIX 6 linker writes into existing files which may not be
2828 # executable, retaining their permissions. Remove them first so a
2829 # subsequent execution test works.
2831 for ac_file in $ac_files
2834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2835 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2840 if { (ac_try="$ac_link_default"
2842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2843 *) ac_try_echo=$ac_try;;
2845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2846 (eval "$ac_link_default") 2>&5
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); }; then
2850 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2851 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2852 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2853 # so that the user can short-circuit this test for compilers unknown to
2855 for ac_file
in $ac_files ''
2857 test -f "$ac_file" ||
continue
2859 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
2862 # We found the default executable, but exeext='' is most
2866 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2868 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2870 # We set ac_cv_exeext here because the later test for it is not
2871 # safe: cross compilers may not add the suffix if given an `-o'
2872 # argument, so we may need to know it at that point already.
2873 # Even if this section looks crufty: it has the advantage of
2880 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2886 { echo "$as_me:$LINENO: result: $ac_file" >&5
2887 echo "${ECHO_T}$ac_file" >&6; }
2888 if test -z "$ac_file"; then
2889 echo "$as_me: failed program was:" >&5
2890 sed 's/^/| /' conftest.
$ac_ext >&5
2892 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2893 See \`config.log' for more details." >&5
2894 echo "$as_me: error: C compiler cannot create executables
2895 See \`config.log' for more details." >&2;}
2896 { (exit 77); exit 77; }; }
2899 ac_exeext
=$ac_cv_exeext
2901 # Check that the compiler produces executables we can run. If not, either
2902 # the compiler is broken, or we cross compile.
2903 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2904 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2905 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2906 # If not cross compiling, check that we can run a simple program.
2907 if test "$cross_compiling" != yes; then
2908 if { ac_try
='./$ac_file'
2909 { (case "(($ac_try" in
2910 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2911 *) ac_try_echo=$ac_try;;
2913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2914 (eval "$ac_try") 2>&5
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); }; }; then
2920 if test "$cross_compiling" = maybe; then
2923 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2924 If you meant to cross compile, use \`--host'.
2925 See \`config.log' for more details.
" >&5
2926 echo "$as_me: error
: cannot run C compiled programs.
2927 If you meant to cross compile
, use \
`--host'.
2928 See \`config.log
' for more details." >&2;}
2929 { (exit 1); exit 1; }; }
2933 { echo "$as_me:$LINENO: result: yes" >&5
2934 echo "${ECHO_T}yes" >&6; }
2936 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2937 ac_clean_files=$ac_clean_files_save
2938 # Check that the compiler produces executables we can run. If not, either
2939 # the compiler is broken, or we cross compile.
2940 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2941 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2942 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2943 echo "${ECHO_T}$cross_compiling" >&6; }
2945 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2946 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2947 if { (ac_try="$ac_link"
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953 (eval "$ac_link") 2>&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }; then
2957 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2958 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2959 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2961 for ac_file
in conftest.exe conftest conftest.
*; do
2962 test -f "$ac_file" ||
continue
2964 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
2965 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2971 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2972 See \`config.log' for more details." >&5
2973 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2974 See \`config.log' for more details." >&2;}
2975 { (exit 1); exit 1; }; }
2978 rm -f conftest
$ac_cv_exeext
2979 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2980 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2982 rm -f conftest.
$ac_ext
2983 EXEEXT
=$ac_cv_exeext
2985 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2986 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2987 if test "${ac_cv_objext+set}" = set; then
2988 echo $ECHO_N "(cached) $ECHO_C" >&6
2990 cat >conftest.
$ac_ext <<_ACEOF
2993 cat confdefs.h
>>conftest.
$ac_ext
2994 cat >>conftest.
$ac_ext <<_ACEOF
2995 /* end confdefs.h. */
3005 rm -f conftest.o conftest.obj
3006 if { (ac_try
="$ac_compile"
3008 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012 (eval "$ac_compile") 2>&5
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); }; then
3016 for ac_file in conftest.o conftest.obj conftest.*; do
3017 test -f "$ac_file" || continue;
3019 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3020 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3025 echo "$as_me: failed program was:" >&5
3026 sed 's/^/| /' conftest.$ac_ext >&5
3028 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3029 See \`config.log
' for more details." >&5
3030 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3031 See \`config.log' for more details.
" >&2;}
3032 { (exit 1); exit 1; }; }
3035 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3037 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3038 echo "${ECHO_T}$ac_cv_objext" >&6; }
3039 OBJEXT=$ac_cv_objext
3041 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3042 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3043 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3044 echo $ECHO_N "(cached
) $ECHO_C" >&6
3046 cat >conftest.$ac_ext <<_ACEOF
3049 cat confdefs.h >>conftest.$ac_ext
3050 cat >>conftest.$ac_ext <<_ACEOF
3051 /* end confdefs.h. */
3064 rm -f conftest.$ac_objext
3065 if { (ac_try="$ac_compile"
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3070 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3071 (eval "$ac_compile") 2>conftest.er1
3073 grep -v '^ *+' conftest.er1 >conftest.err
3075 cat conftest.err >&5
3076 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3077 (exit $ac_status); } && {
3078 test -z "$ac_c_werror_flag" ||
3079 test ! -s conftest.err
3080 } && test -s conftest.$ac_objext; then
3083 echo "$as_me: failed program was
:" >&5
3084 sed 's/^/| /' conftest.$ac_ext >&5
3089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3090 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3093 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3094 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3095 GCC=`test $ac_compiler_gnu = yes && echo yes`
3096 ac_test_CFLAGS=${CFLAGS+set}
3097 ac_save_CFLAGS=$CFLAGS
3098 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3099 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3100 if test "${ac_cv_prog_cc_g+set}" = set; then
3101 echo $ECHO_N "(cached
) $ECHO_C" >&6
3103 ac_save_c_werror_flag=$ac_c_werror_flag
3104 ac_c_werror_flag=yes
3107 cat >conftest.$ac_ext <<_ACEOF
3110 cat confdefs.h >>conftest.$ac_ext
3111 cat >>conftest.$ac_ext <<_ACEOF
3112 /* end confdefs.h. */
3122 rm -f conftest.$ac_objext
3123 if { (ac_try="$ac_compile"
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3128 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3129 (eval "$ac_compile") 2>conftest.er1
3131 grep -v '^ *+' conftest.er1 >conftest.err
3133 cat conftest.err >&5
3134 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3135 (exit $ac_status); } && {
3136 test -z "$ac_c_werror_flag" ||
3137 test ! -s conftest.err
3138 } && test -s conftest.$ac_objext; then
3141 echo "$as_me: failed program was
:" >&5
3142 sed 's/^/| /' conftest.$ac_ext >&5
3145 cat >conftest.$ac_ext <<_ACEOF
3148 cat confdefs.h >>conftest.$ac_ext
3149 cat >>conftest.$ac_ext <<_ACEOF
3150 /* end confdefs.h. */
3160 rm -f conftest.$ac_objext
3161 if { (ac_try="$ac_compile"
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3166 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3167 (eval "$ac_compile") 2>conftest.er1
3169 grep -v '^ *+' conftest.er1 >conftest.err
3171 cat conftest.err >&5
3172 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3173 (exit $ac_status); } && {
3174 test -z "$ac_c_werror_flag" ||
3175 test ! -s conftest.err
3176 } && test -s conftest.$ac_objext; then
3179 echo "$as_me: failed program was
:" >&5
3180 sed 's/^/| /' conftest.$ac_ext >&5
3182 ac_c_werror_flag=$ac_save_c_werror_flag
3184 cat >conftest.$ac_ext <<_ACEOF
3187 cat confdefs.h >>conftest.$ac_ext
3188 cat >>conftest.$ac_ext <<_ACEOF
3189 /* end confdefs.h. */
3199 rm -f conftest.$ac_objext
3200 if { (ac_try="$ac_compile"
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3205 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3206 (eval "$ac_compile") 2>conftest.er1
3208 grep -v '^ *+' conftest.er1 >conftest.err
3210 cat conftest.err >&5
3211 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3212 (exit $ac_status); } && {
3213 test -z "$ac_c_werror_flag" ||
3214 test ! -s conftest.err
3215 } && test -s conftest.$ac_objext; then
3218 echo "$as_me: failed program was
:" >&5
3219 sed 's/^/| /' conftest.$ac_ext >&5
3224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3231 ac_c_werror_flag=$ac_save_c_werror_flag
3233 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3234 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3235 if test "$ac_test_CFLAGS" = set; then
3236 CFLAGS=$ac_save_CFLAGS
3237 elif test $ac_cv_prog_cc_g = yes; then
3238 if test "$GCC" = yes; then
3244 if test "$GCC" = yes; then
3250 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3251 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3252 if test "${ac_cv_prog_cc_c89+set}" = set; then
3253 echo $ECHO_N "(cached
) $ECHO_C" >&6
3255 ac_cv_prog_cc_c89=no
3257 cat >conftest.$ac_ext <<_ACEOF
3260 cat confdefs.h >>conftest.$ac_ext
3261 cat >>conftest.$ac_ext <<_ACEOF
3262 /* end confdefs.h. */
3265 #include <sys/types.h>
3266 #include <sys/stat.h>
3267 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3268 struct buf { int x; };
3269 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3270 static char *e (p, i)
3276 static char *f (char * (*g) (char **, int), char **p, ...)
3281 s = g (p, va_arg (v,int));
3286 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3287 function prototypes and stuff, but not '\xHH' hex character constants.
3288 These don't provoke an error unfortunately, instead are silently treated
3289 as 'x'. The following induces an error, until -std is added to get
3290 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3291 array size at least. It's necessary to write '\x00'==0 to get something
3292 that's true only with -std. */
3293 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3295 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3296 inside strings and character constants. */
3298 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3300 int test (int i, double x);
3301 struct s1 {int (*f) (int a);};
3302 struct s2 {int (*f) (double a);};
3303 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3309 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3314 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3315 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3317 CC="$ac_save_CC $ac_arg"
3318 rm -f conftest.$ac_objext
3319 if { (ac_try="$ac_compile"
3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322 *) ac_try_echo=$ac_try;;
3324 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3325 (eval "$ac_compile") 2>conftest.er1
3327 grep -v '^ *+' conftest.er1 >conftest.err
3329 cat conftest.err >&5
3330 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3331 (exit $ac_status); } && {
3332 test -z "$ac_c_werror_flag" ||
3333 test ! -s conftest.err
3334 } && test -s conftest.$ac_objext; then
3335 ac_cv_prog_cc_c89=$ac_arg
3337 echo "$as_me: failed program was
:" >&5
3338 sed 's/^/| /' conftest.$ac_ext >&5
3343 rm -f core conftest.err conftest.$ac_objext
3344 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3346 rm -f conftest.$ac_ext
3351 case "x
$ac_cv_prog_cc_c89" in
3353 { echo "$as_me:$LINENO: result
: none needed
" >&5
3354 echo "${ECHO_T}none needed
" >&6; } ;;
3356 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3357 echo "${ECHO_T}unsupported
" >&6; } ;;
3359 CC="$CC $ac_cv_prog_cc_c89"
3360 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3361 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3366 ac_cpp='$CPP $CPPFLAGS'
3367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3370 DEPDIR="${am__leading_dot}deps
"
3372 ac_config_commands="$ac_config_commands depfiles
"
3375 am_make=${MAKE-make}
3376 cat > confinc << 'END'
3381 # If we don't find an include directive, just comment out the code.
3382 { echo "$as_me:$LINENO: checking
for style of include used by
$am_make" >&5
3383 echo $ECHO_N "checking
for style of include used by
$am_make...
$ECHO_C" >&6; }
3387 # First try GNU make style include.
3388 echo "include confinc" > confmf
3389 # We grep out `Entering directory' and `Leaving directory'
3390 # messages which can occur if `w' ends up in MAKEFLAGS.
3391 # In particular we don't look at `^make:' because GNU make might
3392 # be invoked under some other name (usually "gmake"), in which
3393 # case it prints its new name instead of `make'.
3394 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3399 # Now try BSD make style include.
3400 if test "$am__include" = "#"; then
3401 echo '.include "confinc"' > confmf
3402 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3403 am__include
=.include
3410 { echo "$as_me:$LINENO: result: $_am_result" >&5
3411 echo "${ECHO_T}$_am_result" >&6; }
3412 rm -f confinc confmf
3414 # Check whether --enable-dependency-tracking was given.
3415 if test "${enable_dependency_tracking+set}" = set; then
3416 enableval
=$enable_dependency_tracking;
3419 if test "x$enable_dependency_tracking" != xno
; then
3420 am_depcomp
="$ac_aux_dir/depcomp"
3423 if test "x$enable_dependency_tracking" != xno; then
3433 depcc
="$CC" am_compiler_list
=
3435 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3436 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3437 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3438 echo $ECHO_N "(cached) $ECHO_C" >&6
3440 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3441 # We make a subdir and do the tests there. Otherwise we can end up
3442 # making bogus files that we don't know about and never remove. For
3443 # instance it was reported that on HP-UX the gcc test will end up
3444 # making a dummy file named `D' -- because `-MD' means `put the output
3447 # Copy depcomp to subdir because otherwise we won't find it if we're
3448 # using a relative directory.
3449 cp "$am_depcomp" conftest.dir
3451 # We will build objects and dependencies in a subdirectory because
3452 # it helps to detect inapplicable dependency modes. For instance
3453 # both Tru64's cc and ICC support -MD to output dependencies as a
3454 # side effect of compilation, but ICC will put the dependencies in
3455 # the current directory while Tru64 will put them in the object
3459 am_cv_CC_dependencies_compiler_type
=none
3460 if test "$am_compiler_list" = ""; then
3461 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3463 for depmode
in $am_compiler_list; do
3464 # Setup a source with many dependencies, because some compilers
3465 # like to wrap large dependency lists on column 80 (with \), and
3466 # we should not choose a depcomp mode which is confused by this.
3468 # We need to recreate these files for each test, as the compiler may
3469 # overwrite some of them when testing with obscure command lines.
3470 # This happens at least with the AIX C compiler.
3472 for i
in 1 2 3 4 5 6; do
3473 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3474 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3475 # Solaris 8's {/usr,}/bin/sh.
3476 touch sub
/conftst
$i.h
3478 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3482 # after this tag, mechanisms are not by side-effect, so they'll
3483 # only be used when explicitly requested
3484 if test "x$enable_dependency_tracking" = xyes
; then
3492 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3493 # mode. It turns out that the SunPro C++ compiler does not properly
3494 # handle `-M -o', and we need to detect this.
3495 if depmode
=$depmode \
3496 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3497 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3498 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3499 >/dev
/null
2>conftest.err
&&
3500 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3501 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3502 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3503 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3504 # icc doesn't choke on unknown options, it will just issue warnings
3505 # or remarks (even with -Werror). So we grep stderr for any message
3506 # that says an option was ignored or not supported.
3507 # When given -MP, icc 7.0 and 7.1 complain thusly:
3508 # icc: Command line warning: ignoring option '-M'; no argument required
3509 # The diagnosis changed in icc 8.0:
3510 # icc: Command line remark: option '-MP' not supported
3511 if (grep 'ignoring option' conftest.err ||
3512 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3513 am_cv_CC_dependencies_compiler_type
=$depmode
3522 am_cv_CC_dependencies_compiler_type
=none
3526 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3527 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3528 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3531 test "x$enable_dependency_tracking" != xno \
3532 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3534 am__fastdepCC_FALSE
='#'
3536 am__fastdepCC_TRUE
='#'
3537 am__fastdepCC_FALSE
=
3542 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3543 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
3544 if test "${ac_cv_c_const+set}" = set; then
3545 echo $ECHO_N "(cached) $ECHO_C" >&6
3547 cat >conftest.
$ac_ext <<_ACEOF
3550 cat confdefs.h
>>conftest.
$ac_ext
3551 cat >>conftest.
$ac_ext <<_ACEOF
3552 /* end confdefs.h. */
3557 /* FIXME: Include the comments suggested by Paul. */
3559 /* Ultrix mips cc rejects this. */
3560 typedef int charset[2];
3562 /* SunOS 4.1.1 cc rejects this. */
3563 char const *const *pcpcc;
3565 /* NEC SVR4.0.2 mips cc rejects this. */
3566 struct point {int x, y;};
3567 static struct point const zero = {0,0};
3568 /* AIX XL C 1.02.0.0 rejects this.
3569 It does not let you subtract one const X* pointer from another in
3570 an arm of an if-expression whose if-part is not a constant
3572 const char *g = "string";
3573 pcpcc = &g + (g ? g-g : 0);
3574 /* HPUX 7.0 cc rejects these. */
3576 ppc = (char**) pcpcc;
3577 pcpcc = (char const *const *) ppc;
3578 { /* SCO 3.2v4 cc rejects this. */
3580 char const *s = 0 ? (char *) 0 : (char const *) 0;
3585 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3587 const int *foo = &x[0];
3590 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3591 typedef const int *iptr;
3595 { /* AIX XL C 1.02.0.0 rejects this saying
3596 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3597 struct s { int j; const int *ap[3]; };
3598 struct s *b; b->j = 5;
3600 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3604 return !cs[0] && !zero.x;
3611 rm -f conftest.
$ac_objext
3612 if { (ac_try
="$ac_compile"
3614 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3615 *) ac_try_echo=$ac_try;;
3617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3618 (eval "$ac_compile") 2>conftest.er1
3620 grep -v '^ *+' conftest.er1 >conftest.err
3622 cat conftest.err >&5
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); } && {
3625 test -z "$ac_c_werror_flag" ||
3626 test ! -s conftest.err
3627 } && test -s conftest.$ac_objext; then
3630 echo "$as_me: failed program was:" >&5
3631 sed 's/^/| /' conftest.$ac_ext >&5
3636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3638 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3639 echo "${ECHO_T}$ac_cv_c_const" >&6; }
3640 if test $ac_cv_c_const = no; then
3642 cat >>confdefs.h <<\_ACEOF
3648 { echo "$as_me:$LINENO: checking for inline" >&5
3649 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3650 if test "${ac_cv_c_inline+set}" = set; then
3651 echo $ECHO_N "(cached) $ECHO_C" >&6
3654 for ac_kw in inline __inline__ __inline; do
3655 cat >conftest.$ac_ext <<_ACEOF
3658 cat confdefs.h >>conftest.$ac_ext
3659 cat >>conftest.$ac_ext <<_ACEOF
3660 /* end confdefs.h. */
3663 static $ac_kw foo_t static_foo () {return 0; }
3664 $ac_kw foo_t foo () {return 0; }
3668 rm -f conftest.$ac_objext
3669 if { (ac_try="$ac_compile"
3671 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3672 *) ac_try_echo
=$ac_try;;
3674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3675 (eval "$ac_compile") 2>conftest.er1
3677 grep -v '^ *+' conftest.er1
>conftest.err
3679 cat conftest.err
>&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); } && {
3682 test -z "$ac_c_werror_flag" ||
3683 test ! -s conftest.err
3684 } && test -s conftest.
$ac_objext; then
3685 ac_cv_c_inline
=$ac_kw
3687 echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.
$ac_ext >&5
3693 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3694 test "$ac_cv_c_inline" != no
&& break
3698 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3699 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
3702 case $ac_cv_c_inline in
3705 case $ac_cv_c_inline in
3707 *) ac_val
=$ac_cv_c_inline;;
3709 cat >>confdefs.h
<<_ACEOF
3711 #define inline $ac_val
3719 ## ----------------------- ##
3720 ## Libtool initialisation. ##
3721 ## ----------------------- ##
3724 # Check whether --enable-shared was given.
3725 if test "${enable_shared+set}" = set; then
3726 enableval
=$enable_shared; p
=${PACKAGE-default}
3728 yes) enable_shared
=yes ;;
3729 no
) enable_shared
=no
;;
3732 # Look at the argument we got. We use all the common list separators.
3733 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
3734 for pkg
in $enableval; do
3736 if test "X$pkg" = "X$p"; then
3748 # Check whether --enable-static was given.
3749 if test "${enable_static+set}" = set; then
3750 enableval
=$enable_static; p
=${PACKAGE-default}
3752 yes) enable_static
=yes ;;
3753 no
) enable_static
=no
;;
3756 # Look at the argument we got. We use all the common list separators.
3757 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
3758 for pkg
in $enableval; do
3760 if test "X$pkg" = "X$p"; then
3772 # Check whether --enable-fast-install was given.
3773 if test "${enable_fast_install+set}" = set; then
3774 enableval
=$enable_fast_install; p
=${PACKAGE-default}
3776 yes) enable_fast_install
=yes ;;
3777 no
) enable_fast_install
=no
;;
3779 enable_fast_install
=no
3780 # Look at the argument we got. We use all the common list separators.
3781 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
3782 for pkg
in $enableval; do
3784 if test "X$pkg" = "X$p"; then
3785 enable_fast_install
=yes
3792 enable_fast_install
=yes
3796 # Make sure we can run config.sub.
3797 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3798 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3799 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3800 { (exit 1); exit 1; }; }
3802 { echo "$as_me:$LINENO: checking build system type" >&5
3803 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3804 if test "${ac_cv_build+set}" = set; then
3805 echo $ECHO_N "(cached) $ECHO_C" >&6
3807 ac_build_alias
=$build_alias
3808 test "x$ac_build_alias" = x
&&
3809 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3810 test "x$ac_build_alias" = x
&&
3811 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3812 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3813 { (exit 1); exit 1; }; }
3814 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3815 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3816 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3817 { (exit 1); exit 1; }; }
3820 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3821 echo "${ECHO_T}$ac_cv_build" >&6; }
3822 case $ac_cv_build in
3824 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3825 echo "$as_me: error: invalid value of canonical build" >&2;}
3826 { (exit 1); exit 1; }; };;
3829 ac_save_IFS
=$IFS; IFS
='-'
3835 # Remember, the first character of IFS is used to create $*,
3836 # except with old shells:
3839 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3842 { echo "$as_me:$LINENO: checking host system type" >&5
3843 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3844 if test "${ac_cv_host+set}" = set; then
3845 echo $ECHO_N "(cached) $ECHO_C" >&6
3847 if test "x$host_alias" = x
; then
3848 ac_cv_host
=$ac_cv_build
3850 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3851 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3852 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3853 { (exit 1); exit 1; }; }
3857 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3858 echo "${ECHO_T}$ac_cv_host" >&6; }
3861 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3862 echo "$as_me: error: invalid value of canonical host" >&2;}
3863 { (exit 1); exit 1; }; };;
3866 ac_save_IFS
=$IFS; IFS
='-'
3872 # Remember, the first character of IFS is used to create $*,
3873 # except with old shells:
3876 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3879 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3880 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3881 if test "${lt_cv_path_SED+set}" = set; then
3882 echo $ECHO_N "(cached) $ECHO_C" >&6
3884 # Loop through the user's path and test for sed and gsed.
3885 # Then use that list of sed's as ones to test for truncation.
3886 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3890 test -z "$as_dir" && as_dir
=.
3891 for lt_ac_prog
in sed gsed
; do
3892 for ac_exec_ext
in '' $ac_executable_extensions; do
3893 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3894 lt_ac_sed_list
="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3902 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3903 # along with /bin/sed that truncates output.
3904 for lt_ac_sed
in $lt_ac_sed_list /usr
/xpg
4/bin
/sed; do
3905 test ! -f $lt_ac_sed && continue
3906 cat /dev
/null
> conftest.
in
3908 echo $ECHO_N "0123456789$ECHO_C" >conftest.
in
3909 # Check for GNU sed and select it if it is found.
3910 if "$lt_ac_sed" --version 2>&1 < /dev
/null |
grep 'GNU' > /dev
/null
; then
3911 lt_cv_path_SED
=$lt_ac_sed
3915 cat conftest.
in conftest.
in >conftest.tmp
3916 mv conftest.tmp conftest.
in
3917 cp conftest.
in conftest.
nl
3919 $lt_ac_sed -e 's/a$//' < conftest.
nl >conftest.out ||
break
3920 cmp -s conftest.out conftest.
nl ||
break
3921 # 10000 chars as input seems more than enough
3922 test $lt_ac_count -gt 10 && break
3923 lt_ac_count
=`expr $lt_ac_count + 1`
3924 if test $lt_ac_count -gt $lt_ac_max; then
3925 lt_ac_max
=$lt_ac_count
3926 lt_cv_path_SED
=$lt_ac_sed
3935 { echo "$as_me:$LINENO: result: $SED" >&5
3936 echo "${ECHO_T}$SED" >&6; }
3938 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3939 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3940 if test "${ac_cv_path_GREP+set}" = set; then
3941 echo $ECHO_N "(cached) $ECHO_C" >&6
3943 # Extract the first word of "grep ggrep" to use in msg output
3944 if test -z "$GREP"; then
3945 set dummy
grep ggrep
; ac_prog_name
=$2
3946 if test "${ac_cv_path_GREP+set}" = set; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3949 ac_path_GREP_found
=false
3950 # Loop through the user's path and test for each of PROGNAME-LIST
3951 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3952 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3955 test -z "$as_dir" && as_dir
=.
3956 for ac_prog
in grep ggrep
; do
3957 for ac_exec_ext
in '' $ac_executable_extensions; do
3958 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3959 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3960 # Check for GNU ac_path_GREP and select it if it is found.
3961 # Check for GNU $ac_path_GREP
3962 case `"$ac_path_GREP" --version 2>&1` in
3964 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3967 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3970 cat "conftest.in" "conftest.in" >"conftest.tmp"
3971 mv "conftest.tmp" "conftest.in"
3972 cp "conftest.in" "conftest.nl"
3973 echo 'GREP' >> "conftest.nl"
3974 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3975 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3976 ac_count
=`expr $ac_count + 1`
3977 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3978 # Best one so far, save it but keep looking for a better one
3979 ac_cv_path_GREP
="$ac_path_GREP"
3980 ac_path_GREP_max
=$ac_count
3982 # 10*(2^10) chars as input seems more than enough
3983 test $ac_count -gt 10 && break
3985 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3989 $ac_path_GREP_found && break 3
3999 GREP
="$ac_cv_path_GREP"
4000 if test -z "$GREP"; then
4001 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4002 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4003 { (exit 1); exit 1; }; }
4007 ac_cv_path_GREP
=$GREP
4012 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4013 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4014 GREP
="$ac_cv_path_GREP"
4017 { echo "$as_me:$LINENO: checking for egrep" >&5
4018 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4019 if test "${ac_cv_path_EGREP+set}" = set; then
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4022 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4023 then ac_cv_path_EGREP
="$GREP -E"
4025 # Extract the first word of "egrep" to use in msg output
4026 if test -z "$EGREP"; then
4027 set dummy
egrep; ac_prog_name
=$2
4028 if test "${ac_cv_path_EGREP+set}" = set; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
4031 ac_path_EGREP_found
=false
4032 # Loop through the user's path and test for each of PROGNAME-LIST
4033 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4034 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4037 test -z "$as_dir" && as_dir
=.
4038 for ac_prog
in egrep; do
4039 for ac_exec_ext
in '' $ac_executable_extensions; do
4040 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4041 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4042 # Check for GNU ac_path_EGREP and select it if it is found.
4043 # Check for GNU $ac_path_EGREP
4044 case `"$ac_path_EGREP" --version 2>&1` in
4046 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4049 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4052 cat "conftest.in" "conftest.in" >"conftest.tmp"
4053 mv "conftest.tmp" "conftest.in"
4054 cp "conftest.in" "conftest.nl"
4055 echo 'EGREP' >> "conftest.nl"
4056 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4057 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4058 ac_count
=`expr $ac_count + 1`
4059 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4060 # Best one so far, save it but keep looking for a better one
4061 ac_cv_path_EGREP
="$ac_path_EGREP"
4062 ac_path_EGREP_max
=$ac_count
4064 # 10*(2^10) chars as input seems more than enough
4065 test $ac_count -gt 10 && break
4067 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4071 $ac_path_EGREP_found && break 3
4081 EGREP
="$ac_cv_path_EGREP"
4082 if test -z "$EGREP"; then
4083 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4084 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4085 { (exit 1); exit 1; }; }
4089 ac_cv_path_EGREP
=$EGREP
4095 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4096 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4097 EGREP
="$ac_cv_path_EGREP"
4101 # Check whether --with-gnu-ld was given.
4102 if test "${with_gnu_ld+set}" = set; then
4103 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
4109 if test "$GCC" = yes; then
4110 # Check if gcc -print-prog-name=ld gives a path.
4111 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4112 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4115 # gcc leaves a trailing carriage return which upsets mingw
4116 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4118 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
4121 # Accept absolute paths.
4123 re_direlt
='/[^/][^/]*/\.\./'
4124 # Canonicalize the pathname of ld
4125 ac_prog
=`echo $ac_prog| $SED 's%\\\\%/%g'`
4126 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
4127 ac_prog
=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4129 test -z "$LD" && LD
="$ac_prog"
4132 # If it fails, then pretend we aren't using GCC.
4136 # If it is relative, then search for the first ld in PATH.
4140 elif test "$with_gnu_ld" = yes; then
4141 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4142 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4144 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4145 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4147 if test "${lt_cv_path_LD+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4150 if test -z "$LD"; then
4151 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4152 for ac_dir
in $PATH; do
4154 test -z "$ac_dir" && ac_dir
=.
4155 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
4156 lt_cv_path_LD
="$ac_dir/$ac_prog"
4157 # Check to see if the program is GNU ld. I'd rather use --version,
4158 # but apparently some variants of GNU ld only accept -v.
4159 # Break only if it was the GNU/non-GNU ld that we prefer.
4160 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4161 *GNU
* |
*'with BFD'*)
4162 test "$with_gnu_ld" != no
&& break
4165 test "$with_gnu_ld" != yes && break
4172 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
4177 if test -n "$LD"; then
4178 { echo "$as_me:$LINENO: result: $LD" >&5
4179 echo "${ECHO_T}$LD" >&6; }
4181 { echo "$as_me:$LINENO: result: no" >&5
4182 echo "${ECHO_T}no" >&6; }
4184 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4185 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4186 { (exit 1); exit 1; }; }
4187 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4188 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4189 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4190 echo $ECHO_N "(cached) $ECHO_C" >&6
4192 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4193 case `$LD -v 2>&1 </dev/null` in
4194 *GNU
* |
*'with BFD'*)
4195 lt_cv_prog_gnu_ld
=yes
4198 lt_cv_prog_gnu_ld
=no
4202 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4203 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4204 with_gnu_ld
=$lt_cv_prog_gnu_ld
4207 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4208 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4209 if test "${lt_cv_ld_reload_flag+set}" = set; then
4210 echo $ECHO_N "(cached) $ECHO_C" >&6
4212 lt_cv_ld_reload_flag
='-r'
4214 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4215 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4216 reload_flag
=$lt_cv_ld_reload_flag
4217 case $reload_flag in
4219 *) reload_flag
=" $reload_flag" ;;
4221 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
4224 if test "$GCC" = yes; then
4225 reload_cmds
='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4227 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
4232 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4233 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4234 if test "${lt_cv_path_NM+set}" = set; then
4235 echo $ECHO_N "(cached) $ECHO_C" >&6
4237 if test -n "$NM"; then
4238 # Let the user override the test.
4241 lt_nm_to_check
="${ac_tool_prefix}nm"
4242 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4243 lt_nm_to_check
="$lt_nm_to_check nm"
4245 for lt_tmp_nm
in $lt_nm_to_check; do
4246 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4247 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
4249 test -z "$ac_dir" && ac_dir
=.
4250 tmp_nm
="$ac_dir/$lt_tmp_nm"
4251 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
4252 # Check to see if the nm accepts a BSD-compat flag.
4253 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4254 # nm: unknown option "B" ignored
4255 # Tru64's nm complains that /dev/null is an invalid object file
4256 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4257 */dev
/null
* |
*'Invalid file or object type'*)
4258 lt_cv_path_NM
="$tmp_nm -B"
4262 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4264 lt_cv_path_NM
="$tmp_nm -p"
4268 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4269 continue # so that we can try to find one that supports BSD flags
4278 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
4281 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4282 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4285 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4286 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4288 if test "$LN_S" = "ln -s"; then
4289 { echo "$as_me:$LINENO: result: yes" >&5
4290 echo "${ECHO_T}yes" >&6; }
4292 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4293 echo "${ECHO_T}no, using $LN_S" >&6; }
4296 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4297 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4298 if test "${lt_cv_deplibs_check_method+set}" = set; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4301 lt_cv_file_magic_cmd
='$MAGIC_CMD'
4302 lt_cv_file_magic_test_file
=
4303 lt_cv_deplibs_check_method
='unknown'
4304 # Need to set the preceding variable on all platforms that support
4305 # interlibrary dependencies.
4306 # 'none' -- dependencies not supported.
4307 # `unknown' -- same as none, but documents that we really don't know.
4308 # 'pass_all' -- all dependencies passed with no checks.
4309 # 'test_compile' -- check by making test program.
4310 # 'file_magic [[regex]]' -- check by looking for files in library path
4311 # which responds to the $file_magic_cmd with a given extended regex.
4312 # If you have `file' or equivalent on your system and you're not sure
4313 # whether `pass_all' will *always* work, you probably want this one.
4317 lt_cv_deplibs_check_method
=pass_all
4321 lt_cv_deplibs_check_method
=pass_all
4325 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4326 lt_cv_file_magic_cmd
='/usr/bin/file -L'
4327 lt_cv_file_magic_test_file
=/shlib
/libc.so
4331 # func_win32_libid is a shell function defined in ltmain.sh
4332 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
4333 lt_cv_file_magic_cmd
='func_win32_libid'
4337 # Base MSYS/MinGW do not provide the 'file' command needed by
4338 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4339 # unless we find 'file', for example because we are cross-compiling.
4340 if ( file / ) >/dev
/null
2>&1; then
4341 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
4342 lt_cv_file_magic_cmd
='func_win32_libid'
4344 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
4345 lt_cv_file_magic_cmd
='$OBJDUMP -f'
4349 darwin
* | rhapsody
*)
4350 lt_cv_deplibs_check_method
=pass_all
4353 freebsd
* | dragonfly
*)
4354 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
4357 # Not sure whether the presence of OpenBSD here was a mistake.
4358 # Let's accept both of them until this is cleared up.
4359 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4360 lt_cv_file_magic_cmd
=/usr
/bin
/file
4361 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
4365 lt_cv_deplibs_check_method
=pass_all
4370 lt_cv_deplibs_check_method
=pass_all
4373 hpux10.20
* | hpux11
*)
4374 lt_cv_file_magic_cmd
=/usr
/bin
/file
4377 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4378 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
4381 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]'
4382 lt_cv_file_magic_test_file
=/usr
/lib
/pa20_64
/libc.sl
4385 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4386 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
4392 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4393 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|\.a)$'
4396 irix5
* | irix6
* | nonstopux
*)
4398 *-32|
*"-32 ") libmagic
=32-bit;;
4399 *-n32|
*"-n32 ") libmagic
=N32
;;
4400 *-64|
*"-64 ") libmagic
=64-bit;;
4401 *) libmagic
=never-match
;;
4403 lt_cv_deplibs_check_method
=pass_all
4406 # This must be Linux ELF.
4407 linux
* | k
*bsd
*-gnu)
4408 lt_cv_deplibs_check_method
=pass_all
4412 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
4413 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4415 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4420 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4421 lt_cv_file_magic_cmd
=/usr
/bin
/file
4422 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
4426 lt_cv_deplibs_check_method
=unknown
4430 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4431 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4433 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4437 osf3
* | osf4
* | osf5
*)
4438 lt_cv_deplibs_check_method
=pass_all
4442 lt_cv_deplibs_check_method
=pass_all
4446 lt_cv_deplibs_check_method
=pass_all
4450 case $host_vendor in
4452 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]'
4453 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
4456 lt_cv_deplibs_check_method
=pass_all
4459 lt_cv_file_magic_cmd
='/bin/file'
4460 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4463 lt_cv_file_magic_cmd
='/bin/file'
4464 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4465 lt_cv_file_magic_test_file
=/lib
/libc.so
4468 lt_cv_deplibs_check_method
=pass_all
4471 lt_cv_deplibs_check_method
=pass_all
4476 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
4477 lt_cv_deplibs_check_method
=pass_all
4482 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4483 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4484 file_magic_cmd
=$lt_cv_file_magic_cmd
4485 deplibs_check_method
=$lt_cv_deplibs_check_method
4486 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
4491 # If no C compiler was specified, use CC.
4494 # If no C compiler flags were specified, use CFLAGS.
4495 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
4497 # Allow CC to be a program name with arguments.
4500 # Check whether --enable-libtool-lock was given.
4501 if test "${enable_libtool_lock+set}" = set; then
4502 enableval
=$enable_libtool_lock;
4505 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
4507 # Some flags need to be propagated to the compiler or linker for good
4511 # Find out which ABI we are using.
4512 echo 'int i;' > conftest.
$ac_ext
4513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4514 (eval $ac_compile) 2>&5
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); }; then
4518 case `/usr/bin/file conftest.$ac_objext` in
4530 # Find out which ABI we are using.
4531 echo '#line 4531 "configure"' > conftest.
$ac_ext
4532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4533 (eval $ac_compile) 2>&5
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); }; then
4537 if test "$lt_cv_prog_gnu_ld" = yes; then
4538 case `/usr/bin/file conftest.$ac_objext` in
4540 LD
="${LD-ld} -melf32bsmip"
4543 LD
="${LD-ld} -melf32bmipn32"
4546 LD
="${LD-ld} -melf64bmip"
4550 case `/usr/bin/file conftest.$ac_objext` in
4566 x86_64-
*kfreebsd
*-gnu|x86_64-
*linux
*|ppc
*-*linux
*|powerpc
*-*linux
*| \
4567 s390
*-*linux
*|sparc
*-*linux
*)
4568 # Find out which ABI we are using.
4569 echo 'int i;' > conftest.
$ac_ext
4570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4571 (eval $ac_compile) 2>&5
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); }; then
4575 case `/usr/bin/file conftest.o` in
4578 x86_64-
*kfreebsd
*-gnu)
4579 LD
="${LD-ld} -m elf_i386_fbsd"
4582 LD
="${LD-ld} -m elf_i386"
4584 ppc64-
*linux
*|powerpc64-
*linux
*)
4585 LD
="${LD-ld} -m elf32ppclinux"
4588 LD
="${LD-ld} -m elf_s390"
4591 LD
="${LD-ld} -m elf32_sparc"
4598 x86_64-
*kfreebsd
*-gnu)
4599 LD
="${LD-ld} -m elf_x86_64_fbsd"
4602 LD
="${LD-ld} -m elf_x86_64"
4604 ppc
*-*linux
*|powerpc
*-*linux
*)
4605 LD
="${LD-ld} -m elf64ppc"
4608 LD
="${LD-ld} -m elf64_s390"
4611 LD
="${LD-ld} -m elf64_sparc"
4621 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4622 SAVE_CFLAGS
="$CFLAGS"
4623 CFLAGS
="$CFLAGS -belf"
4624 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4625 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4626 if test "${lt_cv_cc_needs_belf+set}" = set; then
4627 echo $ECHO_N "(cached) $ECHO_C" >&6
4630 ac_cpp
='$CPP $CPPFLAGS'
4631 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4632 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4633 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4635 cat >conftest.
$ac_ext <<_ACEOF
4638 cat confdefs.h
>>conftest.
$ac_ext
4639 cat >>conftest.
$ac_ext <<_ACEOF
4640 /* end confdefs.h. */
4650 rm -f conftest.
$ac_objext conftest
$ac_exeext
4651 if { (ac_try
="$ac_link"
4653 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4654 *) ac_try_echo=$ac_try;;
4656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4657 (eval "$ac_link") 2>conftest.er1
4659 grep -v '^ *+' conftest.er1 >conftest.err
4661 cat conftest.err >&5
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); } && {
4664 test -z "$ac_c_werror_flag" ||
4665 test ! -s conftest.err
4666 } && test -s conftest$ac_exeext &&
4667 $as_test_x conftest$ac_exeext; then
4668 lt_cv_cc_needs_belf=yes
4670 echo "$as_me: failed program was:" >&5
4671 sed 's/^/| /' conftest.$ac_ext >&5
4673 lt_cv_cc_needs_belf=no
4676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4677 conftest$ac_exeext conftest.$ac_ext
4679 ac_cpp='$CPP $CPPFLAGS'
4680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4685 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4686 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4687 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4688 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4689 CFLAGS="$SAVE_CFLAGS"
4693 # Find out which ABI we are using.
4694 echo 'int i;' > conftest.$ac_ext
4695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4696 (eval $ac_compile) 2>&5
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); }; then
4700 case `/usr
/bin
/file conftest.o
` in
4702 case $lt_cv_prog_gnu_ld in
4703 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4704 *) LD="${LD-ld} -64" ;;
4712 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4713 if test -n "$ac_tool_prefix"; then
4714 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4715 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4716 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4718 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4719 echo $ECHO_N "(cached) $ECHO_C" >&6
4721 if test -n "$DLLTOOL"; then
4722 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728 test -z "$as_dir" && as_dir=.
4729 for ac_exec_ext in '' $ac_executable_extensions; do
4730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4731 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4741 DLLTOOL=$ac_cv_prog_DLLTOOL
4742 if test -n "$DLLTOOL"; then
4743 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4744 echo "${ECHO_T}$DLLTOOL" >&6; }
4746 { echo "$as_me:$LINENO: result: no" >&5
4747 echo "${ECHO_T}no" >&6; }
4752 if test -z "$ac_cv_prog_DLLTOOL"; then
4753 ac_ct_DLLTOOL=$DLLTOOL
4754 # Extract the first word of "dlltool", so it can be a program name with args.
4755 set dummy dlltool; ac_word=$2
4756 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4758 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4759 echo $ECHO_N "(cached) $ECHO_C" >&6
4761 if test -n "$ac_ct_DLLTOOL"; then
4762 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768 test -z "$as_dir" && as_dir=.
4769 for ac_exec_ext in '' $ac_executable_extensions; do
4770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4771 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4781 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4782 if test -n "$ac_ct_DLLTOOL"; then
4783 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4784 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4786 { echo "$as_me:$LINENO: result: no" >&5
4787 echo "${ECHO_T}no" >&6; }
4790 if test "x$ac_ct_DLLTOOL" = x; then
4793 case $cross_compiling:$ac_tool_warned in
4795 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4796 whose name does not start with the host triplet. If you think this
4797 configuration is useful to you, please write to autoconf@gnu.org." >&5
4798 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4799 whose name does not start with the host triplet. If you think this
4800 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4801 ac_tool_warned=yes ;;
4803 DLLTOOL=$ac_ct_DLLTOOL
4806 DLLTOOL="$ac_cv_prog_DLLTOOL"
4809 if test -n "$ac_tool_prefix"; then
4810 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4811 set dummy ${ac_tool_prefix}as; ac_word=$2
4812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4814 if test "${ac_cv_prog_AS+set}" = set; then
4815 echo $ECHO_N "(cached) $ECHO_C" >&6
4817 if test -n "$AS"; then
4818 ac_cv_prog_AS="$AS" # Let the user override the test.
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824 test -z "$as_dir" && as_dir=.
4825 for ac_exec_ext in '' $ac_executable_extensions; do
4826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4827 ac_cv_prog_AS="${ac_tool_prefix}as"
4828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4838 if test -n "$AS"; then
4839 { echo "$as_me:$LINENO: result: $AS" >&5
4840 echo "${ECHO_T}$AS" >&6; }
4842 { echo "$as_me:$LINENO: result: no" >&5
4843 echo "${ECHO_T}no" >&6; }
4848 if test -z "$ac_cv_prog_AS"; then
4850 # Extract the first word of "as", so it can be a program name with args.
4851 set dummy as; ac_word=$2
4852 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4854 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4855 echo $ECHO_N "(cached) $ECHO_C" >&6
4857 if test -n "$ac_ct_AS"; then
4858 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864 test -z "$as_dir" && as_dir=.
4865 for ac_exec_ext in '' $ac_executable_extensions; do
4866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4867 ac_cv_prog_ac_ct_AS="as"
4868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4877 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4878 if test -n "$ac_ct_AS"; then
4879 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4880 echo "${ECHO_T}$ac_ct_AS" >&6; }
4882 { echo "$as_me:$LINENO: result: no" >&5
4883 echo "${ECHO_T}no" >&6; }
4886 if test "x$ac_ct_AS" = x; then
4889 case $cross_compiling:$ac_tool_warned in
4891 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4892 whose name does not start with the host triplet. If you think this
4893 configuration is useful to you, please write to autoconf@gnu.org." >&5
4894 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4895 whose name does not start with the host triplet. If you think this
4896 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4897 ac_tool_warned=yes ;;
4905 if test -n "$ac_tool_prefix"; then
4906 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4907 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4910 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4911 echo $ECHO_N "(cached) $ECHO_C" >&6
4913 if test -n "$OBJDUMP"; then
4914 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4920 test -z "$as_dir" && as_dir=.
4921 for ac_exec_ext in '' $ac_executable_extensions; do
4922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4923 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4933 OBJDUMP=$ac_cv_prog_OBJDUMP
4934 if test -n "$OBJDUMP"; then
4935 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4936 echo "${ECHO_T}$OBJDUMP" >&6; }
4938 { echo "$as_me:$LINENO: result: no" >&5
4939 echo "${ECHO_T}no" >&6; }
4944 if test -z "$ac_cv_prog_OBJDUMP"; then
4945 ac_ct_OBJDUMP=$OBJDUMP
4946 # Extract the first word of "objdump", so it can be a program name with args.
4947 set dummy objdump; ac_word=$2
4948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4950 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4951 echo $ECHO_N "(cached) $ECHO_C" >&6
4953 if test -n "$ac_ct_OBJDUMP"; then
4954 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4960 test -z "$as_dir" && as_dir=.
4961 for ac_exec_ext in '' $ac_executable_extensions; do
4962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4963 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4973 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4974 if test -n "$ac_ct_OBJDUMP"; then
4975 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4976 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
4978 { echo "$as_me:$LINENO: result: no" >&5
4979 echo "${ECHO_T}no" >&6; }
4982 if test "x$ac_ct_OBJDUMP" = x; then
4985 case $cross_compiling:$ac_tool_warned in
4987 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4988 whose name does not start with the host triplet. If you think this
4989 configuration is useful to you, please write to autoconf@gnu.org." >&5
4990 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4991 whose name does not start with the host triplet. If you think this
4992 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4993 ac_tool_warned=yes ;;
4995 OBJDUMP=$ac_ct_OBJDUMP
4998 OBJDUMP="$ac_cv_prog_OBJDUMP"
5005 need_locks="$enable_libtool_lock"
5009 ac_cpp='$CPP $CPPFLAGS'
5010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5013 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5014 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5015 # On Suns, sometimes $CPP names a directory.
5016 if test -n "$CPP" && test -d "$CPP"; then
5019 if test -z "$CPP"; then
5020 if test "${ac_cv_prog_CPP+set}" = set; then
5021 echo $ECHO_N "(cached) $ECHO_C" >&6
5023 # Double quotes because CPP needs to be expanded
5024 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5027 for ac_c_preproc_warn_flag in '' yes
5029 # Use a header file that comes with gcc, so configuring glibc
5030 # with a fresh cross-compiler works.
5031 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5032 # <limits.h> exists even on freestanding compilers.
5033 # On the NeXT, cc -E runs the code through the compiler's parser,
5034 # not just through cpp. "Syntax error" is here to catch this case.
5035 cat >conftest.$ac_ext <<_ACEOF
5038 cat confdefs.h >>conftest.$ac_ext
5039 cat >>conftest.$ac_ext <<_ACEOF
5040 /* end confdefs.h. */
5042 # include <limits.h>
5044 # include <assert.h>
5048 if { (ac_try="$ac_cpp conftest.$ac_ext"
5050 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5051 *) ac_try_echo
=$ac_try;;
5053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5056 grep -v '^ *+' conftest.er1
>conftest.err
5058 cat conftest.err
>&5
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); } >/dev
/null
&& {
5061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5062 test ! -s conftest.err
5066 echo "$as_me: failed program was:" >&5
5067 sed 's/^/| /' conftest.
$ac_ext >&5
5069 # Broken: fails on valid input.
5073 rm -f conftest.err conftest.
$ac_ext
5075 # OK, works on sane cases. Now check whether nonexistent headers
5076 # can be detected and how.
5077 cat >conftest.
$ac_ext <<_ACEOF
5080 cat confdefs.h
>>conftest.
$ac_ext
5081 cat >>conftest.
$ac_ext <<_ACEOF
5082 /* end confdefs.h. */
5083 #include <ac_nonexistent.h>
5085 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5087 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5088 *) ac_try_echo=$ac_try;;
5090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5091 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5093 grep -v '^ *+' conftest.er1 >conftest.err
5095 cat conftest.err >&5
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); } >/dev/null && {
5098 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5099 test ! -s conftest.err
5101 # Broken: success on invalid input.
5104 echo "$as_me: failed program was:" >&5
5105 sed 's/^/| /' conftest.$ac_ext >&5
5107 # Passes both tests.
5112 rm -f conftest.err conftest.$ac_ext
5115 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5116 rm -f conftest.err conftest.
$ac_ext
5117 if $ac_preproc_ok; then
5129 { echo "$as_me:$LINENO: result: $CPP" >&5
5130 echo "${ECHO_T}$CPP" >&6; }
5132 for ac_c_preproc_warn_flag
in '' yes
5134 # Use a header file that comes with gcc, so configuring glibc
5135 # with a fresh cross-compiler works.
5136 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5137 # <limits.h> exists even on freestanding compilers.
5138 # On the NeXT, cc -E runs the code through the compiler's parser,
5139 # not just through cpp. "Syntax error" is here to catch this case.
5140 cat >conftest.
$ac_ext <<_ACEOF
5143 cat confdefs.h
>>conftest.
$ac_ext
5144 cat >>conftest.
$ac_ext <<_ACEOF
5145 /* end confdefs.h. */
5147 # include <limits.h>
5149 # include <assert.h>
5153 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5155 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5156 *) ac_try_echo=$ac_try;;
5158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5159 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5161 grep -v '^ *+' conftest.er1 >conftest.err
5163 cat conftest.err >&5
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); } >/dev/null && {
5166 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5167 test ! -s conftest.err
5171 echo "$as_me: failed program was:" >&5
5172 sed 's/^/| /' conftest.$ac_ext >&5
5174 # Broken: fails on valid input.
5178 rm -f conftest.err conftest.$ac_ext
5180 # OK, works on sane cases. Now check whether nonexistent headers
5181 # can be detected and how.
5182 cat >conftest.$ac_ext <<_ACEOF
5185 cat confdefs.h >>conftest.$ac_ext
5186 cat >>conftest.$ac_ext <<_ACEOF
5187 /* end confdefs.h. */
5188 #include <ac_nonexistent.h>
5190 if { (ac_try="$ac_cpp conftest.$ac_ext"
5192 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5193 *) ac_try_echo
=$ac_try;;
5195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5196 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5198 grep -v '^ *+' conftest.er1
>conftest.err
5200 cat conftest.err
>&5
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); } >/dev
/null
&& {
5203 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5204 test ! -s conftest.err
5206 # Broken: success on invalid input.
5209 echo "$as_me: failed program was:" >&5
5210 sed 's/^/| /' conftest.
$ac_ext >&5
5212 # Passes both tests.
5217 rm -f conftest.err conftest.
$ac_ext
5220 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5221 rm -f conftest.err conftest.
$ac_ext
5222 if $ac_preproc_ok; then
5225 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5226 See \`config.log' for more details." >&5
5227 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5228 See \`config.log' for more details." >&2;}
5229 { (exit 1); exit 1; }; }
5233 ac_cpp
='$CPP $CPPFLAGS'
5234 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5235 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5236 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5239 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5240 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5241 if test "${ac_cv_header_stdc+set}" = set; then
5242 echo $ECHO_N "(cached) $ECHO_C" >&6
5244 cat >conftest.
$ac_ext <<_ACEOF
5247 cat confdefs.h
>>conftest.
$ac_ext
5248 cat >>conftest.
$ac_ext <<_ACEOF
5249 /* end confdefs.h. */
5263 rm -f conftest.
$ac_objext
5264 if { (ac_try
="$ac_compile"
5266 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5267 *) ac_try_echo=$ac_try;;
5269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5270 (eval "$ac_compile") 2>conftest.er1
5272 grep -v '^ *+' conftest.er1 >conftest.err
5274 cat conftest.err >&5
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); } && {
5277 test -z "$ac_c_werror_flag" ||
5278 test ! -s conftest.err
5279 } && test -s conftest.$ac_objext; then
5280 ac_cv_header_stdc=yes
5282 echo "$as_me: failed program was:" >&5
5283 sed 's/^/| /' conftest.$ac_ext >&5
5285 ac_cv_header_stdc=no
5288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5290 if test $ac_cv_header_stdc = yes; then
5291 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5292 cat >conftest.$ac_ext <<_ACEOF
5295 cat confdefs.h >>conftest.$ac_ext
5296 cat >>conftest.$ac_ext <<_ACEOF
5297 /* end confdefs.h. */
5301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5302 $EGREP "memchr" >/dev/null 2>&1; then
5305 ac_cv_header_stdc=no
5311 if test $ac_cv_header_stdc = yes; then
5312 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5313 cat >conftest.$ac_ext <<_ACEOF
5316 cat confdefs.h >>conftest.$ac_ext
5317 cat >>conftest.$ac_ext <<_ACEOF
5318 /* end confdefs.h. */
5322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5323 $EGREP "free" >/dev/null 2>&1; then
5326 ac_cv_header_stdc=no
5332 if test $ac_cv_header_stdc = yes; then
5333 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5334 if test "$cross_compiling" = yes; then
5337 cat >conftest.$ac_ext <<_ACEOF
5340 cat confdefs.h >>conftest.$ac_ext
5341 cat >>conftest.$ac_ext <<_ACEOF
5342 /* end confdefs.h. */
5345 #if ((' ' & 0x0FF) == 0x020)
5346 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5347 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5349 # define ISLOWER(c) \
5350 (('a' <= (c) && (c) <= 'i') \
5351 || ('j' <= (c) && (c) <= 'r') \
5352 || ('s' <= (c) && (c) <= 'z'))
5353 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5356 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5361 for (i = 0; i < 256; i++)
5362 if (XOR (islower (i), ISLOWER (i))
5363 || toupper (i) != TOUPPER (i))
5368 rm -f conftest$ac_exeext
5369 if { (ac_try="$ac_link"
5371 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5372 *) ac_try_echo
=$ac_try;;
5374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5375 (eval "$ac_link") 2>&5
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5379 { (case "(($ac_try" in
5380 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5381 *) ac_try_echo=$ac_try;;
5383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5384 (eval "$ac_try") 2>&5
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); }; }; then
5390 echo "$as_me: program exited with status $ac_status" >&5
5391 echo "$as_me: failed program was:" >&5
5392 sed 's/^/| /' conftest.$ac_ext >&5
5395 ac_cv_header_stdc=no
5397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5403 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5404 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5405 if test $ac_cv_header_stdc = yes; then
5407 cat >>confdefs.h <<\_ACEOF
5408 #define STDC_HEADERS 1
5413 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5423 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5424 inttypes.h stdint.h unistd.h
5426 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5427 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5432 cat >conftest.$ac_ext <<_ACEOF
5435 cat confdefs.h >>conftest.$ac_ext
5436 cat >>conftest.$ac_ext <<_ACEOF
5437 /* end confdefs.h. */
5438 $ac_includes_default
5440 #include <$ac_header>
5442 rm -f conftest.$ac_objext
5443 if { (ac_try="$ac_compile"
5445 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5446 *) ac_try_echo
=$ac_try;;
5448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5449 (eval "$ac_compile") 2>conftest.er1
5451 grep -v '^ *+' conftest.er1
>conftest.err
5453 cat conftest.err
>&5
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); } && {
5456 test -z "$ac_c_werror_flag" ||
5457 test ! -s conftest.err
5458 } && test -s conftest.
$ac_objext; then
5459 eval "$as_ac_Header=yes"
5461 echo "$as_me: failed program was:" >&5
5462 sed 's/^/| /' conftest.
$ac_ext >&5
5464 eval "$as_ac_Header=no"
5467 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5469 ac_res
=`eval echo '${'$as_ac_Header'}'`
5470 { echo "$as_me:$LINENO: result: $ac_res" >&5
5471 echo "${ECHO_T}$ac_res" >&6; }
5472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5473 cat >>confdefs.h
<<_ACEOF
5474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5483 for ac_header
in dlfcn.h
5485 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5486 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5487 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5489 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5490 echo $ECHO_N "(cached) $ECHO_C" >&6
5492 ac_res
=`eval echo '${'$as_ac_Header'}'`
5493 { echo "$as_me:$LINENO: result: $ac_res" >&5
5494 echo "${ECHO_T}$ac_res" >&6; }
5496 # Is the header compilable?
5497 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5498 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5499 cat >conftest.
$ac_ext <<_ACEOF
5502 cat confdefs.h
>>conftest.
$ac_ext
5503 cat >>conftest.
$ac_ext <<_ACEOF
5504 /* end confdefs.h. */
5505 $ac_includes_default
5506 #include <$ac_header>
5508 rm -f conftest.
$ac_objext
5509 if { (ac_try
="$ac_compile"
5511 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5512 *) ac_try_echo=$ac_try;;
5514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5515 (eval "$ac_compile") 2>conftest.er1
5517 grep -v '^ *+' conftest.er1 >conftest.err
5519 cat conftest.err >&5
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); } && {
5522 test -z "$ac_c_werror_flag" ||
5523 test ! -s conftest.err
5524 } && test -s conftest.$ac_objext; then
5525 ac_header_compiler=yes
5527 echo "$as_me: failed program was:" >&5
5528 sed 's/^/| /' conftest.$ac_ext >&5
5530 ac_header_compiler=no
5533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5534 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5535 echo "${ECHO_T}$ac_header_compiler" >&6; }
5537 # Is the header present?
5538 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5539 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5540 cat >conftest.$ac_ext <<_ACEOF
5543 cat confdefs.h >>conftest.$ac_ext
5544 cat >>conftest.$ac_ext <<_ACEOF
5545 /* end confdefs.h. */
5546 #include <$ac_header>
5548 if { (ac_try="$ac_cpp conftest.$ac_ext"
5550 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5551 *) ac_try_echo
=$ac_try;;
5553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5554 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5556 grep -v '^ *+' conftest.er1
>conftest.err
5558 cat conftest.err
>&5
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); } >/dev
/null
&& {
5561 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5562 test ! -s conftest.err
5564 ac_header_preproc
=yes
5566 echo "$as_me: failed program was:" >&5
5567 sed 's/^/| /' conftest.
$ac_ext >&5
5569 ac_header_preproc
=no
5572 rm -f conftest.err conftest.
$ac_ext
5573 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5574 echo "${ECHO_T}$ac_header_preproc" >&6; }
5576 # So? What about this header?
5577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5579 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5580 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5582 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5583 ac_header_preproc
=yes
5586 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5587 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5588 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5589 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5590 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5591 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5592 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5593 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5595 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5596 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5597 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5599 ## ---------------------------------- ##
5600 ## Report this to bug-libtool@gnu.org ##
5601 ## ---------------------------------- ##
5603 ) |
sed "s/^/$as_me: WARNING: /" >&2
5606 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5608 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5609 echo $ECHO_N "(cached) $ECHO_C" >&6
5611 eval "$as_ac_Header=\$ac_header_preproc"
5613 ac_res
=`eval echo '${'$as_ac_Header'}'`
5614 { echo "$as_me:$LINENO: result: $ac_res" >&5
5615 echo "${ECHO_T}$ac_res" >&6; }
5618 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5619 cat >>confdefs.h
<<_ACEOF
5620 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5628 ac_cpp
='$CXXCPP $CPPFLAGS'
5629 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5630 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5631 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5632 if test -z "$CXX"; then
5633 if test -n "$CCC"; then
5636 if test -n "$ac_tool_prefix"; then
5637 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
5639 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5640 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5643 if test "${ac_cv_prog_CXX+set}" = set; then
5644 echo $ECHO_N "(cached) $ECHO_C" >&6
5646 if test -n "$CXX"; then
5647 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
5649 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5653 test -z "$as_dir" && as_dir
=.
5654 for ac_exec_ext
in '' $ac_executable_extensions; do
5655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5656 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
5657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5667 if test -n "$CXX"; then
5668 { echo "$as_me:$LINENO: result: $CXX" >&5
5669 echo "${ECHO_T}$CXX" >&6; }
5671 { echo "$as_me:$LINENO: result: no" >&5
5672 echo "${ECHO_T}no" >&6; }
5676 test -n "$CXX" && break
5679 if test -z "$CXX"; then
5681 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
5683 # Extract the first word of "$ac_prog", so it can be a program name with args.
5684 set dummy
$ac_prog; ac_word
=$2
5685 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5687 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5688 echo $ECHO_N "(cached) $ECHO_C" >&6
5690 if test -n "$ac_ct_CXX"; then
5691 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
5693 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5697 test -z "$as_dir" && as_dir
=.
5698 for ac_exec_ext
in '' $ac_executable_extensions; do
5699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5700 ac_cv_prog_ac_ct_CXX
="$ac_prog"
5701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5710 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
5711 if test -n "$ac_ct_CXX"; then
5712 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5713 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5715 { echo "$as_me:$LINENO: result: no" >&5
5716 echo "${ECHO_T}no" >&6; }
5720 test -n "$ac_ct_CXX" && break
5723 if test "x$ac_ct_CXX" = x
; then
5726 case $cross_compiling:$ac_tool_warned in
5728 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5729 whose name does not start with the host triplet. If you think this
5730 configuration is useful to you, please write to autoconf@gnu.org." >&5
5731 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5732 whose name does not start with the host triplet. If you think this
5733 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5734 ac_tool_warned
=yes ;;
5742 # Provide some information about the compiler.
5743 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5744 ac_compiler
=`set X $ac_compile; echo $2`
5745 { (ac_try
="$ac_compiler --version >&5"
5747 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5748 *) ac_try_echo=$ac_try;;
5750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5751 (eval "$ac_compiler --version >&5") 2>&5
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); }
5755 { (ac_try="$ac_compiler -v >&5"
5757 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5758 *) ac_try_echo
=$ac_try;;
5760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5761 (eval "$ac_compiler -v >&5") 2>&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); }
5765 { (ac_try
="$ac_compiler -V >&5"
5767 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5768 *) ac_try_echo=$ac_try;;
5770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5771 (eval "$ac_compiler -V >&5") 2>&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); }
5776 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5777 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5778 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5779 echo $ECHO_N "(cached) $ECHO_C" >&6
5781 cat >conftest.$ac_ext <<_ACEOF
5784 cat confdefs.h >>conftest.$ac_ext
5785 cat >>conftest.$ac_ext <<_ACEOF
5786 /* end confdefs.h. */
5799 rm -f conftest.$ac_objext
5800 if { (ac_try="$ac_compile"
5802 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5803 *) ac_try_echo
=$ac_try;;
5805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5806 (eval "$ac_compile") 2>conftest.er1
5808 grep -v '^ *+' conftest.er1
>conftest.err
5810 cat conftest.err
>&5
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); } && {
5813 test -z "$ac_cxx_werror_flag" ||
5814 test ! -s conftest.err
5815 } && test -s conftest.
$ac_objext; then
5818 echo "$as_me: failed program was:" >&5
5819 sed 's/^/| /' conftest.
$ac_ext >&5
5824 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5825 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
5828 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5829 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5830 GXX
=`test $ac_compiler_gnu = yes && echo yes`
5831 ac_test_CXXFLAGS
=${CXXFLAGS+set}
5832 ac_save_CXXFLAGS
=$CXXFLAGS
5833 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5834 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5835 if test "${ac_cv_prog_cxx_g+set}" = set; then
5836 echo $ECHO_N "(cached) $ECHO_C" >&6
5838 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5839 ac_cxx_werror_flag
=yes
5842 cat >conftest.
$ac_ext <<_ACEOF
5845 cat confdefs.h
>>conftest.
$ac_ext
5846 cat >>conftest.
$ac_ext <<_ACEOF
5847 /* end confdefs.h. */
5857 rm -f conftest.
$ac_objext
5858 if { (ac_try
="$ac_compile"
5860 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5861 *) ac_try_echo=$ac_try;;
5863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5864 (eval "$ac_compile") 2>conftest.er1
5866 grep -v '^ *+' conftest.er1 >conftest.err
5868 cat conftest.err >&5
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); } && {
5871 test -z "$ac_cxx_werror_flag" ||
5872 test ! -s conftest.err
5873 } && test -s conftest.$ac_objext; then
5874 ac_cv_prog_cxx_g=yes
5876 echo "$as_me: failed program was:" >&5
5877 sed 's/^/| /' conftest.$ac_ext >&5
5880 cat >conftest.$ac_ext <<_ACEOF
5883 cat confdefs.h >>conftest.$ac_ext
5884 cat >>conftest.$ac_ext <<_ACEOF
5885 /* end confdefs.h. */
5895 rm -f conftest.$ac_objext
5896 if { (ac_try="$ac_compile"
5898 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5899 *) ac_try_echo
=$ac_try;;
5901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5902 (eval "$ac_compile") 2>conftest.er1
5904 grep -v '^ *+' conftest.er1
>conftest.err
5906 cat conftest.err
>&5
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); } && {
5909 test -z "$ac_cxx_werror_flag" ||
5910 test ! -s conftest.err
5911 } && test -s conftest.
$ac_objext; then
5914 echo "$as_me: failed program was:" >&5
5915 sed 's/^/| /' conftest.
$ac_ext >&5
5917 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5919 cat >conftest.
$ac_ext <<_ACEOF
5922 cat confdefs.h
>>conftest.
$ac_ext
5923 cat >>conftest.
$ac_ext <<_ACEOF
5924 /* end confdefs.h. */
5934 rm -f conftest.
$ac_objext
5935 if { (ac_try
="$ac_compile"
5937 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5938 *) ac_try_echo=$ac_try;;
5940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5941 (eval "$ac_compile") 2>conftest.er1
5943 grep -v '^ *+' conftest.er1 >conftest.err
5945 cat conftest.err >&5
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); } && {
5948 test -z "$ac_cxx_werror_flag" ||
5949 test ! -s conftest.err
5950 } && test -s conftest.$ac_objext; then
5951 ac_cv_prog_cxx_g=yes
5953 echo "$as_me: failed program was:" >&5
5954 sed 's/^/| /' conftest.$ac_ext >&5
5959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5966 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5968 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5969 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5970 if test "$ac_test_CXXFLAGS" = set; then
5971 CXXFLAGS=$ac_save_CXXFLAGS
5972 elif test $ac_cv_prog_cxx_g = yes; then
5973 if test "$GXX" = yes; then
5979 if test "$GXX" = yes; then
5986 ac_cpp='$CXXCPP $CPPFLAGS'
5987 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5988 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5989 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5991 depcc="$CXX" am_compiler_list=
5993 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5994 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5995 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5996 echo $ECHO_N "(cached) $ECHO_C" >&6
5998 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5999 # We make a subdir and do the tests there. Otherwise we can end up
6000 # making bogus files that we don't know about and never remove. For
6001 # instance it was reported that on HP-UX the gcc test will end up
6002 # making a dummy file named `D
' -- because `-MD' means
`put the output
6005 # Copy depcomp to subdir because otherwise we won't find it if we're
6006 # using a relative directory.
6007 cp "$am_depcomp" conftest.dir
6009 # We will build objects and dependencies in a subdirectory because
6010 # it helps to detect inapplicable dependency modes. For instance
6011 # both Tru64's cc and ICC support -MD to output dependencies as a
6012 # side effect of compilation, but ICC will put the dependencies in
6013 # the current directory while Tru64 will put them in the object
6017 am_cv_CXX_dependencies_compiler_type=none
6018 if test "$am_compiler_list" = ""; then
6019 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
6021 for depmode in $am_compiler_list; do
6022 # Setup a source with many dependencies, because some compilers
6023 # like to wrap large dependency lists on column 80 (with \), and
6024 # we should not choose a depcomp mode which is confused by this.
6026 # We need to recreate these files for each test, as the compiler may
6027 # overwrite some of them when testing with obscure command lines.
6028 # This happens at least with the AIX C compiler.
6030 for i in 1 2 3 4 5 6; do
6031 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6032 # Using `: > sub
/conftst
$i.h
' creates only sub/conftst1.h with
6033 # Solaris 8's
{/usr
,}/bin
/sh.
6034 touch sub
/conftst
$i.h
6036 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6040 # after this tag, mechanisms are not by side-effect, so they'll
6041 # only be used when explicitly requested
6042 if test "x$enable_dependency_tracking" = xyes
; then
6050 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6051 # mode. It turns out that the SunPro C++ compiler does not properly
6052 # handle `-M -o', and we need to detect this.
6053 if depmode
=$depmode \
6054 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
6055 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
6056 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
6057 >/dev
/null
2>conftest.err
&&
6058 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
6059 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
6060 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
6061 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
6062 # icc doesn't choke on unknown options, it will just issue warnings
6063 # or remarks (even with -Werror). So we grep stderr for any message
6064 # that says an option was ignored or not supported.
6065 # When given -MP, icc 7.0 and 7.1 complain thusly:
6066 # icc: Command line warning: ignoring option '-M'; no argument required
6067 # The diagnosis changed in icc 8.0:
6068 # icc: Command line remark: option '-MP' not supported
6069 if (grep 'ignoring option' conftest.err ||
6070 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
6071 am_cv_CXX_dependencies_compiler_type
=$depmode
6080 am_cv_CXX_dependencies_compiler_type
=none
6084 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6085 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6086 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
6089 test "x$enable_dependency_tracking" != xno \
6090 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
6091 am__fastdepCXX_TRUE
=
6092 am__fastdepCXX_FALSE
='#'
6094 am__fastdepCXX_TRUE
='#'
6095 am__fastdepCXX_FALSE
=
6101 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6102 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6103 (test "X$CXX" != "Xg++"))) ; then
6105 ac_cpp
='$CXXCPP $CPPFLAGS'
6106 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6107 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6108 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6109 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6110 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6111 if test -z "$CXXCPP"; then
6112 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6113 echo $ECHO_N "(cached) $ECHO_C" >&6
6115 # Double quotes because CXXCPP needs to be expanded
6116 for CXXCPP
in "$CXX -E" "/lib/cpp"
6119 for ac_cxx_preproc_warn_flag
in '' yes
6121 # Use a header file that comes with gcc, so configuring glibc
6122 # with a fresh cross-compiler works.
6123 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6124 # <limits.h> exists even on freestanding compilers.
6125 # On the NeXT, cc -E runs the code through the compiler's parser,
6126 # not just through cpp. "Syntax error" is here to catch this case.
6127 cat >conftest.
$ac_ext <<_ACEOF
6130 cat confdefs.h
>>conftest.
$ac_ext
6131 cat >>conftest.
$ac_ext <<_ACEOF
6132 /* end confdefs.h. */
6134 # include <limits.h>
6136 # include <assert.h>
6140 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6142 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6143 *) ac_try_echo=$ac_try;;
6145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6146 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6148 grep -v '^ *+' conftest.er1 >conftest.err
6150 cat conftest.err >&5
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); } >/dev/null && {
6153 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6154 test ! -s conftest.err
6158 echo "$as_me: failed program was:" >&5
6159 sed 's/^/| /' conftest.$ac_ext >&5
6161 # Broken: fails on valid input.
6165 rm -f conftest.err conftest.$ac_ext
6167 # OK, works on sane cases. Now check whether nonexistent headers
6168 # can be detected and how.
6169 cat >conftest.$ac_ext <<_ACEOF
6172 cat confdefs.h >>conftest.$ac_ext
6173 cat >>conftest.$ac_ext <<_ACEOF
6174 /* end confdefs.h. */
6175 #include <ac_nonexistent.h>
6177 if { (ac_try="$ac_cpp conftest.$ac_ext"
6179 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6180 *) ac_try_echo
=$ac_try;;
6182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6183 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6185 grep -v '^ *+' conftest.er1
>conftest.err
6187 cat conftest.err
>&5
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); } >/dev
/null
&& {
6190 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6191 test ! -s conftest.err
6193 # Broken: success on invalid input.
6196 echo "$as_me: failed program was:" >&5
6197 sed 's/^/| /' conftest.
$ac_ext >&5
6199 # Passes both tests.
6204 rm -f conftest.err conftest.
$ac_ext
6207 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6208 rm -f conftest.err conftest.
$ac_ext
6209 if $ac_preproc_ok; then
6214 ac_cv_prog_CXXCPP
=$CXXCPP
6217 CXXCPP
=$ac_cv_prog_CXXCPP
6219 ac_cv_prog_CXXCPP
=$CXXCPP
6221 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6222 echo "${ECHO_T}$CXXCPP" >&6; }
6224 for ac_cxx_preproc_warn_flag
in '' yes
6226 # Use a header file that comes with gcc, so configuring glibc
6227 # with a fresh cross-compiler works.
6228 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6229 # <limits.h> exists even on freestanding compilers.
6230 # On the NeXT, cc -E runs the code through the compiler's parser,
6231 # not just through cpp. "Syntax error" is here to catch this case.
6232 cat >conftest.
$ac_ext <<_ACEOF
6235 cat confdefs.h
>>conftest.
$ac_ext
6236 cat >>conftest.
$ac_ext <<_ACEOF
6237 /* end confdefs.h. */
6239 # include <limits.h>
6241 # include <assert.h>
6245 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6247 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6248 *) ac_try_echo=$ac_try;;
6250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6251 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6253 grep -v '^ *+' conftest.er1 >conftest.err
6255 cat conftest.err >&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); } >/dev/null && {
6258 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6259 test ! -s conftest.err
6263 echo "$as_me: failed program was:" >&5
6264 sed 's/^/| /' conftest.$ac_ext >&5
6266 # Broken: fails on valid input.
6270 rm -f conftest.err conftest.$ac_ext
6272 # OK, works on sane cases. Now check whether nonexistent headers
6273 # can be detected and how.
6274 cat >conftest.$ac_ext <<_ACEOF
6277 cat confdefs.h >>conftest.$ac_ext
6278 cat >>conftest.$ac_ext <<_ACEOF
6279 /* end confdefs.h. */
6280 #include <ac_nonexistent.h>
6282 if { (ac_try="$ac_cpp conftest.$ac_ext"
6284 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6285 *) ac_try_echo
=$ac_try;;
6287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6288 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6290 grep -v '^ *+' conftest.er1
>conftest.err
6292 cat conftest.err
>&5
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); } >/dev
/null
&& {
6295 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6296 test ! -s conftest.err
6298 # Broken: success on invalid input.
6301 echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.
$ac_ext >&5
6304 # Passes both tests.
6309 rm -f conftest.err conftest.
$ac_ext
6312 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6313 rm -f conftest.err conftest.
$ac_ext
6314 if $ac_preproc_ok; then
6317 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6318 See \`config.log' for more details." >&5
6319 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6320 See \`config.log' for more details." >&2;}
6321 { (exit 1); exit 1; }; }
6325 ac_cpp
='$CXXCPP $CPPFLAGS'
6326 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6327 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6328 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6334 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6335 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6336 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
6337 if test -n "$ac_tool_prefix"; then
6338 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
6340 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6341 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6344 if test "${ac_cv_prog_F77+set}" = set; then
6345 echo $ECHO_N "(cached) $ECHO_C" >&6
6347 if test -n "$F77"; then
6348 ac_cv_prog_F77
="$F77" # Let the user override the test.
6350 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6354 test -z "$as_dir" && as_dir
=.
6355 for ac_exec_ext
in '' $ac_executable_extensions; do
6356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6357 ac_cv_prog_F77
="$ac_tool_prefix$ac_prog"
6358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6368 if test -n "$F77"; then
6369 { echo "$as_me:$LINENO: result: $F77" >&5
6370 echo "${ECHO_T}$F77" >&6; }
6372 { echo "$as_me:$LINENO: result: no" >&5
6373 echo "${ECHO_T}no" >&6; }
6377 test -n "$F77" && break
6380 if test -z "$F77"; then
6382 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
6384 # Extract the first word of "$ac_prog", so it can be a program name with args.
6385 set dummy
$ac_prog; ac_word
=$2
6386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6388 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
6391 if test -n "$ac_ct_F77"; then
6392 ac_cv_prog_ac_ct_F77
="$ac_ct_F77" # Let the user override the test.
6394 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6398 test -z "$as_dir" && as_dir
=.
6399 for ac_exec_ext
in '' $ac_executable_extensions; do
6400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6401 ac_cv_prog_ac_ct_F77
="$ac_prog"
6402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6411 ac_ct_F77
=$ac_cv_prog_ac_ct_F77
6412 if test -n "$ac_ct_F77"; then
6413 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6414 echo "${ECHO_T}$ac_ct_F77" >&6; }
6416 { echo "$as_me:$LINENO: result: no" >&5
6417 echo "${ECHO_T}no" >&6; }
6421 test -n "$ac_ct_F77" && break
6424 if test "x$ac_ct_F77" = x
; then
6427 case $cross_compiling:$ac_tool_warned in
6429 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6430 whose name does not start with the host triplet. If you think this
6431 configuration is useful to you, please write to autoconf@gnu.org." >&5
6432 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6433 whose name does not start with the host triplet. If you think this
6434 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6435 ac_tool_warned
=yes ;;
6442 # Provide some information about the compiler.
6443 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6444 ac_compiler
=`set X $ac_compile; echo $2`
6445 { (ac_try
="$ac_compiler --version >&5"
6447 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6448 *) ac_try_echo=$ac_try;;
6450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6451 (eval "$ac_compiler --version >&5") 2>&5
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); }
6455 { (ac_try="$ac_compiler -v >&5"
6457 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6458 *) ac_try_echo
=$ac_try;;
6460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6461 (eval "$ac_compiler -v >&5") 2>&5
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); }
6465 { (ac_try
="$ac_compiler -V >&5"
6467 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6468 *) ac_try_echo=$ac_try;;
6470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6471 (eval "$ac_compiler -V >&5") 2>&5
6473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474 (exit $ac_status); }
6477 # If we don't use `.F
' as extension, the preprocessor is not run on the
6478 # input file. (Note that this only needs to work for GNU compilers.)
6481 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6482 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6483 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6484 echo $ECHO_N "(cached) $ECHO_C" >&6
6486 cat >conftest.$ac_ext <<_ACEOF
6494 rm -f conftest.$ac_objext
6495 if { (ac_try="$ac_compile"
6497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6498 *) ac_try_echo=$ac_try;;
6500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6501 (eval "$ac_compile") 2>conftest.er1
6503 grep -v '^
*+' conftest.er1 >conftest.err
6505 cat conftest.err >&5
6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); } && {
6508 test -z "$ac_f77_werror_flag" ||
6509 test ! -s conftest.err
6510 } && test -s conftest.$ac_objext; then
6513 echo "$as_me: failed program was:" >&5
6514 sed 's
/^
/|
/' conftest.$ac_ext >&5
6519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6520 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6523 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6524 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6526 ac_test_FFLAGS=${FFLAGS+set}
6527 ac_save_FFLAGS=$FFLAGS
6529 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6530 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6531 if test "${ac_cv_prog_f77_g+set}" = set; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
6535 cat >conftest.$ac_ext <<_ACEOF
6540 rm -f conftest.$ac_objext
6541 if { (ac_try="$ac_compile"
6543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6544 *) ac_try_echo=$ac_try;;
6546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6547 (eval "$ac_compile") 2>conftest.er1
6549 grep -v '^
*+' conftest.er1 >conftest.err
6551 cat conftest.err >&5
6552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553 (exit $ac_status); } && {
6554 test -z "$ac_f77_werror_flag" ||
6555 test ! -s conftest.err
6556 } && test -s conftest.$ac_objext; then
6557 ac_cv_prog_f77_g=yes
6559 echo "$as_me: failed program was:" >&5
6560 sed 's
/^
/|
/' conftest.$ac_ext >&5
6565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6568 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6569 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6570 if test "$ac_test_FFLAGS" = set; then
6571 FFLAGS=$ac_save_FFLAGS
6572 elif test $ac_cv_prog_f77_g = yes; then
6573 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6579 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6586 G77=`test $ac_compiler_gnu = yes && echo yes`
6588 ac_cpp='$CPP $CPPFLAGS'
6589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
6590 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
6591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6595 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works
for C compilers
!
6597 # find the maximum length of command line arguments
6598 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6599 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6600 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6601 echo $ECHO_N "(cached) $ECHO_C" >&6
6608 # On DJGPP, this test can blow up pretty badly due to problems in libc
6609 # (any single argument exceeding 2000 bytes causes a buffer overrun
6610 # during glob expansion). Even if it were fixed, the result of this
6611 # check would be larger than it should be.
6612 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
6616 # Under GNU Hurd, this test is not required because there is
6617 # no limit to the length of command line arguments.
6618 # Libtool will interpret -1 as no limit whatsoever
6619 lt_cv_sys_max_cmd_len
=-1;
6623 # On Win9x/ME, this test blows up -- it succeeds, but takes
6624 # about 5 minutes as the teststring grows exponentially.
6625 # Worse, since 9x/ME are not pre-emptively multitasking,
6626 # you end up with a "frozen" computer, even though with patience
6627 # the test eventually succeeds (with a max line length of 256k).
6628 # Instead, let's just punt: use the minimum linelength reported by
6629 # all of the supported platforms: 8192 (on NT/2K/XP).
6630 lt_cv_sys_max_cmd_len
=8192;
6634 # On AmigaOS with pdksh, this test takes hours, literally.
6635 # So we just punt and use a minimum line length of 8192.
6636 lt_cv_sys_max_cmd_len
=8192;
6639 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
6640 # This has been around since 386BSD, at least. Likely further.
6641 if test -x /sbin
/sysctl
; then
6642 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
6643 elif test -x /usr
/sbin
/sysctl
; then
6644 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
6646 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
6648 # And add a safety zone
6649 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6650 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6654 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6655 lt_cv_sys_max_cmd_len
=196608
6659 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6660 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6661 # nice to cause kernel panics so lets avoid the loop below.
6662 # First set a reasonable default.
6663 lt_cv_sys_max_cmd_len
=16384
6665 if test -x /sbin
/sysconfig
; then
6666 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6667 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
6672 lt_cv_sys_max_cmd_len
=102400
6674 sysv5
* | sco5v6
* | sysv4.2uw2
*)
6675 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6676 if test -n "$kargmax"; then
6677 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
6679 lt_cv_sys_max_cmd_len
=32768
6683 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
6684 if test -n "$lt_cv_sys_max_cmd_len"; then
6685 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6686 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6688 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
6689 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6690 = "XX$teststring") >/dev
/null
2>&1 &&
6691 new_result
=`expr "X$teststring" : ".*" 2>&1` &&
6692 lt_cv_sys_max_cmd_len
=$new_result &&
6693 test $i != 17 # 1/2 MB should be enough
6696 teststring
=$teststring$teststring
6699 # Add a significant safety factor because C++ compilers can tack on massive
6700 # amounts of additional arguments before passing them to the linker.
6701 # It appears as though 1/2 is a usable value.
6702 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
6709 if test -n $lt_cv_sys_max_cmd_len ; then
6710 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6711 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6713 { echo "$as_me:$LINENO: result: none" >&5
6714 echo "${ECHO_T}none" >&6; }
6721 # Check for command to grab the raw symbol name followed by C symbol from nm.
6722 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6723 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6724 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6725 echo $ECHO_N "(cached) $ECHO_C" >&6
6728 # These are sane defaults that work on at least a few old systems.
6729 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6731 # Character class describing NM global symbol codes.
6732 symcode
='[BCDEGRST]'
6734 # Regexp to match symbols that can be accessed directly from C.
6735 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
6737 # Transform an extracted symbol line into a proper C declaration
6738 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6740 # Transform an extracted symbol line into symbol name and symbol address
6741 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'"
6743 # Define system-specific variables.
6748 cygwin
* | mingw
* | pw32
*)
6749 symcode
='[ABCDGISTW]'
6751 hpux
*) # Its linker distinguishes data from code symbols
6752 if test "$host_cpu" = ia64
; then
6753 symcode
='[ABCDEGRST]'
6755 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6756 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'"
6758 linux
* | k
*bsd
*-gnu)
6759 if test "$host_cpu" = ia64
; then
6760 symcode
='[ABCDGIRSTW]'
6761 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6762 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'"
6766 symcode
='[BCDEGRST]'
6769 symcode
='[BCDEGQRST]'
6780 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
6788 # Handle CRLF in mingw tool chain
6792 opt_cr
=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6796 # If we're using GNU nm, then use its standard symbol codes.
6797 case `$NM -V 2>&1` in
6798 *GNU
* |
*'with BFD'*)
6799 symcode
='[ABCDGIRSTW]' ;;
6802 # Try without a prefix undercore, then with it.
6803 for ac_symprfx
in "" "_"; do
6805 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6806 symxfrm
="\\1 $ac_symprfx\\2 \\2"
6808 # Write the raw and C identifiers.
6809 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6811 # Check to see that the pipe works correctly.
6815 cat > conftest.
$ac_ext <<EOF
6820 void nm_test_func(){}
6824 int main(){nm_test_var='a';nm_test_func();return(0);}
6827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6828 (eval $ac_compile) 2>&5
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); }; then
6832 # Now try to grab the symbols.
6834 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6835 (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist) 2>&5
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); } && test -s "$nlist"; then
6839 # Try sorting and uniquifying the output.
6840 if sort "$nlist" |
uniq > "$nlist"T
; then
6841 mv -f "$nlist"T
"$nlist"
6846 # Make sure that we snagged all the symbols we need.
6847 if grep ' nm_test_var$' "$nlist" >/dev
/null
; then
6848 if grep ' nm_test_func$' "$nlist" >/dev
/null
; then
6849 cat <<EOF > conftest.$ac_ext
6855 # Now generate the symbol file.
6856 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6858 cat <<EOF >> conftest.$ac_ext
6859 #if defined (__STDC__) && __STDC__
6860 # define lt_ptr_t void *
6862 # define lt_ptr_t char *
6866 /* The mapping between symbol names and symbols. */
6871 lt_preloaded_symbols[] =
6874 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" |
grep -v main
>> conftest.
$ac_ext
6875 cat <<\EOF
>> conftest.
$ac_ext
6883 # Now try linking the two files.
6884 mv conftest.
$ac_objext conftstm.
$ac_objext
6885 lt_save_LIBS
="$LIBS"
6886 lt_save_CFLAGS
="$CFLAGS"
6887 LIBS
="conftstm.$ac_objext"
6888 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6890 (eval $ac_link) 2>&5
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); } && test -s conftest
${ac_exeext}; then
6896 LIBS
="$lt_save_LIBS"
6897 CFLAGS
="$lt_save_CFLAGS"
6899 echo "cannot find nm_test_func in $nlist" >&5
6902 echo "cannot find nm_test_var in $nlist" >&5
6905 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6908 echo "$progname: failed program was:" >&5
6909 cat conftest.
$ac_ext >&5
6911 rm -f conftest
* conftst
*
6913 # Do not use the global_symbol_pipe unless it works.
6914 if test "$pipe_works" = yes; then
6917 lt_cv_sys_global_symbol_pipe
=
6923 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6924 lt_cv_sys_global_symbol_to_cdecl
=
6926 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6927 { echo "$as_me:$LINENO: result: failed" >&5
6928 echo "${ECHO_T}failed" >&6; }
6930 { echo "$as_me:$LINENO: result: ok" >&5
6931 echo "${ECHO_T}ok" >&6; }
6934 { echo "$as_me:$LINENO: checking for objdir" >&5
6935 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6936 if test "${lt_cv_objdir+set}" = set; then
6937 echo $ECHO_N "(cached) $ECHO_C" >&6
6939 rm -f .libs
2>/dev
/null
6940 mkdir .libs
2>/dev
/null
6941 if test -d .libs
; then
6944 # MS-DOS does not allow filenames that begin with a dot.
6947 rmdir .libs
2>/dev
/null
6949 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6950 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6951 objdir
=$lt_cv_objdir
6959 # AIX sometimes has problems with the GCC collect2 program. For some
6960 # reason, if we set the COLLECT_NAMES environment variable, the problems
6961 # vanish in a puff of smoke.
6962 if test "X${COLLECT_NAMES+set}" != Xset
; then
6964 export COLLECT_NAMES
6969 # Sed substitution that helps us do robust quoting. It backslashifies
6970 # metacharacters that are still active within double-quoted strings.
6971 Xsed
='sed -e 1s/^X//'
6972 sed_quote_subst
='s/\([\\"\\`$\\\\]\)/\\\1/g'
6974 # Same as above, but do not quote variable references.
6975 double_quote_subst
='s/\([\\"\\`\\\\]\)/\\\1/g'
6977 # Sed substitution to delay expansion of an escaped shell variable in a
6978 # double_quote_subst'ed string.
6979 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
6981 # Sed substitution to avoid accidental globbing in evaled expressions
6982 no_glob_subst
='s/\*/\\\*/g'
6988 default_ofile
=libtool
6989 can_build_shared
=yes
6991 # All known linkers require a `.a' archive for static linking (except MSVC,
6992 # which needs '.lib').
6994 ltmain
="$ac_aux_dir/ltmain.sh"
6995 ofile
="$default_ofile"
6996 with_gnu_ld
="$lt_cv_prog_gnu_ld"
6998 if test -n "$ac_tool_prefix"; then
6999 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7000 set dummy
${ac_tool_prefix}ar; ac_word
=$2
7001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7003 if test "${ac_cv_prog_AR+set}" = set; then
7004 echo $ECHO_N "(cached) $ECHO_C" >&6
7006 if test -n "$AR"; then
7007 ac_cv_prog_AR
="$AR" # Let the user override the test.
7009 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7013 test -z "$as_dir" && as_dir
=.
7014 for ac_exec_ext
in '' $ac_executable_extensions; do
7015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7016 ac_cv_prog_AR
="${ac_tool_prefix}ar"
7017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7027 if test -n "$AR"; then
7028 { echo "$as_me:$LINENO: result: $AR" >&5
7029 echo "${ECHO_T}$AR" >&6; }
7031 { echo "$as_me:$LINENO: result: no" >&5
7032 echo "${ECHO_T}no" >&6; }
7037 if test -z "$ac_cv_prog_AR"; then
7039 # Extract the first word of "ar", so it can be a program name with args.
7040 set dummy
ar; ac_word
=$2
7041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7043 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7044 echo $ECHO_N "(cached) $ECHO_C" >&6
7046 if test -n "$ac_ct_AR"; then
7047 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7049 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7053 test -z "$as_dir" && as_dir
=.
7054 for ac_exec_ext
in '' $ac_executable_extensions; do
7055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7056 ac_cv_prog_ac_ct_AR
="ar"
7057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7066 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7067 if test -n "$ac_ct_AR"; then
7068 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7069 echo "${ECHO_T}$ac_ct_AR" >&6; }
7071 { echo "$as_me:$LINENO: result: no" >&5
7072 echo "${ECHO_T}no" >&6; }
7075 if test "x$ac_ct_AR" = x
; then
7078 case $cross_compiling:$ac_tool_warned in
7080 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7081 whose name does not start with the host triplet. If you think this
7082 configuration is useful to you, please write to autoconf@gnu.org." >&5
7083 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7084 whose name does not start with the host triplet. If you think this
7085 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7086 ac_tool_warned
=yes ;;
7094 if test -n "$ac_tool_prefix"; then
7095 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7096 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7099 if test "${ac_cv_prog_RANLIB+set}" = set; then
7100 echo $ECHO_N "(cached) $ECHO_C" >&6
7102 if test -n "$RANLIB"; then
7103 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7105 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7109 test -z "$as_dir" && as_dir
=.
7110 for ac_exec_ext
in '' $ac_executable_extensions; do
7111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7112 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7122 RANLIB
=$ac_cv_prog_RANLIB
7123 if test -n "$RANLIB"; then
7124 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7125 echo "${ECHO_T}$RANLIB" >&6; }
7127 { echo "$as_me:$LINENO: result: no" >&5
7128 echo "${ECHO_T}no" >&6; }
7133 if test -z "$ac_cv_prog_RANLIB"; then
7134 ac_ct_RANLIB
=$RANLIB
7135 # Extract the first word of "ranlib", so it can be a program name with args.
7136 set dummy ranlib
; ac_word
=$2
7137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7139 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7140 echo $ECHO_N "(cached) $ECHO_C" >&6
7142 if test -n "$ac_ct_RANLIB"; then
7143 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7145 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7149 test -z "$as_dir" && as_dir
=.
7150 for ac_exec_ext
in '' $ac_executable_extensions; do
7151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7152 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7162 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7163 if test -n "$ac_ct_RANLIB"; then
7164 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7165 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7167 { echo "$as_me:$LINENO: result: no" >&5
7168 echo "${ECHO_T}no" >&6; }
7171 if test "x$ac_ct_RANLIB" = x
; then
7174 case $cross_compiling:$ac_tool_warned in
7176 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7177 whose name does not start with the host triplet. If you think this
7178 configuration is useful to you, please write to autoconf@gnu.org." >&5
7179 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7180 whose name does not start with the host triplet. If you think this
7181 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7182 ac_tool_warned
=yes ;;
7184 RANLIB
=$ac_ct_RANLIB
7187 RANLIB
="$ac_cv_prog_RANLIB"
7190 if test -n "$ac_tool_prefix"; then
7191 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7192 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
7193 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7195 if test "${ac_cv_prog_STRIP+set}" = set; then
7196 echo $ECHO_N "(cached) $ECHO_C" >&6
7198 if test -n "$STRIP"; then
7199 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
7201 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7205 test -z "$as_dir" && as_dir
=.
7206 for ac_exec_ext
in '' $ac_executable_extensions; do
7207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7208 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
7209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7218 STRIP
=$ac_cv_prog_STRIP
7219 if test -n "$STRIP"; then
7220 { echo "$as_me:$LINENO: result: $STRIP" >&5
7221 echo "${ECHO_T}$STRIP" >&6; }
7223 { echo "$as_me:$LINENO: result: no" >&5
7224 echo "${ECHO_T}no" >&6; }
7229 if test -z "$ac_cv_prog_STRIP"; then
7231 # Extract the first word of "strip", so it can be a program name with args.
7232 set dummy strip
; ac_word
=$2
7233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7235 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7236 echo $ECHO_N "(cached) $ECHO_C" >&6
7238 if test -n "$ac_ct_STRIP"; then
7239 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
7241 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7245 test -z "$as_dir" && as_dir
=.
7246 for ac_exec_ext
in '' $ac_executable_extensions; do
7247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7248 ac_cv_prog_ac_ct_STRIP
="strip"
7249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7258 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
7259 if test -n "$ac_ct_STRIP"; then
7260 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7261 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7263 { echo "$as_me:$LINENO: result: no" >&5
7264 echo "${ECHO_T}no" >&6; }
7267 if test "x$ac_ct_STRIP" = x
; then
7270 case $cross_compiling:$ac_tool_warned in
7272 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7273 whose name does not start with the host triplet. If you think this
7274 configuration is useful to you, please write to autoconf@gnu.org." >&5
7275 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7276 whose name does not start with the host triplet. If you think this
7277 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7278 ac_tool_warned
=yes ;;
7283 STRIP
="$ac_cv_prog_STRIP"
7288 old_CFLAGS
="$CFLAGS"
7290 # Set sane defaults for various variables
7291 test -z "$AR" && AR
=ar
7292 test -z "$AR_FLAGS" && AR_FLAGS
=cru
7293 test -z "$AS" && AS
=as
7294 test -z "$CC" && CC
=cc
7295 test -z "$LTCC" && LTCC
=$CC
7296 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
7297 test -z "$DLLTOOL" && DLLTOOL
=dlltool
7298 test -z "$LD" && LD
=ld
7299 test -z "$LN_S" && LN_S
="ln -s"
7300 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
7301 test -z "$NM" && NM
=nm
7302 test -z "$SED" && SED
=sed
7303 test -z "$OBJDUMP" && OBJDUMP
=objdump
7304 test -z "$RANLIB" && RANLIB
=:
7305 test -z "$STRIP" && STRIP
=:
7306 test -z "$ac_objext" && ac_objext
=o
7308 # Determine commands to create old-style static archives.
7309 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs'
7310 old_postinstall_cmds
='chmod 644 $oldlib'
7311 old_postuninstall_cmds
=
7313 if test -n "$RANLIB"; then
7316 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7319 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB \$oldlib"
7322 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
7325 for cc_temp
in $compiler""; do
7327 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7328 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7333 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7336 # Only perform the check for file, if the check method requires it
7337 case $deplibs_check_method in
7339 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7340 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7341 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7342 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7343 echo $ECHO_N "(cached) $ECHO_C" >&6
7347 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7350 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7351 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7352 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7353 for ac_dir
in $ac_dummy; do
7355 test -z "$ac_dir" && ac_dir
=.
7356 if test -f $ac_dir/${ac_tool_prefix}file; then
7357 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
7358 if test -n "$file_magic_test_file"; then
7359 case $deplibs_check_method in
7361 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7362 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7363 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7364 $EGREP "$file_magic_regex" > /dev
/null
; then
7369 *** Warning: the command libtool uses to detect shared libraries,
7370 *** $file_magic_cmd, produces output that libtool cannot recognize.
7371 *** The result is that libtool may fail to recognize shared libraries
7372 *** as such. This will affect the creation of libtool libraries that
7373 *** depend on shared libraries, but programs linked with such libtool
7374 *** libraries will work regardless of this problem. Nevertheless, you
7375 *** may want to report the problem to your system manager and/or to
7376 *** bug-libtool@gnu.org
7386 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7391 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7392 if test -n "$MAGIC_CMD"; then
7393 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7394 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7396 { echo "$as_me:$LINENO: result: no" >&5
7397 echo "${ECHO_T}no" >&6; }
7400 if test -z "$lt_cv_path_MAGIC_CMD"; then
7401 if test -n "$ac_tool_prefix"; then
7402 { echo "$as_me:$LINENO: checking for file" >&5
7403 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7404 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7405 echo $ECHO_N "(cached) $ECHO_C" >&6
7409 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7412 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7413 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7414 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7415 for ac_dir
in $ac_dummy; do
7417 test -z "$ac_dir" && ac_dir
=.
7418 if test -f $ac_dir/file; then
7419 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
7420 if test -n "$file_magic_test_file"; then
7421 case $deplibs_check_method in
7423 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7424 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7425 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7426 $EGREP "$file_magic_regex" > /dev
/null
; then
7431 *** Warning: the command libtool uses to detect shared libraries,
7432 *** $file_magic_cmd, produces output that libtool cannot recognize.
7433 *** The result is that libtool may fail to recognize shared libraries
7434 *** as such. This will affect the creation of libtool libraries that
7435 *** depend on shared libraries, but programs linked with such libtool
7436 *** libraries will work regardless of this problem. Nevertheless, you
7437 *** may want to report the problem to your system manager and/or to
7438 *** bug-libtool@gnu.org
7448 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7453 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7454 if test -n "$MAGIC_CMD"; then
7455 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7456 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7458 { echo "$as_me:$LINENO: result: no" >&5
7459 echo "${ECHO_T}no" >&6; }
7472 enable_win32_dll
=yes
7474 # Check whether --enable-libtool-lock was given.
7475 if test "${enable_libtool_lock+set}" = set; then
7476 enableval
=$enable_libtool_lock;
7479 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
7482 # Check whether --with-pic was given.
7483 if test "${with_pic+set}" = set; then
7484 withval
=$with_pic; pic_mode
="$withval"
7489 test -z "$pic_mode" && pic_mode
=default
7491 # Use C for the default configuration in the libtool script
7495 ac_cpp
='$CPP $CPPFLAGS'
7496 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7497 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7498 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7501 # Source file extension for C test sources.
7504 # Object file extension for compiled C test sources.
7508 # Code to be used in simple compile tests
7509 lt_simple_compile_test_code
="int some_variable = 0;"
7511 # Code to be used in simple link tests
7512 lt_simple_link_test_code
='int main(){return(0);}'
7515 # If no C compiler was specified, use CC.
7518 # If no C compiler flags were specified, use CFLAGS.
7519 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
7521 # Allow CC to be a program name with arguments.
7525 # save warnings/boilerplate of simple test code
7526 ac_outfile
=conftest.
$ac_objext
7527 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
7528 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7529 _lt_compiler_boilerplate
=`cat conftest.err`
7532 ac_outfile
=conftest.
$ac_objext
7533 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
7534 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7535 _lt_linker_boilerplate
=`cat conftest.err`
7540 ## There is no encapsulation within the following macros, do not change
7541 ## the running order or otherwise move them around unless you know exactly
7542 ## what you are doing...
7544 lt_prog_compiler_no_builtin_flag
=
7546 if test "$GCC" = yes; then
7547 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
7550 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7551 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7552 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7553 echo $ECHO_N "(cached) $ECHO_C" >&6
7555 lt_cv_prog_compiler_rtti_exceptions
=no
7556 ac_outfile
=conftest.
$ac_objext
7557 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7558 lt_compiler_flag
="-fno-rtti -fno-exceptions"
7559 # Insert the option either (1) after the last *FLAGS variable, or
7560 # (2) before a word containing "conftest.", or (3) at the end.
7561 # Note that $ac_compile itself does not contain backslashes and begins
7562 # with a dollar sign (not a hyphen), so the echo should work correctly.
7563 # The option is referenced via a variable to avoid confusing sed.
7564 lt_compile
=`echo "$ac_compile" | $SED \
7565 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7566 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7567 -e 's:$: $lt_compiler_flag:'`
7568 (eval echo "\"\$as_me:7568: $lt_compile\"" >&5)
7569 (eval "$lt_compile" 2>conftest.err
)
7571 cat conftest.err
>&5
7572 echo "$as_me:7572: \$? = $ac_status" >&5
7573 if (exit $ac_status) && test -s "$ac_outfile"; then
7574 # The compiler can only warn and ignore the option if not recognized
7575 # So say no if there are warnings other than the usual output.
7576 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
7577 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7578 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7579 lt_cv_prog_compiler_rtti_exceptions
=yes
7585 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7586 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7588 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
7589 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7596 lt_prog_compiler_wl
=
7597 lt_prog_compiler_pic
=
7598 lt_prog_compiler_static
=
7600 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7601 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7603 if test "$GCC" = yes; then
7604 lt_prog_compiler_wl
='-Wl,'
7605 lt_prog_compiler_static
='-static'
7609 # All AIX code is PIC.
7610 if test "$host_cpu" = ia64
; then
7611 # AIX 5 now supports IA64 processor
7612 lt_prog_compiler_static
='-Bstatic'
7617 # FIXME: we need at least 68020 code to build shared libraries, but
7618 # adding the `-m68020' flag to GCC prevents building anything better,
7620 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
7623 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
7624 # PIC is the default for these OSes.
7627 mingw
* | cygwin
* | pw32
* | os2
*)
7628 # This hack is so that the source file can tell whether it is being
7629 # built for inclusion in a dll (and should export symbols for example).
7630 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7631 # (--disable-auto-import) libraries
7632 lt_prog_compiler_pic
='-DDLL_EXPORT'
7635 darwin
* | rhapsody
*)
7636 # PIC is the default on this platform
7637 # Common symbols not allowed in MH_DYLIB files
7638 lt_prog_compiler_pic
='-fno-common'
7642 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7643 # Instead, we relocate shared libraries at runtime.
7647 # Just because we use GCC doesn't mean we suddenly get shared libraries
7648 # on systems that don't support them.
7649 lt_prog_compiler_can_build_shared
=no
7654 if test -d /usr
/nec
; then
7655 lt_prog_compiler_pic
=-Kconform_pic
7660 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7667 lt_prog_compiler_pic
='-fPIC'
7673 lt_prog_compiler_pic
='-fPIC'
7677 # PORTME Check for flag to pass linker flags through the system compiler.
7680 lt_prog_compiler_wl
='-Wl,'
7681 if test "$host_cpu" = ia64
; then
7682 # AIX 5 now supports IA64 processor
7683 lt_prog_compiler_static
='-Bstatic'
7685 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
7689 # PIC is the default on this platform
7690 # Common symbols not allowed in MH_DYLIB files
7691 case $cc_basename in
7693 lt_prog_compiler_pic
='-qnocommon'
7694 lt_prog_compiler_wl
='-Wl,'
7699 mingw
* | cygwin
* | pw32
* | os2
*)
7700 # This hack is so that the source file can tell whether it is being
7701 # built for inclusion in a dll (and should export symbols for example).
7702 lt_prog_compiler_pic
='-DDLL_EXPORT'
7705 hpux9
* | hpux10
* | hpux11
*)
7706 lt_prog_compiler_wl
='-Wl,'
7707 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7714 lt_prog_compiler_pic
='+Z'
7717 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7718 lt_prog_compiler_static
='${wl}-a ${wl}archive'
7721 irix5
* | irix6
* | nonstopux
*)
7722 lt_prog_compiler_wl
='-Wl,'
7723 # PIC (with -KPIC) is the default.
7724 lt_prog_compiler_static
='-non_shared'
7728 lt_prog_compiler_pic
='-KPIC'
7729 lt_prog_compiler_static
='-Bstatic'
7732 linux
* | k
*bsd
*-gnu)
7733 case $cc_basename in
7735 lt_prog_compiler_wl
='-Wl,'
7736 lt_prog_compiler_pic
='-KPIC'
7737 lt_prog_compiler_static
='-static'
7739 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
7740 # Portland Group compilers (*not* the Pentium gcc compiler,
7741 # which looks to be a dead project)
7742 lt_prog_compiler_wl
='-Wl,'
7743 lt_prog_compiler_pic
='-fpic'
7744 lt_prog_compiler_static
='-Bstatic'
7747 lt_prog_compiler_wl
='-Wl,'
7748 # All Alpha code is PIC.
7749 lt_prog_compiler_static
='-non_shared'
7752 case `$CC -V 2>&1 | sed 5q` in
7755 lt_prog_compiler_pic
='-KPIC'
7756 lt_prog_compiler_static
='-Bstatic'
7757 lt_prog_compiler_wl
='-Wl,'
7760 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7761 lt_prog_compiler_pic
='-KPIC'
7762 lt_prog_compiler_static
='-Bstatic'
7763 lt_prog_compiler_wl
=''
7770 osf3
* | osf4
* | osf5
*)
7771 lt_prog_compiler_wl
='-Wl,'
7772 # All OSF/1 code is PIC.
7773 lt_prog_compiler_static
='-non_shared'
7777 lt_prog_compiler_static
='-non_shared'
7781 lt_prog_compiler_pic
='-KPIC'
7782 lt_prog_compiler_static
='-Bstatic'
7783 case $cc_basename in
7785 lt_prog_compiler_wl
='-Qoption ld ';;
7787 lt_prog_compiler_wl
='-Wl,';;
7792 lt_prog_compiler_wl
='-Qoption ld '
7793 lt_prog_compiler_pic
='-PIC'
7794 lt_prog_compiler_static
='-Bstatic'
7797 sysv4 | sysv4.2uw2
* | sysv4.3
*)
7798 lt_prog_compiler_wl
='-Wl,'
7799 lt_prog_compiler_pic
='-KPIC'
7800 lt_prog_compiler_static
='-Bstatic'
7804 if test -d /usr
/nec
;then
7805 lt_prog_compiler_pic
='-Kconform_pic'
7806 lt_prog_compiler_static
='-Bstatic'
7810 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
7811 lt_prog_compiler_wl
='-Wl,'
7812 lt_prog_compiler_pic
='-KPIC'
7813 lt_prog_compiler_static
='-Bstatic'
7817 lt_prog_compiler_wl
='-Wl,'
7818 lt_prog_compiler_can_build_shared
=no
7822 lt_prog_compiler_pic
='-pic'
7823 lt_prog_compiler_static
='-Bstatic'
7827 lt_prog_compiler_can_build_shared
=no
7832 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7833 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7836 # Check to make sure the PIC flag actually works.
7838 if test -n "$lt_prog_compiler_pic"; then
7840 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7841 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7842 if test "${lt_prog_compiler_pic_works+set}" = set; then
7843 echo $ECHO_N "(cached) $ECHO_C" >&6
7845 lt_prog_compiler_pic_works
=no
7846 ac_outfile
=conftest.
$ac_objext
7847 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7848 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
7849 # Insert the option either (1) after the last *FLAGS variable, or
7850 # (2) before a word containing "conftest.", or (3) at the end.
7851 # Note that $ac_compile itself does not contain backslashes and begins
7852 # with a dollar sign (not a hyphen), so the echo should work correctly.
7853 # The option is referenced via a variable to avoid confusing sed.
7854 lt_compile
=`echo "$ac_compile" | $SED \
7855 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7856 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7857 -e 's:$: $lt_compiler_flag:'`
7858 (eval echo "\"\$as_me:7858: $lt_compile\"" >&5)
7859 (eval "$lt_compile" 2>conftest.err
)
7861 cat conftest.err
>&5
7862 echo "$as_me:7862: \$? = $ac_status" >&5
7863 if (exit $ac_status) && test -s "$ac_outfile"; then
7864 # The compiler can only warn and ignore the option if not recognized
7865 # So say no if there are warnings other than the usual output.
7866 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
7867 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7868 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7869 lt_prog_compiler_pic_works
=yes
7875 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7876 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7878 if test x
"$lt_prog_compiler_pic_works" = xyes
; then
7879 case $lt_prog_compiler_pic in
7881 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
7884 lt_prog_compiler_pic
=
7885 lt_prog_compiler_can_build_shared
=no
7890 # For platforms which do not support PIC, -DPIC is meaningless:
7892 lt_prog_compiler_pic
=
7895 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
7900 # Check to make sure the static flag actually works.
7902 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
7903 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7904 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7905 if test "${lt_prog_compiler_static_works+set}" = set; then
7906 echo $ECHO_N "(cached) $ECHO_C" >&6
7908 lt_prog_compiler_static_works
=no
7909 save_LDFLAGS
="$LDFLAGS"
7910 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
7911 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
7912 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
7913 # The linker can only warn and ignore the option if not recognized
7914 # So say no if there are warnings
7915 if test -s conftest.err
; then
7916 # Append any errors to the config.log.
7917 cat conftest.err
1>&5
7918 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
7919 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7920 if diff conftest.exp conftest.er2
>/dev
/null
; then
7921 lt_prog_compiler_static_works
=yes
7924 lt_prog_compiler_static_works
=yes
7928 LDFLAGS
="$save_LDFLAGS"
7931 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7932 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7934 if test x
"$lt_prog_compiler_static_works" = xyes
; then
7937 lt_prog_compiler_static
=
7941 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7942 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7943 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7944 echo $ECHO_N "(cached) $ECHO_C" >&6
7946 lt_cv_prog_compiler_c_o
=no
7947 $rm -r conftest
2>/dev
/null
7951 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7953 lt_compiler_flag
="-o out/conftest2.$ac_objext"
7954 # Insert the option either (1) after the last *FLAGS variable, or
7955 # (2) before a word containing "conftest.", or (3) at the end.
7956 # Note that $ac_compile itself does not contain backslashes and begins
7957 # with a dollar sign (not a hyphen), so the echo should work correctly.
7958 lt_compile
=`echo "$ac_compile" | $SED \
7959 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7960 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7961 -e 's:$: $lt_compiler_flag:'`
7962 (eval echo "\"\$as_me:7962: $lt_compile\"" >&5)
7963 (eval "$lt_compile" 2>out
/conftest.err
)
7965 cat out
/conftest.err
>&5
7966 echo "$as_me:7966: \$? = $ac_status" >&5
7967 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
7969 # The compiler can only warn and ignore the option if not recognized
7970 # So say no if there are warnings
7971 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
7972 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
7973 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
7974 lt_cv_prog_compiler_c_o
=yes
7979 # SGI C++ compiler will create directory out/ii_files/ for
7980 # template instantiation
7981 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
7982 $rm out
/* && rmdir out
7988 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7989 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7992 hard_links
="nottested"
7993 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
7994 # do not overwrite the value of need_locks provided by the user
7995 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7996 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7999 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8001 ln conftest.a conftest.b
2>&5 || hard_links
=no
8002 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8003 { echo "$as_me:$LINENO: result: $hard_links" >&5
8004 echo "${ECHO_T}$hard_links" >&6; }
8005 if test "$hard_links" = no
; then
8006 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8007 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8014 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8015 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8018 allow_undefined_flag
=
8019 enable_shared_with_static_runtimes
=no
8021 archive_expsym_cmds
=
8022 old_archive_From_new_cmds
=
8023 old_archive_from_expsyms_cmds
=
8024 export_dynamic_flag_spec
=
8025 whole_archive_flag_spec
=
8026 thread_safe_flag_spec
=
8027 hardcode_libdir_flag_spec
=
8028 hardcode_libdir_flag_spec_ld
=
8029 hardcode_libdir_separator
=
8032 hardcode_shlibpath_var
=unsupported
8033 link_all_deplibs
=unknown
8034 hardcode_automatic
=no
8037 always_export_symbols
=no
8038 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8039 # include_expsyms should be a list of space-separated symbols to be *always*
8040 # included in the symbol list
8042 # exclude_expsyms can be an extended regexp of symbols to exclude
8043 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8044 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8045 # as well as any symbol that contains `d'.
8046 exclude_expsyms
="_GLOBAL_OFFSET_TABLE_"
8047 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8048 # platforms (ab)use it in PIC code, but their linkers get confused if
8049 # the symbol is explicitly referenced. Since portable code cannot
8050 # rely on this symbol name, it's probably fine to never include it in
8051 # preloaded symbol tables.
8052 extract_expsyms_cmds
=
8053 # Just being paranoid about ensuring that cc_basename is set.
8054 for cc_temp
in $compiler""; do
8056 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
8057 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
8062 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8065 cygwin
* | mingw
* | pw32
*)
8066 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8067 # When not using gcc, we currently assume that we are using
8068 # Microsoft Visual C++.
8069 if test "$GCC" != yes; then
8074 # we just hope/assume this is gcc and not c89 (= MSVC++)
8083 if test "$with_gnu_ld" = yes; then
8084 # If archive_cmds runs LD, not CC, wlarc should be empty
8087 # Set some defaults for GNU ld with shared library support. These
8088 # are reset later if shared libraries are not supported. Putting them
8089 # here allows them to be overridden if necessary.
8090 runpath_var
=LD_RUN_PATH
8091 hardcode_libdir_flag_spec
='${wl}--rpath ${wl}$libdir'
8092 export_dynamic_flag_spec
='${wl}--export-dynamic'
8093 # ancient GNU ld didn't support --whole-archive et. al.
8094 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
8095 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8097 whole_archive_flag_spec
=
8099 supports_anon_versioning
=no
8100 case `$LD -v 2>/dev/null` in
8101 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
8102 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
8103 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
8104 *\
2.11.
*) ;; # other 2.11 versions
8105 *) supports_anon_versioning
=yes ;;
8108 # See if GNU ld supports shared libraries.
8110 aix3
* | aix4
* | aix5
*)
8111 # On AIX/PPC, the GNU linker is very broken
8112 if test "$host_cpu" != ia64
; then
8116 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8117 *** to be unable to reliably create shared libraries on AIX.
8118 *** Therefore, libtool is disabling shared libraries support. If you
8119 *** really care for shared libraries, you may want to modify your PATH
8120 *** so that a non-GNU linker is found, and then restart.
8127 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)'
8128 hardcode_libdir_flag_spec
='-L$libdir'
8129 hardcode_minus_L
=yes
8131 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8132 # that the semantics of dynamic libraries on AmigaOS, at least up
8133 # to version 4, is to share data among multiple programs linked
8134 # with the same dynamic library. Since this doesn't match the
8135 # behavior of shared libraries on other platforms, we can't use
8141 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
8142 allow_undefined_flag
=unsupported
8143 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8144 # support --undefined. This deserves some investigation. FIXME
8145 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8151 cygwin
* | mingw
* | pw32
*)
8152 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8153 # as there is no search path for DLLs.
8154 hardcode_libdir_flag_spec
='-L$libdir'
8155 allow_undefined_flag
=unsupported
8156 always_export_symbols
=no
8157 enable_shared_with_static_runtimes
=yes
8158 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8160 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
8161 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8162 # If the export-symbols file already is a .def file (1st line
8163 # is EXPORTS), use it as is; otherwise, prepend...
8164 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8165 cp $export_symbols $output_objdir/$soname.def;
8167 echo EXPORTS > $output_objdir/$soname.def;
8168 cat $export_symbols >> $output_objdir/$soname.def;
8170 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8178 hardcode_shlibpath_var
=no
8179 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8180 export_dynamic_flag_spec
='${wl}-E'
8181 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8182 # Instead, shared libraries are loaded at an image base (0x10000000 by
8183 # default) and relocated if they conflict, which is a slow very memory
8184 # consuming and fragmenting process. To avoid this, we pick a random,
8185 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8186 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8187 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8188 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'
8191 gnu
* | linux
* | k
*bsd
*-gnu)
8192 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
8194 case $cc_basename,$host_cpu in
8195 pgcc
*) # Portland Group C compiler
8196 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'
8197 tmp_addflag
=' $pic_flag'
8199 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
8200 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'
8201 tmp_addflag
=' $pic_flag -Mnomain' ;;
8202 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
8203 tmp_addflag
=' -i_dynamic' ;;
8204 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
8205 tmp_addflag
=' -i_dynamic -nofor_main' ;;
8206 ifc
* | ifort
*) # Intel Fortran compiler
8207 tmp_addflag
=' -nofor_main' ;;
8209 case `$CC -V 2>&1 | sed 5q` in
8210 *Sun\ C
*) # Sun C 5.9
8211 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'
8212 tmp_sharedflag
='-G' ;;
8213 *Sun\ F
*) # Sun Fortran 8.3
8214 tmp_sharedflag
='-G' ;;
8216 tmp_sharedflag
='-shared' ;;
8218 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8220 if test $supports_anon_versioning = yes; then
8221 archive_expsym_cmds
='$echo "{ global:" > $output_objdir/$libname.ver~
8222 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8223 $echo "local: *; };" >> $output_objdir/$libname.ver~
8224 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8232 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
8233 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8236 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8237 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8242 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
8246 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8247 *** create shared libraries on Solaris systems. Therefore, libtool
8248 *** is disabling shared libraries support. We urge you to upgrade GNU
8249 *** binutils to release 2.9.1 or newer. Another option is to modify
8250 *** your PATH or compiler configuration so that the native linker is
8251 *** used, and then restart.
8254 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
8255 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8256 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8262 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
8263 case `$LD -v 2>&1` in
8264 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
8268 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8269 *** reliably create shared libraries on SCO systems. Therefore, libtool
8270 *** is disabling shared libraries support. We urge you to upgrade GNU
8271 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8272 *** your PATH or compiler configuration so that the native linker is
8273 *** used, and then restart.
8278 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
8279 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8280 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8281 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8290 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8293 hardcode_shlibpath_var
=no
8297 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
8298 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8299 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8306 if test "$ld_shlibs" = no
; then
8308 hardcode_libdir_flag_spec
=
8309 export_dynamic_flag_spec
=
8310 whole_archive_flag_spec
=
8313 # PORTME fill in a description of your system's linker (not GNU ld)
8316 allow_undefined_flag
=unsupported
8317 always_export_symbols
=yes
8318 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'
8319 # Note: this linker hardcodes the directories in LIBPATH if there
8320 # are no directories specified by -L.
8321 hardcode_minus_L
=yes
8322 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8323 # Neither direct hardcoding nor static linking is supported with a
8325 hardcode_direct
=unsupported
8330 if test "$host_cpu" = ia64
; then
8331 # On IA64, the linker does run time linking by default, so we don't
8332 # have to do anything special.
8333 aix_use_runtimelinking
=no
8334 exp_sym_flag
='-Bexport'
8337 # If we're using GNU nm, then we don't want the "-C" option.
8338 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8339 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
8340 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'
8342 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'
8344 aix_use_runtimelinking
=no
8346 # Test if we are trying to use run time linking or normal
8347 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8348 # need to do runtime linking.
8349 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
8350 for ld_flag
in $LDFLAGS; do
8351 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
8352 aix_use_runtimelinking
=yes
8359 exp_sym_flag
='-bexport'
8360 no_entry_flag
='-bnoentry'
8363 # When large executables or shared objects are built, AIX ld can
8364 # have problems creating the table of contents. If linking a library
8365 # or program results in "error TOC overflow" add -mminimal-toc to
8366 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8367 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8371 hardcode_libdir_separator
=':'
8372 link_all_deplibs
=yes
8374 if test "$GCC" = yes; then
8375 case $host_os in aix4.
[012]|aix4.
[012].
*)
8376 # We only want to do this on AIX 4.2 and lower, the check
8377 # below for broken collect2 doesn't work under 4.3+
8378 collect2name
=`${CC} -print-prog-name=collect2`
8379 if test -f "$collect2name" && \
8380 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
8382 # We have reworked collect2
8385 # We have old collect2
8386 hardcode_direct
=unsupported
8387 # It fails to find uninstalled libraries when the uninstalled
8388 # path is not listed in the libpath. Setting hardcode_minus_L
8389 # to unsupported forces relinking
8390 hardcode_minus_L
=yes
8391 hardcode_libdir_flag_spec
='-L$libdir'
8392 hardcode_libdir_separator
=
8396 shared_flag
='-shared'
8397 if test "$aix_use_runtimelinking" = yes; then
8398 shared_flag
="$shared_flag "'${wl}-G'
8402 if test "$host_cpu" = ia64
; then
8403 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8404 # chokes on -Wl,-G. The following line is correct:
8407 if test "$aix_use_runtimelinking" = yes; then
8408 shared_flag
='${wl}-G'
8410 shared_flag
='${wl}-bM:SRE'
8415 # It seems that -bexpall does not export symbols beginning with
8416 # underscore (_), so it is better to generate a list of symbols to export.
8417 always_export_symbols
=yes
8418 if test "$aix_use_runtimelinking" = yes; then
8419 # Warning - without using the other runtime loading flags (-brtl),
8420 # -berok will link without error, but may produce a broken library.
8421 allow_undefined_flag
='-berok'
8422 # Determine the default libpath from the value encoded in an empty executable.
8423 cat >conftest.
$ac_ext <<_ACEOF
8426 cat confdefs.h
>>conftest.
$ac_ext
8427 cat >>conftest.
$ac_ext <<_ACEOF
8428 /* end confdefs.h. */
8438 rm -f conftest.
$ac_objext conftest
$ac_exeext
8439 if { (ac_try
="$ac_link"
8441 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8442 *) ac_try_echo=$ac_try;;
8444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8445 (eval "$ac_link") 2>conftest.er1
8447 grep -v '^ *+' conftest.er1 >conftest.err
8449 cat conftest.err >&5
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); } && {
8452 test -z "$ac_c_werror_flag" ||
8453 test ! -s conftest.err
8454 } && test -s conftest$ac_exeext &&
8455 $as_test_x conftest$ac_exeext; then
8457 lt_aix_libpath_sed='
8458 /Import File Strings/,/^$/ {
8464 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
8465 # Check for a 64-bit object if we didn't find anything.
8466 if test -z "$aix_libpath"; then
8467 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
8470 echo "$as_me: failed program was:" >&5
8471 sed 's/^/| /' conftest.$ac_ext >&5
8476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8477 conftest$ac_exeext conftest.$ac_ext
8478 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8480 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8481 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"
8483 if test "$host_cpu" = ia64; then
8484 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8485 allow_undefined_flag="-z nodefs"
8486 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"
8488 # Determine the default libpath from the value encoded in an empty executable.
8489 cat >conftest.$ac_ext <<_ACEOF
8492 cat confdefs.h >>conftest.$ac_ext
8493 cat >>conftest.$ac_ext <<_ACEOF
8494 /* end confdefs.h. */
8504 rm -f conftest.$ac_objext conftest$ac_exeext
8505 if { (ac_try="$ac_link"
8507 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8508 *) ac_try_echo
=$ac_try;;
8510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8511 (eval "$ac_link") 2>conftest.er1
8513 grep -v '^ *+' conftest.er1
>conftest.err
8515 cat conftest.err
>&5
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); } && {
8518 test -z "$ac_c_werror_flag" ||
8519 test ! -s conftest.err
8520 } && test -s conftest
$ac_exeext &&
8521 $as_test_x conftest
$ac_exeext; then
8523 lt_aix_libpath_sed
='
8524 /Import File Strings/,/^$/ {
8530 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8531 # Check for a 64-bit object if we didn't find anything.
8532 if test -z "$aix_libpath"; then
8533 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8536 echo "$as_me: failed program was:" >&5
8537 sed 's/^/| /' conftest.
$ac_ext >&5
8542 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8543 conftest
$ac_exeext conftest.
$ac_ext
8544 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
8546 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
8547 # Warning - without using the other run time loading flags,
8548 # -berok will link without error, but may produce a broken library.
8549 no_undefined_flag
=' ${wl}-bernotok'
8550 allow_undefined_flag
=' ${wl}-berok'
8551 # Exported symbols can be pulled into shared objects from archives
8552 whole_archive_flag_spec
='$convenience'
8553 archive_cmds_need_lc
=yes
8554 # This is similar to how AIX traditionally builds its shared libraries.
8555 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'
8561 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)'
8562 hardcode_libdir_flag_spec
='-L$libdir'
8563 hardcode_minus_L
=yes
8564 # see comment about different semantics on the GNU ld section
8569 export_dynamic_flag_spec
=-rdynamic
8572 cygwin
* | mingw
* | pw32
*)
8573 # When not using gcc, we currently assume that we are using
8574 # Microsoft Visual C++.
8575 # hardcode_libdir_flag_spec is actually meaningless, as there is
8576 # no search path for DLLs.
8577 hardcode_libdir_flag_spec
=' '
8578 allow_undefined_flag
=unsupported
8579 # Tell ltmain to make .lib files, not .a files.
8581 # Tell ltmain to make .dll files, not .so files.
8583 # FIXME: Setting linknames here is a bad hack.
8584 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8585 # The linker will automatically build a .lib file if we build a DLL.
8586 old_archive_From_new_cmds
='true'
8587 # FIXME: Should let the user specify the lib program.
8588 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
8589 fix_srcfile_path
='`cygpath -w "$srcfile"`'
8590 enable_shared_with_static_runtimes
=yes
8593 darwin
* | rhapsody
*)
8595 rhapsody
* | darwin1.
[012])
8596 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
8599 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8600 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8602 case ${MACOSX_DEPLOYMENT_TARGET} in
8604 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8607 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
8613 archive_cmds_need_lc
=no
8615 hardcode_automatic
=yes
8616 hardcode_shlibpath_var
=unsupported
8617 whole_archive_flag_spec
=''
8618 link_all_deplibs
=yes
8619 if test "$GCC" = yes ; then
8620 output_verbose_link_cmd
='echo'
8621 archive_cmds
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8622 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8623 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8624 archive_expsym_cmds
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8625 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}'
8627 case $cc_basename in
8629 output_verbose_link_cmd
='echo'
8630 archive_cmds
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8631 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8632 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8633 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}'
8634 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}'
8644 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8645 hardcode_libdir_flag_spec
='-L$libdir'
8646 hardcode_shlibpath_var
=no
8653 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8654 # support. Future versions do this automatically, but an explicit c++rt0.o
8655 # does not break anything, and helps significantly (at the cost of a little
8658 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8659 hardcode_libdir_flag_spec
='-R$libdir'
8661 hardcode_shlibpath_var
=no
8664 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8666 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8668 hardcode_minus_L
=yes
8669 hardcode_shlibpath_var
=no
8672 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8673 freebsd
* | dragonfly
*)
8674 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8675 hardcode_libdir_flag_spec
='-R$libdir'
8677 hardcode_shlibpath_var
=no
8681 if test "$GCC" = yes; then
8682 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'
8684 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'
8686 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8687 hardcode_libdir_separator
=:
8690 # hardcode_minus_L: Not really in the search PATH,
8691 # but as the default location of the library.
8692 hardcode_minus_L
=yes
8693 export_dynamic_flag_spec
='${wl}-E'
8697 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
8698 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8700 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8702 if test "$with_gnu_ld" = no
; then
8703 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8704 hardcode_libdir_separator
=:
8707 export_dynamic_flag_spec
='${wl}-E'
8709 # hardcode_minus_L: Not really in the search PATH,
8710 # but as the default location of the library.
8711 hardcode_minus_L
=yes
8716 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
8719 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8722 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8725 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8731 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8734 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8737 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8741 if test "$with_gnu_ld" = no
; then
8742 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8743 hardcode_libdir_separator
=:
8747 hardcode_libdir_flag_spec_ld
='+b $libdir'
8749 hardcode_shlibpath_var
=no
8753 export_dynamic_flag_spec
='${wl}-E'
8755 # hardcode_minus_L: Not really in the search PATH,
8756 # but as the default location of the library.
8757 hardcode_minus_L
=yes
8763 irix5
* | irix6
* | nonstopux
*)
8764 if test "$GCC" = yes; then
8765 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'
8767 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'
8768 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
8770 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8771 hardcode_libdir_separator
=:
8772 link_all_deplibs
=yes
8776 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
8777 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8779 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8781 hardcode_libdir_flag_spec
='-R$libdir'
8783 hardcode_shlibpath_var
=no
8787 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8789 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8790 hardcode_libdir_separator
=:
8791 hardcode_shlibpath_var
=no
8795 if test -f /usr
/libexec
/ld.so
; then
8797 hardcode_shlibpath_var
=no
8798 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8799 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8800 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8801 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8802 export_dynamic_flag_spec
='${wl}-E'
8805 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
8806 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8807 hardcode_libdir_flag_spec
='-R$libdir'
8810 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8811 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8821 hardcode_libdir_flag_spec
='-L$libdir'
8822 hardcode_minus_L
=yes
8823 allow_undefined_flag
=unsupported
8824 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'
8825 old_archive_From_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8829 if test "$GCC" = yes; then
8830 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
8831 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'
8833 allow_undefined_flag
=' -expect_unresolved \*'
8834 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'
8836 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8837 hardcode_libdir_separator
=:
8840 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
8841 if test "$GCC" = yes; then
8842 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
8843 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'
8844 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8846 allow_undefined_flag
=' -expect_unresolved \*'
8847 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'
8848 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8849 $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'
8851 # Both c and cxx compiler support -rpath directly
8852 hardcode_libdir_flag_spec
='-rpath $libdir'
8854 hardcode_libdir_separator
=:
8858 no_undefined_flag
=' -z text'
8859 if test "$GCC" = yes; then
8861 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8862 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8863 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8866 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8867 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8868 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8870 hardcode_libdir_flag_spec
='-R$libdir'
8871 hardcode_shlibpath_var
=no
8873 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
8875 # The compiler driver will combine and reorder linker options,
8876 # but understands `-z linker_flag'. GCC discards it without `$wl',
8877 # but is careful enough not to reorder.
8878 # Supported since Solaris 2.6 (maybe 2.5.1?)
8879 if test "$GCC" = yes; then
8880 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8882 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
8886 link_all_deplibs
=yes
8890 if test "x$host_vendor" = xsequent
; then
8891 # Use $CC to link under sequent, because it throws in some extra .o
8892 # files that make .init and .fini sections work.
8893 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8895 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8897 hardcode_libdir_flag_spec
='-L$libdir'
8899 hardcode_minus_L
=yes
8900 hardcode_shlibpath_var
=no
8904 case $host_vendor in
8906 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8907 hardcode_direct
=yes # is this really true???
8910 ## LD is ld it makes a PLAMLIB
8911 ## CC just makes a GrossModule.
8912 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8913 reload_cmds
='$CC -r -o $output$reload_objs'
8917 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8918 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
8921 runpath_var
='LD_RUN_PATH'
8922 hardcode_shlibpath_var
=no
8926 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8927 hardcode_shlibpath_var
=no
8928 export_dynamic_flag_spec
='-Bexport'
8932 if test -d /usr
/nec
; then
8933 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8934 hardcode_shlibpath_var
=no
8935 runpath_var
=LD_RUN_PATH
8936 hardcode_runpath_var
=yes
8941 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
8942 no_undefined_flag
='${wl}-z,text'
8943 archive_cmds_need_lc
=no
8944 hardcode_shlibpath_var
=no
8945 runpath_var
='LD_RUN_PATH'
8947 if test "$GCC" = yes; then
8948 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8949 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8951 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8952 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8956 sysv5
* | sco3.2v5
* | sco5v6
*)
8957 # Note: We can NOT use -z defs as we might desire, because we do not
8958 # link with -lc, and that would cause any symbols used from libc to
8959 # always be unresolved, which means just about no library would
8960 # ever link correctly. If we're not using GNU ld we use -z text
8961 # though, which does catch some bad symbols but isn't as heavy-handed
8963 no_undefined_flag
='${wl}-z,text'
8964 allow_undefined_flag
='${wl}-z,nodefs'
8965 archive_cmds_need_lc
=no
8966 hardcode_shlibpath_var
=no
8967 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8968 hardcode_libdir_separator
=':'
8969 link_all_deplibs
=yes
8970 export_dynamic_flag_spec
='${wl}-Bexport'
8971 runpath_var
='LD_RUN_PATH'
8973 if test "$GCC" = yes; then
8974 archive_cmds
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8975 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8977 archive_cmds
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8978 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8983 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8984 hardcode_libdir_flag_spec
='-L$libdir'
8985 hardcode_shlibpath_var
=no
8994 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8995 echo "${ECHO_T}$ld_shlibs" >&6; }
8996 test "$ld_shlibs" = no
&& can_build_shared
=no
8999 # Do we need to explicitly link libc?
9001 case "x$archive_cmds_need_lc" in
9003 # Assume -lc should be added
9004 archive_cmds_need_lc
=yes
9006 if test "$enable_shared" = yes && test "$GCC" = yes; then
9007 case $archive_cmds in
9009 # FIXME: we may have to deal with multi-command sequences.
9012 # Test whether the compiler implicitly links with -lc since on some
9013 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9014 # to ld, don't add -lc before -lgcc.
9015 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9016 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9018 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9021 (eval $ac_compile) 2>&5
9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 (exit $ac_status); } 2>conftest.err
; then
9027 libobjs
=conftest.
$ac_objext
9029 wl
=$lt_prog_compiler_wl
9030 pic_flag
=$lt_prog_compiler_pic
9036 lt_save_allow_undefined_flag
=$allow_undefined_flag
9037 allow_undefined_flag
=
9038 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9039 (eval $archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
9041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042 (exit $ac_status); }
9044 archive_cmds_need_lc
=no
9046 archive_cmds_need_lc
=yes
9048 allow_undefined_flag
=$lt_save_allow_undefined_flag
9050 cat conftest.err
1>&5
9053 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9054 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9061 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9062 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9064 libname_spec
='lib$name'
9072 shlibpath_overrides_runpath
=unknown
9074 dynamic_linker
="$host_os ld.so"
9075 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
9077 if test "$GCC" = yes; then
9079 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
9080 *) lt_awk_arg
="/^libraries:/" ;;
9082 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9083 if echo "$lt_search_path_spec" |
grep ';' >/dev
/null
; then
9084 # if the path contains ";" then we assume it to be the separator
9085 # otherwise default to the standard path separator (i.e. ":") - it is
9086 # assumed that no part of a normal pathname contains ";" but that should
9087 # okay in the real world where ";" in dirpaths is itself problematic.
9088 lt_search_path_spec
=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9090 lt_search_path_spec
=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9092 # Ok, now we have the path, separated by spaces, we can step through it
9093 # and add multilib dir if necessary.
9094 lt_tmp_lt_search_path_spec
=
9095 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9096 for lt_sys_path
in $lt_search_path_spec; do
9097 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9098 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9100 test -d "$lt_sys_path" && \
9101 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
9104 lt_search_path_spec
=`echo $lt_tmp_lt_search_path_spec | awk '
9105 BEGIN {RS=" "; FS="/|\n";} {
9108 for (lt_i = NF; lt_i > 0; lt_i--) {
9109 if ($lt_i != "" && $lt_i != ".") {
9110 if ($lt_i == "..") {
9113 if (lt_count == 0) {
9114 lt_foo="/" $lt_i lt_foo;
9121 if (lt_foo != "") { lt_freq[lt_foo]++; }
9122 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9124 sys_lib_search_path_spec
=`echo $lt_search_path_spec`
9126 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
9128 need_lib_prefix
=unknown
9129 hardcode_into_libs
=no
9131 # when you set need_version to no, make sure it does not cause -set_version
9132 # flags to be left without arguments
9133 need_version
=unknown
9138 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
9139 shlibpath_var
=LIBPATH
9141 # AIX 3 has no versioning support, so we append a major version to the name.
9142 soname_spec
='${libname}${release}${shared_ext}$major'
9149 hardcode_into_libs
=yes
9150 if test "$host_cpu" = ia64
; then
9151 # AIX 5 supports IA64
9152 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9153 shlibpath_var
=LD_LIBRARY_PATH
9155 # With GCC up to 2.95.x, collect2 would create an import file
9156 # for dependence libraries. The import file would start with
9157 # the line `#! .'. This would cause the generated library to
9158 # depend on `.', always an invalid library. This was fixed in
9159 # development snapshots of GCC prior to 3.0.
9161 aix4 | aix4.
[01] | aix4.
[01].
*)
9162 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9164 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
9171 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9172 # soname into executable. Probably we can add versioning support to
9173 # collect2, so additional links can be useful in future.
9174 if test "$aix_use_runtimelinking" = yes; then
9175 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9176 # instead of lib<name>.a to let people know that these are not
9177 # typical AIX shared libraries.
9178 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9180 # We preserve .a as extension for shared libraries through AIX4.2
9181 # and later when we are not doing run time linking.
9182 library_names_spec
='${libname}${release}.a $libname.a'
9183 soname_spec
='${libname}${release}${shared_ext}$major'
9185 shlibpath_var
=LIBPATH
9190 library_names_spec
='$libname.ixlibrary $libname.a'
9191 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9192 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'
9196 library_names_spec
='${libname}${shared_ext}'
9197 dynamic_linker
="$host_os ld.so"
9198 shlibpath_var
=LIBRARY_PATH
9204 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9205 soname_spec
='${libname}${release}${shared_ext}$major'
9206 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
9207 shlibpath_var
=LD_LIBRARY_PATH
9208 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9209 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
9210 # the default ld.so.conf also contains /usr/contrib/lib and
9211 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9212 # libtool to hard-code these into programs
9215 cygwin
* | mingw
* | pw32
*)
9216 version_type
=windows
9221 case $GCC,$host_os in
9222 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
9223 library_names_spec
='$libname.dll.a'
9224 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9225 postinstall_cmds
='base_file=`basename \${file}`~
9226 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9227 dldir=$destdir/`dirname \$dlpath`~
9228 test -d \$dldir || mkdir -p \$dldir~
9229 $install_prog $dir/$dlname \$dldir/$dlname~
9230 chmod a+x \$dldir/$dlname'
9231 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9232 dlpath=$dir/\$dldll~
9234 shlibpath_overrides_runpath
=yes
9238 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9239 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9240 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
9243 # MinGW DLLs use traditional 'lib' prefix
9244 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9245 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9246 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
9247 # It is most probably a Windows format PATH printed by
9248 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9249 # path with ; separators, and with drive letters. We can handle the
9250 # drive letters (cygwin fileutils understands them), so leave them,
9251 # especially as we might pass files found there to a mingw objdump,
9252 # which wouldn't understand a cygwinified path. Ahh.
9253 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9255 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9259 # pw32 DLLs use 'pw' prefix rather than 'lib'
9260 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9266 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9269 dynamic_linker
='Win32 ld.exe'
9270 # FIXME: first we should search . and the directory the executable is in
9274 darwin
* | rhapsody
*)
9275 dynamic_linker
="$host_os dyld"
9279 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9280 soname_spec
='${libname}${release}${major}$shared_ext'
9281 shlibpath_overrides_runpath
=yes
9282 shlibpath_var
=DYLD_LIBRARY_PATH
9283 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
9285 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
9286 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
9293 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9294 soname_spec
='${libname}${release}${shared_ext}$major'
9295 shlibpath_var
=LD_LIBRARY_PATH
9302 freebsd
* | dragonfly
*)
9303 # DragonFly does not have aout. When/if they implement a new
9304 # versioning mechanism, adjust this.
9305 if test -x /usr
/bin
/objformat
; then
9306 objformat
=`/usr/bin/objformat`
9309 freebsd
[123]*) objformat
=aout
;;
9313 version_type
=freebsd-
$objformat
9314 case $version_type in
9316 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9321 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9325 shlibpath_var
=LD_LIBRARY_PATH
9328 shlibpath_overrides_runpath
=yes
9330 freebsd3.
[01]* | freebsdelf3.
[01]*)
9331 shlibpath_overrides_runpath
=yes
9332 hardcode_into_libs
=yes
9334 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
9335 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
9336 shlibpath_overrides_runpath
=no
9337 hardcode_into_libs
=yes
9339 *) # from 4.6 on, and DragonFly
9340 shlibpath_overrides_runpath
=yes
9341 hardcode_into_libs
=yes
9350 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9351 soname_spec
='${libname}${release}${shared_ext}$major'
9352 shlibpath_var
=LD_LIBRARY_PATH
9353 hardcode_into_libs
=yes
9356 hpux9
* | hpux10
* | hpux11
*)
9357 # Give a soname corresponding to the major version so that dld.sl refuses to
9358 # link against other versions.
9365 hardcode_into_libs
=yes
9366 dynamic_linker
="$host_os dld.so"
9367 shlibpath_var
=LD_LIBRARY_PATH
9368 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
9369 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9370 soname_spec
='${libname}${release}${shared_ext}$major'
9371 if test "X$HPUX_IA64_MODE" = X32
; then
9372 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9374 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
9376 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
9380 hardcode_into_libs
=yes
9381 dynamic_linker
="$host_os dld.sl"
9382 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
9383 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
9384 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9385 soname_spec
='${libname}${release}${shared_ext}$major'
9386 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9387 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
9391 dynamic_linker
="$host_os dld.sl"
9392 shlibpath_var
=SHLIB_PATH
9393 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
9394 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9395 soname_spec
='${libname}${release}${shared_ext}$major'
9398 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9399 postinstall_cmds
='chmod 555 $lib'
9406 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9407 soname_spec
='${libname}${release}${shared_ext}$major'
9408 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
9409 shlibpath_var
=LD_LIBRARY_PATH
9410 shlibpath_overrides_runpath
=no
9411 hardcode_into_libs
=yes
9414 irix5
* | irix6
* | nonstopux
*)
9416 nonstopux
*) version_type
=nonstopux
;;
9418 if test "$lt_cv_prog_gnu_ld" = yes; then
9426 soname_spec
='${libname}${release}${shared_ext}$major'
9427 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9429 irix5
* | nonstopux
*)
9433 case $LD in # libtool.m4 will add one of these switches to LD
9434 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
9435 libsuff
= shlibsuff
= libmagic
=32-bit;;
9436 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
9437 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
9438 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
9439 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
9440 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
9444 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
9445 shlibpath_overrides_runpath
=no
9446 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9447 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
9448 hardcode_into_libs
=yes
9451 # No shared lib support for Linux oldld, aout, or coff.
9452 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
9456 # This must be Linux ELF.
9457 linux
* | k
*bsd
*-gnu)
9461 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9462 soname_spec
='${libname}${release}${shared_ext}$major'
9463 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9464 shlibpath_var
=LD_LIBRARY_PATH
9465 shlibpath_overrides_runpath
=no
9466 # This implies no fast_install, which is unacceptable.
9467 # Some rework will be needed to allow for fast_install
9468 # before this can be enabled.
9469 hardcode_into_libs
=yes
9470 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9471 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
9473 # Append ld.so.conf contents to the search path
9474 if test -f /etc
/ld.so.conf
; then
9475 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' ' '`
9476 sys_lib_dlsearch_path_spec
="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9479 # We used to test for /lib/ld.so.1 and disable shared libraries on
9480 # powerpc, because MkLinux only supported shared libraries with the
9481 # GNU dynamic linker. Since this was broken with cross compilers,
9482 # most powerpc-linux boxes support dynamic linking these days and
9483 # people can always --disable-shared, the test was removed, and we
9484 # assume the GNU/Linux dynamic linker is in use.
9485 dynamic_linker
='GNU/Linux ld.so'
9492 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
9493 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9494 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9495 dynamic_linker
='NetBSD (a.out) ld.so'
9497 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9498 soname_spec
='${libname}${release}${shared_ext}$major'
9499 dynamic_linker
='NetBSD ld.elf_so'
9501 shlibpath_var
=LD_LIBRARY_PATH
9502 shlibpath_overrides_runpath
=yes
9503 hardcode_into_libs
=yes
9508 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9509 shlibpath_var
=LD_LIBRARY_PATH
9510 shlibpath_overrides_runpath
=yes
9517 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9518 soname_spec
='${libname}${release}${shared_ext}$major'
9519 shlibpath_var
=LD_LIBRARY_PATH
9520 shlibpath_overrides_runpath
=yes
9525 sys_lib_dlsearch_path_spec
="/usr/lib"
9527 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9529 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
9530 *) need_version
=no
;;
9532 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9533 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9534 shlibpath_var
=LD_LIBRARY_PATH
9535 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9537 openbsd2.
[89] | openbsd2.
[89].
*)
9538 shlibpath_overrides_runpath
=no
9541 shlibpath_overrides_runpath
=yes
9545 shlibpath_overrides_runpath
=yes
9550 libname_spec
='$name'
9553 library_names_spec
='$libname${shared_ext} $libname.a'
9554 dynamic_linker
='OS/2 ld.exe'
9555 shlibpath_var
=LIBPATH
9558 osf3
* | osf4
* | osf5
*)
9562 soname_spec
='${libname}${release}${shared_ext}$major'
9563 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9564 shlibpath_var
=LD_LIBRARY_PATH
9565 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9566 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
9577 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9578 soname_spec
='${libname}${release}${shared_ext}$major'
9579 shlibpath_var
=LD_LIBRARY_PATH
9580 shlibpath_overrides_runpath
=yes
9581 hardcode_into_libs
=yes
9582 # ldd complains unless libraries are executable
9583 postinstall_cmds
='chmod +x $lib'
9588 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9589 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9590 shlibpath_var
=LD_LIBRARY_PATH
9591 shlibpath_overrides_runpath
=yes
9592 if test "$with_gnu_ld" = yes; then
9600 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9601 soname_spec
='${libname}${release}${shared_ext}$major'
9602 shlibpath_var
=LD_LIBRARY_PATH
9603 case $host_vendor in
9605 shlibpath_overrides_runpath
=no
9607 export_dynamic_flag_spec
='${wl}-Blargedynsym'
9608 runpath_var
=LD_RUN_PATH
9616 shlibpath_overrides_runpath
=no
9617 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
9623 if test -d /usr
/nec
;then
9625 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9626 soname_spec
='$libname${shared_ext}.$major'
9627 shlibpath_var
=LD_LIBRARY_PATH
9631 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
9632 version_type
=freebsd-elf
9635 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9636 soname_spec
='${libname}${release}${shared_ext}$major'
9637 shlibpath_var
=LD_LIBRARY_PATH
9638 hardcode_into_libs
=yes
9639 if test "$with_gnu_ld" = yes; then
9640 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9641 shlibpath_overrides_runpath
=no
9643 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
9644 shlibpath_overrides_runpath
=yes
9647 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
9651 sys_lib_dlsearch_path_spec
='/usr/lib'
9656 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9657 soname_spec
='${libname}${release}${shared_ext}$major'
9658 shlibpath_var
=LD_LIBRARY_PATH
9665 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9666 echo "${ECHO_T}$dynamic_linker" >&6; }
9667 test "$dynamic_linker" = no
&& can_build_shared
=no
9669 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
9670 if test "$GCC" = yes; then
9671 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9674 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9675 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9677 if test -n "$hardcode_libdir_flag_spec" || \
9678 test -n "$runpath_var" || \
9679 test "X$hardcode_automatic" = "Xyes" ; then
9681 # We can hardcode non-existant directories.
9682 if test "$hardcode_direct" != no
&&
9683 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9684 # have to relink, otherwise we might link with an installed library
9685 # when we should be linking with a yet-to-be-installed one
9686 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9687 test "$hardcode_minus_L" != no
; then
9688 # Linking always hardcodes the temporary library directory.
9689 hardcode_action
=relink
9691 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9692 hardcode_action
=immediate
9695 # We cannot hardcode anything, or else we can only hardcode existing
9697 hardcode_action
=unsupported
9699 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9700 echo "${ECHO_T}$hardcode_action" >&6; }
9702 if test "$hardcode_action" = relink
; then
9703 # Fast installation is not supported
9704 enable_fast_install
=no
9705 elif test "$shlibpath_overrides_runpath" = yes ||
9706 test "$enable_shared" = no
; then
9707 # Fast installation is not necessary
9708 enable_fast_install
=needless
9713 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9714 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9715 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
9716 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
9717 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
9718 { echo "$as_me:$LINENO: result: yes" >&5
9719 echo "${ECHO_T}yes" >&6; }
9721 # FIXME - insert some real tests, host_os isn't really good enough
9724 if test -n "$STRIP" ; then
9725 striplib
="$STRIP -x"
9726 old_striplib
="$STRIP -S"
9727 { echo "$as_me:$LINENO: result: yes" >&5
9728 echo "${ECHO_T}yes" >&6; }
9730 { echo "$as_me:$LINENO: result: no" >&5
9731 echo "${ECHO_T}no" >&6; }
9735 { echo "$as_me:$LINENO: result: no" >&5
9736 echo "${ECHO_T}no" >&6; }
9741 if test "x$enable_dlopen" != xyes
; then
9742 enable_dlopen
=unknown
9743 enable_dlopen_self
=unknown
9744 enable_dlopen_self_static
=unknown
9751 lt_cv_dlopen
="load_add_on"
9753 lt_cv_dlopen_self
=yes
9757 lt_cv_dlopen
="LoadLibrary"
9762 lt_cv_dlopen
="dlopen"
9767 # if libdl is installed we need to link against it
9768 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9769 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9770 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9771 echo $ECHO_N "(cached) $ECHO_C" >&6
9773 ac_check_lib_save_LIBS
=$LIBS
9775 cat >conftest.
$ac_ext <<_ACEOF
9778 cat confdefs.h
>>conftest.
$ac_ext
9779 cat >>conftest.
$ac_ext <<_ACEOF
9780 /* end confdefs.h. */
9782 /* Override any GCC internal prototype to avoid an error.
9783 Use char because int might match the return type of a GCC
9784 builtin and then its argument prototype would still apply. */
9797 rm -f conftest.
$ac_objext conftest
$ac_exeext
9798 if { (ac_try
="$ac_link"
9800 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9801 *) ac_try_echo=$ac_try;;
9803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9804 (eval "$ac_link") 2>conftest.er1
9806 grep -v '^ *+' conftest.er1 >conftest.err
9808 cat conftest.err >&5
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); } && {
9811 test -z "$ac_c_werror_flag" ||
9812 test ! -s conftest.err
9813 } && test -s conftest$ac_exeext &&
9814 $as_test_x conftest$ac_exeext; then
9815 ac_cv_lib_dl_dlopen=yes
9817 echo "$as_me: failed program was:" >&5
9818 sed 's/^/| /' conftest.$ac_ext >&5
9820 ac_cv_lib_dl_dlopen=no
9823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9824 conftest$ac_exeext conftest.$ac_ext
9825 LIBS=$ac_check_lib_save_LIBS
9827 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9828 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9829 if test $ac_cv_lib_dl_dlopen = yes; then
9830 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9835 lt_cv_dlopen_self=yes
9842 { echo "$as_me:$LINENO: checking for shl_load" >&5
9843 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9844 if test "${ac_cv_func_shl_load+set}" = set; then
9845 echo $ECHO_N "(cached) $ECHO_C" >&6
9847 cat >conftest.$ac_ext <<_ACEOF
9850 cat confdefs.h >>conftest.$ac_ext
9851 cat >>conftest.$ac_ext <<_ACEOF
9852 /* end confdefs.h. */
9853 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9855 #define shl_load innocuous_shl_load
9857 /* System header to define __stub macros and hopefully few prototypes,
9858 which can conflict with char shl_load (); below.
9859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9860 <limits.h> exists even on freestanding compilers. */
9863 # include <limits.h>
9865 # include <assert.h>
9870 /* Override any GCC internal prototype to avoid an error.
9871 Use char because int might match the return type of a GCC
9872 builtin and then its argument prototype would still apply. */
9877 /* The GNU C library defines this for functions which it implements
9878 to always fail with ENOSYS. Some functions are actually named
9879 something starting with __ and the normal name is an alias. */
9880 #if defined __stub_shl_load || defined __stub___shl_load
9892 rm -f conftest.$ac_objext conftest$ac_exeext
9893 if { (ac_try="$ac_link"
9895 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9896 *) ac_try_echo
=$ac_try;;
9898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9899 (eval "$ac_link") 2>conftest.er1
9901 grep -v '^ *+' conftest.er1
>conftest.err
9903 cat conftest.err
>&5
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); } && {
9906 test -z "$ac_c_werror_flag" ||
9907 test ! -s conftest.err
9908 } && test -s conftest
$ac_exeext &&
9909 $as_test_x conftest
$ac_exeext; then
9910 ac_cv_func_shl_load
=yes
9912 echo "$as_me: failed program was:" >&5
9913 sed 's/^/| /' conftest.
$ac_ext >&5
9915 ac_cv_func_shl_load
=no
9918 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9919 conftest
$ac_exeext conftest.
$ac_ext
9921 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9922 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9923 if test $ac_cv_func_shl_load = yes; then
9924 lt_cv_dlopen
="shl_load"
9926 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9927 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9928 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9929 echo $ECHO_N "(cached) $ECHO_C" >&6
9931 ac_check_lib_save_LIBS
=$LIBS
9933 cat >conftest.
$ac_ext <<_ACEOF
9936 cat confdefs.h
>>conftest.
$ac_ext
9937 cat >>conftest.
$ac_ext <<_ACEOF
9938 /* end confdefs.h. */
9940 /* Override any GCC internal prototype to avoid an error.
9941 Use char because int might match the return type of a GCC
9942 builtin and then its argument prototype would still apply. */
9955 rm -f conftest.
$ac_objext conftest
$ac_exeext
9956 if { (ac_try
="$ac_link"
9958 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9959 *) ac_try_echo=$ac_try;;
9961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9962 (eval "$ac_link") 2>conftest.er1
9964 grep -v '^ *+' conftest.er1 >conftest.err
9966 cat conftest.err >&5
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); } && {
9969 test -z "$ac_c_werror_flag" ||
9970 test ! -s conftest.err
9971 } && test -s conftest$ac_exeext &&
9972 $as_test_x conftest$ac_exeext; then
9973 ac_cv_lib_dld_shl_load=yes
9975 echo "$as_me: failed program was:" >&5
9976 sed 's/^/| /' conftest.$ac_ext >&5
9978 ac_cv_lib_dld_shl_load=no
9981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9982 conftest$ac_exeext conftest.$ac_ext
9983 LIBS=$ac_check_lib_save_LIBS
9985 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9986 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9987 if test $ac_cv_lib_dld_shl_load = yes; then
9988 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9990 { echo "$as_me:$LINENO: checking for dlopen" >&5
9991 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9992 if test "${ac_cv_func_dlopen+set}" = set; then
9993 echo $ECHO_N "(cached) $ECHO_C" >&6
9995 cat >conftest.$ac_ext <<_ACEOF
9998 cat confdefs.h >>conftest.$ac_ext
9999 cat >>conftest.$ac_ext <<_ACEOF
10000 /* end confdefs.h. */
10001 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10003 #define dlopen innocuous_dlopen
10005 /* System header to define __stub macros and hopefully few prototypes,
10006 which can conflict with char dlopen (); below.
10007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10008 <limits.h> exists even on freestanding compilers. */
10011 # include <limits.h>
10013 # include <assert.h>
10018 /* Override any GCC internal prototype to avoid an error.
10019 Use char because int might match the return type of a GCC
10020 builtin and then its argument prototype would still apply. */
10025 /* The GNU C library defines this for functions which it implements
10026 to always fail with ENOSYS. Some functions are actually named
10027 something starting with __ and the normal name is an alias. */
10028 #if defined __stub_dlopen || defined __stub___dlopen
10040 rm -f conftest.$ac_objext conftest$ac_exeext
10041 if { (ac_try="$ac_link"
10042 case "(($ac_try" in
10043 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10044 *) ac_try_echo
=$ac_try;;
10046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10047 (eval "$ac_link") 2>conftest.er1
10049 grep -v '^ *+' conftest.er1
>conftest.err
10051 cat conftest.err
>&5
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); } && {
10054 test -z "$ac_c_werror_flag" ||
10055 test ! -s conftest.err
10056 } && test -s conftest
$ac_exeext &&
10057 $as_test_x conftest
$ac_exeext; then
10058 ac_cv_func_dlopen
=yes
10060 echo "$as_me: failed program was:" >&5
10061 sed 's/^/| /' conftest.
$ac_ext >&5
10063 ac_cv_func_dlopen
=no
10066 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10067 conftest
$ac_exeext conftest.
$ac_ext
10069 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10070 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10071 if test $ac_cv_func_dlopen = yes; then
10072 lt_cv_dlopen
="dlopen"
10074 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10075 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10076 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10077 echo $ECHO_N "(cached) $ECHO_C" >&6
10079 ac_check_lib_save_LIBS
=$LIBS
10081 cat >conftest.
$ac_ext <<_ACEOF
10084 cat confdefs.h
>>conftest.
$ac_ext
10085 cat >>conftest.
$ac_ext <<_ACEOF
10086 /* end confdefs.h. */
10088 /* Override any GCC internal prototype to avoid an error.
10089 Use char because int might match the return type of a GCC
10090 builtin and then its argument prototype would still apply. */
10103 rm -f conftest.
$ac_objext conftest
$ac_exeext
10104 if { (ac_try
="$ac_link"
10105 case "(($ac_try" in
10106 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10107 *) ac_try_echo=$ac_try;;
10109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10110 (eval "$ac_link") 2>conftest.er1
10112 grep -v '^ *+' conftest.er1 >conftest.err
10114 cat conftest.err >&5
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); } && {
10117 test -z "$ac_c_werror_flag" ||
10118 test ! -s conftest.err
10119 } && test -s conftest$ac_exeext &&
10120 $as_test_x conftest$ac_exeext; then
10121 ac_cv_lib_dl_dlopen=yes
10123 echo "$as_me: failed program was:" >&5
10124 sed 's/^/| /' conftest.$ac_ext >&5
10126 ac_cv_lib_dl_dlopen=no
10129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10130 conftest$ac_exeext conftest.$ac_ext
10131 LIBS=$ac_check_lib_save_LIBS
10133 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10134 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10135 if test $ac_cv_lib_dl_dlopen = yes; then
10136 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10138 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10139 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10140 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10141 echo $ECHO_N "(cached) $ECHO_C" >&6
10143 ac_check_lib_save_LIBS=$LIBS
10144 LIBS="-lsvld $LIBS"
10145 cat >conftest.$ac_ext <<_ACEOF
10148 cat confdefs.h >>conftest.$ac_ext
10149 cat >>conftest.$ac_ext <<_ACEOF
10150 /* end confdefs.h. */
10152 /* Override any GCC internal prototype to avoid an error.
10153 Use char because int might match the return type of a GCC
10154 builtin and then its argument prototype would still apply. */
10167 rm -f conftest.$ac_objext conftest$ac_exeext
10168 if { (ac_try="$ac_link"
10169 case "(($ac_try" in
10170 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10171 *) ac_try_echo
=$ac_try;;
10173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10174 (eval "$ac_link") 2>conftest.er1
10176 grep -v '^ *+' conftest.er1
>conftest.err
10178 cat conftest.err
>&5
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); } && {
10181 test -z "$ac_c_werror_flag" ||
10182 test ! -s conftest.err
10183 } && test -s conftest
$ac_exeext &&
10184 $as_test_x conftest
$ac_exeext; then
10185 ac_cv_lib_svld_dlopen
=yes
10187 echo "$as_me: failed program was:" >&5
10188 sed 's/^/| /' conftest.
$ac_ext >&5
10190 ac_cv_lib_svld_dlopen
=no
10193 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10194 conftest
$ac_exeext conftest.
$ac_ext
10195 LIBS
=$ac_check_lib_save_LIBS
10197 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10198 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10199 if test $ac_cv_lib_svld_dlopen = yes; then
10200 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
10202 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10203 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10204 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10205 echo $ECHO_N "(cached) $ECHO_C" >&6
10207 ac_check_lib_save_LIBS
=$LIBS
10209 cat >conftest.
$ac_ext <<_ACEOF
10212 cat confdefs.h
>>conftest.
$ac_ext
10213 cat >>conftest.
$ac_ext <<_ACEOF
10214 /* end confdefs.h. */
10216 /* Override any GCC internal prototype to avoid an error.
10217 Use char because int might match the return type of a GCC
10218 builtin and then its argument prototype would still apply. */
10226 return dld_link ();
10231 rm -f conftest.
$ac_objext conftest
$ac_exeext
10232 if { (ac_try
="$ac_link"
10233 case "(($ac_try" in
10234 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10235 *) ac_try_echo=$ac_try;;
10237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10238 (eval "$ac_link") 2>conftest.er1
10240 grep -v '^ *+' conftest.er1 >conftest.err
10242 cat conftest.err >&5
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); } && {
10245 test -z "$ac_c_werror_flag" ||
10246 test ! -s conftest.err
10247 } && test -s conftest$ac_exeext &&
10248 $as_test_x conftest$ac_exeext; then
10249 ac_cv_lib_dld_dld_link=yes
10251 echo "$as_me: failed program was:" >&5
10252 sed 's/^/| /' conftest.$ac_ext >&5
10254 ac_cv_lib_dld_dld_link=no
10257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10258 conftest$ac_exeext conftest.$ac_ext
10259 LIBS=$ac_check_lib_save_LIBS
10261 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10262 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10263 if test $ac_cv_lib_dld_dld_link = yes; then
10264 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10285 if test "x$lt_cv_dlopen" != xno; then
10291 case $lt_cv_dlopen in
10293 save_CPPFLAGS="$CPPFLAGS"
10294 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10296 save_LDFLAGS="$LDFLAGS"
10297 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10300 LIBS="$lt_cv_dlopen_libs $LIBS"
10302 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10303 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10304 if test "${lt_cv_dlopen_self+set}" = set; then
10305 echo $ECHO_N "(cached) $ECHO_C" >&6
10307 if test "$cross_compiling" = yes; then :
10308 lt_cv_dlopen_self=cross
10310 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10311 lt_status=$lt_dlunknown
10312 cat > conftest.$ac_ext <<EOF
10313 #line 10313 "configure"
10314 #include "confdefs.h"
10323 # define LT_DLGLOBAL RTLD_GLOBAL
10326 # define LT_DLGLOBAL DL_GLOBAL
10328 # define LT_DLGLOBAL 0
10332 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10333 find out it does not work in some platform. */
10334 #ifndef LT_DLLAZY_OR_NOW
10336 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10339 # define LT_DLLAZY_OR_NOW DL_LAZY
10342 # define LT_DLLAZY_OR_NOW RTLD_NOW
10345 # define LT_DLLAZY_OR_NOW DL_NOW
10347 # define LT_DLLAZY_OR_NOW 0
10355 extern "C" void exit (int);
10358 void fnord() { int i=42;}
10361 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10362 int status = $lt_dlunknown;
10366 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10367 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10368 /* dlclose (self); */
10376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10377 (eval $ac_link) 2>&5
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10381 (./conftest; exit; ) >&5 2>/dev/null
10383 case x$lt_status in
10384 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10385 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10386 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10389 # compilation failed
10390 lt_cv_dlopen_self=no
10397 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10398 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10400 if test "x$lt_cv_dlopen_self" = xyes; then
10401 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10402 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10403 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10404 if test "${lt_cv_dlopen_self_static+set}" = set; then
10405 echo $ECHO_N "(cached) $ECHO_C" >&6
10407 if test "$cross_compiling" = yes; then :
10408 lt_cv_dlopen_self_static=cross
10410 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10411 lt_status=$lt_dlunknown
10412 cat > conftest.$ac_ext <<EOF
10413 #line 10413 "configure"
10414 #include "confdefs.h"
10423 # define LT_DLGLOBAL RTLD_GLOBAL
10426 # define LT_DLGLOBAL DL_GLOBAL
10428 # define LT_DLGLOBAL 0
10432 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10433 find out it does not work in some platform. */
10434 #ifndef LT_DLLAZY_OR_NOW
10436 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10439 # define LT_DLLAZY_OR_NOW DL_LAZY
10442 # define LT_DLLAZY_OR_NOW RTLD_NOW
10445 # define LT_DLLAZY_OR_NOW DL_NOW
10447 # define LT_DLLAZY_OR_NOW 0
10455 extern "C" void exit (int);
10458 void fnord() { int i=42;}
10461 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10462 int status = $lt_dlunknown;
10466 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10467 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10468 /* dlclose (self); */
10476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10477 (eval $ac_link) 2>&5
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10481 (./conftest; exit; ) >&5 2>/dev/null
10483 case x$lt_status in
10484 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10485 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10486 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10489 # compilation failed
10490 lt_cv_dlopen_self_static=no
10497 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10498 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10501 CPPFLAGS="$save_CPPFLAGS"
10502 LDFLAGS="$save_LDFLAGS"
10507 case $lt_cv_dlopen_self in
10508 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10509 *) enable_dlopen_self=unknown ;;
10512 case $lt_cv_dlopen_self_static in
10513 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10514 *) enable_dlopen_self_static=unknown ;;
10519 # Report which library types will actually be built
10520 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10521 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10522 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10523 echo "${ECHO_T}$can_build_shared" >&6; }
10525 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10526 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10527 test "$can_build_shared" = "no" && enable_shared=no
10529 # On AIX, shared libraries and static libraries use the same namespace, and
10530 # are all built from PIC.
10533 test "$enable_shared" = yes && enable_static=no
10534 if test -n "$RANLIB"; then
10535 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10536 postinstall_cmds='$RANLIB $lib'
10541 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10542 test "$enable_shared" = yes && enable_static=no
10546 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10547 echo "${ECHO_T}$enable_shared" >&6; }
10549 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10550 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10551 # Make sure either enable_shared or enable_static is yes.
10552 test "$enable_shared" = yes || enable_static=yes
10553 { echo "$as_me:$LINENO: result: $enable_static" >&5
10554 echo "${ECHO_T}$enable_static" >&6; }
10556 # The else clause should only fire when bootstrapping the
10557 # libtool distribution, otherwise you forgot to ship ltmain.sh
10558 # with your package, and you will get complaints that there are
10559 # no rules to generate ltmain.sh.
10560 if test -f "$ltmain"; then
10561 # See if we are running on zsh, and set the options which allow our commands through
10562 # without removal of \ escapes.
10563 if test -n "${ZSH_VERSION+set}" ; then
10564 setopt NO_GLOB_SUBST
10566 # Now quote all the things that may contain metacharacters while being
10567 # careful not to overquote the AC_SUBSTed values. We take copies of the
10568 # variables and quote the copies for generation of the libtool script.
10569 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10571 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10572 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10573 deplibs_check_method reload_flag reload_cmds need_locks \
10574 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10575 lt_cv_sys_global_symbol_to_c_name_address \
10576 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10577 old_postinstall_cmds old_postuninstall_cmds \
10581 lt_prog_compiler_wl \
10582 lt_prog_compiler_pic \
10583 lt_prog_compiler_static \
10584 lt_prog_compiler_no_builtin_flag \
10585 export_dynamic_flag_spec \
10586 thread_safe_flag_spec \
10587 whole_archive_flag_spec \
10588 enable_shared_with_static_runtimes \
10590 old_archive_from_new_cmds \
10595 compiler_lib_search_path \
10597 archive_expsym_cmds \
10599 postuninstall_cmds \
10600 old_archive_from_expsyms_cmds \
10601 allow_undefined_flag \
10602 no_undefined_flag \
10603 export_symbols_cmds \
10604 hardcode_libdir_flag_spec \
10605 hardcode_libdir_flag_spec_ld \
10606 hardcode_libdir_separator \
10607 hardcode_automatic \
10609 module_expsym_cmds \
10610 lt_cv_prog_compiler_c_o \
10613 include_expsyms; do
10616 old_archive_cmds | \
10617 old_archive_from_new_cmds | \
10619 archive_expsym_cmds | \
10621 module_expsym_cmds | \
10622 old_archive_from_expsyms_cmds | \
10623 export_symbols_cmds | \
10624 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10625 postinstall_cmds | postuninstall_cmds | \
10626 old_postinstall_cmds | old_postuninstall_cmds | \
10627 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10628 # Double-quote double-evaled strings.
10629 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$double_quote_subst\" -e \"\
$sed_quote_subst\" -e \"\
$delay_variable_subst\"\
`\\\""
10632 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$sed_quote_subst\"\
`\\\""
10638 *'\$0 --fallback-echo"')
10639 lt_echo=`$echo "X$lt_echo" |
$Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10643 cfgfile="${ofile}T"
10644 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10646 { echo "$as_me:$LINENO: creating $ofile" >&5
10647 echo "$as_me: creating $ofile" >&6;}
10649 cat <<__EOF__ >> "$cfgfile"
10652 # `$echo "$cfgfile" |
sed 's%^.*/%%'` - Provide generalized library-building support services.
10653 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10654 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10656 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10657 # Free Software Foundation, Inc.
10659 # This file is part of GNU Libtool:
10660 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10662 # This program is free software; you can redistribute it and/or modify
10663 # it under the terms of the GNU General Public License as published by
10664 # the Free Software Foundation; either version 2 of the License, or
10665 # (at your option) any later version.
10667 # This program is distributed in the hope that it will be useful, but
10668 # WITHOUT ANY WARRANTY; without even the implied warranty of
10669 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10670 # General Public License for more details.
10672 # You should have received a copy of the GNU General Public License
10673 # along with this program; if not, write to the Free Software
10674 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10676 # As a special exception to the GNU General Public License, if you
10677 # distribute this file as part of a program that contains a
10678 # configuration script generated by Autoconf, you may include it under
10679 # the same distribution terms that you use for the rest of that program.
10681 # A sed program that does not truncate output.
10684 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10685 Xsed="$SED -e 1s/^X//"
10687 # The HP-UX ksh and POSIX shell print the target directory to stdout
10688 # if CDPATH is set.
10689 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10691 # The names of the tagged configurations supported by this script.
10694 # ### BEGIN LIBTOOL CONFIG
10696 # Libtool was configured on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
10698 # Shell to use when invoking shell scripts.
10701 # Whether or not to build shared libraries.
10702 build_libtool_libs=$enable_shared
10704 # Whether or not to build static libraries.
10705 build_old_libs=$enable_static
10707 # Whether or not to add -lc for building shared libraries.
10708 build_libtool_need_lc=$archive_cmds_need_lc
10710 # Whether or not to disallow shared libs when runtime libs are static
10711 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10713 # Whether or not to optimize for fast installation.
10714 fast_install=$enable_fast_install
10717 host_alias=$host_alias
10721 # The build system.
10722 build_alias=$build_alias
10726 # An echo program that does not interpret backslashes.
10731 AR_FLAGS=$lt_AR_FLAGS
10736 # LTCC compiler flags.
10737 LTCFLAGS=$lt_LTCFLAGS
10739 # A language-specific compiler.
10742 # Is the compiler the GNU C compiler?
10748 # The linker used to build libraries.
10751 # Whether we need hard or soft links.
10754 # A BSD-compatible nm program.
10757 # A symbol stripping program
10760 # Used to examine libraries when file_magic_cmd begins "file"
10761 MAGIC_CMD=$MAGIC_CMD
10763 # Used on cygwin: DLL creation program.
10766 # Used on cygwin: object dumper.
10769 # Used on cygwin: assembler.
10772 # The name of the directory that contains temporary libtool files.
10775 # How to create reloadable object files.
10776 reload_flag=$lt_reload_flag
10777 reload_cmds=$lt_reload_cmds
10779 # How to pass a linker flag through the compiler.
10780 wl=$lt_lt_prog_compiler_wl
10782 # Object file suffix (normally "o").
10783 objext="$ac_objext"
10785 # Old archive suffix (normally "a").
10788 # Shared library suffix (normally ".so").
10789 shrext_cmds='$shrext_cmds'
10791 # Executable file suffix (normally "").
10794 # Additional compiler flags for building library objects.
10795 pic_flag=$lt_lt_prog_compiler_pic
10798 # What is the maximum length of a command?
10799 max_cmd_len=$lt_cv_sys_max_cmd_len
10801 # Does compiler simultaneously support -c and -o options?
10802 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10804 # Must we lock files when doing compilation?
10805 need_locks=$lt_need_locks
10807 # Do we need the lib prefix for modules?
10808 need_lib_prefix=$need_lib_prefix
10810 # Do we need a version for libraries?
10811 need_version=$need_version
10813 # Whether dlopen is supported.
10814 dlopen_support=$enable_dlopen
10816 # Whether dlopen of programs is supported.
10817 dlopen_self=$enable_dlopen_self
10819 # Whether dlopen of statically linked programs is supported.
10820 dlopen_self_static=$enable_dlopen_self_static
10822 # Compiler flag to prevent dynamic linking.
10823 link_static_flag=$lt_lt_prog_compiler_static
10825 # Compiler flag to turn off builtin functions.
10826 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10828 # Compiler flag to allow reflexive dlopens.
10829 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10831 # Compiler flag to generate shared objects directly from archives.
10832 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10834 # Compiler flag to generate thread-safe objects.
10835 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10837 # Library versioning type.
10838 version_type=$version_type
10840 # Format of library name prefix.
10841 libname_spec=$lt_libname_spec
10843 # List of archive names. First name is the real one, the rest are links.
10844 # The last name is the one that the linker finds with -lNAME.
10845 library_names_spec=$lt_library_names_spec
10847 # The coded name of the library, if different from the real name.
10848 soname_spec=$lt_soname_spec
10850 # Commands used to build and install an old-style archive.
10852 old_archive_cmds=$lt_old_archive_cmds
10853 old_postinstall_cmds=$lt_old_postinstall_cmds
10854 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10856 # Create an old-style archive from a shared archive.
10857 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10859 # Create a temporary old-style archive to link instead of a shared archive.
10860 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10862 # Commands used to build and install a shared archive.
10863 archive_cmds=$lt_archive_cmds
10864 archive_expsym_cmds=$lt_archive_expsym_cmds
10865 postinstall_cmds=$lt_postinstall_cmds
10866 postuninstall_cmds=$lt_postuninstall_cmds
10868 # Commands used to build a loadable module (assumed same as above if empty)
10869 module_cmds=$lt_module_cmds
10870 module_expsym_cmds=$lt_module_expsym_cmds
10872 # Commands to strip libraries.
10873 old_striplib=$lt_old_striplib
10874 striplib=$lt_striplib
10876 # Dependencies to place before the objects being linked to create a
10878 predep_objects=$lt_predep_objects
10880 # Dependencies to place after the objects being linked to create a
10882 postdep_objects=$lt_postdep_objects
10884 # Dependencies to place before the objects being linked to create a
10886 predeps=$lt_predeps
10888 # Dependencies to place after the objects being linked to create a
10890 postdeps=$lt_postdeps
10892 # The library search path used internally by the compiler when linking
10893 # a shared library.
10894 compiler_lib_search_path=$lt_compiler_lib_search_path
10896 # Method to check whether dependent libraries are shared objects.
10897 deplibs_check_method=$lt_deplibs_check_method
10899 # Command to use when deplibs_check_method == file_magic.
10900 file_magic_cmd=$lt_file_magic_cmd
10902 # Flag that allows shared libraries with undefined symbols to be built.
10903 allow_undefined_flag=$lt_allow_undefined_flag
10905 # Flag that forces no undefined symbols.
10906 no_undefined_flag=$lt_no_undefined_flag
10908 # Commands used to finish a libtool library installation in a directory.
10909 finish_cmds=$lt_finish_cmds
10911 # Same as above, but a single script fragment to be evaled but not shown.
10912 finish_eval=$lt_finish_eval
10914 # Take the output of nm and produce a listing of raw symbols and C names.
10915 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10917 # Transform the output of nm in a proper C declaration
10918 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10920 # Transform the output of nm in a C name address pair
10921 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10923 # This is the shared library runtime path variable.
10924 runpath_var=$runpath_var
10926 # This is the shared library path variable.
10927 shlibpath_var=$shlibpath_var
10929 # Is shlibpath searched before the hard-coded library search path?
10930 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10932 # How to hardcode a shared library path into an executable.
10933 hardcode_action=$hardcode_action
10935 # Whether we should hardcode library paths into libraries.
10936 hardcode_into_libs=$hardcode_into_libs
10938 # Flag to hardcode \$libdir into a binary during linking.
10939 # This must work even if \$libdir does not exist.
10940 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10942 # If ld is used when linking, flag to hardcode \$libdir into
10943 # a binary during linking. This must work even if \$libdir does
10945 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10947 # Whether we need a single -rpath flag with a separated argument.
10948 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10950 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10951 # resulting binary.
10952 hardcode_direct=$hardcode_direct
10954 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10955 # resulting binary.
10956 hardcode_minus_L=$hardcode_minus_L
10958 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10959 # the resulting binary.
10960 hardcode_shlibpath_var=$hardcode_shlibpath_var
10962 # Set to yes if building a shared library automatically hardcodes DIR into the library
10963 # and all subsequent libraries and executables linked against it.
10964 hardcode_automatic=$hardcode_automatic
10966 # Variables whose values should be saved in libtool wrapper scripts and
10967 # restored at relink time.
10968 variables_saved_for_relink="$variables_saved_for_relink"
10970 # Whether libtool must link a program against all its dependency libraries.
10971 link_all_deplibs=$link_all_deplibs
10973 # Compile-time system search path for libraries
10974 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10976 # Run-time system search path for libraries
10977 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10979 # Fix the shell variable \$srcfile for the compiler.
10980 fix_srcfile_path=$lt_fix_srcfile_path
10982 # Set to yes if exported symbols are required.
10983 always_export_symbols=$always_export_symbols
10985 # The commands to list exported symbols.
10986 export_symbols_cmds=$lt_export_symbols_cmds
10988 # The commands to extract the exported symbol list from a shared archive.
10989 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10991 # Symbols that should not be listed in the preloaded symbols.
10992 exclude_expsyms=$lt_exclude_expsyms
10994 # Symbols that must always be exported.
10995 include_expsyms=$lt_include_expsyms
10997 # ### END LIBTOOL CONFIG
11004 cat <<\EOF >> "$cfgfile"
11006 # AIX sometimes has problems with the GCC collect2 program. For some
11007 # reason, if we set the COLLECT_NAMES environment variable, the problems
11008 # vanish in a puff of smoke.
11009 if test "X${COLLECT_NAMES+set}" != Xset; then
11011 export COLLECT_NAMES
11017 # We use sed instead of cat because bash on DJGPP gets confused if
11018 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11019 # text mode, it properly converts lines to CR/LF. This bash problem
11020 # is reportedly fixed, but why not run on old versions too?
11021 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11023 mv -f "$cfgfile" "$ofile" || \
11024 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11028 # If there is no Makefile yet, we rely on a make rule to execute
11029 # `config.status
--recheck' to rerun these tests and create the
11030 # libtool script then.
11031 ltmain_in=`echo $ltmain | sed -e 's
/\.sh$
/.in
/'`
11032 if test -f "$ltmain_in"; then
11033 test -f Makefile && make "$ltmain"
11039 ac_cpp='$CPP $CPPFLAGS'
11040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
11041 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
11042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11047 # Check whether --with-tags was given.
11048 if test "${with_tags+set}" = set; then
11049 withval=$with_tags; tagnames="$withval"
11053 if test -f "$ltmain" && test -n "$tagnames"; then
11054 if test ! -f "${ofile}"; then
11055 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist
" >&5
11056 echo "$as_me: WARNING
: output
file \
`$ofile' does not exist" >&2;}
11059 if test -z "$LTCC"; then
11060 eval "`$SHELL ${ofile} --config |
grep '^LTCC='`"
11061 if test -z "$LTCC"; then
11062 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11063 echo "$as_me: WARNING: output file \`$ofile' does not
look like a libtool
script" >&2;}
11065 { echo "$as_me:$LINENO: WARNING
: using \
`LTCC=$LTCC', extracted from \`$ofile'" >&5
11066 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \
`$ofile'" >&2;}
11069 if test -z "$LTCFLAGS"; then
11070 eval "`$SHELL ${ofile} --config |
grep '^LTCFLAGS='`"
11073 # Extract list of available tagged configurations in $ofile.
11074 # Note that this assumes the entire list is on one line.
11075 available_tags=`grep "^available_tags=" "${ofile}" |
$SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11077 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11078 for tagname in $tagnames; do
11080 # Check whether tagname contains only valid characters
11081 case `$echo "X$tagname" |
$Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11083 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11084 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11085 { (exit 1); exit 1; }; }
11089 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11091 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11092 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11093 { (exit 1); exit 1; }; }
11096 # Update the list of available tags.
11097 if test -n "$tagname"; then
11098 echo appending configuration tag \"$tagname\" to $ofile
11102 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11103 ( (test "X$CXX" = "Xg++" && `g
++ -v >/dev
/null
2>&1` ) ||
11104 (test "X$CXX" != "Xg++"))) ; then
11106 ac_cpp='$CXXCPP $CPPFLAGS'
11107 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11108 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11109 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11114 archive_cmds_need_lc_CXX=no
11115 allow_undefined_flag_CXX=
11116 always_export_symbols_CXX=no
11117 archive_expsym_cmds_CXX=
11118 export_dynamic_flag_spec_CXX=
11119 hardcode_direct_CXX=no
11120 hardcode_libdir_flag_spec_CXX=
11121 hardcode_libdir_flag_spec_ld_CXX=
11122 hardcode_libdir_separator_CXX=
11123 hardcode_minus_L_CXX=no
11124 hardcode_shlibpath_var_CXX=unsupported
11125 hardcode_automatic_CXX=no
11127 module_expsym_cmds_CXX=
11128 link_all_deplibs_CXX=unknown
11129 old_archive_cmds_CXX=$old_archive_cmds
11130 no_undefined_flag_CXX=
11131 whole_archive_flag_spec_CXX=
11132 enable_shared_with_static_runtimes_CXX=no
11134 # Dependencies to place before and after the object being linked:
11135 predep_objects_CXX=
11136 postdep_objects_CXX=
11139 compiler_lib_search_path_CXX=
11141 # Source file extension for C++ test sources.
11144 # Object file extension for compiled C++ test sources.
11148 # Code to be used in simple compile tests
11149 lt_simple_compile_test_code="int some_variable = 0;"
11151 # Code to be used in simple link tests
11152 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11154 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11156 # If no C compiler was specified, use CC.
11159 # If no C compiler flags were specified, use CFLAGS.
11160 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11162 # Allow CC to be a program name with arguments.
11166 # save warnings/boilerplate of simple test code
11167 ac_outfile=conftest.$ac_objext
11168 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11169 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11170 _lt_compiler_boilerplate=`cat conftest.err
`
11173 ac_outfile=conftest.$ac_objext
11174 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11175 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11176 _lt_linker_boilerplate=`cat conftest.err
`
11180 # Allow CC to be a program name with arguments.
11185 lt_save_with_gnu_ld=$with_gnu_ld
11186 lt_save_path_LD=$lt_cv_path_LD
11187 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11188 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11190 $as_unset lt_cv_prog_gnu_ld
11192 if test -n "${lt_cv_path_LDCXX+set}"; then
11193 lt_cv_path_LD=$lt_cv_path_LDCXX
11195 $as_unset lt_cv_path_LD
11197 test -z "${LDCXX+set}" || LD=$LDCXX
11201 for cc_temp in $compiler""; do
11203 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11204 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11209 cc_basename=`$echo "X$cc_temp" |
$Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11212 # We don't want -fno-exception wen compiling C++ code, so set the
11213 # no_builtin_flag separately
11214 if test "$GXX" = yes; then
11215 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11217 lt_prog_compiler_no_builtin_flag_CXX=
11220 if test "$GXX" = yes; then
11221 # Set up default GNU C++ configuration
11224 # Check whether --with-gnu-ld was given.
11225 if test "${with_gnu_ld+set}" = set; then
11226 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11232 if test "$GCC" = yes; then
11233 # Check if gcc -print-prog-name=ld gives a path.
11234 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11235 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11238 # gcc leaves a trailing carriage return which upsets mingw
11239 ac_prog=`($CC -print-prog-name=ld
) 2>&5 |
tr -d '\015'` ;;
11241 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
11244 # Accept absolute paths.
11246 re_direlt='/[^/][^/]*/\.\./'
11247 # Canonicalize the pathname of ld
11248 ac_prog=`echo $ac_prog|
$SED 's%\\\\%/%g'`
11249 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11250 ac_prog=`echo $ac_prog|
$SED "s%$re_direlt%/%"`
11252 test -z "$LD" && LD="$ac_prog"
11255 # If it fails, then pretend we aren't using GCC.
11259 # If it is relative, then search for the first ld in PATH.
11260 with_gnu_ld=unknown
11263 elif test "$with_gnu_ld" = yes; then
11264 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11265 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11267 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11268 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11270 if test "${lt_cv_path_LD+set}" = set; then
11271 echo $ECHO_N "(cached) $ECHO_C" >&6
11273 if test -z "$LD"; then
11274 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11275 for ac_dir in $PATH; do
11277 test -z "$ac_dir" && ac_dir=.
11278 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11279 lt_cv_path_LD="$ac_dir/$ac_prog"
11280 # Check to see if the program is GNU ld. I'd rather use --version,
11281 # but apparently some variants of GNU ld only accept -v.
11282 # Break only if it was the GNU/non-GNU ld that we prefer.
11283 case `"$lt_cv_path_LD" -v 2>&1 </dev
/null
` in
11284 *GNU* | *'with BFD'*)
11285 test "$with_gnu_ld" != no && break
11288 test "$with_gnu_ld" != yes && break
11295 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11299 LD="$lt_cv_path_LD"
11300 if test -n "$LD"; then
11301 { echo "$as_me:$LINENO: result: $LD" >&5
11302 echo "${ECHO_T}$LD" >&6; }
11304 { echo "$as_me:$LINENO: result: no" >&5
11305 echo "${ECHO_T}no" >&6; }
11307 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11308 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11309 { (exit 1); exit 1; }; }
11310 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11311 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11312 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11313 echo $ECHO_N "(cached) $ECHO_C" >&6
11315 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11316 case `$LD -v 2>&1 </dev
/null
` in
11317 *GNU* | *'with BFD'*)
11318 lt_cv_prog_gnu_ld=yes
11321 lt_cv_prog_gnu_ld=no
11325 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11326 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11327 with_gnu_ld=$lt_cv_prog_gnu_ld
11331 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11332 # archiving commands below assume that GNU ld is being used.
11333 if test "$with_gnu_ld" = yes; then
11334 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11335 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'
11337 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11338 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11340 # If archive_cmds runs LD, not CC, wlarc should be empty
11341 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11342 # investigate it a little bit more. (MM)
11345 # ancient GNU ld didn't support --whole-archive et. al.
11346 if eval "`$CC -print-prog-name=ld
` --help 2>&1" | \
11347 grep 'no-whole-archive' > /dev/null; then
11348 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11350 whole_archive_flag_spec_CXX=
11356 # A generic and very simple default shared library creation
11357 # command for GNU C++ for the case where it uses the native
11358 # linker, instead of GNU ld. If possible, this setting should
11359 # overridden to take advantage of the native linker features on
11360 # the platform it is being used on.
11361 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11364 # Commands to make compiler produce verbose output that lists
11365 # what "hidden" libraries, object files and flags are used when
11366 # linking a shared library.
11367 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11375 # PORTME: fill in a description of your system's C++ link characteristics
11376 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11377 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11381 # FIXME: insert proper C++ library support
11385 if test "$host_cpu" = ia64; then
11386 # On IA64, the linker does run time linking by default, so we don't
11387 # have to do anything special.
11388 aix_use_runtimelinking=no
11389 exp_sym_flag='-Bexport'
11392 aix_use_runtimelinking=no
11394 # Test if we are trying to use run time linking or normal
11395 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11396 # need to do runtime linking.
11397 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11398 for ld_flag in $LDFLAGS; do
11401 aix_use_runtimelinking=yes
11409 exp_sym_flag='-bexport'
11410 no_entry_flag='-bnoentry'
11413 # When large executables or shared objects are built, AIX ld can
11414 # have problems creating the table of contents. If linking a library
11415 # or program results in "error TOC overflow" add -mminimal-toc to
11416 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11417 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11419 archive_cmds_CXX=''
11420 hardcode_direct_CXX=yes
11421 hardcode_libdir_separator_CXX=':'
11422 link_all_deplibs_CXX=yes
11424 if test "$GXX" = yes; then
11425 case $host_os in aix4.[012]|aix4.[012].*)
11426 # We only want to do this on AIX 4.2 and lower, the check
11427 # below for broken collect2 doesn't work under 4.3+
11428 collect2name=`${CC} -print-prog-name=collect2
`
11429 if test -f "$collect2name" && \
11430 strings "$collect2name" | grep resolve_lib_name >/dev/null
11432 # We have reworked collect2
11435 # We have old collect2
11436 hardcode_direct_CXX=unsupported
11437 # It fails to find uninstalled libraries when the uninstalled
11438 # path is not listed in the libpath. Setting hardcode_minus_L
11439 # to unsupported forces relinking
11440 hardcode_minus_L_CXX=yes
11441 hardcode_libdir_flag_spec_CXX='-L$libdir'
11442 hardcode_libdir_separator_CXX=
11446 shared_flag='-shared'
11447 if test "$aix_use_runtimelinking" = yes; then
11448 shared_flag="$shared_flag "'${wl}-G'
11452 if test "$host_cpu" = ia64; then
11453 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11454 # chokes on -Wl,-G. The following line is correct:
11457 if test "$aix_use_runtimelinking" = yes; then
11458 shared_flag='${wl}-G'
11460 shared_flag='${wl}-bM:SRE'
11465 # It seems that -bexpall does not export symbols beginning with
11466 # underscore (_), so it is better to generate a list of symbols to export.
11467 always_export_symbols_CXX=yes
11468 if test "$aix_use_runtimelinking" = yes; then
11469 # Warning - without using the other runtime loading flags (-brtl),
11470 # -berok will link without error, but may produce a broken library.
11471 allow_undefined_flag_CXX='-berok'
11472 # Determine the default libpath from the value encoded in an empty executable.
11473 cat >conftest.$ac_ext <<_ACEOF
11476 cat confdefs.h >>conftest.$ac_ext
11477 cat >>conftest.$ac_ext <<_ACEOF
11478 /* end confdefs.h. */
11488 rm -f conftest.$ac_objext conftest$ac_exeext
11489 if { (ac_try="$ac_link"
11490 case "(($ac_try" in
11491 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11492 *) ac_try_echo
=$ac_try;;
11494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11495 (eval "$ac_link") 2>conftest.er1
11497 grep -v '^ *+' conftest.er1
>conftest.err
11499 cat conftest.err
>&5
11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501 (exit $ac_status); } && {
11502 test -z "$ac_cxx_werror_flag" ||
11503 test ! -s conftest.err
11504 } && test -s conftest
$ac_exeext &&
11505 $as_test_x conftest
$ac_exeext; then
11507 lt_aix_libpath_sed
='
11508 /Import File Strings/,/^$/ {
11514 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11515 # Check for a 64-bit object if we didn't find anything.
11516 if test -z "$aix_libpath"; then
11517 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11520 echo "$as_me: failed program was:" >&5
11521 sed 's/^/| /' conftest.
$ac_ext >&5
11526 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11527 conftest
$ac_exeext conftest.
$ac_ext
11528 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
11530 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
11532 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"
11534 if test "$host_cpu" = ia64
; then
11535 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
11536 allow_undefined_flag_CXX
="-z nodefs"
11537 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"
11539 # Determine the default libpath from the value encoded in an empty executable.
11540 cat >conftest.
$ac_ext <<_ACEOF
11543 cat confdefs.h
>>conftest.
$ac_ext
11544 cat >>conftest.
$ac_ext <<_ACEOF
11545 /* end confdefs.h. */
11555 rm -f conftest.
$ac_objext conftest
$ac_exeext
11556 if { (ac_try
="$ac_link"
11557 case "(($ac_try" in
11558 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11559 *) ac_try_echo=$ac_try;;
11561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11562 (eval "$ac_link") 2>conftest.er1
11564 grep -v '^ *+' conftest.er1 >conftest.err
11566 cat conftest.err >&5
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); } && {
11569 test -z "$ac_cxx_werror_flag" ||
11570 test ! -s conftest.err
11571 } && test -s conftest$ac_exeext &&
11572 $as_test_x conftest$ac_exeext; then
11574 lt_aix_libpath_sed='
11575 /Import File Strings/,/^$/ {
11581 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
11582 # Check for a 64-bit object if we didn't find anything.
11583 if test -z "$aix_libpath"; then
11584 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
11587 echo "$as_me: failed program was:" >&5
11588 sed 's/^/| /' conftest.$ac_ext >&5
11593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11594 conftest$ac_exeext conftest.$ac_ext
11595 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11597 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11598 # Warning - without using the other run time loading flags,
11599 # -berok will link without error, but may produce a broken library.
11600 no_undefined_flag_CXX=' ${wl}-bernotok'
11601 allow_undefined_flag_CXX=' ${wl}-berok'
11602 # Exported symbols can be pulled into shared objects from archives
11603 whole_archive_flag_spec_CXX='$convenience'
11604 archive_cmds_need_lc_CXX=yes
11605 # This is similar to how AIX traditionally builds its shared libraries.
11606 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'
11612 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11613 allow_undefined_flag_CXX=unsupported
11614 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11615 # support --undefined. This deserves some investigation. FIXME
11616 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11623 case $cc_basename in
11625 # FIXME: insert proper C++ library support
11631 cygwin* | mingw* | pw32*)
11632 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11633 # as there is no search path for DLLs.
11634 hardcode_libdir_flag_spec_CXX='-L$libdir'
11635 allow_undefined_flag_CXX=unsupported
11636 always_export_symbols_CXX=no
11637 enable_shared_with_static_runtimes_CXX=yes
11639 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11640 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'
11641 # If the export-symbols file already is a .def file (1st line
11642 # is EXPORTS), use it as is; otherwise, prepend...
11643 archive_expsym_cmds_CXX='if test "x`$SED 1q
$export_symbols`" = xEXPORTS; then
11644 cp $export_symbols $output_objdir/$soname.def;
11646 echo EXPORTS > $output_objdir/$soname.def;
11647 cat $export_symbols >> $output_objdir/$soname.def;
11649 $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'
11654 darwin* | rhapsody*)
11656 rhapsody* | darwin1.[012])
11657 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11660 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11661 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11663 case ${MACOSX_DEPLOYMENT_TARGET} in
11665 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11668 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11674 archive_cmds_need_lc_CXX=no
11675 hardcode_direct_CXX=no
11676 hardcode_automatic_CXX=yes
11677 hardcode_shlibpath_var_CXX=unsupported
11678 whole_archive_flag_spec_CXX=''
11679 link_all_deplibs_CXX=yes
11681 if test "$GXX" = yes ; then
11682 lt_int_apple_cc_single_mod=no
11683 output_verbose_link_cmd='echo'
11684 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11685 lt_int_apple_cc_single_mod=yes
11687 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11688 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11690 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'
11692 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11693 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11694 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11695 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11697 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11699 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}'
11701 case $cc_basename in
11703 output_verbose_link_cmd='echo'
11704 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'
11705 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11706 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11707 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}'
11708 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}'
11718 case $cc_basename in
11720 # FIXME: insert proper C++ library support
11724 # Green Hills C++ Compiler
11725 # FIXME: insert proper C++ library support
11729 # FIXME: insert proper C++ library support
11735 # C++ shared libraries reported to be fairly broken before switch to ELF
11739 archive_cmds_need_lc_CXX=no
11741 freebsd* | dragonfly*)
11742 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11749 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11750 hardcode_libdir_separator_CXX=:
11751 export_dynamic_flag_spec_CXX='${wl}-E'
11752 hardcode_direct_CXX=yes
11753 hardcode_minus_L_CXX=yes # Not in the search PATH,
11754 # but as the default
11755 # location of the library.
11757 case $cc_basename in
11759 # FIXME: insert proper C++ library support
11763 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'
11764 # Commands to make compiler produce verbose output that lists
11765 # what "hidden" libraries, object files and flags are used when
11766 # linking a shared library.
11768 # There doesn't appear to be a way to prevent this compiler from
11769 # explicitly linking system object files so we need to strip them
11770 # from the output so that they don't get included in the library
11772 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'
11775 if test "$GXX" = yes; then
11776 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'
11778 # FIXME: insert proper C++ library support
11785 if test $with_gnu_ld = no; then
11786 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11787 hardcode_libdir_separator_CXX=:
11792 export_dynamic_flag_spec_CXX='${wl}-E'
11798 hardcode_direct_CXX=no
11799 hardcode_shlibpath_var_CXX=no
11802 hardcode_direct_CXX=yes
11803 hardcode_minus_L_CXX=yes # Not in the search PATH,
11804 # but as the default
11805 # location of the library.
11809 case $cc_basename in
11811 # FIXME: insert proper C++ library support
11817 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11820 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11823 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11826 # Commands to make compiler produce verbose output that lists
11827 # what "hidden" libraries, object files and flags are used when
11828 # linking a shared library.
11830 # There doesn't appear to be a way to prevent this compiler from
11831 # explicitly linking system object files so we need to strip them
11832 # from the output so that they don't get included in the library
11834 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'
11837 if test "$GXX" = yes; then
11838 if test $with_gnu_ld = no; then
11841 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11844 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11847 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'
11852 # FIXME: insert proper C++ library support
11859 hardcode_direct_CXX=no
11860 hardcode_shlibpath_var_CXX=no
11861 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11862 export_dynamic_flag_spec_CXX='${wl}-E'
11863 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11864 # Instead, shared libraries are loaded at an image base (0x10000000 by
11865 # default) and relocated if they conflict, which is a slow very memory
11866 # consuming and fragmenting process. To avoid this, we pick a random,
11867 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11868 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11869 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'
11870 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'
11873 case $cc_basename in
11876 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'
11878 # Archives containing C++ object files must be created using
11879 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11880 # necessary to make sure instantiated templates are included
11882 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11885 if test "$GXX" = yes; then
11886 if test "$with_gnu_ld" = no; then
11887 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'
11889 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'
11892 link_all_deplibs_CXX=yes
11895 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11896 hardcode_libdir_separator_CXX=:
11898 linux* | k*bsd*-gnu)
11899 case $cc_basename in
11901 # Kuck and Associates, Inc. (KAI) C++ Compiler
11903 # KCC will only create a shared library if the output file
11904 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11905 # to its proper name (with version) after linking.
11906 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'
11907 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'
11908 # Commands to make compiler produce verbose output that lists
11909 # what "hidden" libraries, object files and flags are used when
11910 # linking a shared library.
11912 # There doesn't appear to be a way to prevent this compiler from
11913 # explicitly linking system object files so we need to strip them
11914 # from the output so that they don't get included in the library
11916 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'
11918 hardcode_libdir_flag_spec_CXX
='${wl}--rpath,$libdir'
11919 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11921 # Archives containing C++ object files must be created using
11922 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11923 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
11928 # version 8.0 and above of icpc choke on multiply defined symbols
11929 # if we add $predep_objects and $postdep_objects, however 7.1 and
11930 # earlier do not add the objects themselves.
11931 case `$CC -V 2>&1` in
11933 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11934 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'
11936 *) # Version 8.0 or newer
11939 ia64
*) tmp_idyn
=' -i_dynamic';;
11941 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11942 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'
11945 archive_cmds_need_lc_CXX
=no
11946 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11947 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11948 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11951 # Portland Group C++ compiler
11952 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11953 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'
11955 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
11956 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11957 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'
11961 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11962 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'
11964 runpath_var
=LD_RUN_PATH
11965 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
11966 hardcode_libdir_separator_CXX
=:
11968 # Commands to make compiler produce verbose output that lists
11969 # what "hidden" libraries, object files and flags are used when
11970 # linking a shared library.
11972 # There doesn't appear to be a way to prevent this compiler from
11973 # explicitly linking system object files so we need to strip them
11974 # from the output so that they don't get included in the library
11976 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'
11979 case `$CC -V 2>&1 | sed 5q` in
11982 no_undefined_flag_CXX
=' -zdefs'
11983 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11984 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'
11985 hardcode_libdir_flag_spec_CXX
='-R$libdir'
11986 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'
11988 # Not sure whether something based on
11989 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11991 output_verbose_link_cmd
='echo'
11993 # Archives containing C++ object files must be created using
11994 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11995 # necessary to make sure instantiated templates are included
11997 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
12004 # FIXME: insert proper C++ library support
12008 # FIXME: insert proper C++ library support
12012 case $cc_basename in
12014 # FIXME: insert proper C++ library support
12018 # FIXME: insert proper C++ library support
12024 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
12025 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12027 hardcode_libdir_flag_spec_CXX
='-R$libdir'
12028 hardcode_direct_CXX
=yes
12029 hardcode_shlibpath_var_CXX
=no
12031 # Workaround some broken pre-1.5 toolchains
12032 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12035 # C++ shared libraries are fairly broken
12039 if test -f /usr
/libexec
/ld.so
; then
12040 hardcode_direct_CXX
=yes
12041 hardcode_shlibpath_var_CXX
=no
12042 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12043 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12044 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12045 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12046 export_dynamic_flag_spec_CXX
='${wl}-E'
12047 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12049 output_verbose_link_cmd
='echo'
12055 case $cc_basename in
12057 # Kuck and Associates, Inc. (KAI) C++ Compiler
12059 # KCC will only create a shared library if the output file
12060 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12061 # to its proper name (with version) after linking.
12062 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'
12064 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12065 hardcode_libdir_separator_CXX
=:
12067 # Archives containing C++ object files must be created using
12068 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12069 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
12073 # Rational C++ 2.4.1
12074 # FIXME: insert proper C++ library support
12078 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
12079 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'
12081 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12082 hardcode_libdir_separator_CXX
=:
12084 # Commands to make compiler produce verbose output that lists
12085 # what "hidden" libraries, object files and flags are used when
12086 # linking a shared library.
12088 # There doesn't appear to be a way to prevent this compiler from
12089 # explicitly linking system object files so we need to strip them
12090 # from the output so that they don't get included in the library
12092 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'
12095 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
12096 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
12097 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'
12099 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12100 hardcode_libdir_separator_CXX
=:
12102 # Commands to make compiler produce verbose output that lists
12103 # what "hidden" libraries, object files and flags are used when
12104 # linking a shared library.
12105 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12108 # FIXME: insert proper C++ library support
12115 case $cc_basename in
12117 # Kuck and Associates, Inc. (KAI) C++ Compiler
12119 # KCC will only create a shared library if the output file
12120 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12121 # to its proper name (with version) after linking.
12122 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'
12124 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12125 hardcode_libdir_separator_CXX
=:
12127 # Archives containing C++ object files must be created using
12128 # the KAI C++ compiler.
12129 old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs'
12132 # Rational C++ 2.4.1
12133 # FIXME: insert proper C++ library support
12137 allow_undefined_flag_CXX
=' -expect_unresolved \*'
12138 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'
12139 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12140 echo "-hidden">> $lib.exp~
12141 $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~
12144 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
12145 hardcode_libdir_separator_CXX
=:
12147 # Commands to make compiler produce verbose output that lists
12148 # what "hidden" libraries, object files and flags are used when
12149 # linking a shared library.
12151 # There doesn't appear to be a way to prevent this compiler from
12152 # explicitly linking system object files so we need to strip them
12153 # from the output so that they don't get included in the library
12155 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'
12158 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
12159 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
12160 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'
12162 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12163 hardcode_libdir_separator_CXX
=:
12165 # Commands to make compiler produce verbose output that lists
12166 # what "hidden" libraries, object files and flags are used when
12167 # linking a shared library.
12168 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12171 # FIXME: insert proper C++ library support
12178 # FIXME: insert proper C++ library support
12182 case $cc_basename in
12185 # FIXME: insert proper C++ library support
12190 # FIXME: insert proper C++ library support
12194 # FIXME: insert proper C++ library support
12200 case $cc_basename in
12202 # Sun C++ 4.2, 5.x and Centerline C++
12203 archive_cmds_need_lc_CXX
=yes
12204 no_undefined_flag_CXX
=' -zdefs'
12205 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12206 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12207 $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'
12209 hardcode_libdir_flag_spec_CXX
='-R$libdir'
12210 hardcode_shlibpath_var_CXX
=no
12212 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
12214 # The compiler driver will combine and reorder linker options,
12215 # but understands `-z linker_flag'.
12216 # Supported since Solaris 2.6 (maybe 2.5.1?)
12217 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
12220 link_all_deplibs_CXX
=yes
12222 output_verbose_link_cmd
='echo'
12224 # Archives containing C++ object files must be created using
12225 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12226 # necessary to make sure instantiated templates are included
12228 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
12231 # Green Hills C++ Compiler
12232 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12234 # The C++ compiler must be used to create the archive.
12235 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12238 # GNU C++ compiler with Solaris linker
12239 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
12240 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
12241 if $CC --version |
grep -v '^2\.7' > /dev
/null
; then
12242 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12243 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12244 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12246 # Commands to make compiler produce verbose output that lists
12247 # what "hidden" libraries, object files and flags are used when
12248 # linking a shared library.
12249 output_verbose_link_cmd
="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12251 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12253 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12254 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12255 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12257 # Commands to make compiler produce verbose output that lists
12258 # what "hidden" libraries, object files and flags are used when
12259 # linking a shared library.
12260 output_verbose_link_cmd
="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12263 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
12265 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
12267 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12274 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
12275 no_undefined_flag_CXX
='${wl}-z,text'
12276 archive_cmds_need_lc_CXX
=no
12277 hardcode_shlibpath_var_CXX
=no
12278 runpath_var
='LD_RUN_PATH'
12280 case $cc_basename in
12282 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12283 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12286 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12287 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12291 sysv5
* | sco3.2v5
* | sco5v6
*)
12292 # Note: We can NOT use -z defs as we might desire, because we do not
12293 # link with -lc, and that would cause any symbols used from libc to
12294 # always be unresolved, which means just about no library would
12295 # ever link correctly. If we're not using GNU ld we use -z text
12296 # though, which does catch some bad symbols but isn't as heavy-handed
12298 # For security reasons, it is highly recommended that you always
12299 # use absolute paths for naming shared libraries, and exclude the
12300 # DT_RUNPATH tag from executables and libraries. But doing so
12301 # requires that you compile everything twice, which is a pain.
12302 # So that behaviour is only enabled if SCOABSPATH is set to a
12303 # non-empty value in the environment. Most likely only useful for
12304 # creating official distributions of packages.
12305 # This is a hack until libtool officially supports absolute path
12306 # names for shared libraries.
12307 no_undefined_flag_CXX
='${wl}-z,text'
12308 allow_undefined_flag_CXX
='${wl}-z,nodefs'
12309 archive_cmds_need_lc_CXX
=no
12310 hardcode_shlibpath_var_CXX
=no
12311 hardcode_libdir_flag_spec_CXX
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12312 hardcode_libdir_separator_CXX
=':'
12313 link_all_deplibs_CXX
=yes
12314 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
12315 runpath_var
='LD_RUN_PATH'
12317 case $cc_basename in
12319 archive_cmds_CXX
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12320 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12323 archive_cmds_CXX
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12324 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12329 case $cc_basename in
12331 # NonStop-UX NCC 3.20
12332 # FIXME: insert proper C++ library support
12336 # FIXME: insert proper C++ library support
12342 # FIXME: insert proper C++ library support
12346 # FIXME: insert proper C++ library support
12350 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12351 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12352 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
12358 ## There is no encapsulation within the following macros, do not change
12359 ## the running order or otherwise move them around unless you know exactly
12360 ## what you are doing...
12362 cat > conftest.
$ac_ext <<EOF
12366 Foo (void) { a = 0; }
12372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12373 (eval $ac_compile) 2>&5
12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); }; then
12377 # Parse the compiler output and extract the necessary
12378 # objects, libraries and library flags.
12380 # Sentinel used to keep track of whether or not we are before
12381 # the conftest object file.
12382 pre_test_object_deps_done
=no
12384 # The `*' in the case matches for architectures that use `case' in
12385 # $output_verbose_cmd can trigger glob expansion during the loop
12386 # eval without this substitution.
12387 output_verbose_link_cmd
=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12389 for p
in `eval $output_verbose_link_cmd`; do
12393 # Some compilers place space between "-{L,R}" and the path.
12394 # Remove the space.
12395 if test $p = "-L" \
12396 ||
test $p = "-R"; then
12403 if test "$pre_test_object_deps_done" = no
; then
12406 # Internal compiler library paths should come after those
12407 # provided the user. The postdeps already come after the
12408 # user supplied libs so there is no need to process them.
12409 if test -z "$compiler_lib_search_path_CXX"; then
12410 compiler_lib_search_path_CXX
="${prev}${p}"
12412 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
12415 # The "-l" case would never come before the object being
12416 # linked, so don't bother handling this case.
12419 if test -z "$postdeps_CXX"; then
12420 postdeps_CXX
="${prev}${p}"
12422 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
12428 # This assumes that the test object file only shows up
12429 # once in the compiler output.
12430 if test "$p" = "conftest.$objext"; then
12431 pre_test_object_deps_done
=yes
12435 if test "$pre_test_object_deps_done" = no
; then
12436 if test -z "$predep_objects_CXX"; then
12437 predep_objects_CXX
="$p"
12439 predep_objects_CXX
="$predep_objects_CXX $p"
12442 if test -z "$postdep_objects_CXX"; then
12443 postdep_objects_CXX
="$p"
12445 postdep_objects_CXX
="$postdep_objects_CXX $p"
12450 *) ;; # Ignore the rest.
12458 echo "libtool.m4: error: problem compiling CXX test program"
12461 $rm -f confest.
$objext
12463 # PORTME: override above test on systems where it is broken
12466 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12467 # hack all around it, let's just trust "g++" to DTRT.
12468 predep_objects_CXX
=
12469 postdep_objects_CXX
=
12474 case `$CC -V 2>&1 | sed 5q` in
12478 # The more standards-conforming stlport4 library is
12479 # incompatible with the Cstd library. Avoid specifying
12480 # it if it's in CXXFLAGS. Ignore libCrun as
12481 # -library=stlport4 depends on it.
12482 case " $CXX $CXXFLAGS " in
12483 *" -library=stlport4 "*)
12484 solaris_use_stlport4
=yes
12487 if test "$solaris_use_stlport4" != yes; then
12488 postdeps_CXX
='-library=Cstd -library=Crun'
12495 case $cc_basename in
12497 # The more standards-conforming stlport4 library is
12498 # incompatible with the Cstd library. Avoid specifying
12499 # it if it's in CXXFLAGS. Ignore libCrun as
12500 # -library=stlport4 depends on it.
12501 case " $CXX $CXXFLAGS " in
12502 *" -library=stlport4 "*)
12503 solaris_use_stlport4
=yes
12507 # Adding this requires a known-good setup of shared libraries for
12508 # Sun compiler versions before 5.6, else PIC objects from an old
12509 # archive will be linked into the output, leading to subtle bugs.
12510 if test "$solaris_use_stlport4" != yes; then
12511 postdeps_CXX
='-library=Cstd -library=Crun'
12519 case " $postdeps_CXX " in
12520 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
12523 lt_prog_compiler_wl_CXX
=
12524 lt_prog_compiler_pic_CXX
=
12525 lt_prog_compiler_static_CXX
=
12527 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12528 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12530 # C++ specific cases for pic, static, wl, etc.
12531 if test "$GXX" = yes; then
12532 lt_prog_compiler_wl_CXX
='-Wl,'
12533 lt_prog_compiler_static_CXX
='-static'
12537 # All AIX code is PIC.
12538 if test "$host_cpu" = ia64
; then
12539 # AIX 5 now supports IA64 processor
12540 lt_prog_compiler_static_CXX
='-Bstatic'
12544 # FIXME: we need at least 68020 code to build shared libraries, but
12545 # adding the `-m68020' flag to GCC prevents building anything better,
12547 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
12549 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
12550 # PIC is the default for these OSes.
12552 mingw
* | cygwin
* | os2
* | pw32
*)
12553 # This hack is so that the source file can tell whether it is being
12554 # built for inclusion in a dll (and should export symbols for example).
12555 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12556 # (--disable-auto-import) libraries
12557 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
12559 darwin
* | rhapsody
*)
12560 # PIC is the default on this platform
12561 # Common symbols not allowed in MH_DYLIB files
12562 lt_prog_compiler_pic_CXX
='-fno-common'
12565 # DJGPP does not support shared libraries at all
12566 lt_prog_compiler_pic_CXX
=
12569 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12570 # Instead, we relocate shared libraries at runtime.
12573 if test -d /usr
/nec
; then
12574 lt_prog_compiler_pic_CXX
=-Kconform_pic
12578 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12579 # not for PA HP-UX.
12584 lt_prog_compiler_pic_CXX
='-fPIC'
12589 lt_prog_compiler_pic_CXX
='-fPIC'
12595 # All AIX code is PIC.
12596 if test "$host_cpu" = ia64
; then
12597 # AIX 5 now supports IA64 processor
12598 lt_prog_compiler_static_CXX
='-Bstatic'
12600 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
12604 case $cc_basename in
12606 # Green Hills C++ Compiler
12607 # _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"
12612 # PIC is the default on this platform
12613 # Common symbols not allowed in MH_DYLIB files
12614 case $cc_basename in
12616 lt_prog_compiler_pic_CXX
='-qnocommon'
12617 lt_prog_compiler_wl_CXX
='-Wl,'
12622 case $cc_basename in
12624 lt_prog_compiler_pic_CXX
='-KPIC'
12627 # Green Hills C++ Compiler
12628 lt_prog_compiler_pic_CXX
='-pic'
12634 freebsd
* | dragonfly
*)
12635 # FreeBSD uses GNU C++
12637 hpux9
* | hpux10
* | hpux11
*)
12638 case $cc_basename in
12640 lt_prog_compiler_wl_CXX
='-Wl,'
12641 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
12642 if test "$host_cpu" != ia64
; then
12643 lt_prog_compiler_pic_CXX
='+Z'
12647 lt_prog_compiler_wl_CXX
='-Wl,'
12648 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
12654 lt_prog_compiler_pic_CXX
='+Z'
12663 # This is c89, which is MS Visual C++ (no shared libs)
12664 # Anyone wants to do a port?
12666 irix5
* | irix6
* | nonstopux
*)
12667 case $cc_basename in
12669 lt_prog_compiler_wl_CXX
='-Wl,'
12670 lt_prog_compiler_static_CXX
='-non_shared'
12671 # CC pic flag -KPIC is the default.
12677 linux
* | k
*bsd
*-gnu)
12678 case $cc_basename in
12681 lt_prog_compiler_wl_CXX
='--backend -Wl,'
12682 lt_prog_compiler_pic_CXX
='-fPIC'
12686 lt_prog_compiler_wl_CXX
='-Wl,'
12687 lt_prog_compiler_pic_CXX
='-KPIC'
12688 lt_prog_compiler_static_CXX
='-static'
12691 # Portland Group C++ compiler.
12692 lt_prog_compiler_wl_CXX
='-Wl,'
12693 lt_prog_compiler_pic_CXX
='-fpic'
12694 lt_prog_compiler_static_CXX
='-Bstatic'
12698 # Make sure the PIC flag is empty. It appears that all Alpha
12699 # Linux and Compaq Tru64 Unix objects are PIC.
12700 lt_prog_compiler_pic_CXX
=
12701 lt_prog_compiler_static_CXX
='-non_shared'
12704 case `$CC -V 2>&1 | sed 5q` in
12707 lt_prog_compiler_pic_CXX
='-KPIC'
12708 lt_prog_compiler_static_CXX
='-Bstatic'
12709 lt_prog_compiler_wl_CXX
='-Qoption ld '
12720 case $cc_basename in
12722 lt_prog_compiler_pic_CXX
='-W c,exportall'
12730 osf3
* | osf4
* | osf5
*)
12731 case $cc_basename in
12733 lt_prog_compiler_wl_CXX
='--backend -Wl,'
12736 # Rational C++ 2.4.1
12737 lt_prog_compiler_pic_CXX
='-pic'
12740 # Digital/Compaq C++
12741 lt_prog_compiler_wl_CXX
='-Wl,'
12742 # Make sure the PIC flag is empty. It appears that all Alpha
12743 # Linux and Compaq Tru64 Unix objects are PIC.
12744 lt_prog_compiler_pic_CXX
=
12745 lt_prog_compiler_static_CXX
='-non_shared'
12754 case $cc_basename in
12756 # Sun C++ 4.2, 5.x and Centerline C++
12757 lt_prog_compiler_pic_CXX
='-KPIC'
12758 lt_prog_compiler_static_CXX
='-Bstatic'
12759 lt_prog_compiler_wl_CXX
='-Qoption ld '
12762 # Green Hills C++ Compiler
12763 lt_prog_compiler_pic_CXX
='-PIC'
12770 case $cc_basename in
12773 lt_prog_compiler_pic_CXX
='-pic'
12774 lt_prog_compiler_static_CXX
='-Bstatic'
12778 lt_prog_compiler_pic_CXX
='-pic'
12785 case $cc_basename in
12787 # NonStop-UX NCC 3.20
12788 lt_prog_compiler_pic_CXX
='-KPIC'
12794 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
12795 case $cc_basename in
12797 lt_prog_compiler_wl_CXX
='-Wl,'
12798 lt_prog_compiler_pic_CXX
='-KPIC'
12799 lt_prog_compiler_static_CXX
='-Bstatic'
12806 lt_prog_compiler_can_build_shared_CXX
=no
12811 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12812 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12815 # Check to make sure the PIC flag actually works.
12817 if test -n "$lt_prog_compiler_pic_CXX"; then
12819 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12820 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12821 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12822 echo $ECHO_N "(cached) $ECHO_C" >&6
12824 lt_prog_compiler_pic_works_CXX
=no
12825 ac_outfile
=conftest.
$ac_objext
12826 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12827 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
12828 # Insert the option either (1) after the last *FLAGS variable, or
12829 # (2) before a word containing "conftest.", or (3) at the end.
12830 # Note that $ac_compile itself does not contain backslashes and begins
12831 # with a dollar sign (not a hyphen), so the echo should work correctly.
12832 # The option is referenced via a variable to avoid confusing sed.
12833 lt_compile
=`echo "$ac_compile" | $SED \
12834 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12835 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12836 -e 's:$: $lt_compiler_flag:'`
12837 (eval echo "\"\$as_me:12837: $lt_compile\"" >&5)
12838 (eval "$lt_compile" 2>conftest.err
)
12840 cat conftest.err
>&5
12841 echo "$as_me:12841: \$? = $ac_status" >&5
12842 if (exit $ac_status) && test -s "$ac_outfile"; then
12843 # The compiler can only warn and ignore the option if not recognized
12844 # So say no if there are warnings other than the usual output.
12845 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
12846 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12847 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12848 lt_prog_compiler_pic_works_CXX
=yes
12854 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12855 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12857 if test x
"$lt_prog_compiler_pic_works_CXX" = xyes
; then
12858 case $lt_prog_compiler_pic_CXX in
12860 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
12863 lt_prog_compiler_pic_CXX
=
12864 lt_prog_compiler_can_build_shared_CXX
=no
12869 # For platforms which do not support PIC, -DPIC is meaningless:
12871 lt_prog_compiler_pic_CXX
=
12874 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
12879 # Check to make sure the static flag actually works.
12881 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
12882 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12883 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12884 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12885 echo $ECHO_N "(cached) $ECHO_C" >&6
12887 lt_prog_compiler_static_works_CXX
=no
12888 save_LDFLAGS
="$LDFLAGS"
12889 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
12890 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
12891 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
12892 # The linker can only warn and ignore the option if not recognized
12893 # So say no if there are warnings
12894 if test -s conftest.err
; then
12895 # Append any errors to the config.log.
12896 cat conftest.err
1>&5
12897 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
12898 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12899 if diff conftest.exp conftest.er2
>/dev
/null
; then
12900 lt_prog_compiler_static_works_CXX
=yes
12903 lt_prog_compiler_static_works_CXX
=yes
12907 LDFLAGS
="$save_LDFLAGS"
12910 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12911 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12913 if test x
"$lt_prog_compiler_static_works_CXX" = xyes
; then
12916 lt_prog_compiler_static_CXX
=
12920 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12921 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12922 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12923 echo $ECHO_N "(cached) $ECHO_C" >&6
12925 lt_cv_prog_compiler_c_o_CXX
=no
12926 $rm -r conftest
2>/dev
/null
12930 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12932 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12933 # Insert the option either (1) after the last *FLAGS variable, or
12934 # (2) before a word containing "conftest.", or (3) at the end.
12935 # Note that $ac_compile itself does not contain backslashes and begins
12936 # with a dollar sign (not a hyphen), so the echo should work correctly.
12937 lt_compile
=`echo "$ac_compile" | $SED \
12938 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12939 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12940 -e 's:$: $lt_compiler_flag:'`
12941 (eval echo "\"\$as_me:12941: $lt_compile\"" >&5)
12942 (eval "$lt_compile" 2>out
/conftest.err
)
12944 cat out
/conftest.err
>&5
12945 echo "$as_me:12945: \$? = $ac_status" >&5
12946 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12948 # The compiler can only warn and ignore the option if not recognized
12949 # So say no if there are warnings
12950 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
12951 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12952 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12953 lt_cv_prog_compiler_c_o_CXX
=yes
12958 # SGI C++ compiler will create directory out/ii_files/ for
12959 # template instantiation
12960 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
12961 $rm out
/* && rmdir out
12967 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12968 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12971 hard_links
="nottested"
12972 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
12973 # do not overwrite the value of need_locks provided by the user
12974 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12975 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12978 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12980 ln conftest.a conftest.b
2>&5 || hard_links
=no
12981 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12982 { echo "$as_me:$LINENO: result: $hard_links" >&5
12983 echo "${ECHO_T}$hard_links" >&6; }
12984 if test "$hard_links" = no
; then
12985 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12986 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12993 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12994 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12996 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12999 # If we're using GNU nm, then we don't want the "-C" option.
13000 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13001 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
13002 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'
13004 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'
13008 export_symbols_cmds_CXX
="$ltdll_cmds"
13011 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'
13014 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13018 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13019 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13020 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
13023 # Do we need to explicitly link libc?
13025 case "x$archive_cmds_need_lc_CXX" in
13027 # Assume -lc should be added
13028 archive_cmds_need_lc_CXX
=yes
13030 if test "$enable_shared" = yes && test "$GCC" = yes; then
13031 case $archive_cmds_CXX in
13033 # FIXME: we may have to deal with multi-command sequences.
13036 # Test whether the compiler implicitly links with -lc since on some
13037 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13038 # to ld, don't add -lc before -lgcc.
13039 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13040 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13042 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13045 (eval $ac_compile) 2>&5
13047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048 (exit $ac_status); } 2>conftest.err
; then
13051 libobjs
=conftest.
$ac_objext
13053 wl
=$lt_prog_compiler_wl_CXX
13054 pic_flag
=$lt_prog_compiler_pic_CXX
13060 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
13061 allow_undefined_flag_CXX
=
13062 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13063 (eval $archive_cmds_CXX 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
13065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066 (exit $ac_status); }
13068 archive_cmds_need_lc_CXX
=no
13070 archive_cmds_need_lc_CXX
=yes
13072 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
13074 cat conftest.err
1>&5
13077 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13078 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13085 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13086 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13087 library_names_spec
=
13088 libname_spec
='lib$name'
13092 postuninstall_cmds
=
13096 shlibpath_overrides_runpath
=unknown
13098 dynamic_linker
="$host_os ld.so"
13099 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
13101 need_lib_prefix
=unknown
13102 hardcode_into_libs
=no
13104 # when you set need_version to no, make sure it does not cause -set_version
13105 # flags to be left without arguments
13106 need_version
=unknown
13111 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
13112 shlibpath_var
=LIBPATH
13114 # AIX 3 has no versioning support, so we append a major version to the name.
13115 soname_spec
='${libname}${release}${shared_ext}$major'
13122 hardcode_into_libs
=yes
13123 if test "$host_cpu" = ia64
; then
13124 # AIX 5 supports IA64
13125 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13126 shlibpath_var
=LD_LIBRARY_PATH
13128 # With GCC up to 2.95.x, collect2 would create an import file
13129 # for dependence libraries. The import file would start with
13130 # the line `#! .'. This would cause the generated library to
13131 # depend on `.', always an invalid library. This was fixed in
13132 # development snapshots of GCC prior to 3.0.
13134 aix4 | aix4.
[01] | aix4.
[01].
*)
13135 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13137 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
13140 can_build_shared
=no
13144 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13145 # soname into executable. Probably we can add versioning support to
13146 # collect2, so additional links can be useful in future.
13147 if test "$aix_use_runtimelinking" = yes; then
13148 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13149 # instead of lib<name>.a to let people know that these are not
13150 # typical AIX shared libraries.
13151 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13153 # We preserve .a as extension for shared libraries through AIX4.2
13154 # and later when we are not doing run time linking.
13155 library_names_spec
='${libname}${release}.a $libname.a'
13156 soname_spec
='${libname}${release}${shared_ext}$major'
13158 shlibpath_var
=LIBPATH
13163 library_names_spec
='$libname.ixlibrary $libname.a'
13164 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13165 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'
13169 library_names_spec
='${libname}${shared_ext}'
13170 dynamic_linker
="$host_os ld.so"
13171 shlibpath_var
=LIBRARY_PATH
13177 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13178 soname_spec
='${libname}${release}${shared_ext}$major'
13179 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
13180 shlibpath_var
=LD_LIBRARY_PATH
13181 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13182 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
13183 # the default ld.so.conf also contains /usr/contrib/lib and
13184 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13185 # libtool to hard-code these into programs
13188 cygwin
* | mingw
* | pw32
*)
13189 version_type
=windows
13194 case $GCC,$host_os in
13195 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
13196 library_names_spec
='$libname.dll.a'
13197 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13198 postinstall_cmds
='base_file=`basename \${file}`~
13199 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13200 dldir=$destdir/`dirname \$dlpath`~
13201 test -d \$dldir || mkdir -p \$dldir~
13202 $install_prog $dir/$dlname \$dldir/$dlname~
13203 chmod a+x \$dldir/$dlname'
13204 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13205 dlpath=$dir/\$dldll~
13207 shlibpath_overrides_runpath
=yes
13211 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13212 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13213 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
13216 # MinGW DLLs use traditional 'lib' prefix
13217 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13218 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13219 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
13220 # It is most probably a Windows format PATH printed by
13221 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13222 # path with ; separators, and with drive letters. We can handle the
13223 # drive letters (cygwin fileutils understands them), so leave them,
13224 # especially as we might pass files found there to a mingw objdump,
13225 # which wouldn't understand a cygwinified path. Ahh.
13226 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13228 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13232 # pw32 DLLs use 'pw' prefix rather than 'lib'
13233 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13239 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13242 dynamic_linker
='Win32 ld.exe'
13243 # FIXME: first we should search . and the directory the executable is in
13247 darwin
* | rhapsody
*)
13248 dynamic_linker
="$host_os dyld"
13249 version_type
=darwin
13252 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13253 soname_spec
='${libname}${release}${major}$shared_ext'
13254 shlibpath_overrides_runpath
=yes
13255 shlibpath_var
=DYLD_LIBRARY_PATH
13256 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
13258 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
13265 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13266 soname_spec
='${libname}${release}${shared_ext}$major'
13267 shlibpath_var
=LD_LIBRARY_PATH
13274 freebsd
* | dragonfly
*)
13275 # DragonFly does not have aout. When/if they implement a new
13276 # versioning mechanism, adjust this.
13277 if test -x /usr
/bin
/objformat
; then
13278 objformat
=`/usr/bin/objformat`
13281 freebsd
[123]*) objformat
=aout
;;
13282 *) objformat
=elf
;;
13285 version_type
=freebsd-
$objformat
13286 case $version_type in
13288 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13293 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13297 shlibpath_var
=LD_LIBRARY_PATH
13300 shlibpath_overrides_runpath
=yes
13302 freebsd3.
[01]* | freebsdelf3.
[01]*)
13303 shlibpath_overrides_runpath
=yes
13304 hardcode_into_libs
=yes
13306 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
13307 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
13308 shlibpath_overrides_runpath
=no
13309 hardcode_into_libs
=yes
13311 *) # from 4.6 on, and DragonFly
13312 shlibpath_overrides_runpath
=yes
13313 hardcode_into_libs
=yes
13322 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13323 soname_spec
='${libname}${release}${shared_ext}$major'
13324 shlibpath_var
=LD_LIBRARY_PATH
13325 hardcode_into_libs
=yes
13328 hpux9
* | hpux10
* | hpux11
*)
13329 # Give a soname corresponding to the major version so that dld.sl refuses to
13330 # link against other versions.
13337 hardcode_into_libs
=yes
13338 dynamic_linker
="$host_os dld.so"
13339 shlibpath_var
=LD_LIBRARY_PATH
13340 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
13341 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13342 soname_spec
='${libname}${release}${shared_ext}$major'
13343 if test "X$HPUX_IA64_MODE" = X32
; then
13344 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13346 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
13348 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
13352 hardcode_into_libs
=yes
13353 dynamic_linker
="$host_os dld.sl"
13354 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
13355 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
13356 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13357 soname_spec
='${libname}${release}${shared_ext}$major'
13358 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13359 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
13363 dynamic_linker
="$host_os dld.sl"
13364 shlibpath_var
=SHLIB_PATH
13365 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
13366 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13367 soname_spec
='${libname}${release}${shared_ext}$major'
13370 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13371 postinstall_cmds
='chmod 555 $lib'
13378 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13379 soname_spec
='${libname}${release}${shared_ext}$major'
13380 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
13381 shlibpath_var
=LD_LIBRARY_PATH
13382 shlibpath_overrides_runpath
=no
13383 hardcode_into_libs
=yes
13386 irix5
* | irix6
* | nonstopux
*)
13388 nonstopux
*) version_type
=nonstopux
;;
13390 if test "$lt_cv_prog_gnu_ld" = yes; then
13398 soname_spec
='${libname}${release}${shared_ext}$major'
13399 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13401 irix5
* | nonstopux
*)
13402 libsuff
= shlibsuff
=
13405 case $LD in # libtool.m4 will add one of these switches to LD
13406 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
13407 libsuff
= shlibsuff
= libmagic
=32-bit;;
13408 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
13409 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
13410 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
13411 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
13412 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
13416 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
13417 shlibpath_overrides_runpath
=no
13418 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13419 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
13420 hardcode_into_libs
=yes
13423 # No shared lib support for Linux oldld, aout, or coff.
13424 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
13428 # This must be Linux ELF.
13429 linux
* | k
*bsd
*-gnu)
13433 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13434 soname_spec
='${libname}${release}${shared_ext}$major'
13435 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13436 shlibpath_var
=LD_LIBRARY_PATH
13437 shlibpath_overrides_runpath
=no
13438 # This implies no fast_install, which is unacceptable.
13439 # Some rework will be needed to allow for fast_install
13440 # before this can be enabled.
13441 hardcode_into_libs
=yes
13442 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13443 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
13445 # Append ld.so.conf contents to the search path
13446 if test -f /etc
/ld.so.conf
; then
13447 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' ' '`
13448 sys_lib_dlsearch_path_spec
="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13451 # We used to test for /lib/ld.so.1 and disable shared libraries on
13452 # powerpc, because MkLinux only supported shared libraries with the
13453 # GNU dynamic linker. Since this was broken with cross compilers,
13454 # most powerpc-linux boxes support dynamic linking these days and
13455 # people can always --disable-shared, the test was removed, and we
13456 # assume the GNU/Linux dynamic linker is in use.
13457 dynamic_linker
='GNU/Linux ld.so'
13464 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
13465 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13466 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13467 dynamic_linker
='NetBSD (a.out) ld.so'
13469 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13470 soname_spec
='${libname}${release}${shared_ext}$major'
13471 dynamic_linker
='NetBSD ld.elf_so'
13473 shlibpath_var
=LD_LIBRARY_PATH
13474 shlibpath_overrides_runpath
=yes
13475 hardcode_into_libs
=yes
13480 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13481 shlibpath_var
=LD_LIBRARY_PATH
13482 shlibpath_overrides_runpath
=yes
13489 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13490 soname_spec
='${libname}${release}${shared_ext}$major'
13491 shlibpath_var
=LD_LIBRARY_PATH
13492 shlibpath_overrides_runpath
=yes
13497 sys_lib_dlsearch_path_spec
="/usr/lib"
13499 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13501 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
13502 *) need_version
=no
;;
13504 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13505 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13506 shlibpath_var
=LD_LIBRARY_PATH
13507 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13509 openbsd2.
[89] | openbsd2.
[89].
*)
13510 shlibpath_overrides_runpath
=no
13513 shlibpath_overrides_runpath
=yes
13517 shlibpath_overrides_runpath
=yes
13522 libname_spec
='$name'
13525 library_names_spec
='$libname${shared_ext} $libname.a'
13526 dynamic_linker
='OS/2 ld.exe'
13527 shlibpath_var
=LIBPATH
13530 osf3
* | osf4
* | osf5
*)
13534 soname_spec
='${libname}${release}${shared_ext}$major'
13535 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13536 shlibpath_var
=LD_LIBRARY_PATH
13537 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13538 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
13549 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13550 soname_spec
='${libname}${release}${shared_ext}$major'
13551 shlibpath_var
=LD_LIBRARY_PATH
13552 shlibpath_overrides_runpath
=yes
13553 hardcode_into_libs
=yes
13554 # ldd complains unless libraries are executable
13555 postinstall_cmds
='chmod +x $lib'
13560 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13561 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13562 shlibpath_var
=LD_LIBRARY_PATH
13563 shlibpath_overrides_runpath
=yes
13564 if test "$with_gnu_ld" = yes; then
13572 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13573 soname_spec
='${libname}${release}${shared_ext}$major'
13574 shlibpath_var
=LD_LIBRARY_PATH
13575 case $host_vendor in
13577 shlibpath_overrides_runpath
=no
13579 export_dynamic_flag_spec
='${wl}-Blargedynsym'
13580 runpath_var
=LD_RUN_PATH
13588 shlibpath_overrides_runpath
=no
13589 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
13595 if test -d /usr
/nec
;then
13597 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13598 soname_spec
='$libname${shared_ext}.$major'
13599 shlibpath_var
=LD_LIBRARY_PATH
13603 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
13604 version_type
=freebsd-elf
13607 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13608 soname_spec
='${libname}${release}${shared_ext}$major'
13609 shlibpath_var
=LD_LIBRARY_PATH
13610 hardcode_into_libs
=yes
13611 if test "$with_gnu_ld" = yes; then
13612 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13613 shlibpath_overrides_runpath
=no
13615 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
13616 shlibpath_overrides_runpath
=yes
13619 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
13623 sys_lib_dlsearch_path_spec
='/usr/lib'
13628 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13629 soname_spec
='${libname}${release}${shared_ext}$major'
13630 shlibpath_var
=LD_LIBRARY_PATH
13637 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13638 echo "${ECHO_T}$dynamic_linker" >&6; }
13639 test "$dynamic_linker" = no
&& can_build_shared
=no
13641 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
13642 if test "$GCC" = yes; then
13643 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13646 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13647 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13648 hardcode_action_CXX
=
13649 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13650 test -n "$runpath_var_CXX" || \
13651 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13653 # We can hardcode non-existant directories.
13654 if test "$hardcode_direct_CXX" != no
&&
13655 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13656 # have to relink, otherwise we might link with an installed library
13657 # when we should be linking with a yet-to-be-installed one
13658 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13659 test "$hardcode_minus_L_CXX" != no
; then
13660 # Linking always hardcodes the temporary library directory.
13661 hardcode_action_CXX
=relink
13663 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13664 hardcode_action_CXX
=immediate
13667 # We cannot hardcode anything, or else we can only hardcode existing
13669 hardcode_action_CXX
=unsupported
13671 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13672 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13674 if test "$hardcode_action_CXX" = relink
; then
13675 # Fast installation is not supported
13676 enable_fast_install
=no
13677 elif test "$shlibpath_overrides_runpath" = yes ||
13678 test "$enable_shared" = no
; then
13679 # Fast installation is not necessary
13680 enable_fast_install
=needless
13684 # The else clause should only fire when bootstrapping the
13685 # libtool distribution, otherwise you forgot to ship ltmain.sh
13686 # with your package, and you will get complaints that there are
13687 # no rules to generate ltmain.sh.
13688 if test -f "$ltmain"; then
13689 # See if we are running on zsh, and set the options which allow our commands through
13690 # without removal of \ escapes.
13691 if test -n "${ZSH_VERSION+set}" ; then
13692 setopt NO_GLOB_SUBST
13694 # Now quote all the things that may contain metacharacters while being
13695 # careful not to overquote the AC_SUBSTed values. We take copies of the
13696 # variables and quote the copies for generation of the libtool script.
13697 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13699 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13700 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13701 deplibs_check_method reload_flag reload_cmds need_locks \
13702 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13703 lt_cv_sys_global_symbol_to_c_name_address \
13704 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13705 old_postinstall_cmds old_postuninstall_cmds \
13709 lt_prog_compiler_wl_CXX \
13710 lt_prog_compiler_pic_CXX \
13711 lt_prog_compiler_static_CXX \
13712 lt_prog_compiler_no_builtin_flag_CXX \
13713 export_dynamic_flag_spec_CXX \
13714 thread_safe_flag_spec_CXX \
13715 whole_archive_flag_spec_CXX \
13716 enable_shared_with_static_runtimes_CXX \
13717 old_archive_cmds_CXX \
13718 old_archive_from_new_cmds_CXX \
13719 predep_objects_CXX \
13720 postdep_objects_CXX \
13723 compiler_lib_search_path_CXX \
13725 archive_expsym_cmds_CXX \
13726 postinstall_cmds_CXX \
13727 postuninstall_cmds_CXX \
13728 old_archive_from_expsyms_cmds_CXX \
13729 allow_undefined_flag_CXX \
13730 no_undefined_flag_CXX \
13731 export_symbols_cmds_CXX \
13732 hardcode_libdir_flag_spec_CXX \
13733 hardcode_libdir_flag_spec_ld_CXX \
13734 hardcode_libdir_separator_CXX \
13735 hardcode_automatic_CXX \
13737 module_expsym_cmds_CXX \
13738 lt_cv_prog_compiler_c_o_CXX \
13739 fix_srcfile_path_CXX \
13740 exclude_expsyms_CXX \
13741 include_expsyms_CXX
; do
13744 old_archive_cmds_CXX | \
13745 old_archive_from_new_cmds_CXX | \
13746 archive_cmds_CXX | \
13747 archive_expsym_cmds_CXX | \
13748 module_cmds_CXX | \
13749 module_expsym_cmds_CXX | \
13750 old_archive_from_expsyms_cmds_CXX | \
13751 export_symbols_cmds_CXX | \
13752 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13753 postinstall_cmds | postuninstall_cmds | \
13754 old_postinstall_cmds | old_postuninstall_cmds | \
13755 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
13756 # Double-quote double-evaled strings.
13757 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13760 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13766 *'\$0 --fallback-echo"')
13767 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13773 cat <<__EOF__ >> "$cfgfile"
13774 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13776 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13778 # Shell to use when invoking shell scripts.
13781 # Whether or not to build shared libraries.
13782 build_libtool_libs=$enable_shared
13784 # Whether or not to build static libraries.
13785 build_old_libs=$enable_static
13787 # Whether or not to add -lc for building shared libraries.
13788 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13790 # Whether or not to disallow shared libs when runtime libs are static
13791 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13793 # Whether or not to optimize for fast installation.
13794 fast_install=$enable_fast_install
13797 host_alias=$host_alias
13801 # The build system.
13802 build_alias=$build_alias
13806 # An echo program that does not interpret backslashes.
13811 AR_FLAGS=$lt_AR_FLAGS
13816 # LTCC compiler flags.
13817 LTCFLAGS=$lt_LTCFLAGS
13819 # A language-specific compiler.
13820 CC=$lt_compiler_CXX
13822 # Is the compiler the GNU C compiler?
13828 # The linker used to build libraries.
13831 # Whether we need hard or soft links.
13834 # A BSD-compatible nm program.
13837 # A symbol stripping program
13840 # Used to examine libraries when file_magic_cmd begins "file"
13841 MAGIC_CMD=$MAGIC_CMD
13843 # Used on cygwin: DLL creation program.
13846 # Used on cygwin: object dumper.
13849 # Used on cygwin: assembler.
13852 # The name of the directory that contains temporary libtool files.
13855 # How to create reloadable object files.
13856 reload_flag=$lt_reload_flag
13857 reload_cmds=$lt_reload_cmds
13859 # How to pass a linker flag through the compiler.
13860 wl=$lt_lt_prog_compiler_wl_CXX
13862 # Object file suffix (normally "o").
13863 objext="$ac_objext"
13865 # Old archive suffix (normally "a").
13868 # Shared library suffix (normally ".so").
13869 shrext_cmds='$shrext_cmds'
13871 # Executable file suffix (normally "").
13874 # Additional compiler flags for building library objects.
13875 pic_flag=$lt_lt_prog_compiler_pic_CXX
13878 # What is the maximum length of a command?
13879 max_cmd_len=$lt_cv_sys_max_cmd_len
13881 # Does compiler simultaneously support -c and -o options?
13882 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13884 # Must we lock files when doing compilation?
13885 need_locks=$lt_need_locks
13887 # Do we need the lib prefix for modules?
13888 need_lib_prefix=$need_lib_prefix
13890 # Do we need a version for libraries?
13891 need_version=$need_version
13893 # Whether dlopen is supported.
13894 dlopen_support=$enable_dlopen
13896 # Whether dlopen of programs is supported.
13897 dlopen_self=$enable_dlopen_self
13899 # Whether dlopen of statically linked programs is supported.
13900 dlopen_self_static=$enable_dlopen_self_static
13902 # Compiler flag to prevent dynamic linking.
13903 link_static_flag=$lt_lt_prog_compiler_static_CXX
13905 # Compiler flag to turn off builtin functions.
13906 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13908 # Compiler flag to allow reflexive dlopens.
13909 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13911 # Compiler flag to generate shared objects directly from archives.
13912 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13914 # Compiler flag to generate thread-safe objects.
13915 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13917 # Library versioning type.
13918 version_type=$version_type
13920 # Format of library name prefix.
13921 libname_spec=$lt_libname_spec
13923 # List of archive names. First name is the real one, the rest are links.
13924 # The last name is the one that the linker finds with -lNAME.
13925 library_names_spec=$lt_library_names_spec
13927 # The coded name of the library, if different from the real name.
13928 soname_spec=$lt_soname_spec
13930 # Commands used to build and install an old-style archive.
13932 old_archive_cmds=$lt_old_archive_cmds_CXX
13933 old_postinstall_cmds=$lt_old_postinstall_cmds
13934 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13936 # Create an old-style archive from a shared archive.
13937 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13939 # Create a temporary old-style archive to link instead of a shared archive.
13940 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13942 # Commands used to build and install a shared archive.
13943 archive_cmds=$lt_archive_cmds_CXX
13944 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13945 postinstall_cmds=$lt_postinstall_cmds
13946 postuninstall_cmds=$lt_postuninstall_cmds
13948 # Commands used to build a loadable module (assumed same as above if empty)
13949 module_cmds=$lt_module_cmds_CXX
13950 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13952 # Commands to strip libraries.
13953 old_striplib=$lt_old_striplib
13954 striplib=$lt_striplib
13956 # Dependencies to place before the objects being linked to create a
13958 predep_objects=$lt_predep_objects_CXX
13960 # Dependencies to place after the objects being linked to create a
13962 postdep_objects=$lt_postdep_objects_CXX
13964 # Dependencies to place before the objects being linked to create a
13966 predeps=$lt_predeps_CXX
13968 # Dependencies to place after the objects being linked to create a
13970 postdeps=$lt_postdeps_CXX
13972 # The library search path used internally by the compiler when linking
13973 # a shared library.
13974 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13976 # Method to check whether dependent libraries are shared objects.
13977 deplibs_check_method=$lt_deplibs_check_method
13979 # Command to use when deplibs_check_method == file_magic.
13980 file_magic_cmd=$lt_file_magic_cmd
13982 # Flag that allows shared libraries with undefined symbols to be built.
13983 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13985 # Flag that forces no undefined symbols.
13986 no_undefined_flag=$lt_no_undefined_flag_CXX
13988 # Commands used to finish a libtool library installation in a directory.
13989 finish_cmds=$lt_finish_cmds
13991 # Same as above, but a single script fragment to be evaled but not shown.
13992 finish_eval=$lt_finish_eval
13994 # Take the output of nm and produce a listing of raw symbols and C names.
13995 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13997 # Transform the output of nm in a proper C declaration
13998 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14000 # Transform the output of nm in a C name address pair
14001 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14003 # This is the shared library runtime path variable.
14004 runpath_var=$runpath_var
14006 # This is the shared library path variable.
14007 shlibpath_var=$shlibpath_var
14009 # Is shlibpath searched before the hard-coded library search path?
14010 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14012 # How to hardcode a shared library path into an executable.
14013 hardcode_action=$hardcode_action_CXX
14015 # Whether we should hardcode library paths into libraries.
14016 hardcode_into_libs=$hardcode_into_libs
14018 # Flag to hardcode \$libdir into a binary during linking.
14019 # This must work even if \$libdir does not exist.
14020 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14022 # If ld is used when linking, flag to hardcode \$libdir into
14023 # a binary during linking. This must work even if \$libdir does
14025 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14027 # Whether we need a single -rpath flag with a separated argument.
14028 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14030 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14031 # resulting binary.
14032 hardcode_direct=$hardcode_direct_CXX
14034 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14035 # resulting binary.
14036 hardcode_minus_L=$hardcode_minus_L_CXX
14038 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14039 # the resulting binary.
14040 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14042 # Set to yes if building a shared library automatically hardcodes DIR into the library
14043 # and all subsequent libraries and executables linked against it.
14044 hardcode_automatic=$hardcode_automatic_CXX
14046 # Variables whose values should be saved in libtool wrapper scripts and
14047 # restored at relink time.
14048 variables_saved_for_relink="$variables_saved_for_relink"
14050 # Whether libtool must link a program against all its dependency libraries.
14051 link_all_deplibs=$link_all_deplibs_CXX
14053 # Compile-time system search path for libraries
14054 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14056 # Run-time system search path for libraries
14057 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14059 # Fix the shell variable \$srcfile for the compiler.
14060 fix_srcfile_path=$lt_fix_srcfile_path
14062 # Set to yes if exported symbols are required.
14063 always_export_symbols=$always_export_symbols_CXX
14065 # The commands to list exported symbols.
14066 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14068 # The commands to extract the exported symbol list from a shared archive.
14069 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14071 # Symbols that should not be listed in the preloaded symbols.
14072 exclude_expsyms=$lt_exclude_expsyms_CXX
14074 # Symbols that must always be exported.
14075 include_expsyms=$lt_include_expsyms_CXX
14077 # ### END LIBTOOL TAG CONFIG: $tagname
14083 # If there is no Makefile yet, we rely on a make rule to execute
14084 # `config.status --recheck' to rerun these tests and create the
14085 # libtool script then.
14086 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14087 if test -f "$ltmain_in"; then
14088 test -f Makefile
&& make "$ltmain"
14094 ac_cpp
='$CPP $CPPFLAGS'
14095 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14096 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14097 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14103 with_gnu_ldcxx
=$with_gnu_ld
14104 with_gnu_ld
=$lt_save_with_gnu_ld
14105 lt_cv_path_LDCXX
=$lt_cv_path_LD
14106 lt_cv_path_LD
=$lt_save_path_LD
14107 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
14108 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
14116 if test -n "$F77" && test "X$F77" != "Xno"; then
14119 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14120 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14121 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
14124 archive_cmds_need_lc_F77
=no
14125 allow_undefined_flag_F77
=
14126 always_export_symbols_F77
=no
14127 archive_expsym_cmds_F77
=
14128 export_dynamic_flag_spec_F77
=
14129 hardcode_direct_F77
=no
14130 hardcode_libdir_flag_spec_F77
=
14131 hardcode_libdir_flag_spec_ld_F77
=
14132 hardcode_libdir_separator_F77
=
14133 hardcode_minus_L_F77
=no
14134 hardcode_automatic_F77
=no
14136 module_expsym_cmds_F77
=
14137 link_all_deplibs_F77
=unknown
14138 old_archive_cmds_F77
=$old_archive_cmds
14139 no_undefined_flag_F77
=
14140 whole_archive_flag_spec_F77
=
14141 enable_shared_with_static_runtimes_F77
=no
14143 # Source file extension for f77 test sources.
14146 # Object file extension for compiled f77 test sources.
14150 # Code to be used in simple compile tests
14151 lt_simple_compile_test_code
="\
14157 # Code to be used in simple link tests
14158 lt_simple_link_test_code
="\
14163 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14165 # If no C compiler was specified, use CC.
14168 # If no C compiler flags were specified, use CFLAGS.
14169 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
14171 # Allow CC to be a program name with arguments.
14175 # save warnings/boilerplate of simple test code
14176 ac_outfile
=conftest.
$ac_objext
14177 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
14178 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
14179 _lt_compiler_boilerplate
=`cat conftest.err`
14182 ac_outfile
=conftest.
$ac_objext
14183 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
14184 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
14185 _lt_linker_boilerplate
=`cat conftest.err`
14189 # Allow CC to be a program name with arguments.
14194 for cc_temp
in $compiler""; do
14196 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
14197 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
14202 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14205 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14206 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14207 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14208 echo "${ECHO_T}$can_build_shared" >&6; }
14210 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14211 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14212 test "$can_build_shared" = "no" && enable_shared
=no
14214 # On AIX, shared libraries and static libraries use the same namespace, and
14215 # are all built from PIC.
14218 test "$enable_shared" = yes && enable_static
=no
14219 if test -n "$RANLIB"; then
14220 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
14221 postinstall_cmds
='$RANLIB $lib'
14225 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
14226 test "$enable_shared" = yes && enable_static
=no
14230 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14231 echo "${ECHO_T}$enable_shared" >&6; }
14233 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14234 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14235 # Make sure either enable_shared or enable_static is yes.
14236 test "$enable_shared" = yes || enable_static
=yes
14237 { echo "$as_me:$LINENO: result: $enable_static" >&5
14238 echo "${ECHO_T}$enable_static" >&6; }
14243 lt_prog_compiler_wl_F77
=
14244 lt_prog_compiler_pic_F77
=
14245 lt_prog_compiler_static_F77
=
14247 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14248 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14250 if test "$GCC" = yes; then
14251 lt_prog_compiler_wl_F77
='-Wl,'
14252 lt_prog_compiler_static_F77
='-static'
14256 # All AIX code is PIC.
14257 if test "$host_cpu" = ia64
; then
14258 # AIX 5 now supports IA64 processor
14259 lt_prog_compiler_static_F77
='-Bstatic'
14264 # FIXME: we need at least 68020 code to build shared libraries, but
14265 # adding the `-m68020' flag to GCC prevents building anything better,
14267 lt_prog_compiler_pic_F77
='-m68020 -resident32 -malways-restore-a4'
14270 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
14271 # PIC is the default for these OSes.
14274 mingw
* | cygwin
* | pw32
* | os2
*)
14275 # This hack is so that the source file can tell whether it is being
14276 # built for inclusion in a dll (and should export symbols for example).
14277 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14278 # (--disable-auto-import) libraries
14279 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
14282 darwin
* | rhapsody
*)
14283 # PIC is the default on this platform
14284 # Common symbols not allowed in MH_DYLIB files
14285 lt_prog_compiler_pic_F77
='-fno-common'
14289 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14290 # Instead, we relocate shared libraries at runtime.
14294 # Just because we use GCC doesn't mean we suddenly get shared libraries
14295 # on systems that don't support them.
14296 lt_prog_compiler_can_build_shared_F77
=no
14301 if test -d /usr
/nec
; then
14302 lt_prog_compiler_pic_F77
=-Kconform_pic
14307 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14308 # not for PA HP-UX.
14314 lt_prog_compiler_pic_F77
='-fPIC'
14320 lt_prog_compiler_pic_F77
='-fPIC'
14324 # PORTME Check for flag to pass linker flags through the system compiler.
14327 lt_prog_compiler_wl_F77
='-Wl,'
14328 if test "$host_cpu" = ia64
; then
14329 # AIX 5 now supports IA64 processor
14330 lt_prog_compiler_static_F77
='-Bstatic'
14332 lt_prog_compiler_static_F77
='-bnso -bI:/lib/syscalls.exp'
14336 # PIC is the default on this platform
14337 # Common symbols not allowed in MH_DYLIB files
14338 case $cc_basename in
14340 lt_prog_compiler_pic_F77
='-qnocommon'
14341 lt_prog_compiler_wl_F77
='-Wl,'
14346 mingw
* | cygwin
* | pw32
* | os2
*)
14347 # This hack is so that the source file can tell whether it is being
14348 # built for inclusion in a dll (and should export symbols for example).
14349 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
14352 hpux9
* | hpux10
* | hpux11
*)
14353 lt_prog_compiler_wl_F77
='-Wl,'
14354 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14355 # not for PA HP-UX.
14361 lt_prog_compiler_pic_F77
='+Z'
14364 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14365 lt_prog_compiler_static_F77
='${wl}-a ${wl}archive'
14368 irix5
* | irix6
* | nonstopux
*)
14369 lt_prog_compiler_wl_F77
='-Wl,'
14370 # PIC (with -KPIC) is the default.
14371 lt_prog_compiler_static_F77
='-non_shared'
14375 lt_prog_compiler_pic_F77
='-KPIC'
14376 lt_prog_compiler_static_F77
='-Bstatic'
14379 linux
* | k
*bsd
*-gnu)
14380 case $cc_basename in
14382 lt_prog_compiler_wl_F77
='-Wl,'
14383 lt_prog_compiler_pic_F77
='-KPIC'
14384 lt_prog_compiler_static_F77
='-static'
14386 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
14387 # Portland Group compilers (*not* the Pentium gcc compiler,
14388 # which looks to be a dead project)
14389 lt_prog_compiler_wl_F77
='-Wl,'
14390 lt_prog_compiler_pic_F77
='-fpic'
14391 lt_prog_compiler_static_F77
='-Bstatic'
14394 lt_prog_compiler_wl_F77
='-Wl,'
14395 # All Alpha code is PIC.
14396 lt_prog_compiler_static_F77
='-non_shared'
14399 case `$CC -V 2>&1 | sed 5q` in
14402 lt_prog_compiler_pic_F77
='-KPIC'
14403 lt_prog_compiler_static_F77
='-Bstatic'
14404 lt_prog_compiler_wl_F77
='-Wl,'
14407 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14408 lt_prog_compiler_pic_F77
='-KPIC'
14409 lt_prog_compiler_static_F77
='-Bstatic'
14410 lt_prog_compiler_wl_F77
=''
14417 osf3
* | osf4
* | osf5
*)
14418 lt_prog_compiler_wl_F77
='-Wl,'
14419 # All OSF/1 code is PIC.
14420 lt_prog_compiler_static_F77
='-non_shared'
14424 lt_prog_compiler_static_F77
='-non_shared'
14428 lt_prog_compiler_pic_F77
='-KPIC'
14429 lt_prog_compiler_static_F77
='-Bstatic'
14430 case $cc_basename in
14431 f77
* | f90
* | f95
*)
14432 lt_prog_compiler_wl_F77
='-Qoption ld ';;
14434 lt_prog_compiler_wl_F77
='-Wl,';;
14439 lt_prog_compiler_wl_F77
='-Qoption ld '
14440 lt_prog_compiler_pic_F77
='-PIC'
14441 lt_prog_compiler_static_F77
='-Bstatic'
14444 sysv4 | sysv4.2uw2
* | sysv4.3
*)
14445 lt_prog_compiler_wl_F77
='-Wl,'
14446 lt_prog_compiler_pic_F77
='-KPIC'
14447 lt_prog_compiler_static_F77
='-Bstatic'
14451 if test -d /usr
/nec
;then
14452 lt_prog_compiler_pic_F77
='-Kconform_pic'
14453 lt_prog_compiler_static_F77
='-Bstatic'
14457 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
14458 lt_prog_compiler_wl_F77
='-Wl,'
14459 lt_prog_compiler_pic_F77
='-KPIC'
14460 lt_prog_compiler_static_F77
='-Bstatic'
14464 lt_prog_compiler_wl_F77
='-Wl,'
14465 lt_prog_compiler_can_build_shared_F77
=no
14469 lt_prog_compiler_pic_F77
='-pic'
14470 lt_prog_compiler_static_F77
='-Bstatic'
14474 lt_prog_compiler_can_build_shared_F77
=no
14479 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14480 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14483 # Check to make sure the PIC flag actually works.
14485 if test -n "$lt_prog_compiler_pic_F77"; then
14487 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14488 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14489 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14490 echo $ECHO_N "(cached) $ECHO_C" >&6
14492 lt_prog_compiler_pic_works_F77
=no
14493 ac_outfile
=conftest.
$ac_objext
14494 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14495 lt_compiler_flag
="$lt_prog_compiler_pic_F77"
14496 # Insert the option either (1) after the last *FLAGS variable, or
14497 # (2) before a word containing "conftest.", or (3) at the end.
14498 # Note that $ac_compile itself does not contain backslashes and begins
14499 # with a dollar sign (not a hyphen), so the echo should work correctly.
14500 # The option is referenced via a variable to avoid confusing sed.
14501 lt_compile
=`echo "$ac_compile" | $SED \
14502 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14503 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14504 -e 's:$: $lt_compiler_flag:'`
14505 (eval echo "\"\$as_me:14505: $lt_compile\"" >&5)
14506 (eval "$lt_compile" 2>conftest.err
)
14508 cat conftest.err
>&5
14509 echo "$as_me:14509: \$? = $ac_status" >&5
14510 if (exit $ac_status) && test -s "$ac_outfile"; then
14511 # The compiler can only warn and ignore the option if not recognized
14512 # So say no if there are warnings other than the usual output.
14513 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
14514 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
14515 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
14516 lt_prog_compiler_pic_works_F77
=yes
14522 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14523 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14525 if test x
"$lt_prog_compiler_pic_works_F77" = xyes
; then
14526 case $lt_prog_compiler_pic_F77 in
14528 *) lt_prog_compiler_pic_F77
=" $lt_prog_compiler_pic_F77" ;;
14531 lt_prog_compiler_pic_F77
=
14532 lt_prog_compiler_can_build_shared_F77
=no
14537 # For platforms which do not support PIC, -DPIC is meaningless:
14539 lt_prog_compiler_pic_F77
=
14542 lt_prog_compiler_pic_F77
="$lt_prog_compiler_pic_F77"
14547 # Check to make sure the static flag actually works.
14549 wl
=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_F77\"
14550 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14551 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14552 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14553 echo $ECHO_N "(cached) $ECHO_C" >&6
14555 lt_prog_compiler_static_works_F77
=no
14556 save_LDFLAGS
="$LDFLAGS"
14557 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
14558 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
14559 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
14560 # The linker can only warn and ignore the option if not recognized
14561 # So say no if there are warnings
14562 if test -s conftest.err
; then
14563 # Append any errors to the config.log.
14564 cat conftest.err
1>&5
14565 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
14566 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
14567 if diff conftest.exp conftest.er2
>/dev
/null
; then
14568 lt_prog_compiler_static_works_F77
=yes
14571 lt_prog_compiler_static_works_F77
=yes
14575 LDFLAGS
="$save_LDFLAGS"
14578 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14579 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14581 if test x
"$lt_prog_compiler_static_works_F77" = xyes
; then
14584 lt_prog_compiler_static_F77
=
14588 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14589 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14590 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14591 echo $ECHO_N "(cached) $ECHO_C" >&6
14593 lt_cv_prog_compiler_c_o_F77
=no
14594 $rm -r conftest
2>/dev
/null
14598 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14600 lt_compiler_flag
="-o out/conftest2.$ac_objext"
14601 # Insert the option either (1) after the last *FLAGS variable, or
14602 # (2) before a word containing "conftest.", or (3) at the end.
14603 # Note that $ac_compile itself does not contain backslashes and begins
14604 # with a dollar sign (not a hyphen), so the echo should work correctly.
14605 lt_compile
=`echo "$ac_compile" | $SED \
14606 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14607 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14608 -e 's:$: $lt_compiler_flag:'`
14609 (eval echo "\"\$as_me:14609: $lt_compile\"" >&5)
14610 (eval "$lt_compile" 2>out
/conftest.err
)
14612 cat out
/conftest.err
>&5
14613 echo "$as_me:14613: \$? = $ac_status" >&5
14614 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
14616 # The compiler can only warn and ignore the option if not recognized
14617 # So say no if there are warnings
14618 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
14619 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
14620 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
14621 lt_cv_prog_compiler_c_o_F77
=yes
14626 # SGI C++ compiler will create directory out/ii_files/ for
14627 # template instantiation
14628 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
14629 $rm out
/* && rmdir out
14635 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14636 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14639 hard_links
="nottested"
14640 if test "$lt_cv_prog_compiler_c_o_F77" = no
&& test "$need_locks" != no
; then
14641 # do not overwrite the value of need_locks provided by the user
14642 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14643 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14646 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14648 ln conftest.a conftest.b
2>&5 || hard_links
=no
14649 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14650 { echo "$as_me:$LINENO: result: $hard_links" >&5
14651 echo "${ECHO_T}$hard_links" >&6; }
14652 if test "$hard_links" = no
; then
14653 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14654 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14661 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14662 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14665 allow_undefined_flag_F77
=
14666 enable_shared_with_static_runtimes_F77
=no
14668 archive_expsym_cmds_F77
=
14669 old_archive_From_new_cmds_F77
=
14670 old_archive_from_expsyms_cmds_F77
=
14671 export_dynamic_flag_spec_F77
=
14672 whole_archive_flag_spec_F77
=
14673 thread_safe_flag_spec_F77
=
14674 hardcode_libdir_flag_spec_F77
=
14675 hardcode_libdir_flag_spec_ld_F77
=
14676 hardcode_libdir_separator_F77
=
14677 hardcode_direct_F77
=no
14678 hardcode_minus_L_F77
=no
14679 hardcode_shlibpath_var_F77
=unsupported
14680 link_all_deplibs_F77
=unknown
14681 hardcode_automatic_F77
=no
14683 module_expsym_cmds_F77
=
14684 always_export_symbols_F77
=no
14685 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14686 # include_expsyms should be a list of space-separated symbols to be *always*
14687 # included in the symbol list
14688 include_expsyms_F77
=
14689 # exclude_expsyms can be an extended regexp of symbols to exclude
14690 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14691 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14692 # as well as any symbol that contains `d'.
14693 exclude_expsyms_F77
="_GLOBAL_OFFSET_TABLE_"
14694 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14695 # platforms (ab)use it in PIC code, but their linkers get confused if
14696 # the symbol is explicitly referenced. Since portable code cannot
14697 # rely on this symbol name, it's probably fine to never include it in
14698 # preloaded symbol tables.
14699 extract_expsyms_cmds
=
14700 # Just being paranoid about ensuring that cc_basename is set.
14701 for cc_temp
in $compiler""; do
14703 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
14704 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
14709 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14712 cygwin
* | mingw
* | pw32
*)
14713 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14714 # When not using gcc, we currently assume that we are using
14715 # Microsoft Visual C++.
14716 if test "$GCC" != yes; then
14721 # we just hope/assume this is gcc and not c89 (= MSVC++)
14730 if test "$with_gnu_ld" = yes; then
14731 # If archive_cmds runs LD, not CC, wlarc should be empty
14734 # Set some defaults for GNU ld with shared library support. These
14735 # are reset later if shared libraries are not supported. Putting them
14736 # here allows them to be overridden if necessary.
14737 runpath_var
=LD_RUN_PATH
14738 hardcode_libdir_flag_spec_F77
='${wl}--rpath ${wl}$libdir'
14739 export_dynamic_flag_spec_F77
='${wl}--export-dynamic'
14740 # ancient GNU ld didn't support --whole-archive et. al.
14741 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
14742 whole_archive_flag_spec_F77
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14744 whole_archive_flag_spec_F77
=
14746 supports_anon_versioning
=no
14747 case `$LD -v 2>/dev/null` in
14748 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
14749 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
14750 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
14751 *\
2.11.
*) ;; # other 2.11 versions
14752 *) supports_anon_versioning
=yes ;;
14755 # See if GNU ld supports shared libraries.
14757 aix3
* | aix4
* | aix5
*)
14758 # On AIX/PPC, the GNU linker is very broken
14759 if test "$host_cpu" != ia64
; then
14763 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14764 *** to be unable to reliably create shared libraries on AIX.
14765 *** Therefore, libtool is disabling shared libraries support. If you
14766 *** really care for shared libraries, you may want to modify your PATH
14767 *** so that a non-GNU linker is found, and then restart.
14774 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)'
14775 hardcode_libdir_flag_spec_F77
='-L$libdir'
14776 hardcode_minus_L_F77
=yes
14778 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14779 # that the semantics of dynamic libraries on AmigaOS, at least up
14780 # to version 4, is to share data among multiple programs linked
14781 # with the same dynamic library. Since this doesn't match the
14782 # behavior of shared libraries on other platforms, we can't use
14788 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14789 allow_undefined_flag_F77
=unsupported
14790 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14791 # support --undefined. This deserves some investigation. FIXME
14792 archive_cmds_F77
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14798 cygwin
* | mingw
* | pw32
*)
14799 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14800 # as there is no search path for DLLs.
14801 hardcode_libdir_flag_spec_F77
='-L$libdir'
14802 allow_undefined_flag_F77
=unsupported
14803 always_export_symbols_F77
=no
14804 enable_shared_with_static_runtimes_F77
=yes
14805 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14807 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
14808 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14809 # If the export-symbols file already is a .def file (1st line
14810 # is EXPORTS), use it as is; otherwise, prepend...
14811 archive_expsym_cmds_F77
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14812 cp $export_symbols $output_objdir/$soname.def;
14814 echo EXPORTS > $output_objdir/$soname.def;
14815 cat $export_symbols >> $output_objdir/$soname.def;
14817 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14824 hardcode_direct_F77
=no
14825 hardcode_shlibpath_var_F77
=no
14826 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14827 export_dynamic_flag_spec_F77
='${wl}-E'
14828 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14829 # Instead, shared libraries are loaded at an image base (0x10000000 by
14830 # default) and relocated if they conflict, which is a slow very memory
14831 # consuming and fragmenting process. To avoid this, we pick a random,
14832 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14833 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14834 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'
14835 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'
14838 gnu
* | linux
* | k
*bsd
*-gnu)
14839 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14841 case $cc_basename,$host_cpu in
14842 pgcc
*) # Portland Group C compiler
14843 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'
14844 tmp_addflag
=' $pic_flag'
14846 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
14847 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'
14848 tmp_addflag
=' $pic_flag -Mnomain' ;;
14849 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
14850 tmp_addflag
=' -i_dynamic' ;;
14851 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
14852 tmp_addflag
=' -i_dynamic -nofor_main' ;;
14853 ifc
* | ifort
*) # Intel Fortran compiler
14854 tmp_addflag
=' -nofor_main' ;;
14856 case `$CC -V 2>&1 | sed 5q` in
14857 *Sun\ C
*) # Sun C 5.9
14858 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'
14859 tmp_sharedflag
='-G' ;;
14860 *Sun\ F
*) # Sun Fortran 8.3
14861 tmp_sharedflag
='-G' ;;
14863 tmp_sharedflag
='-shared' ;;
14865 archive_cmds_F77
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14867 if test $supports_anon_versioning = yes; then
14868 archive_expsym_cmds_F77
='$echo "{ global:" > $output_objdir/$libname.ver~
14869 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14870 $echo "local: *; };" >> $output_objdir/$libname.ver~
14871 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14879 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14880 archive_cmds_F77
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14883 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14884 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14889 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
14893 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14894 *** create shared libraries on Solaris systems. Therefore, libtool
14895 *** is disabling shared libraries support. We urge you to upgrade GNU
14896 *** binutils to release 2.9.1 or newer. Another option is to modify
14897 *** your PATH or compiler configuration so that the native linker is
14898 *** used, and then restart.
14901 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14902 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14903 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14909 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
14910 case `$LD -v 2>&1` in
14911 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
14915 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14916 *** reliably create shared libraries on SCO systems. Therefore, libtool
14917 *** is disabling shared libraries support. We urge you to upgrade GNU
14918 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14919 *** your PATH or compiler configuration so that the native linker is
14920 *** used, and then restart.
14925 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14926 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14927 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14928 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14937 archive_cmds_F77
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14939 hardcode_direct_F77
=yes
14940 hardcode_shlibpath_var_F77
=no
14944 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14945 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14946 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14953 if test "$ld_shlibs_F77" = no
; then
14955 hardcode_libdir_flag_spec_F77
=
14956 export_dynamic_flag_spec_F77
=
14957 whole_archive_flag_spec_F77
=
14960 # PORTME fill in a description of your system's linker (not GNU ld)
14963 allow_undefined_flag_F77
=unsupported
14964 always_export_symbols_F77
=yes
14965 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'
14966 # Note: this linker hardcodes the directories in LIBPATH if there
14967 # are no directories specified by -L.
14968 hardcode_minus_L_F77
=yes
14969 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14970 # Neither direct hardcoding nor static linking is supported with a
14972 hardcode_direct_F77
=unsupported
14977 if test "$host_cpu" = ia64
; then
14978 # On IA64, the linker does run time linking by default, so we don't
14979 # have to do anything special.
14980 aix_use_runtimelinking
=no
14981 exp_sym_flag
='-Bexport'
14984 # If we're using GNU nm, then we don't want the "-C" option.
14985 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14986 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
14987 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'
14989 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'
14991 aix_use_runtimelinking
=no
14993 # Test if we are trying to use run time linking or normal
14994 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14995 # need to do runtime linking.
14996 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
14997 for ld_flag
in $LDFLAGS; do
14998 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
14999 aix_use_runtimelinking
=yes
15006 exp_sym_flag
='-bexport'
15007 no_entry_flag
='-bnoentry'
15010 # When large executables or shared objects are built, AIX ld can
15011 # have problems creating the table of contents. If linking a library
15012 # or program results in "error TOC overflow" add -mminimal-toc to
15013 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15014 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15016 archive_cmds_F77
=''
15017 hardcode_direct_F77
=yes
15018 hardcode_libdir_separator_F77
=':'
15019 link_all_deplibs_F77
=yes
15021 if test "$GCC" = yes; then
15022 case $host_os in aix4.
[012]|aix4.
[012].
*)
15023 # We only want to do this on AIX 4.2 and lower, the check
15024 # below for broken collect2 doesn't work under 4.3+
15025 collect2name
=`${CC} -print-prog-name=collect2`
15026 if test -f "$collect2name" && \
15027 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
15029 # We have reworked collect2
15032 # We have old collect2
15033 hardcode_direct_F77
=unsupported
15034 # It fails to find uninstalled libraries when the uninstalled
15035 # path is not listed in the libpath. Setting hardcode_minus_L
15036 # to unsupported forces relinking
15037 hardcode_minus_L_F77
=yes
15038 hardcode_libdir_flag_spec_F77
='-L$libdir'
15039 hardcode_libdir_separator_F77
=
15043 shared_flag
='-shared'
15044 if test "$aix_use_runtimelinking" = yes; then
15045 shared_flag
="$shared_flag "'${wl}-G'
15049 if test "$host_cpu" = ia64
; then
15050 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15051 # chokes on -Wl,-G. The following line is correct:
15054 if test "$aix_use_runtimelinking" = yes; then
15055 shared_flag
='${wl}-G'
15057 shared_flag
='${wl}-bM:SRE'
15062 # It seems that -bexpall does not export symbols beginning with
15063 # underscore (_), so it is better to generate a list of symbols to export.
15064 always_export_symbols_F77
=yes
15065 if test "$aix_use_runtimelinking" = yes; then
15066 # Warning - without using the other runtime loading flags (-brtl),
15067 # -berok will link without error, but may produce a broken library.
15068 allow_undefined_flag_F77
='-berok'
15069 # Determine the default libpath from the value encoded in an empty executable.
15070 cat >conftest.
$ac_ext <<_ACEOF
15075 rm -f conftest.
$ac_objext conftest
$ac_exeext
15076 if { (ac_try
="$ac_link"
15077 case "(($ac_try" in
15078 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15079 *) ac_try_echo=$ac_try;;
15081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15082 (eval "$ac_link") 2>conftest.er1
15084 grep -v '^ *+' conftest.er1 >conftest.err
15086 cat conftest.err >&5
15087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); } && {
15089 test -z "$ac_f77_werror_flag" ||
15090 test ! -s conftest.err
15091 } && test -s conftest$ac_exeext &&
15092 $as_test_x conftest$ac_exeext; then
15094 lt_aix_libpath_sed='
15095 /Import File Strings/,/^$/ {
15101 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
15102 # Check for a 64-bit object if we didn't find anything.
15103 if test -z "$aix_libpath"; then
15104 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
15107 echo "$as_me: failed program was:" >&5
15108 sed 's/^/| /' conftest.$ac_ext >&5
15113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15114 conftest$ac_exeext conftest.$ac_ext
15115 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15117 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15118 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"
15120 if test "$host_cpu" = ia64; then
15121 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15122 allow_undefined_flag_F77="-z nodefs"
15123 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"
15125 # Determine the default libpath from the value encoded in an empty executable.
15126 cat >conftest.$ac_ext <<_ACEOF
15131 rm -f conftest.$ac_objext conftest$ac_exeext
15132 if { (ac_try="$ac_link"
15133 case "(($ac_try" in
15134 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15135 *) ac_try_echo
=$ac_try;;
15137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15138 (eval "$ac_link") 2>conftest.er1
15140 grep -v '^ *+' conftest.er1
>conftest.err
15142 cat conftest.err
>&5
15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144 (exit $ac_status); } && {
15145 test -z "$ac_f77_werror_flag" ||
15146 test ! -s conftest.err
15147 } && test -s conftest
$ac_exeext &&
15148 $as_test_x conftest
$ac_exeext; then
15150 lt_aix_libpath_sed
='
15151 /Import File Strings/,/^$/ {
15157 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15158 # Check for a 64-bit object if we didn't find anything.
15159 if test -z "$aix_libpath"; then
15160 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15163 echo "$as_me: failed program was:" >&5
15164 sed 's/^/| /' conftest.
$ac_ext >&5
15169 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15170 conftest
$ac_exeext conftest.
$ac_ext
15171 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15173 hardcode_libdir_flag_spec_F77
='${wl}-blibpath:$libdir:'"$aix_libpath"
15174 # Warning - without using the other run time loading flags,
15175 # -berok will link without error, but may produce a broken library.
15176 no_undefined_flag_F77
=' ${wl}-bernotok'
15177 allow_undefined_flag_F77
=' ${wl}-berok'
15178 # Exported symbols can be pulled into shared objects from archives
15179 whole_archive_flag_spec_F77
='$convenience'
15180 archive_cmds_need_lc_F77
=yes
15181 # This is similar to how AIX traditionally builds its shared libraries.
15182 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'
15188 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)'
15189 hardcode_libdir_flag_spec_F77
='-L$libdir'
15190 hardcode_minus_L_F77
=yes
15191 # see comment about different semantics on the GNU ld section
15196 export_dynamic_flag_spec_F77
=-rdynamic
15199 cygwin
* | mingw
* | pw32
*)
15200 # When not using gcc, we currently assume that we are using
15201 # Microsoft Visual C++.
15202 # hardcode_libdir_flag_spec is actually meaningless, as there is
15203 # no search path for DLLs.
15204 hardcode_libdir_flag_spec_F77
=' '
15205 allow_undefined_flag_F77
=unsupported
15206 # Tell ltmain to make .lib files, not .a files.
15208 # Tell ltmain to make .dll files, not .so files.
15210 # FIXME: Setting linknames here is a bad hack.
15211 archive_cmds_F77
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15212 # The linker will automatically build a .lib file if we build a DLL.
15213 old_archive_From_new_cmds_F77
='true'
15214 # FIXME: Should let the user specify the lib program.
15215 old_archive_cmds_F77
='lib -OUT:$oldlib$oldobjs$old_deplibs'
15216 fix_srcfile_path_F77
='`cygpath -w "$srcfile"`'
15217 enable_shared_with_static_runtimes_F77
=yes
15220 darwin
* | rhapsody
*)
15222 rhapsody
* | darwin1.
[012])
15223 allow_undefined_flag_F77
='${wl}-undefined ${wl}suppress'
15226 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15227 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15229 case ${MACOSX_DEPLOYMENT_TARGET} in
15231 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15234 allow_undefined_flag_F77
='${wl}-undefined ${wl}dynamic_lookup'
15240 archive_cmds_need_lc_F77
=no
15241 hardcode_direct_F77
=no
15242 hardcode_automatic_F77
=yes
15243 hardcode_shlibpath_var_F77
=unsupported
15244 whole_archive_flag_spec_F77
=''
15245 link_all_deplibs_F77
=yes
15246 if test "$GCC" = yes ; then
15247 output_verbose_link_cmd
='echo'
15248 archive_cmds_F77
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15249 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15250 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15251 archive_expsym_cmds_F77
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15252 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}'
15254 case $cc_basename in
15256 output_verbose_link_cmd
='echo'
15257 archive_cmds_F77
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15258 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15259 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15260 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}'
15261 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}'
15271 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15272 hardcode_libdir_flag_spec_F77
='-L$libdir'
15273 hardcode_shlibpath_var_F77
=no
15280 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15281 # support. Future versions do this automatically, but an explicit c++rt0.o
15282 # does not break anything, and helps significantly (at the cost of a little
15285 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15286 hardcode_libdir_flag_spec_F77
='-R$libdir'
15287 hardcode_direct_F77
=yes
15288 hardcode_shlibpath_var_F77
=no
15291 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15293 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15294 hardcode_direct_F77
=yes
15295 hardcode_minus_L_F77
=yes
15296 hardcode_shlibpath_var_F77
=no
15299 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15300 freebsd
* | dragonfly
*)
15301 archive_cmds_F77
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15302 hardcode_libdir_flag_spec_F77
='-R$libdir'
15303 hardcode_direct_F77
=yes
15304 hardcode_shlibpath_var_F77
=no
15308 if test "$GCC" = yes; then
15309 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'
15311 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'
15313 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
15314 hardcode_libdir_separator_F77
=:
15315 hardcode_direct_F77
=yes
15317 # hardcode_minus_L: Not really in the search PATH,
15318 # but as the default location of the library.
15319 hardcode_minus_L_F77
=yes
15320 export_dynamic_flag_spec_F77
='${wl}-E'
15324 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
15325 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15327 archive_cmds_F77
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15329 if test "$with_gnu_ld" = no
; then
15330 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
15331 hardcode_libdir_separator_F77
=:
15333 hardcode_direct_F77
=yes
15334 export_dynamic_flag_spec_F77
='${wl}-E'
15336 # hardcode_minus_L: Not really in the search PATH,
15337 # but as the default location of the library.
15338 hardcode_minus_L_F77
=yes
15343 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
15346 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15349 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15352 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15358 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15361 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15364 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15368 if test "$with_gnu_ld" = no
; then
15369 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
15370 hardcode_libdir_separator_F77
=:
15374 hardcode_libdir_flag_spec_ld_F77
='+b $libdir'
15375 hardcode_direct_F77
=no
15376 hardcode_shlibpath_var_F77
=no
15379 hardcode_direct_F77
=yes
15380 export_dynamic_flag_spec_F77
='${wl}-E'
15382 # hardcode_minus_L: Not really in the search PATH,
15383 # but as the default location of the library.
15384 hardcode_minus_L_F77
=yes
15390 irix5
* | irix6
* | nonstopux
*)
15391 if test "$GCC" = yes; then
15392 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'
15394 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'
15395 hardcode_libdir_flag_spec_ld_F77
='-rpath $libdir'
15397 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
15398 hardcode_libdir_separator_F77
=:
15399 link_all_deplibs_F77
=yes
15403 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
15404 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15406 archive_cmds_F77
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15408 hardcode_libdir_flag_spec_F77
='-R$libdir'
15409 hardcode_direct_F77
=yes
15410 hardcode_shlibpath_var_F77
=no
15414 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15415 hardcode_direct_F77
=yes
15416 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
15417 hardcode_libdir_separator_F77
=:
15418 hardcode_shlibpath_var_F77
=no
15422 if test -f /usr
/libexec
/ld.so
; then
15423 hardcode_direct_F77
=yes
15424 hardcode_shlibpath_var_F77
=no
15425 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15426 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15427 archive_expsym_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15428 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
15429 export_dynamic_flag_spec_F77
='${wl}-E'
15432 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
15433 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15434 hardcode_libdir_flag_spec_F77
='-R$libdir'
15437 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15438 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
15448 hardcode_libdir_flag_spec_F77
='-L$libdir'
15449 hardcode_minus_L_F77
=yes
15450 allow_undefined_flag_F77
=unsupported
15451 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'
15452 old_archive_From_new_cmds_F77
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15456 if test "$GCC" = yes; then
15457 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
15458 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'
15460 allow_undefined_flag_F77
=' -expect_unresolved \*'
15461 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'
15463 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
15464 hardcode_libdir_separator_F77
=:
15467 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
15468 if test "$GCC" = yes; then
15469 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
15470 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'
15471 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
15473 allow_undefined_flag_F77
=' -expect_unresolved \*'
15474 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'
15475 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~
15476 $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'
15478 # Both c and cxx compiler support -rpath directly
15479 hardcode_libdir_flag_spec_F77
='-rpath $libdir'
15481 hardcode_libdir_separator_F77
=:
15485 no_undefined_flag_F77
=' -z text'
15486 if test "$GCC" = yes; then
15488 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15489 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15490 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15493 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15494 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15495 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15497 hardcode_libdir_flag_spec_F77
='-R$libdir'
15498 hardcode_shlibpath_var_F77
=no
15500 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
15502 # The compiler driver will combine and reorder linker options,
15503 # but understands `-z linker_flag'. GCC discards it without `$wl',
15504 # but is careful enough not to reorder.
15505 # Supported since Solaris 2.6 (maybe 2.5.1?)
15506 if test "$GCC" = yes; then
15507 whole_archive_flag_spec_F77
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15509 whole_archive_flag_spec_F77
='-z allextract$convenience -z defaultextract'
15513 link_all_deplibs_F77
=yes
15517 if test "x$host_vendor" = xsequent
; then
15518 # Use $CC to link under sequent, because it throws in some extra .o
15519 # files that make .init and .fini sections work.
15520 archive_cmds_F77
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15522 archive_cmds_F77
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15524 hardcode_libdir_flag_spec_F77
='-L$libdir'
15525 hardcode_direct_F77
=yes
15526 hardcode_minus_L_F77
=yes
15527 hardcode_shlibpath_var_F77
=no
15531 case $host_vendor in
15533 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15534 hardcode_direct_F77
=yes # is this really true???
15537 ## LD is ld it makes a PLAMLIB
15538 ## CC just makes a GrossModule.
15539 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15540 reload_cmds_F77
='$CC -r -o $output$reload_objs'
15541 hardcode_direct_F77
=no
15544 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15545 hardcode_direct_F77
=no
#Motorola manual says yes, but my tests say they lie
15548 runpath_var
='LD_RUN_PATH'
15549 hardcode_shlibpath_var_F77
=no
15553 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15554 hardcode_shlibpath_var_F77
=no
15555 export_dynamic_flag_spec_F77
='-Bexport'
15559 if test -d /usr
/nec
; then
15560 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15561 hardcode_shlibpath_var_F77
=no
15562 runpath_var
=LD_RUN_PATH
15563 hardcode_runpath_var
=yes
15568 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
15569 no_undefined_flag_F77
='${wl}-z,text'
15570 archive_cmds_need_lc_F77
=no
15571 hardcode_shlibpath_var_F77
=no
15572 runpath_var
='LD_RUN_PATH'
15574 if test "$GCC" = yes; then
15575 archive_cmds_F77
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15576 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15578 archive_cmds_F77
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15579 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15583 sysv5
* | sco3.2v5
* | sco5v6
*)
15584 # Note: We can NOT use -z defs as we might desire, because we do not
15585 # link with -lc, and that would cause any symbols used from libc to
15586 # always be unresolved, which means just about no library would
15587 # ever link correctly. If we're not using GNU ld we use -z text
15588 # though, which does catch some bad symbols but isn't as heavy-handed
15590 no_undefined_flag_F77
='${wl}-z,text'
15591 allow_undefined_flag_F77
='${wl}-z,nodefs'
15592 archive_cmds_need_lc_F77
=no
15593 hardcode_shlibpath_var_F77
=no
15594 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15595 hardcode_libdir_separator_F77
=':'
15596 link_all_deplibs_F77
=yes
15597 export_dynamic_flag_spec_F77
='${wl}-Bexport'
15598 runpath_var
='LD_RUN_PATH'
15600 if test "$GCC" = yes; then
15601 archive_cmds_F77
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15602 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15604 archive_cmds_F77
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15605 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15610 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15611 hardcode_libdir_flag_spec_F77
='-L$libdir'
15612 hardcode_shlibpath_var_F77
=no
15621 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15622 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15623 test "$ld_shlibs_F77" = no
&& can_build_shared
=no
15626 # Do we need to explicitly link libc?
15628 case "x$archive_cmds_need_lc_F77" in
15630 # Assume -lc should be added
15631 archive_cmds_need_lc_F77
=yes
15633 if test "$enable_shared" = yes && test "$GCC" = yes; then
15634 case $archive_cmds_F77 in
15636 # FIXME: we may have to deal with multi-command sequences.
15639 # Test whether the compiler implicitly links with -lc since on some
15640 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15641 # to ld, don't add -lc before -lgcc.
15642 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15643 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15645 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
15647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15648 (eval $ac_compile) 2>&5
15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); } 2>conftest.err
; then
15654 libobjs
=conftest.
$ac_objext
15656 wl
=$lt_prog_compiler_wl_F77
15657 pic_flag
=$lt_prog_compiler_pic_F77
15663 lt_save_allow_undefined_flag
=$allow_undefined_flag_F77
15664 allow_undefined_flag_F77
=
15665 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15666 (eval $archive_cmds_F77 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
15668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); }
15671 archive_cmds_need_lc_F77
=no
15673 archive_cmds_need_lc_F77
=yes
15675 allow_undefined_flag_F77
=$lt_save_allow_undefined_flag
15677 cat conftest.err
1>&5
15680 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15681 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15688 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15689 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15690 library_names_spec
=
15691 libname_spec
='lib$name'
15695 postuninstall_cmds
=
15699 shlibpath_overrides_runpath
=unknown
15701 dynamic_linker
="$host_os ld.so"
15702 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
15704 need_lib_prefix
=unknown
15705 hardcode_into_libs
=no
15707 # when you set need_version to no, make sure it does not cause -set_version
15708 # flags to be left without arguments
15709 need_version
=unknown
15714 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
15715 shlibpath_var
=LIBPATH
15717 # AIX 3 has no versioning support, so we append a major version to the name.
15718 soname_spec
='${libname}${release}${shared_ext}$major'
15725 hardcode_into_libs
=yes
15726 if test "$host_cpu" = ia64
; then
15727 # AIX 5 supports IA64
15728 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15729 shlibpath_var
=LD_LIBRARY_PATH
15731 # With GCC up to 2.95.x, collect2 would create an import file
15732 # for dependence libraries. The import file would start with
15733 # the line `#! .'. This would cause the generated library to
15734 # depend on `.', always an invalid library. This was fixed in
15735 # development snapshots of GCC prior to 3.0.
15737 aix4 | aix4.
[01] | aix4.
[01].
*)
15738 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15740 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
15743 can_build_shared
=no
15747 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15748 # soname into executable. Probably we can add versioning support to
15749 # collect2, so additional links can be useful in future.
15750 if test "$aix_use_runtimelinking" = yes; then
15751 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15752 # instead of lib<name>.a to let people know that these are not
15753 # typical AIX shared libraries.
15754 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15756 # We preserve .a as extension for shared libraries through AIX4.2
15757 # and later when we are not doing run time linking.
15758 library_names_spec
='${libname}${release}.a $libname.a'
15759 soname_spec
='${libname}${release}${shared_ext}$major'
15761 shlibpath_var
=LIBPATH
15766 library_names_spec
='$libname.ixlibrary $libname.a'
15767 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15768 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'
15772 library_names_spec
='${libname}${shared_ext}'
15773 dynamic_linker
="$host_os ld.so"
15774 shlibpath_var
=LIBRARY_PATH
15780 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15781 soname_spec
='${libname}${release}${shared_ext}$major'
15782 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
15783 shlibpath_var
=LD_LIBRARY_PATH
15784 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15785 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
15786 # the default ld.so.conf also contains /usr/contrib/lib and
15787 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15788 # libtool to hard-code these into programs
15791 cygwin
* | mingw
* | pw32
*)
15792 version_type
=windows
15797 case $GCC,$host_os in
15798 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
15799 library_names_spec
='$libname.dll.a'
15800 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15801 postinstall_cmds
='base_file=`basename \${file}`~
15802 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15803 dldir=$destdir/`dirname \$dlpath`~
15804 test -d \$dldir || mkdir -p \$dldir~
15805 $install_prog $dir/$dlname \$dldir/$dlname~
15806 chmod a+x \$dldir/$dlname'
15807 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15808 dlpath=$dir/\$dldll~
15810 shlibpath_overrides_runpath
=yes
15814 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15815 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15816 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
15819 # MinGW DLLs use traditional 'lib' prefix
15820 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15821 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15822 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
15823 # It is most probably a Windows format PATH printed by
15824 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15825 # path with ; separators, and with drive letters. We can handle the
15826 # drive letters (cygwin fileutils understands them), so leave them,
15827 # especially as we might pass files found there to a mingw objdump,
15828 # which wouldn't understand a cygwinified path. Ahh.
15829 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15831 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15835 # pw32 DLLs use 'pw' prefix rather than 'lib'
15836 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15842 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15845 dynamic_linker
='Win32 ld.exe'
15846 # FIXME: first we should search . and the directory the executable is in
15850 darwin
* | rhapsody
*)
15851 dynamic_linker
="$host_os dyld"
15852 version_type
=darwin
15855 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15856 soname_spec
='${libname}${release}${major}$shared_ext'
15857 shlibpath_overrides_runpath
=yes
15858 shlibpath_var
=DYLD_LIBRARY_PATH
15859 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
15861 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
15868 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15869 soname_spec
='${libname}${release}${shared_ext}$major'
15870 shlibpath_var
=LD_LIBRARY_PATH
15877 freebsd
* | dragonfly
*)
15878 # DragonFly does not have aout. When/if they implement a new
15879 # versioning mechanism, adjust this.
15880 if test -x /usr
/bin
/objformat
; then
15881 objformat
=`/usr/bin/objformat`
15884 freebsd
[123]*) objformat
=aout
;;
15885 *) objformat
=elf
;;
15888 version_type
=freebsd-
$objformat
15889 case $version_type in
15891 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15896 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15900 shlibpath_var
=LD_LIBRARY_PATH
15903 shlibpath_overrides_runpath
=yes
15905 freebsd3.
[01]* | freebsdelf3.
[01]*)
15906 shlibpath_overrides_runpath
=yes
15907 hardcode_into_libs
=yes
15909 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
15910 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
15911 shlibpath_overrides_runpath
=no
15912 hardcode_into_libs
=yes
15914 *) # from 4.6 on, and DragonFly
15915 shlibpath_overrides_runpath
=yes
15916 hardcode_into_libs
=yes
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 shlibpath_var
=LD_LIBRARY_PATH
15928 hardcode_into_libs
=yes
15931 hpux9
* | hpux10
* | hpux11
*)
15932 # Give a soname corresponding to the major version so that dld.sl refuses to
15933 # link against other versions.
15940 hardcode_into_libs
=yes
15941 dynamic_linker
="$host_os dld.so"
15942 shlibpath_var
=LD_LIBRARY_PATH
15943 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
15944 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15945 soname_spec
='${libname}${release}${shared_ext}$major'
15946 if test "X$HPUX_IA64_MODE" = X32
; then
15947 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15949 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
15951 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15955 hardcode_into_libs
=yes
15956 dynamic_linker
="$host_os dld.sl"
15957 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
15958 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
15959 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15960 soname_spec
='${libname}${release}${shared_ext}$major'
15961 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15962 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15966 dynamic_linker
="$host_os dld.sl"
15967 shlibpath_var
=SHLIB_PATH
15968 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
15969 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15970 soname_spec
='${libname}${release}${shared_ext}$major'
15973 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15974 postinstall_cmds
='chmod 555 $lib'
15981 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15982 soname_spec
='${libname}${release}${shared_ext}$major'
15983 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
15984 shlibpath_var
=LD_LIBRARY_PATH
15985 shlibpath_overrides_runpath
=no
15986 hardcode_into_libs
=yes
15989 irix5
* | irix6
* | nonstopux
*)
15991 nonstopux
*) version_type
=nonstopux
;;
15993 if test "$lt_cv_prog_gnu_ld" = yes; then
16001 soname_spec
='${libname}${release}${shared_ext}$major'
16002 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16004 irix5
* | nonstopux
*)
16005 libsuff
= shlibsuff
=
16008 case $LD in # libtool.m4 will add one of these switches to LD
16009 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
16010 libsuff
= shlibsuff
= libmagic
=32-bit;;
16011 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
16012 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
16013 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
16014 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
16015 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
16019 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
16020 shlibpath_overrides_runpath
=no
16021 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16022 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
16023 hardcode_into_libs
=yes
16026 # No shared lib support for Linux oldld, aout, or coff.
16027 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
16031 # This must be Linux ELF.
16032 linux
* | k
*bsd
*-gnu)
16036 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16037 soname_spec
='${libname}${release}${shared_ext}$major'
16038 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16039 shlibpath_var
=LD_LIBRARY_PATH
16040 shlibpath_overrides_runpath
=no
16041 # This implies no fast_install, which is unacceptable.
16042 # Some rework will be needed to allow for fast_install
16043 # before this can be enabled.
16044 hardcode_into_libs
=yes
16045 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16046 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
16048 # Append ld.so.conf contents to the search path
16049 if test -f /etc
/ld.so.conf
; then
16050 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' ' '`
16051 sys_lib_dlsearch_path_spec
="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16054 # We used to test for /lib/ld.so.1 and disable shared libraries on
16055 # powerpc, because MkLinux only supported shared libraries with the
16056 # GNU dynamic linker. Since this was broken with cross compilers,
16057 # most powerpc-linux boxes support dynamic linking these days and
16058 # people can always --disable-shared, the test was removed, and we
16059 # assume the GNU/Linux dynamic linker is in use.
16060 dynamic_linker
='GNU/Linux ld.so'
16067 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
16068 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16069 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16070 dynamic_linker
='NetBSD (a.out) ld.so'
16072 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16073 soname_spec
='${libname}${release}${shared_ext}$major'
16074 dynamic_linker
='NetBSD ld.elf_so'
16076 shlibpath_var
=LD_LIBRARY_PATH
16077 shlibpath_overrides_runpath
=yes
16078 hardcode_into_libs
=yes
16083 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16084 shlibpath_var
=LD_LIBRARY_PATH
16085 shlibpath_overrides_runpath
=yes
16092 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16093 soname_spec
='${libname}${release}${shared_ext}$major'
16094 shlibpath_var
=LD_LIBRARY_PATH
16095 shlibpath_overrides_runpath
=yes
16100 sys_lib_dlsearch_path_spec
="/usr/lib"
16102 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16104 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
16105 *) need_version
=no
;;
16107 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16108 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16109 shlibpath_var
=LD_LIBRARY_PATH
16110 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16112 openbsd2.
[89] | openbsd2.
[89].
*)
16113 shlibpath_overrides_runpath
=no
16116 shlibpath_overrides_runpath
=yes
16120 shlibpath_overrides_runpath
=yes
16125 libname_spec
='$name'
16128 library_names_spec
='$libname${shared_ext} $libname.a'
16129 dynamic_linker
='OS/2 ld.exe'
16130 shlibpath_var
=LIBPATH
16133 osf3
* | osf4
* | osf5
*)
16137 soname_spec
='${libname}${release}${shared_ext}$major'
16138 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16139 shlibpath_var
=LD_LIBRARY_PATH
16140 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16141 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
16152 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16153 soname_spec
='${libname}${release}${shared_ext}$major'
16154 shlibpath_var
=LD_LIBRARY_PATH
16155 shlibpath_overrides_runpath
=yes
16156 hardcode_into_libs
=yes
16157 # ldd complains unless libraries are executable
16158 postinstall_cmds
='chmod +x $lib'
16163 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16164 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16165 shlibpath_var
=LD_LIBRARY_PATH
16166 shlibpath_overrides_runpath
=yes
16167 if test "$with_gnu_ld" = yes; then
16175 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16176 soname_spec
='${libname}${release}${shared_ext}$major'
16177 shlibpath_var
=LD_LIBRARY_PATH
16178 case $host_vendor in
16180 shlibpath_overrides_runpath
=no
16182 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16183 runpath_var
=LD_RUN_PATH
16191 shlibpath_overrides_runpath
=no
16192 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
16198 if test -d /usr
/nec
;then
16200 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16201 soname_spec
='$libname${shared_ext}.$major'
16202 shlibpath_var
=LD_LIBRARY_PATH
16206 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
16207 version_type
=freebsd-elf
16210 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16211 soname_spec
='${libname}${release}${shared_ext}$major'
16212 shlibpath_var
=LD_LIBRARY_PATH
16213 hardcode_into_libs
=yes
16214 if test "$with_gnu_ld" = yes; then
16215 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16216 shlibpath_overrides_runpath
=no
16218 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
16219 shlibpath_overrides_runpath
=yes
16222 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
16226 sys_lib_dlsearch_path_spec
='/usr/lib'
16231 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16232 soname_spec
='${libname}${release}${shared_ext}$major'
16233 shlibpath_var
=LD_LIBRARY_PATH
16240 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16241 echo "${ECHO_T}$dynamic_linker" >&6; }
16242 test "$dynamic_linker" = no
&& can_build_shared
=no
16244 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
16245 if test "$GCC" = yes; then
16246 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16249 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16250 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16251 hardcode_action_F77
=
16252 if test -n "$hardcode_libdir_flag_spec_F77" || \
16253 test -n "$runpath_var_F77" || \
16254 test "X$hardcode_automatic_F77" = "Xyes" ; then
16256 # We can hardcode non-existant directories.
16257 if test "$hardcode_direct_F77" != no
&&
16258 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16259 # have to relink, otherwise we might link with an installed library
16260 # when we should be linking with a yet-to-be-installed one
16261 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16262 test "$hardcode_minus_L_F77" != no
; then
16263 # Linking always hardcodes the temporary library directory.
16264 hardcode_action_F77
=relink
16266 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16267 hardcode_action_F77
=immediate
16270 # We cannot hardcode anything, or else we can only hardcode existing
16272 hardcode_action_F77
=unsupported
16274 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16275 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16277 if test "$hardcode_action_F77" = relink
; then
16278 # Fast installation is not supported
16279 enable_fast_install
=no
16280 elif test "$shlibpath_overrides_runpath" = yes ||
16281 test "$enable_shared" = no
; then
16282 # Fast installation is not necessary
16283 enable_fast_install
=needless
16287 # The else clause should only fire when bootstrapping the
16288 # libtool distribution, otherwise you forgot to ship ltmain.sh
16289 # with your package, and you will get complaints that there are
16290 # no rules to generate ltmain.sh.
16291 if test -f "$ltmain"; then
16292 # See if we are running on zsh, and set the options which allow our commands through
16293 # without removal of \ escapes.
16294 if test -n "${ZSH_VERSION+set}" ; then
16295 setopt NO_GLOB_SUBST
16297 # Now quote all the things that may contain metacharacters while being
16298 # careful not to overquote the AC_SUBSTed values. We take copies of the
16299 # variables and quote the copies for generation of the libtool script.
16300 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16302 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16303 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16304 deplibs_check_method reload_flag reload_cmds need_locks \
16305 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16306 lt_cv_sys_global_symbol_to_c_name_address \
16307 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16308 old_postinstall_cmds old_postuninstall_cmds \
16312 lt_prog_compiler_wl_F77 \
16313 lt_prog_compiler_pic_F77 \
16314 lt_prog_compiler_static_F77 \
16315 lt_prog_compiler_no_builtin_flag_F77 \
16316 export_dynamic_flag_spec_F77 \
16317 thread_safe_flag_spec_F77 \
16318 whole_archive_flag_spec_F77 \
16319 enable_shared_with_static_runtimes_F77 \
16320 old_archive_cmds_F77 \
16321 old_archive_from_new_cmds_F77 \
16322 predep_objects_F77 \
16323 postdep_objects_F77 \
16326 compiler_lib_search_path_F77 \
16328 archive_expsym_cmds_F77 \
16329 postinstall_cmds_F77 \
16330 postuninstall_cmds_F77 \
16331 old_archive_from_expsyms_cmds_F77 \
16332 allow_undefined_flag_F77 \
16333 no_undefined_flag_F77 \
16334 export_symbols_cmds_F77 \
16335 hardcode_libdir_flag_spec_F77 \
16336 hardcode_libdir_flag_spec_ld_F77 \
16337 hardcode_libdir_separator_F77 \
16338 hardcode_automatic_F77 \
16340 module_expsym_cmds_F77 \
16341 lt_cv_prog_compiler_c_o_F77 \
16342 fix_srcfile_path_F77 \
16343 exclude_expsyms_F77 \
16344 include_expsyms_F77
; do
16347 old_archive_cmds_F77 | \
16348 old_archive_from_new_cmds_F77 | \
16349 archive_cmds_F77 | \
16350 archive_expsym_cmds_F77 | \
16351 module_cmds_F77 | \
16352 module_expsym_cmds_F77 | \
16353 old_archive_from_expsyms_cmds_F77 | \
16354 export_symbols_cmds_F77 | \
16355 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16356 postinstall_cmds | postuninstall_cmds | \
16357 old_postinstall_cmds | old_postuninstall_cmds | \
16358 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
16359 # Double-quote double-evaled strings.
16360 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16363 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16369 *'\$0 --fallback-echo"')
16370 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16376 cat <<__EOF__ >> "$cfgfile"
16377 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16379 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16381 # Shell to use when invoking shell scripts.
16384 # Whether or not to build shared libraries.
16385 build_libtool_libs=$enable_shared
16387 # Whether or not to build static libraries.
16388 build_old_libs=$enable_static
16390 # Whether or not to add -lc for building shared libraries.
16391 build_libtool_need_lc=$archive_cmds_need_lc_F77
16393 # Whether or not to disallow shared libs when runtime libs are static
16394 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16396 # Whether or not to optimize for fast installation.
16397 fast_install=$enable_fast_install
16400 host_alias=$host_alias
16404 # The build system.
16405 build_alias=$build_alias
16409 # An echo program that does not interpret backslashes.
16414 AR_FLAGS=$lt_AR_FLAGS
16419 # LTCC compiler flags.
16420 LTCFLAGS=$lt_LTCFLAGS
16422 # A language-specific compiler.
16423 CC=$lt_compiler_F77
16425 # Is the compiler the GNU C compiler?
16431 # The linker used to build libraries.
16434 # Whether we need hard or soft links.
16437 # A BSD-compatible nm program.
16440 # A symbol stripping program
16443 # Used to examine libraries when file_magic_cmd begins "file"
16444 MAGIC_CMD=$MAGIC_CMD
16446 # Used on cygwin: DLL creation program.
16449 # Used on cygwin: object dumper.
16452 # Used on cygwin: assembler.
16455 # The name of the directory that contains temporary libtool files.
16458 # How to create reloadable object files.
16459 reload_flag=$lt_reload_flag
16460 reload_cmds=$lt_reload_cmds
16462 # How to pass a linker flag through the compiler.
16463 wl=$lt_lt_prog_compiler_wl_F77
16465 # Object file suffix (normally "o").
16466 objext="$ac_objext"
16468 # Old archive suffix (normally "a").
16471 # Shared library suffix (normally ".so").
16472 shrext_cmds='$shrext_cmds'
16474 # Executable file suffix (normally "").
16477 # Additional compiler flags for building library objects.
16478 pic_flag=$lt_lt_prog_compiler_pic_F77
16481 # What is the maximum length of a command?
16482 max_cmd_len=$lt_cv_sys_max_cmd_len
16484 # Does compiler simultaneously support -c and -o options?
16485 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16487 # Must we lock files when doing compilation?
16488 need_locks=$lt_need_locks
16490 # Do we need the lib prefix for modules?
16491 need_lib_prefix=$need_lib_prefix
16493 # Do we need a version for libraries?
16494 need_version=$need_version
16496 # Whether dlopen is supported.
16497 dlopen_support=$enable_dlopen
16499 # Whether dlopen of programs is supported.
16500 dlopen_self=$enable_dlopen_self
16502 # Whether dlopen of statically linked programs is supported.
16503 dlopen_self_static=$enable_dlopen_self_static
16505 # Compiler flag to prevent dynamic linking.
16506 link_static_flag=$lt_lt_prog_compiler_static_F77
16508 # Compiler flag to turn off builtin functions.
16509 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16511 # Compiler flag to allow reflexive dlopens.
16512 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16514 # Compiler flag to generate shared objects directly from archives.
16515 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16517 # Compiler flag to generate thread-safe objects.
16518 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16520 # Library versioning type.
16521 version_type=$version_type
16523 # Format of library name prefix.
16524 libname_spec=$lt_libname_spec
16526 # List of archive names. First name is the real one, the rest are links.
16527 # The last name is the one that the linker finds with -lNAME.
16528 library_names_spec=$lt_library_names_spec
16530 # The coded name of the library, if different from the real name.
16531 soname_spec=$lt_soname_spec
16533 # Commands used to build and install an old-style archive.
16535 old_archive_cmds=$lt_old_archive_cmds_F77
16536 old_postinstall_cmds=$lt_old_postinstall_cmds
16537 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16539 # Create an old-style archive from a shared archive.
16540 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16542 # Create a temporary old-style archive to link instead of a shared archive.
16543 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16545 # Commands used to build and install a shared archive.
16546 archive_cmds=$lt_archive_cmds_F77
16547 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16548 postinstall_cmds=$lt_postinstall_cmds
16549 postuninstall_cmds=$lt_postuninstall_cmds
16551 # Commands used to build a loadable module (assumed same as above if empty)
16552 module_cmds=$lt_module_cmds_F77
16553 module_expsym_cmds=$lt_module_expsym_cmds_F77
16555 # Commands to strip libraries.
16556 old_striplib=$lt_old_striplib
16557 striplib=$lt_striplib
16559 # Dependencies to place before the objects being linked to create a
16561 predep_objects=$lt_predep_objects_F77
16563 # Dependencies to place after the objects being linked to create a
16565 postdep_objects=$lt_postdep_objects_F77
16567 # Dependencies to place before the objects being linked to create a
16569 predeps=$lt_predeps_F77
16571 # Dependencies to place after the objects being linked to create a
16573 postdeps=$lt_postdeps_F77
16575 # The library search path used internally by the compiler when linking
16576 # a shared library.
16577 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16579 # Method to check whether dependent libraries are shared objects.
16580 deplibs_check_method=$lt_deplibs_check_method
16582 # Command to use when deplibs_check_method == file_magic.
16583 file_magic_cmd=$lt_file_magic_cmd
16585 # Flag that allows shared libraries with undefined symbols to be built.
16586 allow_undefined_flag=$lt_allow_undefined_flag_F77
16588 # Flag that forces no undefined symbols.
16589 no_undefined_flag=$lt_no_undefined_flag_F77
16591 # Commands used to finish a libtool library installation in a directory.
16592 finish_cmds=$lt_finish_cmds
16594 # Same as above, but a single script fragment to be evaled but not shown.
16595 finish_eval=$lt_finish_eval
16597 # Take the output of nm and produce a listing of raw symbols and C names.
16598 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16600 # Transform the output of nm in a proper C declaration
16601 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16603 # Transform the output of nm in a C name address pair
16604 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16606 # This is the shared library runtime path variable.
16607 runpath_var=$runpath_var
16609 # This is the shared library path variable.
16610 shlibpath_var=$shlibpath_var
16612 # Is shlibpath searched before the hard-coded library search path?
16613 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16615 # How to hardcode a shared library path into an executable.
16616 hardcode_action=$hardcode_action_F77
16618 # Whether we should hardcode library paths into libraries.
16619 hardcode_into_libs=$hardcode_into_libs
16621 # Flag to hardcode \$libdir into a binary during linking.
16622 # This must work even if \$libdir does not exist.
16623 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16625 # If ld is used when linking, flag to hardcode \$libdir into
16626 # a binary during linking. This must work even if \$libdir does
16628 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16630 # Whether we need a single -rpath flag with a separated argument.
16631 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16633 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16634 # resulting binary.
16635 hardcode_direct=$hardcode_direct_F77
16637 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16638 # resulting binary.
16639 hardcode_minus_L=$hardcode_minus_L_F77
16641 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16642 # the resulting binary.
16643 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16645 # Set to yes if building a shared library automatically hardcodes DIR into the library
16646 # and all subsequent libraries and executables linked against it.
16647 hardcode_automatic=$hardcode_automatic_F77
16649 # Variables whose values should be saved in libtool wrapper scripts and
16650 # restored at relink time.
16651 variables_saved_for_relink="$variables_saved_for_relink"
16653 # Whether libtool must link a program against all its dependency libraries.
16654 link_all_deplibs=$link_all_deplibs_F77
16656 # Compile-time system search path for libraries
16657 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16659 # Run-time system search path for libraries
16660 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16662 # Fix the shell variable \$srcfile for the compiler.
16663 fix_srcfile_path=$lt_fix_srcfile_path
16665 # Set to yes if exported symbols are required.
16666 always_export_symbols=$always_export_symbols_F77
16668 # The commands to list exported symbols.
16669 export_symbols_cmds=$lt_export_symbols_cmds_F77
16671 # The commands to extract the exported symbol list from a shared archive.
16672 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16674 # Symbols that should not be listed in the preloaded symbols.
16675 exclude_expsyms=$lt_exclude_expsyms_F77
16677 # Symbols that must always be exported.
16678 include_expsyms=$lt_include_expsyms_F77
16680 # ### END LIBTOOL TAG CONFIG: $tagname
16686 # If there is no Makefile yet, we rely on a make rule to execute
16687 # `config.status --recheck' to rerun these tests and create the
16688 # libtool script then.
16689 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16690 if test -f "$ltmain_in"; then
16691 test -f Makefile
&& make "$ltmain"
16697 ac_cpp
='$CPP $CPPFLAGS'
16698 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16699 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16700 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
16710 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16713 # Source file extension for Java test sources.
16716 # Object file extension for compiled Java test sources.
16720 # Code to be used in simple compile tests
16721 lt_simple_compile_test_code
="class foo {}"
16723 # Code to be used in simple link tests
16724 lt_simple_link_test_code
='public class conftest { public static void main(String[] argv) {}; }'
16726 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16728 # If no C compiler was specified, use CC.
16731 # If no C compiler flags were specified, use CFLAGS.
16732 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
16734 # Allow CC to be a program name with arguments.
16738 # save warnings/boilerplate of simple test code
16739 ac_outfile
=conftest.
$ac_objext
16740 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
16741 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
16742 _lt_compiler_boilerplate
=`cat conftest.err`
16745 ac_outfile
=conftest.
$ac_objext
16746 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
16747 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
16748 _lt_linker_boilerplate
=`cat conftest.err`
16752 # Allow CC to be a program name with arguments.
16757 for cc_temp
in $compiler""; do
16759 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
16760 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
16765 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16768 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16769 archive_cmds_need_lc_GCJ
=no
16771 old_archive_cmds_GCJ
=$old_archive_cmds
16774 ## There is no encapsulation within the following macros, do not change
16775 ## the running order or otherwise move them around unless you know exactly
16776 ## what you are doing...
16778 lt_prog_compiler_no_builtin_flag_GCJ
=
16780 if test "$GCC" = yes; then
16781 lt_prog_compiler_no_builtin_flag_GCJ
=' -fno-builtin'
16784 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16785 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16786 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16787 echo $ECHO_N "(cached) $ECHO_C" >&6
16789 lt_cv_prog_compiler_rtti_exceptions
=no
16790 ac_outfile
=conftest.
$ac_objext
16791 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16792 lt_compiler_flag
="-fno-rtti -fno-exceptions"
16793 # Insert the option either (1) after the last *FLAGS variable, or
16794 # (2) before a word containing "conftest.", or (3) at the end.
16795 # Note that $ac_compile itself does not contain backslashes and begins
16796 # with a dollar sign (not a hyphen), so the echo should work correctly.
16797 # The option is referenced via a variable to avoid confusing sed.
16798 lt_compile
=`echo "$ac_compile" | $SED \
16799 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16800 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16801 -e 's:$: $lt_compiler_flag:'`
16802 (eval echo "\"\$as_me:16802: $lt_compile\"" >&5)
16803 (eval "$lt_compile" 2>conftest.err
)
16805 cat conftest.err
>&5
16806 echo "$as_me:16806: \$? = $ac_status" >&5
16807 if (exit $ac_status) && test -s "$ac_outfile"; then
16808 # The compiler can only warn and ignore the option if not recognized
16809 # So say no if there are warnings other than the usual output.
16810 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
16811 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16812 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
16813 lt_cv_prog_compiler_rtti_exceptions
=yes
16819 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16820 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16822 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
16823 lt_prog_compiler_no_builtin_flag_GCJ
="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16830 lt_prog_compiler_wl_GCJ
=
16831 lt_prog_compiler_pic_GCJ
=
16832 lt_prog_compiler_static_GCJ
=
16834 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16835 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16837 if test "$GCC" = yes; then
16838 lt_prog_compiler_wl_GCJ
='-Wl,'
16839 lt_prog_compiler_static_GCJ
='-static'
16843 # All AIX code is PIC.
16844 if test "$host_cpu" = ia64
; then
16845 # AIX 5 now supports IA64 processor
16846 lt_prog_compiler_static_GCJ
='-Bstatic'
16851 # FIXME: we need at least 68020 code to build shared libraries, but
16852 # adding the `-m68020' flag to GCC prevents building anything better,
16854 lt_prog_compiler_pic_GCJ
='-m68020 -resident32 -malways-restore-a4'
16857 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
16858 # PIC is the default for these OSes.
16861 mingw
* | cygwin
* | pw32
* | os2
*)
16862 # This hack is so that the source file can tell whether it is being
16863 # built for inclusion in a dll (and should export symbols for example).
16864 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16865 # (--disable-auto-import) libraries
16866 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
16869 darwin
* | rhapsody
*)
16870 # PIC is the default on this platform
16871 # Common symbols not allowed in MH_DYLIB files
16872 lt_prog_compiler_pic_GCJ
='-fno-common'
16876 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16877 # Instead, we relocate shared libraries at runtime.
16881 # Just because we use GCC doesn't mean we suddenly get shared libraries
16882 # on systems that don't support them.
16883 lt_prog_compiler_can_build_shared_GCJ
=no
16888 if test -d /usr
/nec
; then
16889 lt_prog_compiler_pic_GCJ
=-Kconform_pic
16894 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16895 # not for PA HP-UX.
16901 lt_prog_compiler_pic_GCJ
='-fPIC'
16907 lt_prog_compiler_pic_GCJ
='-fPIC'
16911 # PORTME Check for flag to pass linker flags through the system compiler.
16914 lt_prog_compiler_wl_GCJ
='-Wl,'
16915 if test "$host_cpu" = ia64
; then
16916 # AIX 5 now supports IA64 processor
16917 lt_prog_compiler_static_GCJ
='-Bstatic'
16919 lt_prog_compiler_static_GCJ
='-bnso -bI:/lib/syscalls.exp'
16923 # PIC is the default on this platform
16924 # Common symbols not allowed in MH_DYLIB files
16925 case $cc_basename in
16927 lt_prog_compiler_pic_GCJ
='-qnocommon'
16928 lt_prog_compiler_wl_GCJ
='-Wl,'
16933 mingw
* | cygwin
* | pw32
* | os2
*)
16934 # This hack is so that the source file can tell whether it is being
16935 # built for inclusion in a dll (and should export symbols for example).
16936 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
16939 hpux9
* | hpux10
* | hpux11
*)
16940 lt_prog_compiler_wl_GCJ
='-Wl,'
16941 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16942 # not for PA HP-UX.
16948 lt_prog_compiler_pic_GCJ
='+Z'
16951 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16952 lt_prog_compiler_static_GCJ
='${wl}-a ${wl}archive'
16955 irix5
* | irix6
* | nonstopux
*)
16956 lt_prog_compiler_wl_GCJ
='-Wl,'
16957 # PIC (with -KPIC) is the default.
16958 lt_prog_compiler_static_GCJ
='-non_shared'
16962 lt_prog_compiler_pic_GCJ
='-KPIC'
16963 lt_prog_compiler_static_GCJ
='-Bstatic'
16966 linux
* | k
*bsd
*-gnu)
16967 case $cc_basename in
16969 lt_prog_compiler_wl_GCJ
='-Wl,'
16970 lt_prog_compiler_pic_GCJ
='-KPIC'
16971 lt_prog_compiler_static_GCJ
='-static'
16973 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
16974 # Portland Group compilers (*not* the Pentium gcc compiler,
16975 # which looks to be a dead project)
16976 lt_prog_compiler_wl_GCJ
='-Wl,'
16977 lt_prog_compiler_pic_GCJ
='-fpic'
16978 lt_prog_compiler_static_GCJ
='-Bstatic'
16981 lt_prog_compiler_wl_GCJ
='-Wl,'
16982 # All Alpha code is PIC.
16983 lt_prog_compiler_static_GCJ
='-non_shared'
16986 case `$CC -V 2>&1 | sed 5q` in
16989 lt_prog_compiler_pic_GCJ
='-KPIC'
16990 lt_prog_compiler_static_GCJ
='-Bstatic'
16991 lt_prog_compiler_wl_GCJ
='-Wl,'
16994 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16995 lt_prog_compiler_pic_GCJ
='-KPIC'
16996 lt_prog_compiler_static_GCJ
='-Bstatic'
16997 lt_prog_compiler_wl_GCJ
=''
17004 osf3
* | osf4
* | osf5
*)
17005 lt_prog_compiler_wl_GCJ
='-Wl,'
17006 # All OSF/1 code is PIC.
17007 lt_prog_compiler_static_GCJ
='-non_shared'
17011 lt_prog_compiler_static_GCJ
='-non_shared'
17015 lt_prog_compiler_pic_GCJ
='-KPIC'
17016 lt_prog_compiler_static_GCJ
='-Bstatic'
17017 case $cc_basename in
17018 f77
* | f90
* | f95
*)
17019 lt_prog_compiler_wl_GCJ
='-Qoption ld ';;
17021 lt_prog_compiler_wl_GCJ
='-Wl,';;
17026 lt_prog_compiler_wl_GCJ
='-Qoption ld '
17027 lt_prog_compiler_pic_GCJ
='-PIC'
17028 lt_prog_compiler_static_GCJ
='-Bstatic'
17031 sysv4 | sysv4.2uw2
* | sysv4.3
*)
17032 lt_prog_compiler_wl_GCJ
='-Wl,'
17033 lt_prog_compiler_pic_GCJ
='-KPIC'
17034 lt_prog_compiler_static_GCJ
='-Bstatic'
17038 if test -d /usr
/nec
;then
17039 lt_prog_compiler_pic_GCJ
='-Kconform_pic'
17040 lt_prog_compiler_static_GCJ
='-Bstatic'
17044 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
17045 lt_prog_compiler_wl_GCJ
='-Wl,'
17046 lt_prog_compiler_pic_GCJ
='-KPIC'
17047 lt_prog_compiler_static_GCJ
='-Bstatic'
17051 lt_prog_compiler_wl_GCJ
='-Wl,'
17052 lt_prog_compiler_can_build_shared_GCJ
=no
17056 lt_prog_compiler_pic_GCJ
='-pic'
17057 lt_prog_compiler_static_GCJ
='-Bstatic'
17061 lt_prog_compiler_can_build_shared_GCJ
=no
17066 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17067 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17070 # Check to make sure the PIC flag actually works.
17072 if test -n "$lt_prog_compiler_pic_GCJ"; then
17074 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17075 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17076 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17077 echo $ECHO_N "(cached) $ECHO_C" >&6
17079 lt_prog_compiler_pic_works_GCJ
=no
17080 ac_outfile
=conftest.
$ac_objext
17081 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17082 lt_compiler_flag
="$lt_prog_compiler_pic_GCJ"
17083 # Insert the option either (1) after the last *FLAGS variable, or
17084 # (2) before a word containing "conftest.", or (3) at the end.
17085 # Note that $ac_compile itself does not contain backslashes and begins
17086 # with a dollar sign (not a hyphen), so the echo should work correctly.
17087 # The option is referenced via a variable to avoid confusing sed.
17088 lt_compile
=`echo "$ac_compile" | $SED \
17089 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17090 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17091 -e 's:$: $lt_compiler_flag:'`
17092 (eval echo "\"\$as_me:17092: $lt_compile\"" >&5)
17093 (eval "$lt_compile" 2>conftest.err
)
17095 cat conftest.err
>&5
17096 echo "$as_me:17096: \$? = $ac_status" >&5
17097 if (exit $ac_status) && test -s "$ac_outfile"; then
17098 # The compiler can only warn and ignore the option if not recognized
17099 # So say no if there are warnings other than the usual output.
17100 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
17101 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
17102 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
17103 lt_prog_compiler_pic_works_GCJ
=yes
17109 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17110 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17112 if test x
"$lt_prog_compiler_pic_works_GCJ" = xyes
; then
17113 case $lt_prog_compiler_pic_GCJ in
17115 *) lt_prog_compiler_pic_GCJ
=" $lt_prog_compiler_pic_GCJ" ;;
17118 lt_prog_compiler_pic_GCJ
=
17119 lt_prog_compiler_can_build_shared_GCJ
=no
17124 # For platforms which do not support PIC, -DPIC is meaningless:
17126 lt_prog_compiler_pic_GCJ
=
17129 lt_prog_compiler_pic_GCJ
="$lt_prog_compiler_pic_GCJ"
17134 # Check to make sure the static flag actually works.
17136 wl
=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_GCJ\"
17137 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17138 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17139 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17140 echo $ECHO_N "(cached) $ECHO_C" >&6
17142 lt_prog_compiler_static_works_GCJ
=no
17143 save_LDFLAGS
="$LDFLAGS"
17144 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
17145 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
17146 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
17147 # The linker can only warn and ignore the option if not recognized
17148 # So say no if there are warnings
17149 if test -s conftest.err
; then
17150 # Append any errors to the config.log.
17151 cat conftest.err
1>&5
17152 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
17153 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
17154 if diff conftest.exp conftest.er2
>/dev
/null
; then
17155 lt_prog_compiler_static_works_GCJ
=yes
17158 lt_prog_compiler_static_works_GCJ
=yes
17162 LDFLAGS
="$save_LDFLAGS"
17165 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17166 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17168 if test x
"$lt_prog_compiler_static_works_GCJ" = xyes
; then
17171 lt_prog_compiler_static_GCJ
=
17175 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17176 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17177 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17178 echo $ECHO_N "(cached) $ECHO_C" >&6
17180 lt_cv_prog_compiler_c_o_GCJ
=no
17181 $rm -r conftest
2>/dev
/null
17185 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17187 lt_compiler_flag
="-o out/conftest2.$ac_objext"
17188 # Insert the option either (1) after the last *FLAGS variable, or
17189 # (2) before a word containing "conftest.", or (3) at the end.
17190 # Note that $ac_compile itself does not contain backslashes and begins
17191 # with a dollar sign (not a hyphen), so the echo should work correctly.
17192 lt_compile
=`echo "$ac_compile" | $SED \
17193 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17194 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17195 -e 's:$: $lt_compiler_flag:'`
17196 (eval echo "\"\$as_me:17196: $lt_compile\"" >&5)
17197 (eval "$lt_compile" 2>out
/conftest.err
)
17199 cat out
/conftest.err
>&5
17200 echo "$as_me:17200: \$? = $ac_status" >&5
17201 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
17203 # The compiler can only warn and ignore the option if not recognized
17204 # So say no if there are warnings
17205 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
17206 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
17207 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
17208 lt_cv_prog_compiler_c_o_GCJ
=yes
17213 # SGI C++ compiler will create directory out/ii_files/ for
17214 # template instantiation
17215 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
17216 $rm out
/* && rmdir out
17222 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17223 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17226 hard_links
="nottested"
17227 if test "$lt_cv_prog_compiler_c_o_GCJ" = no
&& test "$need_locks" != no
; then
17228 # do not overwrite the value of need_locks provided by the user
17229 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17230 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17233 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
17235 ln conftest.a conftest.b
2>&5 || hard_links
=no
17236 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
17237 { echo "$as_me:$LINENO: result: $hard_links" >&5
17238 echo "${ECHO_T}$hard_links" >&6; }
17239 if test "$hard_links" = no
; then
17240 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17241 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17248 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17249 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17252 allow_undefined_flag_GCJ
=
17253 enable_shared_with_static_runtimes_GCJ
=no
17255 archive_expsym_cmds_GCJ
=
17256 old_archive_From_new_cmds_GCJ
=
17257 old_archive_from_expsyms_cmds_GCJ
=
17258 export_dynamic_flag_spec_GCJ
=
17259 whole_archive_flag_spec_GCJ
=
17260 thread_safe_flag_spec_GCJ
=
17261 hardcode_libdir_flag_spec_GCJ
=
17262 hardcode_libdir_flag_spec_ld_GCJ
=
17263 hardcode_libdir_separator_GCJ
=
17264 hardcode_direct_GCJ
=no
17265 hardcode_minus_L_GCJ
=no
17266 hardcode_shlibpath_var_GCJ
=unsupported
17267 link_all_deplibs_GCJ
=unknown
17268 hardcode_automatic_GCJ
=no
17270 module_expsym_cmds_GCJ
=
17271 always_export_symbols_GCJ
=no
17272 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17273 # include_expsyms should be a list of space-separated symbols to be *always*
17274 # included in the symbol list
17275 include_expsyms_GCJ
=
17276 # exclude_expsyms can be an extended regexp of symbols to exclude
17277 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17278 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17279 # as well as any symbol that contains `d'.
17280 exclude_expsyms_GCJ
="_GLOBAL_OFFSET_TABLE_"
17281 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17282 # platforms (ab)use it in PIC code, but their linkers get confused if
17283 # the symbol is explicitly referenced. Since portable code cannot
17284 # rely on this symbol name, it's probably fine to never include it in
17285 # preloaded symbol tables.
17286 extract_expsyms_cmds
=
17287 # Just being paranoid about ensuring that cc_basename is set.
17288 for cc_temp
in $compiler""; do
17290 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
17291 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
17296 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17299 cygwin
* | mingw
* | pw32
*)
17300 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17301 # When not using gcc, we currently assume that we are using
17302 # Microsoft Visual C++.
17303 if test "$GCC" != yes; then
17308 # we just hope/assume this is gcc and not c89 (= MSVC++)
17317 if test "$with_gnu_ld" = yes; then
17318 # If archive_cmds runs LD, not CC, wlarc should be empty
17321 # Set some defaults for GNU ld with shared library support. These
17322 # are reset later if shared libraries are not supported. Putting them
17323 # here allows them to be overridden if necessary.
17324 runpath_var
=LD_RUN_PATH
17325 hardcode_libdir_flag_spec_GCJ
='${wl}--rpath ${wl}$libdir'
17326 export_dynamic_flag_spec_GCJ
='${wl}--export-dynamic'
17327 # ancient GNU ld didn't support --whole-archive et. al.
17328 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
17329 whole_archive_flag_spec_GCJ
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17331 whole_archive_flag_spec_GCJ
=
17333 supports_anon_versioning
=no
17334 case `$LD -v 2>/dev/null` in
17335 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
17336 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
17337 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
17338 *\
2.11.
*) ;; # other 2.11 versions
17339 *) supports_anon_versioning
=yes ;;
17342 # See if GNU ld supports shared libraries.
17344 aix3
* | aix4
* | aix5
*)
17345 # On AIX/PPC, the GNU linker is very broken
17346 if test "$host_cpu" != ia64
; then
17350 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17351 *** to be unable to reliably create shared libraries on AIX.
17352 *** Therefore, libtool is disabling shared libraries support. If you
17353 *** really care for shared libraries, you may want to modify your PATH
17354 *** so that a non-GNU linker is found, and then restart.
17361 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)'
17362 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17363 hardcode_minus_L_GCJ
=yes
17365 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17366 # that the semantics of dynamic libraries on AmigaOS, at least up
17367 # to version 4, is to share data among multiple programs linked
17368 # with the same dynamic library. Since this doesn't match the
17369 # behavior of shared libraries on other platforms, we can't use
17375 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
17376 allow_undefined_flag_GCJ
=unsupported
17377 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17378 # support --undefined. This deserves some investigation. FIXME
17379 archive_cmds_GCJ
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17385 cygwin
* | mingw
* | pw32
*)
17386 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17387 # as there is no search path for DLLs.
17388 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17389 allow_undefined_flag_GCJ
=unsupported
17390 always_export_symbols_GCJ
=no
17391 enable_shared_with_static_runtimes_GCJ
=yes
17392 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17394 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
17395 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17396 # If the export-symbols file already is a .def file (1st line
17397 # is EXPORTS), use it as is; otherwise, prepend...
17398 archive_expsym_cmds_GCJ
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17399 cp $export_symbols $output_objdir/$soname.def;
17401 echo EXPORTS > $output_objdir/$soname.def;
17402 cat $export_symbols >> $output_objdir/$soname.def;
17404 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17411 hardcode_direct_GCJ
=no
17412 hardcode_shlibpath_var_GCJ
=no
17413 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
17414 export_dynamic_flag_spec_GCJ
='${wl}-E'
17415 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17416 # Instead, shared libraries are loaded at an image base (0x10000000 by
17417 # default) and relocated if they conflict, which is a slow very memory
17418 # consuming and fragmenting process. To avoid this, we pick a random,
17419 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17420 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17421 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'
17422 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'
17425 gnu
* | linux
* | k
*bsd
*-gnu)
17426 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
17428 case $cc_basename,$host_cpu in
17429 pgcc
*) # Portland Group C compiler
17430 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'
17431 tmp_addflag
=' $pic_flag'
17433 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
17434 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'
17435 tmp_addflag
=' $pic_flag -Mnomain' ;;
17436 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
17437 tmp_addflag
=' -i_dynamic' ;;
17438 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
17439 tmp_addflag
=' -i_dynamic -nofor_main' ;;
17440 ifc
* | ifort
*) # Intel Fortran compiler
17441 tmp_addflag
=' -nofor_main' ;;
17443 case `$CC -V 2>&1 | sed 5q` in
17444 *Sun\ C
*) # Sun C 5.9
17445 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'
17446 tmp_sharedflag
='-G' ;;
17447 *Sun\ F
*) # Sun Fortran 8.3
17448 tmp_sharedflag
='-G' ;;
17450 tmp_sharedflag
='-shared' ;;
17452 archive_cmds_GCJ
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17454 if test $supports_anon_versioning = yes; then
17455 archive_expsym_cmds_GCJ
='$echo "{ global:" > $output_objdir/$libname.ver~
17456 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17457 $echo "local: *; };" >> $output_objdir/$libname.ver~
17458 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17466 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
17467 archive_cmds_GCJ
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17470 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17471 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17476 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
17480 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17481 *** create shared libraries on Solaris systems. Therefore, libtool
17482 *** is disabling shared libraries support. We urge you to upgrade GNU
17483 *** binutils to release 2.9.1 or newer. Another option is to modify
17484 *** your PATH or compiler configuration so that the native linker is
17485 *** used, and then restart.
17488 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
17489 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17490 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17496 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
17497 case `$LD -v 2>&1` in
17498 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
17502 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17503 *** reliably create shared libraries on SCO systems. Therefore, libtool
17504 *** is disabling shared libraries support. We urge you to upgrade GNU
17505 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17506 *** your PATH or compiler configuration so that the native linker is
17507 *** used, and then restart.
17512 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
17513 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17514 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17515 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17524 archive_cmds_GCJ
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17526 hardcode_direct_GCJ
=yes
17527 hardcode_shlibpath_var_GCJ
=no
17531 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
17532 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17533 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17540 if test "$ld_shlibs_GCJ" = no
; then
17542 hardcode_libdir_flag_spec_GCJ
=
17543 export_dynamic_flag_spec_GCJ
=
17544 whole_archive_flag_spec_GCJ
=
17547 # PORTME fill in a description of your system's linker (not GNU ld)
17550 allow_undefined_flag_GCJ
=unsupported
17551 always_export_symbols_GCJ
=yes
17552 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'
17553 # Note: this linker hardcodes the directories in LIBPATH if there
17554 # are no directories specified by -L.
17555 hardcode_minus_L_GCJ
=yes
17556 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17557 # Neither direct hardcoding nor static linking is supported with a
17559 hardcode_direct_GCJ
=unsupported
17564 if test "$host_cpu" = ia64
; then
17565 # On IA64, the linker does run time linking by default, so we don't
17566 # have to do anything special.
17567 aix_use_runtimelinking
=no
17568 exp_sym_flag
='-Bexport'
17571 # If we're using GNU nm, then we don't want the "-C" option.
17572 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17573 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
17574 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'
17576 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'
17578 aix_use_runtimelinking
=no
17580 # Test if we are trying to use run time linking or normal
17581 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17582 # need to do runtime linking.
17583 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
17584 for ld_flag
in $LDFLAGS; do
17585 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
17586 aix_use_runtimelinking
=yes
17593 exp_sym_flag
='-bexport'
17594 no_entry_flag
='-bnoentry'
17597 # When large executables or shared objects are built, AIX ld can
17598 # have problems creating the table of contents. If linking a library
17599 # or program results in "error TOC overflow" add -mminimal-toc to
17600 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17601 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17603 archive_cmds_GCJ
=''
17604 hardcode_direct_GCJ
=yes
17605 hardcode_libdir_separator_GCJ
=':'
17606 link_all_deplibs_GCJ
=yes
17608 if test "$GCC" = yes; then
17609 case $host_os in aix4.
[012]|aix4.
[012].
*)
17610 # We only want to do this on AIX 4.2 and lower, the check
17611 # below for broken collect2 doesn't work under 4.3+
17612 collect2name
=`${CC} -print-prog-name=collect2`
17613 if test -f "$collect2name" && \
17614 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
17616 # We have reworked collect2
17619 # We have old collect2
17620 hardcode_direct_GCJ
=unsupported
17621 # It fails to find uninstalled libraries when the uninstalled
17622 # path is not listed in the libpath. Setting hardcode_minus_L
17623 # to unsupported forces relinking
17624 hardcode_minus_L_GCJ
=yes
17625 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17626 hardcode_libdir_separator_GCJ
=
17630 shared_flag
='-shared'
17631 if test "$aix_use_runtimelinking" = yes; then
17632 shared_flag
="$shared_flag "'${wl}-G'
17636 if test "$host_cpu" = ia64
; then
17637 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17638 # chokes on -Wl,-G. The following line is correct:
17641 if test "$aix_use_runtimelinking" = yes; then
17642 shared_flag
='${wl}-G'
17644 shared_flag
='${wl}-bM:SRE'
17649 # It seems that -bexpall does not export symbols beginning with
17650 # underscore (_), so it is better to generate a list of symbols to export.
17651 always_export_symbols_GCJ
=yes
17652 if test "$aix_use_runtimelinking" = yes; then
17653 # Warning - without using the other runtime loading flags (-brtl),
17654 # -berok will link without error, but may produce a broken library.
17655 allow_undefined_flag_GCJ
='-berok'
17656 # Determine the default libpath from the value encoded in an empty executable.
17657 cat >conftest.
$ac_ext <<_ACEOF
17660 cat confdefs.h
>>conftest.
$ac_ext
17661 cat >>conftest.
$ac_ext <<_ACEOF
17662 /* end confdefs.h. */
17672 rm -f conftest.
$ac_objext conftest
$ac_exeext
17673 if { (ac_try
="$ac_link"
17674 case "(($ac_try" in
17675 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17676 *) ac_try_echo=$ac_try;;
17678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17679 (eval "$ac_link") 2>conftest.er1
17681 grep -v '^ *+' conftest.er1 >conftest.err
17683 cat conftest.err >&5
17684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685 (exit $ac_status); } && {
17686 test -z "$ac_c_werror_flag" ||
17687 test ! -s conftest.err
17688 } && test -s conftest$ac_exeext &&
17689 $as_test_x conftest$ac_exeext; then
17691 lt_aix_libpath_sed='
17692 /Import File Strings/,/^$/ {
17698 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
17699 # Check for a 64-bit object if we didn't find anything.
17700 if test -z "$aix_libpath"; then
17701 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
17704 echo "$as_me: failed program was:" >&5
17705 sed 's/^/| /' conftest.$ac_ext >&5
17710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17711 conftest$ac_exeext conftest.$ac_ext
17712 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17714 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17715 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"
17717 if test "$host_cpu" = ia64; then
17718 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17719 allow_undefined_flag_GCJ="-z nodefs"
17720 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"
17722 # Determine the default libpath from the value encoded in an empty executable.
17723 cat >conftest.$ac_ext <<_ACEOF
17726 cat confdefs.h >>conftest.$ac_ext
17727 cat >>conftest.$ac_ext <<_ACEOF
17728 /* end confdefs.h. */
17738 rm -f conftest.$ac_objext conftest$ac_exeext
17739 if { (ac_try="$ac_link"
17740 case "(($ac_try" in
17741 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17742 *) ac_try_echo
=$ac_try;;
17744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17745 (eval "$ac_link") 2>conftest.er1
17747 grep -v '^ *+' conftest.er1
>conftest.err
17749 cat conftest.err
>&5
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); } && {
17752 test -z "$ac_c_werror_flag" ||
17753 test ! -s conftest.err
17754 } && test -s conftest
$ac_exeext &&
17755 $as_test_x conftest
$ac_exeext; then
17757 lt_aix_libpath_sed
='
17758 /Import File Strings/,/^$/ {
17764 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17765 # Check for a 64-bit object if we didn't find anything.
17766 if test -z "$aix_libpath"; then
17767 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17770 echo "$as_me: failed program was:" >&5
17771 sed 's/^/| /' conftest.
$ac_ext >&5
17776 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17777 conftest
$ac_exeext conftest.
$ac_ext
17778 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17780 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
17781 # Warning - without using the other run time loading flags,
17782 # -berok will link without error, but may produce a broken library.
17783 no_undefined_flag_GCJ
=' ${wl}-bernotok'
17784 allow_undefined_flag_GCJ
=' ${wl}-berok'
17785 # Exported symbols can be pulled into shared objects from archives
17786 whole_archive_flag_spec_GCJ
='$convenience'
17787 archive_cmds_need_lc_GCJ
=yes
17788 # This is similar to how AIX traditionally builds its shared libraries.
17789 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'
17795 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)'
17796 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17797 hardcode_minus_L_GCJ
=yes
17798 # see comment about different semantics on the GNU ld section
17803 export_dynamic_flag_spec_GCJ
=-rdynamic
17806 cygwin
* | mingw
* | pw32
*)
17807 # When not using gcc, we currently assume that we are using
17808 # Microsoft Visual C++.
17809 # hardcode_libdir_flag_spec is actually meaningless, as there is
17810 # no search path for DLLs.
17811 hardcode_libdir_flag_spec_GCJ
=' '
17812 allow_undefined_flag_GCJ
=unsupported
17813 # Tell ltmain to make .lib files, not .a files.
17815 # Tell ltmain to make .dll files, not .so files.
17817 # FIXME: Setting linknames here is a bad hack.
17818 archive_cmds_GCJ
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17819 # The linker will automatically build a .lib file if we build a DLL.
17820 old_archive_From_new_cmds_GCJ
='true'
17821 # FIXME: Should let the user specify the lib program.
17822 old_archive_cmds_GCJ
='lib -OUT:$oldlib$oldobjs$old_deplibs'
17823 fix_srcfile_path_GCJ
='`cygpath -w "$srcfile"`'
17824 enable_shared_with_static_runtimes_GCJ
=yes
17827 darwin
* | rhapsody
*)
17829 rhapsody
* | darwin1.
[012])
17830 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}suppress'
17833 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17834 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17836 case ${MACOSX_DEPLOYMENT_TARGET} in
17838 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17841 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}dynamic_lookup'
17847 archive_cmds_need_lc_GCJ
=no
17848 hardcode_direct_GCJ
=no
17849 hardcode_automatic_GCJ
=yes
17850 hardcode_shlibpath_var_GCJ
=unsupported
17851 whole_archive_flag_spec_GCJ
=''
17852 link_all_deplibs_GCJ
=yes
17853 if test "$GCC" = yes ; then
17854 output_verbose_link_cmd
='echo'
17855 archive_cmds_GCJ
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17856 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17857 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17858 archive_expsym_cmds_GCJ
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17859 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}'
17861 case $cc_basename in
17863 output_verbose_link_cmd
='echo'
17864 archive_cmds_GCJ
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17865 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17866 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17867 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}'
17868 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}'
17878 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17879 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17880 hardcode_shlibpath_var_GCJ
=no
17887 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17888 # support. Future versions do this automatically, but an explicit c++rt0.o
17889 # does not break anything, and helps significantly (at the cost of a little
17892 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17893 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17894 hardcode_direct_GCJ
=yes
17895 hardcode_shlibpath_var_GCJ
=no
17898 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17900 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17901 hardcode_direct_GCJ
=yes
17902 hardcode_minus_L_GCJ
=yes
17903 hardcode_shlibpath_var_GCJ
=no
17906 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17907 freebsd
* | dragonfly
*)
17908 archive_cmds_GCJ
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17909 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17910 hardcode_direct_GCJ
=yes
17911 hardcode_shlibpath_var_GCJ
=no
17915 if test "$GCC" = yes; then
17916 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'
17918 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'
17920 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17921 hardcode_libdir_separator_GCJ
=:
17922 hardcode_direct_GCJ
=yes
17924 # hardcode_minus_L: Not really in the search PATH,
17925 # but as the default location of the library.
17926 hardcode_minus_L_GCJ
=yes
17927 export_dynamic_flag_spec_GCJ
='${wl}-E'
17931 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
17932 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17934 archive_cmds_GCJ
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17936 if test "$with_gnu_ld" = no
; then
17937 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17938 hardcode_libdir_separator_GCJ
=:
17940 hardcode_direct_GCJ
=yes
17941 export_dynamic_flag_spec_GCJ
='${wl}-E'
17943 # hardcode_minus_L: Not really in the search PATH,
17944 # but as the default location of the library.
17945 hardcode_minus_L_GCJ
=yes
17950 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
17953 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17956 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17959 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17965 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17968 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17971 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17975 if test "$with_gnu_ld" = no
; then
17976 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17977 hardcode_libdir_separator_GCJ
=:
17981 hardcode_libdir_flag_spec_ld_GCJ
='+b $libdir'
17982 hardcode_direct_GCJ
=no
17983 hardcode_shlibpath_var_GCJ
=no
17986 hardcode_direct_GCJ
=yes
17987 export_dynamic_flag_spec_GCJ
='${wl}-E'
17989 # hardcode_minus_L: Not really in the search PATH,
17990 # but as the default location of the library.
17991 hardcode_minus_L_GCJ
=yes
17997 irix5
* | irix6
* | nonstopux
*)
17998 if test "$GCC" = yes; then
17999 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'
18001 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'
18002 hardcode_libdir_flag_spec_ld_GCJ
='-rpath $libdir'
18004 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
18005 hardcode_libdir_separator_GCJ
=:
18006 link_all_deplibs_GCJ
=yes
18010 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
18011 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18013 archive_cmds_GCJ
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18015 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
18016 hardcode_direct_GCJ
=yes
18017 hardcode_shlibpath_var_GCJ
=no
18021 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18022 hardcode_direct_GCJ
=yes
18023 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
18024 hardcode_libdir_separator_GCJ
=:
18025 hardcode_shlibpath_var_GCJ
=no
18029 if test -f /usr
/libexec
/ld.so
; then
18030 hardcode_direct_GCJ
=yes
18031 hardcode_shlibpath_var_GCJ
=no
18032 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18033 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18034 archive_expsym_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18035 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
18036 export_dynamic_flag_spec_GCJ
='${wl}-E'
18039 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
18040 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18041 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
18044 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18045 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
18055 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
18056 hardcode_minus_L_GCJ
=yes
18057 allow_undefined_flag_GCJ
=unsupported
18058 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'
18059 old_archive_From_new_cmds_GCJ
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18063 if test "$GCC" = yes; then
18064 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
18065 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'
18067 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
18068 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'
18070 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
18071 hardcode_libdir_separator_GCJ
=:
18074 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
18075 if test "$GCC" = yes; then
18076 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
18077 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'
18078 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
18080 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
18081 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'
18082 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~
18083 $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'
18085 # Both c and cxx compiler support -rpath directly
18086 hardcode_libdir_flag_spec_GCJ
='-rpath $libdir'
18088 hardcode_libdir_separator_GCJ
=:
18092 no_undefined_flag_GCJ
=' -z text'
18093 if test "$GCC" = yes; then
18095 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18096 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18097 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18100 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18101 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18102 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18104 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
18105 hardcode_shlibpath_var_GCJ
=no
18107 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
18109 # The compiler driver will combine and reorder linker options,
18110 # but understands `-z linker_flag'. GCC discards it without `$wl',
18111 # but is careful enough not to reorder.
18112 # Supported since Solaris 2.6 (maybe 2.5.1?)
18113 if test "$GCC" = yes; then
18114 whole_archive_flag_spec_GCJ
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18116 whole_archive_flag_spec_GCJ
='-z allextract$convenience -z defaultextract'
18120 link_all_deplibs_GCJ
=yes
18124 if test "x$host_vendor" = xsequent
; then
18125 # Use $CC to link under sequent, because it throws in some extra .o
18126 # files that make .init and .fini sections work.
18127 archive_cmds_GCJ
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18129 archive_cmds_GCJ
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18131 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
18132 hardcode_direct_GCJ
=yes
18133 hardcode_minus_L_GCJ
=yes
18134 hardcode_shlibpath_var_GCJ
=no
18138 case $host_vendor in
18140 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18141 hardcode_direct_GCJ
=yes # is this really true???
18144 ## LD is ld it makes a PLAMLIB
18145 ## CC just makes a GrossModule.
18146 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18147 reload_cmds_GCJ
='$CC -r -o $output$reload_objs'
18148 hardcode_direct_GCJ
=no
18151 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18152 hardcode_direct_GCJ
=no
#Motorola manual says yes, but my tests say they lie
18155 runpath_var
='LD_RUN_PATH'
18156 hardcode_shlibpath_var_GCJ
=no
18160 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18161 hardcode_shlibpath_var_GCJ
=no
18162 export_dynamic_flag_spec_GCJ
='-Bexport'
18166 if test -d /usr
/nec
; then
18167 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18168 hardcode_shlibpath_var_GCJ
=no
18169 runpath_var
=LD_RUN_PATH
18170 hardcode_runpath_var
=yes
18175 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
18176 no_undefined_flag_GCJ
='${wl}-z,text'
18177 archive_cmds_need_lc_GCJ
=no
18178 hardcode_shlibpath_var_GCJ
=no
18179 runpath_var
='LD_RUN_PATH'
18181 if test "$GCC" = yes; then
18182 archive_cmds_GCJ
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18183 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18185 archive_cmds_GCJ
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18186 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18190 sysv5
* | sco3.2v5
* | sco5v6
*)
18191 # Note: We can NOT use -z defs as we might desire, because we do not
18192 # link with -lc, and that would cause any symbols used from libc to
18193 # always be unresolved, which means just about no library would
18194 # ever link correctly. If we're not using GNU ld we use -z text
18195 # though, which does catch some bad symbols but isn't as heavy-handed
18197 no_undefined_flag_GCJ
='${wl}-z,text'
18198 allow_undefined_flag_GCJ
='${wl}-z,nodefs'
18199 archive_cmds_need_lc_GCJ
=no
18200 hardcode_shlibpath_var_GCJ
=no
18201 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18202 hardcode_libdir_separator_GCJ
=':'
18203 link_all_deplibs_GCJ
=yes
18204 export_dynamic_flag_spec_GCJ
='${wl}-Bexport'
18205 runpath_var
='LD_RUN_PATH'
18207 if test "$GCC" = yes; then
18208 archive_cmds_GCJ
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18209 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18211 archive_cmds_GCJ
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18212 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18217 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18218 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
18219 hardcode_shlibpath_var_GCJ
=no
18228 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18229 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18230 test "$ld_shlibs_GCJ" = no
&& can_build_shared
=no
18233 # Do we need to explicitly link libc?
18235 case "x$archive_cmds_need_lc_GCJ" in
18237 # Assume -lc should be added
18238 archive_cmds_need_lc_GCJ
=yes
18240 if test "$enable_shared" = yes && test "$GCC" = yes; then
18241 case $archive_cmds_GCJ in
18243 # FIXME: we may have to deal with multi-command sequences.
18246 # Test whether the compiler implicitly links with -lc since on some
18247 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18248 # to ld, don't add -lc before -lgcc.
18249 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18250 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18252 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
18254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18255 (eval $ac_compile) 2>&5
18257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258 (exit $ac_status); } 2>conftest.err
; then
18261 libobjs
=conftest.
$ac_objext
18263 wl
=$lt_prog_compiler_wl_GCJ
18264 pic_flag
=$lt_prog_compiler_pic_GCJ
18270 lt_save_allow_undefined_flag
=$allow_undefined_flag_GCJ
18271 allow_undefined_flag_GCJ
=
18272 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18273 (eval $archive_cmds_GCJ 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
18275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276 (exit $ac_status); }
18278 archive_cmds_need_lc_GCJ
=no
18280 archive_cmds_need_lc_GCJ
=yes
18282 allow_undefined_flag_GCJ
=$lt_save_allow_undefined_flag
18284 cat conftest.err
1>&5
18287 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18288 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18295 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18296 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18297 library_names_spec
=
18298 libname_spec
='lib$name'
18302 postuninstall_cmds
=
18306 shlibpath_overrides_runpath
=unknown
18308 dynamic_linker
="$host_os ld.so"
18309 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
18311 need_lib_prefix
=unknown
18312 hardcode_into_libs
=no
18314 # when you set need_version to no, make sure it does not cause -set_version
18315 # flags to be left without arguments
18316 need_version
=unknown
18321 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
18322 shlibpath_var
=LIBPATH
18324 # AIX 3 has no versioning support, so we append a major version to the name.
18325 soname_spec
='${libname}${release}${shared_ext}$major'
18332 hardcode_into_libs
=yes
18333 if test "$host_cpu" = ia64
; then
18334 # AIX 5 supports IA64
18335 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18336 shlibpath_var
=LD_LIBRARY_PATH
18338 # With GCC up to 2.95.x, collect2 would create an import file
18339 # for dependence libraries. The import file would start with
18340 # the line `#! .'. This would cause the generated library to
18341 # depend on `.', always an invalid library. This was fixed in
18342 # development snapshots of GCC prior to 3.0.
18344 aix4 | aix4.
[01] | aix4.
[01].
*)
18345 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18347 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
18350 can_build_shared
=no
18354 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18355 # soname into executable. Probably we can add versioning support to
18356 # collect2, so additional links can be useful in future.
18357 if test "$aix_use_runtimelinking" = yes; then
18358 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18359 # instead of lib<name>.a to let people know that these are not
18360 # typical AIX shared libraries.
18361 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18363 # We preserve .a as extension for shared libraries through AIX4.2
18364 # and later when we are not doing run time linking.
18365 library_names_spec
='${libname}${release}.a $libname.a'
18366 soname_spec
='${libname}${release}${shared_ext}$major'
18368 shlibpath_var
=LIBPATH
18373 library_names_spec
='$libname.ixlibrary $libname.a'
18374 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18375 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'
18379 library_names_spec
='${libname}${shared_ext}'
18380 dynamic_linker
="$host_os ld.so"
18381 shlibpath_var
=LIBRARY_PATH
18387 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18388 soname_spec
='${libname}${release}${shared_ext}$major'
18389 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
18390 shlibpath_var
=LD_LIBRARY_PATH
18391 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18392 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
18393 # the default ld.so.conf also contains /usr/contrib/lib and
18394 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18395 # libtool to hard-code these into programs
18398 cygwin
* | mingw
* | pw32
*)
18399 version_type
=windows
18404 case $GCC,$host_os in
18405 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
18406 library_names_spec
='$libname.dll.a'
18407 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18408 postinstall_cmds
='base_file=`basename \${file}`~
18409 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18410 dldir=$destdir/`dirname \$dlpath`~
18411 test -d \$dldir || mkdir -p \$dldir~
18412 $install_prog $dir/$dlname \$dldir/$dlname~
18413 chmod a+x \$dldir/$dlname'
18414 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18415 dlpath=$dir/\$dldll~
18417 shlibpath_overrides_runpath
=yes
18421 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18422 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18423 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
18426 # MinGW DLLs use traditional 'lib' prefix
18427 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18428 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18429 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
18430 # It is most probably a Windows format PATH printed by
18431 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18432 # path with ; separators, and with drive letters. We can handle the
18433 # drive letters (cygwin fileutils understands them), so leave them,
18434 # especially as we might pass files found there to a mingw objdump,
18435 # which wouldn't understand a cygwinified path. Ahh.
18436 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18438 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18442 # pw32 DLLs use 'pw' prefix rather than 'lib'
18443 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18449 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18452 dynamic_linker
='Win32 ld.exe'
18453 # FIXME: first we should search . and the directory the executable is in
18457 darwin
* | rhapsody
*)
18458 dynamic_linker
="$host_os dyld"
18459 version_type
=darwin
18462 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18463 soname_spec
='${libname}${release}${major}$shared_ext'
18464 shlibpath_overrides_runpath
=yes
18465 shlibpath_var
=DYLD_LIBRARY_PATH
18466 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
18468 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
18475 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18476 soname_spec
='${libname}${release}${shared_ext}$major'
18477 shlibpath_var
=LD_LIBRARY_PATH
18484 freebsd
* | dragonfly
*)
18485 # DragonFly does not have aout. When/if they implement a new
18486 # versioning mechanism, adjust this.
18487 if test -x /usr
/bin
/objformat
; then
18488 objformat
=`/usr/bin/objformat`
18491 freebsd
[123]*) objformat
=aout
;;
18492 *) objformat
=elf
;;
18495 version_type
=freebsd-
$objformat
18496 case $version_type in
18498 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18503 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18507 shlibpath_var
=LD_LIBRARY_PATH
18510 shlibpath_overrides_runpath
=yes
18512 freebsd3.
[01]* | freebsdelf3.
[01]*)
18513 shlibpath_overrides_runpath
=yes
18514 hardcode_into_libs
=yes
18516 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
18517 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
18518 shlibpath_overrides_runpath
=no
18519 hardcode_into_libs
=yes
18521 *) # from 4.6 on, and DragonFly
18522 shlibpath_overrides_runpath
=yes
18523 hardcode_into_libs
=yes
18532 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18533 soname_spec
='${libname}${release}${shared_ext}$major'
18534 shlibpath_var
=LD_LIBRARY_PATH
18535 hardcode_into_libs
=yes
18538 hpux9
* | hpux10
* | hpux11
*)
18539 # Give a soname corresponding to the major version so that dld.sl refuses to
18540 # link against other versions.
18547 hardcode_into_libs
=yes
18548 dynamic_linker
="$host_os dld.so"
18549 shlibpath_var
=LD_LIBRARY_PATH
18550 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18551 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18552 soname_spec
='${libname}${release}${shared_ext}$major'
18553 if test "X$HPUX_IA64_MODE" = X32
; then
18554 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18556 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
18558 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18562 hardcode_into_libs
=yes
18563 dynamic_linker
="$host_os dld.sl"
18564 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
18565 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18566 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18567 soname_spec
='${libname}${release}${shared_ext}$major'
18568 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18569 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18573 dynamic_linker
="$host_os dld.sl"
18574 shlibpath_var
=SHLIB_PATH
18575 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
18576 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18577 soname_spec
='${libname}${release}${shared_ext}$major'
18580 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18581 postinstall_cmds
='chmod 555 $lib'
18588 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18589 soname_spec
='${libname}${release}${shared_ext}$major'
18590 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
18591 shlibpath_var
=LD_LIBRARY_PATH
18592 shlibpath_overrides_runpath
=no
18593 hardcode_into_libs
=yes
18596 irix5
* | irix6
* | nonstopux
*)
18598 nonstopux
*) version_type
=nonstopux
;;
18600 if test "$lt_cv_prog_gnu_ld" = yes; then
18608 soname_spec
='${libname}${release}${shared_ext}$major'
18609 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18611 irix5
* | nonstopux
*)
18612 libsuff
= shlibsuff
=
18615 case $LD in # libtool.m4 will add one of these switches to LD
18616 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
18617 libsuff
= shlibsuff
= libmagic
=32-bit;;
18618 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
18619 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
18620 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
18621 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
18622 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
18626 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
18627 shlibpath_overrides_runpath
=no
18628 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18629 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
18630 hardcode_into_libs
=yes
18633 # No shared lib support for Linux oldld, aout, or coff.
18634 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
18638 # This must be Linux ELF.
18639 linux
* | k
*bsd
*-gnu)
18643 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18644 soname_spec
='${libname}${release}${shared_ext}$major'
18645 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18646 shlibpath_var
=LD_LIBRARY_PATH
18647 shlibpath_overrides_runpath
=no
18648 # This implies no fast_install, which is unacceptable.
18649 # Some rework will be needed to allow for fast_install
18650 # before this can be enabled.
18651 hardcode_into_libs
=yes
18652 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18653 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
18655 # Append ld.so.conf contents to the search path
18656 if test -f /etc
/ld.so.conf
; then
18657 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' ' '`
18658 sys_lib_dlsearch_path_spec
="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18661 # We used to test for /lib/ld.so.1 and disable shared libraries on
18662 # powerpc, because MkLinux only supported shared libraries with the
18663 # GNU dynamic linker. Since this was broken with cross compilers,
18664 # most powerpc-linux boxes support dynamic linking these days and
18665 # people can always --disable-shared, the test was removed, and we
18666 # assume the GNU/Linux dynamic linker is in use.
18667 dynamic_linker
='GNU/Linux ld.so'
18674 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
18675 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18676 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18677 dynamic_linker
='NetBSD (a.out) ld.so'
18679 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18680 soname_spec
='${libname}${release}${shared_ext}$major'
18681 dynamic_linker
='NetBSD ld.elf_so'
18683 shlibpath_var
=LD_LIBRARY_PATH
18684 shlibpath_overrides_runpath
=yes
18685 hardcode_into_libs
=yes
18690 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18691 shlibpath_var
=LD_LIBRARY_PATH
18692 shlibpath_overrides_runpath
=yes
18699 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18700 soname_spec
='${libname}${release}${shared_ext}$major'
18701 shlibpath_var
=LD_LIBRARY_PATH
18702 shlibpath_overrides_runpath
=yes
18707 sys_lib_dlsearch_path_spec
="/usr/lib"
18709 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18711 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
18712 *) need_version
=no
;;
18714 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18715 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18716 shlibpath_var
=LD_LIBRARY_PATH
18717 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18719 openbsd2.
[89] | openbsd2.
[89].
*)
18720 shlibpath_overrides_runpath
=no
18723 shlibpath_overrides_runpath
=yes
18727 shlibpath_overrides_runpath
=yes
18732 libname_spec
='$name'
18735 library_names_spec
='$libname${shared_ext} $libname.a'
18736 dynamic_linker
='OS/2 ld.exe'
18737 shlibpath_var
=LIBPATH
18740 osf3
* | osf4
* | osf5
*)
18744 soname_spec
='${libname}${release}${shared_ext}$major'
18745 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18746 shlibpath_var
=LD_LIBRARY_PATH
18747 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18748 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
18759 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18760 soname_spec
='${libname}${release}${shared_ext}$major'
18761 shlibpath_var
=LD_LIBRARY_PATH
18762 shlibpath_overrides_runpath
=yes
18763 hardcode_into_libs
=yes
18764 # ldd complains unless libraries are executable
18765 postinstall_cmds
='chmod +x $lib'
18770 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18771 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18772 shlibpath_var
=LD_LIBRARY_PATH
18773 shlibpath_overrides_runpath
=yes
18774 if test "$with_gnu_ld" = yes; then
18782 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18783 soname_spec
='${libname}${release}${shared_ext}$major'
18784 shlibpath_var
=LD_LIBRARY_PATH
18785 case $host_vendor in
18787 shlibpath_overrides_runpath
=no
18789 export_dynamic_flag_spec
='${wl}-Blargedynsym'
18790 runpath_var
=LD_RUN_PATH
18798 shlibpath_overrides_runpath
=no
18799 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
18805 if test -d /usr
/nec
;then
18807 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18808 soname_spec
='$libname${shared_ext}.$major'
18809 shlibpath_var
=LD_LIBRARY_PATH
18813 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
18814 version_type
=freebsd-elf
18817 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18818 soname_spec
='${libname}${release}${shared_ext}$major'
18819 shlibpath_var
=LD_LIBRARY_PATH
18820 hardcode_into_libs
=yes
18821 if test "$with_gnu_ld" = yes; then
18822 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18823 shlibpath_overrides_runpath
=no
18825 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
18826 shlibpath_overrides_runpath
=yes
18829 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
18833 sys_lib_dlsearch_path_spec
='/usr/lib'
18838 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18839 soname_spec
='${libname}${release}${shared_ext}$major'
18840 shlibpath_var
=LD_LIBRARY_PATH
18847 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18848 echo "${ECHO_T}$dynamic_linker" >&6; }
18849 test "$dynamic_linker" = no
&& can_build_shared
=no
18851 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
18852 if test "$GCC" = yes; then
18853 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18856 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18857 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18858 hardcode_action_GCJ
=
18859 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18860 test -n "$runpath_var_GCJ" || \
18861 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18863 # We can hardcode non-existant directories.
18864 if test "$hardcode_direct_GCJ" != no
&&
18865 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18866 # have to relink, otherwise we might link with an installed library
18867 # when we should be linking with a yet-to-be-installed one
18868 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18869 test "$hardcode_minus_L_GCJ" != no
; then
18870 # Linking always hardcodes the temporary library directory.
18871 hardcode_action_GCJ
=relink
18873 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18874 hardcode_action_GCJ
=immediate
18877 # We cannot hardcode anything, or else we can only hardcode existing
18879 hardcode_action_GCJ
=unsupported
18881 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18882 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18884 if test "$hardcode_action_GCJ" = relink
; then
18885 # Fast installation is not supported
18886 enable_fast_install
=no
18887 elif test "$shlibpath_overrides_runpath" = yes ||
18888 test "$enable_shared" = no
; then
18889 # Fast installation is not necessary
18890 enable_fast_install
=needless
18894 # The else clause should only fire when bootstrapping the
18895 # libtool distribution, otherwise you forgot to ship ltmain.sh
18896 # with your package, and you will get complaints that there are
18897 # no rules to generate ltmain.sh.
18898 if test -f "$ltmain"; then
18899 # See if we are running on zsh, and set the options which allow our commands through
18900 # without removal of \ escapes.
18901 if test -n "${ZSH_VERSION+set}" ; then
18902 setopt NO_GLOB_SUBST
18904 # Now quote all the things that may contain metacharacters while being
18905 # careful not to overquote the AC_SUBSTed values. We take copies of the
18906 # variables and quote the copies for generation of the libtool script.
18907 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18909 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18910 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18911 deplibs_check_method reload_flag reload_cmds need_locks \
18912 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18913 lt_cv_sys_global_symbol_to_c_name_address \
18914 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18915 old_postinstall_cmds old_postuninstall_cmds \
18919 lt_prog_compiler_wl_GCJ \
18920 lt_prog_compiler_pic_GCJ \
18921 lt_prog_compiler_static_GCJ \
18922 lt_prog_compiler_no_builtin_flag_GCJ \
18923 export_dynamic_flag_spec_GCJ \
18924 thread_safe_flag_spec_GCJ \
18925 whole_archive_flag_spec_GCJ \
18926 enable_shared_with_static_runtimes_GCJ \
18927 old_archive_cmds_GCJ \
18928 old_archive_from_new_cmds_GCJ \
18929 predep_objects_GCJ \
18930 postdep_objects_GCJ \
18933 compiler_lib_search_path_GCJ \
18935 archive_expsym_cmds_GCJ \
18936 postinstall_cmds_GCJ \
18937 postuninstall_cmds_GCJ \
18938 old_archive_from_expsyms_cmds_GCJ \
18939 allow_undefined_flag_GCJ \
18940 no_undefined_flag_GCJ \
18941 export_symbols_cmds_GCJ \
18942 hardcode_libdir_flag_spec_GCJ \
18943 hardcode_libdir_flag_spec_ld_GCJ \
18944 hardcode_libdir_separator_GCJ \
18945 hardcode_automatic_GCJ \
18947 module_expsym_cmds_GCJ \
18948 lt_cv_prog_compiler_c_o_GCJ \
18949 fix_srcfile_path_GCJ \
18950 exclude_expsyms_GCJ \
18951 include_expsyms_GCJ
; do
18954 old_archive_cmds_GCJ | \
18955 old_archive_from_new_cmds_GCJ | \
18956 archive_cmds_GCJ | \
18957 archive_expsym_cmds_GCJ | \
18958 module_cmds_GCJ | \
18959 module_expsym_cmds_GCJ | \
18960 old_archive_from_expsyms_cmds_GCJ | \
18961 export_symbols_cmds_GCJ | \
18962 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18963 postinstall_cmds | postuninstall_cmds | \
18964 old_postinstall_cmds | old_postuninstall_cmds | \
18965 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
18966 # Double-quote double-evaled strings.
18967 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18970 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18976 *'\$0 --fallback-echo"')
18977 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18983 cat <<__EOF__ >> "$cfgfile"
18984 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18986 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18988 # Shell to use when invoking shell scripts.
18991 # Whether or not to build shared libraries.
18992 build_libtool_libs=$enable_shared
18994 # Whether or not to build static libraries.
18995 build_old_libs=$enable_static
18997 # Whether or not to add -lc for building shared libraries.
18998 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19000 # Whether or not to disallow shared libs when runtime libs are static
19001 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19003 # Whether or not to optimize for fast installation.
19004 fast_install=$enable_fast_install
19007 host_alias=$host_alias
19011 # The build system.
19012 build_alias=$build_alias
19016 # An echo program that does not interpret backslashes.
19021 AR_FLAGS=$lt_AR_FLAGS
19026 # LTCC compiler flags.
19027 LTCFLAGS=$lt_LTCFLAGS
19029 # A language-specific compiler.
19030 CC=$lt_compiler_GCJ
19032 # Is the compiler the GNU C compiler?
19038 # The linker used to build libraries.
19041 # Whether we need hard or soft links.
19044 # A BSD-compatible nm program.
19047 # A symbol stripping program
19050 # Used to examine libraries when file_magic_cmd begins "file"
19051 MAGIC_CMD=$MAGIC_CMD
19053 # Used on cygwin: DLL creation program.
19056 # Used on cygwin: object dumper.
19059 # Used on cygwin: assembler.
19062 # The name of the directory that contains temporary libtool files.
19065 # How to create reloadable object files.
19066 reload_flag=$lt_reload_flag
19067 reload_cmds=$lt_reload_cmds
19069 # How to pass a linker flag through the compiler.
19070 wl=$lt_lt_prog_compiler_wl_GCJ
19072 # Object file suffix (normally "o").
19073 objext="$ac_objext"
19075 # Old archive suffix (normally "a").
19078 # Shared library suffix (normally ".so").
19079 shrext_cmds='$shrext_cmds'
19081 # Executable file suffix (normally "").
19084 # Additional compiler flags for building library objects.
19085 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19088 # What is the maximum length of a command?
19089 max_cmd_len=$lt_cv_sys_max_cmd_len
19091 # Does compiler simultaneously support -c and -o options?
19092 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19094 # Must we lock files when doing compilation?
19095 need_locks=$lt_need_locks
19097 # Do we need the lib prefix for modules?
19098 need_lib_prefix=$need_lib_prefix
19100 # Do we need a version for libraries?
19101 need_version=$need_version
19103 # Whether dlopen is supported.
19104 dlopen_support=$enable_dlopen
19106 # Whether dlopen of programs is supported.
19107 dlopen_self=$enable_dlopen_self
19109 # Whether dlopen of statically linked programs is supported.
19110 dlopen_self_static=$enable_dlopen_self_static
19112 # Compiler flag to prevent dynamic linking.
19113 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19115 # Compiler flag to turn off builtin functions.
19116 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19118 # Compiler flag to allow reflexive dlopens.
19119 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19121 # Compiler flag to generate shared objects directly from archives.
19122 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19124 # Compiler flag to generate thread-safe objects.
19125 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19127 # Library versioning type.
19128 version_type=$version_type
19130 # Format of library name prefix.
19131 libname_spec=$lt_libname_spec
19133 # List of archive names. First name is the real one, the rest are links.
19134 # The last name is the one that the linker finds with -lNAME.
19135 library_names_spec=$lt_library_names_spec
19137 # The coded name of the library, if different from the real name.
19138 soname_spec=$lt_soname_spec
19140 # Commands used to build and install an old-style archive.
19142 old_archive_cmds=$lt_old_archive_cmds_GCJ
19143 old_postinstall_cmds=$lt_old_postinstall_cmds
19144 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19146 # Create an old-style archive from a shared archive.
19147 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19149 # Create a temporary old-style archive to link instead of a shared archive.
19150 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19152 # Commands used to build and install a shared archive.
19153 archive_cmds=$lt_archive_cmds_GCJ
19154 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19155 postinstall_cmds=$lt_postinstall_cmds
19156 postuninstall_cmds=$lt_postuninstall_cmds
19158 # Commands used to build a loadable module (assumed same as above if empty)
19159 module_cmds=$lt_module_cmds_GCJ
19160 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19162 # Commands to strip libraries.
19163 old_striplib=$lt_old_striplib
19164 striplib=$lt_striplib
19166 # Dependencies to place before the objects being linked to create a
19168 predep_objects=$lt_predep_objects_GCJ
19170 # Dependencies to place after the objects being linked to create a
19172 postdep_objects=$lt_postdep_objects_GCJ
19174 # Dependencies to place before the objects being linked to create a
19176 predeps=$lt_predeps_GCJ
19178 # Dependencies to place after the objects being linked to create a
19180 postdeps=$lt_postdeps_GCJ
19182 # The library search path used internally by the compiler when linking
19183 # a shared library.
19184 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19186 # Method to check whether dependent libraries are shared objects.
19187 deplibs_check_method=$lt_deplibs_check_method
19189 # Command to use when deplibs_check_method == file_magic.
19190 file_magic_cmd=$lt_file_magic_cmd
19192 # Flag that allows shared libraries with undefined symbols to be built.
19193 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19195 # Flag that forces no undefined symbols.
19196 no_undefined_flag=$lt_no_undefined_flag_GCJ
19198 # Commands used to finish a libtool library installation in a directory.
19199 finish_cmds=$lt_finish_cmds
19201 # Same as above, but a single script fragment to be evaled but not shown.
19202 finish_eval=$lt_finish_eval
19204 # Take the output of nm and produce a listing of raw symbols and C names.
19205 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19207 # Transform the output of nm in a proper C declaration
19208 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19210 # Transform the output of nm in a C name address pair
19211 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19213 # This is the shared library runtime path variable.
19214 runpath_var=$runpath_var
19216 # This is the shared library path variable.
19217 shlibpath_var=$shlibpath_var
19219 # Is shlibpath searched before the hard-coded library search path?
19220 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19222 # How to hardcode a shared library path into an executable.
19223 hardcode_action=$hardcode_action_GCJ
19225 # Whether we should hardcode library paths into libraries.
19226 hardcode_into_libs=$hardcode_into_libs
19228 # Flag to hardcode \$libdir into a binary during linking.
19229 # This must work even if \$libdir does not exist.
19230 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19232 # If ld is used when linking, flag to hardcode \$libdir into
19233 # a binary during linking. This must work even if \$libdir does
19235 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19237 # Whether we need a single -rpath flag with a separated argument.
19238 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19240 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19241 # resulting binary.
19242 hardcode_direct=$hardcode_direct_GCJ
19244 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19245 # resulting binary.
19246 hardcode_minus_L=$hardcode_minus_L_GCJ
19248 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19249 # the resulting binary.
19250 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19252 # Set to yes if building a shared library automatically hardcodes DIR into the library
19253 # and all subsequent libraries and executables linked against it.
19254 hardcode_automatic=$hardcode_automatic_GCJ
19256 # Variables whose values should be saved in libtool wrapper scripts and
19257 # restored at relink time.
19258 variables_saved_for_relink="$variables_saved_for_relink"
19260 # Whether libtool must link a program against all its dependency libraries.
19261 link_all_deplibs=$link_all_deplibs_GCJ
19263 # Compile-time system search path for libraries
19264 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19266 # Run-time system search path for libraries
19267 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19269 # Fix the shell variable \$srcfile for the compiler.
19270 fix_srcfile_path=$lt_fix_srcfile_path
19272 # Set to yes if exported symbols are required.
19273 always_export_symbols=$always_export_symbols_GCJ
19275 # The commands to list exported symbols.
19276 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19278 # The commands to extract the exported symbol list from a shared archive.
19279 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19281 # Symbols that should not be listed in the preloaded symbols.
19282 exclude_expsyms=$lt_exclude_expsyms_GCJ
19284 # Symbols that must always be exported.
19285 include_expsyms=$lt_include_expsyms_GCJ
19287 # ### END LIBTOOL TAG CONFIG: $tagname
19293 # If there is no Makefile yet, we rely on a make rule to execute
19294 # `config.status --recheck' to rerun these tests and create the
19295 # libtool script then.
19296 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19297 if test -f "$ltmain_in"; then
19298 test -f Makefile
&& make "$ltmain"
19304 ac_cpp
='$CPP $CPPFLAGS'
19305 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19306 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19307 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19319 # Source file extension for RC test sources.
19322 # Object file extension for compiled RC test sources.
19326 # Code to be used in simple compile tests
19327 lt_simple_compile_test_code
='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19329 # Code to be used in simple link tests
19330 lt_simple_link_test_code
="$lt_simple_compile_test_code"
19332 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19334 # If no C compiler was specified, use CC.
19337 # If no C compiler flags were specified, use CFLAGS.
19338 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
19340 # Allow CC to be a program name with arguments.
19344 # save warnings/boilerplate of simple test code
19345 ac_outfile
=conftest.
$ac_objext
19346 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
19347 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
19348 _lt_compiler_boilerplate
=`cat conftest.err`
19351 ac_outfile
=conftest.
$ac_objext
19352 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
19353 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
19354 _lt_linker_boilerplate
=`cat conftest.err`
19358 # Allow CC to be a program name with arguments.
19363 for cc_temp
in $compiler""; do
19365 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
19366 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
19371 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19373 lt_cv_prog_compiler_c_o_RC
=yes
19375 # The else clause should only fire when bootstrapping the
19376 # libtool distribution, otherwise you forgot to ship ltmain.sh
19377 # with your package, and you will get complaints that there are
19378 # no rules to generate ltmain.sh.
19379 if test -f "$ltmain"; then
19380 # See if we are running on zsh, and set the options which allow our commands through
19381 # without removal of \ escapes.
19382 if test -n "${ZSH_VERSION+set}" ; then
19383 setopt NO_GLOB_SUBST
19385 # Now quote all the things that may contain metacharacters while being
19386 # careful not to overquote the AC_SUBSTed values. We take copies of the
19387 # variables and quote the copies for generation of the libtool script.
19388 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19390 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19391 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19392 deplibs_check_method reload_flag reload_cmds need_locks \
19393 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19394 lt_cv_sys_global_symbol_to_c_name_address \
19395 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19396 old_postinstall_cmds old_postuninstall_cmds \
19400 lt_prog_compiler_wl_RC \
19401 lt_prog_compiler_pic_RC \
19402 lt_prog_compiler_static_RC \
19403 lt_prog_compiler_no_builtin_flag_RC \
19404 export_dynamic_flag_spec_RC \
19405 thread_safe_flag_spec_RC \
19406 whole_archive_flag_spec_RC \
19407 enable_shared_with_static_runtimes_RC \
19408 old_archive_cmds_RC \
19409 old_archive_from_new_cmds_RC \
19410 predep_objects_RC \
19411 postdep_objects_RC \
19414 compiler_lib_search_path_RC \
19416 archive_expsym_cmds_RC \
19417 postinstall_cmds_RC \
19418 postuninstall_cmds_RC \
19419 old_archive_from_expsyms_cmds_RC \
19420 allow_undefined_flag_RC \
19421 no_undefined_flag_RC \
19422 export_symbols_cmds_RC \
19423 hardcode_libdir_flag_spec_RC \
19424 hardcode_libdir_flag_spec_ld_RC \
19425 hardcode_libdir_separator_RC \
19426 hardcode_automatic_RC \
19428 module_expsym_cmds_RC \
19429 lt_cv_prog_compiler_c_o_RC \
19430 fix_srcfile_path_RC \
19431 exclude_expsyms_RC \
19432 include_expsyms_RC
; do
19435 old_archive_cmds_RC | \
19436 old_archive_from_new_cmds_RC | \
19437 archive_cmds_RC | \
19438 archive_expsym_cmds_RC | \
19440 module_expsym_cmds_RC | \
19441 old_archive_from_expsyms_cmds_RC | \
19442 export_symbols_cmds_RC | \
19443 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19444 postinstall_cmds | postuninstall_cmds | \
19445 old_postinstall_cmds | old_postuninstall_cmds | \
19446 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
19447 # Double-quote double-evaled strings.
19448 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19451 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19457 *'\$0 --fallback-echo"')
19458 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19464 cat <<__EOF__ >> "$cfgfile"
19465 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19467 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19469 # Shell to use when invoking shell scripts.
19472 # Whether or not to build shared libraries.
19473 build_libtool_libs=$enable_shared
19475 # Whether or not to build static libraries.
19476 build_old_libs=$enable_static
19478 # Whether or not to add -lc for building shared libraries.
19479 build_libtool_need_lc=$archive_cmds_need_lc_RC
19481 # Whether or not to disallow shared libs when runtime libs are static
19482 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19484 # Whether or not to optimize for fast installation.
19485 fast_install=$enable_fast_install
19488 host_alias=$host_alias
19492 # The build system.
19493 build_alias=$build_alias
19497 # An echo program that does not interpret backslashes.
19502 AR_FLAGS=$lt_AR_FLAGS
19507 # LTCC compiler flags.
19508 LTCFLAGS=$lt_LTCFLAGS
19510 # A language-specific compiler.
19513 # Is the compiler the GNU C compiler?
19519 # The linker used to build libraries.
19522 # Whether we need hard or soft links.
19525 # A BSD-compatible nm program.
19528 # A symbol stripping program
19531 # Used to examine libraries when file_magic_cmd begins "file"
19532 MAGIC_CMD=$MAGIC_CMD
19534 # Used on cygwin: DLL creation program.
19537 # Used on cygwin: object dumper.
19540 # Used on cygwin: assembler.
19543 # The name of the directory that contains temporary libtool files.
19546 # How to create reloadable object files.
19547 reload_flag=$lt_reload_flag
19548 reload_cmds=$lt_reload_cmds
19550 # How to pass a linker flag through the compiler.
19551 wl=$lt_lt_prog_compiler_wl_RC
19553 # Object file suffix (normally "o").
19554 objext="$ac_objext"
19556 # Old archive suffix (normally "a").
19559 # Shared library suffix (normally ".so").
19560 shrext_cmds='$shrext_cmds'
19562 # Executable file suffix (normally "").
19565 # Additional compiler flags for building library objects.
19566 pic_flag=$lt_lt_prog_compiler_pic_RC
19569 # What is the maximum length of a command?
19570 max_cmd_len=$lt_cv_sys_max_cmd_len
19572 # Does compiler simultaneously support -c and -o options?
19573 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19575 # Must we lock files when doing compilation?
19576 need_locks=$lt_need_locks
19578 # Do we need the lib prefix for modules?
19579 need_lib_prefix=$need_lib_prefix
19581 # Do we need a version for libraries?
19582 need_version=$need_version
19584 # Whether dlopen is supported.
19585 dlopen_support=$enable_dlopen
19587 # Whether dlopen of programs is supported.
19588 dlopen_self=$enable_dlopen_self
19590 # Whether dlopen of statically linked programs is supported.
19591 dlopen_self_static=$enable_dlopen_self_static
19593 # Compiler flag to prevent dynamic linking.
19594 link_static_flag=$lt_lt_prog_compiler_static_RC
19596 # Compiler flag to turn off builtin functions.
19597 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19599 # Compiler flag to allow reflexive dlopens.
19600 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19602 # Compiler flag to generate shared objects directly from archives.
19603 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19605 # Compiler flag to generate thread-safe objects.
19606 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19608 # Library versioning type.
19609 version_type=$version_type
19611 # Format of library name prefix.
19612 libname_spec=$lt_libname_spec
19614 # List of archive names. First name is the real one, the rest are links.
19615 # The last name is the one that the linker finds with -lNAME.
19616 library_names_spec=$lt_library_names_spec
19618 # The coded name of the library, if different from the real name.
19619 soname_spec=$lt_soname_spec
19621 # Commands used to build and install an old-style archive.
19623 old_archive_cmds=$lt_old_archive_cmds_RC
19624 old_postinstall_cmds=$lt_old_postinstall_cmds
19625 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19627 # Create an old-style archive from a shared archive.
19628 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19630 # Create a temporary old-style archive to link instead of a shared archive.
19631 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19633 # Commands used to build and install a shared archive.
19634 archive_cmds=$lt_archive_cmds_RC
19635 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19636 postinstall_cmds=$lt_postinstall_cmds
19637 postuninstall_cmds=$lt_postuninstall_cmds
19639 # Commands used to build a loadable module (assumed same as above if empty)
19640 module_cmds=$lt_module_cmds_RC
19641 module_expsym_cmds=$lt_module_expsym_cmds_RC
19643 # Commands to strip libraries.
19644 old_striplib=$lt_old_striplib
19645 striplib=$lt_striplib
19647 # Dependencies to place before the objects being linked to create a
19649 predep_objects=$lt_predep_objects_RC
19651 # Dependencies to place after the objects being linked to create a
19653 postdep_objects=$lt_postdep_objects_RC
19655 # Dependencies to place before the objects being linked to create a
19657 predeps=$lt_predeps_RC
19659 # Dependencies to place after the objects being linked to create a
19661 postdeps=$lt_postdeps_RC
19663 # The library search path used internally by the compiler when linking
19664 # a shared library.
19665 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19667 # Method to check whether dependent libraries are shared objects.
19668 deplibs_check_method=$lt_deplibs_check_method
19670 # Command to use when deplibs_check_method == file_magic.
19671 file_magic_cmd=$lt_file_magic_cmd
19673 # Flag that allows shared libraries with undefined symbols to be built.
19674 allow_undefined_flag=$lt_allow_undefined_flag_RC
19676 # Flag that forces no undefined symbols.
19677 no_undefined_flag=$lt_no_undefined_flag_RC
19679 # Commands used to finish a libtool library installation in a directory.
19680 finish_cmds=$lt_finish_cmds
19682 # Same as above, but a single script fragment to be evaled but not shown.
19683 finish_eval=$lt_finish_eval
19685 # Take the output of nm and produce a listing of raw symbols and C names.
19686 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19688 # Transform the output of nm in a proper C declaration
19689 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19691 # Transform the output of nm in a C name address pair
19692 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19694 # This is the shared library runtime path variable.
19695 runpath_var=$runpath_var
19697 # This is the shared library path variable.
19698 shlibpath_var=$shlibpath_var
19700 # Is shlibpath searched before the hard-coded library search path?
19701 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19703 # How to hardcode a shared library path into an executable.
19704 hardcode_action=$hardcode_action_RC
19706 # Whether we should hardcode library paths into libraries.
19707 hardcode_into_libs=$hardcode_into_libs
19709 # Flag to hardcode \$libdir into a binary during linking.
19710 # This must work even if \$libdir does not exist.
19711 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19713 # If ld is used when linking, flag to hardcode \$libdir into
19714 # a binary during linking. This must work even if \$libdir does
19716 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19718 # Whether we need a single -rpath flag with a separated argument.
19719 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19721 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19722 # resulting binary.
19723 hardcode_direct=$hardcode_direct_RC
19725 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19726 # resulting binary.
19727 hardcode_minus_L=$hardcode_minus_L_RC
19729 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19730 # the resulting binary.
19731 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19733 # Set to yes if building a shared library automatically hardcodes DIR into the library
19734 # and all subsequent libraries and executables linked against it.
19735 hardcode_automatic=$hardcode_automatic_RC
19737 # Variables whose values should be saved in libtool wrapper scripts and
19738 # restored at relink time.
19739 variables_saved_for_relink="$variables_saved_for_relink"
19741 # Whether libtool must link a program against all its dependency libraries.
19742 link_all_deplibs=$link_all_deplibs_RC
19744 # Compile-time system search path for libraries
19745 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19747 # Run-time system search path for libraries
19748 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19750 # Fix the shell variable \$srcfile for the compiler.
19751 fix_srcfile_path=$lt_fix_srcfile_path
19753 # Set to yes if exported symbols are required.
19754 always_export_symbols=$always_export_symbols_RC
19756 # The commands to list exported symbols.
19757 export_symbols_cmds=$lt_export_symbols_cmds_RC
19759 # The commands to extract the exported symbol list from a shared archive.
19760 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19762 # Symbols that should not be listed in the preloaded symbols.
19763 exclude_expsyms=$lt_exclude_expsyms_RC
19765 # Symbols that must always be exported.
19766 include_expsyms=$lt_include_expsyms_RC
19768 # ### END LIBTOOL TAG CONFIG: $tagname
19774 # If there is no Makefile yet, we rely on a make rule to execute
19775 # `config.status --recheck' to rerun these tests and create the
19776 # libtool script then.
19777 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19778 if test -f "$ltmain_in"; then
19779 test -f Makefile
&& make "$ltmain"
19785 ac_cpp
='$CPP $CPPFLAGS'
19786 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19787 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19788 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19795 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19796 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19797 { (exit 1); exit 1; }; }
19801 # Append the new tag name to the list of available tags.
19802 if test -n "$tagname" ; then
19803 available_tags
="$available_tags $tagname"
19809 # Now substitute the updated list of available tags.
19810 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19811 mv "${ofile}T" "$ofile"
19815 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19816 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19817 { (exit 1); exit 1; }; }
19823 # This can be used to rebuild libtool when needed
19824 LIBTOOL_DEPS
="$ac_aux_dir/ltmain.sh"
19826 # Always use our own libtool.
19827 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
19829 # Prevent multiple expansion
19857 ac_header_dirent
=no
19858 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
19859 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19860 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19861 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
19862 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19863 echo $ECHO_N "(cached) $ECHO_C" >&6
19865 cat >conftest.
$ac_ext <<_ACEOF
19868 cat confdefs.h
>>conftest.
$ac_ext
19869 cat >>conftest.
$ac_ext <<_ACEOF
19870 /* end confdefs.h. */
19871 #include <sys/types.h>
19883 rm -f conftest.
$ac_objext
19884 if { (ac_try
="$ac_compile"
19885 case "(($ac_try" in
19886 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19887 *) ac_try_echo=$ac_try;;
19889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19890 (eval "$ac_compile") 2>conftest.er1
19892 grep -v '^ *+' conftest.er1 >conftest.err
19894 cat conftest.err >&5
19895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896 (exit $ac_status); } && {
19897 test -z "$ac_c_werror_flag" ||
19898 test ! -s conftest.err
19899 } && test -s conftest.$ac_objext; then
19900 eval "$as_ac_Header=yes"
19902 echo "$as_me: failed program was:" >&5
19903 sed 's/^/| /' conftest.$ac_ext >&5
19905 eval "$as_ac_Header=no"
19908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19910 ac_res=`eval echo '${'$as_ac_Header'}'`
19911 { echo "$as_me:$LINENO: result: $ac_res" >&5
19912 echo "${ECHO_T}$ac_res" >&6; }
19913 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19914 cat >>confdefs.h <<_ACEOF
19915 #define `echo "HAVE_$ac_hdr" |
$as_tr_cpp` 1
19918 ac_header_dirent=$ac_hdr; break
19922 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19923 if test $ac_header_dirent = dirent.h; then
19924 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
19925 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
19926 if test "${ac_cv_search_opendir+set}" = set; then
19927 echo $ECHO_N "(cached) $ECHO_C" >&6
19929 ac_func_search_save_LIBS=$LIBS
19930 cat >conftest.$ac_ext <<_ACEOF
19933 cat confdefs.h >>conftest.$ac_ext
19934 cat >>conftest.$ac_ext <<_ACEOF
19935 /* end confdefs.h. */
19937 /* Override any GCC internal prototype to avoid an error.
19938 Use char because int might match the return type of a GCC
19939 builtin and then its argument prototype would still apply. */
19952 for ac_lib in '' dir; do
19953 if test -z "$ac_lib"; then
19954 ac_res="none required"
19957 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19959 rm -f conftest.$ac_objext conftest$ac_exeext
19960 if { (ac_try="$ac_link"
19961 case "(($ac_try" in
19962 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19963 *) ac_try_echo
=$ac_try;;
19965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19966 (eval "$ac_link") 2>conftest.er1
19968 grep -v '^ *+' conftest.er1
>conftest.err
19970 cat conftest.err
>&5
19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972 (exit $ac_status); } && {
19973 test -z "$ac_c_werror_flag" ||
19974 test ! -s conftest.err
19975 } && test -s conftest
$ac_exeext &&
19976 $as_test_x conftest
$ac_exeext; then
19977 ac_cv_search_opendir
=$ac_res
19979 echo "$as_me: failed program was:" >&5
19980 sed 's/^/| /' conftest.
$ac_ext >&5
19985 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19987 if test "${ac_cv_search_opendir+set}" = set; then
19991 if test "${ac_cv_search_opendir+set}" = set; then
19994 ac_cv_search_opendir
=no
19996 rm conftest.
$ac_ext
19997 LIBS
=$ac_func_search_save_LIBS
19999 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20000 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20001 ac_res
=$ac_cv_search_opendir
20002 if test "$ac_res" != no
; then
20003 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
20008 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20009 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20010 if test "${ac_cv_search_opendir+set}" = set; then
20011 echo $ECHO_N "(cached) $ECHO_C" >&6
20013 ac_func_search_save_LIBS
=$LIBS
20014 cat >conftest.
$ac_ext <<_ACEOF
20017 cat confdefs.h
>>conftest.
$ac_ext
20018 cat >>conftest.
$ac_ext <<_ACEOF
20019 /* end confdefs.h. */
20021 /* Override any GCC internal prototype to avoid an error.
20022 Use char because int might match the return type of a GCC
20023 builtin and then its argument prototype would still apply. */
20036 for ac_lib
in '' x
; do
20037 if test -z "$ac_lib"; then
20038 ac_res
="none required"
20041 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
20043 rm -f conftest.
$ac_objext conftest
$ac_exeext
20044 if { (ac_try
="$ac_link"
20045 case "(($ac_try" in
20046 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20047 *) ac_try_echo=$ac_try;;
20049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20050 (eval "$ac_link") 2>conftest.er1
20052 grep -v '^ *+' conftest.er1 >conftest.err
20054 cat conftest.err >&5
20055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056 (exit $ac_status); } && {
20057 test -z "$ac_c_werror_flag" ||
20058 test ! -s conftest.err
20059 } && test -s conftest$ac_exeext &&
20060 $as_test_x conftest$ac_exeext; then
20061 ac_cv_search_opendir=$ac_res
20063 echo "$as_me: failed program was:" >&5
20064 sed 's/^/| /' conftest.$ac_ext >&5
20069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20071 if test "${ac_cv_search_opendir+set}" = set; then
20075 if test "${ac_cv_search_opendir+set}" = set; then
20078 ac_cv_search_opendir=no
20080 rm conftest.$ac_ext
20081 LIBS=$ac_func_search_save_LIBS
20083 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20084 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20085 ac_res=$ac_cv_search_opendir
20086 if test "$ac_res" != no; then
20087 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20093 # Check whether --enable-ltdl-install was given.
20094 if test "${enable_ltdl_install+set}" = set; then
20095 enableval=$enable_ltdl_install;
20099 if test x"${enable_ltdl_install-no}" != xno; then
20101 INSTALL_LTDL_FALSE='#'
20103 INSTALL_LTDL_TRUE='#'
20104 INSTALL_LTDL_FALSE=
20107 if test x"${enable_ltdl_convenience-no}" != xno; then
20108 CONVENIENCE_LTDL_TRUE=
20109 CONVENIENCE_LTDL_FALSE='#'
20111 CONVENIENCE_LTDL_TRUE='#'
20112 CONVENIENCE_LTDL_FALSE=
20117 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
20118 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
20119 if test "${libltdl_cv_shlibext+set}" = set; then
20120 echo $ECHO_N "(cached) $ECHO_C" >&6
20124 eval libltdl_cv_shlibext=$shrext_cmds
20127 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
20128 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
20129 if test -n "$libltdl_cv_shlibext"; then
20131 cat >>confdefs.h <<_ACEOF
20132 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
20138 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
20139 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
20140 if test "${libltdl_cv_shlibpath_var+set}" = set; then
20141 echo $ECHO_N "(cached) $ECHO_C" >&6
20143 libltdl_cv_shlibpath_var="$shlibpath_var"
20145 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
20146 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
20147 if test -n "$libltdl_cv_shlibpath_var"; then
20149 cat >>confdefs.h <<_ACEOF
20150 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
20156 { echo "$as_me:$LINENO: checking for the default library search path" >&5
20157 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
20158 if test "${libltdl_cv_sys_search_path+set}" = set; then
20159 echo $ECHO_N "(cached) $ECHO_C" >&6
20161 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
20163 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
20164 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
20165 if test -n "$libltdl_cv_sys_search_path"; then
20167 for dir in $libltdl_cv_sys_search_path; do
20168 if test -z "$sys_search_path"; then
20169 sys_search_path="$dir"
20171 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
20175 cat >>confdefs.h <<_ACEOF
20176 #define LTDL_SYSSEARCHPATH "$sys_search_path"
20181 { echo "$as_me:$LINENO: checking for objdir" >&5
20182 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
20183 if test "${libltdl_cv_objdir+set}" = set; then
20184 echo $ECHO_N "(cached) $ECHO_C" >&6
20186 libltdl_cv_objdir="$objdir"
20187 if test -n "$objdir"; then
20190 rm -f .libs 2>/dev/null
20191 mkdir .libs 2>/dev/null
20192 if test -d .libs; then
20193 libltdl_cv_objdir=.libs
20195 # MS-DOS does not allow filenames that begin with a dot.
20196 libltdl_cv_objdir=_libs
20198 rmdir .libs 2>/dev/null
20202 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
20203 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
20205 cat >>confdefs.h <<_ACEOF
20206 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
20211 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
20212 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
20213 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
20214 echo $ECHO_N "(cached) $ECHO_C" >&6
20216 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20217 libltdl_cv_preloaded_symbols=yes
20219 libltdl_cv_preloaded_symbols=no
20223 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
20224 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
20225 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20227 cat >>confdefs.h <<\_ACEOF
20228 #define HAVE_PRELOADED_SYMBOLS 1
20236 ac_cpp='$CPP $CPPFLAGS'
20237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20242 { echo "$as_me:$LINENO: checking for shl_load" >&5
20243 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
20244 if test "${ac_cv_func_shl_load+set}" = set; then
20245 echo $ECHO_N "(cached) $ECHO_C" >&6
20247 cat >conftest.$ac_ext <<_ACEOF
20250 cat confdefs.h >>conftest.$ac_ext
20251 cat >>conftest.$ac_ext <<_ACEOF
20252 /* end confdefs.h. */
20253 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20255 #define shl_load innocuous_shl_load
20257 /* System header to define __stub macros and hopefully few prototypes,
20258 which can conflict with char shl_load (); below.
20259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20260 <limits.h> exists even on freestanding compilers. */
20263 # include <limits.h>
20265 # include <assert.h>
20270 /* Override any GCC internal prototype to avoid an error.
20271 Use char because int might match the return type of a GCC
20272 builtin and then its argument prototype would still apply. */
20277 /* The GNU C library defines this for functions which it implements
20278 to always fail with ENOSYS. Some functions are actually named
20279 something starting with __ and the normal name is an alias. */
20280 #if defined __stub_shl_load || defined __stub___shl_load
20287 return shl_load ();
20292 rm -f conftest.$ac_objext conftest$ac_exeext
20293 if { (ac_try="$ac_link"
20294 case "(($ac_try" in
20295 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20296 *) ac_try_echo
=$ac_try;;
20298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20299 (eval "$ac_link") 2>conftest.er1
20301 grep -v '^ *+' conftest.er1
>conftest.err
20303 cat conftest.err
>&5
20304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305 (exit $ac_status); } && {
20306 test -z "$ac_c_werror_flag" ||
20307 test ! -s conftest.err
20308 } && test -s conftest
$ac_exeext &&
20309 $as_test_x conftest
$ac_exeext; then
20310 ac_cv_func_shl_load
=yes
20312 echo "$as_me: failed program was:" >&5
20313 sed 's/^/| /' conftest.
$ac_ext >&5
20315 ac_cv_func_shl_load
=no
20318 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20319 conftest
$ac_exeext conftest.
$ac_ext
20321 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20322 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
20323 if test $ac_cv_func_shl_load = yes; then
20325 cat >>confdefs.h
<<\_ACEOF
20326 #define HAVE_SHL_LOAD 1
20330 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20331 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
20332 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20333 echo $ECHO_N "(cached) $ECHO_C" >&6
20335 ac_check_lib_save_LIBS
=$LIBS
20337 cat >conftest.
$ac_ext <<_ACEOF
20340 cat confdefs.h
>>conftest.
$ac_ext
20341 cat >>conftest.
$ac_ext <<_ACEOF
20342 /* end confdefs.h. */
20344 /* Override any GCC internal prototype to avoid an error.
20345 Use char because int might match the return type of a GCC
20346 builtin and then its argument prototype would still apply. */
20354 return shl_load ();
20359 rm -f conftest.
$ac_objext conftest
$ac_exeext
20360 if { (ac_try
="$ac_link"
20361 case "(($ac_try" in
20362 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20363 *) ac_try_echo=$ac_try;;
20365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20366 (eval "$ac_link") 2>conftest.er1
20368 grep -v '^ *+' conftest.er1 >conftest.err
20370 cat conftest.err >&5
20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372 (exit $ac_status); } && {
20373 test -z "$ac_c_werror_flag" ||
20374 test ! -s conftest.err
20375 } && test -s conftest$ac_exeext &&
20376 $as_test_x conftest$ac_exeext; then
20377 ac_cv_lib_dld_shl_load=yes
20379 echo "$as_me: failed program was:" >&5
20380 sed 's/^/| /' conftest.$ac_ext >&5
20382 ac_cv_lib_dld_shl_load=no
20385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20386 conftest$ac_exeext conftest.$ac_ext
20387 LIBS=$ac_check_lib_save_LIBS
20389 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20390 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
20391 if test $ac_cv_lib_dld_shl_load = yes; then
20393 cat >>confdefs.h <<\_ACEOF
20394 #define HAVE_SHL_LOAD 1
20397 LIBADD_DL="$LIBADD_DL -ldld"
20399 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20400 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
20401 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20402 echo $ECHO_N "(cached) $ECHO_C" >&6
20404 ac_check_lib_save_LIBS=$LIBS
20406 cat >conftest.$ac_ext <<_ACEOF
20409 cat confdefs.h >>conftest.$ac_ext
20410 cat >>conftest.$ac_ext <<_ACEOF
20411 /* end confdefs.h. */
20413 /* Override any GCC internal prototype to avoid an error.
20414 Use char because int might match the return type of a GCC
20415 builtin and then its argument prototype would still apply. */
20428 rm -f conftest.$ac_objext conftest$ac_exeext
20429 if { (ac_try="$ac_link"
20430 case "(($ac_try" in
20431 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20432 *) ac_try_echo
=$ac_try;;
20434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20435 (eval "$ac_link") 2>conftest.er1
20437 grep -v '^ *+' conftest.er1
>conftest.err
20439 cat conftest.err
>&5
20440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 (exit $ac_status); } && {
20442 test -z "$ac_c_werror_flag" ||
20443 test ! -s conftest.err
20444 } && test -s conftest
$ac_exeext &&
20445 $as_test_x conftest
$ac_exeext; then
20446 ac_cv_lib_dl_dlopen
=yes
20448 echo "$as_me: failed program was:" >&5
20449 sed 's/^/| /' conftest.
$ac_ext >&5
20451 ac_cv_lib_dl_dlopen
=no
20454 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20455 conftest
$ac_exeext conftest.
$ac_ext
20456 LIBS
=$ac_check_lib_save_LIBS
20458 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20459 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
20460 if test $ac_cv_lib_dl_dlopen = yes; then
20462 cat >>confdefs.h
<<\_ACEOF
20463 #define HAVE_LIBDL 1
20466 LIBADD_DL
="-ldl" libltdl_cv_lib_dl_dlopen
="yes"
20468 cat >conftest.
$ac_ext <<_ACEOF
20471 cat confdefs.h
>>conftest.
$ac_ext
20472 cat >>conftest.
$ac_ext <<_ACEOF
20473 /* end confdefs.h. */
20475 # include <dlfcn.h>
20486 rm -f conftest.
$ac_objext conftest
$ac_exeext
20487 if { (ac_try
="$ac_link"
20488 case "(($ac_try" in
20489 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20490 *) ac_try_echo=$ac_try;;
20492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20493 (eval "$ac_link") 2>conftest.er1
20495 grep -v '^ *+' conftest.er1 >conftest.err
20497 cat conftest.err >&5
20498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499 (exit $ac_status); } && {
20500 test -z "$ac_c_werror_flag" ||
20501 test ! -s conftest.err
20502 } && test -s conftest$ac_exeext &&
20503 $as_test_x conftest$ac_exeext; then
20505 cat >>confdefs.h <<\_ACEOF
20506 #define HAVE_LIBDL 1
20508 libltdl_cv_func_dlopen="yes"
20510 echo "$as_me: failed program was:" >&5
20511 sed 's/^/| /' conftest.$ac_ext >&5
20513 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20514 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
20515 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20516 echo $ECHO_N "(cached) $ECHO_C" >&6
20518 ac_check_lib_save_LIBS=$LIBS
20519 LIBS="-lsvld $LIBS"
20520 cat >conftest.$ac_ext <<_ACEOF
20523 cat confdefs.h >>conftest.$ac_ext
20524 cat >>conftest.$ac_ext <<_ACEOF
20525 /* end confdefs.h. */
20527 /* Override any GCC internal prototype to avoid an error.
20528 Use char because int might match the return type of a GCC
20529 builtin and then its argument prototype would still apply. */
20542 rm -f conftest.$ac_objext conftest$ac_exeext
20543 if { (ac_try="$ac_link"
20544 case "(($ac_try" in
20545 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20546 *) ac_try_echo
=$ac_try;;
20548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20549 (eval "$ac_link") 2>conftest.er1
20551 grep -v '^ *+' conftest.er1
>conftest.err
20553 cat conftest.err
>&5
20554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20555 (exit $ac_status); } && {
20556 test -z "$ac_c_werror_flag" ||
20557 test ! -s conftest.err
20558 } && test -s conftest
$ac_exeext &&
20559 $as_test_x conftest
$ac_exeext; then
20560 ac_cv_lib_svld_dlopen
=yes
20562 echo "$as_me: failed program was:" >&5
20563 sed 's/^/| /' conftest.
$ac_ext >&5
20565 ac_cv_lib_svld_dlopen
=no
20568 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20569 conftest
$ac_exeext conftest.
$ac_ext
20570 LIBS
=$ac_check_lib_save_LIBS
20572 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20573 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
20574 if test $ac_cv_lib_svld_dlopen = yes; then
20576 cat >>confdefs.h
<<\_ACEOF
20577 #define HAVE_LIBDL 1
20580 LIBADD_DL
="-lsvld" libltdl_cv_func_dlopen
="yes"
20582 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20583 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
20584 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20585 echo $ECHO_N "(cached) $ECHO_C" >&6
20587 ac_check_lib_save_LIBS
=$LIBS
20589 cat >conftest.
$ac_ext <<_ACEOF
20592 cat confdefs.h
>>conftest.
$ac_ext
20593 cat >>conftest.
$ac_ext <<_ACEOF
20594 /* end confdefs.h. */
20596 /* Override any GCC internal prototype to avoid an error.
20597 Use char because int might match the return type of a GCC
20598 builtin and then its argument prototype would still apply. */
20606 return dld_link ();
20611 rm -f conftest.
$ac_objext conftest
$ac_exeext
20612 if { (ac_try
="$ac_link"
20613 case "(($ac_try" in
20614 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20615 *) ac_try_echo=$ac_try;;
20617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20618 (eval "$ac_link") 2>conftest.er1
20620 grep -v '^ *+' conftest.er1 >conftest.err
20622 cat conftest.err >&5
20623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20624 (exit $ac_status); } && {
20625 test -z "$ac_c_werror_flag" ||
20626 test ! -s conftest.err
20627 } && test -s conftest$ac_exeext &&
20628 $as_test_x conftest$ac_exeext; then
20629 ac_cv_lib_dld_dld_link=yes
20631 echo "$as_me: failed program was:" >&5
20632 sed 's/^/| /' conftest.$ac_ext >&5
20634 ac_cv_lib_dld_dld_link=no
20637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20638 conftest$ac_exeext conftest.$ac_ext
20639 LIBS=$ac_check_lib_save_LIBS
20641 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20642 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
20643 if test $ac_cv_lib_dld_dld_link = yes; then
20645 cat >>confdefs.h <<\_ACEOF
20649 LIBADD_DL="$LIBADD_DL -ldld"
20651 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
20652 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
20653 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
20654 echo $ECHO_N "(cached) $ECHO_C" >&6
20656 cat >conftest.$ac_ext <<_ACEOF
20659 cat confdefs.h >>conftest.$ac_ext
20660 cat >>conftest.$ac_ext <<_ACEOF
20661 /* end confdefs.h. */
20662 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
20663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20664 #define _dyld_func_lookup innocuous__dyld_func_lookup
20666 /* System header to define __stub macros and hopefully few prototypes,
20667 which can conflict with char _dyld_func_lookup (); below.
20668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20669 <limits.h> exists even on freestanding compilers. */
20672 # include <limits.h>
20674 # include <assert.h>
20677 #undef _dyld_func_lookup
20679 /* Override any GCC internal prototype to avoid an error.
20680 Use char because int might match the return type of a GCC
20681 builtin and then its argument prototype would still apply. */
20685 char _dyld_func_lookup ();
20686 /* The GNU C library defines this for functions which it implements
20687 to always fail with ENOSYS. Some functions are actually named
20688 something starting with __ and the normal name is an alias. */
20689 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
20696 return _dyld_func_lookup ();
20701 rm -f conftest.$ac_objext conftest$ac_exeext
20702 if { (ac_try="$ac_link"
20703 case "(($ac_try" in
20704 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20705 *) ac_try_echo
=$ac_try;;
20707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20708 (eval "$ac_link") 2>conftest.er1
20710 grep -v '^ *+' conftest.er1
>conftest.err
20712 cat conftest.err
>&5
20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); } && {
20715 test -z "$ac_c_werror_flag" ||
20716 test ! -s conftest.err
20717 } && test -s conftest
$ac_exeext &&
20718 $as_test_x conftest
$ac_exeext; then
20719 ac_cv_func__dyld_func_lookup
=yes
20721 echo "$as_me: failed program was:" >&5
20722 sed 's/^/| /' conftest.
$ac_ext >&5
20724 ac_cv_func__dyld_func_lookup
=no
20727 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20728 conftest
$ac_exeext conftest.
$ac_ext
20730 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
20731 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
20732 if test $ac_cv_func__dyld_func_lookup = yes; then
20734 cat >>confdefs.h
<<\_ACEOF
20735 #define HAVE_DYLD 1
20749 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20750 conftest
$ac_exeext conftest.
$ac_ext
20761 if test x
"$libltdl_cv_func_dlopen" = xyes ||
test x
"$libltdl_cv_lib_dl_dlopen" = xyes
20763 lt_save_LIBS
="$LIBS"
20764 LIBS
="$LIBS $LIBADD_DL"
20766 for ac_func
in dlerror
20768 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20769 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20770 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20771 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20772 echo $ECHO_N "(cached) $ECHO_C" >&6
20774 cat >conftest.
$ac_ext <<_ACEOF
20777 cat confdefs.h
>>conftest.
$ac_ext
20778 cat >>conftest.
$ac_ext <<_ACEOF
20779 /* end confdefs.h. */
20780 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20782 #define $ac_func innocuous_$ac_func
20784 /* System header to define __stub macros and hopefully few prototypes,
20785 which can conflict with char $ac_func (); below.
20786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20787 <limits.h> exists even on freestanding compilers. */
20790 # include <limits.h>
20792 # include <assert.h>
20797 /* Override any GCC internal prototype to avoid an error.
20798 Use char because int might match the return type of a GCC
20799 builtin and then its argument prototype would still apply. */
20804 /* The GNU C library defines this for functions which it implements
20805 to always fail with ENOSYS. Some functions are actually named
20806 something starting with __ and the normal name is an alias. */
20807 #if defined __stub_$ac_func || defined __stub___$ac_func
20814 return $ac_func ();
20819 rm -f conftest.
$ac_objext conftest
$ac_exeext
20820 if { (ac_try
="$ac_link"
20821 case "(($ac_try" in
20822 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20823 *) ac_try_echo=$ac_try;;
20825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20826 (eval "$ac_link") 2>conftest.er1
20828 grep -v '^ *+' conftest.er1 >conftest.err
20830 cat conftest.err >&5
20831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20832 (exit $ac_status); } && {
20833 test -z "$ac_c_werror_flag" ||
20834 test ! -s conftest.err
20835 } && test -s conftest$ac_exeext &&
20836 $as_test_x conftest$ac_exeext; then
20837 eval "$as_ac_var=yes"
20839 echo "$as_me: failed program was:" >&5
20840 sed 's/^/| /' conftest.$ac_ext >&5
20842 eval "$as_ac_var=no"
20845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20846 conftest$ac_exeext conftest.$ac_ext
20848 ac_res=`eval echo '${'$as_ac_var'}'`
20849 { echo "$as_me:$LINENO: result: $ac_res" >&5
20850 echo "${ECHO_T}$ac_res" >&6; }
20851 if test `eval echo '${'$as_ac_var'}'` = yes; then
20852 cat >>confdefs.h <<_ACEOF
20853 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
20859 LIBS="$lt_save_LIBS"
20862 ac_cpp='$CPP $CPPFLAGS'
20863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20869 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
20870 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
20871 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
20872 echo $ECHO_N "(cached) $ECHO_C" >&6
20874 ac_cv_sys_symbol_underscore=no
20875 cat > conftest.$ac_ext <<EOF
20876 void nm_test_func(){}
20877 int main(){nm_test_func;return 0;}
20879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20880 (eval $ac_compile) 2>&5
20882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883 (exit $ac_status); }; then
20884 # Now try to grab the symbols.
20885 ac_nlist=conftest.nm
20886 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
20887 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890 (exit $ac_status); } && test -s "$ac_nlist"; then
20891 # See whether the symbols have a leading underscore.
20892 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20893 ac_cv_sys_symbol_underscore=yes
20895 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20898 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20902 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20905 echo "configure: failed program was:" >&5
20911 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
20912 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
20915 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
20916 if test x"$libltdl_cv_func_dlopen" = xyes ||
20917 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20918 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
20919 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
20920 if test "${libltdl_cv_need_uscore+set}" = set; then
20921 echo $ECHO_N "(cached) $ECHO_C" >&6
20923 libltdl_cv_need_uscore=unknown
20925 LIBS="$LIBS $LIBADD_DL"
20926 if test "$cross_compiling" = yes; then :
20927 libltdl_cv_need_uscore=cross
20929 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20930 lt_status=$lt_dlunknown
20931 cat > conftest.$ac_ext <<EOF
20932 #line 20932 "configure"
20933 #include "confdefs.h"
20942 # define LT_DLGLOBAL RTLD_GLOBAL
20945 # define LT_DLGLOBAL DL_GLOBAL
20947 # define LT_DLGLOBAL 0
20951 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20952 find out it does not work in some platform. */
20953 #ifndef LT_DLLAZY_OR_NOW
20955 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20958 # define LT_DLLAZY_OR_NOW DL_LAZY
20961 # define LT_DLLAZY_OR_NOW RTLD_NOW
20964 # define LT_DLLAZY_OR_NOW DL_NOW
20966 # define LT_DLLAZY_OR_NOW 0
20974 extern "C" void exit (int);
20977 void fnord() { int i=42;}
20980 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20981 int status = $lt_dlunknown;
20985 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20986 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20987 /* dlclose (self); */
20995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20996 (eval $ac_link) 2>&5
20998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21000 (./conftest; exit; ) >&5 2>/dev/null
21002 case x$lt_status in
21003 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
21004 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
21005 x$lt_dlunknown|x*) ;;
21008 # compilation failed
21017 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
21018 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
21022 if test x"$libltdl_cv_need_uscore" = xyes; then
21024 cat >>confdefs.h <<\_ACEOF
21025 #define NEED_USCORE 1
21031 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
21032 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
21033 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
21034 echo $ECHO_N "(cached) $ECHO_C" >&6
21036 # PORTME does your system automatically load deplibs for dlopen?
21037 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
21038 # For now, we just catch OSes we know something about -- in the
21039 # future, we'll try test this programmatically.
21040 libltdl_cv_sys_dlopen_deplibs=unknown
21042 aix3*|aix4.1.*|aix4.2.*)
21043 # Unknown whether this is true for these versions of AIX, but
21044 # we want this `case' here to explicitly catch those versions.
21045 libltdl_cv_sys_dlopen_deplibs=unknown
21048 libltdl_cv_sys_dlopen_deplibs=yes
21051 # Assuming the user has installed a libdl from somewhere, this is true
21052 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
21053 libltdl_cv_sys_dlopen_deplibs=yes
21055 freebsd* | dragonfly*)
21056 libltdl_cv_sys_dlopen_deplibs=yes
21058 gnu* | linux* | k*bsd*-gnu)
21059 # GNU and its variants, using gnu ld.so (Glibc)
21060 libltdl_cv_sys_dlopen_deplibs=yes
21063 libltdl_cv_sys_dlopen_deplibs=yes
21066 libltdl_cv_sys_dlopen_deplibs=yes
21068 irix[12345]*|irix6.[01]*)
21069 # Catch all versions of IRIX before 6.2, and indicate that we don't
21070 # know how it worked for any of those versions.
21071 libltdl_cv_sys_dlopen_deplibs
=unknown
21074 # The case above catches anything before 6.2, and it's known that
21075 # at 6.2 and later dlopen does load deplibs.
21076 libltdl_cv_sys_dlopen_deplibs
=yes
21079 libltdl_cv_sys_dlopen_deplibs
=yes
21082 libltdl_cv_sys_dlopen_deplibs
=yes
21085 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
21086 # it did *not* use an RPATH in a shared library to find objects the
21087 # library depends on, so we explictly say `no'.
21088 libltdl_cv_sys_dlopen_deplibs
=no
21090 osf5.0|osf5.0a|osf5.1
)
21091 # dlopen *does* load deplibs and with the right loader patch applied
21092 # it even uses RPATH in a shared library to search for shared objects
21093 # that the library depends on, but there's no easy way to know if that
21094 # patch is installed. Since this is the case, all we can really
21095 # say is unknown -- it depends on the patch being installed. If
21096 # it is, this changes to `yes'. Without it, it would be `no'.
21097 libltdl_cv_sys_dlopen_deplibs
=unknown
21100 # the two cases above should catch all versions of osf <= 5.1. Read
21101 # the comments above for what we know about them.
21102 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
21103 # is used to find them so we can finally say `yes'.
21104 libltdl_cv_sys_dlopen_deplibs
=yes
21107 libltdl_cv_sys_dlopen_deplibs
=yes
21109 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21110 libltdl_cv_sys_dlopen_deplibs
=yes
21115 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
21116 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
21117 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
21119 cat >>confdefs.h
<<\_ACEOF
21120 #define LTDL_DLOPEN_DEPLIBS 1
21126 for ac_header
in argz.h
21128 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21129 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21130 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21132 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21133 echo $ECHO_N "(cached) $ECHO_C" >&6
21135 ac_res
=`eval echo '${'$as_ac_Header'}'`
21136 { echo "$as_me:$LINENO: result: $ac_res" >&5
21137 echo "${ECHO_T}$ac_res" >&6; }
21139 # Is the header compilable?
21140 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21141 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21142 cat >conftest.
$ac_ext <<_ACEOF
21145 cat confdefs.h
>>conftest.
$ac_ext
21146 cat >>conftest.
$ac_ext <<_ACEOF
21147 /* end confdefs.h. */
21148 $ac_includes_default
21149 #include <$ac_header>
21151 rm -f conftest.
$ac_objext
21152 if { (ac_try
="$ac_compile"
21153 case "(($ac_try" in
21154 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21155 *) ac_try_echo=$ac_try;;
21157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21158 (eval "$ac_compile") 2>conftest.er1
21160 grep -v '^ *+' conftest.er1 >conftest.err
21162 cat conftest.err >&5
21163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21164 (exit $ac_status); } && {
21165 test -z "$ac_c_werror_flag" ||
21166 test ! -s conftest.err
21167 } && test -s conftest.$ac_objext; then
21168 ac_header_compiler=yes
21170 echo "$as_me: failed program was:" >&5
21171 sed 's/^/| /' conftest.$ac_ext >&5
21173 ac_header_compiler=no
21176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21177 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21178 echo "${ECHO_T}$ac_header_compiler" >&6; }
21180 # Is the header present?
21181 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21182 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21183 cat >conftest.$ac_ext <<_ACEOF
21186 cat confdefs.h >>conftest.$ac_ext
21187 cat >>conftest.$ac_ext <<_ACEOF
21188 /* end confdefs.h. */
21189 #include <$ac_header>
21191 if { (ac_try="$ac_cpp conftest.$ac_ext"
21192 case "(($ac_try" in
21193 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21194 *) ac_try_echo
=$ac_try;;
21196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21197 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21199 grep -v '^ *+' conftest.er1
>conftest.err
21201 cat conftest.err
>&5
21202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203 (exit $ac_status); } >/dev
/null
&& {
21204 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21205 test ! -s conftest.err
21207 ac_header_preproc
=yes
21209 echo "$as_me: failed program was:" >&5
21210 sed 's/^/| /' conftest.
$ac_ext >&5
21212 ac_header_preproc
=no
21215 rm -f conftest.err conftest.
$ac_ext
21216 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21217 echo "${ECHO_T}$ac_header_preproc" >&6; }
21219 # So? What about this header?
21220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21222 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21223 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21225 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21226 ac_header_preproc
=yes
21229 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21230 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21231 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21232 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21233 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21234 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21235 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21236 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21238 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21239 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21240 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21242 ## ---------------------------------- ##
21243 ## Report this to bug-libtool@gnu.org ##
21244 ## ---------------------------------- ##
21246 ) |
sed "s/^/$as_me: WARNING: /" >&2
21249 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21251 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21252 echo $ECHO_N "(cached) $ECHO_C" >&6
21254 eval "$as_ac_Header=\$ac_header_preproc"
21256 ac_res
=`eval echo '${'$as_ac_Header'}'`
21257 { echo "$as_me:$LINENO: result: $ac_res" >&5
21258 echo "${ECHO_T}$ac_res" >&6; }
21261 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21262 cat >>confdefs.h
<<_ACEOF
21263 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21271 { echo "$as_me:$LINENO: checking for error_t" >&5
21272 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
21273 if test "${ac_cv_type_error_t+set}" = set; then
21274 echo $ECHO_N "(cached) $ECHO_C" >&6
21276 cat >conftest.
$ac_ext <<_ACEOF
21279 cat confdefs.h
>>conftest.
$ac_ext
21280 cat >>conftest.
$ac_ext <<_ACEOF
21281 /* end confdefs.h. */
21286 typedef error_t ac__type_new_;
21290 if ((ac__type_new_ *) 0)
21292 if (sizeof (ac__type_new_))
21298 rm -f conftest.
$ac_objext
21299 if { (ac_try
="$ac_compile"
21300 case "(($ac_try" in
21301 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21302 *) ac_try_echo=$ac_try;;
21304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21305 (eval "$ac_compile") 2>conftest.er1
21307 grep -v '^ *+' conftest.er1 >conftest.err
21309 cat conftest.err >&5
21310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21311 (exit $ac_status); } && {
21312 test -z "$ac_c_werror_flag" ||
21313 test ! -s conftest.err
21314 } && test -s conftest.$ac_objext; then
21315 ac_cv_type_error_t=yes
21317 echo "$as_me: failed program was:" >&5
21318 sed 's/^/| /' conftest.$ac_ext >&5
21320 ac_cv_type_error_t=no
21323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21325 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
21326 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
21327 if test $ac_cv_type_error_t = yes; then
21329 cat >>confdefs.h <<_ACEOF
21330 #define HAVE_ERROR_T 1
21336 cat >>confdefs.h <<\_ACEOF
21337 #define error_t int
21348 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
21350 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
21351 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21352 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21353 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21354 echo $ECHO_N "(cached) $ECHO_C" >&6
21356 cat >conftest.$ac_ext <<_ACEOF
21359 cat confdefs.h >>conftest.$ac_ext
21360 cat >>conftest.$ac_ext <<_ACEOF
21361 /* end confdefs.h. */
21362 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21363 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21364 #define $ac_func innocuous_$ac_func
21366 /* System header to define __stub macros and hopefully few prototypes,
21367 which can conflict with char $ac_func (); below.
21368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21369 <limits.h> exists even on freestanding compilers. */
21372 # include <limits.h>
21374 # include <assert.h>
21379 /* Override any GCC internal prototype to avoid an error.
21380 Use char because int might match the return type of a GCC
21381 builtin and then its argument prototype would still apply. */
21386 /* The GNU C library defines this for functions which it implements
21387 to always fail with ENOSYS. Some functions are actually named
21388 something starting with __ and the normal name is an alias. */
21389 #if defined __stub_$ac_func || defined __stub___$ac_func
21396 return $ac_func ();
21401 rm -f conftest.$ac_objext conftest$ac_exeext
21402 if { (ac_try="$ac_link"
21403 case "(($ac_try" in
21404 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21405 *) ac_try_echo
=$ac_try;;
21407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21408 (eval "$ac_link") 2>conftest.er1
21410 grep -v '^ *+' conftest.er1
>conftest.err
21412 cat conftest.err
>&5
21413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21414 (exit $ac_status); } && {
21415 test -z "$ac_c_werror_flag" ||
21416 test ! -s conftest.err
21417 } && test -s conftest
$ac_exeext &&
21418 $as_test_x conftest
$ac_exeext; then
21419 eval "$as_ac_var=yes"
21421 echo "$as_me: failed program was:" >&5
21422 sed 's/^/| /' conftest.
$ac_ext >&5
21424 eval "$as_ac_var=no"
21427 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21428 conftest
$ac_exeext conftest.
$ac_ext
21430 ac_res
=`eval echo '${'$as_ac_var'}'`
21431 { echo "$as_me:$LINENO: result: $ac_res" >&5
21432 echo "${ECHO_T}$ac_res" >&6; }
21433 if test `eval echo '${'$as_ac_var'}'` = yes; then
21434 cat >>confdefs.h
<<_ACEOF
21435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21468 for ac_header
in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
21471 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21472 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21473 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21475 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21476 echo $ECHO_N "(cached) $ECHO_C" >&6
21478 ac_res
=`eval echo '${'$as_ac_Header'}'`
21479 { echo "$as_me:$LINENO: result: $ac_res" >&5
21480 echo "${ECHO_T}$ac_res" >&6; }
21482 # Is the header compilable?
21483 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21484 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21485 cat >conftest.
$ac_ext <<_ACEOF
21488 cat confdefs.h
>>conftest.
$ac_ext
21489 cat >>conftest.
$ac_ext <<_ACEOF
21490 /* end confdefs.h. */
21491 $ac_includes_default
21492 #include <$ac_header>
21494 rm -f conftest.
$ac_objext
21495 if { (ac_try
="$ac_compile"
21496 case "(($ac_try" in
21497 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21498 *) ac_try_echo=$ac_try;;
21500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21501 (eval "$ac_compile") 2>conftest.er1
21503 grep -v '^ *+' conftest.er1 >conftest.err
21505 cat conftest.err >&5
21506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21507 (exit $ac_status); } && {
21508 test -z "$ac_c_werror_flag" ||
21509 test ! -s conftest.err
21510 } && test -s conftest.$ac_objext; then
21511 ac_header_compiler=yes
21513 echo "$as_me: failed program was:" >&5
21514 sed 's/^/| /' conftest.$ac_ext >&5
21516 ac_header_compiler=no
21519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21520 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21521 echo "${ECHO_T}$ac_header_compiler" >&6; }
21523 # Is the header present?
21524 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21525 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21526 cat >conftest.$ac_ext <<_ACEOF
21529 cat confdefs.h >>conftest.$ac_ext
21530 cat >>conftest.$ac_ext <<_ACEOF
21531 /* end confdefs.h. */
21532 #include <$ac_header>
21534 if { (ac_try="$ac_cpp conftest.$ac_ext"
21535 case "(($ac_try" in
21536 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21537 *) ac_try_echo
=$ac_try;;
21539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21542 grep -v '^ *+' conftest.er1
>conftest.err
21544 cat conftest.err
>&5
21545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21546 (exit $ac_status); } >/dev
/null
&& {
21547 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21548 test ! -s conftest.err
21550 ac_header_preproc
=yes
21552 echo "$as_me: failed program was:" >&5
21553 sed 's/^/| /' conftest.
$ac_ext >&5
21555 ac_header_preproc
=no
21558 rm -f conftest.err conftest.
$ac_ext
21559 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21560 echo "${ECHO_T}$ac_header_preproc" >&6; }
21562 # So? What about this header?
21563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21565 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21566 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21568 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21569 ac_header_preproc
=yes
21572 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21573 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21574 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21575 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21576 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21577 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21578 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21579 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21581 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21582 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21583 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21585 ## ---------------------------------- ##
21586 ## Report this to bug-libtool@gnu.org ##
21587 ## ---------------------------------- ##
21589 ) |
sed "s/^/$as_me: WARNING: /" >&2
21592 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21594 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21595 echo $ECHO_N "(cached) $ECHO_C" >&6
21597 eval "$as_ac_Header=\$ac_header_preproc"
21599 ac_res
=`eval echo '${'$as_ac_Header'}'`
21600 { echo "$as_me:$LINENO: result: $ac_res" >&5
21601 echo "${ECHO_T}$ac_res" >&6; }
21604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21605 cat >>confdefs.h
<<_ACEOF
21606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21617 for ac_header
in dl.h sys
/dl.h dld.h mach-o
/dyld.h
21619 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21620 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21621 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21623 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21624 echo $ECHO_N "(cached) $ECHO_C" >&6
21626 ac_res
=`eval echo '${'$as_ac_Header'}'`
21627 { echo "$as_me:$LINENO: result: $ac_res" >&5
21628 echo "${ECHO_T}$ac_res" >&6; }
21630 # Is the header compilable?
21631 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21632 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21633 cat >conftest.
$ac_ext <<_ACEOF
21636 cat confdefs.h
>>conftest.
$ac_ext
21637 cat >>conftest.
$ac_ext <<_ACEOF
21638 /* end confdefs.h. */
21639 $ac_includes_default
21640 #include <$ac_header>
21642 rm -f conftest.
$ac_objext
21643 if { (ac_try
="$ac_compile"
21644 case "(($ac_try" in
21645 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21646 *) ac_try_echo=$ac_try;;
21648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21649 (eval "$ac_compile") 2>conftest.er1
21651 grep -v '^ *+' conftest.er1 >conftest.err
21653 cat conftest.err >&5
21654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21655 (exit $ac_status); } && {
21656 test -z "$ac_c_werror_flag" ||
21657 test ! -s conftest.err
21658 } && test -s conftest.$ac_objext; then
21659 ac_header_compiler=yes
21661 echo "$as_me: failed program was:" >&5
21662 sed 's/^/| /' conftest.$ac_ext >&5
21664 ac_header_compiler=no
21667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21668 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21669 echo "${ECHO_T}$ac_header_compiler" >&6; }
21671 # Is the header present?
21672 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21673 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21674 cat >conftest.$ac_ext <<_ACEOF
21677 cat confdefs.h >>conftest.$ac_ext
21678 cat >>conftest.$ac_ext <<_ACEOF
21679 /* end confdefs.h. */
21680 #include <$ac_header>
21682 if { (ac_try="$ac_cpp conftest.$ac_ext"
21683 case "(($ac_try" in
21684 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21685 *) ac_try_echo
=$ac_try;;
21687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21690 grep -v '^ *+' conftest.er1
>conftest.err
21692 cat conftest.err
>&5
21693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21694 (exit $ac_status); } >/dev
/null
&& {
21695 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21696 test ! -s conftest.err
21698 ac_header_preproc
=yes
21700 echo "$as_me: failed program was:" >&5
21701 sed 's/^/| /' conftest.
$ac_ext >&5
21703 ac_header_preproc
=no
21706 rm -f conftest.err conftest.
$ac_ext
21707 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21708 echo "${ECHO_T}$ac_header_preproc" >&6; }
21710 # So? What about this header?
21711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21713 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21714 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21716 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21717 ac_header_preproc
=yes
21720 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21721 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21722 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21723 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21724 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21725 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21726 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21727 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21729 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21730 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21731 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21733 ## ---------------------------------- ##
21734 ## Report this to bug-libtool@gnu.org ##
21735 ## ---------------------------------- ##
21737 ) |
sed "s/^/$as_me: WARNING: /" >&2
21740 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21742 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21743 echo $ECHO_N "(cached) $ECHO_C" >&6
21745 eval "$as_ac_Header=\$ac_header_preproc"
21747 ac_res
=`eval echo '${'$as_ac_Header'}'`
21748 { echo "$as_me:$LINENO: result: $ac_res" >&5
21749 echo "${ECHO_T}$ac_res" >&6; }
21752 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21753 cat >>confdefs.h
<<_ACEOF
21754 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21763 for ac_header
in string.h
strings.h
21765 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21766 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21767 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21769 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21770 echo $ECHO_N "(cached) $ECHO_C" >&6
21772 ac_res
=`eval echo '${'$as_ac_Header'}'`
21773 { echo "$as_me:$LINENO: result: $ac_res" >&5
21774 echo "${ECHO_T}$ac_res" >&6; }
21776 # Is the header compilable?
21777 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21778 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21779 cat >conftest.
$ac_ext <<_ACEOF
21782 cat confdefs.h
>>conftest.
$ac_ext
21783 cat >>conftest.
$ac_ext <<_ACEOF
21784 /* end confdefs.h. */
21785 $ac_includes_default
21786 #include <$ac_header>
21788 rm -f conftest.
$ac_objext
21789 if { (ac_try
="$ac_compile"
21790 case "(($ac_try" in
21791 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21792 *) ac_try_echo=$ac_try;;
21794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21795 (eval "$ac_compile") 2>conftest.er1
21797 grep -v '^ *+' conftest.er1 >conftest.err
21799 cat conftest.err >&5
21800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21801 (exit $ac_status); } && {
21802 test -z "$ac_c_werror_flag" ||
21803 test ! -s conftest.err
21804 } && test -s conftest.$ac_objext; then
21805 ac_header_compiler=yes
21807 echo "$as_me: failed program was:" >&5
21808 sed 's/^/| /' conftest.$ac_ext >&5
21810 ac_header_compiler=no
21813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21814 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21815 echo "${ECHO_T}$ac_header_compiler" >&6; }
21817 # Is the header present?
21818 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21819 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21820 cat >conftest.$ac_ext <<_ACEOF
21823 cat confdefs.h >>conftest.$ac_ext
21824 cat >>conftest.$ac_ext <<_ACEOF
21825 /* end confdefs.h. */
21826 #include <$ac_header>
21828 if { (ac_try="$ac_cpp conftest.$ac_ext"
21829 case "(($ac_try" in
21830 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21831 *) ac_try_echo
=$ac_try;;
21833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21836 grep -v '^ *+' conftest.er1
>conftest.err
21838 cat conftest.err
>&5
21839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21840 (exit $ac_status); } >/dev
/null
&& {
21841 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21842 test ! -s conftest.err
21844 ac_header_preproc
=yes
21846 echo "$as_me: failed program was:" >&5
21847 sed 's/^/| /' conftest.
$ac_ext >&5
21849 ac_header_preproc
=no
21852 rm -f conftest.err conftest.
$ac_ext
21853 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21854 echo "${ECHO_T}$ac_header_preproc" >&6; }
21856 # So? What about this header?
21857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21859 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21860 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21862 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21863 ac_header_preproc
=yes
21866 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21867 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21868 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21869 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21870 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21871 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21872 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21873 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21875 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21876 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21877 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21879 ## ---------------------------------- ##
21880 ## Report this to bug-libtool@gnu.org ##
21881 ## ---------------------------------- ##
21883 ) |
sed "s/^/$as_me: WARNING: /" >&2
21886 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21888 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21889 echo $ECHO_N "(cached) $ECHO_C" >&6
21891 eval "$as_ac_Header=\$ac_header_preproc"
21893 ac_res
=`eval echo '${'$as_ac_Header'}'`
21894 { echo "$as_me:$LINENO: result: $ac_res" >&5
21895 echo "${ECHO_T}$ac_res" >&6; }
21898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21899 cat >>confdefs.h
<<_ACEOF
21900 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21910 for ac_func
in strchr index
21912 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21913 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21915 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21916 echo $ECHO_N "(cached) $ECHO_C" >&6
21918 cat >conftest.
$ac_ext <<_ACEOF
21921 cat confdefs.h
>>conftest.
$ac_ext
21922 cat >>conftest.
$ac_ext <<_ACEOF
21923 /* end confdefs.h. */
21924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21926 #define $ac_func innocuous_$ac_func
21928 /* System header to define __stub macros and hopefully few prototypes,
21929 which can conflict with char $ac_func (); below.
21930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21931 <limits.h> exists even on freestanding compilers. */
21934 # include <limits.h>
21936 # include <assert.h>
21941 /* Override any GCC internal prototype to avoid an error.
21942 Use char because int might match the return type of a GCC
21943 builtin and then its argument prototype would still apply. */
21948 /* The GNU C library defines this for functions which it implements
21949 to always fail with ENOSYS. Some functions are actually named
21950 something starting with __ and the normal name is an alias. */
21951 #if defined __stub_$ac_func || defined __stub___$ac_func
21958 return $ac_func ();
21963 rm -f conftest.
$ac_objext conftest
$ac_exeext
21964 if { (ac_try
="$ac_link"
21965 case "(($ac_try" in
21966 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21967 *) ac_try_echo=$ac_try;;
21969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21970 (eval "$ac_link") 2>conftest.er1
21972 grep -v '^ *+' conftest.er1 >conftest.err
21974 cat conftest.err >&5
21975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21976 (exit $ac_status); } && {
21977 test -z "$ac_c_werror_flag" ||
21978 test ! -s conftest.err
21979 } && test -s conftest$ac_exeext &&
21980 $as_test_x conftest$ac_exeext; then
21981 eval "$as_ac_var=yes"
21983 echo "$as_me: failed program was:" >&5
21984 sed 's/^/| /' conftest.$ac_ext >&5
21986 eval "$as_ac_var=no"
21989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21990 conftest$ac_exeext conftest.$ac_ext
21992 ac_res=`eval echo '${'$as_ac_var'}'`
21993 { echo "$as_me:$LINENO: result: $ac_res" >&5
21994 echo "${ECHO_T}$ac_res" >&6; }
21995 if test `eval echo '${'$as_ac_var'}'` = yes; then
21996 cat >>confdefs.h <<_ACEOF
21997 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
22005 for ac_func in strrchr rindex
22007 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
22008 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22009 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22010 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22011 echo $ECHO_N "(cached) $ECHO_C" >&6
22013 cat >conftest.$ac_ext <<_ACEOF
22016 cat confdefs.h >>conftest.$ac_ext
22017 cat >>conftest.$ac_ext <<_ACEOF
22018 /* end confdefs.h. */
22019 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22021 #define $ac_func innocuous_$ac_func
22023 /* System header to define __stub macros and hopefully few prototypes,
22024 which can conflict with char $ac_func (); below.
22025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22026 <limits.h> exists even on freestanding compilers. */
22029 # include <limits.h>
22031 # include <assert.h>
22036 /* Override any GCC internal prototype to avoid an error.
22037 Use char because int might match the return type of a GCC
22038 builtin and then its argument prototype would still apply. */
22043 /* The GNU C library defines this for functions which it implements
22044 to always fail with ENOSYS. Some functions are actually named
22045 something starting with __ and the normal name is an alias. */
22046 #if defined __stub_$ac_func || defined __stub___$ac_func
22053 return $ac_func ();
22058 rm -f conftest.$ac_objext conftest$ac_exeext
22059 if { (ac_try="$ac_link"
22060 case "(($ac_try" in
22061 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22062 *) ac_try_echo
=$ac_try;;
22064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22065 (eval "$ac_link") 2>conftest.er1
22067 grep -v '^ *+' conftest.er1
>conftest.err
22069 cat conftest.err
>&5
22070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22071 (exit $ac_status); } && {
22072 test -z "$ac_c_werror_flag" ||
22073 test ! -s conftest.err
22074 } && test -s conftest
$ac_exeext &&
22075 $as_test_x conftest
$ac_exeext; then
22076 eval "$as_ac_var=yes"
22078 echo "$as_me: failed program was:" >&5
22079 sed 's/^/| /' conftest.
$ac_ext >&5
22081 eval "$as_ac_var=no"
22084 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22085 conftest
$ac_exeext conftest.
$ac_ext
22087 ac_res
=`eval echo '${'$as_ac_var'}'`
22088 { echo "$as_me:$LINENO: result: $ac_res" >&5
22089 echo "${ECHO_T}$ac_res" >&6; }
22090 if test `eval echo '${'$as_ac_var'}'` = yes; then
22091 cat >>confdefs.h
<<_ACEOF
22092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22100 for ac_func
in memcpy bcopy
22102 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22103 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22104 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22105 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22106 echo $ECHO_N "(cached) $ECHO_C" >&6
22108 cat >conftest.
$ac_ext <<_ACEOF
22111 cat confdefs.h
>>conftest.
$ac_ext
22112 cat >>conftest.
$ac_ext <<_ACEOF
22113 /* end confdefs.h. */
22114 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22115 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22116 #define $ac_func innocuous_$ac_func
22118 /* System header to define __stub macros and hopefully few prototypes,
22119 which can conflict with char $ac_func (); below.
22120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22121 <limits.h> exists even on freestanding compilers. */
22124 # include <limits.h>
22126 # include <assert.h>
22131 /* Override any GCC internal prototype to avoid an error.
22132 Use char because int might match the return type of a GCC
22133 builtin and then its argument prototype would still apply. */
22138 /* The GNU C library defines this for functions which it implements
22139 to always fail with ENOSYS. Some functions are actually named
22140 something starting with __ and the normal name is an alias. */
22141 #if defined __stub_$ac_func || defined __stub___$ac_func
22148 return $ac_func ();
22153 rm -f conftest.
$ac_objext conftest
$ac_exeext
22154 if { (ac_try
="$ac_link"
22155 case "(($ac_try" in
22156 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22157 *) ac_try_echo=$ac_try;;
22159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22160 (eval "$ac_link") 2>conftest.er1
22162 grep -v '^ *+' conftest.er1 >conftest.err
22164 cat conftest.err >&5
22165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22166 (exit $ac_status); } && {
22167 test -z "$ac_c_werror_flag" ||
22168 test ! -s conftest.err
22169 } && test -s conftest$ac_exeext &&
22170 $as_test_x conftest$ac_exeext; then
22171 eval "$as_ac_var=yes"
22173 echo "$as_me: failed program was:" >&5
22174 sed 's/^/| /' conftest.$ac_ext >&5
22176 eval "$as_ac_var=no"
22179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22180 conftest$ac_exeext conftest.$ac_ext
22182 ac_res=`eval echo '${'$as_ac_var'}'`
22183 { echo "$as_me:$LINENO: result: $ac_res" >&5
22184 echo "${ECHO_T}$ac_res" >&6; }
22185 if test `eval echo '${'$as_ac_var'}'` = yes; then
22186 cat >>confdefs.h <<_ACEOF
22187 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
22195 for ac_func in memmove strcmp
22197 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
22198 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22200 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22201 echo $ECHO_N "(cached) $ECHO_C" >&6
22203 cat >conftest.$ac_ext <<_ACEOF
22206 cat confdefs.h >>conftest.$ac_ext
22207 cat >>conftest.$ac_ext <<_ACEOF
22208 /* end confdefs.h. */
22209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22211 #define $ac_func innocuous_$ac_func
22213 /* System header to define __stub macros and hopefully few prototypes,
22214 which can conflict with char $ac_func (); below.
22215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22216 <limits.h> exists even on freestanding compilers. */
22219 # include <limits.h>
22221 # include <assert.h>
22226 /* Override any GCC internal prototype to avoid an error.
22227 Use char because int might match the return type of a GCC
22228 builtin and then its argument prototype would still apply. */
22233 /* The GNU C library defines this for functions which it implements
22234 to always fail with ENOSYS. Some functions are actually named
22235 something starting with __ and the normal name is an alias. */
22236 #if defined __stub_$ac_func || defined __stub___$ac_func
22243 return $ac_func ();
22248 rm -f conftest.$ac_objext conftest$ac_exeext
22249 if { (ac_try="$ac_link"
22250 case "(($ac_try" in
22251 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22252 *) ac_try_echo
=$ac_try;;
22254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22255 (eval "$ac_link") 2>conftest.er1
22257 grep -v '^ *+' conftest.er1
>conftest.err
22259 cat conftest.err
>&5
22260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22261 (exit $ac_status); } && {
22262 test -z "$ac_c_werror_flag" ||
22263 test ! -s conftest.err
22264 } && test -s conftest
$ac_exeext &&
22265 $as_test_x conftest
$ac_exeext; then
22266 eval "$as_ac_var=yes"
22268 echo "$as_me: failed program was:" >&5
22269 sed 's/^/| /' conftest.
$ac_ext >&5
22271 eval "$as_ac_var=no"
22274 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22275 conftest
$ac_exeext conftest.
$ac_ext
22277 ac_res
=`eval echo '${'$as_ac_var'}'`
22278 { echo "$as_me:$LINENO: result: $ac_res" >&5
22279 echo "${ECHO_T}$ac_res" >&6; }
22280 if test `eval echo '${'$as_ac_var'}'` = yes; then
22281 cat >>confdefs.h
<<_ACEOF
22282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22291 for ac_func
in closedir opendir readdir
22293 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22294 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22295 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22296 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22297 echo $ECHO_N "(cached) $ECHO_C" >&6
22299 cat >conftest.
$ac_ext <<_ACEOF
22302 cat confdefs.h
>>conftest.
$ac_ext
22303 cat >>conftest.
$ac_ext <<_ACEOF
22304 /* end confdefs.h. */
22305 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22307 #define $ac_func innocuous_$ac_func
22309 /* System header to define __stub macros and hopefully few prototypes,
22310 which can conflict with char $ac_func (); below.
22311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22312 <limits.h> exists even on freestanding compilers. */
22315 # include <limits.h>
22317 # include <assert.h>
22322 /* Override any GCC internal prototype to avoid an error.
22323 Use char because int might match the return type of a GCC
22324 builtin and then its argument prototype would still apply. */
22329 /* The GNU C library defines this for functions which it implements
22330 to always fail with ENOSYS. Some functions are actually named
22331 something starting with __ and the normal name is an alias. */
22332 #if defined __stub_$ac_func || defined __stub___$ac_func
22339 return $ac_func ();
22344 rm -f conftest.
$ac_objext conftest
$ac_exeext
22345 if { (ac_try
="$ac_link"
22346 case "(($ac_try" in
22347 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22348 *) ac_try_echo=$ac_try;;
22350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22351 (eval "$ac_link") 2>conftest.er1
22353 grep -v '^ *+' conftest.er1 >conftest.err
22355 cat conftest.err >&5
22356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22357 (exit $ac_status); } && {
22358 test -z "$ac_c_werror_flag" ||
22359 test ! -s conftest.err
22360 } && test -s conftest$ac_exeext &&
22361 $as_test_x conftest$ac_exeext; then
22362 eval "$as_ac_var=yes"
22364 echo "$as_me: failed program was:" >&5
22365 sed 's/^/| /' conftest.$ac_ext >&5
22367 eval "$as_ac_var=no"
22370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22371 conftest$ac_exeext conftest.$ac_ext
22373 ac_res=`eval echo '${'$as_ac_var'}'`
22374 { echo "$as_me:$LINENO: result: $ac_res" >&5
22375 echo "${ECHO_T}$ac_res" >&6; }
22376 if test `eval echo '${'$as_ac_var'}'` = yes; then
22377 cat >>confdefs.h <<_ACEOF
22378 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
22390 ac_config_files="$ac_config_files Makefile"
22392 cat >confcache <<\_ACEOF
22393 # This file is a shell script that caches the results of configure
22394 # tests run on this system so they can be shared between configure
22395 # scripts and configure runs, see configure's option --config-cache.
22396 # It is not useful on other systems. If it contains results you don't
22397 # want to keep, you may remove or edit it.
22399 # config.status only pays attention to the cache file if you give it
22400 # the --recheck option to rerun configure.
22402 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
22403 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22404 # following values.
22408 # The following way of writing the cache mishandles newlines in values,
22409 # but we know of no workaround that is simple, portable, and efficient.
22410 # So, we kill variables containing newlines.
22411 # Ultrix sh set writes to stderr and can't be redirected directly,
22412 # and sets the high bit in the cache file unless we assign to the vars.
22414 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22415 eval ac_val
=\$
$ac_var
22419 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22420 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22423 _ | IFS | as_nl
) ;; #(
22424 *) $as_unset $ac_var ;;
22430 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22431 *${as_nl}ac_space
=\
*)
22432 # `set' does not quote correctly, so add quotes (double-quote
22433 # substitution turns \\\\ into \\, and sed turns \\ into \).
22436 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22439 # `set' quotes correctly as required by POSIX, so do not add quotes.
22440 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22449 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22451 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22453 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
22454 if test -w "$cache_file"; then
22455 test "x$cache_file" != "x/dev/null" &&
22456 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22457 echo "$as_me: updating cache $cache_file" >&6;}
22458 cat confcache
>$cache_file
22460 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22461 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22466 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
22467 # Let make expand exec_prefix.
22468 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
22470 DEFS
=-DHAVE_CONFIG_H
22474 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
22475 # 1. Remove the extension, and $U if already installed.
22476 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
22477 ac_i
=`echo "$ac_i" | sed "$ac_script"`
22478 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22479 # will be set to the directory where LIBOBJS objects are built.
22480 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22481 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22483 LIBOBJS
=$ac_libobjs
22485 LTLIBOBJS
=$ac_ltlibobjs
22488 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22489 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22490 Usually this means the macro was only invoked conditionally." >&5
22491 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22492 Usually this means the macro was only invoked conditionally." >&2;}
22493 { (exit 1); exit 1; }; }
22495 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22496 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22497 Usually this means the macro was only invoked conditionally." >&5
22498 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22499 Usually this means the macro was only invoked conditionally." >&2;}
22500 { (exit 1); exit 1; }; }
22502 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22503 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22504 Usually this means the macro was only invoked conditionally." >&5
22505 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22506 Usually this means the macro was only invoked conditionally." >&2;}
22507 { (exit 1); exit 1; }; }
22509 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22510 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22511 Usually this means the macro was only invoked conditionally." >&5
22512 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22513 Usually this means the macro was only invoked conditionally." >&2;}
22514 { (exit 1); exit 1; }; }
22516 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22517 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22518 Usually this means the macro was only invoked conditionally." >&5
22519 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22520 Usually this means the macro was only invoked conditionally." >&2;}
22521 { (exit 1); exit 1; }; }
22524 : ${CONFIG_STATUS=./config.status}
22525 ac_clean_files_save
=$ac_clean_files
22526 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
22527 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22528 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22529 cat >$CONFIG_STATUS <<_ACEOF
22531 # Generated by $as_me.
22532 # Run this file to recreate the current configuration.
22533 # Compiler output produced by configure, useful for debugging
22534 # configure, is in config.log if it exists.
22537 ac_cs_recheck=false
22539 SHELL=\${CONFIG_SHELL-$SHELL}
22542 cat >>$CONFIG_STATUS <<\_ACEOF
22543 ## --------------------- ##
22544 ## M4sh Initialization. ##
22545 ## --------------------- ##
22547 # Be more Bourne compatible
22548 DUALCASE
=1; export DUALCASE
# for MKS sh
22549 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
22552 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22553 # is contrary to our usage. Disable this feature.
22554 alias -g '${1+"$@"}'='"$@"'
22555 setopt NO_GLOB_SUBST
22557 case `(set -o) 2>/dev/null` in
22558 *posix
*) set -o posix
;;
22567 # Avoid depending upon Character Ranges.
22568 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
22569 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22570 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
22571 as_cr_digits
='0123456789'
22572 as_cr_alnum
=$as_cr_Letters$as_cr_digits
22574 # The user is always right.
22575 if test "${PATH_SEPARATOR+set}" != set; then
22576 echo "#! /bin/sh" >conf$$.sh
22577 echo "exit 0" >>conf$$.sh
22579 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
22587 # Support unset when possible.
22588 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
22596 # We need space, tab and new line, in precisely that order. Quoting is
22597 # there to prevent editors from complaining about space-tab.
22598 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22599 # splitting by setting IFS to empty value.)
22604 # Find who we are. Look in the path if we contain no directory separator.
22606 *[\\/]* ) as_myself
=$0 ;;
22607 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22608 for as_dir
in $PATH
22611 test -z "$as_dir" && as_dir
=.
22612 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
22618 # We did not find ourselves, most probably we were run as `sh COMMAND'
22619 # in which case we are not to be found in the path.
22620 if test "x$as_myself" = x
; then
22623 if test ! -f "$as_myself"; then
22624 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22625 { (exit 1); exit 1; }
22628 # Work around bugs in pre-3.0 UWIN ksh.
22629 for as_var
in ENV MAIL MAILPATH
22630 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
22638 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22639 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22640 LC_TELEPHONE LC_TIME
22642 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22643 eval $as_var=C
; export $as_var
22645 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
22649 # Required to use basename.
22650 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
22651 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
22657 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22658 as_basename
=basename
22664 # Name of the executable.
22665 as_me
=`$as_basename -- "$0" ||
22666 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22667 X"$0" : 'X\(//\)$' \| \
22668 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22670 sed '/^.*\/\([^/][^/]*\)\/*$/{
22689 as_lineno_1
=$LINENO
22690 as_lineno_2
=$LINENO
22691 test "x$as_lineno_1" != "x$as_lineno_2" &&
22692 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
22694 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22695 # uniformly replaced by the line number. The first 'sed' inserts a
22696 # line-number line after each line using $LINENO; the second 'sed'
22697 # does the real work. The second script uses 'N' to pair each
22698 # line-number line with the line containing $LINENO, and appends
22699 # trailing '-' during substitution so that $LINENO is not a special
22700 # case at line end.
22701 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22702 # scripts with optimization help from Paolo Bonzini. Blame Lee
22703 # E. McMahon (1931-1989) for sed's syntax. :-)
22715 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22718 ' >$as_me.lineno
&&
22719 chmod +x
"$as_me.lineno" ||
22720 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22721 { (exit 1); exit 1; }; }
22723 # Don't try to exec as it changes $[0], causing all sort of problems
22724 # (the dirname of $[0] is not the place where we might find the
22725 # original and so on. Autoconf is especially sensitive to this).
22726 .
"./$as_me.lineno"
22727 # Exit status is that of the last command.
22732 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
22738 ECHO_C
= ECHO_N
= ECHO_T
=
22739 case `echo -n x` in
22741 case `echo 'x\c'` in
22742 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
22749 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
22750 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
22756 rm -f conf$$ conf$$.exe conf$$.
file
22757 if test -d conf$$.dir
; then
22758 rm -f conf$$.dir
/conf$$.
file
22764 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
22766 # ... but there are two gotchas:
22767 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22768 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22769 # In both cases, we have to default to `cp -p'.
22770 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
22772 elif ln conf$$.
file conf$$
2>/dev
/null
; then
22777 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
22778 rmdir conf$$.dir
2>/dev
/null
22780 if mkdir
-p .
2>/dev
/null
; then
22783 test -d .
/-p && rmdir .
/-p
22787 if test -x / >/dev
/null
2>&1; then
22788 as_test_x
='test -x'
22790 if ls -dL / >/dev
/null
2>&1; then
22797 if test -d "$1"; then
22803 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22804 ???[sx]*):;;*)false;;esac;fi
22808 as_executable_p
=$as_test_x
22810 # Sed expression to map a string onto a valid CPP name.
22811 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22813 # Sed expression to map a string onto a valid variable name.
22814 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22819 # Save the log message, to keep $[0] and so on meaningful, and to
22820 # report actual input values of CONFIG_FILES etc. instead of their
22821 # values after options handling.
22823 This file was extended by libltdl $as_me 1.2, which was
22824 generated by GNU Autoconf 2.61. Invocation command line was
22826 CONFIG_FILES = $CONFIG_FILES
22827 CONFIG_HEADERS = $CONFIG_HEADERS
22828 CONFIG_LINKS = $CONFIG_LINKS
22829 CONFIG_COMMANDS = $CONFIG_COMMANDS
22832 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22837 cat >>$CONFIG_STATUS <<_ACEOF
22838 # Files that config.status was made for.
22839 config_files="$ac_config_files"
22840 config_headers="$ac_config_headers"
22841 config_commands="$ac_config_commands"
22845 cat >>$CONFIG_STATUS <<\_ACEOF
22847 \`$as_me' instantiates files from templates according to the
22848 current configuration.
22850 Usage: $0 [OPTIONS] [FILE]...
22852 -h, --help print this help, then exit
22853 -V, --version print version number and configuration settings, then exit
22854 -q, --quiet do not print progress messages
22855 -d, --debug don't remove temporary files
22856 --recheck update $as_me by reconfiguring in the same conditions
22857 --file=FILE[:TEMPLATE]
22858 instantiate the configuration file FILE
22859 --header=FILE[:TEMPLATE]
22860 instantiate the configuration header FILE
22862 Configuration files:
22865 Configuration headers:
22868 Configuration commands:
22871 Report bugs to <bug-autoconf@gnu.org>."
22874 cat >>$CONFIG_STATUS <<_ACEOF
22876 libltdl config.status 1.2
22877 configured by $0, generated by GNU Autoconf 2.61,
22878 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22880 Copyright (C) 2006 Free Software Foundation, Inc.
22881 This config.status script is free software; the Free Software Foundation
22882 gives unlimited permission to copy, distribute and modify it."
22890 cat >>$CONFIG_STATUS <<\_ACEOF
22891 # If no file are specified by the user, then we need to provide default
22892 # value. By we need to know if files were specified by the user.
22898 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
22899 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
22910 # Handling of the options.
22911 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
22913 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
22914 echo "$ac_cs_version"; exit ;;
22915 --debug |
--debu |
--deb |
--de |
--d |
-d )
22917 --file |
--fil |
--fi |
--f )
22919 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
22920 ac_need_defaults
=false
;;
22921 --header |
--heade |
--head |
--hea )
22923 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
22924 ac_need_defaults
=false
;;
22926 # Conflict between --help and --header
22927 { echo "$as_me: error: ambiguous option: $1
22928 Try \`$0 --help' for more information." >&2
22929 { (exit 1); exit 1; }; };;
22930 --help |
--hel |
-h )
22931 echo "$ac_cs_usage"; exit ;;
22932 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
22933 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
22936 # This is an error.
22937 -*) { echo "$as_me: error: unrecognized option: $1
22938 Try \`$0 --help' for more information." >&2
22939 { (exit 1); exit 1; }; } ;;
22941 *) ac_config_targets
="$ac_config_targets $1"
22942 ac_need_defaults
=false
;;
22948 ac_configure_extra_args
=
22950 if $ac_cs_silent; then
22952 ac_configure_extra_args
="$ac_configure_extra_args --silent"
22956 cat >>$CONFIG_STATUS <<_ACEOF
22957 if \$ac_cs_recheck; then
22958 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22959 CONFIG_SHELL=$SHELL
22960 export CONFIG_SHELL
22961 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22965 cat >>$CONFIG_STATUS <<\_ACEOF
22969 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22970 ## Running $as_me. ##
22976 cat >>$CONFIG_STATUS <<_ACEOF
22980 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22984 cat >>$CONFIG_STATUS <<\_ACEOF
22986 # Handling of arguments.
22987 for ac_config_target
in $ac_config_targets
22989 case $ac_config_target in
22990 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config-h.in" ;;
22991 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
22992 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
22994 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22995 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22996 { (exit 1); exit 1; }; };;
23001 # If the user did not use the arguments to specify the items to instantiate,
23002 # then the envvar interface is used. Set only those that are not.
23003 # We use the long form for the default assignment because of an extremely
23004 # bizarre bug on SunOS 4.1.3.
23005 if $ac_need_defaults; then
23006 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23007 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23008 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23011 # Have a temporary directory for convenience. Make it in the build tree
23012 # simply because there is no reason against having it here, and in addition,
23013 # creating and moving files from /tmp can sometimes cause problems.
23014 # Hook for its removal unless debugging.
23015 # Note that there is a small window in which the directory will not be cleaned:
23016 # after its creation but before its name has been assigned to `$tmp'.
23020 trap 'exit_status=$?
23021 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23023 trap '{ (exit 1); exit 1; }' 1 2 13 15
23025 # Create a (secure) tmp directory for tmp files.
23028 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23029 test -n "$tmp" && test -d "$tmp"
23032 tmp
=.
/conf$$
-$RANDOM
23033 (umask 077 && mkdir
"$tmp")
23036 echo "$me: cannot create a temporary directory in ." >&2
23037 { (exit 1); exit 1; }
23041 # Set up the sed scripts for CONFIG_FILES section.
23044 # No need to generate the scripts if there are no CONFIG_FILES.
23045 # This happens for instance when ./config.status config.h
23046 if test -n "$CONFIG_FILES"; then
23053 for ac_last_try
in false false false false false
:; do
23054 cat >conf$
$subs.
sed <<_ACEOF
23055 SHELL!$SHELL$ac_delim
23056 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23057 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23058 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23059 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23060 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23061 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23062 exec_prefix!$exec_prefix$ac_delim
23063 prefix!$prefix$ac_delim
23064 program_transform_name!$program_transform_name$ac_delim
23065 bindir!$bindir$ac_delim
23066 sbindir!$sbindir$ac_delim
23067 libexecdir!$libexecdir$ac_delim
23068 datarootdir!$datarootdir$ac_delim
23069 datadir!$datadir$ac_delim
23070 sysconfdir!$sysconfdir$ac_delim
23071 sharedstatedir!$sharedstatedir$ac_delim
23072 localstatedir!$localstatedir$ac_delim
23073 includedir!$includedir$ac_delim
23074 oldincludedir!$oldincludedir$ac_delim
23075 docdir!$docdir$ac_delim
23076 infodir!$infodir$ac_delim
23077 htmldir!$htmldir$ac_delim
23078 dvidir!$dvidir$ac_delim
23079 pdfdir!$pdfdir$ac_delim
23080 psdir!$psdir$ac_delim
23081 libdir!$libdir$ac_delim
23082 localedir!$localedir$ac_delim
23083 mandir!$mandir$ac_delim
23084 DEFS!$DEFS$ac_delim
23085 ECHO_C!$ECHO_C$ac_delim
23086 ECHO_N!$ECHO_N$ac_delim
23087 ECHO_T!$ECHO_T$ac_delim
23088 LIBS!$LIBS$ac_delim
23089 build_alias!$build_alias$ac_delim
23090 host_alias!$host_alias$ac_delim
23091 target_alias!$target_alias$ac_delim
23092 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23093 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23094 INSTALL_DATA!$INSTALL_DATA$ac_delim
23095 am__isrc!$am__isrc$ac_delim
23096 CYGPATH_W!$CYGPATH_W$ac_delim
23097 PACKAGE!$PACKAGE$ac_delim
23098 VERSION!$VERSION$ac_delim
23099 ACLOCAL!$ACLOCAL$ac_delim
23100 AUTOCONF!$AUTOCONF$ac_delim
23101 AUTOMAKE!$AUTOMAKE$ac_delim
23102 AUTOHEADER!$AUTOHEADER$ac_delim
23103 MAKEINFO!$MAKEINFO$ac_delim
23104 install_sh!$install_sh$ac_delim
23105 STRIP!$STRIP$ac_delim
23106 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23107 mkdir_p!$mkdir_p$ac_delim
23109 SET_MAKE!$SET_MAKE$ac_delim
23110 am__leading_dot!$am__leading_dot$ac_delim
23111 AMTAR!$AMTAR$ac_delim
23112 am__tar!$am__tar$ac_delim
23113 am__untar!$am__untar$ac_delim
23115 CFLAGS!$CFLAGS$ac_delim
23116 LDFLAGS!$LDFLAGS$ac_delim
23117 CPPFLAGS!$CPPFLAGS$ac_delim
23118 ac_ct_CC!$ac_ct_CC$ac_delim
23119 EXEEXT!$EXEEXT$ac_delim
23120 OBJEXT!$OBJEXT$ac_delim
23121 DEPDIR!$DEPDIR$ac_delim
23122 am__include!$am__include$ac_delim
23123 am__quote!$am__quote$ac_delim
23124 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23125 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23126 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23127 CCDEPMODE!$CCDEPMODE$ac_delim
23128 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23129 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23130 build!$build$ac_delim
23131 build_cpu!$build_cpu$ac_delim
23132 build_vendor!$build_vendor$ac_delim
23133 build_os!$build_os$ac_delim
23134 host!$host$ac_delim
23135 host_cpu!$host_cpu$ac_delim
23136 host_vendor!$host_vendor$ac_delim
23137 host_os!$host_os$ac_delim
23139 GREP!$GREP$ac_delim
23140 EGREP!$EGREP$ac_delim
23141 LN_S!$LN_S$ac_delim
23142 ECHO!$ECHO$ac_delim
23144 RANLIB!$RANLIB$ac_delim
23145 DLLTOOL!$DLLTOOL$ac_delim
23147 OBJDUMP!$OBJDUMP$ac_delim
23150 CXXFLAGS!$CXXFLAGS$ac_delim
23151 ac_ct_CXX!$ac_ct_CXX$ac_delim
23154 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23156 elif $ac_last_try; then
23157 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23158 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23159 { (exit 1); exit 1; }; }
23161 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
23165 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23166 if test -n "$ac_eof"; then
23167 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
23168 ac_eof
=`expr $ac_eof + 1`
23171 cat >>$CONFIG_STATUS <<_ACEOF
23172 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23173 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23176 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23177 s/^/s,@/; s/!/@,|#_!!_#|/
23180 s/'"$ac_delim"'$/,g/; t
23182 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23183 ' >>$CONFIG_STATUS <conf$
$subs.
sed
23184 rm -f conf$
$subs.
sed
23185 cat >>$CONFIG_STATUS <<_ACEOF
23191 for ac_last_try
in false false false false false
:; do
23192 cat >conf$
$subs.
sed <<_ACEOF
23193 CXXDEPMODE!$CXXDEPMODE$ac_delim
23194 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23195 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23196 CXXCPP!$CXXCPP$ac_delim
23198 FFLAGS!$FFLAGS$ac_delim
23199 ac_ct_F77!$ac_ct_F77$ac_delim
23200 LIBTOOL!$LIBTOOL$ac_delim
23201 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
23202 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23203 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23204 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23205 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23206 LIBADD_DL!$LIBADD_DL$ac_delim
23207 LIBOBJS!$LIBOBJS$ac_delim
23208 LTLIBOBJS!$LTLIBOBJS$ac_delim
23211 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 16; then
23213 elif $ac_last_try; then
23214 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23215 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23216 { (exit 1); exit 1; }; }
23218 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
23222 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23223 if test -n "$ac_eof"; then
23224 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
23225 ac_eof
=`expr $ac_eof + 1`
23228 cat >>$CONFIG_STATUS <<_ACEOF
23229 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23230 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23233 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23234 s/^/s,@/; s/!/@,|#_!!_#|/
23237 s/'"$ac_delim"'$/,g/; t
23239 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23240 ' >>$CONFIG_STATUS <conf$
$subs.
sed
23241 rm -f conf$
$subs.
sed
23242 cat >>$CONFIG_STATUS <<_ACEOF
23249 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23250 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23251 # trailing colons and then remove the whole line if VPATH becomes empty
23252 # (actually we leave an empty line to preserve line numbers).
23253 if test "x$srcdir" = x.
; then
23254 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
23255 s/:*\$(srcdir):*/:/
23256 s/:*\${srcdir}:*/:/
23258 s/^\([^=]*=[ ]*\):*/\1/
23264 cat >>$CONFIG_STATUS <<\_ACEOF
23265 fi # test -n "$CONFIG_FILES"
23268 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
23271 :[FHLC
]) ac_mode
=$ac_tag; continue;;
23273 case $ac_mode$ac_tag in
23275 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23276 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23277 { (exit 1); exit 1; }; };;
23278 :[FH
]-) ac_tag
=-:-;;
23279 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
23296 -) ac_f
="$tmp/stdin";;
23297 *) # Look for the file first in the build tree, then in the source tree
23298 # (if the path is not absolute). The absolute path cannot be DOS-style,
23299 # because $ac_f cannot contain `:'.
23303 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
23305 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23306 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23307 { (exit 1); exit 1; }; };;
23309 ac_file_inputs
="$ac_file_inputs $ac_f"
23312 # Let's still pretend it is `configure' which instantiates (i.e., don't
23313 # use $as_me), people would be surprised to read:
23314 # /* config.h. Generated by config.status. */
23315 configure_input
="Generated from "`IFS=:
23316 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23317 if test x
"$ac_file" != x-
; then
23318 configure_input
="$ac_file. $configure_input"
23319 { echo "$as_me:$LINENO: creating $ac_file" >&5
23320 echo "$as_me: creating $ac_file" >&6;}
23324 *:-:* |
*:-) cat >"$tmp/stdin";;
23329 ac_dir
=`$as_dirname -- "$ac_file" ||
23330 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23331 X"$ac_file" : 'X\(//\)[^/]' \| \
23332 X"$ac_file" : 'X\(//\)$' \| \
23333 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23339 /^X\(\/\/\)[^/].*/{
23354 -*) as_dir
=.
/$as_dir;;
23356 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
23360 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23361 *) as_qdir
=$as_dir;;
23363 as_dirs
="'$as_qdir' $as_dirs"
23364 as_dir
=`$as_dirname -- "$as_dir" ||
23365 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23366 X"$as_dir" : 'X\(//\)[^/]' \| \
23367 X"$as_dir" : 'X\(//\)$' \| \
23368 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23374 /^X\(\/\/\)[^/].*/{
23387 test -d "$as_dir" && break
23389 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
23390 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23391 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23392 { (exit 1); exit 1; }; }; }
23396 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
23398 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23399 # A ".." for each directory in $ac_dir_suffix.
23400 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23401 case $ac_top_builddir_sub in
23402 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
23403 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
23406 ac_abs_top_builddir
=$ac_pwd
23407 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
23408 # for backward compatibility:
23409 ac_top_builddir
=$ac_top_build_prefix
23412 .
) # We are building in place.
23414 ac_top_srcdir
=$ac_top_builddir_sub
23415 ac_abs_top_srcdir
=$ac_pwd ;;
23416 [\\/]* | ?
:[\\/]* ) # Absolute name.
23417 ac_srcdir
=$srcdir$ac_dir_suffix;
23418 ac_top_srcdir
=$srcdir
23419 ac_abs_top_srcdir
=$srcdir ;;
23420 *) # Relative name.
23421 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
23422 ac_top_srcdir
=$ac_top_build_prefix$srcdir
23423 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
23425 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
23435 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23436 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
23438 ac_MKDIR_P
=$MKDIR_P
23440 [\\/$
]* | ?
:[\\/]* ) ;;
23441 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
23445 cat >>$CONFIG_STATUS <<\_ACEOF
23446 # If the template does not know about datarootdir, expand it.
23447 # FIXME: This hack should be removed a few years after 2.60.
23448 ac_datarootdir_hack
=; ac_datarootdir_seen
=
23450 case `sed -n '/datarootdir/ {
23459 ' $ac_file_inputs` in
23460 *datarootdir
*) ac_datarootdir_seen
=yes;;
23461 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
23462 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23463 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23465 cat >>$CONFIG_STATUS <<_ACEOF
23466 ac_datarootdir_hack='
23467 s&@datadir@&$datadir&g
23468 s&@docdir@&$docdir&g
23469 s&@infodir@&$infodir&g
23470 s&@localedir@&$localedir&g
23471 s&@mandir@&$mandir&g
23472 s&\\\${datarootdir}&$datarootdir&g' ;;
23476 # Neutralize VPATH when `$srcdir' = `.'.
23477 # Shell code in configure.ac might set extrasub.
23478 # FIXME: do we really want to maintain this feature?
23479 cat >>$CONFIG_STATUS <<_ACEOF
23483 cat >>$CONFIG_STATUS <<\_ACEOF
23485 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
23486 s
&@configure_input@
&$configure_input&;t t
23487 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
23488 s
&@srcdir@
&$ac_srcdir&;t t
23489 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
23490 s
&@top_srcdir@
&$ac_top_srcdir&;t t
23491 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
23492 s
&@builddir@
&$ac_builddir&;t t
23493 s
&@abs_builddir@
&$ac_abs_builddir&;t t
23494 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
23495 s
&@INSTALL@
&$ac_INSTALL&;t t
23496 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
23497 $ac_datarootdir_hack
23498 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
23500 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23501 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
23502 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
23503 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
23504 which seems to be undefined. Please make sure it is defined." >&5
23505 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
23506 which seems to be undefined. Please make sure it is defined." >&2;}
23510 -) cat "$tmp/out"; rm -f "$tmp/out";;
23511 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23520 # Transform confdefs.h into a sed script `conftest.defines', that
23521 # substitutes the proper values into config.h.in to produce config.h.
23522 rm -f conftest.defines conftest.
tail
23523 # First, append a space to every undef/define line, to ease matching.
23524 echo 's/$/ /' >conftest.defines
23525 # Then, protect against being on the right side of a sed subst, or in
23526 # an unquoted here document, in config.status. If some macros were
23527 # called several times there might be several #defines for the same
23528 # symbol, which is useless. But do not sort them, since the last
23529 # AC_DEFINE must be honored.
23530 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
23531 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23532 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23533 # PARAMS is the parameter list in the macro definition--in most cases, it's
23534 # just an empty string.
23535 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23536 ac_dB
='\\)[ (].*,\\1define\\2'
23544 s/^[ ]*#[ ]*define[ ][ ]*//
23549 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23550 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23551 ' >>conftest.defines
23553 # Remove the space that was appended to ease matching.
23554 # Then replace #undef with comments. This is necessary, for
23555 # example, in the case of _POSIX_SOURCE, which is predefined and required
23556 # on some systems where configure will not decide to define it.
23557 # (The regexp can be short, since the line contains either #define or #undef.)
23559 s,^[ #]*u.*,/* & */,' >>conftest.defines
23561 # Break up conftest.defines:
23562 ac_max_sed_lines
=50
23564 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23565 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23566 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23568 ac_in
='$ac_file_inputs'
23569 ac_out
='"$tmp/out1"'
23570 ac_nxt
='"$tmp/out2"'
23574 # Write a here document:
23575 cat >>$CONFIG_STATUS <<_ACEOF
23576 # First, check the format of the line:
23577 cat >"\$tmp/defines.sed" <<\\CEOF
23578 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23579 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23583 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
23585 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23586 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
23587 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
23588 grep . conftest.
tail >/dev
/null ||
break
23589 rm -f conftest.defines
23590 mv conftest.
tail conftest.defines
23592 rm -f conftest.defines conftest.
tail
23594 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23595 cat >>$CONFIG_STATUS <<\_ACEOF
23596 if test x
"$ac_file" != x-
; then
23597 echo "/* $configure_input */" >"$tmp/config.h"
23598 cat "$ac_result" >>"$tmp/config.h"
23599 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
23600 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23601 echo "$as_me: $ac_file is unchanged" >&6;}
23604 mv "$tmp/config.h" $ac_file
23607 echo "/* $configure_input */"
23611 # Compute $ac_file's index in $config_headers.
23614 for _am_header
in $config_headers :; do
23615 case $_am_header in
23616 $_am_arg |
$_am_arg:* )
23619 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
23622 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23623 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23624 X"$_am_arg" : 'X\(//\)[^/]' \| \
23625 X"$_am_arg" : 'X\(//\)$' \| \
23626 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23632 /^X\(\/\/\)[^/].*/{
23644 s/.*/./; q'`/stamp-h
$_am_stamp_count
23647 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23648 echo "$as_me: executing $ac_file commands" >&6;}
23653 case $ac_file$ac_mode in
23654 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
23655 # Strip MF so we end up with the name of the file.
23656 mf
=`echo "$mf" | sed -e 's/:.*$//'`
23657 # Check whether this is an Automake generated Makefile or not.
23658 # We used to match only the files named `Makefile.in', but
23659 # some people rename them; so instead we look at the file content.
23660 # Grep'ing the first line is not enough: some people post-process
23661 # each Makefile.in and add a new line on top of each file to say so.
23662 # Grep'ing the whole file is not good either: AIX grep has a line
23663 # limit of 2048, but all sed's we know have understand at least 4000.
23664 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
23665 dirpart
=`$as_dirname -- "$mf" ||
23666 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23667 X"$mf" : 'X\(//\)[^/]' \| \
23668 X"$mf" : 'X\(//\)$' \| \
23669 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23671 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23675 /^X\(\/\/\)[^/].*/{
23691 # Extract the definition of DEPDIR, am__include, and am__quote
23692 # from the Makefile without running `make'.
23693 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
23694 test -z "$DEPDIR" && continue
23695 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
23696 test -z "am__include" && continue
23697 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
23698 # When using ansi2knr, U may be empty or an underscore; expand it
23699 U
=`sed -n 's/^U = //p' < "$mf"`
23700 # Find all dependency output files, they are included files with
23701 # $(DEPDIR) in their names. We invoke sed twice because it is the
23702 # simplest approach to changing $(DEPDIR) to its actual value in the
23704 for file in `sed -n "
23705 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23706 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23707 # Make sure the directory exists.
23708 test -f "$dirpart/$file" && continue
23709 fdir
=`$as_dirname -- "$file" ||
23710 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23711 X"$file" : 'X\(//\)[^/]' \| \
23712 X"$file" : 'X\(//\)$' \| \
23713 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23719 /^X\(\/\/\)[^/].*/{
23732 { as_dir
=$dirpart/$fdir
23734 -*) as_dir
=.
/$as_dir;;
23736 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
23740 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23741 *) as_qdir
=$as_dir;;
23743 as_dirs
="'$as_qdir' $as_dirs"
23744 as_dir
=`$as_dirname -- "$as_dir" ||
23745 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23746 X"$as_dir" : 'X\(//\)[^/]' \| \
23747 X"$as_dir" : 'X\(//\)$' \| \
23748 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23750 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23754 /^X\(\/\/\)[^/].*/{
23767 test -d "$as_dir" && break
23769 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
23770 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23771 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23772 { (exit 1); exit 1; }; }; }
23773 # echo "creating $dirpart/$file"
23774 echo '# dummy' > "$dirpart/$file"
23783 { (exit 0); exit 0; }
23785 chmod +x
$CONFIG_STATUS
23786 ac_clean_files
=$ac_clean_files_save
23789 # configure is writing to config.log, and then calls config.status.
23790 # config.status does its own redirection, appending to config.log.
23791 # Unfortunately, on DOS this fails, as config.log is still kept open
23792 # by configure, so config.status won't be able to write to it; its
23793 # output is simply discarded. So we exec the FD to /dev/null,
23794 # effectively closing config.log, so it can be properly (re)opened and
23795 # appended to by config.status. When coming back to configure, we
23796 # need to make the FD available again.
23797 if test "$no_create" != yes; then
23799 ac_config_status_args
=
23800 test "$silent" = yes &&
23801 ac_config_status_args
="$ac_config_status_args --quiet"
23803 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
23805 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23806 # would make configure fail if this is the last instruction.
23807 $ac_cs_success ||
{ (exit 1); exit 1; }