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"
4597 x86_64-
*kfreebsd
*-gnu)
4598 LD
="${LD-ld} -m elf_x86_64_fbsd"
4601 LD
="${LD-ld} -m elf_x86_64"
4603 ppc
*-*linux
*|powerpc
*-*linux
*)
4604 LD
="${LD-ld} -m elf64ppc"
4607 LD
="${LD-ld} -m elf64_s390"
4610 LD
="${LD-ld} -m elf64_sparc"
4620 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4621 SAVE_CFLAGS
="$CFLAGS"
4622 CFLAGS
="$CFLAGS -belf"
4623 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4624 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4625 if test "${lt_cv_cc_needs_belf+set}" = set; then
4626 echo $ECHO_N "(cached) $ECHO_C" >&6
4629 ac_cpp
='$CPP $CPPFLAGS'
4630 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4631 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4632 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4634 cat >conftest.
$ac_ext <<_ACEOF
4637 cat confdefs.h
>>conftest.
$ac_ext
4638 cat >>conftest.
$ac_ext <<_ACEOF
4639 /* end confdefs.h. */
4649 rm -f conftest.
$ac_objext conftest
$ac_exeext
4650 if { (ac_try
="$ac_link"
4652 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4653 *) ac_try_echo=$ac_try;;
4655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4656 (eval "$ac_link") 2>conftest.er1
4658 grep -v '^ *+' conftest.er1 >conftest.err
4660 cat conftest.err >&5
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); } && {
4663 test -z "$ac_c_werror_flag" ||
4664 test ! -s conftest.err
4665 } && test -s conftest$ac_exeext &&
4666 $as_test_x conftest$ac_exeext; then
4667 lt_cv_cc_needs_belf=yes
4669 echo "$as_me: failed program was:" >&5
4670 sed 's/^/| /' conftest.$ac_ext >&5
4672 lt_cv_cc_needs_belf=no
4675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4676 conftest$ac_exeext conftest.$ac_ext
4678 ac_cpp='$CPP $CPPFLAGS'
4679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4684 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4685 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4686 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4687 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4688 CFLAGS="$SAVE_CFLAGS"
4692 # Find out which ABI we are using.
4693 echo 'int i;' > conftest.$ac_ext
4694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4695 (eval $ac_compile) 2>&5
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); }; then
4699 case `/usr
/bin
/file conftest.o
` in
4701 case $lt_cv_prog_gnu_ld in
4702 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4703 *) LD="${LD-ld} -64" ;;
4711 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4712 if test -n "$ac_tool_prefix"; then
4713 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4714 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4717 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4718 echo $ECHO_N "(cached) $ECHO_C" >&6
4720 if test -n "$DLLTOOL"; then
4721 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 test -z "$as_dir" && as_dir=.
4728 for ac_exec_ext in '' $ac_executable_extensions; do
4729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4730 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4740 DLLTOOL=$ac_cv_prog_DLLTOOL
4741 if test -n "$DLLTOOL"; then
4742 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4743 echo "${ECHO_T}$DLLTOOL" >&6; }
4745 { echo "$as_me:$LINENO: result: no" >&5
4746 echo "${ECHO_T}no" >&6; }
4751 if test -z "$ac_cv_prog_DLLTOOL"; then
4752 ac_ct_DLLTOOL=$DLLTOOL
4753 # Extract the first word of "dlltool", so it can be a program name with args.
4754 set dummy dlltool; ac_word=$2
4755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4757 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4758 echo $ECHO_N "(cached) $ECHO_C" >&6
4760 if test -n "$ac_ct_DLLTOOL"; then
4761 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767 test -z "$as_dir" && as_dir=.
4768 for ac_exec_ext in '' $ac_executable_extensions; do
4769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4770 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4780 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4781 if test -n "$ac_ct_DLLTOOL"; then
4782 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4783 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4785 { echo "$as_me:$LINENO: result: no" >&5
4786 echo "${ECHO_T}no" >&6; }
4789 if test "x$ac_ct_DLLTOOL" = x; then
4792 case $cross_compiling:$ac_tool_warned in
4794 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4795 whose name does not start with the host triplet. If you think this
4796 configuration is useful to you, please write to autoconf@gnu.org." >&5
4797 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4798 whose name does not start with the host triplet. If you think this
4799 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4800 ac_tool_warned=yes ;;
4802 DLLTOOL=$ac_ct_DLLTOOL
4805 DLLTOOL="$ac_cv_prog_DLLTOOL"
4808 if test -n "$ac_tool_prefix"; then
4809 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4810 set dummy ${ac_tool_prefix}as; ac_word=$2
4811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4813 if test "${ac_cv_prog_AS+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4816 if test -n "$AS"; then
4817 ac_cv_prog_AS="$AS" # Let the user override the test.
4819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823 test -z "$as_dir" && as_dir=.
4824 for ac_exec_ext in '' $ac_executable_extensions; do
4825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4826 ac_cv_prog_AS="${ac_tool_prefix}as"
4827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4837 if test -n "$AS"; then
4838 { echo "$as_me:$LINENO: result: $AS" >&5
4839 echo "${ECHO_T}$AS" >&6; }
4841 { echo "$as_me:$LINENO: result: no" >&5
4842 echo "${ECHO_T}no" >&6; }
4847 if test -z "$ac_cv_prog_AS"; then
4849 # Extract the first word of "as", so it can be a program name with args.
4850 set dummy as; ac_word=$2
4851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4853 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4856 if test -n "$ac_ct_AS"; then
4857 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 test -z "$as_dir" && as_dir=.
4864 for ac_exec_ext in '' $ac_executable_extensions; do
4865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4866 ac_cv_prog_ac_ct_AS="as"
4867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4876 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4877 if test -n "$ac_ct_AS"; then
4878 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4879 echo "${ECHO_T}$ac_ct_AS" >&6; }
4881 { echo "$as_me:$LINENO: result: no" >&5
4882 echo "${ECHO_T}no" >&6; }
4885 if test "x$ac_ct_AS" = x; then
4888 case $cross_compiling:$ac_tool_warned in
4890 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4891 whose name does not start with the host triplet. If you think this
4892 configuration is useful to you, please write to autoconf@gnu.org." >&5
4893 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4894 whose name does not start with the host triplet. If you think this
4895 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4896 ac_tool_warned=yes ;;
4904 if test -n "$ac_tool_prefix"; then
4905 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4906 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4909 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4910 echo $ECHO_N "(cached) $ECHO_C" >&6
4912 if test -n "$OBJDUMP"; then
4913 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4919 test -z "$as_dir" && as_dir=.
4920 for ac_exec_ext in '' $ac_executable_extensions; do
4921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4922 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4932 OBJDUMP=$ac_cv_prog_OBJDUMP
4933 if test -n "$OBJDUMP"; then
4934 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4935 echo "${ECHO_T}$OBJDUMP" >&6; }
4937 { echo "$as_me:$LINENO: result: no" >&5
4938 echo "${ECHO_T}no" >&6; }
4943 if test -z "$ac_cv_prog_OBJDUMP"; then
4944 ac_ct_OBJDUMP=$OBJDUMP
4945 # Extract the first word of "objdump", so it can be a program name with args.
4946 set dummy objdump; ac_word=$2
4947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4949 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4950 echo $ECHO_N "(cached) $ECHO_C" >&6
4952 if test -n "$ac_ct_OBJDUMP"; then
4953 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959 test -z "$as_dir" && as_dir=.
4960 for ac_exec_ext in '' $ac_executable_extensions; do
4961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4962 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4972 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4973 if test -n "$ac_ct_OBJDUMP"; then
4974 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4975 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
4977 { echo "$as_me:$LINENO: result: no" >&5
4978 echo "${ECHO_T}no" >&6; }
4981 if test "x$ac_ct_OBJDUMP" = x; then
4984 case $cross_compiling:$ac_tool_warned in
4986 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4987 whose name does not start with the host triplet. If you think this
4988 configuration is useful to you, please write to autoconf@gnu.org." >&5
4989 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4990 whose name does not start with the host triplet. If you think this
4991 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4992 ac_tool_warned=yes ;;
4994 OBJDUMP=$ac_ct_OBJDUMP
4997 OBJDUMP="$ac_cv_prog_OBJDUMP"
5004 need_locks="$enable_libtool_lock"
5008 ac_cpp='$CPP $CPPFLAGS'
5009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5012 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5013 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5014 # On Suns, sometimes $CPP names a directory.
5015 if test -n "$CPP" && test -d "$CPP"; then
5018 if test -z "$CPP"; then
5019 if test "${ac_cv_prog_CPP+set}" = set; then
5020 echo $ECHO_N "(cached) $ECHO_C" >&6
5022 # Double quotes because CPP needs to be expanded
5023 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5026 for ac_c_preproc_warn_flag in '' yes
5028 # Use a header file that comes with gcc, so configuring glibc
5029 # with a fresh cross-compiler works.
5030 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5031 # <limits.h> exists even on freestanding compilers.
5032 # On the NeXT, cc -E runs the code through the compiler's parser,
5033 # not just through cpp. "Syntax error" is here to catch this case.
5034 cat >conftest.$ac_ext <<_ACEOF
5037 cat confdefs.h >>conftest.$ac_ext
5038 cat >>conftest.$ac_ext <<_ACEOF
5039 /* end confdefs.h. */
5041 # include <limits.h>
5043 # include <assert.h>
5047 if { (ac_try="$ac_cpp conftest.$ac_ext"
5049 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5050 *) ac_try_echo
=$ac_try;;
5052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5053 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5055 grep -v '^ *+' conftest.er1
>conftest.err
5057 cat conftest.err
>&5
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); } >/dev
/null
&& {
5060 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5061 test ! -s conftest.err
5065 echo "$as_me: failed program was:" >&5
5066 sed 's/^/| /' conftest.
$ac_ext >&5
5068 # Broken: fails on valid input.
5072 rm -f conftest.err conftest.
$ac_ext
5074 # OK, works on sane cases. Now check whether nonexistent headers
5075 # can be detected and how.
5076 cat >conftest.
$ac_ext <<_ACEOF
5079 cat confdefs.h
>>conftest.
$ac_ext
5080 cat >>conftest.
$ac_ext <<_ACEOF
5081 /* end confdefs.h. */
5082 #include <ac_nonexistent.h>
5084 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5086 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5087 *) ac_try_echo=$ac_try;;
5089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5092 grep -v '^ *+' conftest.er1 >conftest.err
5094 cat conftest.err >&5
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); } >/dev/null && {
5097 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5098 test ! -s conftest.err
5100 # Broken: success on invalid input.
5103 echo "$as_me: failed program was:" >&5
5104 sed 's/^/| /' conftest.$ac_ext >&5
5106 # Passes both tests.
5111 rm -f conftest.err conftest.$ac_ext
5114 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5115 rm -f conftest.err conftest.
$ac_ext
5116 if $ac_preproc_ok; then
5128 { echo "$as_me:$LINENO: result: $CPP" >&5
5129 echo "${ECHO_T}$CPP" >&6; }
5131 for ac_c_preproc_warn_flag
in '' yes
5133 # Use a header file that comes with gcc, so configuring glibc
5134 # with a fresh cross-compiler works.
5135 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5136 # <limits.h> exists even on freestanding compilers.
5137 # On the NeXT, cc -E runs the code through the compiler's parser,
5138 # not just through cpp. "Syntax error" is here to catch this case.
5139 cat >conftest.
$ac_ext <<_ACEOF
5142 cat confdefs.h
>>conftest.
$ac_ext
5143 cat >>conftest.
$ac_ext <<_ACEOF
5144 /* end confdefs.h. */
5146 # include <limits.h>
5148 # include <assert.h>
5152 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5154 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5155 *) ac_try_echo=$ac_try;;
5157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5158 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5160 grep -v '^ *+' conftest.er1 >conftest.err
5162 cat conftest.err >&5
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); } >/dev/null && {
5165 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5166 test ! -s conftest.err
5170 echo "$as_me: failed program was:" >&5
5171 sed 's/^/| /' conftest.$ac_ext >&5
5173 # Broken: fails on valid input.
5177 rm -f conftest.err conftest.$ac_ext
5179 # OK, works on sane cases. Now check whether nonexistent headers
5180 # can be detected and how.
5181 cat >conftest.$ac_ext <<_ACEOF
5184 cat confdefs.h >>conftest.$ac_ext
5185 cat >>conftest.$ac_ext <<_ACEOF
5186 /* end confdefs.h. */
5187 #include <ac_nonexistent.h>
5189 if { (ac_try="$ac_cpp conftest.$ac_ext"
5191 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5192 *) ac_try_echo
=$ac_try;;
5194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5195 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5197 grep -v '^ *+' conftest.er1
>conftest.err
5199 cat conftest.err
>&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); } >/dev
/null
&& {
5202 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5203 test ! -s conftest.err
5205 # Broken: success on invalid input.
5208 echo "$as_me: failed program was:" >&5
5209 sed 's/^/| /' conftest.
$ac_ext >&5
5211 # Passes both tests.
5216 rm -f conftest.err conftest.
$ac_ext
5219 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5220 rm -f conftest.err conftest.
$ac_ext
5221 if $ac_preproc_ok; then
5224 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5225 See \`config.log' for more details." >&5
5226 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5227 See \`config.log' for more details." >&2;}
5228 { (exit 1); exit 1; }; }
5232 ac_cpp
='$CPP $CPPFLAGS'
5233 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5234 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5235 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5238 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5239 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5240 if test "${ac_cv_header_stdc+set}" = set; then
5241 echo $ECHO_N "(cached) $ECHO_C" >&6
5243 cat >conftest.
$ac_ext <<_ACEOF
5246 cat confdefs.h
>>conftest.
$ac_ext
5247 cat >>conftest.
$ac_ext <<_ACEOF
5248 /* end confdefs.h. */
5262 rm -f conftest.
$ac_objext
5263 if { (ac_try
="$ac_compile"
5265 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5266 *) ac_try_echo=$ac_try;;
5268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5269 (eval "$ac_compile") 2>conftest.er1
5271 grep -v '^ *+' conftest.er1 >conftest.err
5273 cat conftest.err >&5
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); } && {
5276 test -z "$ac_c_werror_flag" ||
5277 test ! -s conftest.err
5278 } && test -s conftest.$ac_objext; then
5279 ac_cv_header_stdc=yes
5281 echo "$as_me: failed program was:" >&5
5282 sed 's/^/| /' conftest.$ac_ext >&5
5284 ac_cv_header_stdc=no
5287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5289 if test $ac_cv_header_stdc = yes; then
5290 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5291 cat >conftest.$ac_ext <<_ACEOF
5294 cat confdefs.h >>conftest.$ac_ext
5295 cat >>conftest.$ac_ext <<_ACEOF
5296 /* end confdefs.h. */
5300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5301 $EGREP "memchr" >/dev/null 2>&1; then
5304 ac_cv_header_stdc=no
5310 if test $ac_cv_header_stdc = yes; then
5311 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5312 cat >conftest.$ac_ext <<_ACEOF
5315 cat confdefs.h >>conftest.$ac_ext
5316 cat >>conftest.$ac_ext <<_ACEOF
5317 /* end confdefs.h. */
5321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5322 $EGREP "free" >/dev/null 2>&1; then
5325 ac_cv_header_stdc=no
5331 if test $ac_cv_header_stdc = yes; then
5332 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5333 if test "$cross_compiling" = yes; then
5336 cat >conftest.$ac_ext <<_ACEOF
5339 cat confdefs.h >>conftest.$ac_ext
5340 cat >>conftest.$ac_ext <<_ACEOF
5341 /* end confdefs.h. */
5344 #if ((' ' & 0x0FF) == 0x020)
5345 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5346 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5348 # define ISLOWER(c) \
5349 (('a' <= (c) && (c) <= 'i') \
5350 || ('j' <= (c) && (c) <= 'r') \
5351 || ('s' <= (c) && (c) <= 'z'))
5352 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5355 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5360 for (i = 0; i < 256; i++)
5361 if (XOR (islower (i), ISLOWER (i))
5362 || toupper (i) != TOUPPER (i))
5367 rm -f conftest$ac_exeext
5368 if { (ac_try="$ac_link"
5370 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5371 *) ac_try_echo
=$ac_try;;
5373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5374 (eval "$ac_link") 2>&5
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5378 { (case "(($ac_try" in
5379 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5380 *) ac_try_echo=$ac_try;;
5382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5383 (eval "$ac_try") 2>&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); }; }; then
5389 echo "$as_me: program exited with status $ac_status" >&5
5390 echo "$as_me: failed program was:" >&5
5391 sed 's/^/| /' conftest.$ac_ext >&5
5394 ac_cv_header_stdc=no
5396 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5402 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5403 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5404 if test $ac_cv_header_stdc = yes; then
5406 cat >>confdefs.h <<\_ACEOF
5407 #define STDC_HEADERS 1
5412 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5422 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5423 inttypes.h stdint.h unistd.h
5425 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5426 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5429 echo $ECHO_N "(cached) $ECHO_C" >&6
5431 cat >conftest.$ac_ext <<_ACEOF
5434 cat confdefs.h >>conftest.$ac_ext
5435 cat >>conftest.$ac_ext <<_ACEOF
5436 /* end confdefs.h. */
5437 $ac_includes_default
5439 #include <$ac_header>
5441 rm -f conftest.$ac_objext
5442 if { (ac_try="$ac_compile"
5444 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5445 *) ac_try_echo
=$ac_try;;
5447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5448 (eval "$ac_compile") 2>conftest.er1
5450 grep -v '^ *+' conftest.er1
>conftest.err
5452 cat conftest.err
>&5
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); } && {
5455 test -z "$ac_c_werror_flag" ||
5456 test ! -s conftest.err
5457 } && test -s conftest.
$ac_objext; then
5458 eval "$as_ac_Header=yes"
5460 echo "$as_me: failed program was:" >&5
5461 sed 's/^/| /' conftest.
$ac_ext >&5
5463 eval "$as_ac_Header=no"
5466 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5468 ac_res
=`eval echo '${'$as_ac_Header'}'`
5469 { echo "$as_me:$LINENO: result: $ac_res" >&5
5470 echo "${ECHO_T}$ac_res" >&6; }
5471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5472 cat >>confdefs.h
<<_ACEOF
5473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5482 for ac_header
in dlfcn.h
5484 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5485 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5486 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5488 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5489 echo $ECHO_N "(cached) $ECHO_C" >&6
5491 ac_res
=`eval echo '${'$as_ac_Header'}'`
5492 { echo "$as_me:$LINENO: result: $ac_res" >&5
5493 echo "${ECHO_T}$ac_res" >&6; }
5495 # Is the header compilable?
5496 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5497 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5498 cat >conftest.
$ac_ext <<_ACEOF
5501 cat confdefs.h
>>conftest.
$ac_ext
5502 cat >>conftest.
$ac_ext <<_ACEOF
5503 /* end confdefs.h. */
5504 $ac_includes_default
5505 #include <$ac_header>
5507 rm -f conftest.
$ac_objext
5508 if { (ac_try
="$ac_compile"
5510 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5511 *) ac_try_echo=$ac_try;;
5513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5514 (eval "$ac_compile") 2>conftest.er1
5516 grep -v '^ *+' conftest.er1 >conftest.err
5518 cat conftest.err >&5
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); } && {
5521 test -z "$ac_c_werror_flag" ||
5522 test ! -s conftest.err
5523 } && test -s conftest.$ac_objext; then
5524 ac_header_compiler=yes
5526 echo "$as_me: failed program was:" >&5
5527 sed 's/^/| /' conftest.$ac_ext >&5
5529 ac_header_compiler=no
5532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5533 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5534 echo "${ECHO_T}$ac_header_compiler" >&6; }
5536 # Is the header present?
5537 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5538 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5539 cat >conftest.$ac_ext <<_ACEOF
5542 cat confdefs.h >>conftest.$ac_ext
5543 cat >>conftest.$ac_ext <<_ACEOF
5544 /* end confdefs.h. */
5545 #include <$ac_header>
5547 if { (ac_try="$ac_cpp conftest.$ac_ext"
5549 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5550 *) ac_try_echo
=$ac_try;;
5552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5555 grep -v '^ *+' conftest.er1
>conftest.err
5557 cat conftest.err
>&5
5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559 (exit $ac_status); } >/dev
/null
&& {
5560 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5561 test ! -s conftest.err
5563 ac_header_preproc
=yes
5565 echo "$as_me: failed program was:" >&5
5566 sed 's/^/| /' conftest.
$ac_ext >&5
5568 ac_header_preproc
=no
5571 rm -f conftest.err conftest.
$ac_ext
5572 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5573 echo "${ECHO_T}$ac_header_preproc" >&6; }
5575 # So? What about this header?
5576 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5578 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5579 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5581 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5582 ac_header_preproc
=yes
5585 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5586 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5587 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5588 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5589 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5590 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5591 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5592 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5593 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5594 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5595 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5596 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5598 ## ---------------------------------- ##
5599 ## Report this to bug-libtool@gnu.org ##
5600 ## ---------------------------------- ##
5602 ) |
sed "s/^/$as_me: WARNING: /" >&2
5605 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5607 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5608 echo $ECHO_N "(cached) $ECHO_C" >&6
5610 eval "$as_ac_Header=\$ac_header_preproc"
5612 ac_res
=`eval echo '${'$as_ac_Header'}'`
5613 { echo "$as_me:$LINENO: result: $ac_res" >&5
5614 echo "${ECHO_T}$ac_res" >&6; }
5617 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5618 cat >>confdefs.h
<<_ACEOF
5619 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5627 ac_cpp
='$CXXCPP $CPPFLAGS'
5628 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5629 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5630 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5631 if test -z "$CXX"; then
5632 if test -n "$CCC"; then
5635 if test -n "$ac_tool_prefix"; then
5636 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
5638 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5639 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5642 if test "${ac_cv_prog_CXX+set}" = set; then
5643 echo $ECHO_N "(cached) $ECHO_C" >&6
5645 if test -n "$CXX"; then
5646 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
5648 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5652 test -z "$as_dir" && as_dir
=.
5653 for ac_exec_ext
in '' $ac_executable_extensions; do
5654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5655 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
5656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5666 if test -n "$CXX"; then
5667 { echo "$as_me:$LINENO: result: $CXX" >&5
5668 echo "${ECHO_T}$CXX" >&6; }
5670 { echo "$as_me:$LINENO: result: no" >&5
5671 echo "${ECHO_T}no" >&6; }
5675 test -n "$CXX" && break
5678 if test -z "$CXX"; then
5680 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
5682 # Extract the first word of "$ac_prog", so it can be a program name with args.
5683 set dummy
$ac_prog; ac_word
=$2
5684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5686 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5687 echo $ECHO_N "(cached) $ECHO_C" >&6
5689 if test -n "$ac_ct_CXX"; then
5690 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
5692 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5696 test -z "$as_dir" && as_dir
=.
5697 for ac_exec_ext
in '' $ac_executable_extensions; do
5698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5699 ac_cv_prog_ac_ct_CXX
="$ac_prog"
5700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5709 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
5710 if test -n "$ac_ct_CXX"; then
5711 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5712 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5714 { echo "$as_me:$LINENO: result: no" >&5
5715 echo "${ECHO_T}no" >&6; }
5719 test -n "$ac_ct_CXX" && break
5722 if test "x$ac_ct_CXX" = x
; then
5725 case $cross_compiling:$ac_tool_warned in
5727 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5728 whose name does not start with the host triplet. If you think this
5729 configuration is useful to you, please write to autoconf@gnu.org." >&5
5730 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5731 whose name does not start with the host triplet. If you think this
5732 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5733 ac_tool_warned
=yes ;;
5741 # Provide some information about the compiler.
5742 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5743 ac_compiler
=`set X $ac_compile; echo $2`
5744 { (ac_try
="$ac_compiler --version >&5"
5746 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5747 *) ac_try_echo=$ac_try;;
5749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5750 (eval "$ac_compiler --version >&5") 2>&5
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); }
5754 { (ac_try="$ac_compiler -v >&5"
5756 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5757 *) ac_try_echo
=$ac_try;;
5759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5760 (eval "$ac_compiler -v >&5") 2>&5
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); }
5764 { (ac_try
="$ac_compiler -V >&5"
5766 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5767 *) ac_try_echo=$ac_try;;
5769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5770 (eval "$ac_compiler -V >&5") 2>&5
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); }
5775 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5776 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5777 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5778 echo $ECHO_N "(cached) $ECHO_C" >&6
5780 cat >conftest.$ac_ext <<_ACEOF
5783 cat confdefs.h >>conftest.$ac_ext
5784 cat >>conftest.$ac_ext <<_ACEOF
5785 /* end confdefs.h. */
5798 rm -f conftest.$ac_objext
5799 if { (ac_try="$ac_compile"
5801 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5802 *) ac_try_echo
=$ac_try;;
5804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5805 (eval "$ac_compile") 2>conftest.er1
5807 grep -v '^ *+' conftest.er1
>conftest.err
5809 cat conftest.err
>&5
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); } && {
5812 test -z "$ac_cxx_werror_flag" ||
5813 test ! -s conftest.err
5814 } && test -s conftest.
$ac_objext; then
5817 echo "$as_me: failed program was:" >&5
5818 sed 's/^/| /' conftest.
$ac_ext >&5
5823 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5824 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
5827 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5828 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5829 GXX
=`test $ac_compiler_gnu = yes && echo yes`
5830 ac_test_CXXFLAGS
=${CXXFLAGS+set}
5831 ac_save_CXXFLAGS
=$CXXFLAGS
5832 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5833 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5834 if test "${ac_cv_prog_cxx_g+set}" = set; then
5835 echo $ECHO_N "(cached) $ECHO_C" >&6
5837 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5838 ac_cxx_werror_flag
=yes
5841 cat >conftest.
$ac_ext <<_ACEOF
5844 cat confdefs.h
>>conftest.
$ac_ext
5845 cat >>conftest.
$ac_ext <<_ACEOF
5846 /* end confdefs.h. */
5856 rm -f conftest.
$ac_objext
5857 if { (ac_try
="$ac_compile"
5859 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5860 *) ac_try_echo=$ac_try;;
5862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5863 (eval "$ac_compile") 2>conftest.er1
5865 grep -v '^ *+' conftest.er1 >conftest.err
5867 cat conftest.err >&5
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); } && {
5870 test -z "$ac_cxx_werror_flag" ||
5871 test ! -s conftest.err
5872 } && test -s conftest.$ac_objext; then
5873 ac_cv_prog_cxx_g=yes
5875 echo "$as_me: failed program was:" >&5
5876 sed 's/^/| /' conftest.$ac_ext >&5
5879 cat >conftest.$ac_ext <<_ACEOF
5882 cat confdefs.h >>conftest.$ac_ext
5883 cat >>conftest.$ac_ext <<_ACEOF
5884 /* end confdefs.h. */
5894 rm -f conftest.$ac_objext
5895 if { (ac_try="$ac_compile"
5897 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5898 *) ac_try_echo
=$ac_try;;
5900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5901 (eval "$ac_compile") 2>conftest.er1
5903 grep -v '^ *+' conftest.er1
>conftest.err
5905 cat conftest.err
>&5
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); } && {
5908 test -z "$ac_cxx_werror_flag" ||
5909 test ! -s conftest.err
5910 } && test -s conftest.
$ac_objext; then
5913 echo "$as_me: failed program was:" >&5
5914 sed 's/^/| /' conftest.
$ac_ext >&5
5916 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5918 cat >conftest.
$ac_ext <<_ACEOF
5921 cat confdefs.h
>>conftest.
$ac_ext
5922 cat >>conftest.
$ac_ext <<_ACEOF
5923 /* end confdefs.h. */
5933 rm -f conftest.
$ac_objext
5934 if { (ac_try
="$ac_compile"
5936 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5937 *) ac_try_echo=$ac_try;;
5939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5940 (eval "$ac_compile") 2>conftest.er1
5942 grep -v '^ *+' conftest.er1 >conftest.err
5944 cat conftest.err >&5
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); } && {
5947 test -z "$ac_cxx_werror_flag" ||
5948 test ! -s conftest.err
5949 } && test -s conftest.$ac_objext; then
5950 ac_cv_prog_cxx_g=yes
5952 echo "$as_me: failed program was:" >&5
5953 sed 's/^/| /' conftest.$ac_ext >&5
5958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5965 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5967 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5968 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5969 if test "$ac_test_CXXFLAGS" = set; then
5970 CXXFLAGS=$ac_save_CXXFLAGS
5971 elif test $ac_cv_prog_cxx_g = yes; then
5972 if test "$GXX" = yes; then
5978 if test "$GXX" = yes; then
5985 ac_cpp='$CXXCPP $CPPFLAGS'
5986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5990 depcc="$CXX" am_compiler_list=
5992 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5993 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5994 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5995 echo $ECHO_N "(cached) $ECHO_C" >&6
5997 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5998 # We make a subdir and do the tests there. Otherwise we can end up
5999 # making bogus files that we don't know about and never remove. For
6000 # instance it was reported that on HP-UX the gcc test will end up
6001 # making a dummy file named `D
' -- because `-MD' means
`put the output
6004 # Copy depcomp to subdir because otherwise we won't find it if we're
6005 # using a relative directory.
6006 cp "$am_depcomp" conftest.dir
6008 # We will build objects and dependencies in a subdirectory because
6009 # it helps to detect inapplicable dependency modes. For instance
6010 # both Tru64's cc and ICC support -MD to output dependencies as a
6011 # side effect of compilation, but ICC will put the dependencies in
6012 # the current directory while Tru64 will put them in the object
6016 am_cv_CXX_dependencies_compiler_type=none
6017 if test "$am_compiler_list" = ""; then
6018 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
6020 for depmode in $am_compiler_list; do
6021 # Setup a source with many dependencies, because some compilers
6022 # like to wrap large dependency lists on column 80 (with \), and
6023 # we should not choose a depcomp mode which is confused by this.
6025 # We need to recreate these files for each test, as the compiler may
6026 # overwrite some of them when testing with obscure command lines.
6027 # This happens at least with the AIX C compiler.
6029 for i in 1 2 3 4 5 6; do
6030 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6031 # Using `: > sub
/conftst
$i.h
' creates only sub/conftst1.h with
6032 # Solaris 8's
{/usr
,}/bin
/sh.
6033 touch sub
/conftst
$i.h
6035 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6039 # after this tag, mechanisms are not by side-effect, so they'll
6040 # only be used when explicitly requested
6041 if test "x$enable_dependency_tracking" = xyes
; then
6049 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6050 # mode. It turns out that the SunPro C++ compiler does not properly
6051 # handle `-M -o', and we need to detect this.
6052 if depmode
=$depmode \
6053 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
6054 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
6055 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
6056 >/dev
/null
2>conftest.err
&&
6057 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
6058 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
6059 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
6060 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
6061 # icc doesn't choke on unknown options, it will just issue warnings
6062 # or remarks (even with -Werror). So we grep stderr for any message
6063 # that says an option was ignored or not supported.
6064 # When given -MP, icc 7.0 and 7.1 complain thusly:
6065 # icc: Command line warning: ignoring option '-M'; no argument required
6066 # The diagnosis changed in icc 8.0:
6067 # icc: Command line remark: option '-MP' not supported
6068 if (grep 'ignoring option' conftest.err ||
6069 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
6070 am_cv_CXX_dependencies_compiler_type
=$depmode
6079 am_cv_CXX_dependencies_compiler_type
=none
6083 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6084 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6085 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
6088 test "x$enable_dependency_tracking" != xno \
6089 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
6090 am__fastdepCXX_TRUE
=
6091 am__fastdepCXX_FALSE
='#'
6093 am__fastdepCXX_TRUE
='#'
6094 am__fastdepCXX_FALSE
=
6100 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6101 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6102 (test "X$CXX" != "Xg++"))) ; then
6104 ac_cpp
='$CXXCPP $CPPFLAGS'
6105 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6106 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6107 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6108 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6109 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6110 if test -z "$CXXCPP"; then
6111 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6112 echo $ECHO_N "(cached) $ECHO_C" >&6
6114 # Double quotes because CXXCPP needs to be expanded
6115 for CXXCPP
in "$CXX -E" "/lib/cpp"
6118 for ac_cxx_preproc_warn_flag
in '' yes
6120 # Use a header file that comes with gcc, so configuring glibc
6121 # with a fresh cross-compiler works.
6122 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6123 # <limits.h> exists even on freestanding compilers.
6124 # On the NeXT, cc -E runs the code through the compiler's parser,
6125 # not just through cpp. "Syntax error" is here to catch this case.
6126 cat >conftest.
$ac_ext <<_ACEOF
6129 cat confdefs.h
>>conftest.
$ac_ext
6130 cat >>conftest.
$ac_ext <<_ACEOF
6131 /* end confdefs.h. */
6133 # include <limits.h>
6135 # include <assert.h>
6139 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6141 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6142 *) ac_try_echo=$ac_try;;
6144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6145 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6147 grep -v '^ *+' conftest.er1 >conftest.err
6149 cat conftest.err >&5
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); } >/dev/null && {
6152 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6153 test ! -s conftest.err
6157 echo "$as_me: failed program was:" >&5
6158 sed 's/^/| /' conftest.$ac_ext >&5
6160 # Broken: fails on valid input.
6164 rm -f conftest.err conftest.$ac_ext
6166 # OK, works on sane cases. Now check whether nonexistent headers
6167 # can be detected and how.
6168 cat >conftest.$ac_ext <<_ACEOF
6171 cat confdefs.h >>conftest.$ac_ext
6172 cat >>conftest.$ac_ext <<_ACEOF
6173 /* end confdefs.h. */
6174 #include <ac_nonexistent.h>
6176 if { (ac_try="$ac_cpp conftest.$ac_ext"
6178 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6179 *) ac_try_echo
=$ac_try;;
6181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6184 grep -v '^ *+' conftest.er1
>conftest.err
6186 cat conftest.err
>&5
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); } >/dev
/null
&& {
6189 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6190 test ! -s conftest.err
6192 # Broken: success on invalid input.
6195 echo "$as_me: failed program was:" >&5
6196 sed 's/^/| /' conftest.
$ac_ext >&5
6198 # Passes both tests.
6203 rm -f conftest.err conftest.
$ac_ext
6206 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6207 rm -f conftest.err conftest.
$ac_ext
6208 if $ac_preproc_ok; then
6213 ac_cv_prog_CXXCPP
=$CXXCPP
6216 CXXCPP
=$ac_cv_prog_CXXCPP
6218 ac_cv_prog_CXXCPP
=$CXXCPP
6220 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6221 echo "${ECHO_T}$CXXCPP" >&6; }
6223 for ac_cxx_preproc_warn_flag
in '' yes
6225 # Use a header file that comes with gcc, so configuring glibc
6226 # with a fresh cross-compiler works.
6227 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6228 # <limits.h> exists even on freestanding compilers.
6229 # On the NeXT, cc -E runs the code through the compiler's parser,
6230 # not just through cpp. "Syntax error" is here to catch this case.
6231 cat >conftest.
$ac_ext <<_ACEOF
6234 cat confdefs.h
>>conftest.
$ac_ext
6235 cat >>conftest.
$ac_ext <<_ACEOF
6236 /* end confdefs.h. */
6238 # include <limits.h>
6240 # include <assert.h>
6244 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6246 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6247 *) ac_try_echo=$ac_try;;
6249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6252 grep -v '^ *+' conftest.er1 >conftest.err
6254 cat conftest.err >&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); } >/dev/null && {
6257 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6258 test ! -s conftest.err
6262 echo "$as_me: failed program was:" >&5
6263 sed 's/^/| /' conftest.$ac_ext >&5
6265 # Broken: fails on valid input.
6269 rm -f conftest.err conftest.$ac_ext
6271 # OK, works on sane cases. Now check whether nonexistent headers
6272 # can be detected and how.
6273 cat >conftest.$ac_ext <<_ACEOF
6276 cat confdefs.h >>conftest.$ac_ext
6277 cat >>conftest.$ac_ext <<_ACEOF
6278 /* end confdefs.h. */
6279 #include <ac_nonexistent.h>
6281 if { (ac_try="$ac_cpp conftest.$ac_ext"
6283 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6284 *) ac_try_echo
=$ac_try;;
6286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6287 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6289 grep -v '^ *+' conftest.er1
>conftest.err
6291 cat conftest.err
>&5
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); } >/dev
/null
&& {
6294 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6295 test ! -s conftest.err
6297 # Broken: success on invalid input.
6300 echo "$as_me: failed program was:" >&5
6301 sed 's/^/| /' conftest.
$ac_ext >&5
6303 # Passes both tests.
6308 rm -f conftest.err conftest.
$ac_ext
6311 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6312 rm -f conftest.err conftest.
$ac_ext
6313 if $ac_preproc_ok; then
6316 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6317 See \`config.log' for more details." >&5
6318 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6319 See \`config.log' for more details." >&2;}
6320 { (exit 1); exit 1; }; }
6324 ac_cpp
='$CXXCPP $CPPFLAGS'
6325 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6326 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6327 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6333 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6334 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6335 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
6336 if test -n "$ac_tool_prefix"; then
6337 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
6339 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6340 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6343 if test "${ac_cv_prog_F77+set}" = set; then
6344 echo $ECHO_N "(cached) $ECHO_C" >&6
6346 if test -n "$F77"; then
6347 ac_cv_prog_F77
="$F77" # Let the user override the test.
6349 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6353 test -z "$as_dir" && as_dir
=.
6354 for ac_exec_ext
in '' $ac_executable_extensions; do
6355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6356 ac_cv_prog_F77
="$ac_tool_prefix$ac_prog"
6357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6367 if test -n "$F77"; then
6368 { echo "$as_me:$LINENO: result: $F77" >&5
6369 echo "${ECHO_T}$F77" >&6; }
6371 { echo "$as_me:$LINENO: result: no" >&5
6372 echo "${ECHO_T}no" >&6; }
6376 test -n "$F77" && break
6379 if test -z "$F77"; then
6381 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
6383 # Extract the first word of "$ac_prog", so it can be a program name with args.
6384 set dummy
$ac_prog; ac_word
=$2
6385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6387 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6388 echo $ECHO_N "(cached) $ECHO_C" >&6
6390 if test -n "$ac_ct_F77"; then
6391 ac_cv_prog_ac_ct_F77
="$ac_ct_F77" # Let the user override the test.
6393 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6397 test -z "$as_dir" && as_dir
=.
6398 for ac_exec_ext
in '' $ac_executable_extensions; do
6399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6400 ac_cv_prog_ac_ct_F77
="$ac_prog"
6401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6410 ac_ct_F77
=$ac_cv_prog_ac_ct_F77
6411 if test -n "$ac_ct_F77"; then
6412 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6413 echo "${ECHO_T}$ac_ct_F77" >&6; }
6415 { echo "$as_me:$LINENO: result: no" >&5
6416 echo "${ECHO_T}no" >&6; }
6420 test -n "$ac_ct_F77" && break
6423 if test "x$ac_ct_F77" = x
; then
6426 case $cross_compiling:$ac_tool_warned in
6428 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6429 whose name does not start with the host triplet. If you think this
6430 configuration is useful to you, please write to autoconf@gnu.org." >&5
6431 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6432 whose name does not start with the host triplet. If you think this
6433 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6434 ac_tool_warned
=yes ;;
6441 # Provide some information about the compiler.
6442 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6443 ac_compiler
=`set X $ac_compile; echo $2`
6444 { (ac_try
="$ac_compiler --version >&5"
6446 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6447 *) ac_try_echo=$ac_try;;
6449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6450 (eval "$ac_compiler --version >&5") 2>&5
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }
6454 { (ac_try="$ac_compiler -v >&5"
6456 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6457 *) ac_try_echo
=$ac_try;;
6459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6460 (eval "$ac_compiler -v >&5") 2>&5
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); }
6464 { (ac_try
="$ac_compiler -V >&5"
6466 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6467 *) ac_try_echo=$ac_try;;
6469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6470 (eval "$ac_compiler -V >&5") 2>&5
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); }
6476 # If we don't use `.F
' as extension, the preprocessor is not run on the
6477 # input file. (Note that this only needs to work for GNU compilers.)
6480 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6481 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6482 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
6485 cat >conftest.$ac_ext <<_ACEOF
6493 rm -f conftest.$ac_objext
6494 if { (ac_try="$ac_compile"
6496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6497 *) ac_try_echo=$ac_try;;
6499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6500 (eval "$ac_compile") 2>conftest.er1
6502 grep -v '^
*+' conftest.er1 >conftest.err
6504 cat conftest.err >&5
6505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); } && {
6507 test -z "$ac_f77_werror_flag" ||
6508 test ! -s conftest.err
6509 } && test -s conftest.$ac_objext; then
6512 echo "$as_me: failed program was:" >&5
6513 sed 's
/^
/|
/' conftest.$ac_ext >&5
6518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6519 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6522 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6523 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6525 ac_test_FFLAGS=${FFLAGS+set}
6526 ac_save_FFLAGS=$FFLAGS
6528 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6529 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6530 if test "${ac_cv_prog_f77_g+set}" = set; then
6531 echo $ECHO_N "(cached) $ECHO_C" >&6
6534 cat >conftest.$ac_ext <<_ACEOF
6539 rm -f conftest.$ac_objext
6540 if { (ac_try="$ac_compile"
6542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6543 *) ac_try_echo=$ac_try;;
6545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6546 (eval "$ac_compile") 2>conftest.er1
6548 grep -v '^
*+' conftest.er1 >conftest.err
6550 cat conftest.err >&5
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); } && {
6553 test -z "$ac_f77_werror_flag" ||
6554 test ! -s conftest.err
6555 } && test -s conftest.$ac_objext; then
6556 ac_cv_prog_f77_g=yes
6558 echo "$as_me: failed program was:" >&5
6559 sed 's
/^
/|
/' conftest.$ac_ext >&5
6564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6567 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6568 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6569 if test "$ac_test_FFLAGS" = set; then
6570 FFLAGS=$ac_save_FFLAGS
6571 elif test $ac_cv_prog_f77_g = yes; then
6572 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6578 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6585 G77=`test $ac_compiler_gnu = yes && echo yes`
6587 ac_cpp='$CPP $CPPFLAGS'
6588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
6589 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
6590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6594 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works
for C compilers
!
6596 # find the maximum length of command line arguments
6597 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6598 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6599 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6600 echo $ECHO_N "(cached) $ECHO_C" >&6
6607 # On DJGPP, this test can blow up pretty badly due to problems in libc
6608 # (any single argument exceeding 2000 bytes causes a buffer overrun
6609 # during glob expansion). Even if it were fixed, the result of this
6610 # check would be larger than it should be.
6611 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
6615 # Under GNU Hurd, this test is not required because there is
6616 # no limit to the length of command line arguments.
6617 # Libtool will interpret -1 as no limit whatsoever
6618 lt_cv_sys_max_cmd_len
=-1;
6622 # On Win9x/ME, this test blows up -- it succeeds, but takes
6623 # about 5 minutes as the teststring grows exponentially.
6624 # Worse, since 9x/ME are not pre-emptively multitasking,
6625 # you end up with a "frozen" computer, even though with patience
6626 # the test eventually succeeds (with a max line length of 256k).
6627 # Instead, let's just punt: use the minimum linelength reported by
6628 # all of the supported platforms: 8192 (on NT/2K/XP).
6629 lt_cv_sys_max_cmd_len
=8192;
6633 # On AmigaOS with pdksh, this test takes hours, literally.
6634 # So we just punt and use a minimum line length of 8192.
6635 lt_cv_sys_max_cmd_len
=8192;
6638 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
6639 # This has been around since 386BSD, at least. Likely further.
6640 if test -x /sbin
/sysctl
; then
6641 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
6642 elif test -x /usr
/sbin
/sysctl
; then
6643 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
6645 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
6647 # And add a safety zone
6648 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6649 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6653 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6654 lt_cv_sys_max_cmd_len
=196608
6658 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6659 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6660 # nice to cause kernel panics so lets avoid the loop below.
6661 # First set a reasonable default.
6662 lt_cv_sys_max_cmd_len
=16384
6664 if test -x /sbin
/sysconfig
; then
6665 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6666 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
6671 lt_cv_sys_max_cmd_len
=102400
6673 sysv5
* | sco5v6
* | sysv4.2uw2
*)
6674 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6675 if test -n "$kargmax"; then
6676 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
6678 lt_cv_sys_max_cmd_len
=32768
6682 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
6683 if test -n "$lt_cv_sys_max_cmd_len"; then
6684 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6685 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6687 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
6688 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6689 = "XX$teststring") >/dev
/null
2>&1 &&
6690 new_result
=`expr "X$teststring" : ".*" 2>&1` &&
6691 lt_cv_sys_max_cmd_len
=$new_result &&
6692 test $i != 17 # 1/2 MB should be enough
6695 teststring
=$teststring$teststring
6698 # Add a significant safety factor because C++ compilers can tack on massive
6699 # amounts of additional arguments before passing them to the linker.
6700 # It appears as though 1/2 is a usable value.
6701 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
6708 if test -n $lt_cv_sys_max_cmd_len ; then
6709 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6710 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6712 { echo "$as_me:$LINENO: result: none" >&5
6713 echo "${ECHO_T}none" >&6; }
6720 # Check for command to grab the raw symbol name followed by C symbol from nm.
6721 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6722 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6723 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
6727 # These are sane defaults that work on at least a few old systems.
6728 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6730 # Character class describing NM global symbol codes.
6731 symcode
='[BCDEGRST]'
6733 # Regexp to match symbols that can be accessed directly from C.
6734 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
6736 # Transform an extracted symbol line into a proper C declaration
6737 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6739 # Transform an extracted symbol line into symbol name and symbol address
6740 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'"
6742 # Define system-specific variables.
6747 cygwin
* | mingw
* | pw32
*)
6748 symcode
='[ABCDGISTW]'
6750 hpux
*) # Its linker distinguishes data from code symbols
6751 if test "$host_cpu" = ia64
; then
6752 symcode
='[ABCDEGRST]'
6754 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6755 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'"
6757 linux
* | k
*bsd
*-gnu)
6758 if test "$host_cpu" = ia64
; then
6759 symcode
='[ABCDGIRSTW]'
6760 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6761 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'"
6765 symcode
='[BCDEGRST]'
6768 symcode
='[BCDEGQRST]'
6779 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
6787 # Handle CRLF in mingw tool chain
6791 opt_cr
=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6795 # If we're using GNU nm, then use its standard symbol codes.
6796 case `$NM -V 2>&1` in
6797 *GNU
* |
*'with BFD'*)
6798 symcode
='[ABCDGIRSTW]' ;;
6801 # Try without a prefix undercore, then with it.
6802 for ac_symprfx
in "" "_"; do
6804 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6805 symxfrm
="\\1 $ac_symprfx\\2 \\2"
6807 # Write the raw and C identifiers.
6808 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6810 # Check to see that the pipe works correctly.
6814 cat > conftest.
$ac_ext <<EOF
6819 void nm_test_func(){}
6823 int main(){nm_test_var='a';nm_test_func();return(0);}
6826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6827 (eval $ac_compile) 2>&5
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); }; then
6831 # Now try to grab the symbols.
6833 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6834 (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist) 2>&5
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); } && test -s "$nlist"; then
6838 # Try sorting and uniquifying the output.
6839 if sort "$nlist" |
uniq > "$nlist"T
; then
6840 mv -f "$nlist"T
"$nlist"
6845 # Make sure that we snagged all the symbols we need.
6846 if grep ' nm_test_var$' "$nlist" >/dev
/null
; then
6847 if grep ' nm_test_func$' "$nlist" >/dev
/null
; then
6848 cat <<EOF > conftest.$ac_ext
6854 # Now generate the symbol file.
6855 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6857 cat <<EOF >> conftest.$ac_ext
6858 #if defined (__STDC__) && __STDC__
6859 # define lt_ptr_t void *
6861 # define lt_ptr_t char *
6865 /* The mapping between symbol names and symbols. */
6870 lt_preloaded_symbols[] =
6873 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" |
grep -v main
>> conftest.
$ac_ext
6874 cat <<\EOF
>> conftest.
$ac_ext
6882 # Now try linking the two files.
6883 mv conftest.
$ac_objext conftstm.
$ac_objext
6884 lt_save_LIBS
="$LIBS"
6885 lt_save_CFLAGS
="$CFLAGS"
6886 LIBS
="conftstm.$ac_objext"
6887 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6889 (eval $ac_link) 2>&5
6891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); } && test -s conftest
${ac_exeext}; then
6895 LIBS
="$lt_save_LIBS"
6896 CFLAGS
="$lt_save_CFLAGS"
6898 echo "cannot find nm_test_func in $nlist" >&5
6901 echo "cannot find nm_test_var in $nlist" >&5
6904 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6907 echo "$progname: failed program was:" >&5
6908 cat conftest.
$ac_ext >&5
6910 rm -f conftest
* conftst
*
6912 # Do not use the global_symbol_pipe unless it works.
6913 if test "$pipe_works" = yes; then
6916 lt_cv_sys_global_symbol_pipe
=
6922 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6923 lt_cv_sys_global_symbol_to_cdecl
=
6925 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6926 { echo "$as_me:$LINENO: result: failed" >&5
6927 echo "${ECHO_T}failed" >&6; }
6929 { echo "$as_me:$LINENO: result: ok" >&5
6930 echo "${ECHO_T}ok" >&6; }
6933 { echo "$as_me:$LINENO: checking for objdir" >&5
6934 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6935 if test "${lt_cv_objdir+set}" = set; then
6936 echo $ECHO_N "(cached) $ECHO_C" >&6
6938 rm -f .libs
2>/dev
/null
6939 mkdir .libs
2>/dev
/null
6940 if test -d .libs
; then
6943 # MS-DOS does not allow filenames that begin with a dot.
6946 rmdir .libs
2>/dev
/null
6948 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6949 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6950 objdir
=$lt_cv_objdir
6958 # AIX sometimes has problems with the GCC collect2 program. For some
6959 # reason, if we set the COLLECT_NAMES environment variable, the problems
6960 # vanish in a puff of smoke.
6961 if test "X${COLLECT_NAMES+set}" != Xset
; then
6963 export COLLECT_NAMES
6968 # Sed substitution that helps us do robust quoting. It backslashifies
6969 # metacharacters that are still active within double-quoted strings.
6970 Xsed
='sed -e 1s/^X//'
6971 sed_quote_subst
='s/\([\\"\\`$\\\\]\)/\\\1/g'
6973 # Same as above, but do not quote variable references.
6974 double_quote_subst
='s/\([\\"\\`\\\\]\)/\\\1/g'
6976 # Sed substitution to delay expansion of an escaped shell variable in a
6977 # double_quote_subst'ed string.
6978 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
6980 # Sed substitution to avoid accidental globbing in evaled expressions
6981 no_glob_subst
='s/\*/\\\*/g'
6987 default_ofile
=libtool
6988 can_build_shared
=yes
6990 # All known linkers require a `.a' archive for static linking (except MSVC,
6991 # which needs '.lib').
6993 ltmain
="$ac_aux_dir/ltmain.sh"
6994 ofile
="$default_ofile"
6995 with_gnu_ld
="$lt_cv_prog_gnu_ld"
6997 if test -n "$ac_tool_prefix"; then
6998 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6999 set dummy
${ac_tool_prefix}ar; ac_word
=$2
7000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7002 if test "${ac_cv_prog_AR+set}" = set; then
7003 echo $ECHO_N "(cached) $ECHO_C" >&6
7005 if test -n "$AR"; then
7006 ac_cv_prog_AR
="$AR" # Let the user override the test.
7008 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7012 test -z "$as_dir" && as_dir
=.
7013 for ac_exec_ext
in '' $ac_executable_extensions; do
7014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7015 ac_cv_prog_AR
="${ac_tool_prefix}ar"
7016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7026 if test -n "$AR"; then
7027 { echo "$as_me:$LINENO: result: $AR" >&5
7028 echo "${ECHO_T}$AR" >&6; }
7030 { echo "$as_me:$LINENO: result: no" >&5
7031 echo "${ECHO_T}no" >&6; }
7036 if test -z "$ac_cv_prog_AR"; then
7038 # Extract the first word of "ar", so it can be a program name with args.
7039 set dummy
ar; ac_word
=$2
7040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7042 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7043 echo $ECHO_N "(cached) $ECHO_C" >&6
7045 if test -n "$ac_ct_AR"; then
7046 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7048 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7052 test -z "$as_dir" && as_dir
=.
7053 for ac_exec_ext
in '' $ac_executable_extensions; do
7054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7055 ac_cv_prog_ac_ct_AR
="ar"
7056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7065 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7066 if test -n "$ac_ct_AR"; then
7067 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7068 echo "${ECHO_T}$ac_ct_AR" >&6; }
7070 { echo "$as_me:$LINENO: result: no" >&5
7071 echo "${ECHO_T}no" >&6; }
7074 if test "x$ac_ct_AR" = x
; then
7077 case $cross_compiling:$ac_tool_warned in
7079 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7080 whose name does not start with the host triplet. If you think this
7081 configuration is useful to you, please write to autoconf@gnu.org." >&5
7082 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7083 whose name does not start with the host triplet. If you think this
7084 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7085 ac_tool_warned
=yes ;;
7093 if test -n "$ac_tool_prefix"; then
7094 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7095 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7098 if test "${ac_cv_prog_RANLIB+set}" = set; then
7099 echo $ECHO_N "(cached) $ECHO_C" >&6
7101 if test -n "$RANLIB"; then
7102 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7104 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7108 test -z "$as_dir" && as_dir
=.
7109 for ac_exec_ext
in '' $ac_executable_extensions; do
7110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7111 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7121 RANLIB
=$ac_cv_prog_RANLIB
7122 if test -n "$RANLIB"; then
7123 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7124 echo "${ECHO_T}$RANLIB" >&6; }
7126 { echo "$as_me:$LINENO: result: no" >&5
7127 echo "${ECHO_T}no" >&6; }
7132 if test -z "$ac_cv_prog_RANLIB"; then
7133 ac_ct_RANLIB
=$RANLIB
7134 # Extract the first word of "ranlib", so it can be a program name with args.
7135 set dummy ranlib
; ac_word
=$2
7136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7138 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7139 echo $ECHO_N "(cached) $ECHO_C" >&6
7141 if test -n "$ac_ct_RANLIB"; then
7142 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7144 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7148 test -z "$as_dir" && as_dir
=.
7149 for ac_exec_ext
in '' $ac_executable_extensions; do
7150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7151 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7161 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7162 if test -n "$ac_ct_RANLIB"; then
7163 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7164 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7166 { echo "$as_me:$LINENO: result: no" >&5
7167 echo "${ECHO_T}no" >&6; }
7170 if test "x$ac_ct_RANLIB" = x
; then
7173 case $cross_compiling:$ac_tool_warned in
7175 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7176 whose name does not start with the host triplet. If you think this
7177 configuration is useful to you, please write to autoconf@gnu.org." >&5
7178 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7179 whose name does not start with the host triplet. If you think this
7180 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7181 ac_tool_warned
=yes ;;
7183 RANLIB
=$ac_ct_RANLIB
7186 RANLIB
="$ac_cv_prog_RANLIB"
7189 if test -n "$ac_tool_prefix"; then
7190 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7191 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
7192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7194 if test "${ac_cv_prog_STRIP+set}" = set; then
7195 echo $ECHO_N "(cached) $ECHO_C" >&6
7197 if test -n "$STRIP"; then
7198 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
7200 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7204 test -z "$as_dir" && as_dir
=.
7205 for ac_exec_ext
in '' $ac_executable_extensions; do
7206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7207 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
7208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7217 STRIP
=$ac_cv_prog_STRIP
7218 if test -n "$STRIP"; then
7219 { echo "$as_me:$LINENO: result: $STRIP" >&5
7220 echo "${ECHO_T}$STRIP" >&6; }
7222 { echo "$as_me:$LINENO: result: no" >&5
7223 echo "${ECHO_T}no" >&6; }
7228 if test -z "$ac_cv_prog_STRIP"; then
7230 # Extract the first word of "strip", so it can be a program name with args.
7231 set dummy strip
; ac_word
=$2
7232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7234 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
7237 if test -n "$ac_ct_STRIP"; then
7238 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
7240 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7244 test -z "$as_dir" && as_dir
=.
7245 for ac_exec_ext
in '' $ac_executable_extensions; do
7246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7247 ac_cv_prog_ac_ct_STRIP
="strip"
7248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7257 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
7258 if test -n "$ac_ct_STRIP"; then
7259 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7260 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7262 { echo "$as_me:$LINENO: result: no" >&5
7263 echo "${ECHO_T}no" >&6; }
7266 if test "x$ac_ct_STRIP" = x
; then
7269 case $cross_compiling:$ac_tool_warned in
7271 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7272 whose name does not start with the host triplet. If you think this
7273 configuration is useful to you, please write to autoconf@gnu.org." >&5
7274 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7275 whose name does not start with the host triplet. If you think this
7276 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7277 ac_tool_warned
=yes ;;
7282 STRIP
="$ac_cv_prog_STRIP"
7287 old_CFLAGS
="$CFLAGS"
7289 # Set sane defaults for various variables
7290 test -z "$AR" && AR
=ar
7291 test -z "$AR_FLAGS" && AR_FLAGS
=cru
7292 test -z "$AS" && AS
=as
7293 test -z "$CC" && CC
=cc
7294 test -z "$LTCC" && LTCC
=$CC
7295 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
7296 test -z "$DLLTOOL" && DLLTOOL
=dlltool
7297 test -z "$LD" && LD
=ld
7298 test -z "$LN_S" && LN_S
="ln -s"
7299 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
7300 test -z "$NM" && NM
=nm
7301 test -z "$SED" && SED
=sed
7302 test -z "$OBJDUMP" && OBJDUMP
=objdump
7303 test -z "$RANLIB" && RANLIB
=:
7304 test -z "$STRIP" && STRIP
=:
7305 test -z "$ac_objext" && ac_objext
=o
7307 # Determine commands to create old-style static archives.
7308 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs'
7309 old_postinstall_cmds
='chmod 644 $oldlib'
7310 old_postuninstall_cmds
=
7312 if test -n "$RANLIB"; then
7315 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7318 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB \$oldlib"
7321 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
7324 for cc_temp
in $compiler""; do
7326 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7327 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7332 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7335 # Only perform the check for file, if the check method requires it
7336 case $deplibs_check_method in
7338 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7339 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7340 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7341 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7342 echo $ECHO_N "(cached) $ECHO_C" >&6
7346 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7349 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7350 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7351 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7352 for ac_dir
in $ac_dummy; do
7354 test -z "$ac_dir" && ac_dir
=.
7355 if test -f $ac_dir/${ac_tool_prefix}file; then
7356 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
7357 if test -n "$file_magic_test_file"; then
7358 case $deplibs_check_method in
7360 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7361 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7362 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7363 $EGREP "$file_magic_regex" > /dev
/null
; then
7368 *** Warning: the command libtool uses to detect shared libraries,
7369 *** $file_magic_cmd, produces output that libtool cannot recognize.
7370 *** The result is that libtool may fail to recognize shared libraries
7371 *** as such. This will affect the creation of libtool libraries that
7372 *** depend on shared libraries, but programs linked with such libtool
7373 *** libraries will work regardless of this problem. Nevertheless, you
7374 *** may want to report the problem to your system manager and/or to
7375 *** bug-libtool@gnu.org
7385 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7390 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7391 if test -n "$MAGIC_CMD"; then
7392 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7393 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7395 { echo "$as_me:$LINENO: result: no" >&5
7396 echo "${ECHO_T}no" >&6; }
7399 if test -z "$lt_cv_path_MAGIC_CMD"; then
7400 if test -n "$ac_tool_prefix"; then
7401 { echo "$as_me:$LINENO: checking for file" >&5
7402 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7403 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7404 echo $ECHO_N "(cached) $ECHO_C" >&6
7408 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7411 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7412 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7413 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7414 for ac_dir
in $ac_dummy; do
7416 test -z "$ac_dir" && ac_dir
=.
7417 if test -f $ac_dir/file; then
7418 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
7419 if test -n "$file_magic_test_file"; then
7420 case $deplibs_check_method in
7422 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7423 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7424 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7425 $EGREP "$file_magic_regex" > /dev
/null
; then
7430 *** Warning: the command libtool uses to detect shared libraries,
7431 *** $file_magic_cmd, produces output that libtool cannot recognize.
7432 *** The result is that libtool may fail to recognize shared libraries
7433 *** as such. This will affect the creation of libtool libraries that
7434 *** depend on shared libraries, but programs linked with such libtool
7435 *** libraries will work regardless of this problem. Nevertheless, you
7436 *** may want to report the problem to your system manager and/or to
7437 *** bug-libtool@gnu.org
7447 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7452 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7453 if test -n "$MAGIC_CMD"; then
7454 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7455 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7457 { echo "$as_me:$LINENO: result: no" >&5
7458 echo "${ECHO_T}no" >&6; }
7471 enable_win32_dll
=yes
7473 # Check whether --enable-libtool-lock was given.
7474 if test "${enable_libtool_lock+set}" = set; then
7475 enableval
=$enable_libtool_lock;
7478 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
7481 # Check whether --with-pic was given.
7482 if test "${with_pic+set}" = set; then
7483 withval
=$with_pic; pic_mode
="$withval"
7488 test -z "$pic_mode" && pic_mode
=default
7490 # Use C for the default configuration in the libtool script
7494 ac_cpp
='$CPP $CPPFLAGS'
7495 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7496 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7497 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7500 # Source file extension for C test sources.
7503 # Object file extension for compiled C test sources.
7507 # Code to be used in simple compile tests
7508 lt_simple_compile_test_code
="int some_variable = 0;"
7510 # Code to be used in simple link tests
7511 lt_simple_link_test_code
='int main(){return(0);}'
7514 # If no C compiler was specified, use CC.
7517 # If no C compiler flags were specified, use CFLAGS.
7518 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
7520 # Allow CC to be a program name with arguments.
7524 # save warnings/boilerplate of simple test code
7525 ac_outfile
=conftest.
$ac_objext
7526 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
7527 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7528 _lt_compiler_boilerplate
=`cat conftest.err`
7531 ac_outfile
=conftest.
$ac_objext
7532 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
7533 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7534 _lt_linker_boilerplate
=`cat conftest.err`
7539 ## There is no encapsulation within the following macros, do not change
7540 ## the running order or otherwise move them around unless you know exactly
7541 ## what you are doing...
7543 lt_prog_compiler_no_builtin_flag
=
7545 if test "$GCC" = yes; then
7546 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
7549 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7550 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7551 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7552 echo $ECHO_N "(cached) $ECHO_C" >&6
7554 lt_cv_prog_compiler_rtti_exceptions
=no
7555 ac_outfile
=conftest.
$ac_objext
7556 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7557 lt_compiler_flag
="-fno-rtti -fno-exceptions"
7558 # Insert the option either (1) after the last *FLAGS variable, or
7559 # (2) before a word containing "conftest.", or (3) at the end.
7560 # Note that $ac_compile itself does not contain backslashes and begins
7561 # with a dollar sign (not a hyphen), so the echo should work correctly.
7562 # The option is referenced via a variable to avoid confusing sed.
7563 lt_compile
=`echo "$ac_compile" | $SED \
7564 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7565 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7566 -e 's:$: $lt_compiler_flag:'`
7567 (eval echo "\"\$as_me:7567: $lt_compile\"" >&5)
7568 (eval "$lt_compile" 2>conftest.err
)
7570 cat conftest.err
>&5
7571 echo "$as_me:7571: \$? = $ac_status" >&5
7572 if (exit $ac_status) && test -s "$ac_outfile"; then
7573 # The compiler can only warn and ignore the option if not recognized
7574 # So say no if there are warnings other than the usual output.
7575 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
7576 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7577 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7578 lt_cv_prog_compiler_rtti_exceptions
=yes
7584 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7585 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7587 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
7588 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7595 lt_prog_compiler_wl
=
7596 lt_prog_compiler_pic
=
7597 lt_prog_compiler_static
=
7599 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7600 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7602 if test "$GCC" = yes; then
7603 lt_prog_compiler_wl
='-Wl,'
7604 lt_prog_compiler_static
='-static'
7608 # All AIX code is PIC.
7609 if test "$host_cpu" = ia64
; then
7610 # AIX 5 now supports IA64 processor
7611 lt_prog_compiler_static
='-Bstatic'
7616 # FIXME: we need at least 68020 code to build shared libraries, but
7617 # adding the `-m68020' flag to GCC prevents building anything better,
7619 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
7622 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
7623 # PIC is the default for these OSes.
7626 mingw
* | cygwin
* | pw32
* | os2
*)
7627 # This hack is so that the source file can tell whether it is being
7628 # built for inclusion in a dll (and should export symbols for example).
7629 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7630 # (--disable-auto-import) libraries
7631 lt_prog_compiler_pic
='-DDLL_EXPORT'
7634 darwin
* | rhapsody
*)
7635 # PIC is the default on this platform
7636 # Common symbols not allowed in MH_DYLIB files
7637 lt_prog_compiler_pic
='-fno-common'
7641 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7642 # Instead, we relocate shared libraries at runtime.
7646 # Just because we use GCC doesn't mean we suddenly get shared libraries
7647 # on systems that don't support them.
7648 lt_prog_compiler_can_build_shared
=no
7653 if test -d /usr
/nec
; then
7654 lt_prog_compiler_pic
=-Kconform_pic
7659 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7666 lt_prog_compiler_pic
='-fPIC'
7672 lt_prog_compiler_pic
='-fPIC'
7676 # PORTME Check for flag to pass linker flags through the system compiler.
7679 lt_prog_compiler_wl
='-Wl,'
7680 if test "$host_cpu" = ia64
; then
7681 # AIX 5 now supports IA64 processor
7682 lt_prog_compiler_static
='-Bstatic'
7684 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
7688 # PIC is the default on this platform
7689 # Common symbols not allowed in MH_DYLIB files
7690 case $cc_basename in
7692 lt_prog_compiler_pic
='-qnocommon'
7693 lt_prog_compiler_wl
='-Wl,'
7698 mingw
* | cygwin
* | pw32
* | os2
*)
7699 # This hack is so that the source file can tell whether it is being
7700 # built for inclusion in a dll (and should export symbols for example).
7701 lt_prog_compiler_pic
='-DDLL_EXPORT'
7704 hpux9
* | hpux10
* | hpux11
*)
7705 lt_prog_compiler_wl
='-Wl,'
7706 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7713 lt_prog_compiler_pic
='+Z'
7716 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7717 lt_prog_compiler_static
='${wl}-a ${wl}archive'
7720 irix5
* | irix6
* | nonstopux
*)
7721 lt_prog_compiler_wl
='-Wl,'
7722 # PIC (with -KPIC) is the default.
7723 lt_prog_compiler_static
='-non_shared'
7727 lt_prog_compiler_pic
='-KPIC'
7728 lt_prog_compiler_static
='-Bstatic'
7731 linux
* | k
*bsd
*-gnu)
7732 case $cc_basename in
7734 lt_prog_compiler_wl
='-Wl,'
7735 lt_prog_compiler_pic
='-KPIC'
7736 lt_prog_compiler_static
='-static'
7738 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
7739 # Portland Group compilers (*not* the Pentium gcc compiler,
7740 # which looks to be a dead project)
7741 lt_prog_compiler_wl
='-Wl,'
7742 lt_prog_compiler_pic
='-fpic'
7743 lt_prog_compiler_static
='-Bstatic'
7746 lt_prog_compiler_wl
='-Wl,'
7747 # All Alpha code is PIC.
7748 lt_prog_compiler_static
='-non_shared'
7751 case `$CC -V 2>&1 | sed 5q` in
7754 lt_prog_compiler_pic
='-KPIC'
7755 lt_prog_compiler_static
='-Bstatic'
7756 lt_prog_compiler_wl
='-Wl,'
7759 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7760 lt_prog_compiler_pic
='-KPIC'
7761 lt_prog_compiler_static
='-Bstatic'
7762 lt_prog_compiler_wl
=''
7769 osf3
* | osf4
* | osf5
*)
7770 lt_prog_compiler_wl
='-Wl,'
7771 # All OSF/1 code is PIC.
7772 lt_prog_compiler_static
='-non_shared'
7776 lt_prog_compiler_static
='-non_shared'
7780 lt_prog_compiler_pic
='-KPIC'
7781 lt_prog_compiler_static
='-Bstatic'
7782 case $cc_basename in
7784 lt_prog_compiler_wl
='-Qoption ld ';;
7786 lt_prog_compiler_wl
='-Wl,';;
7791 lt_prog_compiler_wl
='-Qoption ld '
7792 lt_prog_compiler_pic
='-PIC'
7793 lt_prog_compiler_static
='-Bstatic'
7796 sysv4 | sysv4.2uw2
* | sysv4.3
*)
7797 lt_prog_compiler_wl
='-Wl,'
7798 lt_prog_compiler_pic
='-KPIC'
7799 lt_prog_compiler_static
='-Bstatic'
7803 if test -d /usr
/nec
;then
7804 lt_prog_compiler_pic
='-Kconform_pic'
7805 lt_prog_compiler_static
='-Bstatic'
7809 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
7810 lt_prog_compiler_wl
='-Wl,'
7811 lt_prog_compiler_pic
='-KPIC'
7812 lt_prog_compiler_static
='-Bstatic'
7816 lt_prog_compiler_wl
='-Wl,'
7817 lt_prog_compiler_can_build_shared
=no
7821 lt_prog_compiler_pic
='-pic'
7822 lt_prog_compiler_static
='-Bstatic'
7826 lt_prog_compiler_can_build_shared
=no
7831 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7832 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7835 # Check to make sure the PIC flag actually works.
7837 if test -n "$lt_prog_compiler_pic"; then
7839 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7840 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7841 if test "${lt_prog_compiler_pic_works+set}" = set; then
7842 echo $ECHO_N "(cached) $ECHO_C" >&6
7844 lt_prog_compiler_pic_works
=no
7845 ac_outfile
=conftest.
$ac_objext
7846 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7847 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
7848 # Insert the option either (1) after the last *FLAGS variable, or
7849 # (2) before a word containing "conftest.", or (3) at the end.
7850 # Note that $ac_compile itself does not contain backslashes and begins
7851 # with a dollar sign (not a hyphen), so the echo should work correctly.
7852 # The option is referenced via a variable to avoid confusing sed.
7853 lt_compile
=`echo "$ac_compile" | $SED \
7854 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7855 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7856 -e 's:$: $lt_compiler_flag:'`
7857 (eval echo "\"\$as_me:7857: $lt_compile\"" >&5)
7858 (eval "$lt_compile" 2>conftest.err
)
7860 cat conftest.err
>&5
7861 echo "$as_me:7861: \$? = $ac_status" >&5
7862 if (exit $ac_status) && test -s "$ac_outfile"; then
7863 # The compiler can only warn and ignore the option if not recognized
7864 # So say no if there are warnings other than the usual output.
7865 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
7866 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7867 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7868 lt_prog_compiler_pic_works
=yes
7874 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7875 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7877 if test x
"$lt_prog_compiler_pic_works" = xyes
; then
7878 case $lt_prog_compiler_pic in
7880 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
7883 lt_prog_compiler_pic
=
7884 lt_prog_compiler_can_build_shared
=no
7889 # For platforms which do not support PIC, -DPIC is meaningless:
7891 lt_prog_compiler_pic
=
7894 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
7899 # Check to make sure the static flag actually works.
7901 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
7902 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7903 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7904 if test "${lt_prog_compiler_static_works+set}" = set; then
7905 echo $ECHO_N "(cached) $ECHO_C" >&6
7907 lt_prog_compiler_static_works
=no
7908 save_LDFLAGS
="$LDFLAGS"
7909 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
7910 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
7911 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
7912 # The linker can only warn and ignore the option if not recognized
7913 # So say no if there are warnings
7914 if test -s conftest.err
; then
7915 # Append any errors to the config.log.
7916 cat conftest.err
1>&5
7917 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
7918 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7919 if diff conftest.exp conftest.er2
>/dev
/null
; then
7920 lt_prog_compiler_static_works
=yes
7923 lt_prog_compiler_static_works
=yes
7927 LDFLAGS
="$save_LDFLAGS"
7930 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7931 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7933 if test x
"$lt_prog_compiler_static_works" = xyes
; then
7936 lt_prog_compiler_static
=
7940 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7941 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7942 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7943 echo $ECHO_N "(cached) $ECHO_C" >&6
7945 lt_cv_prog_compiler_c_o
=no
7946 $rm -r conftest
2>/dev
/null
7950 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7952 lt_compiler_flag
="-o out/conftest2.$ac_objext"
7953 # Insert the option either (1) after the last *FLAGS variable, or
7954 # (2) before a word containing "conftest.", or (3) at the end.
7955 # Note that $ac_compile itself does not contain backslashes and begins
7956 # with a dollar sign (not a hyphen), so the echo should work correctly.
7957 lt_compile
=`echo "$ac_compile" | $SED \
7958 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7959 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7960 -e 's:$: $lt_compiler_flag:'`
7961 (eval echo "\"\$as_me:7961: $lt_compile\"" >&5)
7962 (eval "$lt_compile" 2>out
/conftest.err
)
7964 cat out
/conftest.err
>&5
7965 echo "$as_me:7965: \$? = $ac_status" >&5
7966 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
7968 # The compiler can only warn and ignore the option if not recognized
7969 # So say no if there are warnings
7970 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
7971 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
7972 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
7973 lt_cv_prog_compiler_c_o
=yes
7978 # SGI C++ compiler will create directory out/ii_files/ for
7979 # template instantiation
7980 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
7981 $rm out
/* && rmdir out
7987 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7988 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7991 hard_links
="nottested"
7992 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
7993 # do not overwrite the value of need_locks provided by the user
7994 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7995 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7998 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8000 ln conftest.a conftest.b
2>&5 || hard_links
=no
8001 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8002 { echo "$as_me:$LINENO: result: $hard_links" >&5
8003 echo "${ECHO_T}$hard_links" >&6; }
8004 if test "$hard_links" = no
; then
8005 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8006 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8013 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8014 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8017 allow_undefined_flag
=
8018 enable_shared_with_static_runtimes
=no
8020 archive_expsym_cmds
=
8021 old_archive_From_new_cmds
=
8022 old_archive_from_expsyms_cmds
=
8023 export_dynamic_flag_spec
=
8024 whole_archive_flag_spec
=
8025 thread_safe_flag_spec
=
8026 hardcode_libdir_flag_spec
=
8027 hardcode_libdir_flag_spec_ld
=
8028 hardcode_libdir_separator
=
8031 hardcode_shlibpath_var
=unsupported
8032 link_all_deplibs
=unknown
8033 hardcode_automatic
=no
8036 always_export_symbols
=no
8037 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8038 # include_expsyms should be a list of space-separated symbols to be *always*
8039 # included in the symbol list
8041 # exclude_expsyms can be an extended regexp of symbols to exclude
8042 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8043 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8044 # as well as any symbol that contains `d'.
8045 exclude_expsyms
="_GLOBAL_OFFSET_TABLE_"
8046 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8047 # platforms (ab)use it in PIC code, but their linkers get confused if
8048 # the symbol is explicitly referenced. Since portable code cannot
8049 # rely on this symbol name, it's probably fine to never include it in
8050 # preloaded symbol tables.
8051 extract_expsyms_cmds
=
8052 # Just being paranoid about ensuring that cc_basename is set.
8053 for cc_temp
in $compiler""; do
8055 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
8056 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
8061 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8064 cygwin
* | mingw
* | pw32
*)
8065 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8066 # When not using gcc, we currently assume that we are using
8067 # Microsoft Visual C++.
8068 if test "$GCC" != yes; then
8073 # we just hope/assume this is gcc and not c89 (= MSVC++)
8082 if test "$with_gnu_ld" = yes; then
8083 # If archive_cmds runs LD, not CC, wlarc should be empty
8086 # Set some defaults for GNU ld with shared library support. These
8087 # are reset later if shared libraries are not supported. Putting them
8088 # here allows them to be overridden if necessary.
8089 runpath_var
=LD_RUN_PATH
8090 hardcode_libdir_flag_spec
='${wl}--rpath ${wl}$libdir'
8091 export_dynamic_flag_spec
='${wl}--export-dynamic'
8092 # ancient GNU ld didn't support --whole-archive et. al.
8093 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
8094 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8096 whole_archive_flag_spec
=
8098 supports_anon_versioning
=no
8099 case `$LD -v 2>/dev/null` in
8100 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
8101 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
8102 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
8103 *\
2.11.
*) ;; # other 2.11 versions
8104 *) supports_anon_versioning
=yes ;;
8107 # See if GNU ld supports shared libraries.
8109 aix3
* | aix4
* | aix5
*)
8110 # On AIX/PPC, the GNU linker is very broken
8111 if test "$host_cpu" != ia64
; then
8115 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8116 *** to be unable to reliably create shared libraries on AIX.
8117 *** Therefore, libtool is disabling shared libraries support. If you
8118 *** really care for shared libraries, you may want to modify your PATH
8119 *** so that a non-GNU linker is found, and then restart.
8126 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)'
8127 hardcode_libdir_flag_spec
='-L$libdir'
8128 hardcode_minus_L
=yes
8130 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8131 # that the semantics of dynamic libraries on AmigaOS, at least up
8132 # to version 4, is to share data among multiple programs linked
8133 # with the same dynamic library. Since this doesn't match the
8134 # behavior of shared libraries on other platforms, we can't use
8140 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
8141 allow_undefined_flag
=unsupported
8142 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8143 # support --undefined. This deserves some investigation. FIXME
8144 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8150 cygwin
* | mingw
* | pw32
*)
8151 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8152 # as there is no search path for DLLs.
8153 hardcode_libdir_flag_spec
='-L$libdir'
8154 allow_undefined_flag
=unsupported
8155 always_export_symbols
=no
8156 enable_shared_with_static_runtimes
=yes
8157 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8159 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
8160 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8161 # If the export-symbols file already is a .def file (1st line
8162 # is EXPORTS), use it as is; otherwise, prepend...
8163 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8164 cp $export_symbols $output_objdir/$soname.def;
8166 echo EXPORTS > $output_objdir/$soname.def;
8167 cat $export_symbols >> $output_objdir/$soname.def;
8169 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8177 hardcode_shlibpath_var
=no
8178 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8179 export_dynamic_flag_spec
='${wl}-E'
8180 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8181 # Instead, shared libraries are loaded at an image base (0x10000000 by
8182 # default) and relocated if they conflict, which is a slow very memory
8183 # consuming and fragmenting process. To avoid this, we pick a random,
8184 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8185 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8186 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8187 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'
8190 gnu
* | linux
* | k
*bsd
*-gnu)
8191 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
8193 case $cc_basename,$host_cpu in
8194 pgcc
*) # Portland Group C compiler
8195 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'
8196 tmp_addflag
=' $pic_flag'
8198 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
8199 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'
8200 tmp_addflag
=' $pic_flag -Mnomain' ;;
8201 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
8202 tmp_addflag
=' -i_dynamic' ;;
8203 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
8204 tmp_addflag
=' -i_dynamic -nofor_main' ;;
8205 ifc
* | ifort
*) # Intel Fortran compiler
8206 tmp_addflag
=' -nofor_main' ;;
8208 case `$CC -V 2>&1 | sed 5q` in
8209 *Sun\ C
*) # Sun C 5.9
8210 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'
8211 tmp_sharedflag
='-G' ;;
8212 *Sun\ F
*) # Sun Fortran 8.3
8213 tmp_sharedflag
='-G' ;;
8215 tmp_sharedflag
='-shared' ;;
8217 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8219 if test $supports_anon_versioning = yes; then
8220 archive_expsym_cmds
='$echo "{ global:" > $output_objdir/$libname.ver~
8221 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8222 $echo "local: *; };" >> $output_objdir/$libname.ver~
8223 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8231 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
8232 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8235 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8236 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8241 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
8245 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8246 *** create shared libraries on Solaris systems. Therefore, libtool
8247 *** is disabling shared libraries support. We urge you to upgrade GNU
8248 *** binutils to release 2.9.1 or newer. Another option is to modify
8249 *** your PATH or compiler configuration so that the native linker is
8250 *** used, and then restart.
8253 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
8254 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8255 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8261 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
8262 case `$LD -v 2>&1` in
8263 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
8267 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8268 *** reliably create shared libraries on SCO systems. Therefore, libtool
8269 *** is disabling shared libraries support. We urge you to upgrade GNU
8270 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8271 *** your PATH or compiler configuration so that the native linker is
8272 *** used, and then restart.
8277 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
8278 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8279 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8280 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8289 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8292 hardcode_shlibpath_var
=no
8296 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
8297 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8298 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8305 if test "$ld_shlibs" = no
; then
8307 hardcode_libdir_flag_spec
=
8308 export_dynamic_flag_spec
=
8309 whole_archive_flag_spec
=
8312 # PORTME fill in a description of your system's linker (not GNU ld)
8315 allow_undefined_flag
=unsupported
8316 always_export_symbols
=yes
8317 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'
8318 # Note: this linker hardcodes the directories in LIBPATH if there
8319 # are no directories specified by -L.
8320 hardcode_minus_L
=yes
8321 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8322 # Neither direct hardcoding nor static linking is supported with a
8324 hardcode_direct
=unsupported
8329 if test "$host_cpu" = ia64
; then
8330 # On IA64, the linker does run time linking by default, so we don't
8331 # have to do anything special.
8332 aix_use_runtimelinking
=no
8333 exp_sym_flag
='-Bexport'
8336 # If we're using GNU nm, then we don't want the "-C" option.
8337 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8338 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
8339 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'
8341 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'
8343 aix_use_runtimelinking
=no
8345 # Test if we are trying to use run time linking or normal
8346 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8347 # need to do runtime linking.
8348 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
8349 for ld_flag
in $LDFLAGS; do
8350 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
8351 aix_use_runtimelinking
=yes
8358 exp_sym_flag
='-bexport'
8359 no_entry_flag
='-bnoentry'
8362 # When large executables or shared objects are built, AIX ld can
8363 # have problems creating the table of contents. If linking a library
8364 # or program results in "error TOC overflow" add -mminimal-toc to
8365 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8366 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8370 hardcode_libdir_separator
=':'
8371 link_all_deplibs
=yes
8373 if test "$GCC" = yes; then
8374 case $host_os in aix4.
[012]|aix4.
[012].
*)
8375 # We only want to do this on AIX 4.2 and lower, the check
8376 # below for broken collect2 doesn't work under 4.3+
8377 collect2name
=`${CC} -print-prog-name=collect2`
8378 if test -f "$collect2name" && \
8379 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
8381 # We have reworked collect2
8384 # We have old collect2
8385 hardcode_direct
=unsupported
8386 # It fails to find uninstalled libraries when the uninstalled
8387 # path is not listed in the libpath. Setting hardcode_minus_L
8388 # to unsupported forces relinking
8389 hardcode_minus_L
=yes
8390 hardcode_libdir_flag_spec
='-L$libdir'
8391 hardcode_libdir_separator
=
8395 shared_flag
='-shared'
8396 if test "$aix_use_runtimelinking" = yes; then
8397 shared_flag
="$shared_flag "'${wl}-G'
8401 if test "$host_cpu" = ia64
; then
8402 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8403 # chokes on -Wl,-G. The following line is correct:
8406 if test "$aix_use_runtimelinking" = yes; then
8407 shared_flag
='${wl}-G'
8409 shared_flag
='${wl}-bM:SRE'
8414 # It seems that -bexpall does not export symbols beginning with
8415 # underscore (_), so it is better to generate a list of symbols to export.
8416 always_export_symbols
=yes
8417 if test "$aix_use_runtimelinking" = yes; then
8418 # Warning - without using the other runtime loading flags (-brtl),
8419 # -berok will link without error, but may produce a broken library.
8420 allow_undefined_flag
='-berok'
8421 # Determine the default libpath from the value encoded in an empty executable.
8422 cat >conftest.
$ac_ext <<_ACEOF
8425 cat confdefs.h
>>conftest.
$ac_ext
8426 cat >>conftest.
$ac_ext <<_ACEOF
8427 /* end confdefs.h. */
8437 rm -f conftest.
$ac_objext conftest
$ac_exeext
8438 if { (ac_try
="$ac_link"
8440 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8441 *) ac_try_echo=$ac_try;;
8443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8444 (eval "$ac_link") 2>conftest.er1
8446 grep -v '^ *+' conftest.er1 >conftest.err
8448 cat conftest.err >&5
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); } && {
8451 test -z "$ac_c_werror_flag" ||
8452 test ! -s conftest.err
8453 } && test -s conftest$ac_exeext &&
8454 $as_test_x conftest$ac_exeext; then
8456 lt_aix_libpath_sed='
8457 /Import File Strings/,/^$/ {
8463 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
8464 # Check for a 64-bit object if we didn't find anything.
8465 if test -z "$aix_libpath"; then
8466 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
8469 echo "$as_me: failed program was:" >&5
8470 sed 's/^/| /' conftest.$ac_ext >&5
8475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8476 conftest$ac_exeext conftest.$ac_ext
8477 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8479 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8480 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"
8482 if test "$host_cpu" = ia64; then
8483 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8484 allow_undefined_flag="-z nodefs"
8485 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"
8487 # Determine the default libpath from the value encoded in an empty executable.
8488 cat >conftest.$ac_ext <<_ACEOF
8491 cat confdefs.h >>conftest.$ac_ext
8492 cat >>conftest.$ac_ext <<_ACEOF
8493 /* end confdefs.h. */
8503 rm -f conftest.$ac_objext conftest$ac_exeext
8504 if { (ac_try="$ac_link"
8506 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8507 *) ac_try_echo
=$ac_try;;
8509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8510 (eval "$ac_link") 2>conftest.er1
8512 grep -v '^ *+' conftest.er1
>conftest.err
8514 cat conftest.err
>&5
8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 (exit $ac_status); } && {
8517 test -z "$ac_c_werror_flag" ||
8518 test ! -s conftest.err
8519 } && test -s conftest
$ac_exeext &&
8520 $as_test_x conftest
$ac_exeext; then
8522 lt_aix_libpath_sed
='
8523 /Import File Strings/,/^$/ {
8529 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8530 # Check for a 64-bit object if we didn't find anything.
8531 if test -z "$aix_libpath"; then
8532 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8535 echo "$as_me: failed program was:" >&5
8536 sed 's/^/| /' conftest.
$ac_ext >&5
8541 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8542 conftest
$ac_exeext conftest.
$ac_ext
8543 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
8545 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
8546 # Warning - without using the other run time loading flags,
8547 # -berok will link without error, but may produce a broken library.
8548 no_undefined_flag
=' ${wl}-bernotok'
8549 allow_undefined_flag
=' ${wl}-berok'
8550 # Exported symbols can be pulled into shared objects from archives
8551 whole_archive_flag_spec
='$convenience'
8552 archive_cmds_need_lc
=yes
8553 # This is similar to how AIX traditionally builds its shared libraries.
8554 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'
8560 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)'
8561 hardcode_libdir_flag_spec
='-L$libdir'
8562 hardcode_minus_L
=yes
8563 # see comment about different semantics on the GNU ld section
8568 export_dynamic_flag_spec
=-rdynamic
8571 cygwin
* | mingw
* | pw32
*)
8572 # When not using gcc, we currently assume that we are using
8573 # Microsoft Visual C++.
8574 # hardcode_libdir_flag_spec is actually meaningless, as there is
8575 # no search path for DLLs.
8576 hardcode_libdir_flag_spec
=' '
8577 allow_undefined_flag
=unsupported
8578 # Tell ltmain to make .lib files, not .a files.
8580 # Tell ltmain to make .dll files, not .so files.
8582 # FIXME: Setting linknames here is a bad hack.
8583 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8584 # The linker will automatically build a .lib file if we build a DLL.
8585 old_archive_From_new_cmds
='true'
8586 # FIXME: Should let the user specify the lib program.
8587 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
8588 fix_srcfile_path
='`cygpath -w "$srcfile"`'
8589 enable_shared_with_static_runtimes
=yes
8592 darwin
* | rhapsody
*)
8594 rhapsody
* | darwin1.
[012])
8595 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
8598 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8599 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8601 case ${MACOSX_DEPLOYMENT_TARGET} in
8603 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8606 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
8612 archive_cmds_need_lc
=no
8614 hardcode_automatic
=yes
8615 hardcode_shlibpath_var
=unsupported
8616 whole_archive_flag_spec
=''
8617 link_all_deplibs
=yes
8618 if test "$GCC" = yes ; then
8619 output_verbose_link_cmd
='echo'
8620 archive_cmds
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8621 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8622 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8623 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}'
8624 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}'
8626 case $cc_basename in
8628 output_verbose_link_cmd
='echo'
8629 archive_cmds
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8630 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8631 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8632 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}'
8633 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}'
8643 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8644 hardcode_libdir_flag_spec
='-L$libdir'
8645 hardcode_shlibpath_var
=no
8652 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8653 # support. Future versions do this automatically, but an explicit c++rt0.o
8654 # does not break anything, and helps significantly (at the cost of a little
8657 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8658 hardcode_libdir_flag_spec
='-R$libdir'
8660 hardcode_shlibpath_var
=no
8663 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8665 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8667 hardcode_minus_L
=yes
8668 hardcode_shlibpath_var
=no
8671 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8672 freebsd
* | dragonfly
*)
8673 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8674 hardcode_libdir_flag_spec
='-R$libdir'
8676 hardcode_shlibpath_var
=no
8680 if test "$GCC" = yes; then
8681 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'
8683 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'
8685 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8686 hardcode_libdir_separator
=:
8689 # hardcode_minus_L: Not really in the search PATH,
8690 # but as the default location of the library.
8691 hardcode_minus_L
=yes
8692 export_dynamic_flag_spec
='${wl}-E'
8696 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
8697 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8699 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8701 if test "$with_gnu_ld" = no
; then
8702 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8703 hardcode_libdir_separator
=:
8706 export_dynamic_flag_spec
='${wl}-E'
8708 # hardcode_minus_L: Not really in the search PATH,
8709 # but as the default location of the library.
8710 hardcode_minus_L
=yes
8715 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
8718 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8721 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8724 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8730 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8733 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8736 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8740 if test "$with_gnu_ld" = no
; then
8741 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8742 hardcode_libdir_separator
=:
8746 hardcode_libdir_flag_spec_ld
='+b $libdir'
8748 hardcode_shlibpath_var
=no
8752 export_dynamic_flag_spec
='${wl}-E'
8754 # hardcode_minus_L: Not really in the search PATH,
8755 # but as the default location of the library.
8756 hardcode_minus_L
=yes
8762 irix5
* | irix6
* | nonstopux
*)
8763 if test "$GCC" = yes; then
8764 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'
8766 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'
8767 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
8769 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8770 hardcode_libdir_separator
=:
8771 link_all_deplibs
=yes
8775 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
8776 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8778 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8780 hardcode_libdir_flag_spec
='-R$libdir'
8782 hardcode_shlibpath_var
=no
8786 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8788 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8789 hardcode_libdir_separator
=:
8790 hardcode_shlibpath_var
=no
8794 if test -f /usr
/libexec
/ld.so
; then
8796 hardcode_shlibpath_var
=no
8797 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8798 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8799 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8800 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8801 export_dynamic_flag_spec
='${wl}-E'
8804 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
8805 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8806 hardcode_libdir_flag_spec
='-R$libdir'
8809 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8810 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8820 hardcode_libdir_flag_spec
='-L$libdir'
8821 hardcode_minus_L
=yes
8822 allow_undefined_flag
=unsupported
8823 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'
8824 old_archive_From_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8828 if test "$GCC" = yes; then
8829 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
8830 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'
8832 allow_undefined_flag
=' -expect_unresolved \*'
8833 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'
8835 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8836 hardcode_libdir_separator
=:
8839 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
8840 if test "$GCC" = yes; then
8841 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
8842 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'
8843 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8845 allow_undefined_flag
=' -expect_unresolved \*'
8846 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'
8847 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8848 $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'
8850 # Both c and cxx compiler support -rpath directly
8851 hardcode_libdir_flag_spec
='-rpath $libdir'
8853 hardcode_libdir_separator
=:
8857 no_undefined_flag
=' -z text'
8858 if test "$GCC" = yes; then
8860 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8861 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8862 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8865 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8866 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8867 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8869 hardcode_libdir_flag_spec
='-R$libdir'
8870 hardcode_shlibpath_var
=no
8872 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
8874 # The compiler driver will combine and reorder linker options,
8875 # but understands `-z linker_flag'. GCC discards it without `$wl',
8876 # but is careful enough not to reorder.
8877 # Supported since Solaris 2.6 (maybe 2.5.1?)
8878 if test "$GCC" = yes; then
8879 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8881 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
8885 link_all_deplibs
=yes
8889 if test "x$host_vendor" = xsequent
; then
8890 # Use $CC to link under sequent, because it throws in some extra .o
8891 # files that make .init and .fini sections work.
8892 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8894 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8896 hardcode_libdir_flag_spec
='-L$libdir'
8898 hardcode_minus_L
=yes
8899 hardcode_shlibpath_var
=no
8903 case $host_vendor in
8905 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8906 hardcode_direct
=yes # is this really true???
8909 ## LD is ld it makes a PLAMLIB
8910 ## CC just makes a GrossModule.
8911 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8912 reload_cmds
='$CC -r -o $output$reload_objs'
8916 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8917 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
8920 runpath_var
='LD_RUN_PATH'
8921 hardcode_shlibpath_var
=no
8925 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8926 hardcode_shlibpath_var
=no
8927 export_dynamic_flag_spec
='-Bexport'
8931 if test -d /usr
/nec
; then
8932 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8933 hardcode_shlibpath_var
=no
8934 runpath_var
=LD_RUN_PATH
8935 hardcode_runpath_var
=yes
8940 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
8941 no_undefined_flag
='${wl}-z,text'
8942 archive_cmds_need_lc
=no
8943 hardcode_shlibpath_var
=no
8944 runpath_var
='LD_RUN_PATH'
8946 if test "$GCC" = yes; then
8947 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8948 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8950 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8951 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8955 sysv5
* | sco3.2v5
* | sco5v6
*)
8956 # Note: We can NOT use -z defs as we might desire, because we do not
8957 # link with -lc, and that would cause any symbols used from libc to
8958 # always be unresolved, which means just about no library would
8959 # ever link correctly. If we're not using GNU ld we use -z text
8960 # though, which does catch some bad symbols but isn't as heavy-handed
8962 no_undefined_flag
='${wl}-z,text'
8963 allow_undefined_flag
='${wl}-z,nodefs'
8964 archive_cmds_need_lc
=no
8965 hardcode_shlibpath_var
=no
8966 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8967 hardcode_libdir_separator
=':'
8968 link_all_deplibs
=yes
8969 export_dynamic_flag_spec
='${wl}-Bexport'
8970 runpath_var
='LD_RUN_PATH'
8972 if test "$GCC" = yes; then
8973 archive_cmds
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8974 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8976 archive_cmds
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8977 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8982 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8983 hardcode_libdir_flag_spec
='-L$libdir'
8984 hardcode_shlibpath_var
=no
8993 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8994 echo "${ECHO_T}$ld_shlibs" >&6; }
8995 test "$ld_shlibs" = no
&& can_build_shared
=no
8998 # Do we need to explicitly link libc?
9000 case "x$archive_cmds_need_lc" in
9002 # Assume -lc should be added
9003 archive_cmds_need_lc
=yes
9005 if test "$enable_shared" = yes && test "$GCC" = yes; then
9006 case $archive_cmds in
9008 # FIXME: we may have to deal with multi-command sequences.
9011 # Test whether the compiler implicitly links with -lc since on some
9012 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9013 # to ld, don't add -lc before -lgcc.
9014 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9015 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9017 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9020 (eval $ac_compile) 2>&5
9022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023 (exit $ac_status); } 2>conftest.err
; then
9026 libobjs
=conftest.
$ac_objext
9028 wl
=$lt_prog_compiler_wl
9029 pic_flag
=$lt_prog_compiler_pic
9035 lt_save_allow_undefined_flag
=$allow_undefined_flag
9036 allow_undefined_flag
=
9037 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9038 (eval $archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); }
9043 archive_cmds_need_lc
=no
9045 archive_cmds_need_lc
=yes
9047 allow_undefined_flag
=$lt_save_allow_undefined_flag
9049 cat conftest.err
1>&5
9052 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9053 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9060 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9061 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9063 libname_spec
='lib$name'
9071 shlibpath_overrides_runpath
=unknown
9073 dynamic_linker
="$host_os ld.so"
9074 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
9076 if test "$GCC" = yes; then
9078 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
9079 *) lt_awk_arg
="/^libraries:/" ;;
9081 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9082 if echo "$lt_search_path_spec" |
grep ';' >/dev
/null
; then
9083 # if the path contains ";" then we assume it to be the separator
9084 # otherwise default to the standard path separator (i.e. ":") - it is
9085 # assumed that no part of a normal pathname contains ";" but that should
9086 # okay in the real world where ";" in dirpaths is itself problematic.
9087 lt_search_path_spec
=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9089 lt_search_path_spec
=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9091 # Ok, now we have the path, separated by spaces, we can step through it
9092 # and add multilib dir if necessary.
9093 lt_tmp_lt_search_path_spec
=
9094 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9095 for lt_sys_path
in $lt_search_path_spec; do
9096 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9097 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9099 test -d "$lt_sys_path" && \
9100 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
9103 lt_search_path_spec
=`echo $lt_tmp_lt_search_path_spec | awk '
9104 BEGIN {RS=" "; FS="/|\n";} {
9107 for (lt_i = NF; lt_i > 0; lt_i--) {
9108 if ($lt_i != "" && $lt_i != ".") {
9109 if ($lt_i == "..") {
9112 if (lt_count == 0) {
9113 lt_foo="/" $lt_i lt_foo;
9120 if (lt_foo != "") { lt_freq[lt_foo]++; }
9121 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9123 sys_lib_search_path_spec
=`echo $lt_search_path_spec`
9125 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
9127 need_lib_prefix
=unknown
9128 hardcode_into_libs
=no
9130 # when you set need_version to no, make sure it does not cause -set_version
9131 # flags to be left without arguments
9132 need_version
=unknown
9137 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
9138 shlibpath_var
=LIBPATH
9140 # AIX 3 has no versioning support, so we append a major version to the name.
9141 soname_spec
='${libname}${release}${shared_ext}$major'
9148 hardcode_into_libs
=yes
9149 if test "$host_cpu" = ia64
; then
9150 # AIX 5 supports IA64
9151 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9152 shlibpath_var
=LD_LIBRARY_PATH
9154 # With GCC up to 2.95.x, collect2 would create an import file
9155 # for dependence libraries. The import file would start with
9156 # the line `#! .'. This would cause the generated library to
9157 # depend on `.', always an invalid library. This was fixed in
9158 # development snapshots of GCC prior to 3.0.
9160 aix4 | aix4.
[01] | aix4.
[01].
*)
9161 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9163 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
9170 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9171 # soname into executable. Probably we can add versioning support to
9172 # collect2, so additional links can be useful in future.
9173 if test "$aix_use_runtimelinking" = yes; then
9174 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9175 # instead of lib<name>.a to let people know that these are not
9176 # typical AIX shared libraries.
9177 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9179 # We preserve .a as extension for shared libraries through AIX4.2
9180 # and later when we are not doing run time linking.
9181 library_names_spec
='${libname}${release}.a $libname.a'
9182 soname_spec
='${libname}${release}${shared_ext}$major'
9184 shlibpath_var
=LIBPATH
9189 library_names_spec
='$libname.ixlibrary $libname.a'
9190 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9191 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'
9195 library_names_spec
='${libname}${shared_ext}'
9196 dynamic_linker
="$host_os ld.so"
9197 shlibpath_var
=LIBRARY_PATH
9203 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9204 soname_spec
='${libname}${release}${shared_ext}$major'
9205 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
9206 shlibpath_var
=LD_LIBRARY_PATH
9207 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9208 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
9209 # the default ld.so.conf also contains /usr/contrib/lib and
9210 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9211 # libtool to hard-code these into programs
9214 cygwin
* | mingw
* | pw32
*)
9215 version_type
=windows
9220 case $GCC,$host_os in
9221 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
9222 library_names_spec
='$libname.dll.a'
9223 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9224 postinstall_cmds
='base_file=`basename \${file}`~
9225 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9226 dldir=$destdir/`dirname \$dlpath`~
9227 test -d \$dldir || mkdir -p \$dldir~
9228 $install_prog $dir/$dlname \$dldir/$dlname~
9229 chmod a+x \$dldir/$dlname'
9230 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9231 dlpath=$dir/\$dldll~
9233 shlibpath_overrides_runpath
=yes
9237 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9238 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9239 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
9242 # MinGW DLLs use traditional 'lib' prefix
9243 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9244 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9245 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
9246 # It is most probably a Windows format PATH printed by
9247 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9248 # path with ; separators, and with drive letters. We can handle the
9249 # drive letters (cygwin fileutils understands them), so leave them,
9250 # especially as we might pass files found there to a mingw objdump,
9251 # which wouldn't understand a cygwinified path. Ahh.
9252 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9254 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9258 # pw32 DLLs use 'pw' prefix rather than 'lib'
9259 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9265 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9268 dynamic_linker
='Win32 ld.exe'
9269 # FIXME: first we should search . and the directory the executable is in
9273 darwin
* | rhapsody
*)
9274 dynamic_linker
="$host_os dyld"
9278 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9279 soname_spec
='${libname}${release}${major}$shared_ext'
9280 shlibpath_overrides_runpath
=yes
9281 shlibpath_var
=DYLD_LIBRARY_PATH
9282 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
9284 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
9285 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
9292 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9293 soname_spec
='${libname}${release}${shared_ext}$major'
9294 shlibpath_var
=LD_LIBRARY_PATH
9301 freebsd
* | dragonfly
*)
9302 # DragonFly does not have aout. When/if they implement a new
9303 # versioning mechanism, adjust this.
9304 if test -x /usr
/bin
/objformat
; then
9305 objformat
=`/usr/bin/objformat`
9308 freebsd
[123]*) objformat
=aout
;;
9312 version_type
=freebsd-
$objformat
9313 case $version_type in
9315 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9320 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9324 shlibpath_var
=LD_LIBRARY_PATH
9327 shlibpath_overrides_runpath
=yes
9329 freebsd3.
[01]* | freebsdelf3.
[01]*)
9330 shlibpath_overrides_runpath
=yes
9331 hardcode_into_libs
=yes
9333 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
9334 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
9335 shlibpath_overrides_runpath
=no
9336 hardcode_into_libs
=yes
9338 *) # from 4.6 on, and DragonFly
9339 shlibpath_overrides_runpath
=yes
9340 hardcode_into_libs
=yes
9349 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9350 soname_spec
='${libname}${release}${shared_ext}$major'
9351 shlibpath_var
=LD_LIBRARY_PATH
9352 hardcode_into_libs
=yes
9355 hpux9
* | hpux10
* | hpux11
*)
9356 # Give a soname corresponding to the major version so that dld.sl refuses to
9357 # link against other versions.
9364 hardcode_into_libs
=yes
9365 dynamic_linker
="$host_os dld.so"
9366 shlibpath_var
=LD_LIBRARY_PATH
9367 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
9368 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9369 soname_spec
='${libname}${release}${shared_ext}$major'
9370 if test "X$HPUX_IA64_MODE" = X32
; then
9371 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9373 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
9375 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
9379 hardcode_into_libs
=yes
9380 dynamic_linker
="$host_os dld.sl"
9381 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
9382 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
9383 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9384 soname_spec
='${libname}${release}${shared_ext}$major'
9385 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9386 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
9390 dynamic_linker
="$host_os dld.sl"
9391 shlibpath_var
=SHLIB_PATH
9392 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
9393 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9394 soname_spec
='${libname}${release}${shared_ext}$major'
9397 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9398 postinstall_cmds
='chmod 555 $lib'
9405 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9406 soname_spec
='${libname}${release}${shared_ext}$major'
9407 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
9408 shlibpath_var
=LD_LIBRARY_PATH
9409 shlibpath_overrides_runpath
=no
9410 hardcode_into_libs
=yes
9413 irix5
* | irix6
* | nonstopux
*)
9415 nonstopux
*) version_type
=nonstopux
;;
9417 if test "$lt_cv_prog_gnu_ld" = yes; then
9425 soname_spec
='${libname}${release}${shared_ext}$major'
9426 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9428 irix5
* | nonstopux
*)
9432 case $LD in # libtool.m4 will add one of these switches to LD
9433 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
9434 libsuff
= shlibsuff
= libmagic
=32-bit;;
9435 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
9436 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
9437 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
9438 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
9439 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
9443 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
9444 shlibpath_overrides_runpath
=no
9445 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9446 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
9447 hardcode_into_libs
=yes
9450 # No shared lib support for Linux oldld, aout, or coff.
9451 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
9455 # This must be Linux ELF.
9456 linux
* | k
*bsd
*-gnu)
9460 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9461 soname_spec
='${libname}${release}${shared_ext}$major'
9462 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9463 shlibpath_var
=LD_LIBRARY_PATH
9464 shlibpath_overrides_runpath
=no
9465 # This implies no fast_install, which is unacceptable.
9466 # Some rework will be needed to allow for fast_install
9467 # before this can be enabled.
9468 hardcode_into_libs
=yes
9470 # Append ld.so.conf contents to the search path
9471 if test -f /etc
/ld.so.conf
; then
9472 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' ' '`
9473 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
9476 # We used to test for /lib/ld.so.1 and disable shared libraries on
9477 # powerpc, because MkLinux only supported shared libraries with the
9478 # GNU dynamic linker. Since this was broken with cross compilers,
9479 # most powerpc-linux boxes support dynamic linking these days and
9480 # people can always --disable-shared, the test was removed, and we
9481 # assume the GNU/Linux dynamic linker is in use.
9482 dynamic_linker
='GNU/Linux ld.so'
9489 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
9490 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9491 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9492 dynamic_linker
='NetBSD (a.out) ld.so'
9494 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9495 soname_spec
='${libname}${release}${shared_ext}$major'
9496 dynamic_linker
='NetBSD ld.elf_so'
9498 shlibpath_var
=LD_LIBRARY_PATH
9499 shlibpath_overrides_runpath
=yes
9500 hardcode_into_libs
=yes
9505 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9506 shlibpath_var
=LD_LIBRARY_PATH
9507 shlibpath_overrides_runpath
=yes
9514 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9515 soname_spec
='${libname}${release}${shared_ext}$major'
9516 shlibpath_var
=LD_LIBRARY_PATH
9517 shlibpath_overrides_runpath
=yes
9522 sys_lib_dlsearch_path_spec
="/usr/lib"
9524 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9526 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
9527 *) need_version
=no
;;
9529 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9530 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9531 shlibpath_var
=LD_LIBRARY_PATH
9532 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9534 openbsd2.
[89] | openbsd2.
[89].
*)
9535 shlibpath_overrides_runpath
=no
9538 shlibpath_overrides_runpath
=yes
9542 shlibpath_overrides_runpath
=yes
9547 libname_spec
='$name'
9550 library_names_spec
='$libname${shared_ext} $libname.a'
9551 dynamic_linker
='OS/2 ld.exe'
9552 shlibpath_var
=LIBPATH
9555 osf3
* | osf4
* | osf5
*)
9559 soname_spec
='${libname}${release}${shared_ext}$major'
9560 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9561 shlibpath_var
=LD_LIBRARY_PATH
9562 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9563 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
9574 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9575 soname_spec
='${libname}${release}${shared_ext}$major'
9576 shlibpath_var
=LD_LIBRARY_PATH
9577 shlibpath_overrides_runpath
=yes
9578 hardcode_into_libs
=yes
9579 # ldd complains unless libraries are executable
9580 postinstall_cmds
='chmod +x $lib'
9585 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9586 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9587 shlibpath_var
=LD_LIBRARY_PATH
9588 shlibpath_overrides_runpath
=yes
9589 if test "$with_gnu_ld" = yes; then
9597 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9598 soname_spec
='${libname}${release}${shared_ext}$major'
9599 shlibpath_var
=LD_LIBRARY_PATH
9600 case $host_vendor in
9602 shlibpath_overrides_runpath
=no
9604 export_dynamic_flag_spec
='${wl}-Blargedynsym'
9605 runpath_var
=LD_RUN_PATH
9613 shlibpath_overrides_runpath
=no
9614 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
9620 if test -d /usr
/nec
;then
9622 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9623 soname_spec
='$libname${shared_ext}.$major'
9624 shlibpath_var
=LD_LIBRARY_PATH
9628 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
9629 version_type
=freebsd-elf
9632 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9633 soname_spec
='${libname}${release}${shared_ext}$major'
9634 shlibpath_var
=LD_LIBRARY_PATH
9635 hardcode_into_libs
=yes
9636 if test "$with_gnu_ld" = yes; then
9637 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9638 shlibpath_overrides_runpath
=no
9640 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
9641 shlibpath_overrides_runpath
=yes
9644 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
9648 sys_lib_dlsearch_path_spec
='/usr/lib'
9653 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9654 soname_spec
='${libname}${release}${shared_ext}$major'
9655 shlibpath_var
=LD_LIBRARY_PATH
9662 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9663 echo "${ECHO_T}$dynamic_linker" >&6; }
9664 test "$dynamic_linker" = no
&& can_build_shared
=no
9666 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
9667 if test "$GCC" = yes; then
9668 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9671 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9672 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9674 if test -n "$hardcode_libdir_flag_spec" || \
9675 test -n "$runpath_var" || \
9676 test "X$hardcode_automatic" = "Xyes" ; then
9678 # We can hardcode non-existant directories.
9679 if test "$hardcode_direct" != no
&&
9680 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9681 # have to relink, otherwise we might link with an installed library
9682 # when we should be linking with a yet-to-be-installed one
9683 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9684 test "$hardcode_minus_L" != no
; then
9685 # Linking always hardcodes the temporary library directory.
9686 hardcode_action
=relink
9688 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9689 hardcode_action
=immediate
9692 # We cannot hardcode anything, or else we can only hardcode existing
9694 hardcode_action
=unsupported
9696 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9697 echo "${ECHO_T}$hardcode_action" >&6; }
9699 if test "$hardcode_action" = relink
; then
9700 # Fast installation is not supported
9701 enable_fast_install
=no
9702 elif test "$shlibpath_overrides_runpath" = yes ||
9703 test "$enable_shared" = no
; then
9704 # Fast installation is not necessary
9705 enable_fast_install
=needless
9710 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9711 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9712 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
9713 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
9714 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
9715 { echo "$as_me:$LINENO: result: yes" >&5
9716 echo "${ECHO_T}yes" >&6; }
9718 # FIXME - insert some real tests, host_os isn't really good enough
9721 if test -n "$STRIP" ; then
9722 striplib
="$STRIP -x"
9723 old_striplib
="$STRIP -S"
9724 { echo "$as_me:$LINENO: result: yes" >&5
9725 echo "${ECHO_T}yes" >&6; }
9727 { echo "$as_me:$LINENO: result: no" >&5
9728 echo "${ECHO_T}no" >&6; }
9732 { echo "$as_me:$LINENO: result: no" >&5
9733 echo "${ECHO_T}no" >&6; }
9738 if test "x$enable_dlopen" != xyes
; then
9739 enable_dlopen
=unknown
9740 enable_dlopen_self
=unknown
9741 enable_dlopen_self_static
=unknown
9748 lt_cv_dlopen
="load_add_on"
9750 lt_cv_dlopen_self
=yes
9754 lt_cv_dlopen
="LoadLibrary"
9759 lt_cv_dlopen
="dlopen"
9764 # if libdl is installed we need to link against it
9765 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9766 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9767 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9768 echo $ECHO_N "(cached) $ECHO_C" >&6
9770 ac_check_lib_save_LIBS
=$LIBS
9772 cat >conftest.
$ac_ext <<_ACEOF
9775 cat confdefs.h
>>conftest.
$ac_ext
9776 cat >>conftest.
$ac_ext <<_ACEOF
9777 /* end confdefs.h. */
9779 /* Override any GCC internal prototype to avoid an error.
9780 Use char because int might match the return type of a GCC
9781 builtin and then its argument prototype would still apply. */
9794 rm -f conftest.
$ac_objext conftest
$ac_exeext
9795 if { (ac_try
="$ac_link"
9797 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9798 *) ac_try_echo=$ac_try;;
9800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9801 (eval "$ac_link") 2>conftest.er1
9803 grep -v '^ *+' conftest.er1 >conftest.err
9805 cat conftest.err >&5
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); } && {
9808 test -z "$ac_c_werror_flag" ||
9809 test ! -s conftest.err
9810 } && test -s conftest$ac_exeext &&
9811 $as_test_x conftest$ac_exeext; then
9812 ac_cv_lib_dl_dlopen=yes
9814 echo "$as_me: failed program was:" >&5
9815 sed 's/^/| /' conftest.$ac_ext >&5
9817 ac_cv_lib_dl_dlopen=no
9820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9821 conftest$ac_exeext conftest.$ac_ext
9822 LIBS=$ac_check_lib_save_LIBS
9824 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9825 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9826 if test $ac_cv_lib_dl_dlopen = yes; then
9827 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9832 lt_cv_dlopen_self=yes
9839 { echo "$as_me:$LINENO: checking for shl_load" >&5
9840 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9841 if test "${ac_cv_func_shl_load+set}" = set; then
9842 echo $ECHO_N "(cached) $ECHO_C" >&6
9844 cat >conftest.$ac_ext <<_ACEOF
9847 cat confdefs.h >>conftest.$ac_ext
9848 cat >>conftest.$ac_ext <<_ACEOF
9849 /* end confdefs.h. */
9850 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9852 #define shl_load innocuous_shl_load
9854 /* System header to define __stub macros and hopefully few prototypes,
9855 which can conflict with char shl_load (); below.
9856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9857 <limits.h> exists even on freestanding compilers. */
9860 # include <limits.h>
9862 # include <assert.h>
9867 /* Override any GCC internal prototype to avoid an error.
9868 Use char because int might match the return type of a GCC
9869 builtin and then its argument prototype would still apply. */
9874 /* The GNU C library defines this for functions which it implements
9875 to always fail with ENOSYS. Some functions are actually named
9876 something starting with __ and the normal name is an alias. */
9877 #if defined __stub_shl_load || defined __stub___shl_load
9889 rm -f conftest.$ac_objext conftest$ac_exeext
9890 if { (ac_try="$ac_link"
9892 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9893 *) ac_try_echo
=$ac_try;;
9895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9896 (eval "$ac_link") 2>conftest.er1
9898 grep -v '^ *+' conftest.er1
>conftest.err
9900 cat conftest.err
>&5
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); } && {
9903 test -z "$ac_c_werror_flag" ||
9904 test ! -s conftest.err
9905 } && test -s conftest
$ac_exeext &&
9906 $as_test_x conftest
$ac_exeext; then
9907 ac_cv_func_shl_load
=yes
9909 echo "$as_me: failed program was:" >&5
9910 sed 's/^/| /' conftest.
$ac_ext >&5
9912 ac_cv_func_shl_load
=no
9915 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9916 conftest
$ac_exeext conftest.
$ac_ext
9918 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9919 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9920 if test $ac_cv_func_shl_load = yes; then
9921 lt_cv_dlopen
="shl_load"
9923 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9924 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9925 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9926 echo $ECHO_N "(cached) $ECHO_C" >&6
9928 ac_check_lib_save_LIBS
=$LIBS
9930 cat >conftest.
$ac_ext <<_ACEOF
9933 cat confdefs.h
>>conftest.
$ac_ext
9934 cat >>conftest.
$ac_ext <<_ACEOF
9935 /* end confdefs.h. */
9937 /* Override any GCC internal prototype to avoid an error.
9938 Use char because int might match the return type of a GCC
9939 builtin and then its argument prototype would still apply. */
9952 rm -f conftest.
$ac_objext conftest
$ac_exeext
9953 if { (ac_try
="$ac_link"
9955 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9956 *) ac_try_echo=$ac_try;;
9958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9959 (eval "$ac_link") 2>conftest.er1
9961 grep -v '^ *+' conftest.er1 >conftest.err
9963 cat conftest.err >&5
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); } && {
9966 test -z "$ac_c_werror_flag" ||
9967 test ! -s conftest.err
9968 } && test -s conftest$ac_exeext &&
9969 $as_test_x conftest$ac_exeext; then
9970 ac_cv_lib_dld_shl_load=yes
9972 echo "$as_me: failed program was:" >&5
9973 sed 's/^/| /' conftest.$ac_ext >&5
9975 ac_cv_lib_dld_shl_load=no
9978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9979 conftest$ac_exeext conftest.$ac_ext
9980 LIBS=$ac_check_lib_save_LIBS
9982 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9983 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9984 if test $ac_cv_lib_dld_shl_load = yes; then
9985 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9987 { echo "$as_me:$LINENO: checking for dlopen" >&5
9988 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9989 if test "${ac_cv_func_dlopen+set}" = set; then
9990 echo $ECHO_N "(cached) $ECHO_C" >&6
9992 cat >conftest.$ac_ext <<_ACEOF
9995 cat confdefs.h >>conftest.$ac_ext
9996 cat >>conftest.$ac_ext <<_ACEOF
9997 /* end confdefs.h. */
9998 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10000 #define dlopen innocuous_dlopen
10002 /* System header to define __stub macros and hopefully few prototypes,
10003 which can conflict with char dlopen (); below.
10004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10005 <limits.h> exists even on freestanding compilers. */
10008 # include <limits.h>
10010 # include <assert.h>
10015 /* Override any GCC internal prototype to avoid an error.
10016 Use char because int might match the return type of a GCC
10017 builtin and then its argument prototype would still apply. */
10022 /* The GNU C library defines this for functions which it implements
10023 to always fail with ENOSYS. Some functions are actually named
10024 something starting with __ and the normal name is an alias. */
10025 #if defined __stub_dlopen || defined __stub___dlopen
10037 rm -f conftest.$ac_objext conftest$ac_exeext
10038 if { (ac_try="$ac_link"
10039 case "(($ac_try" in
10040 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10041 *) ac_try_echo
=$ac_try;;
10043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10044 (eval "$ac_link") 2>conftest.er1
10046 grep -v '^ *+' conftest.er1
>conftest.err
10048 cat conftest.err
>&5
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); } && {
10051 test -z "$ac_c_werror_flag" ||
10052 test ! -s conftest.err
10053 } && test -s conftest
$ac_exeext &&
10054 $as_test_x conftest
$ac_exeext; then
10055 ac_cv_func_dlopen
=yes
10057 echo "$as_me: failed program was:" >&5
10058 sed 's/^/| /' conftest.
$ac_ext >&5
10060 ac_cv_func_dlopen
=no
10063 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10064 conftest
$ac_exeext conftest.
$ac_ext
10066 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10067 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10068 if test $ac_cv_func_dlopen = yes; then
10069 lt_cv_dlopen
="dlopen"
10071 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10072 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10073 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10074 echo $ECHO_N "(cached) $ECHO_C" >&6
10076 ac_check_lib_save_LIBS
=$LIBS
10078 cat >conftest.
$ac_ext <<_ACEOF
10081 cat confdefs.h
>>conftest.
$ac_ext
10082 cat >>conftest.
$ac_ext <<_ACEOF
10083 /* end confdefs.h. */
10085 /* Override any GCC internal prototype to avoid an error.
10086 Use char because int might match the return type of a GCC
10087 builtin and then its argument prototype would still apply. */
10100 rm -f conftest.
$ac_objext conftest
$ac_exeext
10101 if { (ac_try
="$ac_link"
10102 case "(($ac_try" in
10103 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10104 *) ac_try_echo=$ac_try;;
10106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10107 (eval "$ac_link") 2>conftest.er1
10109 grep -v '^ *+' conftest.er1 >conftest.err
10111 cat conftest.err >&5
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); } && {
10114 test -z "$ac_c_werror_flag" ||
10115 test ! -s conftest.err
10116 } && test -s conftest$ac_exeext &&
10117 $as_test_x conftest$ac_exeext; then
10118 ac_cv_lib_dl_dlopen=yes
10120 echo "$as_me: failed program was:" >&5
10121 sed 's/^/| /' conftest.$ac_ext >&5
10123 ac_cv_lib_dl_dlopen=no
10126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10127 conftest$ac_exeext conftest.$ac_ext
10128 LIBS=$ac_check_lib_save_LIBS
10130 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10131 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10132 if test $ac_cv_lib_dl_dlopen = yes; then
10133 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10135 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10136 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10137 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10138 echo $ECHO_N "(cached) $ECHO_C" >&6
10140 ac_check_lib_save_LIBS=$LIBS
10141 LIBS="-lsvld $LIBS"
10142 cat >conftest.$ac_ext <<_ACEOF
10145 cat confdefs.h >>conftest.$ac_ext
10146 cat >>conftest.$ac_ext <<_ACEOF
10147 /* end confdefs.h. */
10149 /* Override any GCC internal prototype to avoid an error.
10150 Use char because int might match the return type of a GCC
10151 builtin and then its argument prototype would still apply. */
10164 rm -f conftest.$ac_objext conftest$ac_exeext
10165 if { (ac_try="$ac_link"
10166 case "(($ac_try" in
10167 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10168 *) ac_try_echo
=$ac_try;;
10170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10171 (eval "$ac_link") 2>conftest.er1
10173 grep -v '^ *+' conftest.er1
>conftest.err
10175 cat conftest.err
>&5
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); } && {
10178 test -z "$ac_c_werror_flag" ||
10179 test ! -s conftest.err
10180 } && test -s conftest
$ac_exeext &&
10181 $as_test_x conftest
$ac_exeext; then
10182 ac_cv_lib_svld_dlopen
=yes
10184 echo "$as_me: failed program was:" >&5
10185 sed 's/^/| /' conftest.
$ac_ext >&5
10187 ac_cv_lib_svld_dlopen
=no
10190 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10191 conftest
$ac_exeext conftest.
$ac_ext
10192 LIBS
=$ac_check_lib_save_LIBS
10194 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10195 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10196 if test $ac_cv_lib_svld_dlopen = yes; then
10197 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
10199 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10200 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10201 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10202 echo $ECHO_N "(cached) $ECHO_C" >&6
10204 ac_check_lib_save_LIBS
=$LIBS
10206 cat >conftest.
$ac_ext <<_ACEOF
10209 cat confdefs.h
>>conftest.
$ac_ext
10210 cat >>conftest.
$ac_ext <<_ACEOF
10211 /* end confdefs.h. */
10213 /* Override any GCC internal prototype to avoid an error.
10214 Use char because int might match the return type of a GCC
10215 builtin and then its argument prototype would still apply. */
10223 return dld_link ();
10228 rm -f conftest.
$ac_objext conftest
$ac_exeext
10229 if { (ac_try
="$ac_link"
10230 case "(($ac_try" in
10231 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10232 *) ac_try_echo=$ac_try;;
10234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10235 (eval "$ac_link") 2>conftest.er1
10237 grep -v '^ *+' conftest.er1 >conftest.err
10239 cat conftest.err >&5
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); } && {
10242 test -z "$ac_c_werror_flag" ||
10243 test ! -s conftest.err
10244 } && test -s conftest$ac_exeext &&
10245 $as_test_x conftest$ac_exeext; then
10246 ac_cv_lib_dld_dld_link=yes
10248 echo "$as_me: failed program was:" >&5
10249 sed 's/^/| /' conftest.$ac_ext >&5
10251 ac_cv_lib_dld_dld_link=no
10254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10255 conftest$ac_exeext conftest.$ac_ext
10256 LIBS=$ac_check_lib_save_LIBS
10258 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10259 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10260 if test $ac_cv_lib_dld_dld_link = yes; then
10261 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10282 if test "x$lt_cv_dlopen" != xno; then
10288 case $lt_cv_dlopen in
10290 save_CPPFLAGS="$CPPFLAGS"
10291 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10293 save_LDFLAGS="$LDFLAGS"
10294 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10297 LIBS="$lt_cv_dlopen_libs $LIBS"
10299 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10300 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10301 if test "${lt_cv_dlopen_self+set}" = set; then
10302 echo $ECHO_N "(cached) $ECHO_C" >&6
10304 if test "$cross_compiling" = yes; then :
10305 lt_cv_dlopen_self=cross
10307 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10308 lt_status=$lt_dlunknown
10309 cat > conftest.$ac_ext <<EOF
10310 #line 10310 "configure"
10311 #include "confdefs.h"
10320 # define LT_DLGLOBAL RTLD_GLOBAL
10323 # define LT_DLGLOBAL DL_GLOBAL
10325 # define LT_DLGLOBAL 0
10329 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10330 find out it does not work in some platform. */
10331 #ifndef LT_DLLAZY_OR_NOW
10333 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10336 # define LT_DLLAZY_OR_NOW DL_LAZY
10339 # define LT_DLLAZY_OR_NOW RTLD_NOW
10342 # define LT_DLLAZY_OR_NOW DL_NOW
10344 # define LT_DLLAZY_OR_NOW 0
10352 extern "C" void exit (int);
10355 void fnord() { int i=42;}
10358 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10359 int status = $lt_dlunknown;
10363 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10364 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10365 /* dlclose (self); */
10373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10374 (eval $ac_link) 2>&5
10376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10378 (./conftest; exit; ) >&5 2>/dev/null
10380 case x$lt_status in
10381 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10382 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10383 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10386 # compilation failed
10387 lt_cv_dlopen_self=no
10394 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10395 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10397 if test "x$lt_cv_dlopen_self" = xyes; then
10398 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10399 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10400 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10401 if test "${lt_cv_dlopen_self_static+set}" = set; then
10402 echo $ECHO_N "(cached) $ECHO_C" >&6
10404 if test "$cross_compiling" = yes; then :
10405 lt_cv_dlopen_self_static=cross
10407 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10408 lt_status=$lt_dlunknown
10409 cat > conftest.$ac_ext <<EOF
10410 #line 10410 "configure"
10411 #include "confdefs.h"
10420 # define LT_DLGLOBAL RTLD_GLOBAL
10423 # define LT_DLGLOBAL DL_GLOBAL
10425 # define LT_DLGLOBAL 0
10429 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10430 find out it does not work in some platform. */
10431 #ifndef LT_DLLAZY_OR_NOW
10433 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10436 # define LT_DLLAZY_OR_NOW DL_LAZY
10439 # define LT_DLLAZY_OR_NOW RTLD_NOW
10442 # define LT_DLLAZY_OR_NOW DL_NOW
10444 # define LT_DLLAZY_OR_NOW 0
10452 extern "C" void exit (int);
10455 void fnord() { int i=42;}
10458 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10459 int status = $lt_dlunknown;
10463 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10464 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10465 /* dlclose (self); */
10473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10474 (eval $ac_link) 2>&5
10476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10478 (./conftest; exit; ) >&5 2>/dev/null
10480 case x$lt_status in
10481 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10482 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10483 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10486 # compilation failed
10487 lt_cv_dlopen_self_static=no
10494 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10495 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10498 CPPFLAGS="$save_CPPFLAGS"
10499 LDFLAGS="$save_LDFLAGS"
10504 case $lt_cv_dlopen_self in
10505 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10506 *) enable_dlopen_self=unknown ;;
10509 case $lt_cv_dlopen_self_static in
10510 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10511 *) enable_dlopen_self_static=unknown ;;
10516 # Report which library types will actually be built
10517 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10518 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10519 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10520 echo "${ECHO_T}$can_build_shared" >&6; }
10522 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10523 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10524 test "$can_build_shared" = "no" && enable_shared=no
10526 # On AIX, shared libraries and static libraries use the same namespace, and
10527 # are all built from PIC.
10530 test "$enable_shared" = yes && enable_static=no
10531 if test -n "$RANLIB"; then
10532 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10533 postinstall_cmds='$RANLIB $lib'
10538 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10539 test "$enable_shared" = yes && enable_static=no
10543 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10544 echo "${ECHO_T}$enable_shared" >&6; }
10546 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10547 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10548 # Make sure either enable_shared or enable_static is yes.
10549 test "$enable_shared" = yes || enable_static=yes
10550 { echo "$as_me:$LINENO: result: $enable_static" >&5
10551 echo "${ECHO_T}$enable_static" >&6; }
10553 # The else clause should only fire when bootstrapping the
10554 # libtool distribution, otherwise you forgot to ship ltmain.sh
10555 # with your package, and you will get complaints that there are
10556 # no rules to generate ltmain.sh.
10557 if test -f "$ltmain"; then
10558 # See if we are running on zsh, and set the options which allow our commands through
10559 # without removal of \ escapes.
10560 if test -n "${ZSH_VERSION+set}" ; then
10561 setopt NO_GLOB_SUBST
10563 # Now quote all the things that may contain metacharacters while being
10564 # careful not to overquote the AC_SUBSTed values. We take copies of the
10565 # variables and quote the copies for generation of the libtool script.
10566 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10568 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10569 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10570 deplibs_check_method reload_flag reload_cmds need_locks \
10571 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10572 lt_cv_sys_global_symbol_to_c_name_address \
10573 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10574 old_postinstall_cmds old_postuninstall_cmds \
10578 lt_prog_compiler_wl \
10579 lt_prog_compiler_pic \
10580 lt_prog_compiler_static \
10581 lt_prog_compiler_no_builtin_flag \
10582 export_dynamic_flag_spec \
10583 thread_safe_flag_spec \
10584 whole_archive_flag_spec \
10585 enable_shared_with_static_runtimes \
10587 old_archive_from_new_cmds \
10592 compiler_lib_search_path \
10594 archive_expsym_cmds \
10596 postuninstall_cmds \
10597 old_archive_from_expsyms_cmds \
10598 allow_undefined_flag \
10599 no_undefined_flag \
10600 export_symbols_cmds \
10601 hardcode_libdir_flag_spec \
10602 hardcode_libdir_flag_spec_ld \
10603 hardcode_libdir_separator \
10604 hardcode_automatic \
10606 module_expsym_cmds \
10607 lt_cv_prog_compiler_c_o \
10610 include_expsyms; do
10613 old_archive_cmds | \
10614 old_archive_from_new_cmds | \
10616 archive_expsym_cmds | \
10618 module_expsym_cmds | \
10619 old_archive_from_expsyms_cmds | \
10620 export_symbols_cmds | \
10621 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10622 postinstall_cmds | postuninstall_cmds | \
10623 old_postinstall_cmds | old_postuninstall_cmds | \
10624 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10625 # Double-quote double-evaled strings.
10626 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$double_quote_subst\" -e \"\
$sed_quote_subst\" -e \"\
$delay_variable_subst\"\
`\\\""
10629 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$sed_quote_subst\"\
`\\\""
10635 *'\$0 --fallback-echo"')
10636 lt_echo=`$echo "X$lt_echo" |
$Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10640 cfgfile="${ofile}T"
10641 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10643 { echo "$as_me:$LINENO: creating $ofile" >&5
10644 echo "$as_me: creating $ofile" >&6;}
10646 cat <<__EOF__ >> "$cfgfile"
10649 # `$echo "$cfgfile" |
sed 's%^.*/%%'` - Provide generalized library-building support services.
10650 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10651 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10653 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10654 # Free Software Foundation, Inc.
10656 # This file is part of GNU Libtool:
10657 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10659 # This program is free software; you can redistribute it and/or modify
10660 # it under the terms of the GNU General Public License as published by
10661 # the Free Software Foundation; either version 2 of the License, or
10662 # (at your option) any later version.
10664 # This program is distributed in the hope that it will be useful, but
10665 # WITHOUT ANY WARRANTY; without even the implied warranty of
10666 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10667 # General Public License for more details.
10669 # You should have received a copy of the GNU General Public License
10670 # along with this program; if not, write to the Free Software
10671 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10673 # As a special exception to the GNU General Public License, if you
10674 # distribute this file as part of a program that contains a
10675 # configuration script generated by Autoconf, you may include it under
10676 # the same distribution terms that you use for the rest of that program.
10678 # A sed program that does not truncate output.
10681 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10682 Xsed="$SED -e 1s/^X//"
10684 # The HP-UX ksh and POSIX shell print the target directory to stdout
10685 # if CDPATH is set.
10686 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10688 # The names of the tagged configurations supported by this script.
10691 # ### BEGIN LIBTOOL CONFIG
10693 # Libtool was configured on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
10695 # Shell to use when invoking shell scripts.
10698 # Whether or not to build shared libraries.
10699 build_libtool_libs=$enable_shared
10701 # Whether or not to build static libraries.
10702 build_old_libs=$enable_static
10704 # Whether or not to add -lc for building shared libraries.
10705 build_libtool_need_lc=$archive_cmds_need_lc
10707 # Whether or not to disallow shared libs when runtime libs are static
10708 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10710 # Whether or not to optimize for fast installation.
10711 fast_install=$enable_fast_install
10714 host_alias=$host_alias
10718 # The build system.
10719 build_alias=$build_alias
10723 # An echo program that does not interpret backslashes.
10728 AR_FLAGS=$lt_AR_FLAGS
10733 # LTCC compiler flags.
10734 LTCFLAGS=$lt_LTCFLAGS
10736 # A language-specific compiler.
10739 # Is the compiler the GNU C compiler?
10745 # The linker used to build libraries.
10748 # Whether we need hard or soft links.
10751 # A BSD-compatible nm program.
10754 # A symbol stripping program
10757 # Used to examine libraries when file_magic_cmd begins "file"
10758 MAGIC_CMD=$MAGIC_CMD
10760 # Used on cygwin: DLL creation program.
10763 # Used on cygwin: object dumper.
10766 # Used on cygwin: assembler.
10769 # The name of the directory that contains temporary libtool files.
10772 # How to create reloadable object files.
10773 reload_flag=$lt_reload_flag
10774 reload_cmds=$lt_reload_cmds
10776 # How to pass a linker flag through the compiler.
10777 wl=$lt_lt_prog_compiler_wl
10779 # Object file suffix (normally "o").
10780 objext="$ac_objext"
10782 # Old archive suffix (normally "a").
10785 # Shared library suffix (normally ".so").
10786 shrext_cmds='$shrext_cmds'
10788 # Executable file suffix (normally "").
10791 # Additional compiler flags for building library objects.
10792 pic_flag=$lt_lt_prog_compiler_pic
10795 # What is the maximum length of a command?
10796 max_cmd_len=$lt_cv_sys_max_cmd_len
10798 # Does compiler simultaneously support -c and -o options?
10799 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10801 # Must we lock files when doing compilation?
10802 need_locks=$lt_need_locks
10804 # Do we need the lib prefix for modules?
10805 need_lib_prefix=$need_lib_prefix
10807 # Do we need a version for libraries?
10808 need_version=$need_version
10810 # Whether dlopen is supported.
10811 dlopen_support=$enable_dlopen
10813 # Whether dlopen of programs is supported.
10814 dlopen_self=$enable_dlopen_self
10816 # Whether dlopen of statically linked programs is supported.
10817 dlopen_self_static=$enable_dlopen_self_static
10819 # Compiler flag to prevent dynamic linking.
10820 link_static_flag=$lt_lt_prog_compiler_static
10822 # Compiler flag to turn off builtin functions.
10823 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10825 # Compiler flag to allow reflexive dlopens.
10826 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10828 # Compiler flag to generate shared objects directly from archives.
10829 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10831 # Compiler flag to generate thread-safe objects.
10832 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10834 # Library versioning type.
10835 version_type=$version_type
10837 # Format of library name prefix.
10838 libname_spec=$lt_libname_spec
10840 # List of archive names. First name is the real one, the rest are links.
10841 # The last name is the one that the linker finds with -lNAME.
10842 library_names_spec=$lt_library_names_spec
10844 # The coded name of the library, if different from the real name.
10845 soname_spec=$lt_soname_spec
10847 # Commands used to build and install an old-style archive.
10849 old_archive_cmds=$lt_old_archive_cmds
10850 old_postinstall_cmds=$lt_old_postinstall_cmds
10851 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10853 # Create an old-style archive from a shared archive.
10854 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10856 # Create a temporary old-style archive to link instead of a shared archive.
10857 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10859 # Commands used to build and install a shared archive.
10860 archive_cmds=$lt_archive_cmds
10861 archive_expsym_cmds=$lt_archive_expsym_cmds
10862 postinstall_cmds=$lt_postinstall_cmds
10863 postuninstall_cmds=$lt_postuninstall_cmds
10865 # Commands used to build a loadable module (assumed same as above if empty)
10866 module_cmds=$lt_module_cmds
10867 module_expsym_cmds=$lt_module_expsym_cmds
10869 # Commands to strip libraries.
10870 old_striplib=$lt_old_striplib
10871 striplib=$lt_striplib
10873 # Dependencies to place before the objects being linked to create a
10875 predep_objects=$lt_predep_objects
10877 # Dependencies to place after the objects being linked to create a
10879 postdep_objects=$lt_postdep_objects
10881 # Dependencies to place before the objects being linked to create a
10883 predeps=$lt_predeps
10885 # Dependencies to place after the objects being linked to create a
10887 postdeps=$lt_postdeps
10889 # The library search path used internally by the compiler when linking
10890 # a shared library.
10891 compiler_lib_search_path=$lt_compiler_lib_search_path
10893 # Method to check whether dependent libraries are shared objects.
10894 deplibs_check_method=$lt_deplibs_check_method
10896 # Command to use when deplibs_check_method == file_magic.
10897 file_magic_cmd=$lt_file_magic_cmd
10899 # Flag that allows shared libraries with undefined symbols to be built.
10900 allow_undefined_flag=$lt_allow_undefined_flag
10902 # Flag that forces no undefined symbols.
10903 no_undefined_flag=$lt_no_undefined_flag
10905 # Commands used to finish a libtool library installation in a directory.
10906 finish_cmds=$lt_finish_cmds
10908 # Same as above, but a single script fragment to be evaled but not shown.
10909 finish_eval=$lt_finish_eval
10911 # Take the output of nm and produce a listing of raw symbols and C names.
10912 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10914 # Transform the output of nm in a proper C declaration
10915 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10917 # Transform the output of nm in a C name address pair
10918 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10920 # This is the shared library runtime path variable.
10921 runpath_var=$runpath_var
10923 # This is the shared library path variable.
10924 shlibpath_var=$shlibpath_var
10926 # Is shlibpath searched before the hard-coded library search path?
10927 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10929 # How to hardcode a shared library path into an executable.
10930 hardcode_action=$hardcode_action
10932 # Whether we should hardcode library paths into libraries.
10933 hardcode_into_libs=$hardcode_into_libs
10935 # Flag to hardcode \$libdir into a binary during linking.
10936 # This must work even if \$libdir does not exist.
10937 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10939 # If ld is used when linking, flag to hardcode \$libdir into
10940 # a binary during linking. This must work even if \$libdir does
10942 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10944 # Whether we need a single -rpath flag with a separated argument.
10945 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10947 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10948 # resulting binary.
10949 hardcode_direct=$hardcode_direct
10951 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10952 # resulting binary.
10953 hardcode_minus_L=$hardcode_minus_L
10955 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10956 # the resulting binary.
10957 hardcode_shlibpath_var=$hardcode_shlibpath_var
10959 # Set to yes if building a shared library automatically hardcodes DIR into the library
10960 # and all subsequent libraries and executables linked against it.
10961 hardcode_automatic=$hardcode_automatic
10963 # Variables whose values should be saved in libtool wrapper scripts and
10964 # restored at relink time.
10965 variables_saved_for_relink="$variables_saved_for_relink"
10967 # Whether libtool must link a program against all its dependency libraries.
10968 link_all_deplibs=$link_all_deplibs
10970 # Compile-time system search path for libraries
10971 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10973 # Run-time system search path for libraries
10974 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10976 # Fix the shell variable \$srcfile for the compiler.
10977 fix_srcfile_path=$lt_fix_srcfile_path
10979 # Set to yes if exported symbols are required.
10980 always_export_symbols=$always_export_symbols
10982 # The commands to list exported symbols.
10983 export_symbols_cmds=$lt_export_symbols_cmds
10985 # The commands to extract the exported symbol list from a shared archive.
10986 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10988 # Symbols that should not be listed in the preloaded symbols.
10989 exclude_expsyms=$lt_exclude_expsyms
10991 # Symbols that must always be exported.
10992 include_expsyms=$lt_include_expsyms
10994 # ### END LIBTOOL CONFIG
11001 cat <<\EOF >> "$cfgfile"
11003 # AIX sometimes has problems with the GCC collect2 program. For some
11004 # reason, if we set the COLLECT_NAMES environment variable, the problems
11005 # vanish in a puff of smoke.
11006 if test "X${COLLECT_NAMES+set}" != Xset; then
11008 export COLLECT_NAMES
11014 # We use sed instead of cat because bash on DJGPP gets confused if
11015 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11016 # text mode, it properly converts lines to CR/LF. This bash problem
11017 # is reportedly fixed, but why not run on old versions too?
11018 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11020 mv -f "$cfgfile" "$ofile" || \
11021 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11025 # If there is no Makefile yet, we rely on a make rule to execute
11026 # `config.status
--recheck' to rerun these tests and create the
11027 # libtool script then.
11028 ltmain_in=`echo $ltmain | sed -e 's
/\.sh$
/.in
/'`
11029 if test -f "$ltmain_in"; then
11030 test -f Makefile && make "$ltmain"
11036 ac_cpp='$CPP $CPPFLAGS'
11037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
11038 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
11039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11044 # Check whether --with-tags was given.
11045 if test "${with_tags+set}" = set; then
11046 withval=$with_tags; tagnames="$withval"
11050 if test -f "$ltmain" && test -n "$tagnames"; then
11051 if test ! -f "${ofile}"; then
11052 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist
" >&5
11053 echo "$as_me: WARNING
: output
file \
`$ofile' does not exist" >&2;}
11056 if test -z "$LTCC"; then
11057 eval "`$SHELL ${ofile} --config |
grep '^LTCC='`"
11058 if test -z "$LTCC"; then
11059 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11060 echo "$as_me: WARNING: output file \`$ofile' does not
look like a libtool
script" >&2;}
11062 { echo "$as_me:$LINENO: WARNING
: using \
`LTCC=$LTCC', extracted from \`$ofile'" >&5
11063 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \
`$ofile'" >&2;}
11066 if test -z "$LTCFLAGS"; then
11067 eval "`$SHELL ${ofile} --config |
grep '^LTCFLAGS='`"
11070 # Extract list of available tagged configurations in $ofile.
11071 # Note that this assumes the entire list is on one line.
11072 available_tags=`grep "^available_tags=" "${ofile}" |
$SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11074 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11075 for tagname in $tagnames; do
11077 # Check whether tagname contains only valid characters
11078 case `$echo "X$tagname" |
$Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11080 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11081 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11082 { (exit 1); exit 1; }; }
11086 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11088 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11089 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11090 { (exit 1); exit 1; }; }
11093 # Update the list of available tags.
11094 if test -n "$tagname"; then
11095 echo appending configuration tag \"$tagname\" to $ofile
11099 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11100 ( (test "X$CXX" = "Xg++" && `g
++ -v >/dev
/null
2>&1` ) ||
11101 (test "X$CXX" != "Xg++"))) ; then
11103 ac_cpp='$CXXCPP $CPPFLAGS'
11104 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11105 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11106 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11111 archive_cmds_need_lc_CXX=no
11112 allow_undefined_flag_CXX=
11113 always_export_symbols_CXX=no
11114 archive_expsym_cmds_CXX=
11115 export_dynamic_flag_spec_CXX=
11116 hardcode_direct_CXX=no
11117 hardcode_libdir_flag_spec_CXX=
11118 hardcode_libdir_flag_spec_ld_CXX=
11119 hardcode_libdir_separator_CXX=
11120 hardcode_minus_L_CXX=no
11121 hardcode_shlibpath_var_CXX=unsupported
11122 hardcode_automatic_CXX=no
11124 module_expsym_cmds_CXX=
11125 link_all_deplibs_CXX=unknown
11126 old_archive_cmds_CXX=$old_archive_cmds
11127 no_undefined_flag_CXX=
11128 whole_archive_flag_spec_CXX=
11129 enable_shared_with_static_runtimes_CXX=no
11131 # Dependencies to place before and after the object being linked:
11132 predep_objects_CXX=
11133 postdep_objects_CXX=
11136 compiler_lib_search_path_CXX=
11138 # Source file extension for C++ test sources.
11141 # Object file extension for compiled C++ test sources.
11145 # Code to be used in simple compile tests
11146 lt_simple_compile_test_code="int some_variable = 0;"
11148 # Code to be used in simple link tests
11149 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11151 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11153 # If no C compiler was specified, use CC.
11156 # If no C compiler flags were specified, use CFLAGS.
11157 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11159 # Allow CC to be a program name with arguments.
11163 # save warnings/boilerplate of simple test code
11164 ac_outfile=conftest.$ac_objext
11165 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11166 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11167 _lt_compiler_boilerplate=`cat conftest.err
`
11170 ac_outfile=conftest.$ac_objext
11171 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11172 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11173 _lt_linker_boilerplate=`cat conftest.err
`
11177 # Allow CC to be a program name with arguments.
11182 lt_save_with_gnu_ld=$with_gnu_ld
11183 lt_save_path_LD=$lt_cv_path_LD
11184 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11185 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11187 $as_unset lt_cv_prog_gnu_ld
11189 if test -n "${lt_cv_path_LDCXX+set}"; then
11190 lt_cv_path_LD=$lt_cv_path_LDCXX
11192 $as_unset lt_cv_path_LD
11194 test -z "${LDCXX+set}" || LD=$LDCXX
11198 for cc_temp in $compiler""; do
11200 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11201 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11206 cc_basename=`$echo "X$cc_temp" |
$Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11209 # We don't want -fno-exception wen compiling C++ code, so set the
11210 # no_builtin_flag separately
11211 if test "$GXX" = yes; then
11212 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11214 lt_prog_compiler_no_builtin_flag_CXX=
11217 if test "$GXX" = yes; then
11218 # Set up default GNU C++ configuration
11221 # Check whether --with-gnu-ld was given.
11222 if test "${with_gnu_ld+set}" = set; then
11223 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11229 if test "$GCC" = yes; then
11230 # Check if gcc -print-prog-name=ld gives a path.
11231 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11232 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11235 # gcc leaves a trailing carriage return which upsets mingw
11236 ac_prog=`($CC -print-prog-name=ld
) 2>&5 |
tr -d '\015'` ;;
11238 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
11241 # Accept absolute paths.
11243 re_direlt='/[^/][^/]*/\.\./'
11244 # Canonicalize the pathname of ld
11245 ac_prog=`echo $ac_prog|
$SED 's%\\\\%/%g'`
11246 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11247 ac_prog=`echo $ac_prog|
$SED "s%$re_direlt%/%"`
11249 test -z "$LD" && LD="$ac_prog"
11252 # If it fails, then pretend we aren't using GCC.
11256 # If it is relative, then search for the first ld in PATH.
11257 with_gnu_ld=unknown
11260 elif test "$with_gnu_ld" = yes; then
11261 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11262 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11264 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11265 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11267 if test "${lt_cv_path_LD+set}" = set; then
11268 echo $ECHO_N "(cached) $ECHO_C" >&6
11270 if test -z "$LD"; then
11271 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11272 for ac_dir in $PATH; do
11274 test -z "$ac_dir" && ac_dir=.
11275 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11276 lt_cv_path_LD="$ac_dir/$ac_prog"
11277 # Check to see if the program is GNU ld. I'd rather use --version,
11278 # but apparently some variants of GNU ld only accept -v.
11279 # Break only if it was the GNU/non-GNU ld that we prefer.
11280 case `"$lt_cv_path_LD" -v 2>&1 </dev
/null
` in
11281 *GNU* | *'with BFD'*)
11282 test "$with_gnu_ld" != no && break
11285 test "$with_gnu_ld" != yes && break
11292 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11296 LD="$lt_cv_path_LD"
11297 if test -n "$LD"; then
11298 { echo "$as_me:$LINENO: result: $LD" >&5
11299 echo "${ECHO_T}$LD" >&6; }
11301 { echo "$as_me:$LINENO: result: no" >&5
11302 echo "${ECHO_T}no" >&6; }
11304 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11305 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11306 { (exit 1); exit 1; }; }
11307 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11308 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11309 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11310 echo $ECHO_N "(cached) $ECHO_C" >&6
11312 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11313 case `$LD -v 2>&1 </dev
/null
` in
11314 *GNU* | *'with BFD'*)
11315 lt_cv_prog_gnu_ld=yes
11318 lt_cv_prog_gnu_ld=no
11322 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11323 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11324 with_gnu_ld=$lt_cv_prog_gnu_ld
11328 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11329 # archiving commands below assume that GNU ld is being used.
11330 if test "$with_gnu_ld" = yes; then
11331 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11332 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'
11334 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11335 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11337 # If archive_cmds runs LD, not CC, wlarc should be empty
11338 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11339 # investigate it a little bit more. (MM)
11342 # ancient GNU ld didn't support --whole-archive et. al.
11343 if eval "`$CC -print-prog-name=ld
` --help 2>&1" | \
11344 grep 'no-whole-archive' > /dev/null; then
11345 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11347 whole_archive_flag_spec_CXX=
11353 # A generic and very simple default shared library creation
11354 # command for GNU C++ for the case where it uses the native
11355 # linker, instead of GNU ld. If possible, this setting should
11356 # overridden to take advantage of the native linker features on
11357 # the platform it is being used on.
11358 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11361 # Commands to make compiler produce verbose output that lists
11362 # what "hidden" libraries, object files and flags are used when
11363 # linking a shared library.
11364 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11372 # PORTME: fill in a description of your system's C++ link characteristics
11373 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11374 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11378 # FIXME: insert proper C++ library support
11382 if test "$host_cpu" = ia64; then
11383 # On IA64, the linker does run time linking by default, so we don't
11384 # have to do anything special.
11385 aix_use_runtimelinking=no
11386 exp_sym_flag='-Bexport'
11389 aix_use_runtimelinking=no
11391 # Test if we are trying to use run time linking or normal
11392 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11393 # need to do runtime linking.
11394 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11395 for ld_flag in $LDFLAGS; do
11398 aix_use_runtimelinking=yes
11406 exp_sym_flag='-bexport'
11407 no_entry_flag='-bnoentry'
11410 # When large executables or shared objects are built, AIX ld can
11411 # have problems creating the table of contents. If linking a library
11412 # or program results in "error TOC overflow" add -mminimal-toc to
11413 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11414 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11416 archive_cmds_CXX=''
11417 hardcode_direct_CXX=yes
11418 hardcode_libdir_separator_CXX=':'
11419 link_all_deplibs_CXX=yes
11421 if test "$GXX" = yes; then
11422 case $host_os in aix4.[012]|aix4.[012].*)
11423 # We only want to do this on AIX 4.2 and lower, the check
11424 # below for broken collect2 doesn't work under 4.3+
11425 collect2name=`${CC} -print-prog-name=collect2
`
11426 if test -f "$collect2name" && \
11427 strings "$collect2name" | grep resolve_lib_name >/dev/null
11429 # We have reworked collect2
11432 # We have old collect2
11433 hardcode_direct_CXX=unsupported
11434 # It fails to find uninstalled libraries when the uninstalled
11435 # path is not listed in the libpath. Setting hardcode_minus_L
11436 # to unsupported forces relinking
11437 hardcode_minus_L_CXX=yes
11438 hardcode_libdir_flag_spec_CXX='-L$libdir'
11439 hardcode_libdir_separator_CXX=
11443 shared_flag='-shared'
11444 if test "$aix_use_runtimelinking" = yes; then
11445 shared_flag="$shared_flag "'${wl}-G'
11449 if test "$host_cpu" = ia64; then
11450 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11451 # chokes on -Wl,-G. The following line is correct:
11454 if test "$aix_use_runtimelinking" = yes; then
11455 shared_flag='${wl}-G'
11457 shared_flag='${wl}-bM:SRE'
11462 # It seems that -bexpall does not export symbols beginning with
11463 # underscore (_), so it is better to generate a list of symbols to export.
11464 always_export_symbols_CXX=yes
11465 if test "$aix_use_runtimelinking" = yes; then
11466 # Warning - without using the other runtime loading flags (-brtl),
11467 # -berok will link without error, but may produce a broken library.
11468 allow_undefined_flag_CXX='-berok'
11469 # Determine the default libpath from the value encoded in an empty executable.
11470 cat >conftest.$ac_ext <<_ACEOF
11473 cat confdefs.h >>conftest.$ac_ext
11474 cat >>conftest.$ac_ext <<_ACEOF
11475 /* end confdefs.h. */
11485 rm -f conftest.$ac_objext conftest$ac_exeext
11486 if { (ac_try="$ac_link"
11487 case "(($ac_try" in
11488 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11489 *) ac_try_echo
=$ac_try;;
11491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11492 (eval "$ac_link") 2>conftest.er1
11494 grep -v '^ *+' conftest.er1
>conftest.err
11496 cat conftest.err
>&5
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); } && {
11499 test -z "$ac_cxx_werror_flag" ||
11500 test ! -s conftest.err
11501 } && test -s conftest
$ac_exeext &&
11502 $as_test_x conftest
$ac_exeext; then
11504 lt_aix_libpath_sed
='
11505 /Import File Strings/,/^$/ {
11511 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11512 # Check for a 64-bit object if we didn't find anything.
11513 if test -z "$aix_libpath"; then
11514 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11517 echo "$as_me: failed program was:" >&5
11518 sed 's/^/| /' conftest.
$ac_ext >&5
11523 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11524 conftest
$ac_exeext conftest.
$ac_ext
11525 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
11527 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
11529 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"
11531 if test "$host_cpu" = ia64
; then
11532 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
11533 allow_undefined_flag_CXX
="-z nodefs"
11534 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"
11536 # Determine the default libpath from the value encoded in an empty executable.
11537 cat >conftest.
$ac_ext <<_ACEOF
11540 cat confdefs.h
>>conftest.
$ac_ext
11541 cat >>conftest.
$ac_ext <<_ACEOF
11542 /* end confdefs.h. */
11552 rm -f conftest.
$ac_objext conftest
$ac_exeext
11553 if { (ac_try
="$ac_link"
11554 case "(($ac_try" in
11555 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11556 *) ac_try_echo=$ac_try;;
11558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11559 (eval "$ac_link") 2>conftest.er1
11561 grep -v '^ *+' conftest.er1 >conftest.err
11563 cat conftest.err >&5
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); } && {
11566 test -z "$ac_cxx_werror_flag" ||
11567 test ! -s conftest.err
11568 } && test -s conftest$ac_exeext &&
11569 $as_test_x conftest$ac_exeext; then
11571 lt_aix_libpath_sed='
11572 /Import File Strings/,/^$/ {
11578 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
11579 # Check for a 64-bit object if we didn't find anything.
11580 if test -z "$aix_libpath"; then
11581 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
11584 echo "$as_me: failed program was:" >&5
11585 sed 's/^/| /' conftest.$ac_ext >&5
11590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11591 conftest$ac_exeext conftest.$ac_ext
11592 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11594 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11595 # Warning - without using the other run time loading flags,
11596 # -berok will link without error, but may produce a broken library.
11597 no_undefined_flag_CXX=' ${wl}-bernotok'
11598 allow_undefined_flag_CXX=' ${wl}-berok'
11599 # Exported symbols can be pulled into shared objects from archives
11600 whole_archive_flag_spec_CXX='$convenience'
11601 archive_cmds_need_lc_CXX=yes
11602 # This is similar to how AIX traditionally builds its shared libraries.
11603 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'
11609 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11610 allow_undefined_flag_CXX=unsupported
11611 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11612 # support --undefined. This deserves some investigation. FIXME
11613 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11620 case $cc_basename in
11622 # FIXME: insert proper C++ library support
11628 cygwin* | mingw* | pw32*)
11629 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11630 # as there is no search path for DLLs.
11631 hardcode_libdir_flag_spec_CXX='-L$libdir'
11632 allow_undefined_flag_CXX=unsupported
11633 always_export_symbols_CXX=no
11634 enable_shared_with_static_runtimes_CXX=yes
11636 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11637 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'
11638 # If the export-symbols file already is a .def file (1st line
11639 # is EXPORTS), use it as is; otherwise, prepend...
11640 archive_expsym_cmds_CXX='if test "x`$SED 1q
$export_symbols`" = xEXPORTS; then
11641 cp $export_symbols $output_objdir/$soname.def;
11643 echo EXPORTS > $output_objdir/$soname.def;
11644 cat $export_symbols >> $output_objdir/$soname.def;
11646 $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'
11651 darwin* | rhapsody*)
11653 rhapsody* | darwin1.[012])
11654 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11657 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11658 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11660 case ${MACOSX_DEPLOYMENT_TARGET} in
11662 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11665 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11671 archive_cmds_need_lc_CXX=no
11672 hardcode_direct_CXX=no
11673 hardcode_automatic_CXX=yes
11674 hardcode_shlibpath_var_CXX=unsupported
11675 whole_archive_flag_spec_CXX=''
11676 link_all_deplibs_CXX=yes
11678 if test "$GXX" = yes ; then
11679 lt_int_apple_cc_single_mod=no
11680 output_verbose_link_cmd='echo'
11681 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11682 lt_int_apple_cc_single_mod=yes
11684 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11685 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11687 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'
11689 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11690 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11691 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11692 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}'
11694 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}'
11696 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}'
11698 case $cc_basename in
11700 output_verbose_link_cmd='echo'
11701 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'
11702 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11703 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11704 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}'
11705 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}'
11715 case $cc_basename in
11717 # FIXME: insert proper C++ library support
11721 # Green Hills C++ Compiler
11722 # FIXME: insert proper C++ library support
11726 # FIXME: insert proper C++ library support
11732 # C++ shared libraries reported to be fairly broken before switch to ELF
11736 archive_cmds_need_lc_CXX=no
11738 freebsd* | dragonfly*)
11739 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11746 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11747 hardcode_libdir_separator_CXX=:
11748 export_dynamic_flag_spec_CXX='${wl}-E'
11749 hardcode_direct_CXX=yes
11750 hardcode_minus_L_CXX=yes # Not in the search PATH,
11751 # but as the default
11752 # location of the library.
11754 case $cc_basename in
11756 # FIXME: insert proper C++ library support
11760 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'
11761 # Commands to make compiler produce verbose output that lists
11762 # what "hidden" libraries, object files and flags are used when
11763 # linking a shared library.
11765 # There doesn't appear to be a way to prevent this compiler from
11766 # explicitly linking system object files so we need to strip them
11767 # from the output so that they don't get included in the library
11769 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'
11772 if test "$GXX" = yes; then
11773 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'
11775 # FIXME: insert proper C++ library support
11782 if test $with_gnu_ld = no; then
11783 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11784 hardcode_libdir_separator_CXX=:
11789 export_dynamic_flag_spec_CXX='${wl}-E'
11795 hardcode_direct_CXX=no
11796 hardcode_shlibpath_var_CXX=no
11799 hardcode_direct_CXX=yes
11800 hardcode_minus_L_CXX=yes # Not in the search PATH,
11801 # but as the default
11802 # location of the library.
11806 case $cc_basename in
11808 # FIXME: insert proper C++ library support
11814 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11817 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11820 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11823 # Commands to make compiler produce verbose output that lists
11824 # what "hidden" libraries, object files and flags are used when
11825 # linking a shared library.
11827 # There doesn't appear to be a way to prevent this compiler from
11828 # explicitly linking system object files so we need to strip them
11829 # from the output so that they don't get included in the library
11831 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'
11834 if test "$GXX" = yes; then
11835 if test $with_gnu_ld = no; then
11838 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11841 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11844 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'
11849 # FIXME: insert proper C++ library support
11856 hardcode_direct_CXX=no
11857 hardcode_shlibpath_var_CXX=no
11858 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11859 export_dynamic_flag_spec_CXX='${wl}-E'
11860 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11861 # Instead, shared libraries are loaded at an image base (0x10000000 by
11862 # default) and relocated if they conflict, which is a slow very memory
11863 # consuming and fragmenting process. To avoid this, we pick a random,
11864 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11865 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11866 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'
11867 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'
11870 case $cc_basename in
11873 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'
11875 # Archives containing C++ object files must be created using
11876 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11877 # necessary to make sure instantiated templates are included
11879 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11882 if test "$GXX" = yes; then
11883 if test "$with_gnu_ld" = no; then
11884 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'
11886 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'
11889 link_all_deplibs_CXX=yes
11892 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11893 hardcode_libdir_separator_CXX=:
11895 linux* | k*bsd*-gnu)
11896 case $cc_basename in
11898 # Kuck and Associates, Inc. (KAI) C++ Compiler
11900 # KCC will only create a shared library if the output file
11901 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11902 # to its proper name (with version) after linking.
11903 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'
11904 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'
11905 # Commands to make compiler produce verbose output that lists
11906 # what "hidden" libraries, object files and flags are used when
11907 # linking a shared library.
11909 # There doesn't appear to be a way to prevent this compiler from
11910 # explicitly linking system object files so we need to strip them
11911 # from the output so that they don't get included in the library
11913 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'
11915 hardcode_libdir_flag_spec_CXX
='${wl}--rpath,$libdir'
11916 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11918 # Archives containing C++ object files must be created using
11919 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11920 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
11925 # version 8.0 and above of icpc choke on multiply defined symbols
11926 # if we add $predep_objects and $postdep_objects, however 7.1 and
11927 # earlier do not add the objects themselves.
11928 case `$CC -V 2>&1` in
11930 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11931 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'
11933 *) # Version 8.0 or newer
11936 ia64
*) tmp_idyn
=' -i_dynamic';;
11938 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11939 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'
11942 archive_cmds_need_lc_CXX
=no
11943 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11944 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11945 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11948 # Portland Group C++ compiler
11949 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11950 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'
11952 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
11953 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11954 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'
11958 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11959 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'
11961 runpath_var
=LD_RUN_PATH
11962 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
11963 hardcode_libdir_separator_CXX
=:
11965 # Commands to make compiler produce verbose output that lists
11966 # what "hidden" libraries, object files and flags are used when
11967 # linking a shared library.
11969 # There doesn't appear to be a way to prevent this compiler from
11970 # explicitly linking system object files so we need to strip them
11971 # from the output so that they don't get included in the library
11973 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'
11976 case `$CC -V 2>&1 | sed 5q` in
11979 no_undefined_flag_CXX
=' -zdefs'
11980 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11981 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'
11982 hardcode_libdir_flag_spec_CXX
='-R$libdir'
11983 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'
11985 # Not sure whether something based on
11986 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11988 output_verbose_link_cmd
='echo'
11990 # Archives containing C++ object files must be created using
11991 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11992 # necessary to make sure instantiated templates are included
11994 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
12001 # FIXME: insert proper C++ library support
12005 # FIXME: insert proper C++ library support
12009 case $cc_basename in
12011 # FIXME: insert proper C++ library support
12015 # FIXME: insert proper C++ library support
12021 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
12022 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12024 hardcode_libdir_flag_spec_CXX
='-R$libdir'
12025 hardcode_direct_CXX
=yes
12026 hardcode_shlibpath_var_CXX
=no
12028 # Workaround some broken pre-1.5 toolchains
12029 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12032 # C++ shared libraries are fairly broken
12036 if test -f /usr
/libexec
/ld.so
; then
12037 hardcode_direct_CXX
=yes
12038 hardcode_shlibpath_var_CXX
=no
12039 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12040 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12041 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12042 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12043 export_dynamic_flag_spec_CXX
='${wl}-E'
12044 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12046 output_verbose_link_cmd
='echo'
12052 case $cc_basename in
12054 # Kuck and Associates, Inc. (KAI) C++ Compiler
12056 # KCC will only create a shared library if the output file
12057 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12058 # to its proper name (with version) after linking.
12059 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'
12061 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12062 hardcode_libdir_separator_CXX
=:
12064 # Archives containing C++ object files must be created using
12065 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12066 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
12070 # Rational C++ 2.4.1
12071 # FIXME: insert proper C++ library support
12075 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
12076 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'
12078 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12079 hardcode_libdir_separator_CXX
=:
12081 # Commands to make compiler produce verbose output that lists
12082 # what "hidden" libraries, object files and flags are used when
12083 # linking a shared library.
12085 # There doesn't appear to be a way to prevent this compiler from
12086 # explicitly linking system object files so we need to strip them
12087 # from the output so that they don't get included in the library
12089 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'
12092 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
12093 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
12094 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'
12096 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12097 hardcode_libdir_separator_CXX
=:
12099 # Commands to make compiler produce verbose output that lists
12100 # what "hidden" libraries, object files and flags are used when
12101 # linking a shared library.
12102 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12105 # FIXME: insert proper C++ library support
12112 case $cc_basename in
12114 # Kuck and Associates, Inc. (KAI) C++ Compiler
12116 # KCC will only create a shared library if the output file
12117 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12118 # to its proper name (with version) after linking.
12119 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'
12121 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12122 hardcode_libdir_separator_CXX
=:
12124 # Archives containing C++ object files must be created using
12125 # the KAI C++ compiler.
12126 old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs'
12129 # Rational C++ 2.4.1
12130 # FIXME: insert proper C++ library support
12134 allow_undefined_flag_CXX
=' -expect_unresolved \*'
12135 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'
12136 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12137 echo "-hidden">> $lib.exp~
12138 $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~
12141 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
12142 hardcode_libdir_separator_CXX
=:
12144 # Commands to make compiler produce verbose output that lists
12145 # what "hidden" libraries, object files and flags are used when
12146 # linking a shared library.
12148 # There doesn't appear to be a way to prevent this compiler from
12149 # explicitly linking system object files so we need to strip them
12150 # from the output so that they don't get included in the library
12152 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'
12155 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
12156 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
12157 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'
12159 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12160 hardcode_libdir_separator_CXX
=:
12162 # Commands to make compiler produce verbose output that lists
12163 # what "hidden" libraries, object files and flags are used when
12164 # linking a shared library.
12165 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12168 # FIXME: insert proper C++ library support
12175 # FIXME: insert proper C++ library support
12179 case $cc_basename in
12182 # FIXME: insert proper C++ library support
12187 # FIXME: insert proper C++ library support
12191 # FIXME: insert proper C++ library support
12197 case $cc_basename in
12199 # Sun C++ 4.2, 5.x and Centerline C++
12200 archive_cmds_need_lc_CXX
=yes
12201 no_undefined_flag_CXX
=' -zdefs'
12202 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12203 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12204 $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'
12206 hardcode_libdir_flag_spec_CXX
='-R$libdir'
12207 hardcode_shlibpath_var_CXX
=no
12209 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
12211 # The compiler driver will combine and reorder linker options,
12212 # but understands `-z linker_flag'.
12213 # Supported since Solaris 2.6 (maybe 2.5.1?)
12214 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
12217 link_all_deplibs_CXX
=yes
12219 output_verbose_link_cmd
='echo'
12221 # Archives containing C++ object files must be created using
12222 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12223 # necessary to make sure instantiated templates are included
12225 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
12228 # Green Hills C++ Compiler
12229 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12231 # The C++ compiler must be used to create the archive.
12232 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12235 # GNU C++ compiler with Solaris linker
12236 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
12237 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
12238 if $CC --version |
grep -v '^2\.7' > /dev
/null
; then
12239 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12240 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12241 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12243 # Commands to make compiler produce verbose output that lists
12244 # what "hidden" libraries, object files and flags are used when
12245 # linking a shared library.
12246 output_verbose_link_cmd
="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12248 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12250 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12251 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12252 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12254 # Commands to make compiler produce verbose output that lists
12255 # what "hidden" libraries, object files and flags are used when
12256 # linking a shared library.
12257 output_verbose_link_cmd
="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12260 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
12262 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
12264 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12271 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
12272 no_undefined_flag_CXX
='${wl}-z,text'
12273 archive_cmds_need_lc_CXX
=no
12274 hardcode_shlibpath_var_CXX
=no
12275 runpath_var
='LD_RUN_PATH'
12277 case $cc_basename in
12279 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12280 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12283 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12284 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12288 sysv5
* | sco3.2v5
* | sco5v6
*)
12289 # Note: We can NOT use -z defs as we might desire, because we do not
12290 # link with -lc, and that would cause any symbols used from libc to
12291 # always be unresolved, which means just about no library would
12292 # ever link correctly. If we're not using GNU ld we use -z text
12293 # though, which does catch some bad symbols but isn't as heavy-handed
12295 # For security reasons, it is highly recommended that you always
12296 # use absolute paths for naming shared libraries, and exclude the
12297 # DT_RUNPATH tag from executables and libraries. But doing so
12298 # requires that you compile everything twice, which is a pain.
12299 # So that behaviour is only enabled if SCOABSPATH is set to a
12300 # non-empty value in the environment. Most likely only useful for
12301 # creating official distributions of packages.
12302 # This is a hack until libtool officially supports absolute path
12303 # names for shared libraries.
12304 no_undefined_flag_CXX
='${wl}-z,text'
12305 allow_undefined_flag_CXX
='${wl}-z,nodefs'
12306 archive_cmds_need_lc_CXX
=no
12307 hardcode_shlibpath_var_CXX
=no
12308 hardcode_libdir_flag_spec_CXX
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12309 hardcode_libdir_separator_CXX
=':'
12310 link_all_deplibs_CXX
=yes
12311 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
12312 runpath_var
='LD_RUN_PATH'
12314 case $cc_basename in
12316 archive_cmds_CXX
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12317 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12320 archive_cmds_CXX
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12321 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12326 case $cc_basename in
12328 # NonStop-UX NCC 3.20
12329 # FIXME: insert proper C++ library support
12333 # FIXME: insert proper C++ library support
12339 # FIXME: insert proper C++ library support
12343 # FIXME: insert proper C++ library support
12347 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12348 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12349 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
12355 ## There is no encapsulation within the following macros, do not change
12356 ## the running order or otherwise move them around unless you know exactly
12357 ## what you are doing...
12359 cat > conftest.
$ac_ext <<EOF
12363 Foo (void) { a = 0; }
12369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12370 (eval $ac_compile) 2>&5
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); }; then
12374 # Parse the compiler output and extract the necessary
12375 # objects, libraries and library flags.
12377 # Sentinel used to keep track of whether or not we are before
12378 # the conftest object file.
12379 pre_test_object_deps_done
=no
12381 # The `*' in the case matches for architectures that use `case' in
12382 # $output_verbose_cmd can trigger glob expansion during the loop
12383 # eval without this substitution.
12384 output_verbose_link_cmd
=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12386 for p
in `eval $output_verbose_link_cmd`; do
12390 # Some compilers place space between "-{L,R}" and the path.
12391 # Remove the space.
12392 if test $p = "-L" \
12393 ||
test $p = "-R"; then
12400 if test "$pre_test_object_deps_done" = no
; then
12403 # Internal compiler library paths should come after those
12404 # provided the user. The postdeps already come after the
12405 # user supplied libs so there is no need to process them.
12406 if test -z "$compiler_lib_search_path_CXX"; then
12407 compiler_lib_search_path_CXX
="${prev}${p}"
12409 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
12412 # The "-l" case would never come before the object being
12413 # linked, so don't bother handling this case.
12416 if test -z "$postdeps_CXX"; then
12417 postdeps_CXX
="${prev}${p}"
12419 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
12425 # This assumes that the test object file only shows up
12426 # once in the compiler output.
12427 if test "$p" = "conftest.$objext"; then
12428 pre_test_object_deps_done
=yes
12432 if test "$pre_test_object_deps_done" = no
; then
12433 if test -z "$predep_objects_CXX"; then
12434 predep_objects_CXX
="$p"
12436 predep_objects_CXX
="$predep_objects_CXX $p"
12439 if test -z "$postdep_objects_CXX"; then
12440 postdep_objects_CXX
="$p"
12442 postdep_objects_CXX
="$postdep_objects_CXX $p"
12447 *) ;; # Ignore the rest.
12455 echo "libtool.m4: error: problem compiling CXX test program"
12458 $rm -f confest.
$objext
12460 # PORTME: override above test on systems where it is broken
12463 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12464 # hack all around it, let's just trust "g++" to DTRT.
12465 predep_objects_CXX
=
12466 postdep_objects_CXX
=
12471 case `$CC -V 2>&1 | sed 5q` in
12475 # The more standards-conforming stlport4 library is
12476 # incompatible with the Cstd library. Avoid specifying
12477 # it if it's in CXXFLAGS. Ignore libCrun as
12478 # -library=stlport4 depends on it.
12479 case " $CXX $CXXFLAGS " in
12480 *" -library=stlport4 "*)
12481 solaris_use_stlport4
=yes
12484 if test "$solaris_use_stlport4" != yes; then
12485 postdeps_CXX
='-library=Cstd -library=Crun'
12492 case $cc_basename in
12494 # The more standards-conforming stlport4 library is
12495 # incompatible with the Cstd library. Avoid specifying
12496 # it if it's in CXXFLAGS. Ignore libCrun as
12497 # -library=stlport4 depends on it.
12498 case " $CXX $CXXFLAGS " in
12499 *" -library=stlport4 "*)
12500 solaris_use_stlport4
=yes
12504 # Adding this requires a known-good setup of shared libraries for
12505 # Sun compiler versions before 5.6, else PIC objects from an old
12506 # archive will be linked into the output, leading to subtle bugs.
12507 if test "$solaris_use_stlport4" != yes; then
12508 postdeps_CXX
='-library=Cstd -library=Crun'
12516 case " $postdeps_CXX " in
12517 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
12520 lt_prog_compiler_wl_CXX
=
12521 lt_prog_compiler_pic_CXX
=
12522 lt_prog_compiler_static_CXX
=
12524 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12525 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12527 # C++ specific cases for pic, static, wl, etc.
12528 if test "$GXX" = yes; then
12529 lt_prog_compiler_wl_CXX
='-Wl,'
12530 lt_prog_compiler_static_CXX
='-static'
12534 # All AIX code is PIC.
12535 if test "$host_cpu" = ia64
; then
12536 # AIX 5 now supports IA64 processor
12537 lt_prog_compiler_static_CXX
='-Bstatic'
12541 # FIXME: we need at least 68020 code to build shared libraries, but
12542 # adding the `-m68020' flag to GCC prevents building anything better,
12544 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
12546 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
12547 # PIC is the default for these OSes.
12549 mingw
* | cygwin
* | os2
* | pw32
*)
12550 # This hack is so that the source file can tell whether it is being
12551 # built for inclusion in a dll (and should export symbols for example).
12552 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12553 # (--disable-auto-import) libraries
12554 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
12556 darwin
* | rhapsody
*)
12557 # PIC is the default on this platform
12558 # Common symbols not allowed in MH_DYLIB files
12559 lt_prog_compiler_pic_CXX
='-fno-common'
12562 # DJGPP does not support shared libraries at all
12563 lt_prog_compiler_pic_CXX
=
12566 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12567 # Instead, we relocate shared libraries at runtime.
12570 if test -d /usr
/nec
; then
12571 lt_prog_compiler_pic_CXX
=-Kconform_pic
12575 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12576 # not for PA HP-UX.
12581 lt_prog_compiler_pic_CXX
='-fPIC'
12586 lt_prog_compiler_pic_CXX
='-fPIC'
12592 # All AIX code is PIC.
12593 if test "$host_cpu" = ia64
; then
12594 # AIX 5 now supports IA64 processor
12595 lt_prog_compiler_static_CXX
='-Bstatic'
12597 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
12601 case $cc_basename in
12603 # Green Hills C++ Compiler
12604 # _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"
12609 # PIC is the default on this platform
12610 # Common symbols not allowed in MH_DYLIB files
12611 case $cc_basename in
12613 lt_prog_compiler_pic_CXX
='-qnocommon'
12614 lt_prog_compiler_wl_CXX
='-Wl,'
12619 case $cc_basename in
12621 lt_prog_compiler_pic_CXX
='-KPIC'
12624 # Green Hills C++ Compiler
12625 lt_prog_compiler_pic_CXX
='-pic'
12631 freebsd
* | dragonfly
*)
12632 # FreeBSD uses GNU C++
12634 hpux9
* | hpux10
* | hpux11
*)
12635 case $cc_basename in
12637 lt_prog_compiler_wl_CXX
='-Wl,'
12638 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
12639 if test "$host_cpu" != ia64
; then
12640 lt_prog_compiler_pic_CXX
='+Z'
12644 lt_prog_compiler_wl_CXX
='-Wl,'
12645 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
12651 lt_prog_compiler_pic_CXX
='+Z'
12660 # This is c89, which is MS Visual C++ (no shared libs)
12661 # Anyone wants to do a port?
12663 irix5
* | irix6
* | nonstopux
*)
12664 case $cc_basename in
12666 lt_prog_compiler_wl_CXX
='-Wl,'
12667 lt_prog_compiler_static_CXX
='-non_shared'
12668 # CC pic flag -KPIC is the default.
12674 linux
* | k
*bsd
*-gnu)
12675 case $cc_basename in
12678 lt_prog_compiler_wl_CXX
='--backend -Wl,'
12679 lt_prog_compiler_pic_CXX
='-fPIC'
12683 lt_prog_compiler_wl_CXX
='-Wl,'
12684 lt_prog_compiler_pic_CXX
='-KPIC'
12685 lt_prog_compiler_static_CXX
='-static'
12688 # Portland Group C++ compiler.
12689 lt_prog_compiler_wl_CXX
='-Wl,'
12690 lt_prog_compiler_pic_CXX
='-fpic'
12691 lt_prog_compiler_static_CXX
='-Bstatic'
12695 # Make sure the PIC flag is empty. It appears that all Alpha
12696 # Linux and Compaq Tru64 Unix objects are PIC.
12697 lt_prog_compiler_pic_CXX
=
12698 lt_prog_compiler_static_CXX
='-non_shared'
12701 case `$CC -V 2>&1 | sed 5q` in
12704 lt_prog_compiler_pic_CXX
='-KPIC'
12705 lt_prog_compiler_static_CXX
='-Bstatic'
12706 lt_prog_compiler_wl_CXX
='-Qoption ld '
12717 case $cc_basename in
12719 lt_prog_compiler_pic_CXX
='-W c,exportall'
12727 osf3
* | osf4
* | osf5
*)
12728 case $cc_basename in
12730 lt_prog_compiler_wl_CXX
='--backend -Wl,'
12733 # Rational C++ 2.4.1
12734 lt_prog_compiler_pic_CXX
='-pic'
12737 # Digital/Compaq C++
12738 lt_prog_compiler_wl_CXX
='-Wl,'
12739 # Make sure the PIC flag is empty. It appears that all Alpha
12740 # Linux and Compaq Tru64 Unix objects are PIC.
12741 lt_prog_compiler_pic_CXX
=
12742 lt_prog_compiler_static_CXX
='-non_shared'
12751 case $cc_basename in
12753 # Sun C++ 4.2, 5.x and Centerline C++
12754 lt_prog_compiler_pic_CXX
='-KPIC'
12755 lt_prog_compiler_static_CXX
='-Bstatic'
12756 lt_prog_compiler_wl_CXX
='-Qoption ld '
12759 # Green Hills C++ Compiler
12760 lt_prog_compiler_pic_CXX
='-PIC'
12767 case $cc_basename in
12770 lt_prog_compiler_pic_CXX
='-pic'
12771 lt_prog_compiler_static_CXX
='-Bstatic'
12775 lt_prog_compiler_pic_CXX
='-pic'
12782 case $cc_basename in
12784 # NonStop-UX NCC 3.20
12785 lt_prog_compiler_pic_CXX
='-KPIC'
12791 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
12792 case $cc_basename in
12794 lt_prog_compiler_wl_CXX
='-Wl,'
12795 lt_prog_compiler_pic_CXX
='-KPIC'
12796 lt_prog_compiler_static_CXX
='-Bstatic'
12803 lt_prog_compiler_can_build_shared_CXX
=no
12808 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12809 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12812 # Check to make sure the PIC flag actually works.
12814 if test -n "$lt_prog_compiler_pic_CXX"; then
12816 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12817 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12818 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12819 echo $ECHO_N "(cached) $ECHO_C" >&6
12821 lt_prog_compiler_pic_works_CXX
=no
12822 ac_outfile
=conftest.
$ac_objext
12823 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12824 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
12825 # Insert the option either (1) after the last *FLAGS variable, or
12826 # (2) before a word containing "conftest.", or (3) at the end.
12827 # Note that $ac_compile itself does not contain backslashes and begins
12828 # with a dollar sign (not a hyphen), so the echo should work correctly.
12829 # The option is referenced via a variable to avoid confusing sed.
12830 lt_compile
=`echo "$ac_compile" | $SED \
12831 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12832 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12833 -e 's:$: $lt_compiler_flag:'`
12834 (eval echo "\"\$as_me:12834: $lt_compile\"" >&5)
12835 (eval "$lt_compile" 2>conftest.err
)
12837 cat conftest.err
>&5
12838 echo "$as_me:12838: \$? = $ac_status" >&5
12839 if (exit $ac_status) && test -s "$ac_outfile"; then
12840 # The compiler can only warn and ignore the option if not recognized
12841 # So say no if there are warnings other than the usual output.
12842 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
12843 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12844 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12845 lt_prog_compiler_pic_works_CXX
=yes
12851 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12852 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12854 if test x
"$lt_prog_compiler_pic_works_CXX" = xyes
; then
12855 case $lt_prog_compiler_pic_CXX in
12857 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
12860 lt_prog_compiler_pic_CXX
=
12861 lt_prog_compiler_can_build_shared_CXX
=no
12866 # For platforms which do not support PIC, -DPIC is meaningless:
12868 lt_prog_compiler_pic_CXX
=
12871 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
12876 # Check to make sure the static flag actually works.
12878 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
12879 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12880 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12881 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12882 echo $ECHO_N "(cached) $ECHO_C" >&6
12884 lt_prog_compiler_static_works_CXX
=no
12885 save_LDFLAGS
="$LDFLAGS"
12886 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
12887 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
12888 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
12889 # The linker can only warn and ignore the option if not recognized
12890 # So say no if there are warnings
12891 if test -s conftest.err
; then
12892 # Append any errors to the config.log.
12893 cat conftest.err
1>&5
12894 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
12895 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12896 if diff conftest.exp conftest.er2
>/dev
/null
; then
12897 lt_prog_compiler_static_works_CXX
=yes
12900 lt_prog_compiler_static_works_CXX
=yes
12904 LDFLAGS
="$save_LDFLAGS"
12907 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12908 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12910 if test x
"$lt_prog_compiler_static_works_CXX" = xyes
; then
12913 lt_prog_compiler_static_CXX
=
12917 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12918 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12919 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12920 echo $ECHO_N "(cached) $ECHO_C" >&6
12922 lt_cv_prog_compiler_c_o_CXX
=no
12923 $rm -r conftest
2>/dev
/null
12927 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12929 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12930 # Insert the option either (1) after the last *FLAGS variable, or
12931 # (2) before a word containing "conftest.", or (3) at the end.
12932 # Note that $ac_compile itself does not contain backslashes and begins
12933 # with a dollar sign (not a hyphen), so the echo should work correctly.
12934 lt_compile
=`echo "$ac_compile" | $SED \
12935 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12936 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12937 -e 's:$: $lt_compiler_flag:'`
12938 (eval echo "\"\$as_me:12938: $lt_compile\"" >&5)
12939 (eval "$lt_compile" 2>out
/conftest.err
)
12941 cat out
/conftest.err
>&5
12942 echo "$as_me:12942: \$? = $ac_status" >&5
12943 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12945 # The compiler can only warn and ignore the option if not recognized
12946 # So say no if there are warnings
12947 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
12948 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12949 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12950 lt_cv_prog_compiler_c_o_CXX
=yes
12955 # SGI C++ compiler will create directory out/ii_files/ for
12956 # template instantiation
12957 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
12958 $rm out
/* && rmdir out
12964 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12965 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12968 hard_links
="nottested"
12969 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
12970 # do not overwrite the value of need_locks provided by the user
12971 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12972 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12975 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12977 ln conftest.a conftest.b
2>&5 || hard_links
=no
12978 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12979 { echo "$as_me:$LINENO: result: $hard_links" >&5
12980 echo "${ECHO_T}$hard_links" >&6; }
12981 if test "$hard_links" = no
; then
12982 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12983 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12990 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12991 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12993 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12996 # If we're using GNU nm, then we don't want the "-C" option.
12997 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12998 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
12999 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'
13001 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'
13005 export_symbols_cmds_CXX
="$ltdll_cmds"
13008 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'
13011 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13015 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13016 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13017 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
13020 # Do we need to explicitly link libc?
13022 case "x$archive_cmds_need_lc_CXX" in
13024 # Assume -lc should be added
13025 archive_cmds_need_lc_CXX
=yes
13027 if test "$enable_shared" = yes && test "$GCC" = yes; then
13028 case $archive_cmds_CXX in
13030 # FIXME: we may have to deal with multi-command sequences.
13033 # Test whether the compiler implicitly links with -lc since on some
13034 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13035 # to ld, don't add -lc before -lgcc.
13036 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13037 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13039 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13042 (eval $ac_compile) 2>&5
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); } 2>conftest.err
; then
13048 libobjs
=conftest.
$ac_objext
13050 wl
=$lt_prog_compiler_wl_CXX
13051 pic_flag
=$lt_prog_compiler_pic_CXX
13057 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
13058 allow_undefined_flag_CXX
=
13059 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13060 (eval $archive_cmds_CXX 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
13062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); }
13065 archive_cmds_need_lc_CXX
=no
13067 archive_cmds_need_lc_CXX
=yes
13069 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
13071 cat conftest.err
1>&5
13074 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13075 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13082 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13083 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13084 library_names_spec
=
13085 libname_spec
='lib$name'
13089 postuninstall_cmds
=
13093 shlibpath_overrides_runpath
=unknown
13095 dynamic_linker
="$host_os ld.so"
13096 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
13098 need_lib_prefix
=unknown
13099 hardcode_into_libs
=no
13101 # when you set need_version to no, make sure it does not cause -set_version
13102 # flags to be left without arguments
13103 need_version
=unknown
13108 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
13109 shlibpath_var
=LIBPATH
13111 # AIX 3 has no versioning support, so we append a major version to the name.
13112 soname_spec
='${libname}${release}${shared_ext}$major'
13119 hardcode_into_libs
=yes
13120 if test "$host_cpu" = ia64
; then
13121 # AIX 5 supports IA64
13122 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13123 shlibpath_var
=LD_LIBRARY_PATH
13125 # With GCC up to 2.95.x, collect2 would create an import file
13126 # for dependence libraries. The import file would start with
13127 # the line `#! .'. This would cause the generated library to
13128 # depend on `.', always an invalid library. This was fixed in
13129 # development snapshots of GCC prior to 3.0.
13131 aix4 | aix4.
[01] | aix4.
[01].
*)
13132 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13134 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
13137 can_build_shared
=no
13141 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13142 # soname into executable. Probably we can add versioning support to
13143 # collect2, so additional links can be useful in future.
13144 if test "$aix_use_runtimelinking" = yes; then
13145 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13146 # instead of lib<name>.a to let people know that these are not
13147 # typical AIX shared libraries.
13148 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13150 # We preserve .a as extension for shared libraries through AIX4.2
13151 # and later when we are not doing run time linking.
13152 library_names_spec
='${libname}${release}.a $libname.a'
13153 soname_spec
='${libname}${release}${shared_ext}$major'
13155 shlibpath_var
=LIBPATH
13160 library_names_spec
='$libname.ixlibrary $libname.a'
13161 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13162 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'
13166 library_names_spec
='${libname}${shared_ext}'
13167 dynamic_linker
="$host_os ld.so"
13168 shlibpath_var
=LIBRARY_PATH
13174 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13175 soname_spec
='${libname}${release}${shared_ext}$major'
13176 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
13177 shlibpath_var
=LD_LIBRARY_PATH
13178 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13179 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
13180 # the default ld.so.conf also contains /usr/contrib/lib and
13181 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13182 # libtool to hard-code these into programs
13185 cygwin
* | mingw
* | pw32
*)
13186 version_type
=windows
13191 case $GCC,$host_os in
13192 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
13193 library_names_spec
='$libname.dll.a'
13194 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13195 postinstall_cmds
='base_file=`basename \${file}`~
13196 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13197 dldir=$destdir/`dirname \$dlpath`~
13198 test -d \$dldir || mkdir -p \$dldir~
13199 $install_prog $dir/$dlname \$dldir/$dlname~
13200 chmod a+x \$dldir/$dlname'
13201 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13202 dlpath=$dir/\$dldll~
13204 shlibpath_overrides_runpath
=yes
13208 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13209 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13210 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
13213 # MinGW DLLs use traditional 'lib' prefix
13214 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13215 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13216 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
13217 # It is most probably a Windows format PATH printed by
13218 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13219 # path with ; separators, and with drive letters. We can handle the
13220 # drive letters (cygwin fileutils understands them), so leave them,
13221 # especially as we might pass files found there to a mingw objdump,
13222 # which wouldn't understand a cygwinified path. Ahh.
13223 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13225 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13229 # pw32 DLLs use 'pw' prefix rather than 'lib'
13230 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13236 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13239 dynamic_linker
='Win32 ld.exe'
13240 # FIXME: first we should search . and the directory the executable is in
13244 darwin
* | rhapsody
*)
13245 dynamic_linker
="$host_os dyld"
13246 version_type
=darwin
13249 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13250 soname_spec
='${libname}${release}${major}$shared_ext'
13251 shlibpath_overrides_runpath
=yes
13252 shlibpath_var
=DYLD_LIBRARY_PATH
13253 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
13255 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
13262 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13263 soname_spec
='${libname}${release}${shared_ext}$major'
13264 shlibpath_var
=LD_LIBRARY_PATH
13271 freebsd
* | dragonfly
*)
13272 # DragonFly does not have aout. When/if they implement a new
13273 # versioning mechanism, adjust this.
13274 if test -x /usr
/bin
/objformat
; then
13275 objformat
=`/usr/bin/objformat`
13278 freebsd
[123]*) objformat
=aout
;;
13279 *) objformat
=elf
;;
13282 version_type
=freebsd-
$objformat
13283 case $version_type in
13285 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13290 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13294 shlibpath_var
=LD_LIBRARY_PATH
13297 shlibpath_overrides_runpath
=yes
13299 freebsd3.
[01]* | freebsdelf3.
[01]*)
13300 shlibpath_overrides_runpath
=yes
13301 hardcode_into_libs
=yes
13303 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
13304 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
13305 shlibpath_overrides_runpath
=no
13306 hardcode_into_libs
=yes
13308 *) # from 4.6 on, and DragonFly
13309 shlibpath_overrides_runpath
=yes
13310 hardcode_into_libs
=yes
13319 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13320 soname_spec
='${libname}${release}${shared_ext}$major'
13321 shlibpath_var
=LD_LIBRARY_PATH
13322 hardcode_into_libs
=yes
13325 hpux9
* | hpux10
* | hpux11
*)
13326 # Give a soname corresponding to the major version so that dld.sl refuses to
13327 # link against other versions.
13334 hardcode_into_libs
=yes
13335 dynamic_linker
="$host_os dld.so"
13336 shlibpath_var
=LD_LIBRARY_PATH
13337 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
13338 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13339 soname_spec
='${libname}${release}${shared_ext}$major'
13340 if test "X$HPUX_IA64_MODE" = X32
; then
13341 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13343 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
13345 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
13349 hardcode_into_libs
=yes
13350 dynamic_linker
="$host_os dld.sl"
13351 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
13352 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
13353 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13354 soname_spec
='${libname}${release}${shared_ext}$major'
13355 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13356 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
13360 dynamic_linker
="$host_os dld.sl"
13361 shlibpath_var
=SHLIB_PATH
13362 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
13363 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13364 soname_spec
='${libname}${release}${shared_ext}$major'
13367 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13368 postinstall_cmds
='chmod 555 $lib'
13375 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13376 soname_spec
='${libname}${release}${shared_ext}$major'
13377 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
13378 shlibpath_var
=LD_LIBRARY_PATH
13379 shlibpath_overrides_runpath
=no
13380 hardcode_into_libs
=yes
13383 irix5
* | irix6
* | nonstopux
*)
13385 nonstopux
*) version_type
=nonstopux
;;
13387 if test "$lt_cv_prog_gnu_ld" = yes; then
13395 soname_spec
='${libname}${release}${shared_ext}$major'
13396 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13398 irix5
* | nonstopux
*)
13399 libsuff
= shlibsuff
=
13402 case $LD in # libtool.m4 will add one of these switches to LD
13403 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
13404 libsuff
= shlibsuff
= libmagic
=32-bit;;
13405 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
13406 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
13407 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
13408 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
13409 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
13413 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
13414 shlibpath_overrides_runpath
=no
13415 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13416 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
13417 hardcode_into_libs
=yes
13420 # No shared lib support for Linux oldld, aout, or coff.
13421 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
13425 # This must be Linux ELF.
13426 linux
* | k
*bsd
*-gnu)
13430 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13431 soname_spec
='${libname}${release}${shared_ext}$major'
13432 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13433 shlibpath_var
=LD_LIBRARY_PATH
13434 shlibpath_overrides_runpath
=no
13435 # This implies no fast_install, which is unacceptable.
13436 # Some rework will be needed to allow for fast_install
13437 # before this can be enabled.
13438 hardcode_into_libs
=yes
13440 # Append ld.so.conf contents to the search path
13441 if test -f /etc
/ld.so.conf
; then
13442 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' ' '`
13443 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
13446 # We used to test for /lib/ld.so.1 and disable shared libraries on
13447 # powerpc, because MkLinux only supported shared libraries with the
13448 # GNU dynamic linker. Since this was broken with cross compilers,
13449 # most powerpc-linux boxes support dynamic linking these days and
13450 # people can always --disable-shared, the test was removed, and we
13451 # assume the GNU/Linux dynamic linker is in use.
13452 dynamic_linker
='GNU/Linux ld.so'
13459 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
13460 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13461 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13462 dynamic_linker
='NetBSD (a.out) ld.so'
13464 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13465 soname_spec
='${libname}${release}${shared_ext}$major'
13466 dynamic_linker
='NetBSD ld.elf_so'
13468 shlibpath_var
=LD_LIBRARY_PATH
13469 shlibpath_overrides_runpath
=yes
13470 hardcode_into_libs
=yes
13475 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13476 shlibpath_var
=LD_LIBRARY_PATH
13477 shlibpath_overrides_runpath
=yes
13484 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13485 soname_spec
='${libname}${release}${shared_ext}$major'
13486 shlibpath_var
=LD_LIBRARY_PATH
13487 shlibpath_overrides_runpath
=yes
13492 sys_lib_dlsearch_path_spec
="/usr/lib"
13494 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13496 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
13497 *) need_version
=no
;;
13499 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13500 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13501 shlibpath_var
=LD_LIBRARY_PATH
13502 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13504 openbsd2.
[89] | openbsd2.
[89].
*)
13505 shlibpath_overrides_runpath
=no
13508 shlibpath_overrides_runpath
=yes
13512 shlibpath_overrides_runpath
=yes
13517 libname_spec
='$name'
13520 library_names_spec
='$libname${shared_ext} $libname.a'
13521 dynamic_linker
='OS/2 ld.exe'
13522 shlibpath_var
=LIBPATH
13525 osf3
* | osf4
* | osf5
*)
13529 soname_spec
='${libname}${release}${shared_ext}$major'
13530 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13531 shlibpath_var
=LD_LIBRARY_PATH
13532 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13533 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
13544 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13545 soname_spec
='${libname}${release}${shared_ext}$major'
13546 shlibpath_var
=LD_LIBRARY_PATH
13547 shlibpath_overrides_runpath
=yes
13548 hardcode_into_libs
=yes
13549 # ldd complains unless libraries are executable
13550 postinstall_cmds
='chmod +x $lib'
13555 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13556 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13557 shlibpath_var
=LD_LIBRARY_PATH
13558 shlibpath_overrides_runpath
=yes
13559 if test "$with_gnu_ld" = yes; then
13567 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13568 soname_spec
='${libname}${release}${shared_ext}$major'
13569 shlibpath_var
=LD_LIBRARY_PATH
13570 case $host_vendor in
13572 shlibpath_overrides_runpath
=no
13574 export_dynamic_flag_spec
='${wl}-Blargedynsym'
13575 runpath_var
=LD_RUN_PATH
13583 shlibpath_overrides_runpath
=no
13584 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
13590 if test -d /usr
/nec
;then
13592 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13593 soname_spec
='$libname${shared_ext}.$major'
13594 shlibpath_var
=LD_LIBRARY_PATH
13598 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
13599 version_type
=freebsd-elf
13602 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13603 soname_spec
='${libname}${release}${shared_ext}$major'
13604 shlibpath_var
=LD_LIBRARY_PATH
13605 hardcode_into_libs
=yes
13606 if test "$with_gnu_ld" = yes; then
13607 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13608 shlibpath_overrides_runpath
=no
13610 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
13611 shlibpath_overrides_runpath
=yes
13614 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
13618 sys_lib_dlsearch_path_spec
='/usr/lib'
13623 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13624 soname_spec
='${libname}${release}${shared_ext}$major'
13625 shlibpath_var
=LD_LIBRARY_PATH
13632 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13633 echo "${ECHO_T}$dynamic_linker" >&6; }
13634 test "$dynamic_linker" = no
&& can_build_shared
=no
13636 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
13637 if test "$GCC" = yes; then
13638 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13641 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13642 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13643 hardcode_action_CXX
=
13644 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13645 test -n "$runpath_var_CXX" || \
13646 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13648 # We can hardcode non-existant directories.
13649 if test "$hardcode_direct_CXX" != no
&&
13650 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13651 # have to relink, otherwise we might link with an installed library
13652 # when we should be linking with a yet-to-be-installed one
13653 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13654 test "$hardcode_minus_L_CXX" != no
; then
13655 # Linking always hardcodes the temporary library directory.
13656 hardcode_action_CXX
=relink
13658 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13659 hardcode_action_CXX
=immediate
13662 # We cannot hardcode anything, or else we can only hardcode existing
13664 hardcode_action_CXX
=unsupported
13666 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13667 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13669 if test "$hardcode_action_CXX" = relink
; then
13670 # Fast installation is not supported
13671 enable_fast_install
=no
13672 elif test "$shlibpath_overrides_runpath" = yes ||
13673 test "$enable_shared" = no
; then
13674 # Fast installation is not necessary
13675 enable_fast_install
=needless
13679 # The else clause should only fire when bootstrapping the
13680 # libtool distribution, otherwise you forgot to ship ltmain.sh
13681 # with your package, and you will get complaints that there are
13682 # no rules to generate ltmain.sh.
13683 if test -f "$ltmain"; then
13684 # See if we are running on zsh, and set the options which allow our commands through
13685 # without removal of \ escapes.
13686 if test -n "${ZSH_VERSION+set}" ; then
13687 setopt NO_GLOB_SUBST
13689 # Now quote all the things that may contain metacharacters while being
13690 # careful not to overquote the AC_SUBSTed values. We take copies of the
13691 # variables and quote the copies for generation of the libtool script.
13692 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13694 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13695 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13696 deplibs_check_method reload_flag reload_cmds need_locks \
13697 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13698 lt_cv_sys_global_symbol_to_c_name_address \
13699 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13700 old_postinstall_cmds old_postuninstall_cmds \
13704 lt_prog_compiler_wl_CXX \
13705 lt_prog_compiler_pic_CXX \
13706 lt_prog_compiler_static_CXX \
13707 lt_prog_compiler_no_builtin_flag_CXX \
13708 export_dynamic_flag_spec_CXX \
13709 thread_safe_flag_spec_CXX \
13710 whole_archive_flag_spec_CXX \
13711 enable_shared_with_static_runtimes_CXX \
13712 old_archive_cmds_CXX \
13713 old_archive_from_new_cmds_CXX \
13714 predep_objects_CXX \
13715 postdep_objects_CXX \
13718 compiler_lib_search_path_CXX \
13720 archive_expsym_cmds_CXX \
13721 postinstall_cmds_CXX \
13722 postuninstall_cmds_CXX \
13723 old_archive_from_expsyms_cmds_CXX \
13724 allow_undefined_flag_CXX \
13725 no_undefined_flag_CXX \
13726 export_symbols_cmds_CXX \
13727 hardcode_libdir_flag_spec_CXX \
13728 hardcode_libdir_flag_spec_ld_CXX \
13729 hardcode_libdir_separator_CXX \
13730 hardcode_automatic_CXX \
13732 module_expsym_cmds_CXX \
13733 lt_cv_prog_compiler_c_o_CXX \
13734 fix_srcfile_path_CXX \
13735 exclude_expsyms_CXX \
13736 include_expsyms_CXX
; do
13739 old_archive_cmds_CXX | \
13740 old_archive_from_new_cmds_CXX | \
13741 archive_cmds_CXX | \
13742 archive_expsym_cmds_CXX | \
13743 module_cmds_CXX | \
13744 module_expsym_cmds_CXX | \
13745 old_archive_from_expsyms_cmds_CXX | \
13746 export_symbols_cmds_CXX | \
13747 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13748 postinstall_cmds | postuninstall_cmds | \
13749 old_postinstall_cmds | old_postuninstall_cmds | \
13750 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
13751 # Double-quote double-evaled strings.
13752 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13755 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13761 *'\$0 --fallback-echo"')
13762 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13768 cat <<__EOF__ >> "$cfgfile"
13769 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13771 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13773 # Shell to use when invoking shell scripts.
13776 # Whether or not to build shared libraries.
13777 build_libtool_libs=$enable_shared
13779 # Whether or not to build static libraries.
13780 build_old_libs=$enable_static
13782 # Whether or not to add -lc for building shared libraries.
13783 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13785 # Whether or not to disallow shared libs when runtime libs are static
13786 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13788 # Whether or not to optimize for fast installation.
13789 fast_install=$enable_fast_install
13792 host_alias=$host_alias
13796 # The build system.
13797 build_alias=$build_alias
13801 # An echo program that does not interpret backslashes.
13806 AR_FLAGS=$lt_AR_FLAGS
13811 # LTCC compiler flags.
13812 LTCFLAGS=$lt_LTCFLAGS
13814 # A language-specific compiler.
13815 CC=$lt_compiler_CXX
13817 # Is the compiler the GNU C compiler?
13823 # The linker used to build libraries.
13826 # Whether we need hard or soft links.
13829 # A BSD-compatible nm program.
13832 # A symbol stripping program
13835 # Used to examine libraries when file_magic_cmd begins "file"
13836 MAGIC_CMD=$MAGIC_CMD
13838 # Used on cygwin: DLL creation program.
13841 # Used on cygwin: object dumper.
13844 # Used on cygwin: assembler.
13847 # The name of the directory that contains temporary libtool files.
13850 # How to create reloadable object files.
13851 reload_flag=$lt_reload_flag
13852 reload_cmds=$lt_reload_cmds
13854 # How to pass a linker flag through the compiler.
13855 wl=$lt_lt_prog_compiler_wl_CXX
13857 # Object file suffix (normally "o").
13858 objext="$ac_objext"
13860 # Old archive suffix (normally "a").
13863 # Shared library suffix (normally ".so").
13864 shrext_cmds='$shrext_cmds'
13866 # Executable file suffix (normally "").
13869 # Additional compiler flags for building library objects.
13870 pic_flag=$lt_lt_prog_compiler_pic_CXX
13873 # What is the maximum length of a command?
13874 max_cmd_len=$lt_cv_sys_max_cmd_len
13876 # Does compiler simultaneously support -c and -o options?
13877 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13879 # Must we lock files when doing compilation?
13880 need_locks=$lt_need_locks
13882 # Do we need the lib prefix for modules?
13883 need_lib_prefix=$need_lib_prefix
13885 # Do we need a version for libraries?
13886 need_version=$need_version
13888 # Whether dlopen is supported.
13889 dlopen_support=$enable_dlopen
13891 # Whether dlopen of programs is supported.
13892 dlopen_self=$enable_dlopen_self
13894 # Whether dlopen of statically linked programs is supported.
13895 dlopen_self_static=$enable_dlopen_self_static
13897 # Compiler flag to prevent dynamic linking.
13898 link_static_flag=$lt_lt_prog_compiler_static_CXX
13900 # Compiler flag to turn off builtin functions.
13901 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13903 # Compiler flag to allow reflexive dlopens.
13904 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13906 # Compiler flag to generate shared objects directly from archives.
13907 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13909 # Compiler flag to generate thread-safe objects.
13910 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13912 # Library versioning type.
13913 version_type=$version_type
13915 # Format of library name prefix.
13916 libname_spec=$lt_libname_spec
13918 # List of archive names. First name is the real one, the rest are links.
13919 # The last name is the one that the linker finds with -lNAME.
13920 library_names_spec=$lt_library_names_spec
13922 # The coded name of the library, if different from the real name.
13923 soname_spec=$lt_soname_spec
13925 # Commands used to build and install an old-style archive.
13927 old_archive_cmds=$lt_old_archive_cmds_CXX
13928 old_postinstall_cmds=$lt_old_postinstall_cmds
13929 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13931 # Create an old-style archive from a shared archive.
13932 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13934 # Create a temporary old-style archive to link instead of a shared archive.
13935 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13937 # Commands used to build and install a shared archive.
13938 archive_cmds=$lt_archive_cmds_CXX
13939 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13940 postinstall_cmds=$lt_postinstall_cmds
13941 postuninstall_cmds=$lt_postuninstall_cmds
13943 # Commands used to build a loadable module (assumed same as above if empty)
13944 module_cmds=$lt_module_cmds_CXX
13945 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13947 # Commands to strip libraries.
13948 old_striplib=$lt_old_striplib
13949 striplib=$lt_striplib
13951 # Dependencies to place before the objects being linked to create a
13953 predep_objects=$lt_predep_objects_CXX
13955 # Dependencies to place after the objects being linked to create a
13957 postdep_objects=$lt_postdep_objects_CXX
13959 # Dependencies to place before the objects being linked to create a
13961 predeps=$lt_predeps_CXX
13963 # Dependencies to place after the objects being linked to create a
13965 postdeps=$lt_postdeps_CXX
13967 # The library search path used internally by the compiler when linking
13968 # a shared library.
13969 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13971 # Method to check whether dependent libraries are shared objects.
13972 deplibs_check_method=$lt_deplibs_check_method
13974 # Command to use when deplibs_check_method == file_magic.
13975 file_magic_cmd=$lt_file_magic_cmd
13977 # Flag that allows shared libraries with undefined symbols to be built.
13978 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13980 # Flag that forces no undefined symbols.
13981 no_undefined_flag=$lt_no_undefined_flag_CXX
13983 # Commands used to finish a libtool library installation in a directory.
13984 finish_cmds=$lt_finish_cmds
13986 # Same as above, but a single script fragment to be evaled but not shown.
13987 finish_eval=$lt_finish_eval
13989 # Take the output of nm and produce a listing of raw symbols and C names.
13990 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13992 # Transform the output of nm in a proper C declaration
13993 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13995 # Transform the output of nm in a C name address pair
13996 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13998 # This is the shared library runtime path variable.
13999 runpath_var=$runpath_var
14001 # This is the shared library path variable.
14002 shlibpath_var=$shlibpath_var
14004 # Is shlibpath searched before the hard-coded library search path?
14005 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14007 # How to hardcode a shared library path into an executable.
14008 hardcode_action=$hardcode_action_CXX
14010 # Whether we should hardcode library paths into libraries.
14011 hardcode_into_libs=$hardcode_into_libs
14013 # Flag to hardcode \$libdir into a binary during linking.
14014 # This must work even if \$libdir does not exist.
14015 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14017 # If ld is used when linking, flag to hardcode \$libdir into
14018 # a binary during linking. This must work even if \$libdir does
14020 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14022 # Whether we need a single -rpath flag with a separated argument.
14023 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14025 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14026 # resulting binary.
14027 hardcode_direct=$hardcode_direct_CXX
14029 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14030 # resulting binary.
14031 hardcode_minus_L=$hardcode_minus_L_CXX
14033 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14034 # the resulting binary.
14035 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14037 # Set to yes if building a shared library automatically hardcodes DIR into the library
14038 # and all subsequent libraries and executables linked against it.
14039 hardcode_automatic=$hardcode_automatic_CXX
14041 # Variables whose values should be saved in libtool wrapper scripts and
14042 # restored at relink time.
14043 variables_saved_for_relink="$variables_saved_for_relink"
14045 # Whether libtool must link a program against all its dependency libraries.
14046 link_all_deplibs=$link_all_deplibs_CXX
14048 # Compile-time system search path for libraries
14049 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14051 # Run-time system search path for libraries
14052 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14054 # Fix the shell variable \$srcfile for the compiler.
14055 fix_srcfile_path=$lt_fix_srcfile_path
14057 # Set to yes if exported symbols are required.
14058 always_export_symbols=$always_export_symbols_CXX
14060 # The commands to list exported symbols.
14061 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14063 # The commands to extract the exported symbol list from a shared archive.
14064 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14066 # Symbols that should not be listed in the preloaded symbols.
14067 exclude_expsyms=$lt_exclude_expsyms_CXX
14069 # Symbols that must always be exported.
14070 include_expsyms=$lt_include_expsyms_CXX
14072 # ### END LIBTOOL TAG CONFIG: $tagname
14078 # If there is no Makefile yet, we rely on a make rule to execute
14079 # `config.status --recheck' to rerun these tests and create the
14080 # libtool script then.
14081 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14082 if test -f "$ltmain_in"; then
14083 test -f Makefile
&& make "$ltmain"
14089 ac_cpp
='$CPP $CPPFLAGS'
14090 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14091 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14092 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14098 with_gnu_ldcxx
=$with_gnu_ld
14099 with_gnu_ld
=$lt_save_with_gnu_ld
14100 lt_cv_path_LDCXX
=$lt_cv_path_LD
14101 lt_cv_path_LD
=$lt_save_path_LD
14102 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
14103 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
14111 if test -n "$F77" && test "X$F77" != "Xno"; then
14114 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14115 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14116 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
14119 archive_cmds_need_lc_F77
=no
14120 allow_undefined_flag_F77
=
14121 always_export_symbols_F77
=no
14122 archive_expsym_cmds_F77
=
14123 export_dynamic_flag_spec_F77
=
14124 hardcode_direct_F77
=no
14125 hardcode_libdir_flag_spec_F77
=
14126 hardcode_libdir_flag_spec_ld_F77
=
14127 hardcode_libdir_separator_F77
=
14128 hardcode_minus_L_F77
=no
14129 hardcode_automatic_F77
=no
14131 module_expsym_cmds_F77
=
14132 link_all_deplibs_F77
=unknown
14133 old_archive_cmds_F77
=$old_archive_cmds
14134 no_undefined_flag_F77
=
14135 whole_archive_flag_spec_F77
=
14136 enable_shared_with_static_runtimes_F77
=no
14138 # Source file extension for f77 test sources.
14141 # Object file extension for compiled f77 test sources.
14145 # Code to be used in simple compile tests
14146 lt_simple_compile_test_code
="\
14152 # Code to be used in simple link tests
14153 lt_simple_link_test_code
="\
14158 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14160 # If no C compiler was specified, use CC.
14163 # If no C compiler flags were specified, use CFLAGS.
14164 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
14166 # Allow CC to be a program name with arguments.
14170 # save warnings/boilerplate of simple test code
14171 ac_outfile
=conftest.
$ac_objext
14172 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
14173 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
14174 _lt_compiler_boilerplate
=`cat conftest.err`
14177 ac_outfile
=conftest.
$ac_objext
14178 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
14179 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
14180 _lt_linker_boilerplate
=`cat conftest.err`
14184 # Allow CC to be a program name with arguments.
14189 for cc_temp
in $compiler""; do
14191 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
14192 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
14197 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14200 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14201 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14202 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14203 echo "${ECHO_T}$can_build_shared" >&6; }
14205 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14206 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14207 test "$can_build_shared" = "no" && enable_shared
=no
14209 # On AIX, shared libraries and static libraries use the same namespace, and
14210 # are all built from PIC.
14213 test "$enable_shared" = yes && enable_static
=no
14214 if test -n "$RANLIB"; then
14215 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
14216 postinstall_cmds
='$RANLIB $lib'
14220 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
14221 test "$enable_shared" = yes && enable_static
=no
14225 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14226 echo "${ECHO_T}$enable_shared" >&6; }
14228 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14229 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14230 # Make sure either enable_shared or enable_static is yes.
14231 test "$enable_shared" = yes || enable_static
=yes
14232 { echo "$as_me:$LINENO: result: $enable_static" >&5
14233 echo "${ECHO_T}$enable_static" >&6; }
14238 lt_prog_compiler_wl_F77
=
14239 lt_prog_compiler_pic_F77
=
14240 lt_prog_compiler_static_F77
=
14242 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14243 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14245 if test "$GCC" = yes; then
14246 lt_prog_compiler_wl_F77
='-Wl,'
14247 lt_prog_compiler_static_F77
='-static'
14251 # All AIX code is PIC.
14252 if test "$host_cpu" = ia64
; then
14253 # AIX 5 now supports IA64 processor
14254 lt_prog_compiler_static_F77
='-Bstatic'
14259 # FIXME: we need at least 68020 code to build shared libraries, but
14260 # adding the `-m68020' flag to GCC prevents building anything better,
14262 lt_prog_compiler_pic_F77
='-m68020 -resident32 -malways-restore-a4'
14265 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
14266 # PIC is the default for these OSes.
14269 mingw
* | cygwin
* | pw32
* | os2
*)
14270 # This hack is so that the source file can tell whether it is being
14271 # built for inclusion in a dll (and should export symbols for example).
14272 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14273 # (--disable-auto-import) libraries
14274 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
14277 darwin
* | rhapsody
*)
14278 # PIC is the default on this platform
14279 # Common symbols not allowed in MH_DYLIB files
14280 lt_prog_compiler_pic_F77
='-fno-common'
14284 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14285 # Instead, we relocate shared libraries at runtime.
14289 # Just because we use GCC doesn't mean we suddenly get shared libraries
14290 # on systems that don't support them.
14291 lt_prog_compiler_can_build_shared_F77
=no
14296 if test -d /usr
/nec
; then
14297 lt_prog_compiler_pic_F77
=-Kconform_pic
14302 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14303 # not for PA HP-UX.
14309 lt_prog_compiler_pic_F77
='-fPIC'
14315 lt_prog_compiler_pic_F77
='-fPIC'
14319 # PORTME Check for flag to pass linker flags through the system compiler.
14322 lt_prog_compiler_wl_F77
='-Wl,'
14323 if test "$host_cpu" = ia64
; then
14324 # AIX 5 now supports IA64 processor
14325 lt_prog_compiler_static_F77
='-Bstatic'
14327 lt_prog_compiler_static_F77
='-bnso -bI:/lib/syscalls.exp'
14331 # PIC is the default on this platform
14332 # Common symbols not allowed in MH_DYLIB files
14333 case $cc_basename in
14335 lt_prog_compiler_pic_F77
='-qnocommon'
14336 lt_prog_compiler_wl_F77
='-Wl,'
14341 mingw
* | cygwin
* | pw32
* | os2
*)
14342 # This hack is so that the source file can tell whether it is being
14343 # built for inclusion in a dll (and should export symbols for example).
14344 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
14347 hpux9
* | hpux10
* | hpux11
*)
14348 lt_prog_compiler_wl_F77
='-Wl,'
14349 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14350 # not for PA HP-UX.
14356 lt_prog_compiler_pic_F77
='+Z'
14359 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14360 lt_prog_compiler_static_F77
='${wl}-a ${wl}archive'
14363 irix5
* | irix6
* | nonstopux
*)
14364 lt_prog_compiler_wl_F77
='-Wl,'
14365 # PIC (with -KPIC) is the default.
14366 lt_prog_compiler_static_F77
='-non_shared'
14370 lt_prog_compiler_pic_F77
='-KPIC'
14371 lt_prog_compiler_static_F77
='-Bstatic'
14374 linux
* | k
*bsd
*-gnu)
14375 case $cc_basename in
14377 lt_prog_compiler_wl_F77
='-Wl,'
14378 lt_prog_compiler_pic_F77
='-KPIC'
14379 lt_prog_compiler_static_F77
='-static'
14381 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
14382 # Portland Group compilers (*not* the Pentium gcc compiler,
14383 # which looks to be a dead project)
14384 lt_prog_compiler_wl_F77
='-Wl,'
14385 lt_prog_compiler_pic_F77
='-fpic'
14386 lt_prog_compiler_static_F77
='-Bstatic'
14389 lt_prog_compiler_wl_F77
='-Wl,'
14390 # All Alpha code is PIC.
14391 lt_prog_compiler_static_F77
='-non_shared'
14394 case `$CC -V 2>&1 | sed 5q` in
14397 lt_prog_compiler_pic_F77
='-KPIC'
14398 lt_prog_compiler_static_F77
='-Bstatic'
14399 lt_prog_compiler_wl_F77
='-Wl,'
14402 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14403 lt_prog_compiler_pic_F77
='-KPIC'
14404 lt_prog_compiler_static_F77
='-Bstatic'
14405 lt_prog_compiler_wl_F77
=''
14412 osf3
* | osf4
* | osf5
*)
14413 lt_prog_compiler_wl_F77
='-Wl,'
14414 # All OSF/1 code is PIC.
14415 lt_prog_compiler_static_F77
='-non_shared'
14419 lt_prog_compiler_static_F77
='-non_shared'
14423 lt_prog_compiler_pic_F77
='-KPIC'
14424 lt_prog_compiler_static_F77
='-Bstatic'
14425 case $cc_basename in
14426 f77
* | f90
* | f95
*)
14427 lt_prog_compiler_wl_F77
='-Qoption ld ';;
14429 lt_prog_compiler_wl_F77
='-Wl,';;
14434 lt_prog_compiler_wl_F77
='-Qoption ld '
14435 lt_prog_compiler_pic_F77
='-PIC'
14436 lt_prog_compiler_static_F77
='-Bstatic'
14439 sysv4 | sysv4.2uw2
* | sysv4.3
*)
14440 lt_prog_compiler_wl_F77
='-Wl,'
14441 lt_prog_compiler_pic_F77
='-KPIC'
14442 lt_prog_compiler_static_F77
='-Bstatic'
14446 if test -d /usr
/nec
;then
14447 lt_prog_compiler_pic_F77
='-Kconform_pic'
14448 lt_prog_compiler_static_F77
='-Bstatic'
14452 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
14453 lt_prog_compiler_wl_F77
='-Wl,'
14454 lt_prog_compiler_pic_F77
='-KPIC'
14455 lt_prog_compiler_static_F77
='-Bstatic'
14459 lt_prog_compiler_wl_F77
='-Wl,'
14460 lt_prog_compiler_can_build_shared_F77
=no
14464 lt_prog_compiler_pic_F77
='-pic'
14465 lt_prog_compiler_static_F77
='-Bstatic'
14469 lt_prog_compiler_can_build_shared_F77
=no
14474 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14475 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14478 # Check to make sure the PIC flag actually works.
14480 if test -n "$lt_prog_compiler_pic_F77"; then
14482 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14483 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14484 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14485 echo $ECHO_N "(cached) $ECHO_C" >&6
14487 lt_prog_compiler_pic_works_F77
=no
14488 ac_outfile
=conftest.
$ac_objext
14489 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14490 lt_compiler_flag
="$lt_prog_compiler_pic_F77"
14491 # Insert the option either (1) after the last *FLAGS variable, or
14492 # (2) before a word containing "conftest.", or (3) at the end.
14493 # Note that $ac_compile itself does not contain backslashes and begins
14494 # with a dollar sign (not a hyphen), so the echo should work correctly.
14495 # The option is referenced via a variable to avoid confusing sed.
14496 lt_compile
=`echo "$ac_compile" | $SED \
14497 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14498 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14499 -e 's:$: $lt_compiler_flag:'`
14500 (eval echo "\"\$as_me:14500: $lt_compile\"" >&5)
14501 (eval "$lt_compile" 2>conftest.err
)
14503 cat conftest.err
>&5
14504 echo "$as_me:14504: \$? = $ac_status" >&5
14505 if (exit $ac_status) && test -s "$ac_outfile"; then
14506 # The compiler can only warn and ignore the option if not recognized
14507 # So say no if there are warnings other than the usual output.
14508 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
14509 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
14510 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
14511 lt_prog_compiler_pic_works_F77
=yes
14517 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14518 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14520 if test x
"$lt_prog_compiler_pic_works_F77" = xyes
; then
14521 case $lt_prog_compiler_pic_F77 in
14523 *) lt_prog_compiler_pic_F77
=" $lt_prog_compiler_pic_F77" ;;
14526 lt_prog_compiler_pic_F77
=
14527 lt_prog_compiler_can_build_shared_F77
=no
14532 # For platforms which do not support PIC, -DPIC is meaningless:
14534 lt_prog_compiler_pic_F77
=
14537 lt_prog_compiler_pic_F77
="$lt_prog_compiler_pic_F77"
14542 # Check to make sure the static flag actually works.
14544 wl
=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_F77\"
14545 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14546 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14547 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14548 echo $ECHO_N "(cached) $ECHO_C" >&6
14550 lt_prog_compiler_static_works_F77
=no
14551 save_LDFLAGS
="$LDFLAGS"
14552 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
14553 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
14554 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
14555 # The linker can only warn and ignore the option if not recognized
14556 # So say no if there are warnings
14557 if test -s conftest.err
; then
14558 # Append any errors to the config.log.
14559 cat conftest.err
1>&5
14560 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
14561 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
14562 if diff conftest.exp conftest.er2
>/dev
/null
; then
14563 lt_prog_compiler_static_works_F77
=yes
14566 lt_prog_compiler_static_works_F77
=yes
14570 LDFLAGS
="$save_LDFLAGS"
14573 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14574 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14576 if test x
"$lt_prog_compiler_static_works_F77" = xyes
; then
14579 lt_prog_compiler_static_F77
=
14583 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14584 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14585 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14586 echo $ECHO_N "(cached) $ECHO_C" >&6
14588 lt_cv_prog_compiler_c_o_F77
=no
14589 $rm -r conftest
2>/dev
/null
14593 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14595 lt_compiler_flag
="-o out/conftest2.$ac_objext"
14596 # Insert the option either (1) after the last *FLAGS variable, or
14597 # (2) before a word containing "conftest.", or (3) at the end.
14598 # Note that $ac_compile itself does not contain backslashes and begins
14599 # with a dollar sign (not a hyphen), so the echo should work correctly.
14600 lt_compile
=`echo "$ac_compile" | $SED \
14601 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14602 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14603 -e 's:$: $lt_compiler_flag:'`
14604 (eval echo "\"\$as_me:14604: $lt_compile\"" >&5)
14605 (eval "$lt_compile" 2>out
/conftest.err
)
14607 cat out
/conftest.err
>&5
14608 echo "$as_me:14608: \$? = $ac_status" >&5
14609 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
14611 # The compiler can only warn and ignore the option if not recognized
14612 # So say no if there are warnings
14613 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
14614 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
14615 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
14616 lt_cv_prog_compiler_c_o_F77
=yes
14621 # SGI C++ compiler will create directory out/ii_files/ for
14622 # template instantiation
14623 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
14624 $rm out
/* && rmdir out
14630 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14631 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14634 hard_links
="nottested"
14635 if test "$lt_cv_prog_compiler_c_o_F77" = no
&& test "$need_locks" != no
; then
14636 # do not overwrite the value of need_locks provided by the user
14637 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14638 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14641 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14643 ln conftest.a conftest.b
2>&5 || hard_links
=no
14644 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14645 { echo "$as_me:$LINENO: result: $hard_links" >&5
14646 echo "${ECHO_T}$hard_links" >&6; }
14647 if test "$hard_links" = no
; then
14648 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14649 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14656 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14657 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14660 allow_undefined_flag_F77
=
14661 enable_shared_with_static_runtimes_F77
=no
14663 archive_expsym_cmds_F77
=
14664 old_archive_From_new_cmds_F77
=
14665 old_archive_from_expsyms_cmds_F77
=
14666 export_dynamic_flag_spec_F77
=
14667 whole_archive_flag_spec_F77
=
14668 thread_safe_flag_spec_F77
=
14669 hardcode_libdir_flag_spec_F77
=
14670 hardcode_libdir_flag_spec_ld_F77
=
14671 hardcode_libdir_separator_F77
=
14672 hardcode_direct_F77
=no
14673 hardcode_minus_L_F77
=no
14674 hardcode_shlibpath_var_F77
=unsupported
14675 link_all_deplibs_F77
=unknown
14676 hardcode_automatic_F77
=no
14678 module_expsym_cmds_F77
=
14679 always_export_symbols_F77
=no
14680 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14681 # include_expsyms should be a list of space-separated symbols to be *always*
14682 # included in the symbol list
14683 include_expsyms_F77
=
14684 # exclude_expsyms can be an extended regexp of symbols to exclude
14685 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14686 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14687 # as well as any symbol that contains `d'.
14688 exclude_expsyms_F77
="_GLOBAL_OFFSET_TABLE_"
14689 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14690 # platforms (ab)use it in PIC code, but their linkers get confused if
14691 # the symbol is explicitly referenced. Since portable code cannot
14692 # rely on this symbol name, it's probably fine to never include it in
14693 # preloaded symbol tables.
14694 extract_expsyms_cmds
=
14695 # Just being paranoid about ensuring that cc_basename is set.
14696 for cc_temp
in $compiler""; do
14698 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
14699 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
14704 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14707 cygwin
* | mingw
* | pw32
*)
14708 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14709 # When not using gcc, we currently assume that we are using
14710 # Microsoft Visual C++.
14711 if test "$GCC" != yes; then
14716 # we just hope/assume this is gcc and not c89 (= MSVC++)
14725 if test "$with_gnu_ld" = yes; then
14726 # If archive_cmds runs LD, not CC, wlarc should be empty
14729 # Set some defaults for GNU ld with shared library support. These
14730 # are reset later if shared libraries are not supported. Putting them
14731 # here allows them to be overridden if necessary.
14732 runpath_var
=LD_RUN_PATH
14733 hardcode_libdir_flag_spec_F77
='${wl}--rpath ${wl}$libdir'
14734 export_dynamic_flag_spec_F77
='${wl}--export-dynamic'
14735 # ancient GNU ld didn't support --whole-archive et. al.
14736 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
14737 whole_archive_flag_spec_F77
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14739 whole_archive_flag_spec_F77
=
14741 supports_anon_versioning
=no
14742 case `$LD -v 2>/dev/null` in
14743 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
14744 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
14745 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
14746 *\
2.11.
*) ;; # other 2.11 versions
14747 *) supports_anon_versioning
=yes ;;
14750 # See if GNU ld supports shared libraries.
14752 aix3
* | aix4
* | aix5
*)
14753 # On AIX/PPC, the GNU linker is very broken
14754 if test "$host_cpu" != ia64
; then
14758 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14759 *** to be unable to reliably create shared libraries on AIX.
14760 *** Therefore, libtool is disabling shared libraries support. If you
14761 *** really care for shared libraries, you may want to modify your PATH
14762 *** so that a non-GNU linker is found, and then restart.
14769 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)'
14770 hardcode_libdir_flag_spec_F77
='-L$libdir'
14771 hardcode_minus_L_F77
=yes
14773 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14774 # that the semantics of dynamic libraries on AmigaOS, at least up
14775 # to version 4, is to share data among multiple programs linked
14776 # with the same dynamic library. Since this doesn't match the
14777 # behavior of shared libraries on other platforms, we can't use
14783 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14784 allow_undefined_flag_F77
=unsupported
14785 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14786 # support --undefined. This deserves some investigation. FIXME
14787 archive_cmds_F77
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14793 cygwin
* | mingw
* | pw32
*)
14794 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14795 # as there is no search path for DLLs.
14796 hardcode_libdir_flag_spec_F77
='-L$libdir'
14797 allow_undefined_flag_F77
=unsupported
14798 always_export_symbols_F77
=no
14799 enable_shared_with_static_runtimes_F77
=yes
14800 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14802 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
14803 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14804 # If the export-symbols file already is a .def file (1st line
14805 # is EXPORTS), use it as is; otherwise, prepend...
14806 archive_expsym_cmds_F77
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14807 cp $export_symbols $output_objdir/$soname.def;
14809 echo EXPORTS > $output_objdir/$soname.def;
14810 cat $export_symbols >> $output_objdir/$soname.def;
14812 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14819 hardcode_direct_F77
=no
14820 hardcode_shlibpath_var_F77
=no
14821 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14822 export_dynamic_flag_spec_F77
='${wl}-E'
14823 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14824 # Instead, shared libraries are loaded at an image base (0x10000000 by
14825 # default) and relocated if they conflict, which is a slow very memory
14826 # consuming and fragmenting process. To avoid this, we pick a random,
14827 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14828 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14829 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'
14830 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'
14833 gnu
* | linux
* | k
*bsd
*-gnu)
14834 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14836 case $cc_basename,$host_cpu in
14837 pgcc
*) # Portland Group C compiler
14838 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'
14839 tmp_addflag
=' $pic_flag'
14841 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
14842 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'
14843 tmp_addflag
=' $pic_flag -Mnomain' ;;
14844 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
14845 tmp_addflag
=' -i_dynamic' ;;
14846 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
14847 tmp_addflag
=' -i_dynamic -nofor_main' ;;
14848 ifc
* | ifort
*) # Intel Fortran compiler
14849 tmp_addflag
=' -nofor_main' ;;
14851 case `$CC -V 2>&1 | sed 5q` in
14852 *Sun\ C
*) # Sun C 5.9
14853 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'
14854 tmp_sharedflag
='-G' ;;
14855 *Sun\ F
*) # Sun Fortran 8.3
14856 tmp_sharedflag
='-G' ;;
14858 tmp_sharedflag
='-shared' ;;
14860 archive_cmds_F77
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14862 if test $supports_anon_versioning = yes; then
14863 archive_expsym_cmds_F77
='$echo "{ global:" > $output_objdir/$libname.ver~
14864 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14865 $echo "local: *; };" >> $output_objdir/$libname.ver~
14866 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14874 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14875 archive_cmds_F77
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14878 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14879 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14884 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
14888 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14889 *** create shared libraries on Solaris systems. Therefore, libtool
14890 *** is disabling shared libraries support. We urge you to upgrade GNU
14891 *** binutils to release 2.9.1 or newer. Another option is to modify
14892 *** your PATH or compiler configuration so that the native linker is
14893 *** used, and then restart.
14896 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14897 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14898 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14904 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
14905 case `$LD -v 2>&1` in
14906 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
14910 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14911 *** reliably create shared libraries on SCO systems. Therefore, libtool
14912 *** is disabling shared libraries support. We urge you to upgrade GNU
14913 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14914 *** your PATH or compiler configuration so that the native linker is
14915 *** used, and then restart.
14920 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14921 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14922 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14923 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14932 archive_cmds_F77
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14934 hardcode_direct_F77
=yes
14935 hardcode_shlibpath_var_F77
=no
14939 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14940 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14941 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14948 if test "$ld_shlibs_F77" = no
; then
14950 hardcode_libdir_flag_spec_F77
=
14951 export_dynamic_flag_spec_F77
=
14952 whole_archive_flag_spec_F77
=
14955 # PORTME fill in a description of your system's linker (not GNU ld)
14958 allow_undefined_flag_F77
=unsupported
14959 always_export_symbols_F77
=yes
14960 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'
14961 # Note: this linker hardcodes the directories in LIBPATH if there
14962 # are no directories specified by -L.
14963 hardcode_minus_L_F77
=yes
14964 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14965 # Neither direct hardcoding nor static linking is supported with a
14967 hardcode_direct_F77
=unsupported
14972 if test "$host_cpu" = ia64
; then
14973 # On IA64, the linker does run time linking by default, so we don't
14974 # have to do anything special.
14975 aix_use_runtimelinking
=no
14976 exp_sym_flag
='-Bexport'
14979 # If we're using GNU nm, then we don't want the "-C" option.
14980 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14981 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
14982 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'
14984 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'
14986 aix_use_runtimelinking
=no
14988 # Test if we are trying to use run time linking or normal
14989 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14990 # need to do runtime linking.
14991 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
14992 for ld_flag
in $LDFLAGS; do
14993 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
14994 aix_use_runtimelinking
=yes
15001 exp_sym_flag
='-bexport'
15002 no_entry_flag
='-bnoentry'
15005 # When large executables or shared objects are built, AIX ld can
15006 # have problems creating the table of contents. If linking a library
15007 # or program results in "error TOC overflow" add -mminimal-toc to
15008 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15009 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15011 archive_cmds_F77
=''
15012 hardcode_direct_F77
=yes
15013 hardcode_libdir_separator_F77
=':'
15014 link_all_deplibs_F77
=yes
15016 if test "$GCC" = yes; then
15017 case $host_os in aix4.
[012]|aix4.
[012].
*)
15018 # We only want to do this on AIX 4.2 and lower, the check
15019 # below for broken collect2 doesn't work under 4.3+
15020 collect2name
=`${CC} -print-prog-name=collect2`
15021 if test -f "$collect2name" && \
15022 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
15024 # We have reworked collect2
15027 # We have old collect2
15028 hardcode_direct_F77
=unsupported
15029 # It fails to find uninstalled libraries when the uninstalled
15030 # path is not listed in the libpath. Setting hardcode_minus_L
15031 # to unsupported forces relinking
15032 hardcode_minus_L_F77
=yes
15033 hardcode_libdir_flag_spec_F77
='-L$libdir'
15034 hardcode_libdir_separator_F77
=
15038 shared_flag
='-shared'
15039 if test "$aix_use_runtimelinking" = yes; then
15040 shared_flag
="$shared_flag "'${wl}-G'
15044 if test "$host_cpu" = ia64
; then
15045 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15046 # chokes on -Wl,-G. The following line is correct:
15049 if test "$aix_use_runtimelinking" = yes; then
15050 shared_flag
='${wl}-G'
15052 shared_flag
='${wl}-bM:SRE'
15057 # It seems that -bexpall does not export symbols beginning with
15058 # underscore (_), so it is better to generate a list of symbols to export.
15059 always_export_symbols_F77
=yes
15060 if test "$aix_use_runtimelinking" = yes; then
15061 # Warning - without using the other runtime loading flags (-brtl),
15062 # -berok will link without error, but may produce a broken library.
15063 allow_undefined_flag_F77
='-berok'
15064 # Determine the default libpath from the value encoded in an empty executable.
15065 cat >conftest.
$ac_ext <<_ACEOF
15070 rm -f conftest.
$ac_objext conftest
$ac_exeext
15071 if { (ac_try
="$ac_link"
15072 case "(($ac_try" in
15073 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15074 *) ac_try_echo=$ac_try;;
15076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15077 (eval "$ac_link") 2>conftest.er1
15079 grep -v '^ *+' conftest.er1 >conftest.err
15081 cat conftest.err >&5
15082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083 (exit $ac_status); } && {
15084 test -z "$ac_f77_werror_flag" ||
15085 test ! -s conftest.err
15086 } && test -s conftest$ac_exeext &&
15087 $as_test_x conftest$ac_exeext; then
15089 lt_aix_libpath_sed='
15090 /Import File Strings/,/^$/ {
15096 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
15097 # Check for a 64-bit object if we didn't find anything.
15098 if test -z "$aix_libpath"; then
15099 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
15102 echo "$as_me: failed program was:" >&5
15103 sed 's/^/| /' conftest.$ac_ext >&5
15108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15109 conftest$ac_exeext conftest.$ac_ext
15110 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15112 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15113 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"
15115 if test "$host_cpu" = ia64; then
15116 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15117 allow_undefined_flag_F77="-z nodefs"
15118 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"
15120 # Determine the default libpath from the value encoded in an empty executable.
15121 cat >conftest.$ac_ext <<_ACEOF
15126 rm -f conftest.$ac_objext conftest$ac_exeext
15127 if { (ac_try="$ac_link"
15128 case "(($ac_try" in
15129 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15130 *) ac_try_echo
=$ac_try;;
15132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15133 (eval "$ac_link") 2>conftest.er1
15135 grep -v '^ *+' conftest.er1
>conftest.err
15137 cat conftest.err
>&5
15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); } && {
15140 test -z "$ac_f77_werror_flag" ||
15141 test ! -s conftest.err
15142 } && test -s conftest
$ac_exeext &&
15143 $as_test_x conftest
$ac_exeext; then
15145 lt_aix_libpath_sed
='
15146 /Import File Strings/,/^$/ {
15152 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15153 # Check for a 64-bit object if we didn't find anything.
15154 if test -z "$aix_libpath"; then
15155 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15158 echo "$as_me: failed program was:" >&5
15159 sed 's/^/| /' conftest.
$ac_ext >&5
15164 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15165 conftest
$ac_exeext conftest.
$ac_ext
15166 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15168 hardcode_libdir_flag_spec_F77
='${wl}-blibpath:$libdir:'"$aix_libpath"
15169 # Warning - without using the other run time loading flags,
15170 # -berok will link without error, but may produce a broken library.
15171 no_undefined_flag_F77
=' ${wl}-bernotok'
15172 allow_undefined_flag_F77
=' ${wl}-berok'
15173 # Exported symbols can be pulled into shared objects from archives
15174 whole_archive_flag_spec_F77
='$convenience'
15175 archive_cmds_need_lc_F77
=yes
15176 # This is similar to how AIX traditionally builds its shared libraries.
15177 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'
15183 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)'
15184 hardcode_libdir_flag_spec_F77
='-L$libdir'
15185 hardcode_minus_L_F77
=yes
15186 # see comment about different semantics on the GNU ld section
15191 export_dynamic_flag_spec_F77
=-rdynamic
15194 cygwin
* | mingw
* | pw32
*)
15195 # When not using gcc, we currently assume that we are using
15196 # Microsoft Visual C++.
15197 # hardcode_libdir_flag_spec is actually meaningless, as there is
15198 # no search path for DLLs.
15199 hardcode_libdir_flag_spec_F77
=' '
15200 allow_undefined_flag_F77
=unsupported
15201 # Tell ltmain to make .lib files, not .a files.
15203 # Tell ltmain to make .dll files, not .so files.
15205 # FIXME: Setting linknames here is a bad hack.
15206 archive_cmds_F77
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15207 # The linker will automatically build a .lib file if we build a DLL.
15208 old_archive_From_new_cmds_F77
='true'
15209 # FIXME: Should let the user specify the lib program.
15210 old_archive_cmds_F77
='lib -OUT:$oldlib$oldobjs$old_deplibs'
15211 fix_srcfile_path_F77
='`cygpath -w "$srcfile"`'
15212 enable_shared_with_static_runtimes_F77
=yes
15215 darwin
* | rhapsody
*)
15217 rhapsody
* | darwin1.
[012])
15218 allow_undefined_flag_F77
='${wl}-undefined ${wl}suppress'
15221 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15222 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15224 case ${MACOSX_DEPLOYMENT_TARGET} in
15226 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15229 allow_undefined_flag_F77
='${wl}-undefined ${wl}dynamic_lookup'
15235 archive_cmds_need_lc_F77
=no
15236 hardcode_direct_F77
=no
15237 hardcode_automatic_F77
=yes
15238 hardcode_shlibpath_var_F77
=unsupported
15239 whole_archive_flag_spec_F77
=''
15240 link_all_deplibs_F77
=yes
15241 if test "$GCC" = yes ; then
15242 output_verbose_link_cmd
='echo'
15243 archive_cmds_F77
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15244 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15245 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15246 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}'
15247 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}'
15249 case $cc_basename in
15251 output_verbose_link_cmd
='echo'
15252 archive_cmds_F77
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15253 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15254 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15255 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}'
15256 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}'
15266 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15267 hardcode_libdir_flag_spec_F77
='-L$libdir'
15268 hardcode_shlibpath_var_F77
=no
15275 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15276 # support. Future versions do this automatically, but an explicit c++rt0.o
15277 # does not break anything, and helps significantly (at the cost of a little
15280 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15281 hardcode_libdir_flag_spec_F77
='-R$libdir'
15282 hardcode_direct_F77
=yes
15283 hardcode_shlibpath_var_F77
=no
15286 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15288 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15289 hardcode_direct_F77
=yes
15290 hardcode_minus_L_F77
=yes
15291 hardcode_shlibpath_var_F77
=no
15294 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15295 freebsd
* | dragonfly
*)
15296 archive_cmds_F77
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15297 hardcode_libdir_flag_spec_F77
='-R$libdir'
15298 hardcode_direct_F77
=yes
15299 hardcode_shlibpath_var_F77
=no
15303 if test "$GCC" = yes; then
15304 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'
15306 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'
15308 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
15309 hardcode_libdir_separator_F77
=:
15310 hardcode_direct_F77
=yes
15312 # hardcode_minus_L: Not really in the search PATH,
15313 # but as the default location of the library.
15314 hardcode_minus_L_F77
=yes
15315 export_dynamic_flag_spec_F77
='${wl}-E'
15319 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
15320 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15322 archive_cmds_F77
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15324 if test "$with_gnu_ld" = no
; then
15325 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
15326 hardcode_libdir_separator_F77
=:
15328 hardcode_direct_F77
=yes
15329 export_dynamic_flag_spec_F77
='${wl}-E'
15331 # hardcode_minus_L: Not really in the search PATH,
15332 # but as the default location of the library.
15333 hardcode_minus_L_F77
=yes
15338 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
15341 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15344 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15347 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15353 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15356 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15359 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15363 if test "$with_gnu_ld" = no
; then
15364 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
15365 hardcode_libdir_separator_F77
=:
15369 hardcode_libdir_flag_spec_ld_F77
='+b $libdir'
15370 hardcode_direct_F77
=no
15371 hardcode_shlibpath_var_F77
=no
15374 hardcode_direct_F77
=yes
15375 export_dynamic_flag_spec_F77
='${wl}-E'
15377 # hardcode_minus_L: Not really in the search PATH,
15378 # but as the default location of the library.
15379 hardcode_minus_L_F77
=yes
15385 irix5
* | irix6
* | nonstopux
*)
15386 if test "$GCC" = yes; then
15387 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'
15389 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'
15390 hardcode_libdir_flag_spec_ld_F77
='-rpath $libdir'
15392 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
15393 hardcode_libdir_separator_F77
=:
15394 link_all_deplibs_F77
=yes
15398 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
15399 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15401 archive_cmds_F77
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15403 hardcode_libdir_flag_spec_F77
='-R$libdir'
15404 hardcode_direct_F77
=yes
15405 hardcode_shlibpath_var_F77
=no
15409 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15410 hardcode_direct_F77
=yes
15411 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
15412 hardcode_libdir_separator_F77
=:
15413 hardcode_shlibpath_var_F77
=no
15417 if test -f /usr
/libexec
/ld.so
; then
15418 hardcode_direct_F77
=yes
15419 hardcode_shlibpath_var_F77
=no
15420 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15421 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15422 archive_expsym_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15423 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
15424 export_dynamic_flag_spec_F77
='${wl}-E'
15427 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
15428 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15429 hardcode_libdir_flag_spec_F77
='-R$libdir'
15432 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15433 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
15443 hardcode_libdir_flag_spec_F77
='-L$libdir'
15444 hardcode_minus_L_F77
=yes
15445 allow_undefined_flag_F77
=unsupported
15446 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'
15447 old_archive_From_new_cmds_F77
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15451 if test "$GCC" = yes; then
15452 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
15453 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'
15455 allow_undefined_flag_F77
=' -expect_unresolved \*'
15456 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'
15458 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
15459 hardcode_libdir_separator_F77
=:
15462 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
15463 if test "$GCC" = yes; then
15464 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
15465 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'
15466 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
15468 allow_undefined_flag_F77
=' -expect_unresolved \*'
15469 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'
15470 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~
15471 $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'
15473 # Both c and cxx compiler support -rpath directly
15474 hardcode_libdir_flag_spec_F77
='-rpath $libdir'
15476 hardcode_libdir_separator_F77
=:
15480 no_undefined_flag_F77
=' -z text'
15481 if test "$GCC" = yes; then
15483 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15484 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15485 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15488 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15489 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15490 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15492 hardcode_libdir_flag_spec_F77
='-R$libdir'
15493 hardcode_shlibpath_var_F77
=no
15495 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
15497 # The compiler driver will combine and reorder linker options,
15498 # but understands `-z linker_flag'. GCC discards it without `$wl',
15499 # but is careful enough not to reorder.
15500 # Supported since Solaris 2.6 (maybe 2.5.1?)
15501 if test "$GCC" = yes; then
15502 whole_archive_flag_spec_F77
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15504 whole_archive_flag_spec_F77
='-z allextract$convenience -z defaultextract'
15508 link_all_deplibs_F77
=yes
15512 if test "x$host_vendor" = xsequent
; then
15513 # Use $CC to link under sequent, because it throws in some extra .o
15514 # files that make .init and .fini sections work.
15515 archive_cmds_F77
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15517 archive_cmds_F77
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15519 hardcode_libdir_flag_spec_F77
='-L$libdir'
15520 hardcode_direct_F77
=yes
15521 hardcode_minus_L_F77
=yes
15522 hardcode_shlibpath_var_F77
=no
15526 case $host_vendor in
15528 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15529 hardcode_direct_F77
=yes # is this really true???
15532 ## LD is ld it makes a PLAMLIB
15533 ## CC just makes a GrossModule.
15534 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15535 reload_cmds_F77
='$CC -r -o $output$reload_objs'
15536 hardcode_direct_F77
=no
15539 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15540 hardcode_direct_F77
=no
#Motorola manual says yes, but my tests say they lie
15543 runpath_var
='LD_RUN_PATH'
15544 hardcode_shlibpath_var_F77
=no
15548 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15549 hardcode_shlibpath_var_F77
=no
15550 export_dynamic_flag_spec_F77
='-Bexport'
15554 if test -d /usr
/nec
; then
15555 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15556 hardcode_shlibpath_var_F77
=no
15557 runpath_var
=LD_RUN_PATH
15558 hardcode_runpath_var
=yes
15563 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
15564 no_undefined_flag_F77
='${wl}-z,text'
15565 archive_cmds_need_lc_F77
=no
15566 hardcode_shlibpath_var_F77
=no
15567 runpath_var
='LD_RUN_PATH'
15569 if test "$GCC" = yes; then
15570 archive_cmds_F77
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15571 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15573 archive_cmds_F77
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15574 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15578 sysv5
* | sco3.2v5
* | sco5v6
*)
15579 # Note: We can NOT use -z defs as we might desire, because we do not
15580 # link with -lc, and that would cause any symbols used from libc to
15581 # always be unresolved, which means just about no library would
15582 # ever link correctly. If we're not using GNU ld we use -z text
15583 # though, which does catch some bad symbols but isn't as heavy-handed
15585 no_undefined_flag_F77
='${wl}-z,text'
15586 allow_undefined_flag_F77
='${wl}-z,nodefs'
15587 archive_cmds_need_lc_F77
=no
15588 hardcode_shlibpath_var_F77
=no
15589 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15590 hardcode_libdir_separator_F77
=':'
15591 link_all_deplibs_F77
=yes
15592 export_dynamic_flag_spec_F77
='${wl}-Bexport'
15593 runpath_var
='LD_RUN_PATH'
15595 if test "$GCC" = yes; then
15596 archive_cmds_F77
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15597 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15599 archive_cmds_F77
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15600 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15605 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15606 hardcode_libdir_flag_spec_F77
='-L$libdir'
15607 hardcode_shlibpath_var_F77
=no
15616 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15617 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15618 test "$ld_shlibs_F77" = no
&& can_build_shared
=no
15621 # Do we need to explicitly link libc?
15623 case "x$archive_cmds_need_lc_F77" in
15625 # Assume -lc should be added
15626 archive_cmds_need_lc_F77
=yes
15628 if test "$enable_shared" = yes && test "$GCC" = yes; then
15629 case $archive_cmds_F77 in
15631 # FIXME: we may have to deal with multi-command sequences.
15634 # Test whether the compiler implicitly links with -lc since on some
15635 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15636 # to ld, don't add -lc before -lgcc.
15637 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15638 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15640 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
15642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15643 (eval $ac_compile) 2>&5
15645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646 (exit $ac_status); } 2>conftest.err
; then
15649 libobjs
=conftest.
$ac_objext
15651 wl
=$lt_prog_compiler_wl_F77
15652 pic_flag
=$lt_prog_compiler_pic_F77
15658 lt_save_allow_undefined_flag
=$allow_undefined_flag_F77
15659 allow_undefined_flag_F77
=
15660 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15661 (eval $archive_cmds_F77 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 (exit $ac_status); }
15666 archive_cmds_need_lc_F77
=no
15668 archive_cmds_need_lc_F77
=yes
15670 allow_undefined_flag_F77
=$lt_save_allow_undefined_flag
15672 cat conftest.err
1>&5
15675 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15676 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15683 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15684 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15685 library_names_spec
=
15686 libname_spec
='lib$name'
15690 postuninstall_cmds
=
15694 shlibpath_overrides_runpath
=unknown
15696 dynamic_linker
="$host_os ld.so"
15697 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
15699 need_lib_prefix
=unknown
15700 hardcode_into_libs
=no
15702 # when you set need_version to no, make sure it does not cause -set_version
15703 # flags to be left without arguments
15704 need_version
=unknown
15709 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
15710 shlibpath_var
=LIBPATH
15712 # AIX 3 has no versioning support, so we append a major version to the name.
15713 soname_spec
='${libname}${release}${shared_ext}$major'
15720 hardcode_into_libs
=yes
15721 if test "$host_cpu" = ia64
; then
15722 # AIX 5 supports IA64
15723 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15724 shlibpath_var
=LD_LIBRARY_PATH
15726 # With GCC up to 2.95.x, collect2 would create an import file
15727 # for dependence libraries. The import file would start with
15728 # the line `#! .'. This would cause the generated library to
15729 # depend on `.', always an invalid library. This was fixed in
15730 # development snapshots of GCC prior to 3.0.
15732 aix4 | aix4.
[01] | aix4.
[01].
*)
15733 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15735 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
15738 can_build_shared
=no
15742 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15743 # soname into executable. Probably we can add versioning support to
15744 # collect2, so additional links can be useful in future.
15745 if test "$aix_use_runtimelinking" = yes; then
15746 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15747 # instead of lib<name>.a to let people know that these are not
15748 # typical AIX shared libraries.
15749 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15751 # We preserve .a as extension for shared libraries through AIX4.2
15752 # and later when we are not doing run time linking.
15753 library_names_spec
='${libname}${release}.a $libname.a'
15754 soname_spec
='${libname}${release}${shared_ext}$major'
15756 shlibpath_var
=LIBPATH
15761 library_names_spec
='$libname.ixlibrary $libname.a'
15762 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15763 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'
15767 library_names_spec
='${libname}${shared_ext}'
15768 dynamic_linker
="$host_os ld.so"
15769 shlibpath_var
=LIBRARY_PATH
15775 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15776 soname_spec
='${libname}${release}${shared_ext}$major'
15777 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
15778 shlibpath_var
=LD_LIBRARY_PATH
15779 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15780 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
15781 # the default ld.so.conf also contains /usr/contrib/lib and
15782 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15783 # libtool to hard-code these into programs
15786 cygwin
* | mingw
* | pw32
*)
15787 version_type
=windows
15792 case $GCC,$host_os in
15793 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
15794 library_names_spec
='$libname.dll.a'
15795 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15796 postinstall_cmds
='base_file=`basename \${file}`~
15797 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15798 dldir=$destdir/`dirname \$dlpath`~
15799 test -d \$dldir || mkdir -p \$dldir~
15800 $install_prog $dir/$dlname \$dldir/$dlname~
15801 chmod a+x \$dldir/$dlname'
15802 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15803 dlpath=$dir/\$dldll~
15805 shlibpath_overrides_runpath
=yes
15809 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15810 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15811 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
15814 # MinGW DLLs use traditional 'lib' prefix
15815 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15816 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15817 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
15818 # It is most probably a Windows format PATH printed by
15819 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15820 # path with ; separators, and with drive letters. We can handle the
15821 # drive letters (cygwin fileutils understands them), so leave them,
15822 # especially as we might pass files found there to a mingw objdump,
15823 # which wouldn't understand a cygwinified path. Ahh.
15824 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15826 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15830 # pw32 DLLs use 'pw' prefix rather than 'lib'
15831 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15837 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15840 dynamic_linker
='Win32 ld.exe'
15841 # FIXME: first we should search . and the directory the executable is in
15845 darwin
* | rhapsody
*)
15846 dynamic_linker
="$host_os dyld"
15847 version_type
=darwin
15850 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15851 soname_spec
='${libname}${release}${major}$shared_ext'
15852 shlibpath_overrides_runpath
=yes
15853 shlibpath_var
=DYLD_LIBRARY_PATH
15854 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
15856 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
15863 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15864 soname_spec
='${libname}${release}${shared_ext}$major'
15865 shlibpath_var
=LD_LIBRARY_PATH
15872 freebsd
* | dragonfly
*)
15873 # DragonFly does not have aout. When/if they implement a new
15874 # versioning mechanism, adjust this.
15875 if test -x /usr
/bin
/objformat
; then
15876 objformat
=`/usr/bin/objformat`
15879 freebsd
[123]*) objformat
=aout
;;
15880 *) objformat
=elf
;;
15883 version_type
=freebsd-
$objformat
15884 case $version_type in
15886 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15891 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15895 shlibpath_var
=LD_LIBRARY_PATH
15898 shlibpath_overrides_runpath
=yes
15900 freebsd3.
[01]* | freebsdelf3.
[01]*)
15901 shlibpath_overrides_runpath
=yes
15902 hardcode_into_libs
=yes
15904 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
15905 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
15906 shlibpath_overrides_runpath
=no
15907 hardcode_into_libs
=yes
15909 *) # from 4.6 on, and DragonFly
15910 shlibpath_overrides_runpath
=yes
15911 hardcode_into_libs
=yes
15920 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15921 soname_spec
='${libname}${release}${shared_ext}$major'
15922 shlibpath_var
=LD_LIBRARY_PATH
15923 hardcode_into_libs
=yes
15926 hpux9
* | hpux10
* | hpux11
*)
15927 # Give a soname corresponding to the major version so that dld.sl refuses to
15928 # link against other versions.
15935 hardcode_into_libs
=yes
15936 dynamic_linker
="$host_os dld.so"
15937 shlibpath_var
=LD_LIBRARY_PATH
15938 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
15939 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15940 soname_spec
='${libname}${release}${shared_ext}$major'
15941 if test "X$HPUX_IA64_MODE" = X32
; then
15942 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15944 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
15946 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15950 hardcode_into_libs
=yes
15951 dynamic_linker
="$host_os dld.sl"
15952 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
15953 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
15954 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15955 soname_spec
='${libname}${release}${shared_ext}$major'
15956 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15957 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15961 dynamic_linker
="$host_os dld.sl"
15962 shlibpath_var
=SHLIB_PATH
15963 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
15964 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15965 soname_spec
='${libname}${release}${shared_ext}$major'
15968 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15969 postinstall_cmds
='chmod 555 $lib'
15976 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15977 soname_spec
='${libname}${release}${shared_ext}$major'
15978 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
15979 shlibpath_var
=LD_LIBRARY_PATH
15980 shlibpath_overrides_runpath
=no
15981 hardcode_into_libs
=yes
15984 irix5
* | irix6
* | nonstopux
*)
15986 nonstopux
*) version_type
=nonstopux
;;
15988 if test "$lt_cv_prog_gnu_ld" = yes; then
15996 soname_spec
='${libname}${release}${shared_ext}$major'
15997 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15999 irix5
* | nonstopux
*)
16000 libsuff
= shlibsuff
=
16003 case $LD in # libtool.m4 will add one of these switches to LD
16004 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
16005 libsuff
= shlibsuff
= libmagic
=32-bit;;
16006 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
16007 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
16008 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
16009 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
16010 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
16014 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
16015 shlibpath_overrides_runpath
=no
16016 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16017 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
16018 hardcode_into_libs
=yes
16021 # No shared lib support for Linux oldld, aout, or coff.
16022 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
16026 # This must be Linux ELF.
16027 linux
* | k
*bsd
*-gnu)
16031 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16032 soname_spec
='${libname}${release}${shared_ext}$major'
16033 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16034 shlibpath_var
=LD_LIBRARY_PATH
16035 shlibpath_overrides_runpath
=no
16036 # This implies no fast_install, which is unacceptable.
16037 # Some rework will be needed to allow for fast_install
16038 # before this can be enabled.
16039 hardcode_into_libs
=yes
16041 # Append ld.so.conf contents to the search path
16042 if test -f /etc
/ld.so.conf
; then
16043 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' ' '`
16044 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
16047 # We used to test for /lib/ld.so.1 and disable shared libraries on
16048 # powerpc, because MkLinux only supported shared libraries with the
16049 # GNU dynamic linker. Since this was broken with cross compilers,
16050 # most powerpc-linux boxes support dynamic linking these days and
16051 # people can always --disable-shared, the test was removed, and we
16052 # assume the GNU/Linux dynamic linker is in use.
16053 dynamic_linker
='GNU/Linux ld.so'
16060 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
16061 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16062 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16063 dynamic_linker
='NetBSD (a.out) ld.so'
16065 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16066 soname_spec
='${libname}${release}${shared_ext}$major'
16067 dynamic_linker
='NetBSD ld.elf_so'
16069 shlibpath_var
=LD_LIBRARY_PATH
16070 shlibpath_overrides_runpath
=yes
16071 hardcode_into_libs
=yes
16076 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16077 shlibpath_var
=LD_LIBRARY_PATH
16078 shlibpath_overrides_runpath
=yes
16085 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16086 soname_spec
='${libname}${release}${shared_ext}$major'
16087 shlibpath_var
=LD_LIBRARY_PATH
16088 shlibpath_overrides_runpath
=yes
16093 sys_lib_dlsearch_path_spec
="/usr/lib"
16095 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16097 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
16098 *) need_version
=no
;;
16100 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16101 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16102 shlibpath_var
=LD_LIBRARY_PATH
16103 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16105 openbsd2.
[89] | openbsd2.
[89].
*)
16106 shlibpath_overrides_runpath
=no
16109 shlibpath_overrides_runpath
=yes
16113 shlibpath_overrides_runpath
=yes
16118 libname_spec
='$name'
16121 library_names_spec
='$libname${shared_ext} $libname.a'
16122 dynamic_linker
='OS/2 ld.exe'
16123 shlibpath_var
=LIBPATH
16126 osf3
* | osf4
* | osf5
*)
16130 soname_spec
='${libname}${release}${shared_ext}$major'
16131 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16132 shlibpath_var
=LD_LIBRARY_PATH
16133 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16134 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
16145 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16146 soname_spec
='${libname}${release}${shared_ext}$major'
16147 shlibpath_var
=LD_LIBRARY_PATH
16148 shlibpath_overrides_runpath
=yes
16149 hardcode_into_libs
=yes
16150 # ldd complains unless libraries are executable
16151 postinstall_cmds
='chmod +x $lib'
16156 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16157 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16158 shlibpath_var
=LD_LIBRARY_PATH
16159 shlibpath_overrides_runpath
=yes
16160 if test "$with_gnu_ld" = yes; then
16168 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16169 soname_spec
='${libname}${release}${shared_ext}$major'
16170 shlibpath_var
=LD_LIBRARY_PATH
16171 case $host_vendor in
16173 shlibpath_overrides_runpath
=no
16175 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16176 runpath_var
=LD_RUN_PATH
16184 shlibpath_overrides_runpath
=no
16185 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
16191 if test -d /usr
/nec
;then
16193 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16194 soname_spec
='$libname${shared_ext}.$major'
16195 shlibpath_var
=LD_LIBRARY_PATH
16199 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
16200 version_type
=freebsd-elf
16203 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16204 soname_spec
='${libname}${release}${shared_ext}$major'
16205 shlibpath_var
=LD_LIBRARY_PATH
16206 hardcode_into_libs
=yes
16207 if test "$with_gnu_ld" = yes; then
16208 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16209 shlibpath_overrides_runpath
=no
16211 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
16212 shlibpath_overrides_runpath
=yes
16215 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
16219 sys_lib_dlsearch_path_spec
='/usr/lib'
16224 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16225 soname_spec
='${libname}${release}${shared_ext}$major'
16226 shlibpath_var
=LD_LIBRARY_PATH
16233 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16234 echo "${ECHO_T}$dynamic_linker" >&6; }
16235 test "$dynamic_linker" = no
&& can_build_shared
=no
16237 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
16238 if test "$GCC" = yes; then
16239 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16242 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16243 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16244 hardcode_action_F77
=
16245 if test -n "$hardcode_libdir_flag_spec_F77" || \
16246 test -n "$runpath_var_F77" || \
16247 test "X$hardcode_automatic_F77" = "Xyes" ; then
16249 # We can hardcode non-existant directories.
16250 if test "$hardcode_direct_F77" != no
&&
16251 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16252 # have to relink, otherwise we might link with an installed library
16253 # when we should be linking with a yet-to-be-installed one
16254 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16255 test "$hardcode_minus_L_F77" != no
; then
16256 # Linking always hardcodes the temporary library directory.
16257 hardcode_action_F77
=relink
16259 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16260 hardcode_action_F77
=immediate
16263 # We cannot hardcode anything, or else we can only hardcode existing
16265 hardcode_action_F77
=unsupported
16267 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16268 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16270 if test "$hardcode_action_F77" = relink
; then
16271 # Fast installation is not supported
16272 enable_fast_install
=no
16273 elif test "$shlibpath_overrides_runpath" = yes ||
16274 test "$enable_shared" = no
; then
16275 # Fast installation is not necessary
16276 enable_fast_install
=needless
16280 # The else clause should only fire when bootstrapping the
16281 # libtool distribution, otherwise you forgot to ship ltmain.sh
16282 # with your package, and you will get complaints that there are
16283 # no rules to generate ltmain.sh.
16284 if test -f "$ltmain"; then
16285 # See if we are running on zsh, and set the options which allow our commands through
16286 # without removal of \ escapes.
16287 if test -n "${ZSH_VERSION+set}" ; then
16288 setopt NO_GLOB_SUBST
16290 # Now quote all the things that may contain metacharacters while being
16291 # careful not to overquote the AC_SUBSTed values. We take copies of the
16292 # variables and quote the copies for generation of the libtool script.
16293 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16295 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16296 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16297 deplibs_check_method reload_flag reload_cmds need_locks \
16298 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16299 lt_cv_sys_global_symbol_to_c_name_address \
16300 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16301 old_postinstall_cmds old_postuninstall_cmds \
16305 lt_prog_compiler_wl_F77 \
16306 lt_prog_compiler_pic_F77 \
16307 lt_prog_compiler_static_F77 \
16308 lt_prog_compiler_no_builtin_flag_F77 \
16309 export_dynamic_flag_spec_F77 \
16310 thread_safe_flag_spec_F77 \
16311 whole_archive_flag_spec_F77 \
16312 enable_shared_with_static_runtimes_F77 \
16313 old_archive_cmds_F77 \
16314 old_archive_from_new_cmds_F77 \
16315 predep_objects_F77 \
16316 postdep_objects_F77 \
16319 compiler_lib_search_path_F77 \
16321 archive_expsym_cmds_F77 \
16322 postinstall_cmds_F77 \
16323 postuninstall_cmds_F77 \
16324 old_archive_from_expsyms_cmds_F77 \
16325 allow_undefined_flag_F77 \
16326 no_undefined_flag_F77 \
16327 export_symbols_cmds_F77 \
16328 hardcode_libdir_flag_spec_F77 \
16329 hardcode_libdir_flag_spec_ld_F77 \
16330 hardcode_libdir_separator_F77 \
16331 hardcode_automatic_F77 \
16333 module_expsym_cmds_F77 \
16334 lt_cv_prog_compiler_c_o_F77 \
16335 fix_srcfile_path_F77 \
16336 exclude_expsyms_F77 \
16337 include_expsyms_F77
; do
16340 old_archive_cmds_F77 | \
16341 old_archive_from_new_cmds_F77 | \
16342 archive_cmds_F77 | \
16343 archive_expsym_cmds_F77 | \
16344 module_cmds_F77 | \
16345 module_expsym_cmds_F77 | \
16346 old_archive_from_expsyms_cmds_F77 | \
16347 export_symbols_cmds_F77 | \
16348 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16349 postinstall_cmds | postuninstall_cmds | \
16350 old_postinstall_cmds | old_postuninstall_cmds | \
16351 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
16352 # Double-quote double-evaled strings.
16353 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16356 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16362 *'\$0 --fallback-echo"')
16363 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16369 cat <<__EOF__ >> "$cfgfile"
16370 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16372 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16374 # Shell to use when invoking shell scripts.
16377 # Whether or not to build shared libraries.
16378 build_libtool_libs=$enable_shared
16380 # Whether or not to build static libraries.
16381 build_old_libs=$enable_static
16383 # Whether or not to add -lc for building shared libraries.
16384 build_libtool_need_lc=$archive_cmds_need_lc_F77
16386 # Whether or not to disallow shared libs when runtime libs are static
16387 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16389 # Whether or not to optimize for fast installation.
16390 fast_install=$enable_fast_install
16393 host_alias=$host_alias
16397 # The build system.
16398 build_alias=$build_alias
16402 # An echo program that does not interpret backslashes.
16407 AR_FLAGS=$lt_AR_FLAGS
16412 # LTCC compiler flags.
16413 LTCFLAGS=$lt_LTCFLAGS
16415 # A language-specific compiler.
16416 CC=$lt_compiler_F77
16418 # Is the compiler the GNU C compiler?
16424 # The linker used to build libraries.
16427 # Whether we need hard or soft links.
16430 # A BSD-compatible nm program.
16433 # A symbol stripping program
16436 # Used to examine libraries when file_magic_cmd begins "file"
16437 MAGIC_CMD=$MAGIC_CMD
16439 # Used on cygwin: DLL creation program.
16442 # Used on cygwin: object dumper.
16445 # Used on cygwin: assembler.
16448 # The name of the directory that contains temporary libtool files.
16451 # How to create reloadable object files.
16452 reload_flag=$lt_reload_flag
16453 reload_cmds=$lt_reload_cmds
16455 # How to pass a linker flag through the compiler.
16456 wl=$lt_lt_prog_compiler_wl_F77
16458 # Object file suffix (normally "o").
16459 objext="$ac_objext"
16461 # Old archive suffix (normally "a").
16464 # Shared library suffix (normally ".so").
16465 shrext_cmds='$shrext_cmds'
16467 # Executable file suffix (normally "").
16470 # Additional compiler flags for building library objects.
16471 pic_flag=$lt_lt_prog_compiler_pic_F77
16474 # What is the maximum length of a command?
16475 max_cmd_len=$lt_cv_sys_max_cmd_len
16477 # Does compiler simultaneously support -c and -o options?
16478 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16480 # Must we lock files when doing compilation?
16481 need_locks=$lt_need_locks
16483 # Do we need the lib prefix for modules?
16484 need_lib_prefix=$need_lib_prefix
16486 # Do we need a version for libraries?
16487 need_version=$need_version
16489 # Whether dlopen is supported.
16490 dlopen_support=$enable_dlopen
16492 # Whether dlopen of programs is supported.
16493 dlopen_self=$enable_dlopen_self
16495 # Whether dlopen of statically linked programs is supported.
16496 dlopen_self_static=$enable_dlopen_self_static
16498 # Compiler flag to prevent dynamic linking.
16499 link_static_flag=$lt_lt_prog_compiler_static_F77
16501 # Compiler flag to turn off builtin functions.
16502 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16504 # Compiler flag to allow reflexive dlopens.
16505 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16507 # Compiler flag to generate shared objects directly from archives.
16508 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16510 # Compiler flag to generate thread-safe objects.
16511 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16513 # Library versioning type.
16514 version_type=$version_type
16516 # Format of library name prefix.
16517 libname_spec=$lt_libname_spec
16519 # List of archive names. First name is the real one, the rest are links.
16520 # The last name is the one that the linker finds with -lNAME.
16521 library_names_spec=$lt_library_names_spec
16523 # The coded name of the library, if different from the real name.
16524 soname_spec=$lt_soname_spec
16526 # Commands used to build and install an old-style archive.
16528 old_archive_cmds=$lt_old_archive_cmds_F77
16529 old_postinstall_cmds=$lt_old_postinstall_cmds
16530 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16532 # Create an old-style archive from a shared archive.
16533 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16535 # Create a temporary old-style archive to link instead of a shared archive.
16536 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16538 # Commands used to build and install a shared archive.
16539 archive_cmds=$lt_archive_cmds_F77
16540 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16541 postinstall_cmds=$lt_postinstall_cmds
16542 postuninstall_cmds=$lt_postuninstall_cmds
16544 # Commands used to build a loadable module (assumed same as above if empty)
16545 module_cmds=$lt_module_cmds_F77
16546 module_expsym_cmds=$lt_module_expsym_cmds_F77
16548 # Commands to strip libraries.
16549 old_striplib=$lt_old_striplib
16550 striplib=$lt_striplib
16552 # Dependencies to place before the objects being linked to create a
16554 predep_objects=$lt_predep_objects_F77
16556 # Dependencies to place after the objects being linked to create a
16558 postdep_objects=$lt_postdep_objects_F77
16560 # Dependencies to place before the objects being linked to create a
16562 predeps=$lt_predeps_F77
16564 # Dependencies to place after the objects being linked to create a
16566 postdeps=$lt_postdeps_F77
16568 # The library search path used internally by the compiler when linking
16569 # a shared library.
16570 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16572 # Method to check whether dependent libraries are shared objects.
16573 deplibs_check_method=$lt_deplibs_check_method
16575 # Command to use when deplibs_check_method == file_magic.
16576 file_magic_cmd=$lt_file_magic_cmd
16578 # Flag that allows shared libraries with undefined symbols to be built.
16579 allow_undefined_flag=$lt_allow_undefined_flag_F77
16581 # Flag that forces no undefined symbols.
16582 no_undefined_flag=$lt_no_undefined_flag_F77
16584 # Commands used to finish a libtool library installation in a directory.
16585 finish_cmds=$lt_finish_cmds
16587 # Same as above, but a single script fragment to be evaled but not shown.
16588 finish_eval=$lt_finish_eval
16590 # Take the output of nm and produce a listing of raw symbols and C names.
16591 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16593 # Transform the output of nm in a proper C declaration
16594 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16596 # Transform the output of nm in a C name address pair
16597 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16599 # This is the shared library runtime path variable.
16600 runpath_var=$runpath_var
16602 # This is the shared library path variable.
16603 shlibpath_var=$shlibpath_var
16605 # Is shlibpath searched before the hard-coded library search path?
16606 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16608 # How to hardcode a shared library path into an executable.
16609 hardcode_action=$hardcode_action_F77
16611 # Whether we should hardcode library paths into libraries.
16612 hardcode_into_libs=$hardcode_into_libs
16614 # Flag to hardcode \$libdir into a binary during linking.
16615 # This must work even if \$libdir does not exist.
16616 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16618 # If ld is used when linking, flag to hardcode \$libdir into
16619 # a binary during linking. This must work even if \$libdir does
16621 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16623 # Whether we need a single -rpath flag with a separated argument.
16624 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16626 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16627 # resulting binary.
16628 hardcode_direct=$hardcode_direct_F77
16630 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16631 # resulting binary.
16632 hardcode_minus_L=$hardcode_minus_L_F77
16634 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16635 # the resulting binary.
16636 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16638 # Set to yes if building a shared library automatically hardcodes DIR into the library
16639 # and all subsequent libraries and executables linked against it.
16640 hardcode_automatic=$hardcode_automatic_F77
16642 # Variables whose values should be saved in libtool wrapper scripts and
16643 # restored at relink time.
16644 variables_saved_for_relink="$variables_saved_for_relink"
16646 # Whether libtool must link a program against all its dependency libraries.
16647 link_all_deplibs=$link_all_deplibs_F77
16649 # Compile-time system search path for libraries
16650 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16652 # Run-time system search path for libraries
16653 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16655 # Fix the shell variable \$srcfile for the compiler.
16656 fix_srcfile_path=$lt_fix_srcfile_path
16658 # Set to yes if exported symbols are required.
16659 always_export_symbols=$always_export_symbols_F77
16661 # The commands to list exported symbols.
16662 export_symbols_cmds=$lt_export_symbols_cmds_F77
16664 # The commands to extract the exported symbol list from a shared archive.
16665 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16667 # Symbols that should not be listed in the preloaded symbols.
16668 exclude_expsyms=$lt_exclude_expsyms_F77
16670 # Symbols that must always be exported.
16671 include_expsyms=$lt_include_expsyms_F77
16673 # ### END LIBTOOL TAG CONFIG: $tagname
16679 # If there is no Makefile yet, we rely on a make rule to execute
16680 # `config.status --recheck' to rerun these tests and create the
16681 # libtool script then.
16682 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16683 if test -f "$ltmain_in"; then
16684 test -f Makefile
&& make "$ltmain"
16690 ac_cpp
='$CPP $CPPFLAGS'
16691 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16692 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16693 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
16703 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16706 # Source file extension for Java test sources.
16709 # Object file extension for compiled Java test sources.
16713 # Code to be used in simple compile tests
16714 lt_simple_compile_test_code
="class foo {}"
16716 # Code to be used in simple link tests
16717 lt_simple_link_test_code
='public class conftest { public static void main(String[] argv) {}; }'
16719 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16721 # If no C compiler was specified, use CC.
16724 # If no C compiler flags were specified, use CFLAGS.
16725 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
16727 # Allow CC to be a program name with arguments.
16731 # save warnings/boilerplate of simple test code
16732 ac_outfile
=conftest.
$ac_objext
16733 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
16734 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
16735 _lt_compiler_boilerplate
=`cat conftest.err`
16738 ac_outfile
=conftest.
$ac_objext
16739 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
16740 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
16741 _lt_linker_boilerplate
=`cat conftest.err`
16745 # Allow CC to be a program name with arguments.
16750 for cc_temp
in $compiler""; do
16752 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
16753 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
16758 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16761 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16762 archive_cmds_need_lc_GCJ
=no
16764 old_archive_cmds_GCJ
=$old_archive_cmds
16767 ## There is no encapsulation within the following macros, do not change
16768 ## the running order or otherwise move them around unless you know exactly
16769 ## what you are doing...
16771 lt_prog_compiler_no_builtin_flag_GCJ
=
16773 if test "$GCC" = yes; then
16774 lt_prog_compiler_no_builtin_flag_GCJ
=' -fno-builtin'
16777 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16778 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16779 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16780 echo $ECHO_N "(cached) $ECHO_C" >&6
16782 lt_cv_prog_compiler_rtti_exceptions
=no
16783 ac_outfile
=conftest.
$ac_objext
16784 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16785 lt_compiler_flag
="-fno-rtti -fno-exceptions"
16786 # Insert the option either (1) after the last *FLAGS variable, or
16787 # (2) before a word containing "conftest.", or (3) at the end.
16788 # Note that $ac_compile itself does not contain backslashes and begins
16789 # with a dollar sign (not a hyphen), so the echo should work correctly.
16790 # The option is referenced via a variable to avoid confusing sed.
16791 lt_compile
=`echo "$ac_compile" | $SED \
16792 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16793 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16794 -e 's:$: $lt_compiler_flag:'`
16795 (eval echo "\"\$as_me:16795: $lt_compile\"" >&5)
16796 (eval "$lt_compile" 2>conftest.err
)
16798 cat conftest.err
>&5
16799 echo "$as_me:16799: \$? = $ac_status" >&5
16800 if (exit $ac_status) && test -s "$ac_outfile"; then
16801 # The compiler can only warn and ignore the option if not recognized
16802 # So say no if there are warnings other than the usual output.
16803 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
16804 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16805 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
16806 lt_cv_prog_compiler_rtti_exceptions
=yes
16812 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16813 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16815 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
16816 lt_prog_compiler_no_builtin_flag_GCJ
="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16823 lt_prog_compiler_wl_GCJ
=
16824 lt_prog_compiler_pic_GCJ
=
16825 lt_prog_compiler_static_GCJ
=
16827 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16828 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16830 if test "$GCC" = yes; then
16831 lt_prog_compiler_wl_GCJ
='-Wl,'
16832 lt_prog_compiler_static_GCJ
='-static'
16836 # All AIX code is PIC.
16837 if test "$host_cpu" = ia64
; then
16838 # AIX 5 now supports IA64 processor
16839 lt_prog_compiler_static_GCJ
='-Bstatic'
16844 # FIXME: we need at least 68020 code to build shared libraries, but
16845 # adding the `-m68020' flag to GCC prevents building anything better,
16847 lt_prog_compiler_pic_GCJ
='-m68020 -resident32 -malways-restore-a4'
16850 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
16851 # PIC is the default for these OSes.
16854 mingw
* | cygwin
* | pw32
* | os2
*)
16855 # This hack is so that the source file can tell whether it is being
16856 # built for inclusion in a dll (and should export symbols for example).
16857 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16858 # (--disable-auto-import) libraries
16859 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
16862 darwin
* | rhapsody
*)
16863 # PIC is the default on this platform
16864 # Common symbols not allowed in MH_DYLIB files
16865 lt_prog_compiler_pic_GCJ
='-fno-common'
16869 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16870 # Instead, we relocate shared libraries at runtime.
16874 # Just because we use GCC doesn't mean we suddenly get shared libraries
16875 # on systems that don't support them.
16876 lt_prog_compiler_can_build_shared_GCJ
=no
16881 if test -d /usr
/nec
; then
16882 lt_prog_compiler_pic_GCJ
=-Kconform_pic
16887 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16888 # not for PA HP-UX.
16894 lt_prog_compiler_pic_GCJ
='-fPIC'
16900 lt_prog_compiler_pic_GCJ
='-fPIC'
16904 # PORTME Check for flag to pass linker flags through the system compiler.
16907 lt_prog_compiler_wl_GCJ
='-Wl,'
16908 if test "$host_cpu" = ia64
; then
16909 # AIX 5 now supports IA64 processor
16910 lt_prog_compiler_static_GCJ
='-Bstatic'
16912 lt_prog_compiler_static_GCJ
='-bnso -bI:/lib/syscalls.exp'
16916 # PIC is the default on this platform
16917 # Common symbols not allowed in MH_DYLIB files
16918 case $cc_basename in
16920 lt_prog_compiler_pic_GCJ
='-qnocommon'
16921 lt_prog_compiler_wl_GCJ
='-Wl,'
16926 mingw
* | cygwin
* | pw32
* | os2
*)
16927 # This hack is so that the source file can tell whether it is being
16928 # built for inclusion in a dll (and should export symbols for example).
16929 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
16932 hpux9
* | hpux10
* | hpux11
*)
16933 lt_prog_compiler_wl_GCJ
='-Wl,'
16934 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16935 # not for PA HP-UX.
16941 lt_prog_compiler_pic_GCJ
='+Z'
16944 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16945 lt_prog_compiler_static_GCJ
='${wl}-a ${wl}archive'
16948 irix5
* | irix6
* | nonstopux
*)
16949 lt_prog_compiler_wl_GCJ
='-Wl,'
16950 # PIC (with -KPIC) is the default.
16951 lt_prog_compiler_static_GCJ
='-non_shared'
16955 lt_prog_compiler_pic_GCJ
='-KPIC'
16956 lt_prog_compiler_static_GCJ
='-Bstatic'
16959 linux
* | k
*bsd
*-gnu)
16960 case $cc_basename in
16962 lt_prog_compiler_wl_GCJ
='-Wl,'
16963 lt_prog_compiler_pic_GCJ
='-KPIC'
16964 lt_prog_compiler_static_GCJ
='-static'
16966 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
16967 # Portland Group compilers (*not* the Pentium gcc compiler,
16968 # which looks to be a dead project)
16969 lt_prog_compiler_wl_GCJ
='-Wl,'
16970 lt_prog_compiler_pic_GCJ
='-fpic'
16971 lt_prog_compiler_static_GCJ
='-Bstatic'
16974 lt_prog_compiler_wl_GCJ
='-Wl,'
16975 # All Alpha code is PIC.
16976 lt_prog_compiler_static_GCJ
='-non_shared'
16979 case `$CC -V 2>&1 | sed 5q` in
16982 lt_prog_compiler_pic_GCJ
='-KPIC'
16983 lt_prog_compiler_static_GCJ
='-Bstatic'
16984 lt_prog_compiler_wl_GCJ
='-Wl,'
16987 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16988 lt_prog_compiler_pic_GCJ
='-KPIC'
16989 lt_prog_compiler_static_GCJ
='-Bstatic'
16990 lt_prog_compiler_wl_GCJ
=''
16997 osf3
* | osf4
* | osf5
*)
16998 lt_prog_compiler_wl_GCJ
='-Wl,'
16999 # All OSF/1 code is PIC.
17000 lt_prog_compiler_static_GCJ
='-non_shared'
17004 lt_prog_compiler_static_GCJ
='-non_shared'
17008 lt_prog_compiler_pic_GCJ
='-KPIC'
17009 lt_prog_compiler_static_GCJ
='-Bstatic'
17010 case $cc_basename in
17011 f77
* | f90
* | f95
*)
17012 lt_prog_compiler_wl_GCJ
='-Qoption ld ';;
17014 lt_prog_compiler_wl_GCJ
='-Wl,';;
17019 lt_prog_compiler_wl_GCJ
='-Qoption ld '
17020 lt_prog_compiler_pic_GCJ
='-PIC'
17021 lt_prog_compiler_static_GCJ
='-Bstatic'
17024 sysv4 | sysv4.2uw2
* | sysv4.3
*)
17025 lt_prog_compiler_wl_GCJ
='-Wl,'
17026 lt_prog_compiler_pic_GCJ
='-KPIC'
17027 lt_prog_compiler_static_GCJ
='-Bstatic'
17031 if test -d /usr
/nec
;then
17032 lt_prog_compiler_pic_GCJ
='-Kconform_pic'
17033 lt_prog_compiler_static_GCJ
='-Bstatic'
17037 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
17038 lt_prog_compiler_wl_GCJ
='-Wl,'
17039 lt_prog_compiler_pic_GCJ
='-KPIC'
17040 lt_prog_compiler_static_GCJ
='-Bstatic'
17044 lt_prog_compiler_wl_GCJ
='-Wl,'
17045 lt_prog_compiler_can_build_shared_GCJ
=no
17049 lt_prog_compiler_pic_GCJ
='-pic'
17050 lt_prog_compiler_static_GCJ
='-Bstatic'
17054 lt_prog_compiler_can_build_shared_GCJ
=no
17059 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17060 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17063 # Check to make sure the PIC flag actually works.
17065 if test -n "$lt_prog_compiler_pic_GCJ"; then
17067 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17068 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17069 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17070 echo $ECHO_N "(cached) $ECHO_C" >&6
17072 lt_prog_compiler_pic_works_GCJ
=no
17073 ac_outfile
=conftest.
$ac_objext
17074 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17075 lt_compiler_flag
="$lt_prog_compiler_pic_GCJ"
17076 # Insert the option either (1) after the last *FLAGS variable, or
17077 # (2) before a word containing "conftest.", or (3) at the end.
17078 # Note that $ac_compile itself does not contain backslashes and begins
17079 # with a dollar sign (not a hyphen), so the echo should work correctly.
17080 # The option is referenced via a variable to avoid confusing sed.
17081 lt_compile
=`echo "$ac_compile" | $SED \
17082 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17083 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17084 -e 's:$: $lt_compiler_flag:'`
17085 (eval echo "\"\$as_me:17085: $lt_compile\"" >&5)
17086 (eval "$lt_compile" 2>conftest.err
)
17088 cat conftest.err
>&5
17089 echo "$as_me:17089: \$? = $ac_status" >&5
17090 if (exit $ac_status) && test -s "$ac_outfile"; then
17091 # The compiler can only warn and ignore the option if not recognized
17092 # So say no if there are warnings other than the usual output.
17093 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
17094 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
17095 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
17096 lt_prog_compiler_pic_works_GCJ
=yes
17102 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17103 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17105 if test x
"$lt_prog_compiler_pic_works_GCJ" = xyes
; then
17106 case $lt_prog_compiler_pic_GCJ in
17108 *) lt_prog_compiler_pic_GCJ
=" $lt_prog_compiler_pic_GCJ" ;;
17111 lt_prog_compiler_pic_GCJ
=
17112 lt_prog_compiler_can_build_shared_GCJ
=no
17117 # For platforms which do not support PIC, -DPIC is meaningless:
17119 lt_prog_compiler_pic_GCJ
=
17122 lt_prog_compiler_pic_GCJ
="$lt_prog_compiler_pic_GCJ"
17127 # Check to make sure the static flag actually works.
17129 wl
=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_GCJ\"
17130 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17131 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17132 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17133 echo $ECHO_N "(cached) $ECHO_C" >&6
17135 lt_prog_compiler_static_works_GCJ
=no
17136 save_LDFLAGS
="$LDFLAGS"
17137 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
17138 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
17139 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
17140 # The linker can only warn and ignore the option if not recognized
17141 # So say no if there are warnings
17142 if test -s conftest.err
; then
17143 # Append any errors to the config.log.
17144 cat conftest.err
1>&5
17145 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
17146 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
17147 if diff conftest.exp conftest.er2
>/dev
/null
; then
17148 lt_prog_compiler_static_works_GCJ
=yes
17151 lt_prog_compiler_static_works_GCJ
=yes
17155 LDFLAGS
="$save_LDFLAGS"
17158 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17159 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17161 if test x
"$lt_prog_compiler_static_works_GCJ" = xyes
; then
17164 lt_prog_compiler_static_GCJ
=
17168 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17169 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17170 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17171 echo $ECHO_N "(cached) $ECHO_C" >&6
17173 lt_cv_prog_compiler_c_o_GCJ
=no
17174 $rm -r conftest
2>/dev
/null
17178 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17180 lt_compiler_flag
="-o out/conftest2.$ac_objext"
17181 # Insert the option either (1) after the last *FLAGS variable, or
17182 # (2) before a word containing "conftest.", or (3) at the end.
17183 # Note that $ac_compile itself does not contain backslashes and begins
17184 # with a dollar sign (not a hyphen), so the echo should work correctly.
17185 lt_compile
=`echo "$ac_compile" | $SED \
17186 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17187 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17188 -e 's:$: $lt_compiler_flag:'`
17189 (eval echo "\"\$as_me:17189: $lt_compile\"" >&5)
17190 (eval "$lt_compile" 2>out
/conftest.err
)
17192 cat out
/conftest.err
>&5
17193 echo "$as_me:17193: \$? = $ac_status" >&5
17194 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
17196 # The compiler can only warn and ignore the option if not recognized
17197 # So say no if there are warnings
17198 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
17199 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
17200 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
17201 lt_cv_prog_compiler_c_o_GCJ
=yes
17206 # SGI C++ compiler will create directory out/ii_files/ for
17207 # template instantiation
17208 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
17209 $rm out
/* && rmdir out
17215 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17216 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17219 hard_links
="nottested"
17220 if test "$lt_cv_prog_compiler_c_o_GCJ" = no
&& test "$need_locks" != no
; then
17221 # do not overwrite the value of need_locks provided by the user
17222 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17223 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17226 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
17228 ln conftest.a conftest.b
2>&5 || hard_links
=no
17229 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
17230 { echo "$as_me:$LINENO: result: $hard_links" >&5
17231 echo "${ECHO_T}$hard_links" >&6; }
17232 if test "$hard_links" = no
; then
17233 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17234 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17241 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17242 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17245 allow_undefined_flag_GCJ
=
17246 enable_shared_with_static_runtimes_GCJ
=no
17248 archive_expsym_cmds_GCJ
=
17249 old_archive_From_new_cmds_GCJ
=
17250 old_archive_from_expsyms_cmds_GCJ
=
17251 export_dynamic_flag_spec_GCJ
=
17252 whole_archive_flag_spec_GCJ
=
17253 thread_safe_flag_spec_GCJ
=
17254 hardcode_libdir_flag_spec_GCJ
=
17255 hardcode_libdir_flag_spec_ld_GCJ
=
17256 hardcode_libdir_separator_GCJ
=
17257 hardcode_direct_GCJ
=no
17258 hardcode_minus_L_GCJ
=no
17259 hardcode_shlibpath_var_GCJ
=unsupported
17260 link_all_deplibs_GCJ
=unknown
17261 hardcode_automatic_GCJ
=no
17263 module_expsym_cmds_GCJ
=
17264 always_export_symbols_GCJ
=no
17265 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17266 # include_expsyms should be a list of space-separated symbols to be *always*
17267 # included in the symbol list
17268 include_expsyms_GCJ
=
17269 # exclude_expsyms can be an extended regexp of symbols to exclude
17270 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17271 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17272 # as well as any symbol that contains `d'.
17273 exclude_expsyms_GCJ
="_GLOBAL_OFFSET_TABLE_"
17274 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17275 # platforms (ab)use it in PIC code, but their linkers get confused if
17276 # the symbol is explicitly referenced. Since portable code cannot
17277 # rely on this symbol name, it's probably fine to never include it in
17278 # preloaded symbol tables.
17279 extract_expsyms_cmds
=
17280 # Just being paranoid about ensuring that cc_basename is set.
17281 for cc_temp
in $compiler""; do
17283 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
17284 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
17289 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17292 cygwin
* | mingw
* | pw32
*)
17293 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17294 # When not using gcc, we currently assume that we are using
17295 # Microsoft Visual C++.
17296 if test "$GCC" != yes; then
17301 # we just hope/assume this is gcc and not c89 (= MSVC++)
17310 if test "$with_gnu_ld" = yes; then
17311 # If archive_cmds runs LD, not CC, wlarc should be empty
17314 # Set some defaults for GNU ld with shared library support. These
17315 # are reset later if shared libraries are not supported. Putting them
17316 # here allows them to be overridden if necessary.
17317 runpath_var
=LD_RUN_PATH
17318 hardcode_libdir_flag_spec_GCJ
='${wl}--rpath ${wl}$libdir'
17319 export_dynamic_flag_spec_GCJ
='${wl}--export-dynamic'
17320 # ancient GNU ld didn't support --whole-archive et. al.
17321 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
17322 whole_archive_flag_spec_GCJ
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17324 whole_archive_flag_spec_GCJ
=
17326 supports_anon_versioning
=no
17327 case `$LD -v 2>/dev/null` in
17328 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
17329 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
17330 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
17331 *\
2.11.
*) ;; # other 2.11 versions
17332 *) supports_anon_versioning
=yes ;;
17335 # See if GNU ld supports shared libraries.
17337 aix3
* | aix4
* | aix5
*)
17338 # On AIX/PPC, the GNU linker is very broken
17339 if test "$host_cpu" != ia64
; then
17343 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17344 *** to be unable to reliably create shared libraries on AIX.
17345 *** Therefore, libtool is disabling shared libraries support. If you
17346 *** really care for shared libraries, you may want to modify your PATH
17347 *** so that a non-GNU linker is found, and then restart.
17354 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)'
17355 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17356 hardcode_minus_L_GCJ
=yes
17358 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17359 # that the semantics of dynamic libraries on AmigaOS, at least up
17360 # to version 4, is to share data among multiple programs linked
17361 # with the same dynamic library. Since this doesn't match the
17362 # behavior of shared libraries on other platforms, we can't use
17368 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
17369 allow_undefined_flag_GCJ
=unsupported
17370 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17371 # support --undefined. This deserves some investigation. FIXME
17372 archive_cmds_GCJ
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17378 cygwin
* | mingw
* | pw32
*)
17379 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17380 # as there is no search path for DLLs.
17381 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17382 allow_undefined_flag_GCJ
=unsupported
17383 always_export_symbols_GCJ
=no
17384 enable_shared_with_static_runtimes_GCJ
=yes
17385 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17387 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
17388 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17389 # If the export-symbols file already is a .def file (1st line
17390 # is EXPORTS), use it as is; otherwise, prepend...
17391 archive_expsym_cmds_GCJ
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17392 cp $export_symbols $output_objdir/$soname.def;
17394 echo EXPORTS > $output_objdir/$soname.def;
17395 cat $export_symbols >> $output_objdir/$soname.def;
17397 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17404 hardcode_direct_GCJ
=no
17405 hardcode_shlibpath_var_GCJ
=no
17406 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
17407 export_dynamic_flag_spec_GCJ
='${wl}-E'
17408 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17409 # Instead, shared libraries are loaded at an image base (0x10000000 by
17410 # default) and relocated if they conflict, which is a slow very memory
17411 # consuming and fragmenting process. To avoid this, we pick a random,
17412 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17413 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17414 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'
17415 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'
17418 gnu
* | linux
* | k
*bsd
*-gnu)
17419 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
17421 case $cc_basename,$host_cpu in
17422 pgcc
*) # Portland Group C compiler
17423 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'
17424 tmp_addflag
=' $pic_flag'
17426 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
17427 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'
17428 tmp_addflag
=' $pic_flag -Mnomain' ;;
17429 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
17430 tmp_addflag
=' -i_dynamic' ;;
17431 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
17432 tmp_addflag
=' -i_dynamic -nofor_main' ;;
17433 ifc
* | ifort
*) # Intel Fortran compiler
17434 tmp_addflag
=' -nofor_main' ;;
17436 case `$CC -V 2>&1 | sed 5q` in
17437 *Sun\ C
*) # Sun C 5.9
17438 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'
17439 tmp_sharedflag
='-G' ;;
17440 *Sun\ F
*) # Sun Fortran 8.3
17441 tmp_sharedflag
='-G' ;;
17443 tmp_sharedflag
='-shared' ;;
17445 archive_cmds_GCJ
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17447 if test $supports_anon_versioning = yes; then
17448 archive_expsym_cmds_GCJ
='$echo "{ global:" > $output_objdir/$libname.ver~
17449 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17450 $echo "local: *; };" >> $output_objdir/$libname.ver~
17451 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17459 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
17460 archive_cmds_GCJ
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17463 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17464 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17469 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
17473 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17474 *** create shared libraries on Solaris systems. Therefore, libtool
17475 *** is disabling shared libraries support. We urge you to upgrade GNU
17476 *** binutils to release 2.9.1 or newer. Another option is to modify
17477 *** your PATH or compiler configuration so that the native linker is
17478 *** used, and then restart.
17481 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
17482 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17483 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17489 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
17490 case `$LD -v 2>&1` in
17491 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
17495 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17496 *** reliably create shared libraries on SCO systems. Therefore, libtool
17497 *** is disabling shared libraries support. We urge you to upgrade GNU
17498 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17499 *** your PATH or compiler configuration so that the native linker is
17500 *** used, and then restart.
17505 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
17506 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17507 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17508 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17517 archive_cmds_GCJ
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17519 hardcode_direct_GCJ
=yes
17520 hardcode_shlibpath_var_GCJ
=no
17524 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
17525 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17526 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17533 if test "$ld_shlibs_GCJ" = no
; then
17535 hardcode_libdir_flag_spec_GCJ
=
17536 export_dynamic_flag_spec_GCJ
=
17537 whole_archive_flag_spec_GCJ
=
17540 # PORTME fill in a description of your system's linker (not GNU ld)
17543 allow_undefined_flag_GCJ
=unsupported
17544 always_export_symbols_GCJ
=yes
17545 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'
17546 # Note: this linker hardcodes the directories in LIBPATH if there
17547 # are no directories specified by -L.
17548 hardcode_minus_L_GCJ
=yes
17549 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17550 # Neither direct hardcoding nor static linking is supported with a
17552 hardcode_direct_GCJ
=unsupported
17557 if test "$host_cpu" = ia64
; then
17558 # On IA64, the linker does run time linking by default, so we don't
17559 # have to do anything special.
17560 aix_use_runtimelinking
=no
17561 exp_sym_flag
='-Bexport'
17564 # If we're using GNU nm, then we don't want the "-C" option.
17565 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17566 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
17567 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'
17569 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'
17571 aix_use_runtimelinking
=no
17573 # Test if we are trying to use run time linking or normal
17574 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17575 # need to do runtime linking.
17576 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
17577 for ld_flag
in $LDFLAGS; do
17578 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
17579 aix_use_runtimelinking
=yes
17586 exp_sym_flag
='-bexport'
17587 no_entry_flag
='-bnoentry'
17590 # When large executables or shared objects are built, AIX ld can
17591 # have problems creating the table of contents. If linking a library
17592 # or program results in "error TOC overflow" add -mminimal-toc to
17593 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17594 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17596 archive_cmds_GCJ
=''
17597 hardcode_direct_GCJ
=yes
17598 hardcode_libdir_separator_GCJ
=':'
17599 link_all_deplibs_GCJ
=yes
17601 if test "$GCC" = yes; then
17602 case $host_os in aix4.
[012]|aix4.
[012].
*)
17603 # We only want to do this on AIX 4.2 and lower, the check
17604 # below for broken collect2 doesn't work under 4.3+
17605 collect2name
=`${CC} -print-prog-name=collect2`
17606 if test -f "$collect2name" && \
17607 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
17609 # We have reworked collect2
17612 # We have old collect2
17613 hardcode_direct_GCJ
=unsupported
17614 # It fails to find uninstalled libraries when the uninstalled
17615 # path is not listed in the libpath. Setting hardcode_minus_L
17616 # to unsupported forces relinking
17617 hardcode_minus_L_GCJ
=yes
17618 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17619 hardcode_libdir_separator_GCJ
=
17623 shared_flag
='-shared'
17624 if test "$aix_use_runtimelinking" = yes; then
17625 shared_flag
="$shared_flag "'${wl}-G'
17629 if test "$host_cpu" = ia64
; then
17630 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17631 # chokes on -Wl,-G. The following line is correct:
17634 if test "$aix_use_runtimelinking" = yes; then
17635 shared_flag
='${wl}-G'
17637 shared_flag
='${wl}-bM:SRE'
17642 # It seems that -bexpall does not export symbols beginning with
17643 # underscore (_), so it is better to generate a list of symbols to export.
17644 always_export_symbols_GCJ
=yes
17645 if test "$aix_use_runtimelinking" = yes; then
17646 # Warning - without using the other runtime loading flags (-brtl),
17647 # -berok will link without error, but may produce a broken library.
17648 allow_undefined_flag_GCJ
='-berok'
17649 # Determine the default libpath from the value encoded in an empty executable.
17650 cat >conftest.
$ac_ext <<_ACEOF
17653 cat confdefs.h
>>conftest.
$ac_ext
17654 cat >>conftest.
$ac_ext <<_ACEOF
17655 /* end confdefs.h. */
17665 rm -f conftest.
$ac_objext conftest
$ac_exeext
17666 if { (ac_try
="$ac_link"
17667 case "(($ac_try" in
17668 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17669 *) ac_try_echo=$ac_try;;
17671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17672 (eval "$ac_link") 2>conftest.er1
17674 grep -v '^ *+' conftest.er1 >conftest.err
17676 cat conftest.err >&5
17677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678 (exit $ac_status); } && {
17679 test -z "$ac_c_werror_flag" ||
17680 test ! -s conftest.err
17681 } && test -s conftest$ac_exeext &&
17682 $as_test_x conftest$ac_exeext; then
17684 lt_aix_libpath_sed='
17685 /Import File Strings/,/^$/ {
17691 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
17692 # Check for a 64-bit object if we didn't find anything.
17693 if test -z "$aix_libpath"; then
17694 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
17697 echo "$as_me: failed program was:" >&5
17698 sed 's/^/| /' conftest.$ac_ext >&5
17703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17704 conftest$ac_exeext conftest.$ac_ext
17705 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17707 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17708 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"
17710 if test "$host_cpu" = ia64; then
17711 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17712 allow_undefined_flag_GCJ="-z nodefs"
17713 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"
17715 # Determine the default libpath from the value encoded in an empty executable.
17716 cat >conftest.$ac_ext <<_ACEOF
17719 cat confdefs.h >>conftest.$ac_ext
17720 cat >>conftest.$ac_ext <<_ACEOF
17721 /* end confdefs.h. */
17731 rm -f conftest.$ac_objext conftest$ac_exeext
17732 if { (ac_try="$ac_link"
17733 case "(($ac_try" in
17734 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17735 *) ac_try_echo
=$ac_try;;
17737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17738 (eval "$ac_link") 2>conftest.er1
17740 grep -v '^ *+' conftest.er1
>conftest.err
17742 cat conftest.err
>&5
17743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744 (exit $ac_status); } && {
17745 test -z "$ac_c_werror_flag" ||
17746 test ! -s conftest.err
17747 } && test -s conftest
$ac_exeext &&
17748 $as_test_x conftest
$ac_exeext; then
17750 lt_aix_libpath_sed
='
17751 /Import File Strings/,/^$/ {
17757 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17758 # Check for a 64-bit object if we didn't find anything.
17759 if test -z "$aix_libpath"; then
17760 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17763 echo "$as_me: failed program was:" >&5
17764 sed 's/^/| /' conftest.
$ac_ext >&5
17769 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17770 conftest
$ac_exeext conftest.
$ac_ext
17771 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17773 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
17774 # Warning - without using the other run time loading flags,
17775 # -berok will link without error, but may produce a broken library.
17776 no_undefined_flag_GCJ
=' ${wl}-bernotok'
17777 allow_undefined_flag_GCJ
=' ${wl}-berok'
17778 # Exported symbols can be pulled into shared objects from archives
17779 whole_archive_flag_spec_GCJ
='$convenience'
17780 archive_cmds_need_lc_GCJ
=yes
17781 # This is similar to how AIX traditionally builds its shared libraries.
17782 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'
17788 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)'
17789 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17790 hardcode_minus_L_GCJ
=yes
17791 # see comment about different semantics on the GNU ld section
17796 export_dynamic_flag_spec_GCJ
=-rdynamic
17799 cygwin
* | mingw
* | pw32
*)
17800 # When not using gcc, we currently assume that we are using
17801 # Microsoft Visual C++.
17802 # hardcode_libdir_flag_spec is actually meaningless, as there is
17803 # no search path for DLLs.
17804 hardcode_libdir_flag_spec_GCJ
=' '
17805 allow_undefined_flag_GCJ
=unsupported
17806 # Tell ltmain to make .lib files, not .a files.
17808 # Tell ltmain to make .dll files, not .so files.
17810 # FIXME: Setting linknames here is a bad hack.
17811 archive_cmds_GCJ
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17812 # The linker will automatically build a .lib file if we build a DLL.
17813 old_archive_From_new_cmds_GCJ
='true'
17814 # FIXME: Should let the user specify the lib program.
17815 old_archive_cmds_GCJ
='lib -OUT:$oldlib$oldobjs$old_deplibs'
17816 fix_srcfile_path_GCJ
='`cygpath -w "$srcfile"`'
17817 enable_shared_with_static_runtimes_GCJ
=yes
17820 darwin
* | rhapsody
*)
17822 rhapsody
* | darwin1.
[012])
17823 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}suppress'
17826 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17827 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17829 case ${MACOSX_DEPLOYMENT_TARGET} in
17831 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17834 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}dynamic_lookup'
17840 archive_cmds_need_lc_GCJ
=no
17841 hardcode_direct_GCJ
=no
17842 hardcode_automatic_GCJ
=yes
17843 hardcode_shlibpath_var_GCJ
=unsupported
17844 whole_archive_flag_spec_GCJ
=''
17845 link_all_deplibs_GCJ
=yes
17846 if test "$GCC" = yes ; then
17847 output_verbose_link_cmd
='echo'
17848 archive_cmds_GCJ
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17849 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17850 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17851 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}'
17852 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}'
17854 case $cc_basename in
17856 output_verbose_link_cmd
='echo'
17857 archive_cmds_GCJ
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17858 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17859 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17860 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}'
17861 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}'
17871 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17872 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17873 hardcode_shlibpath_var_GCJ
=no
17880 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17881 # support. Future versions do this automatically, but an explicit c++rt0.o
17882 # does not break anything, and helps significantly (at the cost of a little
17885 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17886 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17887 hardcode_direct_GCJ
=yes
17888 hardcode_shlibpath_var_GCJ
=no
17891 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17893 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17894 hardcode_direct_GCJ
=yes
17895 hardcode_minus_L_GCJ
=yes
17896 hardcode_shlibpath_var_GCJ
=no
17899 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17900 freebsd
* | dragonfly
*)
17901 archive_cmds_GCJ
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17902 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17903 hardcode_direct_GCJ
=yes
17904 hardcode_shlibpath_var_GCJ
=no
17908 if test "$GCC" = yes; then
17909 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'
17911 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'
17913 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17914 hardcode_libdir_separator_GCJ
=:
17915 hardcode_direct_GCJ
=yes
17917 # hardcode_minus_L: Not really in the search PATH,
17918 # but as the default location of the library.
17919 hardcode_minus_L_GCJ
=yes
17920 export_dynamic_flag_spec_GCJ
='${wl}-E'
17924 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
17925 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17927 archive_cmds_GCJ
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17929 if test "$with_gnu_ld" = no
; then
17930 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17931 hardcode_libdir_separator_GCJ
=:
17933 hardcode_direct_GCJ
=yes
17934 export_dynamic_flag_spec_GCJ
='${wl}-E'
17936 # hardcode_minus_L: Not really in the search PATH,
17937 # but as the default location of the library.
17938 hardcode_minus_L_GCJ
=yes
17943 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
17946 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17949 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17952 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17958 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17961 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17964 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17968 if test "$with_gnu_ld" = no
; then
17969 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17970 hardcode_libdir_separator_GCJ
=:
17974 hardcode_libdir_flag_spec_ld_GCJ
='+b $libdir'
17975 hardcode_direct_GCJ
=no
17976 hardcode_shlibpath_var_GCJ
=no
17979 hardcode_direct_GCJ
=yes
17980 export_dynamic_flag_spec_GCJ
='${wl}-E'
17982 # hardcode_minus_L: Not really in the search PATH,
17983 # but as the default location of the library.
17984 hardcode_minus_L_GCJ
=yes
17990 irix5
* | irix6
* | nonstopux
*)
17991 if test "$GCC" = yes; then
17992 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'
17994 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'
17995 hardcode_libdir_flag_spec_ld_GCJ
='-rpath $libdir'
17997 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17998 hardcode_libdir_separator_GCJ
=:
17999 link_all_deplibs_GCJ
=yes
18003 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
18004 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18006 archive_cmds_GCJ
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18008 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
18009 hardcode_direct_GCJ
=yes
18010 hardcode_shlibpath_var_GCJ
=no
18014 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18015 hardcode_direct_GCJ
=yes
18016 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
18017 hardcode_libdir_separator_GCJ
=:
18018 hardcode_shlibpath_var_GCJ
=no
18022 if test -f /usr
/libexec
/ld.so
; then
18023 hardcode_direct_GCJ
=yes
18024 hardcode_shlibpath_var_GCJ
=no
18025 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18026 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18027 archive_expsym_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18028 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
18029 export_dynamic_flag_spec_GCJ
='${wl}-E'
18032 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
18033 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18034 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
18037 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18038 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
18048 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
18049 hardcode_minus_L_GCJ
=yes
18050 allow_undefined_flag_GCJ
=unsupported
18051 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'
18052 old_archive_From_new_cmds_GCJ
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18056 if test "$GCC" = yes; then
18057 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
18058 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'
18060 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
18061 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'
18063 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
18064 hardcode_libdir_separator_GCJ
=:
18067 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
18068 if test "$GCC" = yes; then
18069 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
18070 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'
18071 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
18073 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
18074 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'
18075 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~
18076 $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'
18078 # Both c and cxx compiler support -rpath directly
18079 hardcode_libdir_flag_spec_GCJ
='-rpath $libdir'
18081 hardcode_libdir_separator_GCJ
=:
18085 no_undefined_flag_GCJ
=' -z text'
18086 if test "$GCC" = yes; then
18088 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18089 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18090 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18093 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18094 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18095 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18097 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
18098 hardcode_shlibpath_var_GCJ
=no
18100 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
18102 # The compiler driver will combine and reorder linker options,
18103 # but understands `-z linker_flag'. GCC discards it without `$wl',
18104 # but is careful enough not to reorder.
18105 # Supported since Solaris 2.6 (maybe 2.5.1?)
18106 if test "$GCC" = yes; then
18107 whole_archive_flag_spec_GCJ
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18109 whole_archive_flag_spec_GCJ
='-z allextract$convenience -z defaultextract'
18113 link_all_deplibs_GCJ
=yes
18117 if test "x$host_vendor" = xsequent
; then
18118 # Use $CC to link under sequent, because it throws in some extra .o
18119 # files that make .init and .fini sections work.
18120 archive_cmds_GCJ
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18122 archive_cmds_GCJ
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18124 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
18125 hardcode_direct_GCJ
=yes
18126 hardcode_minus_L_GCJ
=yes
18127 hardcode_shlibpath_var_GCJ
=no
18131 case $host_vendor in
18133 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18134 hardcode_direct_GCJ
=yes # is this really true???
18137 ## LD is ld it makes a PLAMLIB
18138 ## CC just makes a GrossModule.
18139 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18140 reload_cmds_GCJ
='$CC -r -o $output$reload_objs'
18141 hardcode_direct_GCJ
=no
18144 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18145 hardcode_direct_GCJ
=no
#Motorola manual says yes, but my tests say they lie
18148 runpath_var
='LD_RUN_PATH'
18149 hardcode_shlibpath_var_GCJ
=no
18153 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18154 hardcode_shlibpath_var_GCJ
=no
18155 export_dynamic_flag_spec_GCJ
='-Bexport'
18159 if test -d /usr
/nec
; then
18160 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18161 hardcode_shlibpath_var_GCJ
=no
18162 runpath_var
=LD_RUN_PATH
18163 hardcode_runpath_var
=yes
18168 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
18169 no_undefined_flag_GCJ
='${wl}-z,text'
18170 archive_cmds_need_lc_GCJ
=no
18171 hardcode_shlibpath_var_GCJ
=no
18172 runpath_var
='LD_RUN_PATH'
18174 if test "$GCC" = yes; then
18175 archive_cmds_GCJ
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18176 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18178 archive_cmds_GCJ
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18179 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18183 sysv5
* | sco3.2v5
* | sco5v6
*)
18184 # Note: We can NOT use -z defs as we might desire, because we do not
18185 # link with -lc, and that would cause any symbols used from libc to
18186 # always be unresolved, which means just about no library would
18187 # ever link correctly. If we're not using GNU ld we use -z text
18188 # though, which does catch some bad symbols but isn't as heavy-handed
18190 no_undefined_flag_GCJ
='${wl}-z,text'
18191 allow_undefined_flag_GCJ
='${wl}-z,nodefs'
18192 archive_cmds_need_lc_GCJ
=no
18193 hardcode_shlibpath_var_GCJ
=no
18194 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18195 hardcode_libdir_separator_GCJ
=':'
18196 link_all_deplibs_GCJ
=yes
18197 export_dynamic_flag_spec_GCJ
='${wl}-Bexport'
18198 runpath_var
='LD_RUN_PATH'
18200 if test "$GCC" = yes; then
18201 archive_cmds_GCJ
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18202 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18204 archive_cmds_GCJ
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18205 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18210 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18211 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
18212 hardcode_shlibpath_var_GCJ
=no
18221 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18222 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18223 test "$ld_shlibs_GCJ" = no
&& can_build_shared
=no
18226 # Do we need to explicitly link libc?
18228 case "x$archive_cmds_need_lc_GCJ" in
18230 # Assume -lc should be added
18231 archive_cmds_need_lc_GCJ
=yes
18233 if test "$enable_shared" = yes && test "$GCC" = yes; then
18234 case $archive_cmds_GCJ in
18236 # FIXME: we may have to deal with multi-command sequences.
18239 # Test whether the compiler implicitly links with -lc since on some
18240 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18241 # to ld, don't add -lc before -lgcc.
18242 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18243 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18245 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
18247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18248 (eval $ac_compile) 2>&5
18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); } 2>conftest.err
; then
18254 libobjs
=conftest.
$ac_objext
18256 wl
=$lt_prog_compiler_wl_GCJ
18257 pic_flag
=$lt_prog_compiler_pic_GCJ
18263 lt_save_allow_undefined_flag
=$allow_undefined_flag_GCJ
18264 allow_undefined_flag_GCJ
=
18265 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18266 (eval $archive_cmds_GCJ 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
18268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269 (exit $ac_status); }
18271 archive_cmds_need_lc_GCJ
=no
18273 archive_cmds_need_lc_GCJ
=yes
18275 allow_undefined_flag_GCJ
=$lt_save_allow_undefined_flag
18277 cat conftest.err
1>&5
18280 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18281 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18288 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18289 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18290 library_names_spec
=
18291 libname_spec
='lib$name'
18295 postuninstall_cmds
=
18299 shlibpath_overrides_runpath
=unknown
18301 dynamic_linker
="$host_os ld.so"
18302 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
18304 need_lib_prefix
=unknown
18305 hardcode_into_libs
=no
18307 # when you set need_version to no, make sure it does not cause -set_version
18308 # flags to be left without arguments
18309 need_version
=unknown
18314 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
18315 shlibpath_var
=LIBPATH
18317 # AIX 3 has no versioning support, so we append a major version to the name.
18318 soname_spec
='${libname}${release}${shared_ext}$major'
18325 hardcode_into_libs
=yes
18326 if test "$host_cpu" = ia64
; then
18327 # AIX 5 supports IA64
18328 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18329 shlibpath_var
=LD_LIBRARY_PATH
18331 # With GCC up to 2.95.x, collect2 would create an import file
18332 # for dependence libraries. The import file would start with
18333 # the line `#! .'. This would cause the generated library to
18334 # depend on `.', always an invalid library. This was fixed in
18335 # development snapshots of GCC prior to 3.0.
18337 aix4 | aix4.
[01] | aix4.
[01].
*)
18338 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18340 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
18343 can_build_shared
=no
18347 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18348 # soname into executable. Probably we can add versioning support to
18349 # collect2, so additional links can be useful in future.
18350 if test "$aix_use_runtimelinking" = yes; then
18351 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18352 # instead of lib<name>.a to let people know that these are not
18353 # typical AIX shared libraries.
18354 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18356 # We preserve .a as extension for shared libraries through AIX4.2
18357 # and later when we are not doing run time linking.
18358 library_names_spec
='${libname}${release}.a $libname.a'
18359 soname_spec
='${libname}${release}${shared_ext}$major'
18361 shlibpath_var
=LIBPATH
18366 library_names_spec
='$libname.ixlibrary $libname.a'
18367 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18368 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'
18372 library_names_spec
='${libname}${shared_ext}'
18373 dynamic_linker
="$host_os ld.so"
18374 shlibpath_var
=LIBRARY_PATH
18380 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18381 soname_spec
='${libname}${release}${shared_ext}$major'
18382 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
18383 shlibpath_var
=LD_LIBRARY_PATH
18384 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18385 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
18386 # the default ld.so.conf also contains /usr/contrib/lib and
18387 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18388 # libtool to hard-code these into programs
18391 cygwin
* | mingw
* | pw32
*)
18392 version_type
=windows
18397 case $GCC,$host_os in
18398 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
18399 library_names_spec
='$libname.dll.a'
18400 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18401 postinstall_cmds
='base_file=`basename \${file}`~
18402 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18403 dldir=$destdir/`dirname \$dlpath`~
18404 test -d \$dldir || mkdir -p \$dldir~
18405 $install_prog $dir/$dlname \$dldir/$dlname~
18406 chmod a+x \$dldir/$dlname'
18407 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18408 dlpath=$dir/\$dldll~
18410 shlibpath_overrides_runpath
=yes
18414 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18415 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18416 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
18419 # MinGW DLLs use traditional 'lib' prefix
18420 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18421 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18422 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
18423 # It is most probably a Windows format PATH printed by
18424 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18425 # path with ; separators, and with drive letters. We can handle the
18426 # drive letters (cygwin fileutils understands them), so leave them,
18427 # especially as we might pass files found there to a mingw objdump,
18428 # which wouldn't understand a cygwinified path. Ahh.
18429 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18431 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18435 # pw32 DLLs use 'pw' prefix rather than 'lib'
18436 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18442 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18445 dynamic_linker
='Win32 ld.exe'
18446 # FIXME: first we should search . and the directory the executable is in
18450 darwin
* | rhapsody
*)
18451 dynamic_linker
="$host_os dyld"
18452 version_type
=darwin
18455 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18456 soname_spec
='${libname}${release}${major}$shared_ext'
18457 shlibpath_overrides_runpath
=yes
18458 shlibpath_var
=DYLD_LIBRARY_PATH
18459 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
18461 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
18468 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18469 soname_spec
='${libname}${release}${shared_ext}$major'
18470 shlibpath_var
=LD_LIBRARY_PATH
18477 freebsd
* | dragonfly
*)
18478 # DragonFly does not have aout. When/if they implement a new
18479 # versioning mechanism, adjust this.
18480 if test -x /usr
/bin
/objformat
; then
18481 objformat
=`/usr/bin/objformat`
18484 freebsd
[123]*) objformat
=aout
;;
18485 *) objformat
=elf
;;
18488 version_type
=freebsd-
$objformat
18489 case $version_type in
18491 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18496 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18500 shlibpath_var
=LD_LIBRARY_PATH
18503 shlibpath_overrides_runpath
=yes
18505 freebsd3.
[01]* | freebsdelf3.
[01]*)
18506 shlibpath_overrides_runpath
=yes
18507 hardcode_into_libs
=yes
18509 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
18510 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
18511 shlibpath_overrides_runpath
=no
18512 hardcode_into_libs
=yes
18514 *) # from 4.6 on, and DragonFly
18515 shlibpath_overrides_runpath
=yes
18516 hardcode_into_libs
=yes
18525 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18526 soname_spec
='${libname}${release}${shared_ext}$major'
18527 shlibpath_var
=LD_LIBRARY_PATH
18528 hardcode_into_libs
=yes
18531 hpux9
* | hpux10
* | hpux11
*)
18532 # Give a soname corresponding to the major version so that dld.sl refuses to
18533 # link against other versions.
18540 hardcode_into_libs
=yes
18541 dynamic_linker
="$host_os dld.so"
18542 shlibpath_var
=LD_LIBRARY_PATH
18543 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18544 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18545 soname_spec
='${libname}${release}${shared_ext}$major'
18546 if test "X$HPUX_IA64_MODE" = X32
; then
18547 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18549 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
18551 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18555 hardcode_into_libs
=yes
18556 dynamic_linker
="$host_os dld.sl"
18557 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
18558 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18559 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18560 soname_spec
='${libname}${release}${shared_ext}$major'
18561 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18562 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18566 dynamic_linker
="$host_os dld.sl"
18567 shlibpath_var
=SHLIB_PATH
18568 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
18569 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18570 soname_spec
='${libname}${release}${shared_ext}$major'
18573 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18574 postinstall_cmds
='chmod 555 $lib'
18581 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18582 soname_spec
='${libname}${release}${shared_ext}$major'
18583 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
18584 shlibpath_var
=LD_LIBRARY_PATH
18585 shlibpath_overrides_runpath
=no
18586 hardcode_into_libs
=yes
18589 irix5
* | irix6
* | nonstopux
*)
18591 nonstopux
*) version_type
=nonstopux
;;
18593 if test "$lt_cv_prog_gnu_ld" = yes; then
18601 soname_spec
='${libname}${release}${shared_ext}$major'
18602 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18604 irix5
* | nonstopux
*)
18605 libsuff
= shlibsuff
=
18608 case $LD in # libtool.m4 will add one of these switches to LD
18609 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
18610 libsuff
= shlibsuff
= libmagic
=32-bit;;
18611 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
18612 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
18613 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
18614 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
18615 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
18619 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
18620 shlibpath_overrides_runpath
=no
18621 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18622 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
18623 hardcode_into_libs
=yes
18626 # No shared lib support for Linux oldld, aout, or coff.
18627 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
18631 # This must be Linux ELF.
18632 linux
* | k
*bsd
*-gnu)
18636 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18637 soname_spec
='${libname}${release}${shared_ext}$major'
18638 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18639 shlibpath_var
=LD_LIBRARY_PATH
18640 shlibpath_overrides_runpath
=no
18641 # This implies no fast_install, which is unacceptable.
18642 # Some rework will be needed to allow for fast_install
18643 # before this can be enabled.
18644 hardcode_into_libs
=yes
18646 # Append ld.so.conf contents to the search path
18647 if test -f /etc
/ld.so.conf
; then
18648 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' ' '`
18649 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
18652 # We used to test for /lib/ld.so.1 and disable shared libraries on
18653 # powerpc, because MkLinux only supported shared libraries with the
18654 # GNU dynamic linker. Since this was broken with cross compilers,
18655 # most powerpc-linux boxes support dynamic linking these days and
18656 # people can always --disable-shared, the test was removed, and we
18657 # assume the GNU/Linux dynamic linker is in use.
18658 dynamic_linker
='GNU/Linux ld.so'
18665 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
18666 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18667 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18668 dynamic_linker
='NetBSD (a.out) ld.so'
18670 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18671 soname_spec
='${libname}${release}${shared_ext}$major'
18672 dynamic_linker
='NetBSD ld.elf_so'
18674 shlibpath_var
=LD_LIBRARY_PATH
18675 shlibpath_overrides_runpath
=yes
18676 hardcode_into_libs
=yes
18681 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18682 shlibpath_var
=LD_LIBRARY_PATH
18683 shlibpath_overrides_runpath
=yes
18690 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18691 soname_spec
='${libname}${release}${shared_ext}$major'
18692 shlibpath_var
=LD_LIBRARY_PATH
18693 shlibpath_overrides_runpath
=yes
18698 sys_lib_dlsearch_path_spec
="/usr/lib"
18700 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18702 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
18703 *) need_version
=no
;;
18705 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18706 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18707 shlibpath_var
=LD_LIBRARY_PATH
18708 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18710 openbsd2.
[89] | openbsd2.
[89].
*)
18711 shlibpath_overrides_runpath
=no
18714 shlibpath_overrides_runpath
=yes
18718 shlibpath_overrides_runpath
=yes
18723 libname_spec
='$name'
18726 library_names_spec
='$libname${shared_ext} $libname.a'
18727 dynamic_linker
='OS/2 ld.exe'
18728 shlibpath_var
=LIBPATH
18731 osf3
* | osf4
* | osf5
*)
18735 soname_spec
='${libname}${release}${shared_ext}$major'
18736 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18737 shlibpath_var
=LD_LIBRARY_PATH
18738 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18739 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
18750 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18751 soname_spec
='${libname}${release}${shared_ext}$major'
18752 shlibpath_var
=LD_LIBRARY_PATH
18753 shlibpath_overrides_runpath
=yes
18754 hardcode_into_libs
=yes
18755 # ldd complains unless libraries are executable
18756 postinstall_cmds
='chmod +x $lib'
18761 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18762 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18763 shlibpath_var
=LD_LIBRARY_PATH
18764 shlibpath_overrides_runpath
=yes
18765 if test "$with_gnu_ld" = yes; then
18773 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18774 soname_spec
='${libname}${release}${shared_ext}$major'
18775 shlibpath_var
=LD_LIBRARY_PATH
18776 case $host_vendor in
18778 shlibpath_overrides_runpath
=no
18780 export_dynamic_flag_spec
='${wl}-Blargedynsym'
18781 runpath_var
=LD_RUN_PATH
18789 shlibpath_overrides_runpath
=no
18790 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
18796 if test -d /usr
/nec
;then
18798 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18799 soname_spec
='$libname${shared_ext}.$major'
18800 shlibpath_var
=LD_LIBRARY_PATH
18804 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
18805 version_type
=freebsd-elf
18808 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18809 soname_spec
='${libname}${release}${shared_ext}$major'
18810 shlibpath_var
=LD_LIBRARY_PATH
18811 hardcode_into_libs
=yes
18812 if test "$with_gnu_ld" = yes; then
18813 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18814 shlibpath_overrides_runpath
=no
18816 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
18817 shlibpath_overrides_runpath
=yes
18820 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
18824 sys_lib_dlsearch_path_spec
='/usr/lib'
18829 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18830 soname_spec
='${libname}${release}${shared_ext}$major'
18831 shlibpath_var
=LD_LIBRARY_PATH
18838 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18839 echo "${ECHO_T}$dynamic_linker" >&6; }
18840 test "$dynamic_linker" = no
&& can_build_shared
=no
18842 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
18843 if test "$GCC" = yes; then
18844 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18847 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18848 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18849 hardcode_action_GCJ
=
18850 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18851 test -n "$runpath_var_GCJ" || \
18852 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18854 # We can hardcode non-existant directories.
18855 if test "$hardcode_direct_GCJ" != no
&&
18856 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18857 # have to relink, otherwise we might link with an installed library
18858 # when we should be linking with a yet-to-be-installed one
18859 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18860 test "$hardcode_minus_L_GCJ" != no
; then
18861 # Linking always hardcodes the temporary library directory.
18862 hardcode_action_GCJ
=relink
18864 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18865 hardcode_action_GCJ
=immediate
18868 # We cannot hardcode anything, or else we can only hardcode existing
18870 hardcode_action_GCJ
=unsupported
18872 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18873 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18875 if test "$hardcode_action_GCJ" = relink
; then
18876 # Fast installation is not supported
18877 enable_fast_install
=no
18878 elif test "$shlibpath_overrides_runpath" = yes ||
18879 test "$enable_shared" = no
; then
18880 # Fast installation is not necessary
18881 enable_fast_install
=needless
18885 # The else clause should only fire when bootstrapping the
18886 # libtool distribution, otherwise you forgot to ship ltmain.sh
18887 # with your package, and you will get complaints that there are
18888 # no rules to generate ltmain.sh.
18889 if test -f "$ltmain"; then
18890 # See if we are running on zsh, and set the options which allow our commands through
18891 # without removal of \ escapes.
18892 if test -n "${ZSH_VERSION+set}" ; then
18893 setopt NO_GLOB_SUBST
18895 # Now quote all the things that may contain metacharacters while being
18896 # careful not to overquote the AC_SUBSTed values. We take copies of the
18897 # variables and quote the copies for generation of the libtool script.
18898 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18900 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18901 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18902 deplibs_check_method reload_flag reload_cmds need_locks \
18903 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18904 lt_cv_sys_global_symbol_to_c_name_address \
18905 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18906 old_postinstall_cmds old_postuninstall_cmds \
18910 lt_prog_compiler_wl_GCJ \
18911 lt_prog_compiler_pic_GCJ \
18912 lt_prog_compiler_static_GCJ \
18913 lt_prog_compiler_no_builtin_flag_GCJ \
18914 export_dynamic_flag_spec_GCJ \
18915 thread_safe_flag_spec_GCJ \
18916 whole_archive_flag_spec_GCJ \
18917 enable_shared_with_static_runtimes_GCJ \
18918 old_archive_cmds_GCJ \
18919 old_archive_from_new_cmds_GCJ \
18920 predep_objects_GCJ \
18921 postdep_objects_GCJ \
18924 compiler_lib_search_path_GCJ \
18926 archive_expsym_cmds_GCJ \
18927 postinstall_cmds_GCJ \
18928 postuninstall_cmds_GCJ \
18929 old_archive_from_expsyms_cmds_GCJ \
18930 allow_undefined_flag_GCJ \
18931 no_undefined_flag_GCJ \
18932 export_symbols_cmds_GCJ \
18933 hardcode_libdir_flag_spec_GCJ \
18934 hardcode_libdir_flag_spec_ld_GCJ \
18935 hardcode_libdir_separator_GCJ \
18936 hardcode_automatic_GCJ \
18938 module_expsym_cmds_GCJ \
18939 lt_cv_prog_compiler_c_o_GCJ \
18940 fix_srcfile_path_GCJ \
18941 exclude_expsyms_GCJ \
18942 include_expsyms_GCJ
; do
18945 old_archive_cmds_GCJ | \
18946 old_archive_from_new_cmds_GCJ | \
18947 archive_cmds_GCJ | \
18948 archive_expsym_cmds_GCJ | \
18949 module_cmds_GCJ | \
18950 module_expsym_cmds_GCJ | \
18951 old_archive_from_expsyms_cmds_GCJ | \
18952 export_symbols_cmds_GCJ | \
18953 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18954 postinstall_cmds | postuninstall_cmds | \
18955 old_postinstall_cmds | old_postuninstall_cmds | \
18956 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
18957 # Double-quote double-evaled strings.
18958 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18961 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18967 *'\$0 --fallback-echo"')
18968 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18974 cat <<__EOF__ >> "$cfgfile"
18975 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18977 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18979 # Shell to use when invoking shell scripts.
18982 # Whether or not to build shared libraries.
18983 build_libtool_libs=$enable_shared
18985 # Whether or not to build static libraries.
18986 build_old_libs=$enable_static
18988 # Whether or not to add -lc for building shared libraries.
18989 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18991 # Whether or not to disallow shared libs when runtime libs are static
18992 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18994 # Whether or not to optimize for fast installation.
18995 fast_install=$enable_fast_install
18998 host_alias=$host_alias
19002 # The build system.
19003 build_alias=$build_alias
19007 # An echo program that does not interpret backslashes.
19012 AR_FLAGS=$lt_AR_FLAGS
19017 # LTCC compiler flags.
19018 LTCFLAGS=$lt_LTCFLAGS
19020 # A language-specific compiler.
19021 CC=$lt_compiler_GCJ
19023 # Is the compiler the GNU C compiler?
19029 # The linker used to build libraries.
19032 # Whether we need hard or soft links.
19035 # A BSD-compatible nm program.
19038 # A symbol stripping program
19041 # Used to examine libraries when file_magic_cmd begins "file"
19042 MAGIC_CMD=$MAGIC_CMD
19044 # Used on cygwin: DLL creation program.
19047 # Used on cygwin: object dumper.
19050 # Used on cygwin: assembler.
19053 # The name of the directory that contains temporary libtool files.
19056 # How to create reloadable object files.
19057 reload_flag=$lt_reload_flag
19058 reload_cmds=$lt_reload_cmds
19060 # How to pass a linker flag through the compiler.
19061 wl=$lt_lt_prog_compiler_wl_GCJ
19063 # Object file suffix (normally "o").
19064 objext="$ac_objext"
19066 # Old archive suffix (normally "a").
19069 # Shared library suffix (normally ".so").
19070 shrext_cmds='$shrext_cmds'
19072 # Executable file suffix (normally "").
19075 # Additional compiler flags for building library objects.
19076 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19079 # What is the maximum length of a command?
19080 max_cmd_len=$lt_cv_sys_max_cmd_len
19082 # Does compiler simultaneously support -c and -o options?
19083 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19085 # Must we lock files when doing compilation?
19086 need_locks=$lt_need_locks
19088 # Do we need the lib prefix for modules?
19089 need_lib_prefix=$need_lib_prefix
19091 # Do we need a version for libraries?
19092 need_version=$need_version
19094 # Whether dlopen is supported.
19095 dlopen_support=$enable_dlopen
19097 # Whether dlopen of programs is supported.
19098 dlopen_self=$enable_dlopen_self
19100 # Whether dlopen of statically linked programs is supported.
19101 dlopen_self_static=$enable_dlopen_self_static
19103 # Compiler flag to prevent dynamic linking.
19104 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19106 # Compiler flag to turn off builtin functions.
19107 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19109 # Compiler flag to allow reflexive dlopens.
19110 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19112 # Compiler flag to generate shared objects directly from archives.
19113 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19115 # Compiler flag to generate thread-safe objects.
19116 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19118 # Library versioning type.
19119 version_type=$version_type
19121 # Format of library name prefix.
19122 libname_spec=$lt_libname_spec
19124 # List of archive names. First name is the real one, the rest are links.
19125 # The last name is the one that the linker finds with -lNAME.
19126 library_names_spec=$lt_library_names_spec
19128 # The coded name of the library, if different from the real name.
19129 soname_spec=$lt_soname_spec
19131 # Commands used to build and install an old-style archive.
19133 old_archive_cmds=$lt_old_archive_cmds_GCJ
19134 old_postinstall_cmds=$lt_old_postinstall_cmds
19135 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19137 # Create an old-style archive from a shared archive.
19138 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19140 # Create a temporary old-style archive to link instead of a shared archive.
19141 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19143 # Commands used to build and install a shared archive.
19144 archive_cmds=$lt_archive_cmds_GCJ
19145 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19146 postinstall_cmds=$lt_postinstall_cmds
19147 postuninstall_cmds=$lt_postuninstall_cmds
19149 # Commands used to build a loadable module (assumed same as above if empty)
19150 module_cmds=$lt_module_cmds_GCJ
19151 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19153 # Commands to strip libraries.
19154 old_striplib=$lt_old_striplib
19155 striplib=$lt_striplib
19157 # Dependencies to place before the objects being linked to create a
19159 predep_objects=$lt_predep_objects_GCJ
19161 # Dependencies to place after the objects being linked to create a
19163 postdep_objects=$lt_postdep_objects_GCJ
19165 # Dependencies to place before the objects being linked to create a
19167 predeps=$lt_predeps_GCJ
19169 # Dependencies to place after the objects being linked to create a
19171 postdeps=$lt_postdeps_GCJ
19173 # The library search path used internally by the compiler when linking
19174 # a shared library.
19175 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19177 # Method to check whether dependent libraries are shared objects.
19178 deplibs_check_method=$lt_deplibs_check_method
19180 # Command to use when deplibs_check_method == file_magic.
19181 file_magic_cmd=$lt_file_magic_cmd
19183 # Flag that allows shared libraries with undefined symbols to be built.
19184 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19186 # Flag that forces no undefined symbols.
19187 no_undefined_flag=$lt_no_undefined_flag_GCJ
19189 # Commands used to finish a libtool library installation in a directory.
19190 finish_cmds=$lt_finish_cmds
19192 # Same as above, but a single script fragment to be evaled but not shown.
19193 finish_eval=$lt_finish_eval
19195 # Take the output of nm and produce a listing of raw symbols and C names.
19196 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19198 # Transform the output of nm in a proper C declaration
19199 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19201 # Transform the output of nm in a C name address pair
19202 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19204 # This is the shared library runtime path variable.
19205 runpath_var=$runpath_var
19207 # This is the shared library path variable.
19208 shlibpath_var=$shlibpath_var
19210 # Is shlibpath searched before the hard-coded library search path?
19211 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19213 # How to hardcode a shared library path into an executable.
19214 hardcode_action=$hardcode_action_GCJ
19216 # Whether we should hardcode library paths into libraries.
19217 hardcode_into_libs=$hardcode_into_libs
19219 # Flag to hardcode \$libdir into a binary during linking.
19220 # This must work even if \$libdir does not exist.
19221 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19223 # If ld is used when linking, flag to hardcode \$libdir into
19224 # a binary during linking. This must work even if \$libdir does
19226 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19228 # Whether we need a single -rpath flag with a separated argument.
19229 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19231 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19232 # resulting binary.
19233 hardcode_direct=$hardcode_direct_GCJ
19235 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19236 # resulting binary.
19237 hardcode_minus_L=$hardcode_minus_L_GCJ
19239 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19240 # the resulting binary.
19241 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19243 # Set to yes if building a shared library automatically hardcodes DIR into the library
19244 # and all subsequent libraries and executables linked against it.
19245 hardcode_automatic=$hardcode_automatic_GCJ
19247 # Variables whose values should be saved in libtool wrapper scripts and
19248 # restored at relink time.
19249 variables_saved_for_relink="$variables_saved_for_relink"
19251 # Whether libtool must link a program against all its dependency libraries.
19252 link_all_deplibs=$link_all_deplibs_GCJ
19254 # Compile-time system search path for libraries
19255 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19257 # Run-time system search path for libraries
19258 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19260 # Fix the shell variable \$srcfile for the compiler.
19261 fix_srcfile_path=$lt_fix_srcfile_path
19263 # Set to yes if exported symbols are required.
19264 always_export_symbols=$always_export_symbols_GCJ
19266 # The commands to list exported symbols.
19267 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19269 # The commands to extract the exported symbol list from a shared archive.
19270 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19272 # Symbols that should not be listed in the preloaded symbols.
19273 exclude_expsyms=$lt_exclude_expsyms_GCJ
19275 # Symbols that must always be exported.
19276 include_expsyms=$lt_include_expsyms_GCJ
19278 # ### END LIBTOOL TAG CONFIG: $tagname
19284 # If there is no Makefile yet, we rely on a make rule to execute
19285 # `config.status --recheck' to rerun these tests and create the
19286 # libtool script then.
19287 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19288 if test -f "$ltmain_in"; then
19289 test -f Makefile
&& make "$ltmain"
19295 ac_cpp
='$CPP $CPPFLAGS'
19296 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19297 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19298 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19310 # Source file extension for RC test sources.
19313 # Object file extension for compiled RC test sources.
19317 # Code to be used in simple compile tests
19318 lt_simple_compile_test_code
='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19320 # Code to be used in simple link tests
19321 lt_simple_link_test_code
="$lt_simple_compile_test_code"
19323 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19325 # If no C compiler was specified, use CC.
19328 # If no C compiler flags were specified, use CFLAGS.
19329 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
19331 # Allow CC to be a program name with arguments.
19335 # save warnings/boilerplate of simple test code
19336 ac_outfile
=conftest.
$ac_objext
19337 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
19338 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
19339 _lt_compiler_boilerplate
=`cat conftest.err`
19342 ac_outfile
=conftest.
$ac_objext
19343 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
19344 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
19345 _lt_linker_boilerplate
=`cat conftest.err`
19349 # Allow CC to be a program name with arguments.
19354 for cc_temp
in $compiler""; do
19356 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
19357 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
19362 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19364 lt_cv_prog_compiler_c_o_RC
=yes
19366 # The else clause should only fire when bootstrapping the
19367 # libtool distribution, otherwise you forgot to ship ltmain.sh
19368 # with your package, and you will get complaints that there are
19369 # no rules to generate ltmain.sh.
19370 if test -f "$ltmain"; then
19371 # See if we are running on zsh, and set the options which allow our commands through
19372 # without removal of \ escapes.
19373 if test -n "${ZSH_VERSION+set}" ; then
19374 setopt NO_GLOB_SUBST
19376 # Now quote all the things that may contain metacharacters while being
19377 # careful not to overquote the AC_SUBSTed values. We take copies of the
19378 # variables and quote the copies for generation of the libtool script.
19379 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19381 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19382 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19383 deplibs_check_method reload_flag reload_cmds need_locks \
19384 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19385 lt_cv_sys_global_symbol_to_c_name_address \
19386 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19387 old_postinstall_cmds old_postuninstall_cmds \
19391 lt_prog_compiler_wl_RC \
19392 lt_prog_compiler_pic_RC \
19393 lt_prog_compiler_static_RC \
19394 lt_prog_compiler_no_builtin_flag_RC \
19395 export_dynamic_flag_spec_RC \
19396 thread_safe_flag_spec_RC \
19397 whole_archive_flag_spec_RC \
19398 enable_shared_with_static_runtimes_RC \
19399 old_archive_cmds_RC \
19400 old_archive_from_new_cmds_RC \
19401 predep_objects_RC \
19402 postdep_objects_RC \
19405 compiler_lib_search_path_RC \
19407 archive_expsym_cmds_RC \
19408 postinstall_cmds_RC \
19409 postuninstall_cmds_RC \
19410 old_archive_from_expsyms_cmds_RC \
19411 allow_undefined_flag_RC \
19412 no_undefined_flag_RC \
19413 export_symbols_cmds_RC \
19414 hardcode_libdir_flag_spec_RC \
19415 hardcode_libdir_flag_spec_ld_RC \
19416 hardcode_libdir_separator_RC \
19417 hardcode_automatic_RC \
19419 module_expsym_cmds_RC \
19420 lt_cv_prog_compiler_c_o_RC \
19421 fix_srcfile_path_RC \
19422 exclude_expsyms_RC \
19423 include_expsyms_RC
; do
19426 old_archive_cmds_RC | \
19427 old_archive_from_new_cmds_RC | \
19428 archive_cmds_RC | \
19429 archive_expsym_cmds_RC | \
19431 module_expsym_cmds_RC | \
19432 old_archive_from_expsyms_cmds_RC | \
19433 export_symbols_cmds_RC | \
19434 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19435 postinstall_cmds | postuninstall_cmds | \
19436 old_postinstall_cmds | old_postuninstall_cmds | \
19437 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
19438 # Double-quote double-evaled strings.
19439 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19442 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19448 *'\$0 --fallback-echo"')
19449 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19455 cat <<__EOF__ >> "$cfgfile"
19456 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19458 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19460 # Shell to use when invoking shell scripts.
19463 # Whether or not to build shared libraries.
19464 build_libtool_libs=$enable_shared
19466 # Whether or not to build static libraries.
19467 build_old_libs=$enable_static
19469 # Whether or not to add -lc for building shared libraries.
19470 build_libtool_need_lc=$archive_cmds_need_lc_RC
19472 # Whether or not to disallow shared libs when runtime libs are static
19473 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19475 # Whether or not to optimize for fast installation.
19476 fast_install=$enable_fast_install
19479 host_alias=$host_alias
19483 # The build system.
19484 build_alias=$build_alias
19488 # An echo program that does not interpret backslashes.
19493 AR_FLAGS=$lt_AR_FLAGS
19498 # LTCC compiler flags.
19499 LTCFLAGS=$lt_LTCFLAGS
19501 # A language-specific compiler.
19504 # Is the compiler the GNU C compiler?
19510 # The linker used to build libraries.
19513 # Whether we need hard or soft links.
19516 # A BSD-compatible nm program.
19519 # A symbol stripping program
19522 # Used to examine libraries when file_magic_cmd begins "file"
19523 MAGIC_CMD=$MAGIC_CMD
19525 # Used on cygwin: DLL creation program.
19528 # Used on cygwin: object dumper.
19531 # Used on cygwin: assembler.
19534 # The name of the directory that contains temporary libtool files.
19537 # How to create reloadable object files.
19538 reload_flag=$lt_reload_flag
19539 reload_cmds=$lt_reload_cmds
19541 # How to pass a linker flag through the compiler.
19542 wl=$lt_lt_prog_compiler_wl_RC
19544 # Object file suffix (normally "o").
19545 objext="$ac_objext"
19547 # Old archive suffix (normally "a").
19550 # Shared library suffix (normally ".so").
19551 shrext_cmds='$shrext_cmds'
19553 # Executable file suffix (normally "").
19556 # Additional compiler flags for building library objects.
19557 pic_flag=$lt_lt_prog_compiler_pic_RC
19560 # What is the maximum length of a command?
19561 max_cmd_len=$lt_cv_sys_max_cmd_len
19563 # Does compiler simultaneously support -c and -o options?
19564 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19566 # Must we lock files when doing compilation?
19567 need_locks=$lt_need_locks
19569 # Do we need the lib prefix for modules?
19570 need_lib_prefix=$need_lib_prefix
19572 # Do we need a version for libraries?
19573 need_version=$need_version
19575 # Whether dlopen is supported.
19576 dlopen_support=$enable_dlopen
19578 # Whether dlopen of programs is supported.
19579 dlopen_self=$enable_dlopen_self
19581 # Whether dlopen of statically linked programs is supported.
19582 dlopen_self_static=$enable_dlopen_self_static
19584 # Compiler flag to prevent dynamic linking.
19585 link_static_flag=$lt_lt_prog_compiler_static_RC
19587 # Compiler flag to turn off builtin functions.
19588 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19590 # Compiler flag to allow reflexive dlopens.
19591 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19593 # Compiler flag to generate shared objects directly from archives.
19594 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19596 # Compiler flag to generate thread-safe objects.
19597 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19599 # Library versioning type.
19600 version_type=$version_type
19602 # Format of library name prefix.
19603 libname_spec=$lt_libname_spec
19605 # List of archive names. First name is the real one, the rest are links.
19606 # The last name is the one that the linker finds with -lNAME.
19607 library_names_spec=$lt_library_names_spec
19609 # The coded name of the library, if different from the real name.
19610 soname_spec=$lt_soname_spec
19612 # Commands used to build and install an old-style archive.
19614 old_archive_cmds=$lt_old_archive_cmds_RC
19615 old_postinstall_cmds=$lt_old_postinstall_cmds
19616 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19618 # Create an old-style archive from a shared archive.
19619 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19621 # Create a temporary old-style archive to link instead of a shared archive.
19622 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19624 # Commands used to build and install a shared archive.
19625 archive_cmds=$lt_archive_cmds_RC
19626 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19627 postinstall_cmds=$lt_postinstall_cmds
19628 postuninstall_cmds=$lt_postuninstall_cmds
19630 # Commands used to build a loadable module (assumed same as above if empty)
19631 module_cmds=$lt_module_cmds_RC
19632 module_expsym_cmds=$lt_module_expsym_cmds_RC
19634 # Commands to strip libraries.
19635 old_striplib=$lt_old_striplib
19636 striplib=$lt_striplib
19638 # Dependencies to place before the objects being linked to create a
19640 predep_objects=$lt_predep_objects_RC
19642 # Dependencies to place after the objects being linked to create a
19644 postdep_objects=$lt_postdep_objects_RC
19646 # Dependencies to place before the objects being linked to create a
19648 predeps=$lt_predeps_RC
19650 # Dependencies to place after the objects being linked to create a
19652 postdeps=$lt_postdeps_RC
19654 # The library search path used internally by the compiler when linking
19655 # a shared library.
19656 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19658 # Method to check whether dependent libraries are shared objects.
19659 deplibs_check_method=$lt_deplibs_check_method
19661 # Command to use when deplibs_check_method == file_magic.
19662 file_magic_cmd=$lt_file_magic_cmd
19664 # Flag that allows shared libraries with undefined symbols to be built.
19665 allow_undefined_flag=$lt_allow_undefined_flag_RC
19667 # Flag that forces no undefined symbols.
19668 no_undefined_flag=$lt_no_undefined_flag_RC
19670 # Commands used to finish a libtool library installation in a directory.
19671 finish_cmds=$lt_finish_cmds
19673 # Same as above, but a single script fragment to be evaled but not shown.
19674 finish_eval=$lt_finish_eval
19676 # Take the output of nm and produce a listing of raw symbols and C names.
19677 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19679 # Transform the output of nm in a proper C declaration
19680 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19682 # Transform the output of nm in a C name address pair
19683 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19685 # This is the shared library runtime path variable.
19686 runpath_var=$runpath_var
19688 # This is the shared library path variable.
19689 shlibpath_var=$shlibpath_var
19691 # Is shlibpath searched before the hard-coded library search path?
19692 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19694 # How to hardcode a shared library path into an executable.
19695 hardcode_action=$hardcode_action_RC
19697 # Whether we should hardcode library paths into libraries.
19698 hardcode_into_libs=$hardcode_into_libs
19700 # Flag to hardcode \$libdir into a binary during linking.
19701 # This must work even if \$libdir does not exist.
19702 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19704 # If ld is used when linking, flag to hardcode \$libdir into
19705 # a binary during linking. This must work even if \$libdir does
19707 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19709 # Whether we need a single -rpath flag with a separated argument.
19710 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19712 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19713 # resulting binary.
19714 hardcode_direct=$hardcode_direct_RC
19716 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19717 # resulting binary.
19718 hardcode_minus_L=$hardcode_minus_L_RC
19720 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19721 # the resulting binary.
19722 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19724 # Set to yes if building a shared library automatically hardcodes DIR into the library
19725 # and all subsequent libraries and executables linked against it.
19726 hardcode_automatic=$hardcode_automatic_RC
19728 # Variables whose values should be saved in libtool wrapper scripts and
19729 # restored at relink time.
19730 variables_saved_for_relink="$variables_saved_for_relink"
19732 # Whether libtool must link a program against all its dependency libraries.
19733 link_all_deplibs=$link_all_deplibs_RC
19735 # Compile-time system search path for libraries
19736 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19738 # Run-time system search path for libraries
19739 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19741 # Fix the shell variable \$srcfile for the compiler.
19742 fix_srcfile_path=$lt_fix_srcfile_path
19744 # Set to yes if exported symbols are required.
19745 always_export_symbols=$always_export_symbols_RC
19747 # The commands to list exported symbols.
19748 export_symbols_cmds=$lt_export_symbols_cmds_RC
19750 # The commands to extract the exported symbol list from a shared archive.
19751 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19753 # Symbols that should not be listed in the preloaded symbols.
19754 exclude_expsyms=$lt_exclude_expsyms_RC
19756 # Symbols that must always be exported.
19757 include_expsyms=$lt_include_expsyms_RC
19759 # ### END LIBTOOL TAG CONFIG: $tagname
19765 # If there is no Makefile yet, we rely on a make rule to execute
19766 # `config.status --recheck' to rerun these tests and create the
19767 # libtool script then.
19768 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19769 if test -f "$ltmain_in"; then
19770 test -f Makefile
&& make "$ltmain"
19776 ac_cpp
='$CPP $CPPFLAGS'
19777 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19778 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19779 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19786 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19787 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19788 { (exit 1); exit 1; }; }
19792 # Append the new tag name to the list of available tags.
19793 if test -n "$tagname" ; then
19794 available_tags
="$available_tags $tagname"
19800 # Now substitute the updated list of available tags.
19801 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19802 mv "${ofile}T" "$ofile"
19806 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19807 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19808 { (exit 1); exit 1; }; }
19814 # This can be used to rebuild libtool when needed
19815 LIBTOOL_DEPS
="$ac_aux_dir/ltmain.sh"
19817 # Always use our own libtool.
19818 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
19820 # Prevent multiple expansion
19848 ac_header_dirent
=no
19849 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
19850 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19851 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19852 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
19853 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19854 echo $ECHO_N "(cached) $ECHO_C" >&6
19856 cat >conftest.
$ac_ext <<_ACEOF
19859 cat confdefs.h
>>conftest.
$ac_ext
19860 cat >>conftest.
$ac_ext <<_ACEOF
19861 /* end confdefs.h. */
19862 #include <sys/types.h>
19874 rm -f conftest.
$ac_objext
19875 if { (ac_try
="$ac_compile"
19876 case "(($ac_try" in
19877 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19878 *) ac_try_echo=$ac_try;;
19880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19881 (eval "$ac_compile") 2>conftest.er1
19883 grep -v '^ *+' conftest.er1 >conftest.err
19885 cat conftest.err >&5
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); } && {
19888 test -z "$ac_c_werror_flag" ||
19889 test ! -s conftest.err
19890 } && test -s conftest.$ac_objext; then
19891 eval "$as_ac_Header=yes"
19893 echo "$as_me: failed program was:" >&5
19894 sed 's/^/| /' conftest.$ac_ext >&5
19896 eval "$as_ac_Header=no"
19899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19901 ac_res=`eval echo '${'$as_ac_Header'}'`
19902 { echo "$as_me:$LINENO: result: $ac_res" >&5
19903 echo "${ECHO_T}$ac_res" >&6; }
19904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19905 cat >>confdefs.h <<_ACEOF
19906 #define `echo "HAVE_$ac_hdr" |
$as_tr_cpp` 1
19909 ac_header_dirent=$ac_hdr; break
19913 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19914 if test $ac_header_dirent = dirent.h; then
19915 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
19916 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
19917 if test "${ac_cv_search_opendir+set}" = set; then
19918 echo $ECHO_N "(cached) $ECHO_C" >&6
19920 ac_func_search_save_LIBS=$LIBS
19921 cat >conftest.$ac_ext <<_ACEOF
19924 cat confdefs.h >>conftest.$ac_ext
19925 cat >>conftest.$ac_ext <<_ACEOF
19926 /* end confdefs.h. */
19928 /* Override any GCC internal prototype to avoid an error.
19929 Use char because int might match the return type of a GCC
19930 builtin and then its argument prototype would still apply. */
19943 for ac_lib in '' dir; do
19944 if test -z "$ac_lib"; then
19945 ac_res="none required"
19948 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19950 rm -f conftest.$ac_objext conftest$ac_exeext
19951 if { (ac_try="$ac_link"
19952 case "(($ac_try" in
19953 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19954 *) ac_try_echo
=$ac_try;;
19956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19957 (eval "$ac_link") 2>conftest.er1
19959 grep -v '^ *+' conftest.er1
>conftest.err
19961 cat conftest.err
>&5
19962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963 (exit $ac_status); } && {
19964 test -z "$ac_c_werror_flag" ||
19965 test ! -s conftest.err
19966 } && test -s conftest
$ac_exeext &&
19967 $as_test_x conftest
$ac_exeext; then
19968 ac_cv_search_opendir
=$ac_res
19970 echo "$as_me: failed program was:" >&5
19971 sed 's/^/| /' conftest.
$ac_ext >&5
19976 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19978 if test "${ac_cv_search_opendir+set}" = set; then
19982 if test "${ac_cv_search_opendir+set}" = set; then
19985 ac_cv_search_opendir
=no
19987 rm conftest.
$ac_ext
19988 LIBS
=$ac_func_search_save_LIBS
19990 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19991 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
19992 ac_res
=$ac_cv_search_opendir
19993 if test "$ac_res" != no
; then
19994 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
19999 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20000 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20001 if test "${ac_cv_search_opendir+set}" = set; then
20002 echo $ECHO_N "(cached) $ECHO_C" >&6
20004 ac_func_search_save_LIBS
=$LIBS
20005 cat >conftest.
$ac_ext <<_ACEOF
20008 cat confdefs.h
>>conftest.
$ac_ext
20009 cat >>conftest.
$ac_ext <<_ACEOF
20010 /* end confdefs.h. */
20012 /* Override any GCC internal prototype to avoid an error.
20013 Use char because int might match the return type of a GCC
20014 builtin and then its argument prototype would still apply. */
20027 for ac_lib
in '' x
; do
20028 if test -z "$ac_lib"; then
20029 ac_res
="none required"
20032 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
20034 rm -f conftest.
$ac_objext conftest
$ac_exeext
20035 if { (ac_try
="$ac_link"
20036 case "(($ac_try" in
20037 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20038 *) ac_try_echo=$ac_try;;
20040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20041 (eval "$ac_link") 2>conftest.er1
20043 grep -v '^ *+' conftest.er1 >conftest.err
20045 cat conftest.err >&5
20046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047 (exit $ac_status); } && {
20048 test -z "$ac_c_werror_flag" ||
20049 test ! -s conftest.err
20050 } && test -s conftest$ac_exeext &&
20051 $as_test_x conftest$ac_exeext; then
20052 ac_cv_search_opendir=$ac_res
20054 echo "$as_me: failed program was:" >&5
20055 sed 's/^/| /' conftest.$ac_ext >&5
20060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20062 if test "${ac_cv_search_opendir+set}" = set; then
20066 if test "${ac_cv_search_opendir+set}" = set; then
20069 ac_cv_search_opendir=no
20071 rm conftest.$ac_ext
20072 LIBS=$ac_func_search_save_LIBS
20074 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20075 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20076 ac_res=$ac_cv_search_opendir
20077 if test "$ac_res" != no; then
20078 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20084 # Check whether --enable-ltdl-install was given.
20085 if test "${enable_ltdl_install+set}" = set; then
20086 enableval=$enable_ltdl_install;
20090 if test x"${enable_ltdl_install-no}" != xno; then
20092 INSTALL_LTDL_FALSE='#'
20094 INSTALL_LTDL_TRUE='#'
20095 INSTALL_LTDL_FALSE=
20098 if test x"${enable_ltdl_convenience-no}" != xno; then
20099 CONVENIENCE_LTDL_TRUE=
20100 CONVENIENCE_LTDL_FALSE='#'
20102 CONVENIENCE_LTDL_TRUE='#'
20103 CONVENIENCE_LTDL_FALSE=
20108 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
20109 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
20110 if test "${libltdl_cv_shlibext+set}" = set; then
20111 echo $ECHO_N "(cached) $ECHO_C" >&6
20115 eval libltdl_cv_shlibext=$shrext_cmds
20118 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
20119 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
20120 if test -n "$libltdl_cv_shlibext"; then
20122 cat >>confdefs.h <<_ACEOF
20123 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
20129 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
20130 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
20131 if test "${libltdl_cv_shlibpath_var+set}" = set; then
20132 echo $ECHO_N "(cached) $ECHO_C" >&6
20134 libltdl_cv_shlibpath_var="$shlibpath_var"
20136 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
20137 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
20138 if test -n "$libltdl_cv_shlibpath_var"; then
20140 cat >>confdefs.h <<_ACEOF
20141 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
20147 { echo "$as_me:$LINENO: checking for the default library search path" >&5
20148 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
20149 if test "${libltdl_cv_sys_search_path+set}" = set; then
20150 echo $ECHO_N "(cached) $ECHO_C" >&6
20152 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
20154 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
20155 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
20156 if test -n "$libltdl_cv_sys_search_path"; then
20158 for dir in $libltdl_cv_sys_search_path; do
20159 if test -z "$sys_search_path"; then
20160 sys_search_path="$dir"
20162 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
20166 cat >>confdefs.h <<_ACEOF
20167 #define LTDL_SYSSEARCHPATH "$sys_search_path"
20172 { echo "$as_me:$LINENO: checking for objdir" >&5
20173 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
20174 if test "${libltdl_cv_objdir+set}" = set; then
20175 echo $ECHO_N "(cached) $ECHO_C" >&6
20177 libltdl_cv_objdir="$objdir"
20178 if test -n "$objdir"; then
20181 rm -f .libs 2>/dev/null
20182 mkdir .libs 2>/dev/null
20183 if test -d .libs; then
20184 libltdl_cv_objdir=.libs
20186 # MS-DOS does not allow filenames that begin with a dot.
20187 libltdl_cv_objdir=_libs
20189 rmdir .libs 2>/dev/null
20193 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
20194 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
20196 cat >>confdefs.h <<_ACEOF
20197 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
20202 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
20203 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
20204 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
20205 echo $ECHO_N "(cached) $ECHO_C" >&6
20207 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20208 libltdl_cv_preloaded_symbols=yes
20210 libltdl_cv_preloaded_symbols=no
20214 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
20215 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
20216 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20218 cat >>confdefs.h <<\_ACEOF
20219 #define HAVE_PRELOADED_SYMBOLS 1
20227 ac_cpp='$CPP $CPPFLAGS'
20228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20233 { echo "$as_me:$LINENO: checking for shl_load" >&5
20234 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
20235 if test "${ac_cv_func_shl_load+set}" = set; then
20236 echo $ECHO_N "(cached) $ECHO_C" >&6
20238 cat >conftest.$ac_ext <<_ACEOF
20241 cat confdefs.h >>conftest.$ac_ext
20242 cat >>conftest.$ac_ext <<_ACEOF
20243 /* end confdefs.h. */
20244 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20246 #define shl_load innocuous_shl_load
20248 /* System header to define __stub macros and hopefully few prototypes,
20249 which can conflict with char shl_load (); below.
20250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20251 <limits.h> exists even on freestanding compilers. */
20254 # include <limits.h>
20256 # include <assert.h>
20261 /* Override any GCC internal prototype to avoid an error.
20262 Use char because int might match the return type of a GCC
20263 builtin and then its argument prototype would still apply. */
20268 /* The GNU C library defines this for functions which it implements
20269 to always fail with ENOSYS. Some functions are actually named
20270 something starting with __ and the normal name is an alias. */
20271 #if defined __stub_shl_load || defined __stub___shl_load
20278 return shl_load ();
20283 rm -f conftest.$ac_objext conftest$ac_exeext
20284 if { (ac_try="$ac_link"
20285 case "(($ac_try" in
20286 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20287 *) ac_try_echo
=$ac_try;;
20289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20290 (eval "$ac_link") 2>conftest.er1
20292 grep -v '^ *+' conftest.er1
>conftest.err
20294 cat conftest.err
>&5
20295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296 (exit $ac_status); } && {
20297 test -z "$ac_c_werror_flag" ||
20298 test ! -s conftest.err
20299 } && test -s conftest
$ac_exeext &&
20300 $as_test_x conftest
$ac_exeext; then
20301 ac_cv_func_shl_load
=yes
20303 echo "$as_me: failed program was:" >&5
20304 sed 's/^/| /' conftest.
$ac_ext >&5
20306 ac_cv_func_shl_load
=no
20309 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20310 conftest
$ac_exeext conftest.
$ac_ext
20312 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20313 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
20314 if test $ac_cv_func_shl_load = yes; then
20316 cat >>confdefs.h
<<\_ACEOF
20317 #define HAVE_SHL_LOAD 1
20321 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20322 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
20323 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20324 echo $ECHO_N "(cached) $ECHO_C" >&6
20326 ac_check_lib_save_LIBS
=$LIBS
20328 cat >conftest.
$ac_ext <<_ACEOF
20331 cat confdefs.h
>>conftest.
$ac_ext
20332 cat >>conftest.
$ac_ext <<_ACEOF
20333 /* end confdefs.h. */
20335 /* Override any GCC internal prototype to avoid an error.
20336 Use char because int might match the return type of a GCC
20337 builtin and then its argument prototype would still apply. */
20345 return shl_load ();
20350 rm -f conftest.
$ac_objext conftest
$ac_exeext
20351 if { (ac_try
="$ac_link"
20352 case "(($ac_try" in
20353 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20354 *) ac_try_echo=$ac_try;;
20356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20357 (eval "$ac_link") 2>conftest.er1
20359 grep -v '^ *+' conftest.er1 >conftest.err
20361 cat conftest.err >&5
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); } && {
20364 test -z "$ac_c_werror_flag" ||
20365 test ! -s conftest.err
20366 } && test -s conftest$ac_exeext &&
20367 $as_test_x conftest$ac_exeext; then
20368 ac_cv_lib_dld_shl_load=yes
20370 echo "$as_me: failed program was:" >&5
20371 sed 's/^/| /' conftest.$ac_ext >&5
20373 ac_cv_lib_dld_shl_load=no
20376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20377 conftest$ac_exeext conftest.$ac_ext
20378 LIBS=$ac_check_lib_save_LIBS
20380 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20381 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
20382 if test $ac_cv_lib_dld_shl_load = yes; then
20384 cat >>confdefs.h <<\_ACEOF
20385 #define HAVE_SHL_LOAD 1
20388 LIBADD_DL="$LIBADD_DL -ldld"
20390 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20391 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
20392 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20393 echo $ECHO_N "(cached) $ECHO_C" >&6
20395 ac_check_lib_save_LIBS=$LIBS
20397 cat >conftest.$ac_ext <<_ACEOF
20400 cat confdefs.h >>conftest.$ac_ext
20401 cat >>conftest.$ac_ext <<_ACEOF
20402 /* end confdefs.h. */
20404 /* Override any GCC internal prototype to avoid an error.
20405 Use char because int might match the return type of a GCC
20406 builtin and then its argument prototype would still apply. */
20419 rm -f conftest.$ac_objext conftest$ac_exeext
20420 if { (ac_try="$ac_link"
20421 case "(($ac_try" in
20422 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20423 *) ac_try_echo
=$ac_try;;
20425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20426 (eval "$ac_link") 2>conftest.er1
20428 grep -v '^ *+' conftest.er1
>conftest.err
20430 cat conftest.err
>&5
20431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432 (exit $ac_status); } && {
20433 test -z "$ac_c_werror_flag" ||
20434 test ! -s conftest.err
20435 } && test -s conftest
$ac_exeext &&
20436 $as_test_x conftest
$ac_exeext; then
20437 ac_cv_lib_dl_dlopen
=yes
20439 echo "$as_me: failed program was:" >&5
20440 sed 's/^/| /' conftest.
$ac_ext >&5
20442 ac_cv_lib_dl_dlopen
=no
20445 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20446 conftest
$ac_exeext conftest.
$ac_ext
20447 LIBS
=$ac_check_lib_save_LIBS
20449 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20450 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
20451 if test $ac_cv_lib_dl_dlopen = yes; then
20453 cat >>confdefs.h
<<\_ACEOF
20454 #define HAVE_LIBDL 1
20457 LIBADD_DL
="-ldl" libltdl_cv_lib_dl_dlopen
="yes"
20459 cat >conftest.
$ac_ext <<_ACEOF
20462 cat confdefs.h
>>conftest.
$ac_ext
20463 cat >>conftest.
$ac_ext <<_ACEOF
20464 /* end confdefs.h. */
20466 # include <dlfcn.h>
20477 rm -f conftest.
$ac_objext conftest
$ac_exeext
20478 if { (ac_try
="$ac_link"
20479 case "(($ac_try" in
20480 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20481 *) ac_try_echo=$ac_try;;
20483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20484 (eval "$ac_link") 2>conftest.er1
20486 grep -v '^ *+' conftest.er1 >conftest.err
20488 cat conftest.err >&5
20489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490 (exit $ac_status); } && {
20491 test -z "$ac_c_werror_flag" ||
20492 test ! -s conftest.err
20493 } && test -s conftest$ac_exeext &&
20494 $as_test_x conftest$ac_exeext; then
20496 cat >>confdefs.h <<\_ACEOF
20497 #define HAVE_LIBDL 1
20499 libltdl_cv_func_dlopen="yes"
20501 echo "$as_me: failed program was:" >&5
20502 sed 's/^/| /' conftest.$ac_ext >&5
20504 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20505 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
20506 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20507 echo $ECHO_N "(cached) $ECHO_C" >&6
20509 ac_check_lib_save_LIBS=$LIBS
20510 LIBS="-lsvld $LIBS"
20511 cat >conftest.$ac_ext <<_ACEOF
20514 cat confdefs.h >>conftest.$ac_ext
20515 cat >>conftest.$ac_ext <<_ACEOF
20516 /* end confdefs.h. */
20518 /* Override any GCC internal prototype to avoid an error.
20519 Use char because int might match the return type of a GCC
20520 builtin and then its argument prototype would still apply. */
20533 rm -f conftest.$ac_objext conftest$ac_exeext
20534 if { (ac_try="$ac_link"
20535 case "(($ac_try" in
20536 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20537 *) ac_try_echo
=$ac_try;;
20539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20540 (eval "$ac_link") 2>conftest.er1
20542 grep -v '^ *+' conftest.er1
>conftest.err
20544 cat conftest.err
>&5
20545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20546 (exit $ac_status); } && {
20547 test -z "$ac_c_werror_flag" ||
20548 test ! -s conftest.err
20549 } && test -s conftest
$ac_exeext &&
20550 $as_test_x conftest
$ac_exeext; then
20551 ac_cv_lib_svld_dlopen
=yes
20553 echo "$as_me: failed program was:" >&5
20554 sed 's/^/| /' conftest.
$ac_ext >&5
20556 ac_cv_lib_svld_dlopen
=no
20559 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20560 conftest
$ac_exeext conftest.
$ac_ext
20561 LIBS
=$ac_check_lib_save_LIBS
20563 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20564 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
20565 if test $ac_cv_lib_svld_dlopen = yes; then
20567 cat >>confdefs.h
<<\_ACEOF
20568 #define HAVE_LIBDL 1
20571 LIBADD_DL
="-lsvld" libltdl_cv_func_dlopen
="yes"
20573 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20574 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
20575 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20576 echo $ECHO_N "(cached) $ECHO_C" >&6
20578 ac_check_lib_save_LIBS
=$LIBS
20580 cat >conftest.
$ac_ext <<_ACEOF
20583 cat confdefs.h
>>conftest.
$ac_ext
20584 cat >>conftest.
$ac_ext <<_ACEOF
20585 /* end confdefs.h. */
20587 /* Override any GCC internal prototype to avoid an error.
20588 Use char because int might match the return type of a GCC
20589 builtin and then its argument prototype would still apply. */
20597 return dld_link ();
20602 rm -f conftest.
$ac_objext conftest
$ac_exeext
20603 if { (ac_try
="$ac_link"
20604 case "(($ac_try" in
20605 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20606 *) ac_try_echo=$ac_try;;
20608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20609 (eval "$ac_link") 2>conftest.er1
20611 grep -v '^ *+' conftest.er1 >conftest.err
20613 cat conftest.err >&5
20614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615 (exit $ac_status); } && {
20616 test -z "$ac_c_werror_flag" ||
20617 test ! -s conftest.err
20618 } && test -s conftest$ac_exeext &&
20619 $as_test_x conftest$ac_exeext; then
20620 ac_cv_lib_dld_dld_link=yes
20622 echo "$as_me: failed program was:" >&5
20623 sed 's/^/| /' conftest.$ac_ext >&5
20625 ac_cv_lib_dld_dld_link=no
20628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20629 conftest$ac_exeext conftest.$ac_ext
20630 LIBS=$ac_check_lib_save_LIBS
20632 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20633 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
20634 if test $ac_cv_lib_dld_dld_link = yes; then
20636 cat >>confdefs.h <<\_ACEOF
20640 LIBADD_DL="$LIBADD_DL -ldld"
20642 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
20643 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
20644 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
20645 echo $ECHO_N "(cached) $ECHO_C" >&6
20647 cat >conftest.$ac_ext <<_ACEOF
20650 cat confdefs.h >>conftest.$ac_ext
20651 cat >>conftest.$ac_ext <<_ACEOF
20652 /* end confdefs.h. */
20653 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
20654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20655 #define _dyld_func_lookup innocuous__dyld_func_lookup
20657 /* System header to define __stub macros and hopefully few prototypes,
20658 which can conflict with char _dyld_func_lookup (); below.
20659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20660 <limits.h> exists even on freestanding compilers. */
20663 # include <limits.h>
20665 # include <assert.h>
20668 #undef _dyld_func_lookup
20670 /* Override any GCC internal prototype to avoid an error.
20671 Use char because int might match the return type of a GCC
20672 builtin and then its argument prototype would still apply. */
20676 char _dyld_func_lookup ();
20677 /* The GNU C library defines this for functions which it implements
20678 to always fail with ENOSYS. Some functions are actually named
20679 something starting with __ and the normal name is an alias. */
20680 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
20687 return _dyld_func_lookup ();
20692 rm -f conftest.$ac_objext conftest$ac_exeext
20693 if { (ac_try="$ac_link"
20694 case "(($ac_try" in
20695 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20696 *) ac_try_echo
=$ac_try;;
20698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20699 (eval "$ac_link") 2>conftest.er1
20701 grep -v '^ *+' conftest.er1
>conftest.err
20703 cat conftest.err
>&5
20704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705 (exit $ac_status); } && {
20706 test -z "$ac_c_werror_flag" ||
20707 test ! -s conftest.err
20708 } && test -s conftest
$ac_exeext &&
20709 $as_test_x conftest
$ac_exeext; then
20710 ac_cv_func__dyld_func_lookup
=yes
20712 echo "$as_me: failed program was:" >&5
20713 sed 's/^/| /' conftest.
$ac_ext >&5
20715 ac_cv_func__dyld_func_lookup
=no
20718 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20719 conftest
$ac_exeext conftest.
$ac_ext
20721 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
20722 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
20723 if test $ac_cv_func__dyld_func_lookup = yes; then
20725 cat >>confdefs.h
<<\_ACEOF
20726 #define HAVE_DYLD 1
20740 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20741 conftest
$ac_exeext conftest.
$ac_ext
20752 if test x
"$libltdl_cv_func_dlopen" = xyes ||
test x
"$libltdl_cv_lib_dl_dlopen" = xyes
20754 lt_save_LIBS
="$LIBS"
20755 LIBS
="$LIBS $LIBADD_DL"
20757 for ac_func
in dlerror
20759 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20760 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20762 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20763 echo $ECHO_N "(cached) $ECHO_C" >&6
20765 cat >conftest.
$ac_ext <<_ACEOF
20768 cat confdefs.h
>>conftest.
$ac_ext
20769 cat >>conftest.
$ac_ext <<_ACEOF
20770 /* end confdefs.h. */
20771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20773 #define $ac_func innocuous_$ac_func
20775 /* System header to define __stub macros and hopefully few prototypes,
20776 which can conflict with char $ac_func (); below.
20777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20778 <limits.h> exists even on freestanding compilers. */
20781 # include <limits.h>
20783 # include <assert.h>
20788 /* Override any GCC internal prototype to avoid an error.
20789 Use char because int might match the return type of a GCC
20790 builtin and then its argument prototype would still apply. */
20795 /* The GNU C library defines this for functions which it implements
20796 to always fail with ENOSYS. Some functions are actually named
20797 something starting with __ and the normal name is an alias. */
20798 #if defined __stub_$ac_func || defined __stub___$ac_func
20805 return $ac_func ();
20810 rm -f conftest.
$ac_objext conftest
$ac_exeext
20811 if { (ac_try
="$ac_link"
20812 case "(($ac_try" in
20813 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20814 *) ac_try_echo=$ac_try;;
20816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20817 (eval "$ac_link") 2>conftest.er1
20819 grep -v '^ *+' conftest.er1 >conftest.err
20821 cat conftest.err >&5
20822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823 (exit $ac_status); } && {
20824 test -z "$ac_c_werror_flag" ||
20825 test ! -s conftest.err
20826 } && test -s conftest$ac_exeext &&
20827 $as_test_x conftest$ac_exeext; then
20828 eval "$as_ac_var=yes"
20830 echo "$as_me: failed program was:" >&5
20831 sed 's/^/| /' conftest.$ac_ext >&5
20833 eval "$as_ac_var=no"
20836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20837 conftest$ac_exeext conftest.$ac_ext
20839 ac_res=`eval echo '${'$as_ac_var'}'`
20840 { echo "$as_me:$LINENO: result: $ac_res" >&5
20841 echo "${ECHO_T}$ac_res" >&6; }
20842 if test `eval echo '${'$as_ac_var'}'` = yes; then
20843 cat >>confdefs.h <<_ACEOF
20844 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
20850 LIBS="$lt_save_LIBS"
20853 ac_cpp='$CPP $CPPFLAGS'
20854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20860 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
20861 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
20862 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
20863 echo $ECHO_N "(cached) $ECHO_C" >&6
20865 ac_cv_sys_symbol_underscore=no
20866 cat > conftest.$ac_ext <<EOF
20867 void nm_test_func(){}
20868 int main(){nm_test_func;return 0;}
20870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20871 (eval $ac_compile) 2>&5
20873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874 (exit $ac_status); }; then
20875 # Now try to grab the symbols.
20876 ac_nlist=conftest.nm
20877 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
20878 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881 (exit $ac_status); } && test -s "$ac_nlist"; then
20882 # See whether the symbols have a leading underscore.
20883 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20884 ac_cv_sys_symbol_underscore=yes
20886 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20889 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20893 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20896 echo "configure: failed program was:" >&5
20902 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
20903 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
20906 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
20907 if test x"$libltdl_cv_func_dlopen" = xyes ||
20908 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20909 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
20910 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
20911 if test "${libltdl_cv_need_uscore+set}" = set; then
20912 echo $ECHO_N "(cached) $ECHO_C" >&6
20914 libltdl_cv_need_uscore=unknown
20916 LIBS="$LIBS $LIBADD_DL"
20917 if test "$cross_compiling" = yes; then :
20918 libltdl_cv_need_uscore=cross
20920 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20921 lt_status=$lt_dlunknown
20922 cat > conftest.$ac_ext <<EOF
20923 #line 20923 "configure"
20924 #include "confdefs.h"
20933 # define LT_DLGLOBAL RTLD_GLOBAL
20936 # define LT_DLGLOBAL DL_GLOBAL
20938 # define LT_DLGLOBAL 0
20942 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20943 find out it does not work in some platform. */
20944 #ifndef LT_DLLAZY_OR_NOW
20946 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20949 # define LT_DLLAZY_OR_NOW DL_LAZY
20952 # define LT_DLLAZY_OR_NOW RTLD_NOW
20955 # define LT_DLLAZY_OR_NOW DL_NOW
20957 # define LT_DLLAZY_OR_NOW 0
20965 extern "C" void exit (int);
20968 void fnord() { int i=42;}
20971 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20972 int status = $lt_dlunknown;
20976 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20977 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20978 /* dlclose (self); */
20986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20987 (eval $ac_link) 2>&5
20989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20991 (./conftest; exit; ) >&5 2>/dev/null
20993 case x$lt_status in
20994 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20995 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20996 x$lt_dlunknown|x*) ;;
20999 # compilation failed
21008 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
21009 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
21013 if test x"$libltdl_cv_need_uscore" = xyes; then
21015 cat >>confdefs.h <<\_ACEOF
21016 #define NEED_USCORE 1
21022 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
21023 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
21024 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
21025 echo $ECHO_N "(cached) $ECHO_C" >&6
21027 # PORTME does your system automatically load deplibs for dlopen?
21028 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
21029 # For now, we just catch OSes we know something about -- in the
21030 # future, we'll try test this programmatically.
21031 libltdl_cv_sys_dlopen_deplibs=unknown
21033 aix3*|aix4.1.*|aix4.2.*)
21034 # Unknown whether this is true for these versions of AIX, but
21035 # we want this `case' here to explicitly catch those versions.
21036 libltdl_cv_sys_dlopen_deplibs=unknown
21039 libltdl_cv_sys_dlopen_deplibs=yes
21042 # Assuming the user has installed a libdl from somewhere, this is true
21043 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
21044 libltdl_cv_sys_dlopen_deplibs=yes
21046 freebsd* | dragonfly*)
21047 libltdl_cv_sys_dlopen_deplibs=yes
21049 gnu* | linux* | k*bsd*-gnu)
21050 # GNU and its variants, using gnu ld.so (Glibc)
21051 libltdl_cv_sys_dlopen_deplibs=yes
21054 libltdl_cv_sys_dlopen_deplibs=yes
21057 libltdl_cv_sys_dlopen_deplibs=yes
21059 irix[12345]*|irix6.[01]*)
21060 # Catch all versions of IRIX before 6.2, and indicate that we don't
21061 # know how it worked for any of those versions.
21062 libltdl_cv_sys_dlopen_deplibs
=unknown
21065 # The case above catches anything before 6.2, and it's known that
21066 # at 6.2 and later dlopen does load deplibs.
21067 libltdl_cv_sys_dlopen_deplibs
=yes
21070 libltdl_cv_sys_dlopen_deplibs
=yes
21073 libltdl_cv_sys_dlopen_deplibs
=yes
21076 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
21077 # it did *not* use an RPATH in a shared library to find objects the
21078 # library depends on, so we explictly say `no'.
21079 libltdl_cv_sys_dlopen_deplibs
=no
21081 osf5.0|osf5.0a|osf5.1
)
21082 # dlopen *does* load deplibs and with the right loader patch applied
21083 # it even uses RPATH in a shared library to search for shared objects
21084 # that the library depends on, but there's no easy way to know if that
21085 # patch is installed. Since this is the case, all we can really
21086 # say is unknown -- it depends on the patch being installed. If
21087 # it is, this changes to `yes'. Without it, it would be `no'.
21088 libltdl_cv_sys_dlopen_deplibs
=unknown
21091 # the two cases above should catch all versions of osf <= 5.1. Read
21092 # the comments above for what we know about them.
21093 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
21094 # is used to find them so we can finally say `yes'.
21095 libltdl_cv_sys_dlopen_deplibs
=yes
21098 libltdl_cv_sys_dlopen_deplibs
=yes
21100 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21101 libltdl_cv_sys_dlopen_deplibs
=yes
21106 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
21107 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
21108 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
21110 cat >>confdefs.h
<<\_ACEOF
21111 #define LTDL_DLOPEN_DEPLIBS 1
21117 for ac_header
in argz.h
21119 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21120 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21121 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21123 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21124 echo $ECHO_N "(cached) $ECHO_C" >&6
21126 ac_res
=`eval echo '${'$as_ac_Header'}'`
21127 { echo "$as_me:$LINENO: result: $ac_res" >&5
21128 echo "${ECHO_T}$ac_res" >&6; }
21130 # Is the header compilable?
21131 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21132 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21133 cat >conftest.
$ac_ext <<_ACEOF
21136 cat confdefs.h
>>conftest.
$ac_ext
21137 cat >>conftest.
$ac_ext <<_ACEOF
21138 /* end confdefs.h. */
21139 $ac_includes_default
21140 #include <$ac_header>
21142 rm -f conftest.
$ac_objext
21143 if { (ac_try
="$ac_compile"
21144 case "(($ac_try" in
21145 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21146 *) ac_try_echo=$ac_try;;
21148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21149 (eval "$ac_compile") 2>conftest.er1
21151 grep -v '^ *+' conftest.er1 >conftest.err
21153 cat conftest.err >&5
21154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21155 (exit $ac_status); } && {
21156 test -z "$ac_c_werror_flag" ||
21157 test ! -s conftest.err
21158 } && test -s conftest.$ac_objext; then
21159 ac_header_compiler=yes
21161 echo "$as_me: failed program was:" >&5
21162 sed 's/^/| /' conftest.$ac_ext >&5
21164 ac_header_compiler=no
21167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21168 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21169 echo "${ECHO_T}$ac_header_compiler" >&6; }
21171 # Is the header present?
21172 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21173 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21174 cat >conftest.$ac_ext <<_ACEOF
21177 cat confdefs.h >>conftest.$ac_ext
21178 cat >>conftest.$ac_ext <<_ACEOF
21179 /* end confdefs.h. */
21180 #include <$ac_header>
21182 if { (ac_try="$ac_cpp conftest.$ac_ext"
21183 case "(($ac_try" in
21184 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21185 *) ac_try_echo
=$ac_try;;
21187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21188 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21190 grep -v '^ *+' conftest.er1
>conftest.err
21192 cat conftest.err
>&5
21193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21194 (exit $ac_status); } >/dev
/null
&& {
21195 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21196 test ! -s conftest.err
21198 ac_header_preproc
=yes
21200 echo "$as_me: failed program was:" >&5
21201 sed 's/^/| /' conftest.
$ac_ext >&5
21203 ac_header_preproc
=no
21206 rm -f conftest.err conftest.
$ac_ext
21207 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21208 echo "${ECHO_T}$ac_header_preproc" >&6; }
21210 # So? What about this header?
21211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21213 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21214 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21216 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21217 ac_header_preproc
=yes
21220 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21221 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21222 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21223 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21224 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21225 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21226 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21227 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21229 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21230 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21231 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21233 ## ---------------------------------- ##
21234 ## Report this to bug-libtool@gnu.org ##
21235 ## ---------------------------------- ##
21237 ) |
sed "s/^/$as_me: WARNING: /" >&2
21240 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21242 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21243 echo $ECHO_N "(cached) $ECHO_C" >&6
21245 eval "$as_ac_Header=\$ac_header_preproc"
21247 ac_res
=`eval echo '${'$as_ac_Header'}'`
21248 { echo "$as_me:$LINENO: result: $ac_res" >&5
21249 echo "${ECHO_T}$ac_res" >&6; }
21252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21253 cat >>confdefs.h
<<_ACEOF
21254 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21262 { echo "$as_me:$LINENO: checking for error_t" >&5
21263 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
21264 if test "${ac_cv_type_error_t+set}" = set; then
21265 echo $ECHO_N "(cached) $ECHO_C" >&6
21267 cat >conftest.
$ac_ext <<_ACEOF
21270 cat confdefs.h
>>conftest.
$ac_ext
21271 cat >>conftest.
$ac_ext <<_ACEOF
21272 /* end confdefs.h. */
21277 typedef error_t ac__type_new_;
21281 if ((ac__type_new_ *) 0)
21283 if (sizeof (ac__type_new_))
21289 rm -f conftest.
$ac_objext
21290 if { (ac_try
="$ac_compile"
21291 case "(($ac_try" in
21292 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21293 *) ac_try_echo=$ac_try;;
21295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21296 (eval "$ac_compile") 2>conftest.er1
21298 grep -v '^ *+' conftest.er1 >conftest.err
21300 cat conftest.err >&5
21301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302 (exit $ac_status); } && {
21303 test -z "$ac_c_werror_flag" ||
21304 test ! -s conftest.err
21305 } && test -s conftest.$ac_objext; then
21306 ac_cv_type_error_t=yes
21308 echo "$as_me: failed program was:" >&5
21309 sed 's/^/| /' conftest.$ac_ext >&5
21311 ac_cv_type_error_t=no
21314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21316 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
21317 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
21318 if test $ac_cv_type_error_t = yes; then
21320 cat >>confdefs.h <<_ACEOF
21321 #define HAVE_ERROR_T 1
21327 cat >>confdefs.h <<\_ACEOF
21328 #define error_t int
21339 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
21341 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
21342 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21343 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21344 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21345 echo $ECHO_N "(cached) $ECHO_C" >&6
21347 cat >conftest.$ac_ext <<_ACEOF
21350 cat confdefs.h >>conftest.$ac_ext
21351 cat >>conftest.$ac_ext <<_ACEOF
21352 /* end confdefs.h. */
21353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21355 #define $ac_func innocuous_$ac_func
21357 /* System header to define __stub macros and hopefully few prototypes,
21358 which can conflict with char $ac_func (); below.
21359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21360 <limits.h> exists even on freestanding compilers. */
21363 # include <limits.h>
21365 # include <assert.h>
21370 /* Override any GCC internal prototype to avoid an error.
21371 Use char because int might match the return type of a GCC
21372 builtin and then its argument prototype would still apply. */
21377 /* The GNU C library defines this for functions which it implements
21378 to always fail with ENOSYS. Some functions are actually named
21379 something starting with __ and the normal name is an alias. */
21380 #if defined __stub_$ac_func || defined __stub___$ac_func
21387 return $ac_func ();
21392 rm -f conftest.$ac_objext conftest$ac_exeext
21393 if { (ac_try="$ac_link"
21394 case "(($ac_try" in
21395 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21396 *) ac_try_echo
=$ac_try;;
21398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21399 (eval "$ac_link") 2>conftest.er1
21401 grep -v '^ *+' conftest.er1
>conftest.err
21403 cat conftest.err
>&5
21404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405 (exit $ac_status); } && {
21406 test -z "$ac_c_werror_flag" ||
21407 test ! -s conftest.err
21408 } && test -s conftest
$ac_exeext &&
21409 $as_test_x conftest
$ac_exeext; then
21410 eval "$as_ac_var=yes"
21412 echo "$as_me: failed program was:" >&5
21413 sed 's/^/| /' conftest.
$ac_ext >&5
21415 eval "$as_ac_var=no"
21418 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21419 conftest
$ac_exeext conftest.
$ac_ext
21421 ac_res
=`eval echo '${'$as_ac_var'}'`
21422 { echo "$as_me:$LINENO: result: $ac_res" >&5
21423 echo "${ECHO_T}$ac_res" >&6; }
21424 if test `eval echo '${'$as_ac_var'}'` = yes; then
21425 cat >>confdefs.h
<<_ACEOF
21426 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21459 for ac_header
in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
21462 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21463 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21464 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21466 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21467 echo $ECHO_N "(cached) $ECHO_C" >&6
21469 ac_res
=`eval echo '${'$as_ac_Header'}'`
21470 { echo "$as_me:$LINENO: result: $ac_res" >&5
21471 echo "${ECHO_T}$ac_res" >&6; }
21473 # Is the header compilable?
21474 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21475 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21476 cat >conftest.
$ac_ext <<_ACEOF
21479 cat confdefs.h
>>conftest.
$ac_ext
21480 cat >>conftest.
$ac_ext <<_ACEOF
21481 /* end confdefs.h. */
21482 $ac_includes_default
21483 #include <$ac_header>
21485 rm -f conftest.
$ac_objext
21486 if { (ac_try
="$ac_compile"
21487 case "(($ac_try" in
21488 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21489 *) ac_try_echo=$ac_try;;
21491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21492 (eval "$ac_compile") 2>conftest.er1
21494 grep -v '^ *+' conftest.er1 >conftest.err
21496 cat conftest.err >&5
21497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498 (exit $ac_status); } && {
21499 test -z "$ac_c_werror_flag" ||
21500 test ! -s conftest.err
21501 } && test -s conftest.$ac_objext; then
21502 ac_header_compiler=yes
21504 echo "$as_me: failed program was:" >&5
21505 sed 's/^/| /' conftest.$ac_ext >&5
21507 ac_header_compiler=no
21510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21511 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21512 echo "${ECHO_T}$ac_header_compiler" >&6; }
21514 # Is the header present?
21515 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21516 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21517 cat >conftest.$ac_ext <<_ACEOF
21520 cat confdefs.h >>conftest.$ac_ext
21521 cat >>conftest.$ac_ext <<_ACEOF
21522 /* end confdefs.h. */
21523 #include <$ac_header>
21525 if { (ac_try="$ac_cpp conftest.$ac_ext"
21526 case "(($ac_try" in
21527 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21528 *) ac_try_echo
=$ac_try;;
21530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21531 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21533 grep -v '^ *+' conftest.er1
>conftest.err
21535 cat conftest.err
>&5
21536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537 (exit $ac_status); } >/dev
/null
&& {
21538 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21539 test ! -s conftest.err
21541 ac_header_preproc
=yes
21543 echo "$as_me: failed program was:" >&5
21544 sed 's/^/| /' conftest.
$ac_ext >&5
21546 ac_header_preproc
=no
21549 rm -f conftest.err conftest.
$ac_ext
21550 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21551 echo "${ECHO_T}$ac_header_preproc" >&6; }
21553 # So? What about this header?
21554 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21556 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21557 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21559 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21560 ac_header_preproc
=yes
21563 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21564 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21565 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21566 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21567 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21568 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21569 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21570 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21572 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21573 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21574 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21576 ## ---------------------------------- ##
21577 ## Report this to bug-libtool@gnu.org ##
21578 ## ---------------------------------- ##
21580 ) |
sed "s/^/$as_me: WARNING: /" >&2
21583 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21585 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21586 echo $ECHO_N "(cached) $ECHO_C" >&6
21588 eval "$as_ac_Header=\$ac_header_preproc"
21590 ac_res
=`eval echo '${'$as_ac_Header'}'`
21591 { echo "$as_me:$LINENO: result: $ac_res" >&5
21592 echo "${ECHO_T}$ac_res" >&6; }
21595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21596 cat >>confdefs.h
<<_ACEOF
21597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21608 for ac_header
in dl.h sys
/dl.h dld.h mach-o
/dyld.h
21610 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21611 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21612 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21614 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21615 echo $ECHO_N "(cached) $ECHO_C" >&6
21617 ac_res
=`eval echo '${'$as_ac_Header'}'`
21618 { echo "$as_me:$LINENO: result: $ac_res" >&5
21619 echo "${ECHO_T}$ac_res" >&6; }
21621 # Is the header compilable?
21622 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21623 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21624 cat >conftest.
$ac_ext <<_ACEOF
21627 cat confdefs.h
>>conftest.
$ac_ext
21628 cat >>conftest.
$ac_ext <<_ACEOF
21629 /* end confdefs.h. */
21630 $ac_includes_default
21631 #include <$ac_header>
21633 rm -f conftest.
$ac_objext
21634 if { (ac_try
="$ac_compile"
21635 case "(($ac_try" in
21636 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21637 *) ac_try_echo=$ac_try;;
21639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21640 (eval "$ac_compile") 2>conftest.er1
21642 grep -v '^ *+' conftest.er1 >conftest.err
21644 cat conftest.err >&5
21645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646 (exit $ac_status); } && {
21647 test -z "$ac_c_werror_flag" ||
21648 test ! -s conftest.err
21649 } && test -s conftest.$ac_objext; then
21650 ac_header_compiler=yes
21652 echo "$as_me: failed program was:" >&5
21653 sed 's/^/| /' conftest.$ac_ext >&5
21655 ac_header_compiler=no
21658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21659 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21660 echo "${ECHO_T}$ac_header_compiler" >&6; }
21662 # Is the header present?
21663 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21664 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21665 cat >conftest.$ac_ext <<_ACEOF
21668 cat confdefs.h >>conftest.$ac_ext
21669 cat >>conftest.$ac_ext <<_ACEOF
21670 /* end confdefs.h. */
21671 #include <$ac_header>
21673 if { (ac_try="$ac_cpp conftest.$ac_ext"
21674 case "(($ac_try" in
21675 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21676 *) ac_try_echo
=$ac_try;;
21678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21679 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21681 grep -v '^ *+' conftest.er1
>conftest.err
21683 cat conftest.err
>&5
21684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685 (exit $ac_status); } >/dev
/null
&& {
21686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21687 test ! -s conftest.err
21689 ac_header_preproc
=yes
21691 echo "$as_me: failed program was:" >&5
21692 sed 's/^/| /' conftest.
$ac_ext >&5
21694 ac_header_preproc
=no
21697 rm -f conftest.err conftest.
$ac_ext
21698 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21699 echo "${ECHO_T}$ac_header_preproc" >&6; }
21701 # So? What about this header?
21702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21704 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21705 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21707 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21708 ac_header_preproc
=yes
21711 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21712 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21713 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21714 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21715 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21716 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21717 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21718 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21720 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21721 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21722 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21724 ## ---------------------------------- ##
21725 ## Report this to bug-libtool@gnu.org ##
21726 ## ---------------------------------- ##
21728 ) |
sed "s/^/$as_me: WARNING: /" >&2
21731 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21733 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21734 echo $ECHO_N "(cached) $ECHO_C" >&6
21736 eval "$as_ac_Header=\$ac_header_preproc"
21738 ac_res
=`eval echo '${'$as_ac_Header'}'`
21739 { echo "$as_me:$LINENO: result: $ac_res" >&5
21740 echo "${ECHO_T}$ac_res" >&6; }
21743 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21744 cat >>confdefs.h
<<_ACEOF
21745 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21754 for ac_header
in string.h
strings.h
21756 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21757 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21758 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21760 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21761 echo $ECHO_N "(cached) $ECHO_C" >&6
21763 ac_res
=`eval echo '${'$as_ac_Header'}'`
21764 { echo "$as_me:$LINENO: result: $ac_res" >&5
21765 echo "${ECHO_T}$ac_res" >&6; }
21767 # Is the header compilable?
21768 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21769 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21770 cat >conftest.
$ac_ext <<_ACEOF
21773 cat confdefs.h
>>conftest.
$ac_ext
21774 cat >>conftest.
$ac_ext <<_ACEOF
21775 /* end confdefs.h. */
21776 $ac_includes_default
21777 #include <$ac_header>
21779 rm -f conftest.
$ac_objext
21780 if { (ac_try
="$ac_compile"
21781 case "(($ac_try" in
21782 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21783 *) ac_try_echo=$ac_try;;
21785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21786 (eval "$ac_compile") 2>conftest.er1
21788 grep -v '^ *+' conftest.er1 >conftest.err
21790 cat conftest.err >&5
21791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21792 (exit $ac_status); } && {
21793 test -z "$ac_c_werror_flag" ||
21794 test ! -s conftest.err
21795 } && test -s conftest.$ac_objext; then
21796 ac_header_compiler=yes
21798 echo "$as_me: failed program was:" >&5
21799 sed 's/^/| /' conftest.$ac_ext >&5
21801 ac_header_compiler=no
21804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21805 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21806 echo "${ECHO_T}$ac_header_compiler" >&6; }
21808 # Is the header present?
21809 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21810 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21811 cat >conftest.$ac_ext <<_ACEOF
21814 cat confdefs.h >>conftest.$ac_ext
21815 cat >>conftest.$ac_ext <<_ACEOF
21816 /* end confdefs.h. */
21817 #include <$ac_header>
21819 if { (ac_try="$ac_cpp conftest.$ac_ext"
21820 case "(($ac_try" in
21821 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21822 *) ac_try_echo
=$ac_try;;
21824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21827 grep -v '^ *+' conftest.er1
>conftest.err
21829 cat conftest.err
>&5
21830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831 (exit $ac_status); } >/dev
/null
&& {
21832 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21833 test ! -s conftest.err
21835 ac_header_preproc
=yes
21837 echo "$as_me: failed program was:" >&5
21838 sed 's/^/| /' conftest.
$ac_ext >&5
21840 ac_header_preproc
=no
21843 rm -f conftest.err conftest.
$ac_ext
21844 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21845 echo "${ECHO_T}$ac_header_preproc" >&6; }
21847 # So? What about this header?
21848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21850 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21851 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21853 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21854 ac_header_preproc
=yes
21857 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21858 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21859 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21860 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21861 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21862 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21863 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21864 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21866 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21867 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21868 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21870 ## ---------------------------------- ##
21871 ## Report this to bug-libtool@gnu.org ##
21872 ## ---------------------------------- ##
21874 ) |
sed "s/^/$as_me: WARNING: /" >&2
21877 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21879 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21880 echo $ECHO_N "(cached) $ECHO_C" >&6
21882 eval "$as_ac_Header=\$ac_header_preproc"
21884 ac_res
=`eval echo '${'$as_ac_Header'}'`
21885 { echo "$as_me:$LINENO: result: $ac_res" >&5
21886 echo "${ECHO_T}$ac_res" >&6; }
21889 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21890 cat >>confdefs.h
<<_ACEOF
21891 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21901 for ac_func
in strchr index
21903 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21904 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21905 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21906 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21907 echo $ECHO_N "(cached) $ECHO_C" >&6
21909 cat >conftest.
$ac_ext <<_ACEOF
21912 cat confdefs.h
>>conftest.
$ac_ext
21913 cat >>conftest.
$ac_ext <<_ACEOF
21914 /* end confdefs.h. */
21915 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21917 #define $ac_func innocuous_$ac_func
21919 /* System header to define __stub macros and hopefully few prototypes,
21920 which can conflict with char $ac_func (); below.
21921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21922 <limits.h> exists even on freestanding compilers. */
21925 # include <limits.h>
21927 # include <assert.h>
21932 /* Override any GCC internal prototype to avoid an error.
21933 Use char because int might match the return type of a GCC
21934 builtin and then its argument prototype would still apply. */
21939 /* The GNU C library defines this for functions which it implements
21940 to always fail with ENOSYS. Some functions are actually named
21941 something starting with __ and the normal name is an alias. */
21942 #if defined __stub_$ac_func || defined __stub___$ac_func
21949 return $ac_func ();
21954 rm -f conftest.
$ac_objext conftest
$ac_exeext
21955 if { (ac_try
="$ac_link"
21956 case "(($ac_try" in
21957 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21958 *) ac_try_echo=$ac_try;;
21960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21961 (eval "$ac_link") 2>conftest.er1
21963 grep -v '^ *+' conftest.er1 >conftest.err
21965 cat conftest.err >&5
21966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21967 (exit $ac_status); } && {
21968 test -z "$ac_c_werror_flag" ||
21969 test ! -s conftest.err
21970 } && test -s conftest$ac_exeext &&
21971 $as_test_x conftest$ac_exeext; then
21972 eval "$as_ac_var=yes"
21974 echo "$as_me: failed program was:" >&5
21975 sed 's/^/| /' conftest.$ac_ext >&5
21977 eval "$as_ac_var=no"
21980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21981 conftest$ac_exeext conftest.$ac_ext
21983 ac_res=`eval echo '${'$as_ac_var'}'`
21984 { echo "$as_me:$LINENO: result: $ac_res" >&5
21985 echo "${ECHO_T}$ac_res" >&6; }
21986 if test `eval echo '${'$as_ac_var'}'` = yes; then
21987 cat >>confdefs.h <<_ACEOF
21988 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
21996 for ac_func in strrchr rindex
21998 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
21999 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22001 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22002 echo $ECHO_N "(cached) $ECHO_C" >&6
22004 cat >conftest.$ac_ext <<_ACEOF
22007 cat confdefs.h >>conftest.$ac_ext
22008 cat >>conftest.$ac_ext <<_ACEOF
22009 /* end confdefs.h. */
22010 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22012 #define $ac_func innocuous_$ac_func
22014 /* System header to define __stub macros and hopefully few prototypes,
22015 which can conflict with char $ac_func (); below.
22016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22017 <limits.h> exists even on freestanding compilers. */
22020 # include <limits.h>
22022 # include <assert.h>
22027 /* Override any GCC internal prototype to avoid an error.
22028 Use char because int might match the return type of a GCC
22029 builtin and then its argument prototype would still apply. */
22034 /* The GNU C library defines this for functions which it implements
22035 to always fail with ENOSYS. Some functions are actually named
22036 something starting with __ and the normal name is an alias. */
22037 #if defined __stub_$ac_func || defined __stub___$ac_func
22044 return $ac_func ();
22049 rm -f conftest.$ac_objext conftest$ac_exeext
22050 if { (ac_try="$ac_link"
22051 case "(($ac_try" in
22052 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22053 *) ac_try_echo
=$ac_try;;
22055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22056 (eval "$ac_link") 2>conftest.er1
22058 grep -v '^ *+' conftest.er1
>conftest.err
22060 cat conftest.err
>&5
22061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22062 (exit $ac_status); } && {
22063 test -z "$ac_c_werror_flag" ||
22064 test ! -s conftest.err
22065 } && test -s conftest
$ac_exeext &&
22066 $as_test_x conftest
$ac_exeext; then
22067 eval "$as_ac_var=yes"
22069 echo "$as_me: failed program was:" >&5
22070 sed 's/^/| /' conftest.
$ac_ext >&5
22072 eval "$as_ac_var=no"
22075 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22076 conftest
$ac_exeext conftest.
$ac_ext
22078 ac_res
=`eval echo '${'$as_ac_var'}'`
22079 { echo "$as_me:$LINENO: result: $ac_res" >&5
22080 echo "${ECHO_T}$ac_res" >&6; }
22081 if test `eval echo '${'$as_ac_var'}'` = yes; then
22082 cat >>confdefs.h
<<_ACEOF
22083 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22091 for ac_func
in memcpy bcopy
22093 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22094 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22095 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22096 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22097 echo $ECHO_N "(cached) $ECHO_C" >&6
22099 cat >conftest.
$ac_ext <<_ACEOF
22102 cat confdefs.h
>>conftest.
$ac_ext
22103 cat >>conftest.
$ac_ext <<_ACEOF
22104 /* end confdefs.h. */
22105 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22106 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22107 #define $ac_func innocuous_$ac_func
22109 /* System header to define __stub macros and hopefully few prototypes,
22110 which can conflict with char $ac_func (); below.
22111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22112 <limits.h> exists even on freestanding compilers. */
22115 # include <limits.h>
22117 # include <assert.h>
22122 /* Override any GCC internal prototype to avoid an error.
22123 Use char because int might match the return type of a GCC
22124 builtin and then its argument prototype would still apply. */
22129 /* The GNU C library defines this for functions which it implements
22130 to always fail with ENOSYS. Some functions are actually named
22131 something starting with __ and the normal name is an alias. */
22132 #if defined __stub_$ac_func || defined __stub___$ac_func
22139 return $ac_func ();
22144 rm -f conftest.
$ac_objext conftest
$ac_exeext
22145 if { (ac_try
="$ac_link"
22146 case "(($ac_try" in
22147 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22148 *) ac_try_echo=$ac_try;;
22150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22151 (eval "$ac_link") 2>conftest.er1
22153 grep -v '^ *+' conftest.er1 >conftest.err
22155 cat conftest.err >&5
22156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157 (exit $ac_status); } && {
22158 test -z "$ac_c_werror_flag" ||
22159 test ! -s conftest.err
22160 } && test -s conftest$ac_exeext &&
22161 $as_test_x conftest$ac_exeext; then
22162 eval "$as_ac_var=yes"
22164 echo "$as_me: failed program was:" >&5
22165 sed 's/^/| /' conftest.$ac_ext >&5
22167 eval "$as_ac_var=no"
22170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22171 conftest$ac_exeext conftest.$ac_ext
22173 ac_res=`eval echo '${'$as_ac_var'}'`
22174 { echo "$as_me:$LINENO: result: $ac_res" >&5
22175 echo "${ECHO_T}$ac_res" >&6; }
22176 if test `eval echo '${'$as_ac_var'}'` = yes; then
22177 cat >>confdefs.h <<_ACEOF
22178 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
22186 for ac_func in memmove strcmp
22188 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
22189 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22191 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22192 echo $ECHO_N "(cached) $ECHO_C" >&6
22194 cat >conftest.$ac_ext <<_ACEOF
22197 cat confdefs.h >>conftest.$ac_ext
22198 cat >>conftest.$ac_ext <<_ACEOF
22199 /* end confdefs.h. */
22200 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22202 #define $ac_func innocuous_$ac_func
22204 /* System header to define __stub macros and hopefully few prototypes,
22205 which can conflict with char $ac_func (); below.
22206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22207 <limits.h> exists even on freestanding compilers. */
22210 # include <limits.h>
22212 # include <assert.h>
22217 /* Override any GCC internal prototype to avoid an error.
22218 Use char because int might match the return type of a GCC
22219 builtin and then its argument prototype would still apply. */
22224 /* The GNU C library defines this for functions which it implements
22225 to always fail with ENOSYS. Some functions are actually named
22226 something starting with __ and the normal name is an alias. */
22227 #if defined __stub_$ac_func || defined __stub___$ac_func
22234 return $ac_func ();
22239 rm -f conftest.$ac_objext conftest$ac_exeext
22240 if { (ac_try="$ac_link"
22241 case "(($ac_try" in
22242 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22243 *) ac_try_echo
=$ac_try;;
22245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22246 (eval "$ac_link") 2>conftest.er1
22248 grep -v '^ *+' conftest.er1
>conftest.err
22250 cat conftest.err
>&5
22251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22252 (exit $ac_status); } && {
22253 test -z "$ac_c_werror_flag" ||
22254 test ! -s conftest.err
22255 } && test -s conftest
$ac_exeext &&
22256 $as_test_x conftest
$ac_exeext; then
22257 eval "$as_ac_var=yes"
22259 echo "$as_me: failed program was:" >&5
22260 sed 's/^/| /' conftest.
$ac_ext >&5
22262 eval "$as_ac_var=no"
22265 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22266 conftest
$ac_exeext conftest.
$ac_ext
22268 ac_res
=`eval echo '${'$as_ac_var'}'`
22269 { echo "$as_me:$LINENO: result: $ac_res" >&5
22270 echo "${ECHO_T}$ac_res" >&6; }
22271 if test `eval echo '${'$as_ac_var'}'` = yes; then
22272 cat >>confdefs.h
<<_ACEOF
22273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22282 for ac_func
in closedir opendir readdir
22284 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22285 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22287 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22288 echo $ECHO_N "(cached) $ECHO_C" >&6
22290 cat >conftest.
$ac_ext <<_ACEOF
22293 cat confdefs.h
>>conftest.
$ac_ext
22294 cat >>conftest.
$ac_ext <<_ACEOF
22295 /* end confdefs.h. */
22296 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22298 #define $ac_func innocuous_$ac_func
22300 /* System header to define __stub macros and hopefully few prototypes,
22301 which can conflict with char $ac_func (); below.
22302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22303 <limits.h> exists even on freestanding compilers. */
22306 # include <limits.h>
22308 # include <assert.h>
22313 /* Override any GCC internal prototype to avoid an error.
22314 Use char because int might match the return type of a GCC
22315 builtin and then its argument prototype would still apply. */
22320 /* The GNU C library defines this for functions which it implements
22321 to always fail with ENOSYS. Some functions are actually named
22322 something starting with __ and the normal name is an alias. */
22323 #if defined __stub_$ac_func || defined __stub___$ac_func
22330 return $ac_func ();
22335 rm -f conftest.
$ac_objext conftest
$ac_exeext
22336 if { (ac_try
="$ac_link"
22337 case "(($ac_try" in
22338 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22339 *) ac_try_echo=$ac_try;;
22341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22342 (eval "$ac_link") 2>conftest.er1
22344 grep -v '^ *+' conftest.er1 >conftest.err
22346 cat conftest.err >&5
22347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22348 (exit $ac_status); } && {
22349 test -z "$ac_c_werror_flag" ||
22350 test ! -s conftest.err
22351 } && test -s conftest$ac_exeext &&
22352 $as_test_x conftest$ac_exeext; then
22353 eval "$as_ac_var=yes"
22355 echo "$as_me: failed program was:" >&5
22356 sed 's/^/| /' conftest.$ac_ext >&5
22358 eval "$as_ac_var=no"
22361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22362 conftest$ac_exeext conftest.$ac_ext
22364 ac_res=`eval echo '${'$as_ac_var'}'`
22365 { echo "$as_me:$LINENO: result: $ac_res" >&5
22366 echo "${ECHO_T}$ac_res" >&6; }
22367 if test `eval echo '${'$as_ac_var'}'` = yes; then
22368 cat >>confdefs.h <<_ACEOF
22369 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
22381 ac_config_files="$ac_config_files Makefile"
22383 cat >confcache <<\_ACEOF
22384 # This file is a shell script that caches the results of configure
22385 # tests run on this system so they can be shared between configure
22386 # scripts and configure runs, see configure's option --config-cache.
22387 # It is not useful on other systems. If it contains results you don't
22388 # want to keep, you may remove or edit it.
22390 # config.status only pays attention to the cache file if you give it
22391 # the --recheck option to rerun configure.
22393 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
22394 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22395 # following values.
22399 # The following way of writing the cache mishandles newlines in values,
22400 # but we know of no workaround that is simple, portable, and efficient.
22401 # So, we kill variables containing newlines.
22402 # Ultrix sh set writes to stderr and can't be redirected directly,
22403 # and sets the high bit in the cache file unless we assign to the vars.
22405 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22406 eval ac_val
=\$
$ac_var
22410 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22411 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22414 _ | IFS | as_nl
) ;; #(
22415 *) $as_unset $ac_var ;;
22421 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22422 *${as_nl}ac_space
=\
*)
22423 # `set' does not quote correctly, so add quotes (double-quote
22424 # substitution turns \\\\ into \\, and sed turns \\ into \).
22427 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22430 # `set' quotes correctly as required by POSIX, so do not add quotes.
22431 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22440 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22442 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22444 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
22445 if test -w "$cache_file"; then
22446 test "x$cache_file" != "x/dev/null" &&
22447 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22448 echo "$as_me: updating cache $cache_file" >&6;}
22449 cat confcache
>$cache_file
22451 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22452 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22457 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
22458 # Let make expand exec_prefix.
22459 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
22461 DEFS
=-DHAVE_CONFIG_H
22465 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
22466 # 1. Remove the extension, and $U if already installed.
22467 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
22468 ac_i
=`echo "$ac_i" | sed "$ac_script"`
22469 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22470 # will be set to the directory where LIBOBJS objects are built.
22471 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22472 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22474 LIBOBJS
=$ac_libobjs
22476 LTLIBOBJS
=$ac_ltlibobjs
22479 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22480 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22481 Usually this means the macro was only invoked conditionally." >&5
22482 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22483 Usually this means the macro was only invoked conditionally." >&2;}
22484 { (exit 1); exit 1; }; }
22486 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22487 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22488 Usually this means the macro was only invoked conditionally." >&5
22489 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22490 Usually this means the macro was only invoked conditionally." >&2;}
22491 { (exit 1); exit 1; }; }
22493 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22494 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22495 Usually this means the macro was only invoked conditionally." >&5
22496 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22497 Usually this means the macro was only invoked conditionally." >&2;}
22498 { (exit 1); exit 1; }; }
22500 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22501 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22502 Usually this means the macro was only invoked conditionally." >&5
22503 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22504 Usually this means the macro was only invoked conditionally." >&2;}
22505 { (exit 1); exit 1; }; }
22507 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22508 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22509 Usually this means the macro was only invoked conditionally." >&5
22510 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22511 Usually this means the macro was only invoked conditionally." >&2;}
22512 { (exit 1); exit 1; }; }
22515 : ${CONFIG_STATUS=./config.status}
22516 ac_clean_files_save
=$ac_clean_files
22517 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
22518 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22519 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22520 cat >$CONFIG_STATUS <<_ACEOF
22522 # Generated by $as_me.
22523 # Run this file to recreate the current configuration.
22524 # Compiler output produced by configure, useful for debugging
22525 # configure, is in config.log if it exists.
22528 ac_cs_recheck=false
22530 SHELL=\${CONFIG_SHELL-$SHELL}
22533 cat >>$CONFIG_STATUS <<\_ACEOF
22534 ## --------------------- ##
22535 ## M4sh Initialization. ##
22536 ## --------------------- ##
22538 # Be more Bourne compatible
22539 DUALCASE
=1; export DUALCASE
# for MKS sh
22540 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
22543 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22544 # is contrary to our usage. Disable this feature.
22545 alias -g '${1+"$@"}'='"$@"'
22546 setopt NO_GLOB_SUBST
22548 case `(set -o) 2>/dev/null` in
22549 *posix
*) set -o posix
;;
22558 # Avoid depending upon Character Ranges.
22559 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
22560 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22561 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
22562 as_cr_digits
='0123456789'
22563 as_cr_alnum
=$as_cr_Letters$as_cr_digits
22565 # The user is always right.
22566 if test "${PATH_SEPARATOR+set}" != set; then
22567 echo "#! /bin/sh" >conf$$.sh
22568 echo "exit 0" >>conf$$.sh
22570 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
22578 # Support unset when possible.
22579 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
22587 # We need space, tab and new line, in precisely that order. Quoting is
22588 # there to prevent editors from complaining about space-tab.
22589 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22590 # splitting by setting IFS to empty value.)
22595 # Find who we are. Look in the path if we contain no directory separator.
22597 *[\\/]* ) as_myself
=$0 ;;
22598 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22599 for as_dir
in $PATH
22602 test -z "$as_dir" && as_dir
=.
22603 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
22609 # We did not find ourselves, most probably we were run as `sh COMMAND'
22610 # in which case we are not to be found in the path.
22611 if test "x$as_myself" = x
; then
22614 if test ! -f "$as_myself"; then
22615 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22616 { (exit 1); exit 1; }
22619 # Work around bugs in pre-3.0 UWIN ksh.
22620 for as_var
in ENV MAIL MAILPATH
22621 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
22629 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22630 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22631 LC_TELEPHONE LC_TIME
22633 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22634 eval $as_var=C
; export $as_var
22636 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
22640 # Required to use basename.
22641 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
22642 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
22648 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22649 as_basename
=basename
22655 # Name of the executable.
22656 as_me
=`$as_basename -- "$0" ||
22657 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22658 X"$0" : 'X\(//\)$' \| \
22659 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22661 sed '/^.*\/\([^/][^/]*\)\/*$/{
22680 as_lineno_1
=$LINENO
22681 as_lineno_2
=$LINENO
22682 test "x$as_lineno_1" != "x$as_lineno_2" &&
22683 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
22685 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22686 # uniformly replaced by the line number. The first 'sed' inserts a
22687 # line-number line after each line using $LINENO; the second 'sed'
22688 # does the real work. The second script uses 'N' to pair each
22689 # line-number line with the line containing $LINENO, and appends
22690 # trailing '-' during substitution so that $LINENO is not a special
22691 # case at line end.
22692 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22693 # scripts with optimization help from Paolo Bonzini. Blame Lee
22694 # E. McMahon (1931-1989) for sed's syntax. :-)
22706 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22709 ' >$as_me.lineno
&&
22710 chmod +x
"$as_me.lineno" ||
22711 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22712 { (exit 1); exit 1; }; }
22714 # Don't try to exec as it changes $[0], causing all sort of problems
22715 # (the dirname of $[0] is not the place where we might find the
22716 # original and so on. Autoconf is especially sensitive to this).
22717 .
"./$as_me.lineno"
22718 # Exit status is that of the last command.
22723 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
22729 ECHO_C
= ECHO_N
= ECHO_T
=
22730 case `echo -n x` in
22732 case `echo 'x\c'` in
22733 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
22740 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
22741 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
22747 rm -f conf$$ conf$$.exe conf$$.
file
22748 if test -d conf$$.dir
; then
22749 rm -f conf$$.dir
/conf$$.
file
22755 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
22757 # ... but there are two gotchas:
22758 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22759 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22760 # In both cases, we have to default to `cp -p'.
22761 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
22763 elif ln conf$$.
file conf$$
2>/dev
/null
; then
22768 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
22769 rmdir conf$$.dir
2>/dev
/null
22771 if mkdir
-p .
2>/dev
/null
; then
22774 test -d .
/-p && rmdir .
/-p
22778 if test -x / >/dev
/null
2>&1; then
22779 as_test_x
='test -x'
22781 if ls -dL / >/dev
/null
2>&1; then
22788 if test -d "$1"; then
22794 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22795 ???[sx]*):;;*)false;;esac;fi
22799 as_executable_p
=$as_test_x
22801 # Sed expression to map a string onto a valid CPP name.
22802 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22804 # Sed expression to map a string onto a valid variable name.
22805 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22810 # Save the log message, to keep $[0] and so on meaningful, and to
22811 # report actual input values of CONFIG_FILES etc. instead of their
22812 # values after options handling.
22814 This file was extended by libltdl $as_me 1.2, which was
22815 generated by GNU Autoconf 2.61. Invocation command line was
22817 CONFIG_FILES = $CONFIG_FILES
22818 CONFIG_HEADERS = $CONFIG_HEADERS
22819 CONFIG_LINKS = $CONFIG_LINKS
22820 CONFIG_COMMANDS = $CONFIG_COMMANDS
22823 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22828 cat >>$CONFIG_STATUS <<_ACEOF
22829 # Files that config.status was made for.
22830 config_files="$ac_config_files"
22831 config_headers="$ac_config_headers"
22832 config_commands="$ac_config_commands"
22836 cat >>$CONFIG_STATUS <<\_ACEOF
22838 \`$as_me' instantiates files from templates according to the
22839 current configuration.
22841 Usage: $0 [OPTIONS] [FILE]...
22843 -h, --help print this help, then exit
22844 -V, --version print version number and configuration settings, then exit
22845 -q, --quiet do not print progress messages
22846 -d, --debug don't remove temporary files
22847 --recheck update $as_me by reconfiguring in the same conditions
22848 --file=FILE[:TEMPLATE]
22849 instantiate the configuration file FILE
22850 --header=FILE[:TEMPLATE]
22851 instantiate the configuration header FILE
22853 Configuration files:
22856 Configuration headers:
22859 Configuration commands:
22862 Report bugs to <bug-autoconf@gnu.org>."
22865 cat >>$CONFIG_STATUS <<_ACEOF
22867 libltdl config.status 1.2
22868 configured by $0, generated by GNU Autoconf 2.61,
22869 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22871 Copyright (C) 2006 Free Software Foundation, Inc.
22872 This config.status script is free software; the Free Software Foundation
22873 gives unlimited permission to copy, distribute and modify it."
22881 cat >>$CONFIG_STATUS <<\_ACEOF
22882 # If no file are specified by the user, then we need to provide default
22883 # value. By we need to know if files were specified by the user.
22889 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
22890 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
22901 # Handling of the options.
22902 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
22904 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
22905 echo "$ac_cs_version"; exit ;;
22906 --debug |
--debu |
--deb |
--de |
--d |
-d )
22908 --file |
--fil |
--fi |
--f )
22910 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
22911 ac_need_defaults
=false
;;
22912 --header |
--heade |
--head |
--hea )
22914 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
22915 ac_need_defaults
=false
;;
22917 # Conflict between --help and --header
22918 { echo "$as_me: error: ambiguous option: $1
22919 Try \`$0 --help' for more information." >&2
22920 { (exit 1); exit 1; }; };;
22921 --help |
--hel |
-h )
22922 echo "$ac_cs_usage"; exit ;;
22923 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
22924 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
22927 # This is an error.
22928 -*) { echo "$as_me: error: unrecognized option: $1
22929 Try \`$0 --help' for more information." >&2
22930 { (exit 1); exit 1; }; } ;;
22932 *) ac_config_targets
="$ac_config_targets $1"
22933 ac_need_defaults
=false
;;
22939 ac_configure_extra_args
=
22941 if $ac_cs_silent; then
22943 ac_configure_extra_args
="$ac_configure_extra_args --silent"
22947 cat >>$CONFIG_STATUS <<_ACEOF
22948 if \$ac_cs_recheck; then
22949 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22950 CONFIG_SHELL=$SHELL
22951 export CONFIG_SHELL
22952 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22956 cat >>$CONFIG_STATUS <<\_ACEOF
22960 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22961 ## Running $as_me. ##
22967 cat >>$CONFIG_STATUS <<_ACEOF
22971 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22975 cat >>$CONFIG_STATUS <<\_ACEOF
22977 # Handling of arguments.
22978 for ac_config_target
in $ac_config_targets
22980 case $ac_config_target in
22981 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config-h.in" ;;
22982 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
22983 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
22985 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22986 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22987 { (exit 1); exit 1; }; };;
22992 # If the user did not use the arguments to specify the items to instantiate,
22993 # then the envvar interface is used. Set only those that are not.
22994 # We use the long form for the default assignment because of an extremely
22995 # bizarre bug on SunOS 4.1.3.
22996 if $ac_need_defaults; then
22997 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
22998 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
22999 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23002 # Have a temporary directory for convenience. Make it in the build tree
23003 # simply because there is no reason against having it here, and in addition,
23004 # creating and moving files from /tmp can sometimes cause problems.
23005 # Hook for its removal unless debugging.
23006 # Note that there is a small window in which the directory will not be cleaned:
23007 # after its creation but before its name has been assigned to `$tmp'.
23011 trap 'exit_status=$?
23012 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23014 trap '{ (exit 1); exit 1; }' 1 2 13 15
23016 # Create a (secure) tmp directory for tmp files.
23019 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23020 test -n "$tmp" && test -d "$tmp"
23023 tmp
=.
/conf$$
-$RANDOM
23024 (umask 077 && mkdir
"$tmp")
23027 echo "$me: cannot create a temporary directory in ." >&2
23028 { (exit 1); exit 1; }
23032 # Set up the sed scripts for CONFIG_FILES section.
23035 # No need to generate the scripts if there are no CONFIG_FILES.
23036 # This happens for instance when ./config.status config.h
23037 if test -n "$CONFIG_FILES"; then
23044 for ac_last_try
in false false false false false
:; do
23045 cat >conf$
$subs.
sed <<_ACEOF
23046 SHELL!$SHELL$ac_delim
23047 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23048 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23049 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23050 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23051 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23052 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23053 exec_prefix!$exec_prefix$ac_delim
23054 prefix!$prefix$ac_delim
23055 program_transform_name!$program_transform_name$ac_delim
23056 bindir!$bindir$ac_delim
23057 sbindir!$sbindir$ac_delim
23058 libexecdir!$libexecdir$ac_delim
23059 datarootdir!$datarootdir$ac_delim
23060 datadir!$datadir$ac_delim
23061 sysconfdir!$sysconfdir$ac_delim
23062 sharedstatedir!$sharedstatedir$ac_delim
23063 localstatedir!$localstatedir$ac_delim
23064 includedir!$includedir$ac_delim
23065 oldincludedir!$oldincludedir$ac_delim
23066 docdir!$docdir$ac_delim
23067 infodir!$infodir$ac_delim
23068 htmldir!$htmldir$ac_delim
23069 dvidir!$dvidir$ac_delim
23070 pdfdir!$pdfdir$ac_delim
23071 psdir!$psdir$ac_delim
23072 libdir!$libdir$ac_delim
23073 localedir!$localedir$ac_delim
23074 mandir!$mandir$ac_delim
23075 DEFS!$DEFS$ac_delim
23076 ECHO_C!$ECHO_C$ac_delim
23077 ECHO_N!$ECHO_N$ac_delim
23078 ECHO_T!$ECHO_T$ac_delim
23079 LIBS!$LIBS$ac_delim
23080 build_alias!$build_alias$ac_delim
23081 host_alias!$host_alias$ac_delim
23082 target_alias!$target_alias$ac_delim
23083 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23084 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23085 INSTALL_DATA!$INSTALL_DATA$ac_delim
23086 am__isrc!$am__isrc$ac_delim
23087 CYGPATH_W!$CYGPATH_W$ac_delim
23088 PACKAGE!$PACKAGE$ac_delim
23089 VERSION!$VERSION$ac_delim
23090 ACLOCAL!$ACLOCAL$ac_delim
23091 AUTOCONF!$AUTOCONF$ac_delim
23092 AUTOMAKE!$AUTOMAKE$ac_delim
23093 AUTOHEADER!$AUTOHEADER$ac_delim
23094 MAKEINFO!$MAKEINFO$ac_delim
23095 install_sh!$install_sh$ac_delim
23096 STRIP!$STRIP$ac_delim
23097 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23098 mkdir_p!$mkdir_p$ac_delim
23100 SET_MAKE!$SET_MAKE$ac_delim
23101 am__leading_dot!$am__leading_dot$ac_delim
23102 AMTAR!$AMTAR$ac_delim
23103 am__tar!$am__tar$ac_delim
23104 am__untar!$am__untar$ac_delim
23106 CFLAGS!$CFLAGS$ac_delim
23107 LDFLAGS!$LDFLAGS$ac_delim
23108 CPPFLAGS!$CPPFLAGS$ac_delim
23109 ac_ct_CC!$ac_ct_CC$ac_delim
23110 EXEEXT!$EXEEXT$ac_delim
23111 OBJEXT!$OBJEXT$ac_delim
23112 DEPDIR!$DEPDIR$ac_delim
23113 am__include!$am__include$ac_delim
23114 am__quote!$am__quote$ac_delim
23115 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23116 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23117 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23118 CCDEPMODE!$CCDEPMODE$ac_delim
23119 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23120 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23121 build!$build$ac_delim
23122 build_cpu!$build_cpu$ac_delim
23123 build_vendor!$build_vendor$ac_delim
23124 build_os!$build_os$ac_delim
23125 host!$host$ac_delim
23126 host_cpu!$host_cpu$ac_delim
23127 host_vendor!$host_vendor$ac_delim
23128 host_os!$host_os$ac_delim
23130 GREP!$GREP$ac_delim
23131 EGREP!$EGREP$ac_delim
23132 LN_S!$LN_S$ac_delim
23133 ECHO!$ECHO$ac_delim
23135 RANLIB!$RANLIB$ac_delim
23136 DLLTOOL!$DLLTOOL$ac_delim
23138 OBJDUMP!$OBJDUMP$ac_delim
23141 CXXFLAGS!$CXXFLAGS$ac_delim
23142 ac_ct_CXX!$ac_ct_CXX$ac_delim
23145 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23147 elif $ac_last_try; then
23148 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23149 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23150 { (exit 1); exit 1; }; }
23152 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
23156 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23157 if test -n "$ac_eof"; then
23158 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
23159 ac_eof
=`expr $ac_eof + 1`
23162 cat >>$CONFIG_STATUS <<_ACEOF
23163 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23164 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23167 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23168 s/^/s,@/; s/!/@,|#_!!_#|/
23171 s/'"$ac_delim"'$/,g/; t
23173 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23174 ' >>$CONFIG_STATUS <conf$
$subs.
sed
23175 rm -f conf$
$subs.
sed
23176 cat >>$CONFIG_STATUS <<_ACEOF
23182 for ac_last_try
in false false false false false
:; do
23183 cat >conf$
$subs.
sed <<_ACEOF
23184 CXXDEPMODE!$CXXDEPMODE$ac_delim
23185 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23186 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23187 CXXCPP!$CXXCPP$ac_delim
23189 FFLAGS!$FFLAGS$ac_delim
23190 ac_ct_F77!$ac_ct_F77$ac_delim
23191 LIBTOOL!$LIBTOOL$ac_delim
23192 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
23193 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23194 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23195 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23196 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23197 LIBADD_DL!$LIBADD_DL$ac_delim
23198 LIBOBJS!$LIBOBJS$ac_delim
23199 LTLIBOBJS!$LTLIBOBJS$ac_delim
23202 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 16; then
23204 elif $ac_last_try; then
23205 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23206 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23207 { (exit 1); exit 1; }; }
23209 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
23213 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23214 if test -n "$ac_eof"; then
23215 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
23216 ac_eof
=`expr $ac_eof + 1`
23219 cat >>$CONFIG_STATUS <<_ACEOF
23220 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23221 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23224 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23225 s/^/s,@/; s/!/@,|#_!!_#|/
23228 s/'"$ac_delim"'$/,g/; t
23230 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23231 ' >>$CONFIG_STATUS <conf$
$subs.
sed
23232 rm -f conf$
$subs.
sed
23233 cat >>$CONFIG_STATUS <<_ACEOF
23240 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23241 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23242 # trailing colons and then remove the whole line if VPATH becomes empty
23243 # (actually we leave an empty line to preserve line numbers).
23244 if test "x$srcdir" = x.
; then
23245 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
23246 s/:*\$(srcdir):*/:/
23247 s/:*\${srcdir}:*/:/
23249 s/^\([^=]*=[ ]*\):*/\1/
23255 cat >>$CONFIG_STATUS <<\_ACEOF
23256 fi # test -n "$CONFIG_FILES"
23259 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
23262 :[FHLC
]) ac_mode
=$ac_tag; continue;;
23264 case $ac_mode$ac_tag in
23266 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23267 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23268 { (exit 1); exit 1; }; };;
23269 :[FH
]-) ac_tag
=-:-;;
23270 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
23287 -) ac_f
="$tmp/stdin";;
23288 *) # Look for the file first in the build tree, then in the source tree
23289 # (if the path is not absolute). The absolute path cannot be DOS-style,
23290 # because $ac_f cannot contain `:'.
23294 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
23296 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23297 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23298 { (exit 1); exit 1; }; };;
23300 ac_file_inputs
="$ac_file_inputs $ac_f"
23303 # Let's still pretend it is `configure' which instantiates (i.e., don't
23304 # use $as_me), people would be surprised to read:
23305 # /* config.h. Generated by config.status. */
23306 configure_input
="Generated from "`IFS=:
23307 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23308 if test x
"$ac_file" != x-
; then
23309 configure_input
="$ac_file. $configure_input"
23310 { echo "$as_me:$LINENO: creating $ac_file" >&5
23311 echo "$as_me: creating $ac_file" >&6;}
23315 *:-:* |
*:-) cat >"$tmp/stdin";;
23320 ac_dir
=`$as_dirname -- "$ac_file" ||
23321 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23322 X"$ac_file" : 'X\(//\)[^/]' \| \
23323 X"$ac_file" : 'X\(//\)$' \| \
23324 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23330 /^X\(\/\/\)[^/].*/{
23345 -*) as_dir
=.
/$as_dir;;
23347 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
23351 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23352 *) as_qdir
=$as_dir;;
23354 as_dirs
="'$as_qdir' $as_dirs"
23355 as_dir
=`$as_dirname -- "$as_dir" ||
23356 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23357 X"$as_dir" : 'X\(//\)[^/]' \| \
23358 X"$as_dir" : 'X\(//\)$' \| \
23359 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23365 /^X\(\/\/\)[^/].*/{
23378 test -d "$as_dir" && break
23380 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
23381 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23382 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23383 { (exit 1); exit 1; }; }; }
23387 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
23389 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23390 # A ".." for each directory in $ac_dir_suffix.
23391 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23392 case $ac_top_builddir_sub in
23393 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
23394 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
23397 ac_abs_top_builddir
=$ac_pwd
23398 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
23399 # for backward compatibility:
23400 ac_top_builddir
=$ac_top_build_prefix
23403 .
) # We are building in place.
23405 ac_top_srcdir
=$ac_top_builddir_sub
23406 ac_abs_top_srcdir
=$ac_pwd ;;
23407 [\\/]* | ?
:[\\/]* ) # Absolute name.
23408 ac_srcdir
=$srcdir$ac_dir_suffix;
23409 ac_top_srcdir
=$srcdir
23410 ac_abs_top_srcdir
=$srcdir ;;
23411 *) # Relative name.
23412 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
23413 ac_top_srcdir
=$ac_top_build_prefix$srcdir
23414 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
23416 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
23426 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23427 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
23429 ac_MKDIR_P
=$MKDIR_P
23431 [\\/$
]* | ?
:[\\/]* ) ;;
23432 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
23436 cat >>$CONFIG_STATUS <<\_ACEOF
23437 # If the template does not know about datarootdir, expand it.
23438 # FIXME: This hack should be removed a few years after 2.60.
23439 ac_datarootdir_hack
=; ac_datarootdir_seen
=
23441 case `sed -n '/datarootdir/ {
23450 ' $ac_file_inputs` in
23451 *datarootdir
*) ac_datarootdir_seen
=yes;;
23452 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
23453 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23454 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23456 cat >>$CONFIG_STATUS <<_ACEOF
23457 ac_datarootdir_hack='
23458 s&@datadir@&$datadir&g
23459 s&@docdir@&$docdir&g
23460 s&@infodir@&$infodir&g
23461 s&@localedir@&$localedir&g
23462 s&@mandir@&$mandir&g
23463 s&\\\${datarootdir}&$datarootdir&g' ;;
23467 # Neutralize VPATH when `$srcdir' = `.'.
23468 # Shell code in configure.ac might set extrasub.
23469 # FIXME: do we really want to maintain this feature?
23470 cat >>$CONFIG_STATUS <<_ACEOF
23474 cat >>$CONFIG_STATUS <<\_ACEOF
23476 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
23477 s
&@configure_input@
&$configure_input&;t t
23478 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
23479 s
&@srcdir@
&$ac_srcdir&;t t
23480 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
23481 s
&@top_srcdir@
&$ac_top_srcdir&;t t
23482 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
23483 s
&@builddir@
&$ac_builddir&;t t
23484 s
&@abs_builddir@
&$ac_abs_builddir&;t t
23485 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
23486 s
&@INSTALL@
&$ac_INSTALL&;t t
23487 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
23488 $ac_datarootdir_hack
23489 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
23491 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23492 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
23493 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
23494 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
23495 which seems to be undefined. Please make sure it is defined." >&5
23496 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
23497 which seems to be undefined. Please make sure it is defined." >&2;}
23501 -) cat "$tmp/out"; rm -f "$tmp/out";;
23502 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23511 # Transform confdefs.h into a sed script `conftest.defines', that
23512 # substitutes the proper values into config.h.in to produce config.h.
23513 rm -f conftest.defines conftest.
tail
23514 # First, append a space to every undef/define line, to ease matching.
23515 echo 's/$/ /' >conftest.defines
23516 # Then, protect against being on the right side of a sed subst, or in
23517 # an unquoted here document, in config.status. If some macros were
23518 # called several times there might be several #defines for the same
23519 # symbol, which is useless. But do not sort them, since the last
23520 # AC_DEFINE must be honored.
23521 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
23522 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23523 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23524 # PARAMS is the parameter list in the macro definition--in most cases, it's
23525 # just an empty string.
23526 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23527 ac_dB
='\\)[ (].*,\\1define\\2'
23535 s/^[ ]*#[ ]*define[ ][ ]*//
23540 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23541 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23542 ' >>conftest.defines
23544 # Remove the space that was appended to ease matching.
23545 # Then replace #undef with comments. This is necessary, for
23546 # example, in the case of _POSIX_SOURCE, which is predefined and required
23547 # on some systems where configure will not decide to define it.
23548 # (The regexp can be short, since the line contains either #define or #undef.)
23550 s,^[ #]*u.*,/* & */,' >>conftest.defines
23552 # Break up conftest.defines:
23553 ac_max_sed_lines
=50
23555 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23556 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23557 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23559 ac_in
='$ac_file_inputs'
23560 ac_out
='"$tmp/out1"'
23561 ac_nxt
='"$tmp/out2"'
23565 # Write a here document:
23566 cat >>$CONFIG_STATUS <<_ACEOF
23567 # First, check the format of the line:
23568 cat >"\$tmp/defines.sed" <<\\CEOF
23569 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23570 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23574 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
23576 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23577 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
23578 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
23579 grep . conftest.
tail >/dev
/null ||
break
23580 rm -f conftest.defines
23581 mv conftest.
tail conftest.defines
23583 rm -f conftest.defines conftest.
tail
23585 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23586 cat >>$CONFIG_STATUS <<\_ACEOF
23587 if test x
"$ac_file" != x-
; then
23588 echo "/* $configure_input */" >"$tmp/config.h"
23589 cat "$ac_result" >>"$tmp/config.h"
23590 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
23591 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23592 echo "$as_me: $ac_file is unchanged" >&6;}
23595 mv "$tmp/config.h" $ac_file
23598 echo "/* $configure_input */"
23602 # Compute $ac_file's index in $config_headers.
23604 for _am_header
in $config_headers :; do
23605 case $_am_header in
23606 $ac_file |
$ac_file:* )
23609 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
23612 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
23613 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23614 X$ac_file : 'X\(//\)[^/]' \| \
23615 X$ac_file : 'X\(//\)$' \| \
23616 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
23618 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23622 /^X\(\/\/\)[^/].*/{
23634 s/.*/./; q'`/stamp-h
$_am_stamp_count
23637 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23638 echo "$as_me: executing $ac_file commands" >&6;}
23643 case $ac_file$ac_mode in
23644 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
23645 # Strip MF so we end up with the name of the file.
23646 mf
=`echo "$mf" | sed -e 's/:.*$//'`
23647 # Check whether this is an Automake generated Makefile or not.
23648 # We used to match only the files named `Makefile.in', but
23649 # some people rename them; so instead we look at the file content.
23650 # Grep'ing the first line is not enough: some people post-process
23651 # each Makefile.in and add a new line on top of each file to say so.
23652 # Grep'ing the whole file is not good either: AIX grep has a line
23653 # limit of 2048, but all sed's we know have understand at least 4000.
23654 if sed 10q
"$mf" |
grep '^#.*generated by automake' > /dev
/null
2>&1; then
23655 dirpart
=`$as_dirname -- "$mf" ||
23656 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23657 X"$mf" : 'X\(//\)[^/]' \| \
23658 X"$mf" : 'X\(//\)$' \| \
23659 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23665 /^X\(\/\/\)[^/].*/{
23681 # Extract the definition of DEPDIR, am__include, and am__quote
23682 # from the Makefile without running `make'.
23683 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
23684 test -z "$DEPDIR" && continue
23685 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
23686 test -z "am__include" && continue
23687 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
23688 # When using ansi2knr, U may be empty or an underscore; expand it
23689 U
=`sed -n 's/^U = //p' < "$mf"`
23690 # Find all dependency output files, they are included files with
23691 # $(DEPDIR) in their names. We invoke sed twice because it is the
23692 # simplest approach to changing $(DEPDIR) to its actual value in the
23694 for file in `sed -n "
23695 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23696 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23697 # Make sure the directory exists.
23698 test -f "$dirpart/$file" && continue
23699 fdir
=`$as_dirname -- "$file" ||
23700 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23701 X"$file" : 'X\(//\)[^/]' \| \
23702 X"$file" : 'X\(//\)$' \| \
23703 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23709 /^X\(\/\/\)[^/].*/{
23722 { as_dir
=$dirpart/$fdir
23724 -*) as_dir
=.
/$as_dir;;
23726 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
23730 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23731 *) as_qdir
=$as_dir;;
23733 as_dirs
="'$as_qdir' $as_dirs"
23734 as_dir
=`$as_dirname -- "$as_dir" ||
23735 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23736 X"$as_dir" : 'X\(//\)[^/]' \| \
23737 X"$as_dir" : 'X\(//\)$' \| \
23738 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23740 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23744 /^X\(\/\/\)[^/].*/{
23757 test -d "$as_dir" && break
23759 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
23760 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23761 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23762 { (exit 1); exit 1; }; }; }
23763 # echo "creating $dirpart/$file"
23764 echo '# dummy' > "$dirpart/$file"
23773 { (exit 0); exit 0; }
23775 chmod +x
$CONFIG_STATUS
23776 ac_clean_files
=$ac_clean_files_save
23779 # configure is writing to config.log, and then calls config.status.
23780 # config.status does its own redirection, appending to config.log.
23781 # Unfortunately, on DOS this fails, as config.log is still kept open
23782 # by configure, so config.status won't be able to write to it; its
23783 # output is simply discarded. So we exec the FD to /dev/null,
23784 # effectively closing config.log, so it can be properly (re)opened and
23785 # appended to by config.status. When coming back to configure, we
23786 # need to make the FD available again.
23787 if test "$no_create" != yes; then
23789 ac_config_status_args
=
23790 test "$silent" = yes &&
23791 ac_config_status_args
="$ac_config_status_args --quiet"
23793 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
23795 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23796 # would make configure fail if this is the last instruction.
23797 $ac_cs_success ||
{ (exit 1); exit 1; }