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
4411 netbsd
* | netbsdelf
*-gnu)
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 netbsd
* | netbsdelf
*-gnu)
8232 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
8233 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8236 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8237 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8242 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
8246 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8247 *** create shared libraries on Solaris systems. Therefore, libtool
8248 *** is disabling shared libraries support. We urge you to upgrade GNU
8249 *** binutils to release 2.9.1 or newer. Another option is to modify
8250 *** your PATH or compiler configuration so that the native linker is
8251 *** used, and then restart.
8254 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
8255 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8256 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8262 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
8263 case `$LD -v 2>&1` in
8264 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
8268 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8269 *** reliably create shared libraries on SCO systems. Therefore, libtool
8270 *** is disabling shared libraries support. We urge you to upgrade GNU
8271 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8272 *** your PATH or compiler configuration so that the native linker is
8273 *** used, and then restart.
8278 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
8279 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8280 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8281 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8290 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8293 hardcode_shlibpath_var
=no
8297 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
8298 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8299 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8306 if test "$ld_shlibs" = no
; then
8308 hardcode_libdir_flag_spec
=
8309 export_dynamic_flag_spec
=
8310 whole_archive_flag_spec
=
8313 # PORTME fill in a description of your system's linker (not GNU ld)
8316 allow_undefined_flag
=unsupported
8317 always_export_symbols
=yes
8318 archive_expsym_cmds
='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8319 # Note: this linker hardcodes the directories in LIBPATH if there
8320 # are no directories specified by -L.
8321 hardcode_minus_L
=yes
8322 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8323 # Neither direct hardcoding nor static linking is supported with a
8325 hardcode_direct
=unsupported
8330 if test "$host_cpu" = ia64
; then
8331 # On IA64, the linker does run time linking by default, so we don't
8332 # have to do anything special.
8333 aix_use_runtimelinking
=no
8334 exp_sym_flag
='-Bexport'
8337 # If we're using GNU nm, then we don't want the "-C" option.
8338 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8339 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
8340 export_symbols_cmds
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8342 export_symbols_cmds
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8344 aix_use_runtimelinking
=no
8346 # Test if we are trying to use run time linking or normal
8347 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8348 # need to do runtime linking.
8349 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
8350 for ld_flag
in $LDFLAGS; do
8351 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
8352 aix_use_runtimelinking
=yes
8359 exp_sym_flag
='-bexport'
8360 no_entry_flag
='-bnoentry'
8363 # When large executables or shared objects are built, AIX ld can
8364 # have problems creating the table of contents. If linking a library
8365 # or program results in "error TOC overflow" add -mminimal-toc to
8366 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8367 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8371 hardcode_libdir_separator
=':'
8372 link_all_deplibs
=yes
8374 if test "$GCC" = yes; then
8375 case $host_os in aix4.
[012]|aix4.
[012].
*)
8376 # We only want to do this on AIX 4.2 and lower, the check
8377 # below for broken collect2 doesn't work under 4.3+
8378 collect2name
=`${CC} -print-prog-name=collect2`
8379 if test -f "$collect2name" && \
8380 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
8382 # We have reworked collect2
8385 # We have old collect2
8386 hardcode_direct
=unsupported
8387 # It fails to find uninstalled libraries when the uninstalled
8388 # path is not listed in the libpath. Setting hardcode_minus_L
8389 # to unsupported forces relinking
8390 hardcode_minus_L
=yes
8391 hardcode_libdir_flag_spec
='-L$libdir'
8392 hardcode_libdir_separator
=
8396 shared_flag
='-shared'
8397 if test "$aix_use_runtimelinking" = yes; then
8398 shared_flag
="$shared_flag "'${wl}-G'
8402 if test "$host_cpu" = ia64
; then
8403 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8404 # chokes on -Wl,-G. The following line is correct:
8407 if test "$aix_use_runtimelinking" = yes; then
8408 shared_flag
='${wl}-G'
8410 shared_flag
='${wl}-bM:SRE'
8415 # It seems that -bexpall does not export symbols beginning with
8416 # underscore (_), so it is better to generate a list of symbols to export.
8417 always_export_symbols
=yes
8418 if test "$aix_use_runtimelinking" = yes; then
8419 # Warning - without using the other runtime loading flags (-brtl),
8420 # -berok will link without error, but may produce a broken library.
8421 allow_undefined_flag
='-berok'
8422 # Determine the default libpath from the value encoded in an empty executable.
8423 cat >conftest.
$ac_ext <<_ACEOF
8426 cat confdefs.h
>>conftest.
$ac_ext
8427 cat >>conftest.
$ac_ext <<_ACEOF
8428 /* end confdefs.h. */
8438 rm -f conftest.
$ac_objext conftest
$ac_exeext
8439 if { (ac_try
="$ac_link"
8441 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8442 *) ac_try_echo=$ac_try;;
8444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8445 (eval "$ac_link") 2>conftest.er1
8447 grep -v '^ *+' conftest.er1 >conftest.err
8449 cat conftest.err >&5
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); } && {
8452 test -z "$ac_c_werror_flag" ||
8453 test ! -s conftest.err
8454 } && test -s conftest$ac_exeext &&
8455 $as_test_x conftest$ac_exeext; then
8457 lt_aix_libpath_sed='
8458 /Import File Strings/,/^$/ {
8464 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
8465 # Check for a 64-bit object if we didn't find anything.
8466 if test -z "$aix_libpath"; then
8467 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
8470 echo "$as_me: failed program was:" >&5
8471 sed 's/^/| /' conftest.$ac_ext >&5
8476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8477 conftest$ac_exeext conftest.$ac_ext
8478 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8480 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8481 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8483 if test "$host_cpu" = ia64; then
8484 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8485 allow_undefined_flag="-z nodefs"
8486 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8488 # Determine the default libpath from the value encoded in an empty executable.
8489 cat >conftest.$ac_ext <<_ACEOF
8492 cat confdefs.h >>conftest.$ac_ext
8493 cat >>conftest.$ac_ext <<_ACEOF
8494 /* end confdefs.h. */
8504 rm -f conftest.$ac_objext conftest$ac_exeext
8505 if { (ac_try="$ac_link"
8507 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8508 *) ac_try_echo
=$ac_try;;
8510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8511 (eval "$ac_link") 2>conftest.er1
8513 grep -v '^ *+' conftest.er1
>conftest.err
8515 cat conftest.err
>&5
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); } && {
8518 test -z "$ac_c_werror_flag" ||
8519 test ! -s conftest.err
8520 } && test -s conftest
$ac_exeext &&
8521 $as_test_x conftest
$ac_exeext; then
8523 lt_aix_libpath_sed
='
8524 /Import File Strings/,/^$/ {
8530 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8531 # Check for a 64-bit object if we didn't find anything.
8532 if test -z "$aix_libpath"; then
8533 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8536 echo "$as_me: failed program was:" >&5
8537 sed 's/^/| /' conftest.
$ac_ext >&5
8542 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8543 conftest
$ac_exeext conftest.
$ac_ext
8544 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
8546 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
8547 # Warning - without using the other run time loading flags,
8548 # -berok will link without error, but may produce a broken library.
8549 no_undefined_flag
=' ${wl}-bernotok'
8550 allow_undefined_flag
=' ${wl}-berok'
8551 # Exported symbols can be pulled into shared objects from archives
8552 whole_archive_flag_spec
='$convenience'
8553 archive_cmds_need_lc
=yes
8554 # This is similar to how AIX traditionally builds its shared libraries.
8555 archive_expsym_cmds
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8561 archive_cmds
='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8562 hardcode_libdir_flag_spec
='-L$libdir'
8563 hardcode_minus_L
=yes
8564 # see comment about different semantics on the GNU ld section
8569 export_dynamic_flag_spec
=-rdynamic
8572 cygwin
* | mingw
* | pw32
*)
8573 # When not using gcc, we currently assume that we are using
8574 # Microsoft Visual C++.
8575 # hardcode_libdir_flag_spec is actually meaningless, as there is
8576 # no search path for DLLs.
8577 hardcode_libdir_flag_spec
=' '
8578 allow_undefined_flag
=unsupported
8579 # Tell ltmain to make .lib files, not .a files.
8581 # Tell ltmain to make .dll files, not .so files.
8583 # FIXME: Setting linknames here is a bad hack.
8584 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8585 # The linker will automatically build a .lib file if we build a DLL.
8586 old_archive_From_new_cmds
='true'
8587 # FIXME: Should let the user specify the lib program.
8588 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
8589 fix_srcfile_path
='`cygpath -w "$srcfile"`'
8590 enable_shared_with_static_runtimes
=yes
8593 darwin
* | rhapsody
*)
8595 rhapsody
* | darwin1.
[012])
8596 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
8599 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8600 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8602 case ${MACOSX_DEPLOYMENT_TARGET} in
8604 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8607 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
8613 archive_cmds_need_lc
=no
8615 hardcode_automatic
=yes
8616 hardcode_shlibpath_var
=unsupported
8617 whole_archive_flag_spec
=''
8618 link_all_deplibs
=yes
8619 if test "$GCC" = yes ; then
8620 output_verbose_link_cmd
='echo'
8621 archive_cmds
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8622 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8623 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8624 archive_expsym_cmds
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8625 module_expsym_cmds
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8627 case $cc_basename in
8629 output_verbose_link_cmd
='echo'
8630 archive_cmds
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8631 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8632 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8633 archive_expsym_cmds
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8634 module_expsym_cmds
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8644 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8645 hardcode_libdir_flag_spec
='-L$libdir'
8646 hardcode_shlibpath_var
=no
8653 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8654 # support. Future versions do this automatically, but an explicit c++rt0.o
8655 # does not break anything, and helps significantly (at the cost of a little
8658 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8659 hardcode_libdir_flag_spec
='-R$libdir'
8661 hardcode_shlibpath_var
=no
8664 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8666 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8668 hardcode_minus_L
=yes
8669 hardcode_shlibpath_var
=no
8672 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8673 freebsd
* | dragonfly
*)
8674 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8675 hardcode_libdir_flag_spec
='-R$libdir'
8677 hardcode_shlibpath_var
=no
8681 if test "$GCC" = yes; then
8682 archive_cmds
='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8684 archive_cmds
='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8686 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8687 hardcode_libdir_separator
=:
8690 # hardcode_minus_L: Not really in the search PATH,
8691 # but as the default location of the library.
8692 hardcode_minus_L
=yes
8693 export_dynamic_flag_spec
='${wl}-E'
8697 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
8698 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8700 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8702 if test "$with_gnu_ld" = no
; then
8703 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8704 hardcode_libdir_separator
=:
8707 export_dynamic_flag_spec
='${wl}-E'
8709 # hardcode_minus_L: Not really in the search PATH,
8710 # but as the default location of the library.
8711 hardcode_minus_L
=yes
8716 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
8719 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8722 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8725 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8731 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8734 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8737 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8741 if test "$with_gnu_ld" = no
; then
8742 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8743 hardcode_libdir_separator
=:
8747 hardcode_libdir_flag_spec_ld
='+b $libdir'
8749 hardcode_shlibpath_var
=no
8753 export_dynamic_flag_spec
='${wl}-E'
8755 # hardcode_minus_L: Not really in the search PATH,
8756 # but as the default location of the library.
8757 hardcode_minus_L
=yes
8763 irix5
* | irix6
* | nonstopux
*)
8764 if test "$GCC" = yes; then
8765 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8767 archive_cmds
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8768 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
8770 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8771 hardcode_libdir_separator
=:
8772 link_all_deplibs
=yes
8775 netbsd
* | netbsdelf
*-gnu)
8776 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
8777 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8779 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8781 hardcode_libdir_flag_spec
='-R$libdir'
8783 hardcode_shlibpath_var
=no
8787 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8789 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8790 hardcode_libdir_separator
=:
8791 hardcode_shlibpath_var
=no
8795 if test -f /usr
/libexec
/ld.so
; then
8797 hardcode_shlibpath_var
=no
8798 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8799 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8800 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8801 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8802 export_dynamic_flag_spec
='${wl}-E'
8805 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
8806 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8807 hardcode_libdir_flag_spec
='-R$libdir'
8810 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8811 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8821 hardcode_libdir_flag_spec
='-L$libdir'
8822 hardcode_minus_L
=yes
8823 allow_undefined_flag
=unsupported
8824 archive_cmds
='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8825 old_archive_From_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8829 if test "$GCC" = yes; then
8830 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
8831 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8833 allow_undefined_flag
=' -expect_unresolved \*'
8834 archive_cmds
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8836 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8837 hardcode_libdir_separator
=:
8840 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
8841 if test "$GCC" = yes; then
8842 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
8843 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8844 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8846 allow_undefined_flag
=' -expect_unresolved \*'
8847 archive_cmds
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8848 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8849 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8851 # Both c and cxx compiler support -rpath directly
8852 hardcode_libdir_flag_spec
='-rpath $libdir'
8854 hardcode_libdir_separator
=:
8858 no_undefined_flag
=' -z text'
8859 if test "$GCC" = yes; then
8861 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8862 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8863 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8866 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8867 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8868 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8870 hardcode_libdir_flag_spec
='-R$libdir'
8871 hardcode_shlibpath_var
=no
8873 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
8875 # The compiler driver will combine and reorder linker options,
8876 # but understands `-z linker_flag'. GCC discards it without `$wl',
8877 # but is careful enough not to reorder.
8878 # Supported since Solaris 2.6 (maybe 2.5.1?)
8879 if test "$GCC" = yes; then
8880 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8882 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
8886 link_all_deplibs
=yes
8890 if test "x$host_vendor" = xsequent
; then
8891 # Use $CC to link under sequent, because it throws in some extra .o
8892 # files that make .init and .fini sections work.
8893 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8895 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8897 hardcode_libdir_flag_spec
='-L$libdir'
8899 hardcode_minus_L
=yes
8900 hardcode_shlibpath_var
=no
8904 case $host_vendor in
8906 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8907 hardcode_direct
=yes # is this really true???
8910 ## LD is ld it makes a PLAMLIB
8911 ## CC just makes a GrossModule.
8912 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8913 reload_cmds
='$CC -r -o $output$reload_objs'
8917 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8918 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
8921 runpath_var
='LD_RUN_PATH'
8922 hardcode_shlibpath_var
=no
8926 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8927 hardcode_shlibpath_var
=no
8928 export_dynamic_flag_spec
='-Bexport'
8932 if test -d /usr
/nec
; then
8933 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8934 hardcode_shlibpath_var
=no
8935 runpath_var
=LD_RUN_PATH
8936 hardcode_runpath_var
=yes
8941 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
8942 no_undefined_flag
='${wl}-z,text'
8943 archive_cmds_need_lc
=no
8944 hardcode_shlibpath_var
=no
8945 runpath_var
='LD_RUN_PATH'
8947 if test "$GCC" = yes; then
8948 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8949 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8951 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8952 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8956 sysv5
* | sco3.2v5
* | sco5v6
*)
8957 # Note: We can NOT use -z defs as we might desire, because we do not
8958 # link with -lc, and that would cause any symbols used from libc to
8959 # always be unresolved, which means just about no library would
8960 # ever link correctly. If we're not using GNU ld we use -z text
8961 # though, which does catch some bad symbols but isn't as heavy-handed
8963 no_undefined_flag
='${wl}-z,text'
8964 allow_undefined_flag
='${wl}-z,nodefs'
8965 archive_cmds_need_lc
=no
8966 hardcode_shlibpath_var
=no
8967 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8968 hardcode_libdir_separator
=':'
8969 link_all_deplibs
=yes
8970 export_dynamic_flag_spec
='${wl}-Bexport'
8971 runpath_var
='LD_RUN_PATH'
8973 if test "$GCC" = yes; then
8974 archive_cmds
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8975 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8977 archive_cmds
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8978 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8983 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8984 hardcode_libdir_flag_spec
='-L$libdir'
8985 hardcode_shlibpath_var
=no
8994 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8995 echo "${ECHO_T}$ld_shlibs" >&6; }
8996 test "$ld_shlibs" = no
&& can_build_shared
=no
8999 # Do we need to explicitly link libc?
9001 case "x$archive_cmds_need_lc" in
9003 # Assume -lc should be added
9004 archive_cmds_need_lc
=yes
9006 if test "$enable_shared" = yes && test "$GCC" = yes; then
9007 case $archive_cmds in
9009 # FIXME: we may have to deal with multi-command sequences.
9012 # Test whether the compiler implicitly links with -lc since on some
9013 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9014 # to ld, don't add -lc before -lgcc.
9015 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9016 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9018 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9021 (eval $ac_compile) 2>&5
9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 (exit $ac_status); } 2>conftest.err
; then
9027 libobjs
=conftest.
$ac_objext
9029 wl
=$lt_prog_compiler_wl
9030 pic_flag
=$lt_prog_compiler_pic
9036 lt_save_allow_undefined_flag
=$allow_undefined_flag
9037 allow_undefined_flag
=
9038 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9039 (eval $archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
9041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042 (exit $ac_status); }
9044 archive_cmds_need_lc
=no
9046 archive_cmds_need_lc
=yes
9048 allow_undefined_flag
=$lt_save_allow_undefined_flag
9050 cat conftest.err
1>&5
9053 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9054 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9061 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9062 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9064 libname_spec
='lib$name'
9072 shlibpath_overrides_runpath
=unknown
9074 dynamic_linker
="$host_os ld.so"
9075 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
9077 if test "$GCC" = yes; then
9079 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
9080 *) lt_awk_arg
="/^libraries:/" ;;
9082 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9083 if echo "$lt_search_path_spec" |
grep ';' >/dev
/null
; then
9084 # if the path contains ";" then we assume it to be the separator
9085 # otherwise default to the standard path separator (i.e. ":") - it is
9086 # assumed that no part of a normal pathname contains ";" but that should
9087 # okay in the real world where ";" in dirpaths is itself problematic.
9088 lt_search_path_spec
=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9090 lt_search_path_spec
=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9092 # Ok, now we have the path, separated by spaces, we can step through it
9093 # and add multilib dir if necessary.
9094 lt_tmp_lt_search_path_spec
=
9095 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9096 for lt_sys_path
in $lt_search_path_spec; do
9097 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9098 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9100 test -d "$lt_sys_path" && \
9101 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
9104 lt_search_path_spec
=`echo $lt_tmp_lt_search_path_spec | awk '
9105 BEGIN {RS=" "; FS="/|\n";} {
9108 for (lt_i = NF; lt_i > 0; lt_i--) {
9109 if ($lt_i != "" && $lt_i != ".") {
9110 if ($lt_i == "..") {
9113 if (lt_count == 0) {
9114 lt_foo="/" $lt_i lt_foo;
9121 if (lt_foo != "") { lt_freq[lt_foo]++; }
9122 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9124 sys_lib_search_path_spec
=`echo $lt_search_path_spec`
9126 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
9128 need_lib_prefix
=unknown
9129 hardcode_into_libs
=no
9131 # when you set need_version to no, make sure it does not cause -set_version
9132 # flags to be left without arguments
9133 need_version
=unknown
9138 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
9139 shlibpath_var
=LIBPATH
9141 # AIX 3 has no versioning support, so we append a major version to the name.
9142 soname_spec
='${libname}${release}${shared_ext}$major'
9149 hardcode_into_libs
=yes
9150 if test "$host_cpu" = ia64
; then
9151 # AIX 5 supports IA64
9152 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9153 shlibpath_var
=LD_LIBRARY_PATH
9155 # With GCC up to 2.95.x, collect2 would create an import file
9156 # for dependence libraries. The import file would start with
9157 # the line `#! .'. This would cause the generated library to
9158 # depend on `.', always an invalid library. This was fixed in
9159 # development snapshots of GCC prior to 3.0.
9161 aix4 | aix4.
[01] | aix4.
[01].
*)
9162 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9164 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
9171 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9172 # soname into executable. Probably we can add versioning support to
9173 # collect2, so additional links can be useful in future.
9174 if test "$aix_use_runtimelinking" = yes; then
9175 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9176 # instead of lib<name>.a to let people know that these are not
9177 # typical AIX shared libraries.
9178 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9180 # We preserve .a as extension for shared libraries through AIX4.2
9181 # and later when we are not doing run time linking.
9182 library_names_spec
='${libname}${release}.a $libname.a'
9183 soname_spec
='${libname}${release}${shared_ext}$major'
9185 shlibpath_var
=LIBPATH
9190 library_names_spec
='$libname.ixlibrary $libname.a'
9191 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9192 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9196 library_names_spec
='${libname}${shared_ext}'
9197 dynamic_linker
="$host_os ld.so"
9198 shlibpath_var
=LIBRARY_PATH
9204 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9205 soname_spec
='${libname}${release}${shared_ext}$major'
9206 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
9207 shlibpath_var
=LD_LIBRARY_PATH
9208 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9209 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
9210 # the default ld.so.conf also contains /usr/contrib/lib and
9211 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9212 # libtool to hard-code these into programs
9215 cygwin
* | mingw
* | pw32
*)
9216 version_type
=windows
9221 case $GCC,$host_os in
9222 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
9223 library_names_spec
='$libname.dll.a'
9224 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9225 postinstall_cmds
='base_file=`basename \${file}`~
9226 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9227 dldir=$destdir/`dirname \$dlpath`~
9228 test -d \$dldir || mkdir -p \$dldir~
9229 $install_prog $dir/$dlname \$dldir/$dlname~
9230 chmod a+x \$dldir/$dlname'
9231 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9232 dlpath=$dir/\$dldll~
9234 shlibpath_overrides_runpath
=yes
9238 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9239 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9240 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
9243 # MinGW DLLs use traditional 'lib' prefix
9244 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9245 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9246 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
9247 # It is most probably a Windows format PATH printed by
9248 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9249 # path with ; separators, and with drive letters. We can handle the
9250 # drive letters (cygwin fileutils understands them), so leave them,
9251 # especially as we might pass files found there to a mingw objdump,
9252 # which wouldn't understand a cygwinified path. Ahh.
9253 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9255 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9259 # pw32 DLLs use 'pw' prefix rather than 'lib'
9260 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9266 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9269 dynamic_linker
='Win32 ld.exe'
9270 # FIXME: first we should search . and the directory the executable is in
9274 darwin
* | rhapsody
*)
9275 dynamic_linker
="$host_os dyld"
9279 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9280 soname_spec
='${libname}${release}${major}$shared_ext'
9281 shlibpath_overrides_runpath
=yes
9282 shlibpath_var
=DYLD_LIBRARY_PATH
9283 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
9285 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
9286 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
9293 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9294 soname_spec
='${libname}${release}${shared_ext}$major'
9295 shlibpath_var
=LD_LIBRARY_PATH
9302 freebsd
* | dragonfly
*)
9303 # DragonFly does not have aout. When/if they implement a new
9304 # versioning mechanism, adjust this.
9305 if test -x /usr
/bin
/objformat
; then
9306 objformat
=`/usr/bin/objformat`
9309 freebsd
[123]*) objformat
=aout
;;
9313 version_type
=freebsd-
$objformat
9314 case $version_type in
9316 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9321 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9325 shlibpath_var
=LD_LIBRARY_PATH
9328 shlibpath_overrides_runpath
=yes
9330 freebsd3.
[01]* | freebsdelf3.
[01]*)
9331 shlibpath_overrides_runpath
=yes
9332 hardcode_into_libs
=yes
9334 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
9335 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
9336 shlibpath_overrides_runpath
=no
9337 hardcode_into_libs
=yes
9339 *) # from 4.6 on, and DragonFly
9340 shlibpath_overrides_runpath
=yes
9341 hardcode_into_libs
=yes
9350 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9351 soname_spec
='${libname}${release}${shared_ext}$major'
9352 shlibpath_var
=LD_LIBRARY_PATH
9353 hardcode_into_libs
=yes
9356 hpux9
* | hpux10
* | hpux11
*)
9357 # Give a soname corresponding to the major version so that dld.sl refuses to
9358 # link against other versions.
9365 hardcode_into_libs
=yes
9366 dynamic_linker
="$host_os dld.so"
9367 shlibpath_var
=LD_LIBRARY_PATH
9368 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
9369 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9370 soname_spec
='${libname}${release}${shared_ext}$major'
9371 if test "X$HPUX_IA64_MODE" = X32
; then
9372 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9374 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
9376 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
9380 hardcode_into_libs
=yes
9381 dynamic_linker
="$host_os dld.sl"
9382 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
9383 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
9384 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9385 soname_spec
='${libname}${release}${shared_ext}$major'
9386 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9387 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
9391 dynamic_linker
="$host_os dld.sl"
9392 shlibpath_var
=SHLIB_PATH
9393 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
9394 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9395 soname_spec
='${libname}${release}${shared_ext}$major'
9398 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9399 postinstall_cmds
='chmod 555 $lib'
9406 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9407 soname_spec
='${libname}${release}${shared_ext}$major'
9408 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
9409 shlibpath_var
=LD_LIBRARY_PATH
9410 shlibpath_overrides_runpath
=no
9411 hardcode_into_libs
=yes
9414 irix5
* | irix6
* | nonstopux
*)
9416 nonstopux
*) version_type
=nonstopux
;;
9418 if test "$lt_cv_prog_gnu_ld" = yes; then
9426 soname_spec
='${libname}${release}${shared_ext}$major'
9427 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9429 irix5
* | nonstopux
*)
9433 case $LD in # libtool.m4 will add one of these switches to LD
9434 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
9435 libsuff
= shlibsuff
= libmagic
=32-bit;;
9436 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
9437 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
9438 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
9439 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
9440 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
9444 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
9445 shlibpath_overrides_runpath
=no
9446 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9447 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
9448 hardcode_into_libs
=yes
9451 # No shared lib support for Linux oldld, aout, or coff.
9452 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
9456 # This must be Linux ELF.
9457 linux
* | k
*bsd
*-gnu)
9461 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9462 soname_spec
='${libname}${release}${shared_ext}$major'
9463 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9464 shlibpath_var
=LD_LIBRARY_PATH
9465 shlibpath_overrides_runpath
=no
9466 # This implies no fast_install, which is unacceptable.
9467 # Some rework will be needed to allow for fast_install
9468 # before this can be enabled.
9469 hardcode_into_libs
=yes
9471 # Append ld.so.conf contents to the search path
9472 if test -f /etc
/ld.so.conf
; then
9473 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' ' '`
9474 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
9477 # We used to test for /lib/ld.so.1 and disable shared libraries on
9478 # powerpc, because MkLinux only supported shared libraries with the
9479 # GNU dynamic linker. Since this was broken with cross compilers,
9480 # most powerpc-linux boxes support dynamic linking these days and
9481 # people can always --disable-shared, the test was removed, and we
9482 # assume the GNU/Linux dynamic linker is in use.
9483 dynamic_linker
='GNU/Linux ld.so'
9490 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9491 soname_spec
='${libname}${release}${shared_ext}$major'
9492 shlibpath_var
=LD_LIBRARY_PATH
9493 shlibpath_overrides_runpath
=no
9494 hardcode_into_libs
=yes
9495 dynamic_linker
='NetBSD ld.elf_so'
9502 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
9503 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9504 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9505 dynamic_linker
='NetBSD (a.out) ld.so'
9507 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9508 soname_spec
='${libname}${release}${shared_ext}$major'
9509 dynamic_linker
='NetBSD ld.elf_so'
9511 shlibpath_var
=LD_LIBRARY_PATH
9512 shlibpath_overrides_runpath
=yes
9513 hardcode_into_libs
=yes
9518 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9519 shlibpath_var
=LD_LIBRARY_PATH
9520 shlibpath_overrides_runpath
=yes
9527 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9528 soname_spec
='${libname}${release}${shared_ext}$major'
9529 shlibpath_var
=LD_LIBRARY_PATH
9530 shlibpath_overrides_runpath
=yes
9535 sys_lib_dlsearch_path_spec
="/usr/lib"
9537 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9539 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
9540 *) need_version
=no
;;
9542 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9543 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9544 shlibpath_var
=LD_LIBRARY_PATH
9545 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9547 openbsd2.
[89] | openbsd2.
[89].
*)
9548 shlibpath_overrides_runpath
=no
9551 shlibpath_overrides_runpath
=yes
9555 shlibpath_overrides_runpath
=yes
9560 libname_spec
='$name'
9563 library_names_spec
='$libname${shared_ext} $libname.a'
9564 dynamic_linker
='OS/2 ld.exe'
9565 shlibpath_var
=LIBPATH
9568 osf3
* | osf4
* | osf5
*)
9572 soname_spec
='${libname}${release}${shared_ext}$major'
9573 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9574 shlibpath_var
=LD_LIBRARY_PATH
9575 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9576 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
9587 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9588 soname_spec
='${libname}${release}${shared_ext}$major'
9589 shlibpath_var
=LD_LIBRARY_PATH
9590 shlibpath_overrides_runpath
=yes
9591 hardcode_into_libs
=yes
9592 # ldd complains unless libraries are executable
9593 postinstall_cmds
='chmod +x $lib'
9598 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9599 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9600 shlibpath_var
=LD_LIBRARY_PATH
9601 shlibpath_overrides_runpath
=yes
9602 if test "$with_gnu_ld" = yes; then
9610 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9611 soname_spec
='${libname}${release}${shared_ext}$major'
9612 shlibpath_var
=LD_LIBRARY_PATH
9613 case $host_vendor in
9615 shlibpath_overrides_runpath
=no
9617 export_dynamic_flag_spec
='${wl}-Blargedynsym'
9618 runpath_var
=LD_RUN_PATH
9626 shlibpath_overrides_runpath
=no
9627 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
9633 if test -d /usr
/nec
;then
9635 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9636 soname_spec
='$libname${shared_ext}.$major'
9637 shlibpath_var
=LD_LIBRARY_PATH
9641 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
9642 version_type
=freebsd-elf
9645 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9646 soname_spec
='${libname}${release}${shared_ext}$major'
9647 shlibpath_var
=LD_LIBRARY_PATH
9648 hardcode_into_libs
=yes
9649 if test "$with_gnu_ld" = yes; then
9650 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9651 shlibpath_overrides_runpath
=no
9653 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
9654 shlibpath_overrides_runpath
=yes
9657 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
9661 sys_lib_dlsearch_path_spec
='/usr/lib'
9666 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9667 soname_spec
='${libname}${release}${shared_ext}$major'
9668 shlibpath_var
=LD_LIBRARY_PATH
9675 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9676 echo "${ECHO_T}$dynamic_linker" >&6; }
9677 test "$dynamic_linker" = no
&& can_build_shared
=no
9679 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
9680 if test "$GCC" = yes; then
9681 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9684 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9685 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9687 if test -n "$hardcode_libdir_flag_spec" || \
9688 test -n "$runpath_var" || \
9689 test "X$hardcode_automatic" = "Xyes" ; then
9691 # We can hardcode non-existant directories.
9692 if test "$hardcode_direct" != no
&&
9693 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9694 # have to relink, otherwise we might link with an installed library
9695 # when we should be linking with a yet-to-be-installed one
9696 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9697 test "$hardcode_minus_L" != no
; then
9698 # Linking always hardcodes the temporary library directory.
9699 hardcode_action
=relink
9701 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9702 hardcode_action
=immediate
9705 # We cannot hardcode anything, or else we can only hardcode existing
9707 hardcode_action
=unsupported
9709 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9710 echo "${ECHO_T}$hardcode_action" >&6; }
9712 if test "$hardcode_action" = relink
; then
9713 # Fast installation is not supported
9714 enable_fast_install
=no
9715 elif test "$shlibpath_overrides_runpath" = yes ||
9716 test "$enable_shared" = no
; then
9717 # Fast installation is not necessary
9718 enable_fast_install
=needless
9723 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9724 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9725 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
9726 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
9727 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
9728 { echo "$as_me:$LINENO: result: yes" >&5
9729 echo "${ECHO_T}yes" >&6; }
9731 # FIXME - insert some real tests, host_os isn't really good enough
9734 if test -n "$STRIP" ; then
9735 striplib
="$STRIP -x"
9736 old_striplib
="$STRIP -S"
9737 { echo "$as_me:$LINENO: result: yes" >&5
9738 echo "${ECHO_T}yes" >&6; }
9740 { echo "$as_me:$LINENO: result: no" >&5
9741 echo "${ECHO_T}no" >&6; }
9745 { echo "$as_me:$LINENO: result: no" >&5
9746 echo "${ECHO_T}no" >&6; }
9751 if test "x$enable_dlopen" != xyes
; then
9752 enable_dlopen
=unknown
9753 enable_dlopen_self
=unknown
9754 enable_dlopen_self_static
=unknown
9761 lt_cv_dlopen
="load_add_on"
9763 lt_cv_dlopen_self
=yes
9767 lt_cv_dlopen
="LoadLibrary"
9772 lt_cv_dlopen
="dlopen"
9777 # if libdl is installed we need to link against it
9778 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9779 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9780 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9781 echo $ECHO_N "(cached) $ECHO_C" >&6
9783 ac_check_lib_save_LIBS
=$LIBS
9785 cat >conftest.
$ac_ext <<_ACEOF
9788 cat confdefs.h
>>conftest.
$ac_ext
9789 cat >>conftest.
$ac_ext <<_ACEOF
9790 /* end confdefs.h. */
9792 /* Override any GCC internal prototype to avoid an error.
9793 Use char because int might match the return type of a GCC
9794 builtin and then its argument prototype would still apply. */
9807 rm -f conftest.
$ac_objext conftest
$ac_exeext
9808 if { (ac_try
="$ac_link"
9810 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9811 *) ac_try_echo=$ac_try;;
9813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9814 (eval "$ac_link") 2>conftest.er1
9816 grep -v '^ *+' conftest.er1 >conftest.err
9818 cat conftest.err >&5
9819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820 (exit $ac_status); } && {
9821 test -z "$ac_c_werror_flag" ||
9822 test ! -s conftest.err
9823 } && test -s conftest$ac_exeext &&
9824 $as_test_x conftest$ac_exeext; then
9825 ac_cv_lib_dl_dlopen=yes
9827 echo "$as_me: failed program was:" >&5
9828 sed 's/^/| /' conftest.$ac_ext >&5
9830 ac_cv_lib_dl_dlopen=no
9833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9834 conftest$ac_exeext conftest.$ac_ext
9835 LIBS=$ac_check_lib_save_LIBS
9837 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9838 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9839 if test $ac_cv_lib_dl_dlopen = yes; then
9840 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9845 lt_cv_dlopen_self=yes
9852 { echo "$as_me:$LINENO: checking for shl_load" >&5
9853 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9854 if test "${ac_cv_func_shl_load+set}" = set; then
9855 echo $ECHO_N "(cached) $ECHO_C" >&6
9857 cat >conftest.$ac_ext <<_ACEOF
9860 cat confdefs.h >>conftest.$ac_ext
9861 cat >>conftest.$ac_ext <<_ACEOF
9862 /* end confdefs.h. */
9863 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9865 #define shl_load innocuous_shl_load
9867 /* System header to define __stub macros and hopefully few prototypes,
9868 which can conflict with char shl_load (); below.
9869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9870 <limits.h> exists even on freestanding compilers. */
9873 # include <limits.h>
9875 # include <assert.h>
9880 /* Override any GCC internal prototype to avoid an error.
9881 Use char because int might match the return type of a GCC
9882 builtin and then its argument prototype would still apply. */
9887 /* The GNU C library defines this for functions which it implements
9888 to always fail with ENOSYS. Some functions are actually named
9889 something starting with __ and the normal name is an alias. */
9890 #if defined __stub_shl_load || defined __stub___shl_load
9902 rm -f conftest.$ac_objext conftest$ac_exeext
9903 if { (ac_try="$ac_link"
9905 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9906 *) ac_try_echo
=$ac_try;;
9908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9909 (eval "$ac_link") 2>conftest.er1
9911 grep -v '^ *+' conftest.er1
>conftest.err
9913 cat conftest.err
>&5
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); } && {
9916 test -z "$ac_c_werror_flag" ||
9917 test ! -s conftest.err
9918 } && test -s conftest
$ac_exeext &&
9919 $as_test_x conftest
$ac_exeext; then
9920 ac_cv_func_shl_load
=yes
9922 echo "$as_me: failed program was:" >&5
9923 sed 's/^/| /' conftest.
$ac_ext >&5
9925 ac_cv_func_shl_load
=no
9928 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9929 conftest
$ac_exeext conftest.
$ac_ext
9931 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9932 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9933 if test $ac_cv_func_shl_load = yes; then
9934 lt_cv_dlopen
="shl_load"
9936 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9937 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9938 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9939 echo $ECHO_N "(cached) $ECHO_C" >&6
9941 ac_check_lib_save_LIBS
=$LIBS
9943 cat >conftest.
$ac_ext <<_ACEOF
9946 cat confdefs.h
>>conftest.
$ac_ext
9947 cat >>conftest.
$ac_ext <<_ACEOF
9948 /* end confdefs.h. */
9950 /* Override any GCC internal prototype to avoid an error.
9951 Use char because int might match the return type of a GCC
9952 builtin and then its argument prototype would still apply. */
9965 rm -f conftest.
$ac_objext conftest
$ac_exeext
9966 if { (ac_try
="$ac_link"
9968 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9969 *) ac_try_echo=$ac_try;;
9971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9972 (eval "$ac_link") 2>conftest.er1
9974 grep -v '^ *+' conftest.er1 >conftest.err
9976 cat conftest.err >&5
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); } && {
9979 test -z "$ac_c_werror_flag" ||
9980 test ! -s conftest.err
9981 } && test -s conftest$ac_exeext &&
9982 $as_test_x conftest$ac_exeext; then
9983 ac_cv_lib_dld_shl_load=yes
9985 echo "$as_me: failed program was:" >&5
9986 sed 's/^/| /' conftest.$ac_ext >&5
9988 ac_cv_lib_dld_shl_load=no
9991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9992 conftest$ac_exeext conftest.$ac_ext
9993 LIBS=$ac_check_lib_save_LIBS
9995 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9996 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9997 if test $ac_cv_lib_dld_shl_load = yes; then
9998 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10000 { echo "$as_me:$LINENO: checking for dlopen" >&5
10001 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10002 if test "${ac_cv_func_dlopen+set}" = set; then
10003 echo $ECHO_N "(cached) $ECHO_C" >&6
10005 cat >conftest.$ac_ext <<_ACEOF
10008 cat confdefs.h >>conftest.$ac_ext
10009 cat >>conftest.$ac_ext <<_ACEOF
10010 /* end confdefs.h. */
10011 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10013 #define dlopen innocuous_dlopen
10015 /* System header to define __stub macros and hopefully few prototypes,
10016 which can conflict with char dlopen (); below.
10017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10018 <limits.h> exists even on freestanding compilers. */
10021 # include <limits.h>
10023 # include <assert.h>
10028 /* Override any GCC internal prototype to avoid an error.
10029 Use char because int might match the return type of a GCC
10030 builtin and then its argument prototype would still apply. */
10035 /* The GNU C library defines this for functions which it implements
10036 to always fail with ENOSYS. Some functions are actually named
10037 something starting with __ and the normal name is an alias. */
10038 #if defined __stub_dlopen || defined __stub___dlopen
10050 rm -f conftest.$ac_objext conftest$ac_exeext
10051 if { (ac_try="$ac_link"
10052 case "(($ac_try" in
10053 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10054 *) ac_try_echo
=$ac_try;;
10056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10057 (eval "$ac_link") 2>conftest.er1
10059 grep -v '^ *+' conftest.er1
>conftest.err
10061 cat conftest.err
>&5
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); } && {
10064 test -z "$ac_c_werror_flag" ||
10065 test ! -s conftest.err
10066 } && test -s conftest
$ac_exeext &&
10067 $as_test_x conftest
$ac_exeext; then
10068 ac_cv_func_dlopen
=yes
10070 echo "$as_me: failed program was:" >&5
10071 sed 's/^/| /' conftest.
$ac_ext >&5
10073 ac_cv_func_dlopen
=no
10076 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10077 conftest
$ac_exeext conftest.
$ac_ext
10079 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10080 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10081 if test $ac_cv_func_dlopen = yes; then
10082 lt_cv_dlopen
="dlopen"
10084 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10085 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10086 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10087 echo $ECHO_N "(cached) $ECHO_C" >&6
10089 ac_check_lib_save_LIBS
=$LIBS
10091 cat >conftest.
$ac_ext <<_ACEOF
10094 cat confdefs.h
>>conftest.
$ac_ext
10095 cat >>conftest.
$ac_ext <<_ACEOF
10096 /* end confdefs.h. */
10098 /* Override any GCC internal prototype to avoid an error.
10099 Use char because int might match the return type of a GCC
10100 builtin and then its argument prototype would still apply. */
10113 rm -f conftest.
$ac_objext conftest
$ac_exeext
10114 if { (ac_try
="$ac_link"
10115 case "(($ac_try" in
10116 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10117 *) ac_try_echo=$ac_try;;
10119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10120 (eval "$ac_link") 2>conftest.er1
10122 grep -v '^ *+' conftest.er1 >conftest.err
10124 cat conftest.err >&5
10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126 (exit $ac_status); } && {
10127 test -z "$ac_c_werror_flag" ||
10128 test ! -s conftest.err
10129 } && test -s conftest$ac_exeext &&
10130 $as_test_x conftest$ac_exeext; then
10131 ac_cv_lib_dl_dlopen=yes
10133 echo "$as_me: failed program was:" >&5
10134 sed 's/^/| /' conftest.$ac_ext >&5
10136 ac_cv_lib_dl_dlopen=no
10139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10140 conftest$ac_exeext conftest.$ac_ext
10141 LIBS=$ac_check_lib_save_LIBS
10143 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10144 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10145 if test $ac_cv_lib_dl_dlopen = yes; then
10146 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10148 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10149 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10150 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10151 echo $ECHO_N "(cached) $ECHO_C" >&6
10153 ac_check_lib_save_LIBS=$LIBS
10154 LIBS="-lsvld $LIBS"
10155 cat >conftest.$ac_ext <<_ACEOF
10158 cat confdefs.h >>conftest.$ac_ext
10159 cat >>conftest.$ac_ext <<_ACEOF
10160 /* end confdefs.h. */
10162 /* Override any GCC internal prototype to avoid an error.
10163 Use char because int might match the return type of a GCC
10164 builtin and then its argument prototype would still apply. */
10177 rm -f conftest.$ac_objext conftest$ac_exeext
10178 if { (ac_try="$ac_link"
10179 case "(($ac_try" in
10180 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10181 *) ac_try_echo
=$ac_try;;
10183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10184 (eval "$ac_link") 2>conftest.er1
10186 grep -v '^ *+' conftest.er1
>conftest.err
10188 cat conftest.err
>&5
10189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190 (exit $ac_status); } && {
10191 test -z "$ac_c_werror_flag" ||
10192 test ! -s conftest.err
10193 } && test -s conftest
$ac_exeext &&
10194 $as_test_x conftest
$ac_exeext; then
10195 ac_cv_lib_svld_dlopen
=yes
10197 echo "$as_me: failed program was:" >&5
10198 sed 's/^/| /' conftest.
$ac_ext >&5
10200 ac_cv_lib_svld_dlopen
=no
10203 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10204 conftest
$ac_exeext conftest.
$ac_ext
10205 LIBS
=$ac_check_lib_save_LIBS
10207 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10208 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10209 if test $ac_cv_lib_svld_dlopen = yes; then
10210 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
10212 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10213 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10214 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10215 echo $ECHO_N "(cached) $ECHO_C" >&6
10217 ac_check_lib_save_LIBS
=$LIBS
10219 cat >conftest.
$ac_ext <<_ACEOF
10222 cat confdefs.h
>>conftest.
$ac_ext
10223 cat >>conftest.
$ac_ext <<_ACEOF
10224 /* end confdefs.h. */
10226 /* Override any GCC internal prototype to avoid an error.
10227 Use char because int might match the return type of a GCC
10228 builtin and then its argument prototype would still apply. */
10236 return dld_link ();
10241 rm -f conftest.
$ac_objext conftest
$ac_exeext
10242 if { (ac_try
="$ac_link"
10243 case "(($ac_try" in
10244 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10245 *) ac_try_echo=$ac_try;;
10247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10248 (eval "$ac_link") 2>conftest.er1
10250 grep -v '^ *+' conftest.er1 >conftest.err
10252 cat conftest.err >&5
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); } && {
10255 test -z "$ac_c_werror_flag" ||
10256 test ! -s conftest.err
10257 } && test -s conftest$ac_exeext &&
10258 $as_test_x conftest$ac_exeext; then
10259 ac_cv_lib_dld_dld_link=yes
10261 echo "$as_me: failed program was:" >&5
10262 sed 's/^/| /' conftest.$ac_ext >&5
10264 ac_cv_lib_dld_dld_link=no
10267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10268 conftest$ac_exeext conftest.$ac_ext
10269 LIBS=$ac_check_lib_save_LIBS
10271 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10272 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10273 if test $ac_cv_lib_dld_dld_link = yes; then
10274 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10295 if test "x$lt_cv_dlopen" != xno; then
10301 case $lt_cv_dlopen in
10303 save_CPPFLAGS="$CPPFLAGS"
10304 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10306 save_LDFLAGS="$LDFLAGS"
10307 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10310 LIBS="$lt_cv_dlopen_libs $LIBS"
10312 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10313 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10314 if test "${lt_cv_dlopen_self+set}" = set; then
10315 echo $ECHO_N "(cached) $ECHO_C" >&6
10317 if test "$cross_compiling" = yes; then :
10318 lt_cv_dlopen_self=cross
10320 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10321 lt_status=$lt_dlunknown
10322 cat > conftest.$ac_ext <<EOF
10323 #line 10323 "configure"
10324 #include "confdefs.h"
10333 # define LT_DLGLOBAL RTLD_GLOBAL
10336 # define LT_DLGLOBAL DL_GLOBAL
10338 # define LT_DLGLOBAL 0
10342 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10343 find out it does not work in some platform. */
10344 #ifndef LT_DLLAZY_OR_NOW
10346 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10349 # define LT_DLLAZY_OR_NOW DL_LAZY
10352 # define LT_DLLAZY_OR_NOW RTLD_NOW
10355 # define LT_DLLAZY_OR_NOW DL_NOW
10357 # define LT_DLLAZY_OR_NOW 0
10365 extern "C" void exit (int);
10368 void fnord() { int i=42;}
10371 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10372 int status = $lt_dlunknown;
10376 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10377 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10378 /* dlclose (self); */
10386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10387 (eval $ac_link) 2>&5
10389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10391 (./conftest; exit; ) >&5 2>/dev/null
10393 case x$lt_status in
10394 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10395 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10396 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10399 # compilation failed
10400 lt_cv_dlopen_self=no
10407 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10408 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10410 if test "x$lt_cv_dlopen_self" = xyes; then
10411 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10412 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10413 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10414 if test "${lt_cv_dlopen_self_static+set}" = set; then
10415 echo $ECHO_N "(cached) $ECHO_C" >&6
10417 if test "$cross_compiling" = yes; then :
10418 lt_cv_dlopen_self_static=cross
10420 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10421 lt_status=$lt_dlunknown
10422 cat > conftest.$ac_ext <<EOF
10423 #line 10423 "configure"
10424 #include "confdefs.h"
10433 # define LT_DLGLOBAL RTLD_GLOBAL
10436 # define LT_DLGLOBAL DL_GLOBAL
10438 # define LT_DLGLOBAL 0
10442 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10443 find out it does not work in some platform. */
10444 #ifndef LT_DLLAZY_OR_NOW
10446 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10449 # define LT_DLLAZY_OR_NOW DL_LAZY
10452 # define LT_DLLAZY_OR_NOW RTLD_NOW
10455 # define LT_DLLAZY_OR_NOW DL_NOW
10457 # define LT_DLLAZY_OR_NOW 0
10465 extern "C" void exit (int);
10468 void fnord() { int i=42;}
10471 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10472 int status = $lt_dlunknown;
10476 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10477 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10478 /* dlclose (self); */
10486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10487 (eval $ac_link) 2>&5
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10491 (./conftest; exit; ) >&5 2>/dev/null
10493 case x$lt_status in
10494 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10495 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10496 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10499 # compilation failed
10500 lt_cv_dlopen_self_static=no
10507 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10508 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10511 CPPFLAGS="$save_CPPFLAGS"
10512 LDFLAGS="$save_LDFLAGS"
10517 case $lt_cv_dlopen_self in
10518 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10519 *) enable_dlopen_self=unknown ;;
10522 case $lt_cv_dlopen_self_static in
10523 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10524 *) enable_dlopen_self_static=unknown ;;
10529 # Report which library types will actually be built
10530 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10531 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10532 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10533 echo "${ECHO_T}$can_build_shared" >&6; }
10535 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10536 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10537 test "$can_build_shared" = "no" && enable_shared=no
10539 # On AIX, shared libraries and static libraries use the same namespace, and
10540 # are all built from PIC.
10543 test "$enable_shared" = yes && enable_static=no
10544 if test -n "$RANLIB"; then
10545 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10546 postinstall_cmds='$RANLIB $lib'
10551 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10552 test "$enable_shared" = yes && enable_static=no
10556 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10557 echo "${ECHO_T}$enable_shared" >&6; }
10559 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10560 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10561 # Make sure either enable_shared or enable_static is yes.
10562 test "$enable_shared" = yes || enable_static=yes
10563 { echo "$as_me:$LINENO: result: $enable_static" >&5
10564 echo "${ECHO_T}$enable_static" >&6; }
10566 # The else clause should only fire when bootstrapping the
10567 # libtool distribution, otherwise you forgot to ship ltmain.sh
10568 # with your package, and you will get complaints that there are
10569 # no rules to generate ltmain.sh.
10570 if test -f "$ltmain"; then
10571 # See if we are running on zsh, and set the options which allow our commands through
10572 # without removal of \ escapes.
10573 if test -n "${ZSH_VERSION+set}" ; then
10574 setopt NO_GLOB_SUBST
10576 # Now quote all the things that may contain metacharacters while being
10577 # careful not to overquote the AC_SUBSTed values. We take copies of the
10578 # variables and quote the copies for generation of the libtool script.
10579 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10581 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10582 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10583 deplibs_check_method reload_flag reload_cmds need_locks \
10584 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10585 lt_cv_sys_global_symbol_to_c_name_address \
10586 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10587 old_postinstall_cmds old_postuninstall_cmds \
10591 lt_prog_compiler_wl \
10592 lt_prog_compiler_pic \
10593 lt_prog_compiler_static \
10594 lt_prog_compiler_no_builtin_flag \
10595 export_dynamic_flag_spec \
10596 thread_safe_flag_spec \
10597 whole_archive_flag_spec \
10598 enable_shared_with_static_runtimes \
10600 old_archive_from_new_cmds \
10605 compiler_lib_search_path \
10607 archive_expsym_cmds \
10609 postuninstall_cmds \
10610 old_archive_from_expsyms_cmds \
10611 allow_undefined_flag \
10612 no_undefined_flag \
10613 export_symbols_cmds \
10614 hardcode_libdir_flag_spec \
10615 hardcode_libdir_flag_spec_ld \
10616 hardcode_libdir_separator \
10617 hardcode_automatic \
10619 module_expsym_cmds \
10620 lt_cv_prog_compiler_c_o \
10623 include_expsyms; do
10626 old_archive_cmds | \
10627 old_archive_from_new_cmds | \
10629 archive_expsym_cmds | \
10631 module_expsym_cmds | \
10632 old_archive_from_expsyms_cmds | \
10633 export_symbols_cmds | \
10634 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10635 postinstall_cmds | postuninstall_cmds | \
10636 old_postinstall_cmds | old_postuninstall_cmds | \
10637 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10638 # Double-quote double-evaled strings.
10639 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$double_quote_subst\" -e \"\
$sed_quote_subst\" -e \"\
$delay_variable_subst\"\
`\\\""
10642 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$sed_quote_subst\"\
`\\\""
10648 *'\$0 --fallback-echo"')
10649 lt_echo=`$echo "X$lt_echo" |
$Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10653 cfgfile="${ofile}T"
10654 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10656 { echo "$as_me:$LINENO: creating $ofile" >&5
10657 echo "$as_me: creating $ofile" >&6;}
10659 cat <<__EOF__ >> "$cfgfile"
10662 # `$echo "$cfgfile" |
sed 's%^.*/%%'` - Provide generalized library-building support services.
10663 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10664 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10666 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10667 # Free Software Foundation, Inc.
10669 # This file is part of GNU Libtool:
10670 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10672 # This program is free software; you can redistribute it and/or modify
10673 # it under the terms of the GNU General Public License as published by
10674 # the Free Software Foundation; either version 2 of the License, or
10675 # (at your option) any later version.
10677 # This program is distributed in the hope that it will be useful, but
10678 # WITHOUT ANY WARRANTY; without even the implied warranty of
10679 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10680 # General Public License for more details.
10682 # You should have received a copy of the GNU General Public License
10683 # along with this program; if not, write to the Free Software
10684 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10686 # As a special exception to the GNU General Public License, if you
10687 # distribute this file as part of a program that contains a
10688 # configuration script generated by Autoconf, you may include it under
10689 # the same distribution terms that you use for the rest of that program.
10691 # A sed program that does not truncate output.
10694 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10695 Xsed="$SED -e 1s/^X//"
10697 # The HP-UX ksh and POSIX shell print the target directory to stdout
10698 # if CDPATH is set.
10699 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10701 # The names of the tagged configurations supported by this script.
10704 # ### BEGIN LIBTOOL CONFIG
10706 # Libtool was configured on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
10708 # Shell to use when invoking shell scripts.
10711 # Whether or not to build shared libraries.
10712 build_libtool_libs=$enable_shared
10714 # Whether or not to build static libraries.
10715 build_old_libs=$enable_static
10717 # Whether or not to add -lc for building shared libraries.
10718 build_libtool_need_lc=$archive_cmds_need_lc
10720 # Whether or not to disallow shared libs when runtime libs are static
10721 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10723 # Whether or not to optimize for fast installation.
10724 fast_install=$enable_fast_install
10727 host_alias=$host_alias
10731 # The build system.
10732 build_alias=$build_alias
10736 # An echo program that does not interpret backslashes.
10741 AR_FLAGS=$lt_AR_FLAGS
10746 # LTCC compiler flags.
10747 LTCFLAGS=$lt_LTCFLAGS
10749 # A language-specific compiler.
10752 # Is the compiler the GNU C compiler?
10758 # The linker used to build libraries.
10761 # Whether we need hard or soft links.
10764 # A BSD-compatible nm program.
10767 # A symbol stripping program
10770 # Used to examine libraries when file_magic_cmd begins "file"
10771 MAGIC_CMD=$MAGIC_CMD
10773 # Used on cygwin: DLL creation program.
10776 # Used on cygwin: object dumper.
10779 # Used on cygwin: assembler.
10782 # The name of the directory that contains temporary libtool files.
10785 # How to create reloadable object files.
10786 reload_flag=$lt_reload_flag
10787 reload_cmds=$lt_reload_cmds
10789 # How to pass a linker flag through the compiler.
10790 wl=$lt_lt_prog_compiler_wl
10792 # Object file suffix (normally "o").
10793 objext="$ac_objext"
10795 # Old archive suffix (normally "a").
10798 # Shared library suffix (normally ".so").
10799 shrext_cmds='$shrext_cmds'
10801 # Executable file suffix (normally "").
10804 # Additional compiler flags for building library objects.
10805 pic_flag=$lt_lt_prog_compiler_pic
10808 # What is the maximum length of a command?
10809 max_cmd_len=$lt_cv_sys_max_cmd_len
10811 # Does compiler simultaneously support -c and -o options?
10812 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10814 # Must we lock files when doing compilation?
10815 need_locks=$lt_need_locks
10817 # Do we need the lib prefix for modules?
10818 need_lib_prefix=$need_lib_prefix
10820 # Do we need a version for libraries?
10821 need_version=$need_version
10823 # Whether dlopen is supported.
10824 dlopen_support=$enable_dlopen
10826 # Whether dlopen of programs is supported.
10827 dlopen_self=$enable_dlopen_self
10829 # Whether dlopen of statically linked programs is supported.
10830 dlopen_self_static=$enable_dlopen_self_static
10832 # Compiler flag to prevent dynamic linking.
10833 link_static_flag=$lt_lt_prog_compiler_static
10835 # Compiler flag to turn off builtin functions.
10836 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10838 # Compiler flag to allow reflexive dlopens.
10839 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10841 # Compiler flag to generate shared objects directly from archives.
10842 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10844 # Compiler flag to generate thread-safe objects.
10845 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10847 # Library versioning type.
10848 version_type=$version_type
10850 # Format of library name prefix.
10851 libname_spec=$lt_libname_spec
10853 # List of archive names. First name is the real one, the rest are links.
10854 # The last name is the one that the linker finds with -lNAME.
10855 library_names_spec=$lt_library_names_spec
10857 # The coded name of the library, if different from the real name.
10858 soname_spec=$lt_soname_spec
10860 # Commands used to build and install an old-style archive.
10862 old_archive_cmds=$lt_old_archive_cmds
10863 old_postinstall_cmds=$lt_old_postinstall_cmds
10864 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10866 # Create an old-style archive from a shared archive.
10867 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10869 # Create a temporary old-style archive to link instead of a shared archive.
10870 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10872 # Commands used to build and install a shared archive.
10873 archive_cmds=$lt_archive_cmds
10874 archive_expsym_cmds=$lt_archive_expsym_cmds
10875 postinstall_cmds=$lt_postinstall_cmds
10876 postuninstall_cmds=$lt_postuninstall_cmds
10878 # Commands used to build a loadable module (assumed same as above if empty)
10879 module_cmds=$lt_module_cmds
10880 module_expsym_cmds=$lt_module_expsym_cmds
10882 # Commands to strip libraries.
10883 old_striplib=$lt_old_striplib
10884 striplib=$lt_striplib
10886 # Dependencies to place before the objects being linked to create a
10888 predep_objects=$lt_predep_objects
10890 # Dependencies to place after the objects being linked to create a
10892 postdep_objects=$lt_postdep_objects
10894 # Dependencies to place before the objects being linked to create a
10896 predeps=$lt_predeps
10898 # Dependencies to place after the objects being linked to create a
10900 postdeps=$lt_postdeps
10902 # The library search path used internally by the compiler when linking
10903 # a shared library.
10904 compiler_lib_search_path=$lt_compiler_lib_search_path
10906 # Method to check whether dependent libraries are shared objects.
10907 deplibs_check_method=$lt_deplibs_check_method
10909 # Command to use when deplibs_check_method == file_magic.
10910 file_magic_cmd=$lt_file_magic_cmd
10912 # Flag that allows shared libraries with undefined symbols to be built.
10913 allow_undefined_flag=$lt_allow_undefined_flag
10915 # Flag that forces no undefined symbols.
10916 no_undefined_flag=$lt_no_undefined_flag
10918 # Commands used to finish a libtool library installation in a directory.
10919 finish_cmds=$lt_finish_cmds
10921 # Same as above, but a single script fragment to be evaled but not shown.
10922 finish_eval=$lt_finish_eval
10924 # Take the output of nm and produce a listing of raw symbols and C names.
10925 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10927 # Transform the output of nm in a proper C declaration
10928 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10930 # Transform the output of nm in a C name address pair
10931 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10933 # This is the shared library runtime path variable.
10934 runpath_var=$runpath_var
10936 # This is the shared library path variable.
10937 shlibpath_var=$shlibpath_var
10939 # Is shlibpath searched before the hard-coded library search path?
10940 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10942 # How to hardcode a shared library path into an executable.
10943 hardcode_action=$hardcode_action
10945 # Whether we should hardcode library paths into libraries.
10946 hardcode_into_libs=$hardcode_into_libs
10948 # Flag to hardcode \$libdir into a binary during linking.
10949 # This must work even if \$libdir does not exist.
10950 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10952 # If ld is used when linking, flag to hardcode \$libdir into
10953 # a binary during linking. This must work even if \$libdir does
10955 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10957 # Whether we need a single -rpath flag with a separated argument.
10958 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10960 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10961 # resulting binary.
10962 hardcode_direct=$hardcode_direct
10964 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10965 # resulting binary.
10966 hardcode_minus_L=$hardcode_minus_L
10968 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10969 # the resulting binary.
10970 hardcode_shlibpath_var=$hardcode_shlibpath_var
10972 # Set to yes if building a shared library automatically hardcodes DIR into the library
10973 # and all subsequent libraries and executables linked against it.
10974 hardcode_automatic=$hardcode_automatic
10976 # Variables whose values should be saved in libtool wrapper scripts and
10977 # restored at relink time.
10978 variables_saved_for_relink="$variables_saved_for_relink"
10980 # Whether libtool must link a program against all its dependency libraries.
10981 link_all_deplibs=$link_all_deplibs
10983 # Compile-time system search path for libraries
10984 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10986 # Run-time system search path for libraries
10987 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10989 # Fix the shell variable \$srcfile for the compiler.
10990 fix_srcfile_path=$lt_fix_srcfile_path
10992 # Set to yes if exported symbols are required.
10993 always_export_symbols=$always_export_symbols
10995 # The commands to list exported symbols.
10996 export_symbols_cmds=$lt_export_symbols_cmds
10998 # The commands to extract the exported symbol list from a shared archive.
10999 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11001 # Symbols that should not be listed in the preloaded symbols.
11002 exclude_expsyms=$lt_exclude_expsyms
11004 # Symbols that must always be exported.
11005 include_expsyms=$lt_include_expsyms
11007 # ### END LIBTOOL CONFIG
11014 cat <<\EOF >> "$cfgfile"
11016 # AIX sometimes has problems with the GCC collect2 program. For some
11017 # reason, if we set the COLLECT_NAMES environment variable, the problems
11018 # vanish in a puff of smoke.
11019 if test "X${COLLECT_NAMES+set}" != Xset; then
11021 export COLLECT_NAMES
11027 # We use sed instead of cat because bash on DJGPP gets confused if
11028 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11029 # text mode, it properly converts lines to CR/LF. This bash problem
11030 # is reportedly fixed, but why not run on old versions too?
11031 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11033 mv -f "$cfgfile" "$ofile" || \
11034 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11038 # If there is no Makefile yet, we rely on a make rule to execute
11039 # `config.status
--recheck' to rerun these tests and create the
11040 # libtool script then.
11041 ltmain_in=`echo $ltmain | sed -e 's
/\.sh$
/.in
/'`
11042 if test -f "$ltmain_in"; then
11043 test -f Makefile && make "$ltmain"
11049 ac_cpp='$CPP $CPPFLAGS'
11050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
11051 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
11052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11057 # Check whether --with-tags was given.
11058 if test "${with_tags+set}" = set; then
11059 withval=$with_tags; tagnames="$withval"
11063 if test -f "$ltmain" && test -n "$tagnames"; then
11064 if test ! -f "${ofile}"; then
11065 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist
" >&5
11066 echo "$as_me: WARNING
: output
file \
`$ofile' does not exist" >&2;}
11069 if test -z "$LTCC"; then
11070 eval "`$SHELL ${ofile} --config |
grep '^LTCC='`"
11071 if test -z "$LTCC"; then
11072 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11073 echo "$as_me: WARNING: output file \`$ofile' does not
look like a libtool
script" >&2;}
11075 { echo "$as_me:$LINENO: WARNING
: using \
`LTCC=$LTCC', extracted from \`$ofile'" >&5
11076 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \
`$ofile'" >&2;}
11079 if test -z "$LTCFLAGS"; then
11080 eval "`$SHELL ${ofile} --config |
grep '^LTCFLAGS='`"
11083 # Extract list of available tagged configurations in $ofile.
11084 # Note that this assumes the entire list is on one line.
11085 available_tags=`grep "^available_tags=" "${ofile}" |
$SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11087 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11088 for tagname in $tagnames; do
11090 # Check whether tagname contains only valid characters
11091 case `$echo "X$tagname" |
$Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11093 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11094 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11095 { (exit 1); exit 1; }; }
11099 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11101 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11102 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11103 { (exit 1); exit 1; }; }
11106 # Update the list of available tags.
11107 if test -n "$tagname"; then
11108 echo appending configuration tag \"$tagname\" to $ofile
11112 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11113 ( (test "X$CXX" = "Xg++" && `g
++ -v >/dev
/null
2>&1` ) ||
11114 (test "X$CXX" != "Xg++"))) ; then
11116 ac_cpp='$CXXCPP $CPPFLAGS'
11117 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11118 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11119 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11124 archive_cmds_need_lc_CXX=no
11125 allow_undefined_flag_CXX=
11126 always_export_symbols_CXX=no
11127 archive_expsym_cmds_CXX=
11128 export_dynamic_flag_spec_CXX=
11129 hardcode_direct_CXX=no
11130 hardcode_libdir_flag_spec_CXX=
11131 hardcode_libdir_flag_spec_ld_CXX=
11132 hardcode_libdir_separator_CXX=
11133 hardcode_minus_L_CXX=no
11134 hardcode_shlibpath_var_CXX=unsupported
11135 hardcode_automatic_CXX=no
11137 module_expsym_cmds_CXX=
11138 link_all_deplibs_CXX=unknown
11139 old_archive_cmds_CXX=$old_archive_cmds
11140 no_undefined_flag_CXX=
11141 whole_archive_flag_spec_CXX=
11142 enable_shared_with_static_runtimes_CXX=no
11144 # Dependencies to place before and after the object being linked:
11145 predep_objects_CXX=
11146 postdep_objects_CXX=
11149 compiler_lib_search_path_CXX=
11151 # Source file extension for C++ test sources.
11154 # Object file extension for compiled C++ test sources.
11158 # Code to be used in simple compile tests
11159 lt_simple_compile_test_code="int some_variable = 0;"
11161 # Code to be used in simple link tests
11162 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11164 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11166 # If no C compiler was specified, use CC.
11169 # If no C compiler flags were specified, use CFLAGS.
11170 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11172 # Allow CC to be a program name with arguments.
11176 # save warnings/boilerplate of simple test code
11177 ac_outfile=conftest.$ac_objext
11178 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11179 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11180 _lt_compiler_boilerplate=`cat conftest.err
`
11183 ac_outfile=conftest.$ac_objext
11184 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11185 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11186 _lt_linker_boilerplate=`cat conftest.err
`
11190 # Allow CC to be a program name with arguments.
11195 lt_save_with_gnu_ld=$with_gnu_ld
11196 lt_save_path_LD=$lt_cv_path_LD
11197 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11198 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11200 $as_unset lt_cv_prog_gnu_ld
11202 if test -n "${lt_cv_path_LDCXX+set}"; then
11203 lt_cv_path_LD=$lt_cv_path_LDCXX
11205 $as_unset lt_cv_path_LD
11207 test -z "${LDCXX+set}" || LD=$LDCXX
11211 for cc_temp in $compiler""; do
11213 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11214 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11219 cc_basename=`$echo "X$cc_temp" |
$Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11222 # We don't want -fno-exception wen compiling C++ code, so set the
11223 # no_builtin_flag separately
11224 if test "$GXX" = yes; then
11225 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11227 lt_prog_compiler_no_builtin_flag_CXX=
11230 if test "$GXX" = yes; then
11231 # Set up default GNU C++ configuration
11234 # Check whether --with-gnu-ld was given.
11235 if test "${with_gnu_ld+set}" = set; then
11236 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11242 if test "$GCC" = yes; then
11243 # Check if gcc -print-prog-name=ld gives a path.
11244 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11245 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11248 # gcc leaves a trailing carriage return which upsets mingw
11249 ac_prog=`($CC -print-prog-name=ld
) 2>&5 |
tr -d '\015'` ;;
11251 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
11254 # Accept absolute paths.
11256 re_direlt='/[^/][^/]*/\.\./'
11257 # Canonicalize the pathname of ld
11258 ac_prog=`echo $ac_prog|
$SED 's%\\\\%/%g'`
11259 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11260 ac_prog=`echo $ac_prog|
$SED "s%$re_direlt%/%"`
11262 test -z "$LD" && LD="$ac_prog"
11265 # If it fails, then pretend we aren't using GCC.
11269 # If it is relative, then search for the first ld in PATH.
11270 with_gnu_ld=unknown
11273 elif test "$with_gnu_ld" = yes; then
11274 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11275 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11277 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11278 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11280 if test "${lt_cv_path_LD+set}" = set; then
11281 echo $ECHO_N "(cached) $ECHO_C" >&6
11283 if test -z "$LD"; then
11284 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11285 for ac_dir in $PATH; do
11287 test -z "$ac_dir" && ac_dir=.
11288 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11289 lt_cv_path_LD="$ac_dir/$ac_prog"
11290 # Check to see if the program is GNU ld. I'd rather use --version,
11291 # but apparently some variants of GNU ld only accept -v.
11292 # Break only if it was the GNU/non-GNU ld that we prefer.
11293 case `"$lt_cv_path_LD" -v 2>&1 </dev
/null
` in
11294 *GNU* | *'with BFD'*)
11295 test "$with_gnu_ld" != no && break
11298 test "$with_gnu_ld" != yes && break
11305 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11309 LD="$lt_cv_path_LD"
11310 if test -n "$LD"; then
11311 { echo "$as_me:$LINENO: result: $LD" >&5
11312 echo "${ECHO_T}$LD" >&6; }
11314 { echo "$as_me:$LINENO: result: no" >&5
11315 echo "${ECHO_T}no" >&6; }
11317 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11318 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11319 { (exit 1); exit 1; }; }
11320 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11321 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11322 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11323 echo $ECHO_N "(cached) $ECHO_C" >&6
11325 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11326 case `$LD -v 2>&1 </dev
/null
` in
11327 *GNU* | *'with BFD'*)
11328 lt_cv_prog_gnu_ld=yes
11331 lt_cv_prog_gnu_ld=no
11335 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11336 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11337 with_gnu_ld=$lt_cv_prog_gnu_ld
11341 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11342 # archiving commands below assume that GNU ld is being used.
11343 if test "$with_gnu_ld" = yes; then
11344 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11345 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'
11347 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11348 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11350 # If archive_cmds runs LD, not CC, wlarc should be empty
11351 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11352 # investigate it a little bit more. (MM)
11355 # ancient GNU ld didn't support --whole-archive et. al.
11356 if eval "`$CC -print-prog-name=ld
` --help 2>&1" | \
11357 grep 'no-whole-archive' > /dev/null; then
11358 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11360 whole_archive_flag_spec_CXX=
11366 # A generic and very simple default shared library creation
11367 # command for GNU C++ for the case where it uses the native
11368 # linker, instead of GNU ld. If possible, this setting should
11369 # overridden to take advantage of the native linker features on
11370 # the platform it is being used on.
11371 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11374 # Commands to make compiler produce verbose output that lists
11375 # what "hidden" libraries, object files and flags are used when
11376 # linking a shared library.
11377 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11385 # PORTME: fill in a description of your system's C++ link characteristics
11386 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11387 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11391 # FIXME: insert proper C++ library support
11395 if test "$host_cpu" = ia64; then
11396 # On IA64, the linker does run time linking by default, so we don't
11397 # have to do anything special.
11398 aix_use_runtimelinking=no
11399 exp_sym_flag='-Bexport'
11402 aix_use_runtimelinking=no
11404 # Test if we are trying to use run time linking or normal
11405 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11406 # need to do runtime linking.
11407 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11408 for ld_flag in $LDFLAGS; do
11411 aix_use_runtimelinking=yes
11419 exp_sym_flag='-bexport'
11420 no_entry_flag='-bnoentry'
11423 # When large executables or shared objects are built, AIX ld can
11424 # have problems creating the table of contents. If linking a library
11425 # or program results in "error TOC overflow" add -mminimal-toc to
11426 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11427 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11429 archive_cmds_CXX=''
11430 hardcode_direct_CXX=yes
11431 hardcode_libdir_separator_CXX=':'
11432 link_all_deplibs_CXX=yes
11434 if test "$GXX" = yes; then
11435 case $host_os in aix4.[012]|aix4.[012].*)
11436 # We only want to do this on AIX 4.2 and lower, the check
11437 # below for broken collect2 doesn't work under 4.3+
11438 collect2name=`${CC} -print-prog-name=collect2
`
11439 if test -f "$collect2name" && \
11440 strings "$collect2name" | grep resolve_lib_name >/dev/null
11442 # We have reworked collect2
11445 # We have old collect2
11446 hardcode_direct_CXX=unsupported
11447 # It fails to find uninstalled libraries when the uninstalled
11448 # path is not listed in the libpath. Setting hardcode_minus_L
11449 # to unsupported forces relinking
11450 hardcode_minus_L_CXX=yes
11451 hardcode_libdir_flag_spec_CXX='-L$libdir'
11452 hardcode_libdir_separator_CXX=
11456 shared_flag='-shared'
11457 if test "$aix_use_runtimelinking" = yes; then
11458 shared_flag="$shared_flag "'${wl}-G'
11462 if test "$host_cpu" = ia64; then
11463 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11464 # chokes on -Wl,-G. The following line is correct:
11467 if test "$aix_use_runtimelinking" = yes; then
11468 shared_flag='${wl}-G'
11470 shared_flag='${wl}-bM:SRE'
11475 # It seems that -bexpall does not export symbols beginning with
11476 # underscore (_), so it is better to generate a list of symbols to export.
11477 always_export_symbols_CXX=yes
11478 if test "$aix_use_runtimelinking" = yes; then
11479 # Warning - without using the other runtime loading flags (-brtl),
11480 # -berok will link without error, but may produce a broken library.
11481 allow_undefined_flag_CXX='-berok'
11482 # Determine the default libpath from the value encoded in an empty executable.
11483 cat >conftest.$ac_ext <<_ACEOF
11486 cat confdefs.h >>conftest.$ac_ext
11487 cat >>conftest.$ac_ext <<_ACEOF
11488 /* end confdefs.h. */
11498 rm -f conftest.$ac_objext conftest$ac_exeext
11499 if { (ac_try="$ac_link"
11500 case "(($ac_try" in
11501 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11502 *) ac_try_echo
=$ac_try;;
11504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11505 (eval "$ac_link") 2>conftest.er1
11507 grep -v '^ *+' conftest.er1
>conftest.err
11509 cat conftest.err
>&5
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); } && {
11512 test -z "$ac_cxx_werror_flag" ||
11513 test ! -s conftest.err
11514 } && test -s conftest
$ac_exeext &&
11515 $as_test_x conftest
$ac_exeext; then
11517 lt_aix_libpath_sed
='
11518 /Import File Strings/,/^$/ {
11524 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11525 # Check for a 64-bit object if we didn't find anything.
11526 if test -z "$aix_libpath"; then
11527 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11530 echo "$as_me: failed program was:" >&5
11531 sed 's/^/| /' conftest.
$ac_ext >&5
11536 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11537 conftest
$ac_exeext conftest.
$ac_ext
11538 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
11540 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
11542 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"
11544 if test "$host_cpu" = ia64
; then
11545 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
11546 allow_undefined_flag_CXX
="-z nodefs"
11547 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"
11549 # Determine the default libpath from the value encoded in an empty executable.
11550 cat >conftest.
$ac_ext <<_ACEOF
11553 cat confdefs.h
>>conftest.
$ac_ext
11554 cat >>conftest.
$ac_ext <<_ACEOF
11555 /* end confdefs.h. */
11565 rm -f conftest.
$ac_objext conftest
$ac_exeext
11566 if { (ac_try
="$ac_link"
11567 case "(($ac_try" in
11568 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11569 *) ac_try_echo=$ac_try;;
11571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11572 (eval "$ac_link") 2>conftest.er1
11574 grep -v '^ *+' conftest.er1 >conftest.err
11576 cat conftest.err >&5
11577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); } && {
11579 test -z "$ac_cxx_werror_flag" ||
11580 test ! -s conftest.err
11581 } && test -s conftest$ac_exeext &&
11582 $as_test_x conftest$ac_exeext; then
11584 lt_aix_libpath_sed='
11585 /Import File Strings/,/^$/ {
11591 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
11592 # Check for a 64-bit object if we didn't find anything.
11593 if test -z "$aix_libpath"; then
11594 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
11597 echo "$as_me: failed program was:" >&5
11598 sed 's/^/| /' conftest.$ac_ext >&5
11603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11604 conftest$ac_exeext conftest.$ac_ext
11605 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11607 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11608 # Warning - without using the other run time loading flags,
11609 # -berok will link without error, but may produce a broken library.
11610 no_undefined_flag_CXX=' ${wl}-bernotok'
11611 allow_undefined_flag_CXX=' ${wl}-berok'
11612 # Exported symbols can be pulled into shared objects from archives
11613 whole_archive_flag_spec_CXX='$convenience'
11614 archive_cmds_need_lc_CXX=yes
11615 # This is similar to how AIX traditionally builds its shared libraries.
11616 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'
11622 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11623 allow_undefined_flag_CXX=unsupported
11624 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11625 # support --undefined. This deserves some investigation. FIXME
11626 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11633 case $cc_basename in
11635 # FIXME: insert proper C++ library support
11641 cygwin* | mingw* | pw32*)
11642 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11643 # as there is no search path for DLLs.
11644 hardcode_libdir_flag_spec_CXX='-L$libdir'
11645 allow_undefined_flag_CXX=unsupported
11646 always_export_symbols_CXX=no
11647 enable_shared_with_static_runtimes_CXX=yes
11649 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11650 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'
11651 # If the export-symbols file already is a .def file (1st line
11652 # is EXPORTS), use it as is; otherwise, prepend...
11653 archive_expsym_cmds_CXX='if test "x`$SED 1q
$export_symbols`" = xEXPORTS; then
11654 cp $export_symbols $output_objdir/$soname.def;
11656 echo EXPORTS > $output_objdir/$soname.def;
11657 cat $export_symbols >> $output_objdir/$soname.def;
11659 $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'
11664 darwin* | rhapsody*)
11666 rhapsody* | darwin1.[012])
11667 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11670 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11671 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11673 case ${MACOSX_DEPLOYMENT_TARGET} in
11675 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11678 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11684 archive_cmds_need_lc_CXX=no
11685 hardcode_direct_CXX=no
11686 hardcode_automatic_CXX=yes
11687 hardcode_shlibpath_var_CXX=unsupported
11688 whole_archive_flag_spec_CXX=''
11689 link_all_deplibs_CXX=yes
11691 if test "$GXX" = yes ; then
11692 lt_int_apple_cc_single_mod=no
11693 output_verbose_link_cmd='echo'
11694 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11695 lt_int_apple_cc_single_mod=yes
11697 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11698 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11700 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'
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 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11705 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}'
11707 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}'
11709 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}'
11711 case $cc_basename in
11713 output_verbose_link_cmd='echo'
11714 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'
11715 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11716 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11717 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}'
11718 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}'
11728 case $cc_basename in
11730 # FIXME: insert proper C++ library support
11734 # Green Hills C++ Compiler
11735 # FIXME: insert proper C++ library support
11739 # FIXME: insert proper C++ library support
11745 # C++ shared libraries reported to be fairly broken before switch to ELF
11749 archive_cmds_need_lc_CXX=no
11751 freebsd* | dragonfly*)
11752 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11759 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11760 hardcode_libdir_separator_CXX=:
11761 export_dynamic_flag_spec_CXX='${wl}-E'
11762 hardcode_direct_CXX=yes
11763 hardcode_minus_L_CXX=yes # Not in the search PATH,
11764 # but as the default
11765 # location of the library.
11767 case $cc_basename in
11769 # FIXME: insert proper C++ library support
11773 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'
11774 # Commands to make compiler produce verbose output that lists
11775 # what "hidden" libraries, object files and flags are used when
11776 # linking a shared library.
11778 # There doesn't appear to be a way to prevent this compiler from
11779 # explicitly linking system object files so we need to strip them
11780 # from the output so that they don't get included in the library
11782 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'
11785 if test "$GXX" = yes; then
11786 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'
11788 # FIXME: insert proper C++ library support
11795 if test $with_gnu_ld = no; then
11796 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11797 hardcode_libdir_separator_CXX=:
11802 export_dynamic_flag_spec_CXX='${wl}-E'
11808 hardcode_direct_CXX=no
11809 hardcode_shlibpath_var_CXX=no
11812 hardcode_direct_CXX=yes
11813 hardcode_minus_L_CXX=yes # Not in the search PATH,
11814 # but as the default
11815 # location of the library.
11819 case $cc_basename in
11821 # FIXME: insert proper C++ library support
11827 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11830 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11833 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11836 # Commands to make compiler produce verbose output that lists
11837 # what "hidden" libraries, object files and flags are used when
11838 # linking a shared library.
11840 # There doesn't appear to be a way to prevent this compiler from
11841 # explicitly linking system object files so we need to strip them
11842 # from the output so that they don't get included in the library
11844 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'
11847 if test "$GXX" = yes; then
11848 if test $with_gnu_ld = no; then
11851 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11854 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11857 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'
11862 # FIXME: insert proper C++ library support
11869 hardcode_direct_CXX=no
11870 hardcode_shlibpath_var_CXX=no
11871 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11872 export_dynamic_flag_spec_CXX='${wl}-E'
11873 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11874 # Instead, shared libraries are loaded at an image base (0x10000000 by
11875 # default) and relocated if they conflict, which is a slow very memory
11876 # consuming and fragmenting process. To avoid this, we pick a random,
11877 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11878 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11879 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'
11880 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'
11883 case $cc_basename in
11886 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'
11888 # Archives containing C++ object files must be created using
11889 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11890 # necessary to make sure instantiated templates are included
11892 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11895 if test "$GXX" = yes; then
11896 if test "$with_gnu_ld" = no; then
11897 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'
11899 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'
11902 link_all_deplibs_CXX=yes
11905 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11906 hardcode_libdir_separator_CXX=:
11908 linux* | k*bsd*-gnu)
11909 case $cc_basename in
11911 # Kuck and Associates, Inc. (KAI) C++ Compiler
11913 # KCC will only create a shared library if the output file
11914 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11915 # to its proper name (with version) after linking.
11916 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'
11917 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'
11918 # Commands to make compiler produce verbose output that lists
11919 # what "hidden" libraries, object files and flags are used when
11920 # linking a shared library.
11922 # There doesn't appear to be a way to prevent this compiler from
11923 # explicitly linking system object files so we need to strip them
11924 # from the output so that they don't get included in the library
11926 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'
11928 hardcode_libdir_flag_spec_CXX
='${wl}--rpath,$libdir'
11929 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11931 # Archives containing C++ object files must be created using
11932 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11933 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
11938 # version 8.0 and above of icpc choke on multiply defined symbols
11939 # if we add $predep_objects and $postdep_objects, however 7.1 and
11940 # earlier do not add the objects themselves.
11941 case `$CC -V 2>&1` in
11943 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11944 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'
11946 *) # Version 8.0 or newer
11949 ia64
*) tmp_idyn
=' -i_dynamic';;
11951 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11952 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'
11955 archive_cmds_need_lc_CXX
=no
11956 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11957 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11958 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11961 # Portland Group C++ compiler
11962 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11963 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'
11965 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
11966 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11967 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'
11971 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11972 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'
11974 runpath_var
=LD_RUN_PATH
11975 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
11976 hardcode_libdir_separator_CXX
=:
11978 # Commands to make compiler produce verbose output that lists
11979 # what "hidden" libraries, object files and flags are used when
11980 # linking a shared library.
11982 # There doesn't appear to be a way to prevent this compiler from
11983 # explicitly linking system object files so we need to strip them
11984 # from the output so that they don't get included in the library
11986 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'
11989 case `$CC -V 2>&1 | sed 5q` in
11992 no_undefined_flag_CXX
=' -zdefs'
11993 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11994 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'
11995 hardcode_libdir_flag_spec_CXX
='-R$libdir'
11996 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'
11998 # Not sure whether something based on
11999 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12001 output_verbose_link_cmd
='echo'
12003 # Archives containing C++ object files must be created using
12004 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12005 # necessary to make sure instantiated templates are included
12007 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
12014 # FIXME: insert proper C++ library support
12018 # FIXME: insert proper C++ library support
12022 case $cc_basename in
12024 # FIXME: insert proper C++ library support
12028 # FIXME: insert proper C++ library support
12033 netbsd
* | netbsdelf
*-gnu)
12034 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
12035 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12037 hardcode_libdir_flag_spec_CXX
='-R$libdir'
12038 hardcode_direct_CXX
=yes
12039 hardcode_shlibpath_var_CXX
=no
12041 # Workaround some broken pre-1.5 toolchains
12042 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12045 # C++ shared libraries are fairly broken
12049 if test -f /usr
/libexec
/ld.so
; then
12050 hardcode_direct_CXX
=yes
12051 hardcode_shlibpath_var_CXX
=no
12052 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12053 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12054 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12055 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12056 export_dynamic_flag_spec_CXX
='${wl}-E'
12057 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12059 output_verbose_link_cmd
='echo'
12065 case $cc_basename in
12067 # Kuck and Associates, Inc. (KAI) C++ Compiler
12069 # KCC will only create a shared library if the output file
12070 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12071 # to its proper name (with version) after linking.
12072 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'
12074 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12075 hardcode_libdir_separator_CXX
=:
12077 # Archives containing C++ object files must be created using
12078 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12079 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
12083 # Rational C++ 2.4.1
12084 # FIXME: insert proper C++ library support
12088 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
12089 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'
12091 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12092 hardcode_libdir_separator_CXX
=:
12094 # Commands to make compiler produce verbose output that lists
12095 # what "hidden" libraries, object files and flags are used when
12096 # linking a shared library.
12098 # There doesn't appear to be a way to prevent this compiler from
12099 # explicitly linking system object files so we need to strip them
12100 # from the output so that they don't get included in the library
12102 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'
12105 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
12106 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
12107 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'
12109 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12110 hardcode_libdir_separator_CXX
=:
12112 # Commands to make compiler produce verbose output that lists
12113 # what "hidden" libraries, object files and flags are used when
12114 # linking a shared library.
12115 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12118 # FIXME: insert proper C++ library support
12125 case $cc_basename in
12127 # Kuck and Associates, Inc. (KAI) C++ Compiler
12129 # KCC will only create a shared library if the output file
12130 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12131 # to its proper name (with version) after linking.
12132 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'
12134 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12135 hardcode_libdir_separator_CXX
=:
12137 # Archives containing C++ object files must be created using
12138 # the KAI C++ compiler.
12139 old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs'
12142 # Rational C++ 2.4.1
12143 # FIXME: insert proper C++ library support
12147 allow_undefined_flag_CXX
=' -expect_unresolved \*'
12148 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'
12149 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12150 echo "-hidden">> $lib.exp~
12151 $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~
12154 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
12155 hardcode_libdir_separator_CXX
=:
12157 # Commands to make compiler produce verbose output that lists
12158 # what "hidden" libraries, object files and flags are used when
12159 # linking a shared library.
12161 # There doesn't appear to be a way to prevent this compiler from
12162 # explicitly linking system object files so we need to strip them
12163 # from the output so that they don't get included in the library
12165 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'
12168 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
12169 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
12170 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'
12172 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12173 hardcode_libdir_separator_CXX
=:
12175 # Commands to make compiler produce verbose output that lists
12176 # what "hidden" libraries, object files and flags are used when
12177 # linking a shared library.
12178 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12181 # FIXME: insert proper C++ library support
12188 # FIXME: insert proper C++ library support
12192 case $cc_basename in
12195 # FIXME: insert proper C++ library support
12200 # FIXME: insert proper C++ library support
12204 # FIXME: insert proper C++ library support
12210 case $cc_basename in
12212 # Sun C++ 4.2, 5.x and Centerline C++
12213 archive_cmds_need_lc_CXX
=yes
12214 no_undefined_flag_CXX
=' -zdefs'
12215 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12216 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12217 $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'
12219 hardcode_libdir_flag_spec_CXX
='-R$libdir'
12220 hardcode_shlibpath_var_CXX
=no
12222 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
12224 # The compiler driver will combine and reorder linker options,
12225 # but understands `-z linker_flag'.
12226 # Supported since Solaris 2.6 (maybe 2.5.1?)
12227 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
12230 link_all_deplibs_CXX
=yes
12232 output_verbose_link_cmd
='echo'
12234 # Archives containing C++ object files must be created using
12235 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12236 # necessary to make sure instantiated templates are included
12238 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
12241 # Green Hills C++ Compiler
12242 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12244 # The C++ compiler must be used to create the archive.
12245 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12248 # GNU C++ compiler with Solaris linker
12249 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
12250 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
12251 if $CC --version |
grep -v '^2\.7' > /dev
/null
; then
12252 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12253 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12254 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12256 # Commands to make compiler produce verbose output that lists
12257 # what "hidden" libraries, object files and flags are used when
12258 # linking a shared library.
12259 output_verbose_link_cmd
="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12261 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12263 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12264 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12265 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12267 # Commands to make compiler produce verbose output that lists
12268 # what "hidden" libraries, object files and flags are used when
12269 # linking a shared library.
12270 output_verbose_link_cmd
="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12273 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
12275 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
12277 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12284 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
12285 no_undefined_flag_CXX
='${wl}-z,text'
12286 archive_cmds_need_lc_CXX
=no
12287 hardcode_shlibpath_var_CXX
=no
12288 runpath_var
='LD_RUN_PATH'
12290 case $cc_basename in
12292 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12293 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12296 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12297 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12301 sysv5
* | sco3.2v5
* | sco5v6
*)
12302 # Note: We can NOT use -z defs as we might desire, because we do not
12303 # link with -lc, and that would cause any symbols used from libc to
12304 # always be unresolved, which means just about no library would
12305 # ever link correctly. If we're not using GNU ld we use -z text
12306 # though, which does catch some bad symbols but isn't as heavy-handed
12308 # For security reasons, it is highly recommended that you always
12309 # use absolute paths for naming shared libraries, and exclude the
12310 # DT_RUNPATH tag from executables and libraries. But doing so
12311 # requires that you compile everything twice, which is a pain.
12312 # So that behaviour is only enabled if SCOABSPATH is set to a
12313 # non-empty value in the environment. Most likely only useful for
12314 # creating official distributions of packages.
12315 # This is a hack until libtool officially supports absolute path
12316 # names for shared libraries.
12317 no_undefined_flag_CXX
='${wl}-z,text'
12318 allow_undefined_flag_CXX
='${wl}-z,nodefs'
12319 archive_cmds_need_lc_CXX
=no
12320 hardcode_shlibpath_var_CXX
=no
12321 hardcode_libdir_flag_spec_CXX
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12322 hardcode_libdir_separator_CXX
=':'
12323 link_all_deplibs_CXX
=yes
12324 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
12325 runpath_var
='LD_RUN_PATH'
12327 case $cc_basename in
12329 archive_cmds_CXX
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12330 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12333 archive_cmds_CXX
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12334 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12339 case $cc_basename in
12341 # NonStop-UX NCC 3.20
12342 # FIXME: insert proper C++ library support
12346 # FIXME: insert proper C++ library support
12352 # FIXME: insert proper C++ library support
12356 # FIXME: insert proper C++ library support
12360 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12361 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12362 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
12368 ## There is no encapsulation within the following macros, do not change
12369 ## the running order or otherwise move them around unless you know exactly
12370 ## what you are doing...
12372 cat > conftest.
$ac_ext <<EOF
12376 Foo (void) { a = 0; }
12382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12383 (eval $ac_compile) 2>&5
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 (exit $ac_status); }; then
12387 # Parse the compiler output and extract the necessary
12388 # objects, libraries and library flags.
12390 # Sentinel used to keep track of whether or not we are before
12391 # the conftest object file.
12392 pre_test_object_deps_done
=no
12394 # The `*' in the case matches for architectures that use `case' in
12395 # $output_verbose_cmd can trigger glob expansion during the loop
12396 # eval without this substitution.
12397 output_verbose_link_cmd
=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12399 for p
in `eval $output_verbose_link_cmd`; do
12403 # Some compilers place space between "-{L,R}" and the path.
12404 # Remove the space.
12405 if test $p = "-L" \
12406 ||
test $p = "-R"; then
12413 if test "$pre_test_object_deps_done" = no
; then
12416 # Internal compiler library paths should come after those
12417 # provided the user. The postdeps already come after the
12418 # user supplied libs so there is no need to process them.
12419 if test -z "$compiler_lib_search_path_CXX"; then
12420 compiler_lib_search_path_CXX
="${prev}${p}"
12422 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
12425 # The "-l" case would never come before the object being
12426 # linked, so don't bother handling this case.
12429 if test -z "$postdeps_CXX"; then
12430 postdeps_CXX
="${prev}${p}"
12432 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
12438 # This assumes that the test object file only shows up
12439 # once in the compiler output.
12440 if test "$p" = "conftest.$objext"; then
12441 pre_test_object_deps_done
=yes
12445 if test "$pre_test_object_deps_done" = no
; then
12446 if test -z "$predep_objects_CXX"; then
12447 predep_objects_CXX
="$p"
12449 predep_objects_CXX
="$predep_objects_CXX $p"
12452 if test -z "$postdep_objects_CXX"; then
12453 postdep_objects_CXX
="$p"
12455 postdep_objects_CXX
="$postdep_objects_CXX $p"
12460 *) ;; # Ignore the rest.
12468 echo "libtool.m4: error: problem compiling CXX test program"
12471 $rm -f confest.
$objext
12473 # PORTME: override above test on systems where it is broken
12476 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12477 # hack all around it, let's just trust "g++" to DTRT.
12478 predep_objects_CXX
=
12479 postdep_objects_CXX
=
12484 case `$CC -V 2>&1 | sed 5q` in
12488 # The more standards-conforming stlport4 library is
12489 # incompatible with the Cstd library. Avoid specifying
12490 # it if it's in CXXFLAGS. Ignore libCrun as
12491 # -library=stlport4 depends on it.
12492 case " $CXX $CXXFLAGS " in
12493 *" -library=stlport4 "*)
12494 solaris_use_stlport4
=yes
12497 if test "$solaris_use_stlport4" != yes; then
12498 postdeps_CXX
='-library=Cstd -library=Crun'
12505 case $cc_basename in
12507 # The more standards-conforming stlport4 library is
12508 # incompatible with the Cstd library. Avoid specifying
12509 # it if it's in CXXFLAGS. Ignore libCrun as
12510 # -library=stlport4 depends on it.
12511 case " $CXX $CXXFLAGS " in
12512 *" -library=stlport4 "*)
12513 solaris_use_stlport4
=yes
12517 # Adding this requires a known-good setup of shared libraries for
12518 # Sun compiler versions before 5.6, else PIC objects from an old
12519 # archive will be linked into the output, leading to subtle bugs.
12520 if test "$solaris_use_stlport4" != yes; then
12521 postdeps_CXX
='-library=Cstd -library=Crun'
12529 case " $postdeps_CXX " in
12530 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
12533 lt_prog_compiler_wl_CXX
=
12534 lt_prog_compiler_pic_CXX
=
12535 lt_prog_compiler_static_CXX
=
12537 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12538 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12540 # C++ specific cases for pic, static, wl, etc.
12541 if test "$GXX" = yes; then
12542 lt_prog_compiler_wl_CXX
='-Wl,'
12543 lt_prog_compiler_static_CXX
='-static'
12547 # All AIX code is PIC.
12548 if test "$host_cpu" = ia64
; then
12549 # AIX 5 now supports IA64 processor
12550 lt_prog_compiler_static_CXX
='-Bstatic'
12554 # FIXME: we need at least 68020 code to build shared libraries, but
12555 # adding the `-m68020' flag to GCC prevents building anything better,
12557 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
12559 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
12560 # PIC is the default for these OSes.
12562 mingw
* | cygwin
* | os2
* | pw32
*)
12563 # This hack is so that the source file can tell whether it is being
12564 # built for inclusion in a dll (and should export symbols for example).
12565 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12566 # (--disable-auto-import) libraries
12567 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
12569 darwin
* | rhapsody
*)
12570 # PIC is the default on this platform
12571 # Common symbols not allowed in MH_DYLIB files
12572 lt_prog_compiler_pic_CXX
='-fno-common'
12575 # DJGPP does not support shared libraries at all
12576 lt_prog_compiler_pic_CXX
=
12579 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12580 # Instead, we relocate shared libraries at runtime.
12583 if test -d /usr
/nec
; then
12584 lt_prog_compiler_pic_CXX
=-Kconform_pic
12588 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12589 # not for PA HP-UX.
12594 lt_prog_compiler_pic_CXX
='-fPIC'
12599 lt_prog_compiler_pic_CXX
='-fPIC'
12605 # All AIX code is PIC.
12606 if test "$host_cpu" = ia64
; then
12607 # AIX 5 now supports IA64 processor
12608 lt_prog_compiler_static_CXX
='-Bstatic'
12610 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
12614 case $cc_basename in
12616 # Green Hills C++ Compiler
12617 # _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"
12622 # PIC is the default on this platform
12623 # Common symbols not allowed in MH_DYLIB files
12624 case $cc_basename in
12626 lt_prog_compiler_pic_CXX
='-qnocommon'
12627 lt_prog_compiler_wl_CXX
='-Wl,'
12632 case $cc_basename in
12634 lt_prog_compiler_pic_CXX
='-KPIC'
12637 # Green Hills C++ Compiler
12638 lt_prog_compiler_pic_CXX
='-pic'
12644 freebsd
* | dragonfly
*)
12645 # FreeBSD uses GNU C++
12647 hpux9
* | hpux10
* | hpux11
*)
12648 case $cc_basename in
12650 lt_prog_compiler_wl_CXX
='-Wl,'
12651 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
12652 if test "$host_cpu" != ia64
; then
12653 lt_prog_compiler_pic_CXX
='+Z'
12657 lt_prog_compiler_wl_CXX
='-Wl,'
12658 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
12664 lt_prog_compiler_pic_CXX
='+Z'
12673 # This is c89, which is MS Visual C++ (no shared libs)
12674 # Anyone wants to do a port?
12676 irix5
* | irix6
* | nonstopux
*)
12677 case $cc_basename in
12679 lt_prog_compiler_wl_CXX
='-Wl,'
12680 lt_prog_compiler_static_CXX
='-non_shared'
12681 # CC pic flag -KPIC is the default.
12687 linux
* | k
*bsd
*-gnu)
12688 case $cc_basename in
12691 lt_prog_compiler_wl_CXX
='--backend -Wl,'
12692 lt_prog_compiler_pic_CXX
='-fPIC'
12696 lt_prog_compiler_wl_CXX
='-Wl,'
12697 lt_prog_compiler_pic_CXX
='-KPIC'
12698 lt_prog_compiler_static_CXX
='-static'
12701 # Portland Group C++ compiler.
12702 lt_prog_compiler_wl_CXX
='-Wl,'
12703 lt_prog_compiler_pic_CXX
='-fpic'
12704 lt_prog_compiler_static_CXX
='-Bstatic'
12708 # Make sure the PIC flag is empty. It appears that all Alpha
12709 # Linux and Compaq Tru64 Unix objects are PIC.
12710 lt_prog_compiler_pic_CXX
=
12711 lt_prog_compiler_static_CXX
='-non_shared'
12714 case `$CC -V 2>&1 | sed 5q` in
12717 lt_prog_compiler_pic_CXX
='-KPIC'
12718 lt_prog_compiler_static_CXX
='-Bstatic'
12719 lt_prog_compiler_wl_CXX
='-Qoption ld '
12730 case $cc_basename in
12732 lt_prog_compiler_pic_CXX
='-W c,exportall'
12738 netbsd
* | netbsdelf
*-gnu)
12740 osf3
* | osf4
* | osf5
*)
12741 case $cc_basename in
12743 lt_prog_compiler_wl_CXX
='--backend -Wl,'
12746 # Rational C++ 2.4.1
12747 lt_prog_compiler_pic_CXX
='-pic'
12750 # Digital/Compaq C++
12751 lt_prog_compiler_wl_CXX
='-Wl,'
12752 # Make sure the PIC flag is empty. It appears that all Alpha
12753 # Linux and Compaq Tru64 Unix objects are PIC.
12754 lt_prog_compiler_pic_CXX
=
12755 lt_prog_compiler_static_CXX
='-non_shared'
12764 case $cc_basename in
12766 # Sun C++ 4.2, 5.x and Centerline C++
12767 lt_prog_compiler_pic_CXX
='-KPIC'
12768 lt_prog_compiler_static_CXX
='-Bstatic'
12769 lt_prog_compiler_wl_CXX
='-Qoption ld '
12772 # Green Hills C++ Compiler
12773 lt_prog_compiler_pic_CXX
='-PIC'
12780 case $cc_basename in
12783 lt_prog_compiler_pic_CXX
='-pic'
12784 lt_prog_compiler_static_CXX
='-Bstatic'
12788 lt_prog_compiler_pic_CXX
='-pic'
12795 case $cc_basename in
12797 # NonStop-UX NCC 3.20
12798 lt_prog_compiler_pic_CXX
='-KPIC'
12804 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
12805 case $cc_basename in
12807 lt_prog_compiler_wl_CXX
='-Wl,'
12808 lt_prog_compiler_pic_CXX
='-KPIC'
12809 lt_prog_compiler_static_CXX
='-Bstatic'
12816 lt_prog_compiler_can_build_shared_CXX
=no
12821 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12822 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12825 # Check to make sure the PIC flag actually works.
12827 if test -n "$lt_prog_compiler_pic_CXX"; then
12829 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12830 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12831 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12832 echo $ECHO_N "(cached) $ECHO_C" >&6
12834 lt_prog_compiler_pic_works_CXX
=no
12835 ac_outfile
=conftest.
$ac_objext
12836 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12837 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
12838 # Insert the option either (1) after the last *FLAGS variable, or
12839 # (2) before a word containing "conftest.", or (3) at the end.
12840 # Note that $ac_compile itself does not contain backslashes and begins
12841 # with a dollar sign (not a hyphen), so the echo should work correctly.
12842 # The option is referenced via a variable to avoid confusing sed.
12843 lt_compile
=`echo "$ac_compile" | $SED \
12844 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12845 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12846 -e 's:$: $lt_compiler_flag:'`
12847 (eval echo "\"\$as_me:12847: $lt_compile\"" >&5)
12848 (eval "$lt_compile" 2>conftest.err
)
12850 cat conftest.err
>&5
12851 echo "$as_me:12851: \$? = $ac_status" >&5
12852 if (exit $ac_status) && test -s "$ac_outfile"; then
12853 # The compiler can only warn and ignore the option if not recognized
12854 # So say no if there are warnings other than the usual output.
12855 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
12856 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12857 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12858 lt_prog_compiler_pic_works_CXX
=yes
12864 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12865 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12867 if test x
"$lt_prog_compiler_pic_works_CXX" = xyes
; then
12868 case $lt_prog_compiler_pic_CXX in
12870 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
12873 lt_prog_compiler_pic_CXX
=
12874 lt_prog_compiler_can_build_shared_CXX
=no
12879 # For platforms which do not support PIC, -DPIC is meaningless:
12881 lt_prog_compiler_pic_CXX
=
12884 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
12889 # Check to make sure the static flag actually works.
12891 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
12892 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12893 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12894 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12895 echo $ECHO_N "(cached) $ECHO_C" >&6
12897 lt_prog_compiler_static_works_CXX
=no
12898 save_LDFLAGS
="$LDFLAGS"
12899 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
12900 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
12901 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
12902 # The linker can only warn and ignore the option if not recognized
12903 # So say no if there are warnings
12904 if test -s conftest.err
; then
12905 # Append any errors to the config.log.
12906 cat conftest.err
1>&5
12907 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
12908 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12909 if diff conftest.exp conftest.er2
>/dev
/null
; then
12910 lt_prog_compiler_static_works_CXX
=yes
12913 lt_prog_compiler_static_works_CXX
=yes
12917 LDFLAGS
="$save_LDFLAGS"
12920 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12921 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12923 if test x
"$lt_prog_compiler_static_works_CXX" = xyes
; then
12926 lt_prog_compiler_static_CXX
=
12930 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12931 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12932 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12933 echo $ECHO_N "(cached) $ECHO_C" >&6
12935 lt_cv_prog_compiler_c_o_CXX
=no
12936 $rm -r conftest
2>/dev
/null
12940 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12942 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12943 # Insert the option either (1) after the last *FLAGS variable, or
12944 # (2) before a word containing "conftest.", or (3) at the end.
12945 # Note that $ac_compile itself does not contain backslashes and begins
12946 # with a dollar sign (not a hyphen), so the echo should work correctly.
12947 lt_compile
=`echo "$ac_compile" | $SED \
12948 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12949 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12950 -e 's:$: $lt_compiler_flag:'`
12951 (eval echo "\"\$as_me:12951: $lt_compile\"" >&5)
12952 (eval "$lt_compile" 2>out
/conftest.err
)
12954 cat out
/conftest.err
>&5
12955 echo "$as_me:12955: \$? = $ac_status" >&5
12956 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12958 # The compiler can only warn and ignore the option if not recognized
12959 # So say no if there are warnings
12960 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
12961 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12962 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12963 lt_cv_prog_compiler_c_o_CXX
=yes
12968 # SGI C++ compiler will create directory out/ii_files/ for
12969 # template instantiation
12970 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
12971 $rm out
/* && rmdir out
12977 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12978 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12981 hard_links
="nottested"
12982 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
12983 # do not overwrite the value of need_locks provided by the user
12984 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12985 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12988 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12990 ln conftest.a conftest.b
2>&5 || hard_links
=no
12991 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12992 { echo "$as_me:$LINENO: result: $hard_links" >&5
12993 echo "${ECHO_T}$hard_links" >&6; }
12994 if test "$hard_links" = no
; then
12995 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12996 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13003 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13004 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13006 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13009 # If we're using GNU nm, then we don't want the "-C" option.
13010 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13011 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
13012 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'
13014 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'
13018 export_symbols_cmds_CXX
="$ltdll_cmds"
13021 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'
13023 linux
* | k
*bsd
*-gnu)
13024 link_all_deplibs_CXX
=no
13027 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13031 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13032 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13033 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
13036 # Do we need to explicitly link libc?
13038 case "x$archive_cmds_need_lc_CXX" in
13040 # Assume -lc should be added
13041 archive_cmds_need_lc_CXX
=yes
13043 if test "$enable_shared" = yes && test "$GCC" = yes; then
13044 case $archive_cmds_CXX in
13046 # FIXME: we may have to deal with multi-command sequences.
13049 # Test whether the compiler implicitly links with -lc since on some
13050 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13051 # to ld, don't add -lc before -lgcc.
13052 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13053 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13055 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13058 (eval $ac_compile) 2>&5
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); } 2>conftest.err
; then
13064 libobjs
=conftest.
$ac_objext
13066 wl
=$lt_prog_compiler_wl_CXX
13067 pic_flag
=$lt_prog_compiler_pic_CXX
13073 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
13074 allow_undefined_flag_CXX
=
13075 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13076 (eval $archive_cmds_CXX 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
13078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); }
13081 archive_cmds_need_lc_CXX
=no
13083 archive_cmds_need_lc_CXX
=yes
13085 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
13087 cat conftest.err
1>&5
13090 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13091 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13098 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13099 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13100 library_names_spec
=
13101 libname_spec
='lib$name'
13105 postuninstall_cmds
=
13109 shlibpath_overrides_runpath
=unknown
13111 dynamic_linker
="$host_os ld.so"
13112 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
13114 need_lib_prefix
=unknown
13115 hardcode_into_libs
=no
13117 # when you set need_version to no, make sure it does not cause -set_version
13118 # flags to be left without arguments
13119 need_version
=unknown
13124 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
13125 shlibpath_var
=LIBPATH
13127 # AIX 3 has no versioning support, so we append a major version to the name.
13128 soname_spec
='${libname}${release}${shared_ext}$major'
13135 hardcode_into_libs
=yes
13136 if test "$host_cpu" = ia64
; then
13137 # AIX 5 supports IA64
13138 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13139 shlibpath_var
=LD_LIBRARY_PATH
13141 # With GCC up to 2.95.x, collect2 would create an import file
13142 # for dependence libraries. The import file would start with
13143 # the line `#! .'. This would cause the generated library to
13144 # depend on `.', always an invalid library. This was fixed in
13145 # development snapshots of GCC prior to 3.0.
13147 aix4 | aix4.
[01] | aix4.
[01].
*)
13148 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13150 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
13153 can_build_shared
=no
13157 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13158 # soname into executable. Probably we can add versioning support to
13159 # collect2, so additional links can be useful in future.
13160 if test "$aix_use_runtimelinking" = yes; then
13161 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13162 # instead of lib<name>.a to let people know that these are not
13163 # typical AIX shared libraries.
13164 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13166 # We preserve .a as extension for shared libraries through AIX4.2
13167 # and later when we are not doing run time linking.
13168 library_names_spec
='${libname}${release}.a $libname.a'
13169 soname_spec
='${libname}${release}${shared_ext}$major'
13171 shlibpath_var
=LIBPATH
13176 library_names_spec
='$libname.ixlibrary $libname.a'
13177 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13178 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'
13182 library_names_spec
='${libname}${shared_ext}'
13183 dynamic_linker
="$host_os ld.so"
13184 shlibpath_var
=LIBRARY_PATH
13190 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13191 soname_spec
='${libname}${release}${shared_ext}$major'
13192 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
13193 shlibpath_var
=LD_LIBRARY_PATH
13194 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13195 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
13196 # the default ld.so.conf also contains /usr/contrib/lib and
13197 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13198 # libtool to hard-code these into programs
13201 cygwin
* | mingw
* | pw32
*)
13202 version_type
=windows
13207 case $GCC,$host_os in
13208 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
13209 library_names_spec
='$libname.dll.a'
13210 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13211 postinstall_cmds
='base_file=`basename \${file}`~
13212 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13213 dldir=$destdir/`dirname \$dlpath`~
13214 test -d \$dldir || mkdir -p \$dldir~
13215 $install_prog $dir/$dlname \$dldir/$dlname~
13216 chmod a+x \$dldir/$dlname'
13217 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13218 dlpath=$dir/\$dldll~
13220 shlibpath_overrides_runpath
=yes
13224 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13225 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13226 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
13229 # MinGW DLLs use traditional 'lib' prefix
13230 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13231 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13232 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
13233 # It is most probably a Windows format PATH printed by
13234 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13235 # path with ; separators, and with drive letters. We can handle the
13236 # drive letters (cygwin fileutils understands them), so leave them,
13237 # especially as we might pass files found there to a mingw objdump,
13238 # which wouldn't understand a cygwinified path. Ahh.
13239 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13241 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13245 # pw32 DLLs use 'pw' prefix rather than 'lib'
13246 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13252 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13255 dynamic_linker
='Win32 ld.exe'
13256 # FIXME: first we should search . and the directory the executable is in
13260 darwin
* | rhapsody
*)
13261 dynamic_linker
="$host_os dyld"
13262 version_type
=darwin
13265 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13266 soname_spec
='${libname}${release}${major}$shared_ext'
13267 shlibpath_overrides_runpath
=yes
13268 shlibpath_var
=DYLD_LIBRARY_PATH
13269 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
13271 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
13278 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13279 soname_spec
='${libname}${release}${shared_ext}$major'
13280 shlibpath_var
=LD_LIBRARY_PATH
13287 freebsd
* | dragonfly
*)
13288 # DragonFly does not have aout. When/if they implement a new
13289 # versioning mechanism, adjust this.
13290 if test -x /usr
/bin
/objformat
; then
13291 objformat
=`/usr/bin/objformat`
13294 freebsd
[123]*) objformat
=aout
;;
13295 *) objformat
=elf
;;
13298 version_type
=freebsd-
$objformat
13299 case $version_type in
13301 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13306 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13310 shlibpath_var
=LD_LIBRARY_PATH
13313 shlibpath_overrides_runpath
=yes
13315 freebsd3.
[01]* | freebsdelf3.
[01]*)
13316 shlibpath_overrides_runpath
=yes
13317 hardcode_into_libs
=yes
13319 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
13320 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
13321 shlibpath_overrides_runpath
=no
13322 hardcode_into_libs
=yes
13324 *) # from 4.6 on, and DragonFly
13325 shlibpath_overrides_runpath
=yes
13326 hardcode_into_libs
=yes
13335 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13336 soname_spec
='${libname}${release}${shared_ext}$major'
13337 shlibpath_var
=LD_LIBRARY_PATH
13338 hardcode_into_libs
=yes
13341 hpux9
* | hpux10
* | hpux11
*)
13342 # Give a soname corresponding to the major version so that dld.sl refuses to
13343 # link against other versions.
13350 hardcode_into_libs
=yes
13351 dynamic_linker
="$host_os dld.so"
13352 shlibpath_var
=LD_LIBRARY_PATH
13353 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
13354 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13355 soname_spec
='${libname}${release}${shared_ext}$major'
13356 if test "X$HPUX_IA64_MODE" = X32
; then
13357 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13359 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
13361 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
13365 hardcode_into_libs
=yes
13366 dynamic_linker
="$host_os dld.sl"
13367 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
13368 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
13369 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13370 soname_spec
='${libname}${release}${shared_ext}$major'
13371 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13372 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
13376 dynamic_linker
="$host_os dld.sl"
13377 shlibpath_var
=SHLIB_PATH
13378 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
13379 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13380 soname_spec
='${libname}${release}${shared_ext}$major'
13383 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13384 postinstall_cmds
='chmod 555 $lib'
13391 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13392 soname_spec
='${libname}${release}${shared_ext}$major'
13393 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
13394 shlibpath_var
=LD_LIBRARY_PATH
13395 shlibpath_overrides_runpath
=no
13396 hardcode_into_libs
=yes
13399 irix5
* | irix6
* | nonstopux
*)
13401 nonstopux
*) version_type
=nonstopux
;;
13403 if test "$lt_cv_prog_gnu_ld" = yes; then
13411 soname_spec
='${libname}${release}${shared_ext}$major'
13412 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13414 irix5
* | nonstopux
*)
13415 libsuff
= shlibsuff
=
13418 case $LD in # libtool.m4 will add one of these switches to LD
13419 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
13420 libsuff
= shlibsuff
= libmagic
=32-bit;;
13421 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
13422 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
13423 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
13424 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
13425 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
13429 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
13430 shlibpath_overrides_runpath
=no
13431 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13432 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
13433 hardcode_into_libs
=yes
13436 # No shared lib support for Linux oldld, aout, or coff.
13437 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
13441 # This must be Linux ELF.
13442 linux
* | k
*bsd
*-gnu)
13446 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13447 soname_spec
='${libname}${release}${shared_ext}$major'
13448 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13449 shlibpath_var
=LD_LIBRARY_PATH
13450 shlibpath_overrides_runpath
=no
13451 # This implies no fast_install, which is unacceptable.
13452 # Some rework will be needed to allow for fast_install
13453 # before this can be enabled.
13454 hardcode_into_libs
=yes
13456 # Append ld.so.conf contents to the search path
13457 if test -f /etc
/ld.so.conf
; then
13458 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' ' '`
13459 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
13462 # We used to test for /lib/ld.so.1 and disable shared libraries on
13463 # powerpc, because MkLinux only supported shared libraries with the
13464 # GNU dynamic linker. Since this was broken with cross compilers,
13465 # most powerpc-linux boxes support dynamic linking these days and
13466 # people can always --disable-shared, the test was removed, and we
13467 # assume the GNU/Linux dynamic linker is in use.
13468 dynamic_linker
='GNU/Linux ld.so'
13475 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13476 soname_spec
='${libname}${release}${shared_ext}$major'
13477 shlibpath_var
=LD_LIBRARY_PATH
13478 shlibpath_overrides_runpath
=no
13479 hardcode_into_libs
=yes
13480 dynamic_linker
='NetBSD ld.elf_so'
13487 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
13488 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13489 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13490 dynamic_linker
='NetBSD (a.out) ld.so'
13492 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13493 soname_spec
='${libname}${release}${shared_ext}$major'
13494 dynamic_linker
='NetBSD ld.elf_so'
13496 shlibpath_var
=LD_LIBRARY_PATH
13497 shlibpath_overrides_runpath
=yes
13498 hardcode_into_libs
=yes
13503 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13504 shlibpath_var
=LD_LIBRARY_PATH
13505 shlibpath_overrides_runpath
=yes
13512 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13513 soname_spec
='${libname}${release}${shared_ext}$major'
13514 shlibpath_var
=LD_LIBRARY_PATH
13515 shlibpath_overrides_runpath
=yes
13520 sys_lib_dlsearch_path_spec
="/usr/lib"
13522 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13524 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
13525 *) need_version
=no
;;
13527 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13528 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13529 shlibpath_var
=LD_LIBRARY_PATH
13530 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13532 openbsd2.
[89] | openbsd2.
[89].
*)
13533 shlibpath_overrides_runpath
=no
13536 shlibpath_overrides_runpath
=yes
13540 shlibpath_overrides_runpath
=yes
13545 libname_spec
='$name'
13548 library_names_spec
='$libname${shared_ext} $libname.a'
13549 dynamic_linker
='OS/2 ld.exe'
13550 shlibpath_var
=LIBPATH
13553 osf3
* | osf4
* | osf5
*)
13557 soname_spec
='${libname}${release}${shared_ext}$major'
13558 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13559 shlibpath_var
=LD_LIBRARY_PATH
13560 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13561 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
13572 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13573 soname_spec
='${libname}${release}${shared_ext}$major'
13574 shlibpath_var
=LD_LIBRARY_PATH
13575 shlibpath_overrides_runpath
=yes
13576 hardcode_into_libs
=yes
13577 # ldd complains unless libraries are executable
13578 postinstall_cmds
='chmod +x $lib'
13583 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13584 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13585 shlibpath_var
=LD_LIBRARY_PATH
13586 shlibpath_overrides_runpath
=yes
13587 if test "$with_gnu_ld" = yes; then
13595 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13596 soname_spec
='${libname}${release}${shared_ext}$major'
13597 shlibpath_var
=LD_LIBRARY_PATH
13598 case $host_vendor in
13600 shlibpath_overrides_runpath
=no
13602 export_dynamic_flag_spec
='${wl}-Blargedynsym'
13603 runpath_var
=LD_RUN_PATH
13611 shlibpath_overrides_runpath
=no
13612 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
13618 if test -d /usr
/nec
;then
13620 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13621 soname_spec
='$libname${shared_ext}.$major'
13622 shlibpath_var
=LD_LIBRARY_PATH
13626 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
13627 version_type
=freebsd-elf
13630 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13631 soname_spec
='${libname}${release}${shared_ext}$major'
13632 shlibpath_var
=LD_LIBRARY_PATH
13633 hardcode_into_libs
=yes
13634 if test "$with_gnu_ld" = yes; then
13635 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13636 shlibpath_overrides_runpath
=no
13638 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
13639 shlibpath_overrides_runpath
=yes
13642 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
13646 sys_lib_dlsearch_path_spec
='/usr/lib'
13651 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13652 soname_spec
='${libname}${release}${shared_ext}$major'
13653 shlibpath_var
=LD_LIBRARY_PATH
13660 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13661 echo "${ECHO_T}$dynamic_linker" >&6; }
13662 test "$dynamic_linker" = no
&& can_build_shared
=no
13664 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
13665 if test "$GCC" = yes; then
13666 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13669 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13670 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13671 hardcode_action_CXX
=
13672 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13673 test -n "$runpath_var_CXX" || \
13674 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13676 # We can hardcode non-existant directories.
13677 if test "$hardcode_direct_CXX" != no
&&
13678 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13679 # have to relink, otherwise we might link with an installed library
13680 # when we should be linking with a yet-to-be-installed one
13681 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13682 test "$hardcode_minus_L_CXX" != no
; then
13683 # Linking always hardcodes the temporary library directory.
13684 hardcode_action_CXX
=relink
13686 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13687 hardcode_action_CXX
=immediate
13690 # We cannot hardcode anything, or else we can only hardcode existing
13692 hardcode_action_CXX
=unsupported
13694 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13695 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13697 if test "$hardcode_action_CXX" = relink
; then
13698 # Fast installation is not supported
13699 enable_fast_install
=no
13700 elif test "$shlibpath_overrides_runpath" = yes ||
13701 test "$enable_shared" = no
; then
13702 # Fast installation is not necessary
13703 enable_fast_install
=needless
13707 # The else clause should only fire when bootstrapping the
13708 # libtool distribution, otherwise you forgot to ship ltmain.sh
13709 # with your package, and you will get complaints that there are
13710 # no rules to generate ltmain.sh.
13711 if test -f "$ltmain"; then
13712 # See if we are running on zsh, and set the options which allow our commands through
13713 # without removal of \ escapes.
13714 if test -n "${ZSH_VERSION+set}" ; then
13715 setopt NO_GLOB_SUBST
13717 # Now quote all the things that may contain metacharacters while being
13718 # careful not to overquote the AC_SUBSTed values. We take copies of the
13719 # variables and quote the copies for generation of the libtool script.
13720 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13722 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13723 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13724 deplibs_check_method reload_flag reload_cmds need_locks \
13725 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13726 lt_cv_sys_global_symbol_to_c_name_address \
13727 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13728 old_postinstall_cmds old_postuninstall_cmds \
13732 lt_prog_compiler_wl_CXX \
13733 lt_prog_compiler_pic_CXX \
13734 lt_prog_compiler_static_CXX \
13735 lt_prog_compiler_no_builtin_flag_CXX \
13736 export_dynamic_flag_spec_CXX \
13737 thread_safe_flag_spec_CXX \
13738 whole_archive_flag_spec_CXX \
13739 enable_shared_with_static_runtimes_CXX \
13740 old_archive_cmds_CXX \
13741 old_archive_from_new_cmds_CXX \
13742 predep_objects_CXX \
13743 postdep_objects_CXX \
13746 compiler_lib_search_path_CXX \
13748 archive_expsym_cmds_CXX \
13749 postinstall_cmds_CXX \
13750 postuninstall_cmds_CXX \
13751 old_archive_from_expsyms_cmds_CXX \
13752 allow_undefined_flag_CXX \
13753 no_undefined_flag_CXX \
13754 export_symbols_cmds_CXX \
13755 hardcode_libdir_flag_spec_CXX \
13756 hardcode_libdir_flag_spec_ld_CXX \
13757 hardcode_libdir_separator_CXX \
13758 hardcode_automatic_CXX \
13760 module_expsym_cmds_CXX \
13761 lt_cv_prog_compiler_c_o_CXX \
13762 fix_srcfile_path_CXX \
13763 exclude_expsyms_CXX \
13764 include_expsyms_CXX
; do
13767 old_archive_cmds_CXX | \
13768 old_archive_from_new_cmds_CXX | \
13769 archive_cmds_CXX | \
13770 archive_expsym_cmds_CXX | \
13771 module_cmds_CXX | \
13772 module_expsym_cmds_CXX | \
13773 old_archive_from_expsyms_cmds_CXX | \
13774 export_symbols_cmds_CXX | \
13775 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13776 postinstall_cmds | postuninstall_cmds | \
13777 old_postinstall_cmds | old_postuninstall_cmds | \
13778 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
13779 # Double-quote double-evaled strings.
13780 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13783 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13789 *'\$0 --fallback-echo"')
13790 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13796 cat <<__EOF__ >> "$cfgfile"
13797 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13799 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13801 # Shell to use when invoking shell scripts.
13804 # Whether or not to build shared libraries.
13805 build_libtool_libs=$enable_shared
13807 # Whether or not to build static libraries.
13808 build_old_libs=$enable_static
13810 # Whether or not to add -lc for building shared libraries.
13811 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13813 # Whether or not to disallow shared libs when runtime libs are static
13814 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13816 # Whether or not to optimize for fast installation.
13817 fast_install=$enable_fast_install
13820 host_alias=$host_alias
13824 # The build system.
13825 build_alias=$build_alias
13829 # An echo program that does not interpret backslashes.
13834 AR_FLAGS=$lt_AR_FLAGS
13839 # LTCC compiler flags.
13840 LTCFLAGS=$lt_LTCFLAGS
13842 # A language-specific compiler.
13843 CC=$lt_compiler_CXX
13845 # Is the compiler the GNU C compiler?
13851 # The linker used to build libraries.
13854 # Whether we need hard or soft links.
13857 # A BSD-compatible nm program.
13860 # A symbol stripping program
13863 # Used to examine libraries when file_magic_cmd begins "file"
13864 MAGIC_CMD=$MAGIC_CMD
13866 # Used on cygwin: DLL creation program.
13869 # Used on cygwin: object dumper.
13872 # Used on cygwin: assembler.
13875 # The name of the directory that contains temporary libtool files.
13878 # How to create reloadable object files.
13879 reload_flag=$lt_reload_flag
13880 reload_cmds=$lt_reload_cmds
13882 # How to pass a linker flag through the compiler.
13883 wl=$lt_lt_prog_compiler_wl_CXX
13885 # Object file suffix (normally "o").
13886 objext="$ac_objext"
13888 # Old archive suffix (normally "a").
13891 # Shared library suffix (normally ".so").
13892 shrext_cmds='$shrext_cmds'
13894 # Executable file suffix (normally "").
13897 # Additional compiler flags for building library objects.
13898 pic_flag=$lt_lt_prog_compiler_pic_CXX
13901 # What is the maximum length of a command?
13902 max_cmd_len=$lt_cv_sys_max_cmd_len
13904 # Does compiler simultaneously support -c and -o options?
13905 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13907 # Must we lock files when doing compilation?
13908 need_locks=$lt_need_locks
13910 # Do we need the lib prefix for modules?
13911 need_lib_prefix=$need_lib_prefix
13913 # Do we need a version for libraries?
13914 need_version=$need_version
13916 # Whether dlopen is supported.
13917 dlopen_support=$enable_dlopen
13919 # Whether dlopen of programs is supported.
13920 dlopen_self=$enable_dlopen_self
13922 # Whether dlopen of statically linked programs is supported.
13923 dlopen_self_static=$enable_dlopen_self_static
13925 # Compiler flag to prevent dynamic linking.
13926 link_static_flag=$lt_lt_prog_compiler_static_CXX
13928 # Compiler flag to turn off builtin functions.
13929 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13931 # Compiler flag to allow reflexive dlopens.
13932 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13934 # Compiler flag to generate shared objects directly from archives.
13935 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13937 # Compiler flag to generate thread-safe objects.
13938 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13940 # Library versioning type.
13941 version_type=$version_type
13943 # Format of library name prefix.
13944 libname_spec=$lt_libname_spec
13946 # List of archive names. First name is the real one, the rest are links.
13947 # The last name is the one that the linker finds with -lNAME.
13948 library_names_spec=$lt_library_names_spec
13950 # The coded name of the library, if different from the real name.
13951 soname_spec=$lt_soname_spec
13953 # Commands used to build and install an old-style archive.
13955 old_archive_cmds=$lt_old_archive_cmds_CXX
13956 old_postinstall_cmds=$lt_old_postinstall_cmds
13957 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13959 # Create an old-style archive from a shared archive.
13960 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13962 # Create a temporary old-style archive to link instead of a shared archive.
13963 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13965 # Commands used to build and install a shared archive.
13966 archive_cmds=$lt_archive_cmds_CXX
13967 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13968 postinstall_cmds=$lt_postinstall_cmds
13969 postuninstall_cmds=$lt_postuninstall_cmds
13971 # Commands used to build a loadable module (assumed same as above if empty)
13972 module_cmds=$lt_module_cmds_CXX
13973 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13975 # Commands to strip libraries.
13976 old_striplib=$lt_old_striplib
13977 striplib=$lt_striplib
13979 # Dependencies to place before the objects being linked to create a
13981 predep_objects=$lt_predep_objects_CXX
13983 # Dependencies to place after the objects being linked to create a
13985 postdep_objects=$lt_postdep_objects_CXX
13987 # Dependencies to place before the objects being linked to create a
13989 predeps=$lt_predeps_CXX
13991 # Dependencies to place after the objects being linked to create a
13993 postdeps=$lt_postdeps_CXX
13995 # The library search path used internally by the compiler when linking
13996 # a shared library.
13997 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13999 # Method to check whether dependent libraries are shared objects.
14000 deplibs_check_method=$lt_deplibs_check_method
14002 # Command to use when deplibs_check_method == file_magic.
14003 file_magic_cmd=$lt_file_magic_cmd
14005 # Flag that allows shared libraries with undefined symbols to be built.
14006 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14008 # Flag that forces no undefined symbols.
14009 no_undefined_flag=$lt_no_undefined_flag_CXX
14011 # Commands used to finish a libtool library installation in a directory.
14012 finish_cmds=$lt_finish_cmds
14014 # Same as above, but a single script fragment to be evaled but not shown.
14015 finish_eval=$lt_finish_eval
14017 # Take the output of nm and produce a listing of raw symbols and C names.
14018 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14020 # Transform the output of nm in a proper C declaration
14021 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14023 # Transform the output of nm in a C name address pair
14024 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14026 # This is the shared library runtime path variable.
14027 runpath_var=$runpath_var
14029 # This is the shared library path variable.
14030 shlibpath_var=$shlibpath_var
14032 # Is shlibpath searched before the hard-coded library search path?
14033 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14035 # How to hardcode a shared library path into an executable.
14036 hardcode_action=$hardcode_action_CXX
14038 # Whether we should hardcode library paths into libraries.
14039 hardcode_into_libs=$hardcode_into_libs
14041 # Flag to hardcode \$libdir into a binary during linking.
14042 # This must work even if \$libdir does not exist.
14043 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14045 # If ld is used when linking, flag to hardcode \$libdir into
14046 # a binary during linking. This must work even if \$libdir does
14048 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14050 # Whether we need a single -rpath flag with a separated argument.
14051 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14053 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14054 # resulting binary.
14055 hardcode_direct=$hardcode_direct_CXX
14057 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14058 # resulting binary.
14059 hardcode_minus_L=$hardcode_minus_L_CXX
14061 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14062 # the resulting binary.
14063 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14065 # Set to yes if building a shared library automatically hardcodes DIR into the library
14066 # and all subsequent libraries and executables linked against it.
14067 hardcode_automatic=$hardcode_automatic_CXX
14069 # Variables whose values should be saved in libtool wrapper scripts and
14070 # restored at relink time.
14071 variables_saved_for_relink="$variables_saved_for_relink"
14073 # Whether libtool must link a program against all its dependency libraries.
14074 link_all_deplibs=$link_all_deplibs_CXX
14076 # Compile-time system search path for libraries
14077 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14079 # Run-time system search path for libraries
14080 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14082 # Fix the shell variable \$srcfile for the compiler.
14083 fix_srcfile_path=$lt_fix_srcfile_path
14085 # Set to yes if exported symbols are required.
14086 always_export_symbols=$always_export_symbols_CXX
14088 # The commands to list exported symbols.
14089 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14091 # The commands to extract the exported symbol list from a shared archive.
14092 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14094 # Symbols that should not be listed in the preloaded symbols.
14095 exclude_expsyms=$lt_exclude_expsyms_CXX
14097 # Symbols that must always be exported.
14098 include_expsyms=$lt_include_expsyms_CXX
14100 # ### END LIBTOOL TAG CONFIG: $tagname
14106 # If there is no Makefile yet, we rely on a make rule to execute
14107 # `config.status --recheck' to rerun these tests and create the
14108 # libtool script then.
14109 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14110 if test -f "$ltmain_in"; then
14111 test -f Makefile
&& make "$ltmain"
14117 ac_cpp
='$CPP $CPPFLAGS'
14118 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14119 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14120 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14126 with_gnu_ldcxx
=$with_gnu_ld
14127 with_gnu_ld
=$lt_save_with_gnu_ld
14128 lt_cv_path_LDCXX
=$lt_cv_path_LD
14129 lt_cv_path_LD
=$lt_save_path_LD
14130 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
14131 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
14139 if test -n "$F77" && test "X$F77" != "Xno"; then
14142 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14143 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14144 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
14147 archive_cmds_need_lc_F77
=no
14148 allow_undefined_flag_F77
=
14149 always_export_symbols_F77
=no
14150 archive_expsym_cmds_F77
=
14151 export_dynamic_flag_spec_F77
=
14152 hardcode_direct_F77
=no
14153 hardcode_libdir_flag_spec_F77
=
14154 hardcode_libdir_flag_spec_ld_F77
=
14155 hardcode_libdir_separator_F77
=
14156 hardcode_minus_L_F77
=no
14157 hardcode_automatic_F77
=no
14159 module_expsym_cmds_F77
=
14160 link_all_deplibs_F77
=unknown
14161 old_archive_cmds_F77
=$old_archive_cmds
14162 no_undefined_flag_F77
=
14163 whole_archive_flag_spec_F77
=
14164 enable_shared_with_static_runtimes_F77
=no
14166 # Source file extension for f77 test sources.
14169 # Object file extension for compiled f77 test sources.
14173 # Code to be used in simple compile tests
14174 lt_simple_compile_test_code
="\
14180 # Code to be used in simple link tests
14181 lt_simple_link_test_code
="\
14186 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14188 # If no C compiler was specified, use CC.
14191 # If no C compiler flags were specified, use CFLAGS.
14192 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
14194 # Allow CC to be a program name with arguments.
14198 # save warnings/boilerplate of simple test code
14199 ac_outfile
=conftest.
$ac_objext
14200 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
14201 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
14202 _lt_compiler_boilerplate
=`cat conftest.err`
14205 ac_outfile
=conftest.
$ac_objext
14206 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
14207 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
14208 _lt_linker_boilerplate
=`cat conftest.err`
14212 # Allow CC to be a program name with arguments.
14217 for cc_temp
in $compiler""; do
14219 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
14220 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
14225 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14228 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14229 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14230 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14231 echo "${ECHO_T}$can_build_shared" >&6; }
14233 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14234 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14235 test "$can_build_shared" = "no" && enable_shared
=no
14237 # On AIX, shared libraries and static libraries use the same namespace, and
14238 # are all built from PIC.
14241 test "$enable_shared" = yes && enable_static
=no
14242 if test -n "$RANLIB"; then
14243 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
14244 postinstall_cmds
='$RANLIB $lib'
14248 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
14249 test "$enable_shared" = yes && enable_static
=no
14253 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14254 echo "${ECHO_T}$enable_shared" >&6; }
14256 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14257 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14258 # Make sure either enable_shared or enable_static is yes.
14259 test "$enable_shared" = yes || enable_static
=yes
14260 { echo "$as_me:$LINENO: result: $enable_static" >&5
14261 echo "${ECHO_T}$enable_static" >&6; }
14266 lt_prog_compiler_wl_F77
=
14267 lt_prog_compiler_pic_F77
=
14268 lt_prog_compiler_static_F77
=
14270 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14271 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14273 if test "$GCC" = yes; then
14274 lt_prog_compiler_wl_F77
='-Wl,'
14275 lt_prog_compiler_static_F77
='-static'
14279 # All AIX code is PIC.
14280 if test "$host_cpu" = ia64
; then
14281 # AIX 5 now supports IA64 processor
14282 lt_prog_compiler_static_F77
='-Bstatic'
14287 # FIXME: we need at least 68020 code to build shared libraries, but
14288 # adding the `-m68020' flag to GCC prevents building anything better,
14290 lt_prog_compiler_pic_F77
='-m68020 -resident32 -malways-restore-a4'
14293 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
14294 # PIC is the default for these OSes.
14297 mingw
* | cygwin
* | pw32
* | os2
*)
14298 # This hack is so that the source file can tell whether it is being
14299 # built for inclusion in a dll (and should export symbols for example).
14300 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14301 # (--disable-auto-import) libraries
14302 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
14305 darwin
* | rhapsody
*)
14306 # PIC is the default on this platform
14307 # Common symbols not allowed in MH_DYLIB files
14308 lt_prog_compiler_pic_F77
='-fno-common'
14312 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14313 # Instead, we relocate shared libraries at runtime.
14317 # Just because we use GCC doesn't mean we suddenly get shared libraries
14318 # on systems that don't support them.
14319 lt_prog_compiler_can_build_shared_F77
=no
14324 if test -d /usr
/nec
; then
14325 lt_prog_compiler_pic_F77
=-Kconform_pic
14330 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14331 # not for PA HP-UX.
14337 lt_prog_compiler_pic_F77
='-fPIC'
14343 lt_prog_compiler_pic_F77
='-fPIC'
14347 # PORTME Check for flag to pass linker flags through the system compiler.
14350 lt_prog_compiler_wl_F77
='-Wl,'
14351 if test "$host_cpu" = ia64
; then
14352 # AIX 5 now supports IA64 processor
14353 lt_prog_compiler_static_F77
='-Bstatic'
14355 lt_prog_compiler_static_F77
='-bnso -bI:/lib/syscalls.exp'
14359 # PIC is the default on this platform
14360 # Common symbols not allowed in MH_DYLIB files
14361 case $cc_basename in
14363 lt_prog_compiler_pic_F77
='-qnocommon'
14364 lt_prog_compiler_wl_F77
='-Wl,'
14369 mingw
* | cygwin
* | pw32
* | os2
*)
14370 # This hack is so that the source file can tell whether it is being
14371 # built for inclusion in a dll (and should export symbols for example).
14372 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
14375 hpux9
* | hpux10
* | hpux11
*)
14376 lt_prog_compiler_wl_F77
='-Wl,'
14377 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14378 # not for PA HP-UX.
14384 lt_prog_compiler_pic_F77
='+Z'
14387 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14388 lt_prog_compiler_static_F77
='${wl}-a ${wl}archive'
14391 irix5
* | irix6
* | nonstopux
*)
14392 lt_prog_compiler_wl_F77
='-Wl,'
14393 # PIC (with -KPIC) is the default.
14394 lt_prog_compiler_static_F77
='-non_shared'
14398 lt_prog_compiler_pic_F77
='-KPIC'
14399 lt_prog_compiler_static_F77
='-Bstatic'
14402 linux
* | k
*bsd
*-gnu)
14403 case $cc_basename in
14405 lt_prog_compiler_wl_F77
='-Wl,'
14406 lt_prog_compiler_pic_F77
='-KPIC'
14407 lt_prog_compiler_static_F77
='-static'
14409 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
14410 # Portland Group compilers (*not* the Pentium gcc compiler,
14411 # which looks to be a dead project)
14412 lt_prog_compiler_wl_F77
='-Wl,'
14413 lt_prog_compiler_pic_F77
='-fpic'
14414 lt_prog_compiler_static_F77
='-Bstatic'
14417 lt_prog_compiler_wl_F77
='-Wl,'
14418 # All Alpha code is PIC.
14419 lt_prog_compiler_static_F77
='-non_shared'
14422 case `$CC -V 2>&1 | sed 5q` in
14425 lt_prog_compiler_pic_F77
='-KPIC'
14426 lt_prog_compiler_static_F77
='-Bstatic'
14427 lt_prog_compiler_wl_F77
='-Wl,'
14430 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14431 lt_prog_compiler_pic_F77
='-KPIC'
14432 lt_prog_compiler_static_F77
='-Bstatic'
14433 lt_prog_compiler_wl_F77
=''
14440 osf3
* | osf4
* | osf5
*)
14441 lt_prog_compiler_wl_F77
='-Wl,'
14442 # All OSF/1 code is PIC.
14443 lt_prog_compiler_static_F77
='-non_shared'
14447 lt_prog_compiler_static_F77
='-non_shared'
14451 lt_prog_compiler_pic_F77
='-KPIC'
14452 lt_prog_compiler_static_F77
='-Bstatic'
14453 case $cc_basename in
14454 f77
* | f90
* | f95
*)
14455 lt_prog_compiler_wl_F77
='-Qoption ld ';;
14457 lt_prog_compiler_wl_F77
='-Wl,';;
14462 lt_prog_compiler_wl_F77
='-Qoption ld '
14463 lt_prog_compiler_pic_F77
='-PIC'
14464 lt_prog_compiler_static_F77
='-Bstatic'
14467 sysv4 | sysv4.2uw2
* | sysv4.3
*)
14468 lt_prog_compiler_wl_F77
='-Wl,'
14469 lt_prog_compiler_pic_F77
='-KPIC'
14470 lt_prog_compiler_static_F77
='-Bstatic'
14474 if test -d /usr
/nec
;then
14475 lt_prog_compiler_pic_F77
='-Kconform_pic'
14476 lt_prog_compiler_static_F77
='-Bstatic'
14480 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
14481 lt_prog_compiler_wl_F77
='-Wl,'
14482 lt_prog_compiler_pic_F77
='-KPIC'
14483 lt_prog_compiler_static_F77
='-Bstatic'
14487 lt_prog_compiler_wl_F77
='-Wl,'
14488 lt_prog_compiler_can_build_shared_F77
=no
14492 lt_prog_compiler_pic_F77
='-pic'
14493 lt_prog_compiler_static_F77
='-Bstatic'
14497 lt_prog_compiler_can_build_shared_F77
=no
14502 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14503 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14506 # Check to make sure the PIC flag actually works.
14508 if test -n "$lt_prog_compiler_pic_F77"; then
14510 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14511 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14512 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14513 echo $ECHO_N "(cached) $ECHO_C" >&6
14515 lt_prog_compiler_pic_works_F77
=no
14516 ac_outfile
=conftest.
$ac_objext
14517 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14518 lt_compiler_flag
="$lt_prog_compiler_pic_F77"
14519 # Insert the option either (1) after the last *FLAGS variable, or
14520 # (2) before a word containing "conftest.", or (3) at the end.
14521 # Note that $ac_compile itself does not contain backslashes and begins
14522 # with a dollar sign (not a hyphen), so the echo should work correctly.
14523 # The option is referenced via a variable to avoid confusing sed.
14524 lt_compile
=`echo "$ac_compile" | $SED \
14525 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14526 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14527 -e 's:$: $lt_compiler_flag:'`
14528 (eval echo "\"\$as_me:14528: $lt_compile\"" >&5)
14529 (eval "$lt_compile" 2>conftest.err
)
14531 cat conftest.err
>&5
14532 echo "$as_me:14532: \$? = $ac_status" >&5
14533 if (exit $ac_status) && test -s "$ac_outfile"; then
14534 # The compiler can only warn and ignore the option if not recognized
14535 # So say no if there are warnings other than the usual output.
14536 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
14537 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
14538 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
14539 lt_prog_compiler_pic_works_F77
=yes
14545 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14546 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14548 if test x
"$lt_prog_compiler_pic_works_F77" = xyes
; then
14549 case $lt_prog_compiler_pic_F77 in
14551 *) lt_prog_compiler_pic_F77
=" $lt_prog_compiler_pic_F77" ;;
14554 lt_prog_compiler_pic_F77
=
14555 lt_prog_compiler_can_build_shared_F77
=no
14560 # For platforms which do not support PIC, -DPIC is meaningless:
14562 lt_prog_compiler_pic_F77
=
14565 lt_prog_compiler_pic_F77
="$lt_prog_compiler_pic_F77"
14570 # Check to make sure the static flag actually works.
14572 wl
=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_F77\"
14573 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14574 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14575 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14576 echo $ECHO_N "(cached) $ECHO_C" >&6
14578 lt_prog_compiler_static_works_F77
=no
14579 save_LDFLAGS
="$LDFLAGS"
14580 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
14581 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
14582 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
14583 # The linker can only warn and ignore the option if not recognized
14584 # So say no if there are warnings
14585 if test -s conftest.err
; then
14586 # Append any errors to the config.log.
14587 cat conftest.err
1>&5
14588 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
14589 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
14590 if diff conftest.exp conftest.er2
>/dev
/null
; then
14591 lt_prog_compiler_static_works_F77
=yes
14594 lt_prog_compiler_static_works_F77
=yes
14598 LDFLAGS
="$save_LDFLAGS"
14601 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14602 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14604 if test x
"$lt_prog_compiler_static_works_F77" = xyes
; then
14607 lt_prog_compiler_static_F77
=
14611 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14612 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14613 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14614 echo $ECHO_N "(cached) $ECHO_C" >&6
14616 lt_cv_prog_compiler_c_o_F77
=no
14617 $rm -r conftest
2>/dev
/null
14621 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14623 lt_compiler_flag
="-o out/conftest2.$ac_objext"
14624 # Insert the option either (1) after the last *FLAGS variable, or
14625 # (2) before a word containing "conftest.", or (3) at the end.
14626 # Note that $ac_compile itself does not contain backslashes and begins
14627 # with a dollar sign (not a hyphen), so the echo should work correctly.
14628 lt_compile
=`echo "$ac_compile" | $SED \
14629 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14630 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14631 -e 's:$: $lt_compiler_flag:'`
14632 (eval echo "\"\$as_me:14632: $lt_compile\"" >&5)
14633 (eval "$lt_compile" 2>out
/conftest.err
)
14635 cat out
/conftest.err
>&5
14636 echo "$as_me:14636: \$? = $ac_status" >&5
14637 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
14639 # The compiler can only warn and ignore the option if not recognized
14640 # So say no if there are warnings
14641 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
14642 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
14643 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
14644 lt_cv_prog_compiler_c_o_F77
=yes
14649 # SGI C++ compiler will create directory out/ii_files/ for
14650 # template instantiation
14651 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
14652 $rm out
/* && rmdir out
14658 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14659 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14662 hard_links
="nottested"
14663 if test "$lt_cv_prog_compiler_c_o_F77" = no
&& test "$need_locks" != no
; then
14664 # do not overwrite the value of need_locks provided by the user
14665 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14666 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14669 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14671 ln conftest.a conftest.b
2>&5 || hard_links
=no
14672 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14673 { echo "$as_me:$LINENO: result: $hard_links" >&5
14674 echo "${ECHO_T}$hard_links" >&6; }
14675 if test "$hard_links" = no
; then
14676 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14677 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14684 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14685 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14688 allow_undefined_flag_F77
=
14689 enable_shared_with_static_runtimes_F77
=no
14691 archive_expsym_cmds_F77
=
14692 old_archive_From_new_cmds_F77
=
14693 old_archive_from_expsyms_cmds_F77
=
14694 export_dynamic_flag_spec_F77
=
14695 whole_archive_flag_spec_F77
=
14696 thread_safe_flag_spec_F77
=
14697 hardcode_libdir_flag_spec_F77
=
14698 hardcode_libdir_flag_spec_ld_F77
=
14699 hardcode_libdir_separator_F77
=
14700 hardcode_direct_F77
=no
14701 hardcode_minus_L_F77
=no
14702 hardcode_shlibpath_var_F77
=unsupported
14703 link_all_deplibs_F77
=unknown
14704 hardcode_automatic_F77
=no
14706 module_expsym_cmds_F77
=
14707 always_export_symbols_F77
=no
14708 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14709 # include_expsyms should be a list of space-separated symbols to be *always*
14710 # included in the symbol list
14711 include_expsyms_F77
=
14712 # exclude_expsyms can be an extended regexp of symbols to exclude
14713 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14714 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14715 # as well as any symbol that contains `d'.
14716 exclude_expsyms_F77
="_GLOBAL_OFFSET_TABLE_"
14717 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14718 # platforms (ab)use it in PIC code, but their linkers get confused if
14719 # the symbol is explicitly referenced. Since portable code cannot
14720 # rely on this symbol name, it's probably fine to never include it in
14721 # preloaded symbol tables.
14722 extract_expsyms_cmds
=
14723 # Just being paranoid about ensuring that cc_basename is set.
14724 for cc_temp
in $compiler""; do
14726 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
14727 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
14732 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14735 cygwin
* | mingw
* | pw32
*)
14736 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14737 # When not using gcc, we currently assume that we are using
14738 # Microsoft Visual C++.
14739 if test "$GCC" != yes; then
14744 # we just hope/assume this is gcc and not c89 (= MSVC++)
14753 if test "$with_gnu_ld" = yes; then
14754 # If archive_cmds runs LD, not CC, wlarc should be empty
14757 # Set some defaults for GNU ld with shared library support. These
14758 # are reset later if shared libraries are not supported. Putting them
14759 # here allows them to be overridden if necessary.
14760 runpath_var
=LD_RUN_PATH
14761 hardcode_libdir_flag_spec_F77
='${wl}--rpath ${wl}$libdir'
14762 export_dynamic_flag_spec_F77
='${wl}--export-dynamic'
14763 # ancient GNU ld didn't support --whole-archive et. al.
14764 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
14765 whole_archive_flag_spec_F77
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14767 whole_archive_flag_spec_F77
=
14769 supports_anon_versioning
=no
14770 case `$LD -v 2>/dev/null` in
14771 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
14772 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
14773 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
14774 *\
2.11.
*) ;; # other 2.11 versions
14775 *) supports_anon_versioning
=yes ;;
14778 # See if GNU ld supports shared libraries.
14780 aix3
* | aix4
* | aix5
*)
14781 # On AIX/PPC, the GNU linker is very broken
14782 if test "$host_cpu" != ia64
; then
14786 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14787 *** to be unable to reliably create shared libraries on AIX.
14788 *** Therefore, libtool is disabling shared libraries support. If you
14789 *** really care for shared libraries, you may want to modify your PATH
14790 *** so that a non-GNU linker is found, and then restart.
14797 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)'
14798 hardcode_libdir_flag_spec_F77
='-L$libdir'
14799 hardcode_minus_L_F77
=yes
14801 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14802 # that the semantics of dynamic libraries on AmigaOS, at least up
14803 # to version 4, is to share data among multiple programs linked
14804 # with the same dynamic library. Since this doesn't match the
14805 # behavior of shared libraries on other platforms, we can't use
14811 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14812 allow_undefined_flag_F77
=unsupported
14813 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14814 # support --undefined. This deserves some investigation. FIXME
14815 archive_cmds_F77
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14821 cygwin
* | mingw
* | pw32
*)
14822 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14823 # as there is no search path for DLLs.
14824 hardcode_libdir_flag_spec_F77
='-L$libdir'
14825 allow_undefined_flag_F77
=unsupported
14826 always_export_symbols_F77
=no
14827 enable_shared_with_static_runtimes_F77
=yes
14828 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14830 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
14831 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14832 # If the export-symbols file already is a .def file (1st line
14833 # is EXPORTS), use it as is; otherwise, prepend...
14834 archive_expsym_cmds_F77
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14835 cp $export_symbols $output_objdir/$soname.def;
14837 echo EXPORTS > $output_objdir/$soname.def;
14838 cat $export_symbols >> $output_objdir/$soname.def;
14840 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14847 hardcode_direct_F77
=no
14848 hardcode_shlibpath_var_F77
=no
14849 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14850 export_dynamic_flag_spec_F77
='${wl}-E'
14851 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14852 # Instead, shared libraries are loaded at an image base (0x10000000 by
14853 # default) and relocated if they conflict, which is a slow very memory
14854 # consuming and fragmenting process. To avoid this, we pick a random,
14855 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14856 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14857 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'
14858 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'
14861 gnu
* | linux
* | k
*bsd
*-gnu)
14862 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14864 case $cc_basename,$host_cpu in
14865 pgcc
*) # Portland Group C compiler
14866 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'
14867 tmp_addflag
=' $pic_flag'
14869 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
14870 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'
14871 tmp_addflag
=' $pic_flag -Mnomain' ;;
14872 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
14873 tmp_addflag
=' -i_dynamic' ;;
14874 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
14875 tmp_addflag
=' -i_dynamic -nofor_main' ;;
14876 ifc
* | ifort
*) # Intel Fortran compiler
14877 tmp_addflag
=' -nofor_main' ;;
14879 case `$CC -V 2>&1 | sed 5q` in
14880 *Sun\ C
*) # Sun C 5.9
14881 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'
14882 tmp_sharedflag
='-G' ;;
14883 *Sun\ F
*) # Sun Fortran 8.3
14884 tmp_sharedflag
='-G' ;;
14886 tmp_sharedflag
='-shared' ;;
14888 archive_cmds_F77
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14890 if test $supports_anon_versioning = yes; then
14891 archive_expsym_cmds_F77
='$echo "{ global:" > $output_objdir/$libname.ver~
14892 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14893 $echo "local: *; };" >> $output_objdir/$libname.ver~
14894 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14896 link_all_deplibs_F77
=no
14902 netbsd
* | netbsdelf
*-gnu)
14903 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14904 archive_cmds_F77
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14907 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14908 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14913 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
14917 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14918 *** create shared libraries on Solaris systems. Therefore, libtool
14919 *** is disabling shared libraries support. We urge you to upgrade GNU
14920 *** binutils to release 2.9.1 or newer. Another option is to modify
14921 *** your PATH or compiler configuration so that the native linker is
14922 *** used, and then restart.
14925 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14926 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14927 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14933 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
14934 case `$LD -v 2>&1` in
14935 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
14939 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14940 *** reliably create shared libraries on SCO systems. Therefore, libtool
14941 *** is disabling shared libraries support. We urge you to upgrade GNU
14942 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14943 *** your PATH or compiler configuration so that the native linker is
14944 *** used, and then restart.
14949 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14950 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14951 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14952 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14961 archive_cmds_F77
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14963 hardcode_direct_F77
=yes
14964 hardcode_shlibpath_var_F77
=no
14968 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14969 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14970 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14977 if test "$ld_shlibs_F77" = no
; then
14979 hardcode_libdir_flag_spec_F77
=
14980 export_dynamic_flag_spec_F77
=
14981 whole_archive_flag_spec_F77
=
14984 # PORTME fill in a description of your system's linker (not GNU ld)
14987 allow_undefined_flag_F77
=unsupported
14988 always_export_symbols_F77
=yes
14989 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'
14990 # Note: this linker hardcodes the directories in LIBPATH if there
14991 # are no directories specified by -L.
14992 hardcode_minus_L_F77
=yes
14993 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14994 # Neither direct hardcoding nor static linking is supported with a
14996 hardcode_direct_F77
=unsupported
15001 if test "$host_cpu" = ia64
; then
15002 # On IA64, the linker does run time linking by default, so we don't
15003 # have to do anything special.
15004 aix_use_runtimelinking
=no
15005 exp_sym_flag
='-Bexport'
15008 # If we're using GNU nm, then we don't want the "-C" option.
15009 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15010 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
15011 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'
15013 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'
15015 aix_use_runtimelinking
=no
15017 # Test if we are trying to use run time linking or normal
15018 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15019 # need to do runtime linking.
15020 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
15021 for ld_flag
in $LDFLAGS; do
15022 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
15023 aix_use_runtimelinking
=yes
15030 exp_sym_flag
='-bexport'
15031 no_entry_flag
='-bnoentry'
15034 # When large executables or shared objects are built, AIX ld can
15035 # have problems creating the table of contents. If linking a library
15036 # or program results in "error TOC overflow" add -mminimal-toc to
15037 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15038 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15040 archive_cmds_F77
=''
15041 hardcode_direct_F77
=yes
15042 hardcode_libdir_separator_F77
=':'
15043 link_all_deplibs_F77
=yes
15045 if test "$GCC" = yes; then
15046 case $host_os in aix4.
[012]|aix4.
[012].
*)
15047 # We only want to do this on AIX 4.2 and lower, the check
15048 # below for broken collect2 doesn't work under 4.3+
15049 collect2name
=`${CC} -print-prog-name=collect2`
15050 if test -f "$collect2name" && \
15051 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
15053 # We have reworked collect2
15056 # We have old collect2
15057 hardcode_direct_F77
=unsupported
15058 # It fails to find uninstalled libraries when the uninstalled
15059 # path is not listed in the libpath. Setting hardcode_minus_L
15060 # to unsupported forces relinking
15061 hardcode_minus_L_F77
=yes
15062 hardcode_libdir_flag_spec_F77
='-L$libdir'
15063 hardcode_libdir_separator_F77
=
15067 shared_flag
='-shared'
15068 if test "$aix_use_runtimelinking" = yes; then
15069 shared_flag
="$shared_flag "'${wl}-G'
15073 if test "$host_cpu" = ia64
; then
15074 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15075 # chokes on -Wl,-G. The following line is correct:
15078 if test "$aix_use_runtimelinking" = yes; then
15079 shared_flag
='${wl}-G'
15081 shared_flag
='${wl}-bM:SRE'
15086 # It seems that -bexpall does not export symbols beginning with
15087 # underscore (_), so it is better to generate a list of symbols to export.
15088 always_export_symbols_F77
=yes
15089 if test "$aix_use_runtimelinking" = yes; then
15090 # Warning - without using the other runtime loading flags (-brtl),
15091 # -berok will link without error, but may produce a broken library.
15092 allow_undefined_flag_F77
='-berok'
15093 # Determine the default libpath from the value encoded in an empty executable.
15094 cat >conftest.
$ac_ext <<_ACEOF
15099 rm -f conftest.
$ac_objext conftest
$ac_exeext
15100 if { (ac_try
="$ac_link"
15101 case "(($ac_try" in
15102 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15103 *) ac_try_echo=$ac_try;;
15105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15106 (eval "$ac_link") 2>conftest.er1
15108 grep -v '^ *+' conftest.er1 >conftest.err
15110 cat conftest.err >&5
15111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112 (exit $ac_status); } && {
15113 test -z "$ac_f77_werror_flag" ||
15114 test ! -s conftest.err
15115 } && test -s conftest$ac_exeext &&
15116 $as_test_x conftest$ac_exeext; then
15118 lt_aix_libpath_sed='
15119 /Import File Strings/,/^$/ {
15125 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
15126 # Check for a 64-bit object if we didn't find anything.
15127 if test -z "$aix_libpath"; then
15128 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
15131 echo "$as_me: failed program was:" >&5
15132 sed 's/^/| /' conftest.$ac_ext >&5
15137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15138 conftest$ac_exeext conftest.$ac_ext
15139 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15141 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15142 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"
15144 if test "$host_cpu" = ia64; then
15145 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15146 allow_undefined_flag_F77="-z nodefs"
15147 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"
15149 # Determine the default libpath from the value encoded in an empty executable.
15150 cat >conftest.$ac_ext <<_ACEOF
15155 rm -f conftest.$ac_objext conftest$ac_exeext
15156 if { (ac_try="$ac_link"
15157 case "(($ac_try" in
15158 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15159 *) ac_try_echo
=$ac_try;;
15161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15162 (eval "$ac_link") 2>conftest.er1
15164 grep -v '^ *+' conftest.er1
>conftest.err
15166 cat conftest.err
>&5
15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168 (exit $ac_status); } && {
15169 test -z "$ac_f77_werror_flag" ||
15170 test ! -s conftest.err
15171 } && test -s conftest
$ac_exeext &&
15172 $as_test_x conftest
$ac_exeext; then
15174 lt_aix_libpath_sed
='
15175 /Import File Strings/,/^$/ {
15181 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15182 # Check for a 64-bit object if we didn't find anything.
15183 if test -z "$aix_libpath"; then
15184 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15187 echo "$as_me: failed program was:" >&5
15188 sed 's/^/| /' conftest.
$ac_ext >&5
15193 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15194 conftest
$ac_exeext conftest.
$ac_ext
15195 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15197 hardcode_libdir_flag_spec_F77
='${wl}-blibpath:$libdir:'"$aix_libpath"
15198 # Warning - without using the other run time loading flags,
15199 # -berok will link without error, but may produce a broken library.
15200 no_undefined_flag_F77
=' ${wl}-bernotok'
15201 allow_undefined_flag_F77
=' ${wl}-berok'
15202 # Exported symbols can be pulled into shared objects from archives
15203 whole_archive_flag_spec_F77
='$convenience'
15204 archive_cmds_need_lc_F77
=yes
15205 # This is similar to how AIX traditionally builds its shared libraries.
15206 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'
15212 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)'
15213 hardcode_libdir_flag_spec_F77
='-L$libdir'
15214 hardcode_minus_L_F77
=yes
15215 # see comment about different semantics on the GNU ld section
15220 export_dynamic_flag_spec_F77
=-rdynamic
15223 cygwin
* | mingw
* | pw32
*)
15224 # When not using gcc, we currently assume that we are using
15225 # Microsoft Visual C++.
15226 # hardcode_libdir_flag_spec is actually meaningless, as there is
15227 # no search path for DLLs.
15228 hardcode_libdir_flag_spec_F77
=' '
15229 allow_undefined_flag_F77
=unsupported
15230 # Tell ltmain to make .lib files, not .a files.
15232 # Tell ltmain to make .dll files, not .so files.
15234 # FIXME: Setting linknames here is a bad hack.
15235 archive_cmds_F77
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15236 # The linker will automatically build a .lib file if we build a DLL.
15237 old_archive_From_new_cmds_F77
='true'
15238 # FIXME: Should let the user specify the lib program.
15239 old_archive_cmds_F77
='lib -OUT:$oldlib$oldobjs$old_deplibs'
15240 fix_srcfile_path_F77
='`cygpath -w "$srcfile"`'
15241 enable_shared_with_static_runtimes_F77
=yes
15244 darwin
* | rhapsody
*)
15246 rhapsody
* | darwin1.
[012])
15247 allow_undefined_flag_F77
='${wl}-undefined ${wl}suppress'
15250 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15251 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15253 case ${MACOSX_DEPLOYMENT_TARGET} in
15255 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15258 allow_undefined_flag_F77
='${wl}-undefined ${wl}dynamic_lookup'
15264 archive_cmds_need_lc_F77
=no
15265 hardcode_direct_F77
=no
15266 hardcode_automatic_F77
=yes
15267 hardcode_shlibpath_var_F77
=unsupported
15268 whole_archive_flag_spec_F77
=''
15269 link_all_deplibs_F77
=yes
15270 if test "$GCC" = yes ; then
15271 output_verbose_link_cmd
='echo'
15272 archive_cmds_F77
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15273 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15274 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15275 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}'
15276 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}'
15278 case $cc_basename in
15280 output_verbose_link_cmd
='echo'
15281 archive_cmds_F77
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15282 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15283 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15284 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}'
15285 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}'
15295 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15296 hardcode_libdir_flag_spec_F77
='-L$libdir'
15297 hardcode_shlibpath_var_F77
=no
15304 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15305 # support. Future versions do this automatically, but an explicit c++rt0.o
15306 # does not break anything, and helps significantly (at the cost of a little
15309 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15310 hardcode_libdir_flag_spec_F77
='-R$libdir'
15311 hardcode_direct_F77
=yes
15312 hardcode_shlibpath_var_F77
=no
15315 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15317 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15318 hardcode_direct_F77
=yes
15319 hardcode_minus_L_F77
=yes
15320 hardcode_shlibpath_var_F77
=no
15323 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15324 freebsd
* | dragonfly
*)
15325 archive_cmds_F77
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15326 hardcode_libdir_flag_spec_F77
='-R$libdir'
15327 hardcode_direct_F77
=yes
15328 hardcode_shlibpath_var_F77
=no
15332 if test "$GCC" = yes; then
15333 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'
15335 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'
15337 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
15338 hardcode_libdir_separator_F77
=:
15339 hardcode_direct_F77
=yes
15341 # hardcode_minus_L: Not really in the search PATH,
15342 # but as the default location of the library.
15343 hardcode_minus_L_F77
=yes
15344 export_dynamic_flag_spec_F77
='${wl}-E'
15348 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
15349 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15351 archive_cmds_F77
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15353 if test "$with_gnu_ld" = no
; then
15354 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
15355 hardcode_libdir_separator_F77
=:
15357 hardcode_direct_F77
=yes
15358 export_dynamic_flag_spec_F77
='${wl}-E'
15360 # hardcode_minus_L: Not really in the search PATH,
15361 # but as the default location of the library.
15362 hardcode_minus_L_F77
=yes
15367 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
15370 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15373 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15376 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15382 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15385 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15388 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15392 if test "$with_gnu_ld" = no
; then
15393 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
15394 hardcode_libdir_separator_F77
=:
15398 hardcode_libdir_flag_spec_ld_F77
='+b $libdir'
15399 hardcode_direct_F77
=no
15400 hardcode_shlibpath_var_F77
=no
15403 hardcode_direct_F77
=yes
15404 export_dynamic_flag_spec_F77
='${wl}-E'
15406 # hardcode_minus_L: Not really in the search PATH,
15407 # but as the default location of the library.
15408 hardcode_minus_L_F77
=yes
15414 irix5
* | irix6
* | nonstopux
*)
15415 if test "$GCC" = yes; then
15416 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'
15418 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'
15419 hardcode_libdir_flag_spec_ld_F77
='-rpath $libdir'
15421 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
15422 hardcode_libdir_separator_F77
=:
15423 link_all_deplibs_F77
=yes
15426 netbsd
* | netbsdelf
*-gnu)
15427 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
15428 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15430 archive_cmds_F77
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15432 hardcode_libdir_flag_spec_F77
='-R$libdir'
15433 hardcode_direct_F77
=yes
15434 hardcode_shlibpath_var_F77
=no
15438 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15439 hardcode_direct_F77
=yes
15440 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
15441 hardcode_libdir_separator_F77
=:
15442 hardcode_shlibpath_var_F77
=no
15446 if test -f /usr
/libexec
/ld.so
; then
15447 hardcode_direct_F77
=yes
15448 hardcode_shlibpath_var_F77
=no
15449 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15450 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15451 archive_expsym_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15452 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
15453 export_dynamic_flag_spec_F77
='${wl}-E'
15456 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
15457 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15458 hardcode_libdir_flag_spec_F77
='-R$libdir'
15461 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15462 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
15472 hardcode_libdir_flag_spec_F77
='-L$libdir'
15473 hardcode_minus_L_F77
=yes
15474 allow_undefined_flag_F77
=unsupported
15475 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'
15476 old_archive_From_new_cmds_F77
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15480 if test "$GCC" = yes; then
15481 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
15482 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'
15484 allow_undefined_flag_F77
=' -expect_unresolved \*'
15485 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'
15487 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
15488 hardcode_libdir_separator_F77
=:
15491 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
15492 if test "$GCC" = yes; then
15493 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
15494 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'
15495 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
15497 allow_undefined_flag_F77
=' -expect_unresolved \*'
15498 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'
15499 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~
15500 $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'
15502 # Both c and cxx compiler support -rpath directly
15503 hardcode_libdir_flag_spec_F77
='-rpath $libdir'
15505 hardcode_libdir_separator_F77
=:
15509 no_undefined_flag_F77
=' -z text'
15510 if test "$GCC" = yes; then
15512 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15513 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15514 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15517 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15518 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15519 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15521 hardcode_libdir_flag_spec_F77
='-R$libdir'
15522 hardcode_shlibpath_var_F77
=no
15524 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
15526 # The compiler driver will combine and reorder linker options,
15527 # but understands `-z linker_flag'. GCC discards it without `$wl',
15528 # but is careful enough not to reorder.
15529 # Supported since Solaris 2.6 (maybe 2.5.1?)
15530 if test "$GCC" = yes; then
15531 whole_archive_flag_spec_F77
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15533 whole_archive_flag_spec_F77
='-z allextract$convenience -z defaultextract'
15537 link_all_deplibs_F77
=yes
15541 if test "x$host_vendor" = xsequent
; then
15542 # Use $CC to link under sequent, because it throws in some extra .o
15543 # files that make .init and .fini sections work.
15544 archive_cmds_F77
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15546 archive_cmds_F77
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15548 hardcode_libdir_flag_spec_F77
='-L$libdir'
15549 hardcode_direct_F77
=yes
15550 hardcode_minus_L_F77
=yes
15551 hardcode_shlibpath_var_F77
=no
15555 case $host_vendor in
15557 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15558 hardcode_direct_F77
=yes # is this really true???
15561 ## LD is ld it makes a PLAMLIB
15562 ## CC just makes a GrossModule.
15563 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15564 reload_cmds_F77
='$CC -r -o $output$reload_objs'
15565 hardcode_direct_F77
=no
15568 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15569 hardcode_direct_F77
=no
#Motorola manual says yes, but my tests say they lie
15572 runpath_var
='LD_RUN_PATH'
15573 hardcode_shlibpath_var_F77
=no
15577 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15578 hardcode_shlibpath_var_F77
=no
15579 export_dynamic_flag_spec_F77
='-Bexport'
15583 if test -d /usr
/nec
; then
15584 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15585 hardcode_shlibpath_var_F77
=no
15586 runpath_var
=LD_RUN_PATH
15587 hardcode_runpath_var
=yes
15592 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
15593 no_undefined_flag_F77
='${wl}-z,text'
15594 archive_cmds_need_lc_F77
=no
15595 hardcode_shlibpath_var_F77
=no
15596 runpath_var
='LD_RUN_PATH'
15598 if test "$GCC" = yes; then
15599 archive_cmds_F77
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15600 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15602 archive_cmds_F77
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15603 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15607 sysv5
* | sco3.2v5
* | sco5v6
*)
15608 # Note: We can NOT use -z defs as we might desire, because we do not
15609 # link with -lc, and that would cause any symbols used from libc to
15610 # always be unresolved, which means just about no library would
15611 # ever link correctly. If we're not using GNU ld we use -z text
15612 # though, which does catch some bad symbols but isn't as heavy-handed
15614 no_undefined_flag_F77
='${wl}-z,text'
15615 allow_undefined_flag_F77
='${wl}-z,nodefs'
15616 archive_cmds_need_lc_F77
=no
15617 hardcode_shlibpath_var_F77
=no
15618 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15619 hardcode_libdir_separator_F77
=':'
15620 link_all_deplibs_F77
=yes
15621 export_dynamic_flag_spec_F77
='${wl}-Bexport'
15622 runpath_var
='LD_RUN_PATH'
15624 if test "$GCC" = yes; then
15625 archive_cmds_F77
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15626 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15628 archive_cmds_F77
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15629 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15634 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15635 hardcode_libdir_flag_spec_F77
='-L$libdir'
15636 hardcode_shlibpath_var_F77
=no
15645 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15646 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15647 test "$ld_shlibs_F77" = no
&& can_build_shared
=no
15650 # Do we need to explicitly link libc?
15652 case "x$archive_cmds_need_lc_F77" in
15654 # Assume -lc should be added
15655 archive_cmds_need_lc_F77
=yes
15657 if test "$enable_shared" = yes && test "$GCC" = yes; then
15658 case $archive_cmds_F77 in
15660 # FIXME: we may have to deal with multi-command sequences.
15663 # Test whether the compiler implicitly links with -lc since on some
15664 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15665 # to ld, don't add -lc before -lgcc.
15666 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15667 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15669 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
15671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15672 (eval $ac_compile) 2>&5
15674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675 (exit $ac_status); } 2>conftest.err
; then
15678 libobjs
=conftest.
$ac_objext
15680 wl
=$lt_prog_compiler_wl_F77
15681 pic_flag
=$lt_prog_compiler_pic_F77
15687 lt_save_allow_undefined_flag
=$allow_undefined_flag_F77
15688 allow_undefined_flag_F77
=
15689 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15690 (eval $archive_cmds_F77 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); }
15695 archive_cmds_need_lc_F77
=no
15697 archive_cmds_need_lc_F77
=yes
15699 allow_undefined_flag_F77
=$lt_save_allow_undefined_flag
15701 cat conftest.err
1>&5
15704 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15705 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15712 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15713 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15714 library_names_spec
=
15715 libname_spec
='lib$name'
15719 postuninstall_cmds
=
15723 shlibpath_overrides_runpath
=unknown
15725 dynamic_linker
="$host_os ld.so"
15726 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
15728 need_lib_prefix
=unknown
15729 hardcode_into_libs
=no
15731 # when you set need_version to no, make sure it does not cause -set_version
15732 # flags to be left without arguments
15733 need_version
=unknown
15738 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
15739 shlibpath_var
=LIBPATH
15741 # AIX 3 has no versioning support, so we append a major version to the name.
15742 soname_spec
='${libname}${release}${shared_ext}$major'
15749 hardcode_into_libs
=yes
15750 if test "$host_cpu" = ia64
; then
15751 # AIX 5 supports IA64
15752 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15753 shlibpath_var
=LD_LIBRARY_PATH
15755 # With GCC up to 2.95.x, collect2 would create an import file
15756 # for dependence libraries. The import file would start with
15757 # the line `#! .'. This would cause the generated library to
15758 # depend on `.', always an invalid library. This was fixed in
15759 # development snapshots of GCC prior to 3.0.
15761 aix4 | aix4.
[01] | aix4.
[01].
*)
15762 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15764 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
15767 can_build_shared
=no
15771 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15772 # soname into executable. Probably we can add versioning support to
15773 # collect2, so additional links can be useful in future.
15774 if test "$aix_use_runtimelinking" = yes; then
15775 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15776 # instead of lib<name>.a to let people know that these are not
15777 # typical AIX shared libraries.
15778 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15780 # We preserve .a as extension for shared libraries through AIX4.2
15781 # and later when we are not doing run time linking.
15782 library_names_spec
='${libname}${release}.a $libname.a'
15783 soname_spec
='${libname}${release}${shared_ext}$major'
15785 shlibpath_var
=LIBPATH
15790 library_names_spec
='$libname.ixlibrary $libname.a'
15791 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15792 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'
15796 library_names_spec
='${libname}${shared_ext}'
15797 dynamic_linker
="$host_os ld.so"
15798 shlibpath_var
=LIBRARY_PATH
15804 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15805 soname_spec
='${libname}${release}${shared_ext}$major'
15806 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
15807 shlibpath_var
=LD_LIBRARY_PATH
15808 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15809 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
15810 # the default ld.so.conf also contains /usr/contrib/lib and
15811 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15812 # libtool to hard-code these into programs
15815 cygwin
* | mingw
* | pw32
*)
15816 version_type
=windows
15821 case $GCC,$host_os in
15822 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
15823 library_names_spec
='$libname.dll.a'
15824 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15825 postinstall_cmds
='base_file=`basename \${file}`~
15826 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15827 dldir=$destdir/`dirname \$dlpath`~
15828 test -d \$dldir || mkdir -p \$dldir~
15829 $install_prog $dir/$dlname \$dldir/$dlname~
15830 chmod a+x \$dldir/$dlname'
15831 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15832 dlpath=$dir/\$dldll~
15834 shlibpath_overrides_runpath
=yes
15838 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15839 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15840 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
15843 # MinGW DLLs use traditional 'lib' prefix
15844 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15845 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15846 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
15847 # It is most probably a Windows format PATH printed by
15848 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15849 # path with ; separators, and with drive letters. We can handle the
15850 # drive letters (cygwin fileutils understands them), so leave them,
15851 # especially as we might pass files found there to a mingw objdump,
15852 # which wouldn't understand a cygwinified path. Ahh.
15853 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15855 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15859 # pw32 DLLs use 'pw' prefix rather than 'lib'
15860 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15866 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15869 dynamic_linker
='Win32 ld.exe'
15870 # FIXME: first we should search . and the directory the executable is in
15874 darwin
* | rhapsody
*)
15875 dynamic_linker
="$host_os dyld"
15876 version_type
=darwin
15879 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15880 soname_spec
='${libname}${release}${major}$shared_ext'
15881 shlibpath_overrides_runpath
=yes
15882 shlibpath_var
=DYLD_LIBRARY_PATH
15883 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
15885 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
15892 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15893 soname_spec
='${libname}${release}${shared_ext}$major'
15894 shlibpath_var
=LD_LIBRARY_PATH
15901 freebsd
* | dragonfly
*)
15902 # DragonFly does not have aout. When/if they implement a new
15903 # versioning mechanism, adjust this.
15904 if test -x /usr
/bin
/objformat
; then
15905 objformat
=`/usr/bin/objformat`
15908 freebsd
[123]*) objformat
=aout
;;
15909 *) objformat
=elf
;;
15912 version_type
=freebsd-
$objformat
15913 case $version_type in
15915 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15920 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15924 shlibpath_var
=LD_LIBRARY_PATH
15927 shlibpath_overrides_runpath
=yes
15929 freebsd3.
[01]* | freebsdelf3.
[01]*)
15930 shlibpath_overrides_runpath
=yes
15931 hardcode_into_libs
=yes
15933 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
15934 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
15935 shlibpath_overrides_runpath
=no
15936 hardcode_into_libs
=yes
15938 *) # from 4.6 on, and DragonFly
15939 shlibpath_overrides_runpath
=yes
15940 hardcode_into_libs
=yes
15949 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15950 soname_spec
='${libname}${release}${shared_ext}$major'
15951 shlibpath_var
=LD_LIBRARY_PATH
15952 hardcode_into_libs
=yes
15955 hpux9
* | hpux10
* | hpux11
*)
15956 # Give a soname corresponding to the major version so that dld.sl refuses to
15957 # link against other versions.
15964 hardcode_into_libs
=yes
15965 dynamic_linker
="$host_os dld.so"
15966 shlibpath_var
=LD_LIBRARY_PATH
15967 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
15968 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15969 soname_spec
='${libname}${release}${shared_ext}$major'
15970 if test "X$HPUX_IA64_MODE" = X32
; then
15971 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15973 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
15975 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15979 hardcode_into_libs
=yes
15980 dynamic_linker
="$host_os dld.sl"
15981 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
15982 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
15983 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15984 soname_spec
='${libname}${release}${shared_ext}$major'
15985 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15986 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15990 dynamic_linker
="$host_os dld.sl"
15991 shlibpath_var
=SHLIB_PATH
15992 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
15993 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15994 soname_spec
='${libname}${release}${shared_ext}$major'
15997 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15998 postinstall_cmds
='chmod 555 $lib'
16005 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16006 soname_spec
='${libname}${release}${shared_ext}$major'
16007 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
16008 shlibpath_var
=LD_LIBRARY_PATH
16009 shlibpath_overrides_runpath
=no
16010 hardcode_into_libs
=yes
16013 irix5
* | irix6
* | nonstopux
*)
16015 nonstopux
*) version_type
=nonstopux
;;
16017 if test "$lt_cv_prog_gnu_ld" = yes; then
16025 soname_spec
='${libname}${release}${shared_ext}$major'
16026 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16028 irix5
* | nonstopux
*)
16029 libsuff
= shlibsuff
=
16032 case $LD in # libtool.m4 will add one of these switches to LD
16033 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
16034 libsuff
= shlibsuff
= libmagic
=32-bit;;
16035 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
16036 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
16037 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
16038 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
16039 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
16043 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
16044 shlibpath_overrides_runpath
=no
16045 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16046 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
16047 hardcode_into_libs
=yes
16050 # No shared lib support for Linux oldld, aout, or coff.
16051 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
16055 # This must be Linux ELF.
16056 linux
* | k
*bsd
*-gnu)
16060 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16061 soname_spec
='${libname}${release}${shared_ext}$major'
16062 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16063 shlibpath_var
=LD_LIBRARY_PATH
16064 shlibpath_overrides_runpath
=no
16065 # This implies no fast_install, which is unacceptable.
16066 # Some rework will be needed to allow for fast_install
16067 # before this can be enabled.
16068 hardcode_into_libs
=yes
16070 # Append ld.so.conf contents to the search path
16071 if test -f /etc
/ld.so.conf
; then
16072 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' ' '`
16073 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
16076 # We used to test for /lib/ld.so.1 and disable shared libraries on
16077 # powerpc, because MkLinux only supported shared libraries with the
16078 # GNU dynamic linker. Since this was broken with cross compilers,
16079 # most powerpc-linux boxes support dynamic linking these days and
16080 # people can always --disable-shared, the test was removed, and we
16081 # assume the GNU/Linux dynamic linker is in use.
16082 dynamic_linker
='GNU/Linux ld.so'
16089 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16090 soname_spec
='${libname}${release}${shared_ext}$major'
16091 shlibpath_var
=LD_LIBRARY_PATH
16092 shlibpath_overrides_runpath
=no
16093 hardcode_into_libs
=yes
16094 dynamic_linker
='NetBSD ld.elf_so'
16101 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
16102 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16103 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16104 dynamic_linker
='NetBSD (a.out) ld.so'
16106 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16107 soname_spec
='${libname}${release}${shared_ext}$major'
16108 dynamic_linker
='NetBSD ld.elf_so'
16110 shlibpath_var
=LD_LIBRARY_PATH
16111 shlibpath_overrides_runpath
=yes
16112 hardcode_into_libs
=yes
16117 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16118 shlibpath_var
=LD_LIBRARY_PATH
16119 shlibpath_overrides_runpath
=yes
16126 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16127 soname_spec
='${libname}${release}${shared_ext}$major'
16128 shlibpath_var
=LD_LIBRARY_PATH
16129 shlibpath_overrides_runpath
=yes
16134 sys_lib_dlsearch_path_spec
="/usr/lib"
16136 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16138 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
16139 *) need_version
=no
;;
16141 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16142 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16143 shlibpath_var
=LD_LIBRARY_PATH
16144 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16146 openbsd2.
[89] | openbsd2.
[89].
*)
16147 shlibpath_overrides_runpath
=no
16150 shlibpath_overrides_runpath
=yes
16154 shlibpath_overrides_runpath
=yes
16159 libname_spec
='$name'
16162 library_names_spec
='$libname${shared_ext} $libname.a'
16163 dynamic_linker
='OS/2 ld.exe'
16164 shlibpath_var
=LIBPATH
16167 osf3
* | osf4
* | osf5
*)
16171 soname_spec
='${libname}${release}${shared_ext}$major'
16172 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16173 shlibpath_var
=LD_LIBRARY_PATH
16174 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16175 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
16186 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16187 soname_spec
='${libname}${release}${shared_ext}$major'
16188 shlibpath_var
=LD_LIBRARY_PATH
16189 shlibpath_overrides_runpath
=yes
16190 hardcode_into_libs
=yes
16191 # ldd complains unless libraries are executable
16192 postinstall_cmds
='chmod +x $lib'
16197 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16198 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16199 shlibpath_var
=LD_LIBRARY_PATH
16200 shlibpath_overrides_runpath
=yes
16201 if test "$with_gnu_ld" = yes; then
16209 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16210 soname_spec
='${libname}${release}${shared_ext}$major'
16211 shlibpath_var
=LD_LIBRARY_PATH
16212 case $host_vendor in
16214 shlibpath_overrides_runpath
=no
16216 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16217 runpath_var
=LD_RUN_PATH
16225 shlibpath_overrides_runpath
=no
16226 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
16232 if test -d /usr
/nec
;then
16234 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16235 soname_spec
='$libname${shared_ext}.$major'
16236 shlibpath_var
=LD_LIBRARY_PATH
16240 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
16241 version_type
=freebsd-elf
16244 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16245 soname_spec
='${libname}${release}${shared_ext}$major'
16246 shlibpath_var
=LD_LIBRARY_PATH
16247 hardcode_into_libs
=yes
16248 if test "$with_gnu_ld" = yes; then
16249 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16250 shlibpath_overrides_runpath
=no
16252 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
16253 shlibpath_overrides_runpath
=yes
16256 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
16260 sys_lib_dlsearch_path_spec
='/usr/lib'
16265 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16266 soname_spec
='${libname}${release}${shared_ext}$major'
16267 shlibpath_var
=LD_LIBRARY_PATH
16274 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16275 echo "${ECHO_T}$dynamic_linker" >&6; }
16276 test "$dynamic_linker" = no
&& can_build_shared
=no
16278 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
16279 if test "$GCC" = yes; then
16280 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16283 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16284 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16285 hardcode_action_F77
=
16286 if test -n "$hardcode_libdir_flag_spec_F77" || \
16287 test -n "$runpath_var_F77" || \
16288 test "X$hardcode_automatic_F77" = "Xyes" ; then
16290 # We can hardcode non-existant directories.
16291 if test "$hardcode_direct_F77" != no
&&
16292 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16293 # have to relink, otherwise we might link with an installed library
16294 # when we should be linking with a yet-to-be-installed one
16295 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16296 test "$hardcode_minus_L_F77" != no
; then
16297 # Linking always hardcodes the temporary library directory.
16298 hardcode_action_F77
=relink
16300 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16301 hardcode_action_F77
=immediate
16304 # We cannot hardcode anything, or else we can only hardcode existing
16306 hardcode_action_F77
=unsupported
16308 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16309 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16311 if test "$hardcode_action_F77" = relink
; then
16312 # Fast installation is not supported
16313 enable_fast_install
=no
16314 elif test "$shlibpath_overrides_runpath" = yes ||
16315 test "$enable_shared" = no
; then
16316 # Fast installation is not necessary
16317 enable_fast_install
=needless
16321 # The else clause should only fire when bootstrapping the
16322 # libtool distribution, otherwise you forgot to ship ltmain.sh
16323 # with your package, and you will get complaints that there are
16324 # no rules to generate ltmain.sh.
16325 if test -f "$ltmain"; then
16326 # See if we are running on zsh, and set the options which allow our commands through
16327 # without removal of \ escapes.
16328 if test -n "${ZSH_VERSION+set}" ; then
16329 setopt NO_GLOB_SUBST
16331 # Now quote all the things that may contain metacharacters while being
16332 # careful not to overquote the AC_SUBSTed values. We take copies of the
16333 # variables and quote the copies for generation of the libtool script.
16334 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16336 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16337 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16338 deplibs_check_method reload_flag reload_cmds need_locks \
16339 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16340 lt_cv_sys_global_symbol_to_c_name_address \
16341 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16342 old_postinstall_cmds old_postuninstall_cmds \
16346 lt_prog_compiler_wl_F77 \
16347 lt_prog_compiler_pic_F77 \
16348 lt_prog_compiler_static_F77 \
16349 lt_prog_compiler_no_builtin_flag_F77 \
16350 export_dynamic_flag_spec_F77 \
16351 thread_safe_flag_spec_F77 \
16352 whole_archive_flag_spec_F77 \
16353 enable_shared_with_static_runtimes_F77 \
16354 old_archive_cmds_F77 \
16355 old_archive_from_new_cmds_F77 \
16356 predep_objects_F77 \
16357 postdep_objects_F77 \
16360 compiler_lib_search_path_F77 \
16362 archive_expsym_cmds_F77 \
16363 postinstall_cmds_F77 \
16364 postuninstall_cmds_F77 \
16365 old_archive_from_expsyms_cmds_F77 \
16366 allow_undefined_flag_F77 \
16367 no_undefined_flag_F77 \
16368 export_symbols_cmds_F77 \
16369 hardcode_libdir_flag_spec_F77 \
16370 hardcode_libdir_flag_spec_ld_F77 \
16371 hardcode_libdir_separator_F77 \
16372 hardcode_automatic_F77 \
16374 module_expsym_cmds_F77 \
16375 lt_cv_prog_compiler_c_o_F77 \
16376 fix_srcfile_path_F77 \
16377 exclude_expsyms_F77 \
16378 include_expsyms_F77
; do
16381 old_archive_cmds_F77 | \
16382 old_archive_from_new_cmds_F77 | \
16383 archive_cmds_F77 | \
16384 archive_expsym_cmds_F77 | \
16385 module_cmds_F77 | \
16386 module_expsym_cmds_F77 | \
16387 old_archive_from_expsyms_cmds_F77 | \
16388 export_symbols_cmds_F77 | \
16389 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16390 postinstall_cmds | postuninstall_cmds | \
16391 old_postinstall_cmds | old_postuninstall_cmds | \
16392 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
16393 # Double-quote double-evaled strings.
16394 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16397 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16403 *'\$0 --fallback-echo"')
16404 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16410 cat <<__EOF__ >> "$cfgfile"
16411 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16413 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16415 # Shell to use when invoking shell scripts.
16418 # Whether or not to build shared libraries.
16419 build_libtool_libs=$enable_shared
16421 # Whether or not to build static libraries.
16422 build_old_libs=$enable_static
16424 # Whether or not to add -lc for building shared libraries.
16425 build_libtool_need_lc=$archive_cmds_need_lc_F77
16427 # Whether or not to disallow shared libs when runtime libs are static
16428 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16430 # Whether or not to optimize for fast installation.
16431 fast_install=$enable_fast_install
16434 host_alias=$host_alias
16438 # The build system.
16439 build_alias=$build_alias
16443 # An echo program that does not interpret backslashes.
16448 AR_FLAGS=$lt_AR_FLAGS
16453 # LTCC compiler flags.
16454 LTCFLAGS=$lt_LTCFLAGS
16456 # A language-specific compiler.
16457 CC=$lt_compiler_F77
16459 # Is the compiler the GNU C compiler?
16465 # The linker used to build libraries.
16468 # Whether we need hard or soft links.
16471 # A BSD-compatible nm program.
16474 # A symbol stripping program
16477 # Used to examine libraries when file_magic_cmd begins "file"
16478 MAGIC_CMD=$MAGIC_CMD
16480 # Used on cygwin: DLL creation program.
16483 # Used on cygwin: object dumper.
16486 # Used on cygwin: assembler.
16489 # The name of the directory that contains temporary libtool files.
16492 # How to create reloadable object files.
16493 reload_flag=$lt_reload_flag
16494 reload_cmds=$lt_reload_cmds
16496 # How to pass a linker flag through the compiler.
16497 wl=$lt_lt_prog_compiler_wl_F77
16499 # Object file suffix (normally "o").
16500 objext="$ac_objext"
16502 # Old archive suffix (normally "a").
16505 # Shared library suffix (normally ".so").
16506 shrext_cmds='$shrext_cmds'
16508 # Executable file suffix (normally "").
16511 # Additional compiler flags for building library objects.
16512 pic_flag=$lt_lt_prog_compiler_pic_F77
16515 # What is the maximum length of a command?
16516 max_cmd_len=$lt_cv_sys_max_cmd_len
16518 # Does compiler simultaneously support -c and -o options?
16519 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16521 # Must we lock files when doing compilation?
16522 need_locks=$lt_need_locks
16524 # Do we need the lib prefix for modules?
16525 need_lib_prefix=$need_lib_prefix
16527 # Do we need a version for libraries?
16528 need_version=$need_version
16530 # Whether dlopen is supported.
16531 dlopen_support=$enable_dlopen
16533 # Whether dlopen of programs is supported.
16534 dlopen_self=$enable_dlopen_self
16536 # Whether dlopen of statically linked programs is supported.
16537 dlopen_self_static=$enable_dlopen_self_static
16539 # Compiler flag to prevent dynamic linking.
16540 link_static_flag=$lt_lt_prog_compiler_static_F77
16542 # Compiler flag to turn off builtin functions.
16543 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16545 # Compiler flag to allow reflexive dlopens.
16546 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16548 # Compiler flag to generate shared objects directly from archives.
16549 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16551 # Compiler flag to generate thread-safe objects.
16552 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16554 # Library versioning type.
16555 version_type=$version_type
16557 # Format of library name prefix.
16558 libname_spec=$lt_libname_spec
16560 # List of archive names. First name is the real one, the rest are links.
16561 # The last name is the one that the linker finds with -lNAME.
16562 library_names_spec=$lt_library_names_spec
16564 # The coded name of the library, if different from the real name.
16565 soname_spec=$lt_soname_spec
16567 # Commands used to build and install an old-style archive.
16569 old_archive_cmds=$lt_old_archive_cmds_F77
16570 old_postinstall_cmds=$lt_old_postinstall_cmds
16571 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16573 # Create an old-style archive from a shared archive.
16574 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16576 # Create a temporary old-style archive to link instead of a shared archive.
16577 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16579 # Commands used to build and install a shared archive.
16580 archive_cmds=$lt_archive_cmds_F77
16581 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16582 postinstall_cmds=$lt_postinstall_cmds
16583 postuninstall_cmds=$lt_postuninstall_cmds
16585 # Commands used to build a loadable module (assumed same as above if empty)
16586 module_cmds=$lt_module_cmds_F77
16587 module_expsym_cmds=$lt_module_expsym_cmds_F77
16589 # Commands to strip libraries.
16590 old_striplib=$lt_old_striplib
16591 striplib=$lt_striplib
16593 # Dependencies to place before the objects being linked to create a
16595 predep_objects=$lt_predep_objects_F77
16597 # Dependencies to place after the objects being linked to create a
16599 postdep_objects=$lt_postdep_objects_F77
16601 # Dependencies to place before the objects being linked to create a
16603 predeps=$lt_predeps_F77
16605 # Dependencies to place after the objects being linked to create a
16607 postdeps=$lt_postdeps_F77
16609 # The library search path used internally by the compiler when linking
16610 # a shared library.
16611 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16613 # Method to check whether dependent libraries are shared objects.
16614 deplibs_check_method=$lt_deplibs_check_method
16616 # Command to use when deplibs_check_method == file_magic.
16617 file_magic_cmd=$lt_file_magic_cmd
16619 # Flag that allows shared libraries with undefined symbols to be built.
16620 allow_undefined_flag=$lt_allow_undefined_flag_F77
16622 # Flag that forces no undefined symbols.
16623 no_undefined_flag=$lt_no_undefined_flag_F77
16625 # Commands used to finish a libtool library installation in a directory.
16626 finish_cmds=$lt_finish_cmds
16628 # Same as above, but a single script fragment to be evaled but not shown.
16629 finish_eval=$lt_finish_eval
16631 # Take the output of nm and produce a listing of raw symbols and C names.
16632 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16634 # Transform the output of nm in a proper C declaration
16635 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16637 # Transform the output of nm in a C name address pair
16638 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16640 # This is the shared library runtime path variable.
16641 runpath_var=$runpath_var
16643 # This is the shared library path variable.
16644 shlibpath_var=$shlibpath_var
16646 # Is shlibpath searched before the hard-coded library search path?
16647 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16649 # How to hardcode a shared library path into an executable.
16650 hardcode_action=$hardcode_action_F77
16652 # Whether we should hardcode library paths into libraries.
16653 hardcode_into_libs=$hardcode_into_libs
16655 # Flag to hardcode \$libdir into a binary during linking.
16656 # This must work even if \$libdir does not exist.
16657 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16659 # If ld is used when linking, flag to hardcode \$libdir into
16660 # a binary during linking. This must work even if \$libdir does
16662 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16664 # Whether we need a single -rpath flag with a separated argument.
16665 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16667 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16668 # resulting binary.
16669 hardcode_direct=$hardcode_direct_F77
16671 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16672 # resulting binary.
16673 hardcode_minus_L=$hardcode_minus_L_F77
16675 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16676 # the resulting binary.
16677 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16679 # Set to yes if building a shared library automatically hardcodes DIR into the library
16680 # and all subsequent libraries and executables linked against it.
16681 hardcode_automatic=$hardcode_automatic_F77
16683 # Variables whose values should be saved in libtool wrapper scripts and
16684 # restored at relink time.
16685 variables_saved_for_relink="$variables_saved_for_relink"
16687 # Whether libtool must link a program against all its dependency libraries.
16688 link_all_deplibs=$link_all_deplibs_F77
16690 # Compile-time system search path for libraries
16691 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16693 # Run-time system search path for libraries
16694 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16696 # Fix the shell variable \$srcfile for the compiler.
16697 fix_srcfile_path=$lt_fix_srcfile_path
16699 # Set to yes if exported symbols are required.
16700 always_export_symbols=$always_export_symbols_F77
16702 # The commands to list exported symbols.
16703 export_symbols_cmds=$lt_export_symbols_cmds_F77
16705 # The commands to extract the exported symbol list from a shared archive.
16706 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16708 # Symbols that should not be listed in the preloaded symbols.
16709 exclude_expsyms=$lt_exclude_expsyms_F77
16711 # Symbols that must always be exported.
16712 include_expsyms=$lt_include_expsyms_F77
16714 # ### END LIBTOOL TAG CONFIG: $tagname
16720 # If there is no Makefile yet, we rely on a make rule to execute
16721 # `config.status --recheck' to rerun these tests and create the
16722 # libtool script then.
16723 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16724 if test -f "$ltmain_in"; then
16725 test -f Makefile
&& make "$ltmain"
16731 ac_cpp
='$CPP $CPPFLAGS'
16732 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16733 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16734 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
16744 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16747 # Source file extension for Java test sources.
16750 # Object file extension for compiled Java test sources.
16754 # Code to be used in simple compile tests
16755 lt_simple_compile_test_code
="class foo {}"
16757 # Code to be used in simple link tests
16758 lt_simple_link_test_code
='public class conftest { public static void main(String[] argv) {}; }'
16760 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16762 # If no C compiler was specified, use CC.
16765 # If no C compiler flags were specified, use CFLAGS.
16766 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
16768 # Allow CC to be a program name with arguments.
16772 # save warnings/boilerplate of simple test code
16773 ac_outfile
=conftest.
$ac_objext
16774 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
16775 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
16776 _lt_compiler_boilerplate
=`cat conftest.err`
16779 ac_outfile
=conftest.
$ac_objext
16780 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
16781 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
16782 _lt_linker_boilerplate
=`cat conftest.err`
16786 # Allow CC to be a program name with arguments.
16791 for cc_temp
in $compiler""; do
16793 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
16794 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
16799 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16802 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16803 archive_cmds_need_lc_GCJ
=no
16805 old_archive_cmds_GCJ
=$old_archive_cmds
16808 ## There is no encapsulation within the following macros, do not change
16809 ## the running order or otherwise move them around unless you know exactly
16810 ## what you are doing...
16812 lt_prog_compiler_no_builtin_flag_GCJ
=
16814 if test "$GCC" = yes; then
16815 lt_prog_compiler_no_builtin_flag_GCJ
=' -fno-builtin'
16818 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16819 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16820 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16821 echo $ECHO_N "(cached) $ECHO_C" >&6
16823 lt_cv_prog_compiler_rtti_exceptions
=no
16824 ac_outfile
=conftest.
$ac_objext
16825 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16826 lt_compiler_flag
="-fno-rtti -fno-exceptions"
16827 # Insert the option either (1) after the last *FLAGS variable, or
16828 # (2) before a word containing "conftest.", or (3) at the end.
16829 # Note that $ac_compile itself does not contain backslashes and begins
16830 # with a dollar sign (not a hyphen), so the echo should work correctly.
16831 # The option is referenced via a variable to avoid confusing sed.
16832 lt_compile
=`echo "$ac_compile" | $SED \
16833 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16834 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16835 -e 's:$: $lt_compiler_flag:'`
16836 (eval echo "\"\$as_me:16836: $lt_compile\"" >&5)
16837 (eval "$lt_compile" 2>conftest.err
)
16839 cat conftest.err
>&5
16840 echo "$as_me:16840: \$? = $ac_status" >&5
16841 if (exit $ac_status) && test -s "$ac_outfile"; then
16842 # The compiler can only warn and ignore the option if not recognized
16843 # So say no if there are warnings other than the usual output.
16844 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
16845 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16846 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
16847 lt_cv_prog_compiler_rtti_exceptions
=yes
16853 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16854 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16856 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
16857 lt_prog_compiler_no_builtin_flag_GCJ
="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16864 lt_prog_compiler_wl_GCJ
=
16865 lt_prog_compiler_pic_GCJ
=
16866 lt_prog_compiler_static_GCJ
=
16868 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16869 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16871 if test "$GCC" = yes; then
16872 lt_prog_compiler_wl_GCJ
='-Wl,'
16873 lt_prog_compiler_static_GCJ
='-static'
16877 # All AIX code is PIC.
16878 if test "$host_cpu" = ia64
; then
16879 # AIX 5 now supports IA64 processor
16880 lt_prog_compiler_static_GCJ
='-Bstatic'
16885 # FIXME: we need at least 68020 code to build shared libraries, but
16886 # adding the `-m68020' flag to GCC prevents building anything better,
16888 lt_prog_compiler_pic_GCJ
='-m68020 -resident32 -malways-restore-a4'
16891 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
16892 # PIC is the default for these OSes.
16895 mingw
* | cygwin
* | pw32
* | os2
*)
16896 # This hack is so that the source file can tell whether it is being
16897 # built for inclusion in a dll (and should export symbols for example).
16898 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16899 # (--disable-auto-import) libraries
16900 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
16903 darwin
* | rhapsody
*)
16904 # PIC is the default on this platform
16905 # Common symbols not allowed in MH_DYLIB files
16906 lt_prog_compiler_pic_GCJ
='-fno-common'
16910 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16911 # Instead, we relocate shared libraries at runtime.
16915 # Just because we use GCC doesn't mean we suddenly get shared libraries
16916 # on systems that don't support them.
16917 lt_prog_compiler_can_build_shared_GCJ
=no
16922 if test -d /usr
/nec
; then
16923 lt_prog_compiler_pic_GCJ
=-Kconform_pic
16928 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16929 # not for PA HP-UX.
16935 lt_prog_compiler_pic_GCJ
='-fPIC'
16941 lt_prog_compiler_pic_GCJ
='-fPIC'
16945 # PORTME Check for flag to pass linker flags through the system compiler.
16948 lt_prog_compiler_wl_GCJ
='-Wl,'
16949 if test "$host_cpu" = ia64
; then
16950 # AIX 5 now supports IA64 processor
16951 lt_prog_compiler_static_GCJ
='-Bstatic'
16953 lt_prog_compiler_static_GCJ
='-bnso -bI:/lib/syscalls.exp'
16957 # PIC is the default on this platform
16958 # Common symbols not allowed in MH_DYLIB files
16959 case $cc_basename in
16961 lt_prog_compiler_pic_GCJ
='-qnocommon'
16962 lt_prog_compiler_wl_GCJ
='-Wl,'
16967 mingw
* | cygwin
* | pw32
* | os2
*)
16968 # This hack is so that the source file can tell whether it is being
16969 # built for inclusion in a dll (and should export symbols for example).
16970 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
16973 hpux9
* | hpux10
* | hpux11
*)
16974 lt_prog_compiler_wl_GCJ
='-Wl,'
16975 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16976 # not for PA HP-UX.
16982 lt_prog_compiler_pic_GCJ
='+Z'
16985 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16986 lt_prog_compiler_static_GCJ
='${wl}-a ${wl}archive'
16989 irix5
* | irix6
* | nonstopux
*)
16990 lt_prog_compiler_wl_GCJ
='-Wl,'
16991 # PIC (with -KPIC) is the default.
16992 lt_prog_compiler_static_GCJ
='-non_shared'
16996 lt_prog_compiler_pic_GCJ
='-KPIC'
16997 lt_prog_compiler_static_GCJ
='-Bstatic'
17000 linux
* | k
*bsd
*-gnu)
17001 case $cc_basename in
17003 lt_prog_compiler_wl_GCJ
='-Wl,'
17004 lt_prog_compiler_pic_GCJ
='-KPIC'
17005 lt_prog_compiler_static_GCJ
='-static'
17007 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
17008 # Portland Group compilers (*not* the Pentium gcc compiler,
17009 # which looks to be a dead project)
17010 lt_prog_compiler_wl_GCJ
='-Wl,'
17011 lt_prog_compiler_pic_GCJ
='-fpic'
17012 lt_prog_compiler_static_GCJ
='-Bstatic'
17015 lt_prog_compiler_wl_GCJ
='-Wl,'
17016 # All Alpha code is PIC.
17017 lt_prog_compiler_static_GCJ
='-non_shared'
17020 case `$CC -V 2>&1 | sed 5q` in
17023 lt_prog_compiler_pic_GCJ
='-KPIC'
17024 lt_prog_compiler_static_GCJ
='-Bstatic'
17025 lt_prog_compiler_wl_GCJ
='-Wl,'
17028 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17029 lt_prog_compiler_pic_GCJ
='-KPIC'
17030 lt_prog_compiler_static_GCJ
='-Bstatic'
17031 lt_prog_compiler_wl_GCJ
=''
17038 osf3
* | osf4
* | osf5
*)
17039 lt_prog_compiler_wl_GCJ
='-Wl,'
17040 # All OSF/1 code is PIC.
17041 lt_prog_compiler_static_GCJ
='-non_shared'
17045 lt_prog_compiler_static_GCJ
='-non_shared'
17049 lt_prog_compiler_pic_GCJ
='-KPIC'
17050 lt_prog_compiler_static_GCJ
='-Bstatic'
17051 case $cc_basename in
17052 f77
* | f90
* | f95
*)
17053 lt_prog_compiler_wl_GCJ
='-Qoption ld ';;
17055 lt_prog_compiler_wl_GCJ
='-Wl,';;
17060 lt_prog_compiler_wl_GCJ
='-Qoption ld '
17061 lt_prog_compiler_pic_GCJ
='-PIC'
17062 lt_prog_compiler_static_GCJ
='-Bstatic'
17065 sysv4 | sysv4.2uw2
* | sysv4.3
*)
17066 lt_prog_compiler_wl_GCJ
='-Wl,'
17067 lt_prog_compiler_pic_GCJ
='-KPIC'
17068 lt_prog_compiler_static_GCJ
='-Bstatic'
17072 if test -d /usr
/nec
;then
17073 lt_prog_compiler_pic_GCJ
='-Kconform_pic'
17074 lt_prog_compiler_static_GCJ
='-Bstatic'
17078 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
17079 lt_prog_compiler_wl_GCJ
='-Wl,'
17080 lt_prog_compiler_pic_GCJ
='-KPIC'
17081 lt_prog_compiler_static_GCJ
='-Bstatic'
17085 lt_prog_compiler_wl_GCJ
='-Wl,'
17086 lt_prog_compiler_can_build_shared_GCJ
=no
17090 lt_prog_compiler_pic_GCJ
='-pic'
17091 lt_prog_compiler_static_GCJ
='-Bstatic'
17095 lt_prog_compiler_can_build_shared_GCJ
=no
17100 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17101 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17104 # Check to make sure the PIC flag actually works.
17106 if test -n "$lt_prog_compiler_pic_GCJ"; then
17108 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17109 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17110 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17111 echo $ECHO_N "(cached) $ECHO_C" >&6
17113 lt_prog_compiler_pic_works_GCJ
=no
17114 ac_outfile
=conftest.
$ac_objext
17115 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17116 lt_compiler_flag
="$lt_prog_compiler_pic_GCJ"
17117 # Insert the option either (1) after the last *FLAGS variable, or
17118 # (2) before a word containing "conftest.", or (3) at the end.
17119 # Note that $ac_compile itself does not contain backslashes and begins
17120 # with a dollar sign (not a hyphen), so the echo should work correctly.
17121 # The option is referenced via a variable to avoid confusing sed.
17122 lt_compile
=`echo "$ac_compile" | $SED \
17123 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17124 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17125 -e 's:$: $lt_compiler_flag:'`
17126 (eval echo "\"\$as_me:17126: $lt_compile\"" >&5)
17127 (eval "$lt_compile" 2>conftest.err
)
17129 cat conftest.err
>&5
17130 echo "$as_me:17130: \$? = $ac_status" >&5
17131 if (exit $ac_status) && test -s "$ac_outfile"; then
17132 # The compiler can only warn and ignore the option if not recognized
17133 # So say no if there are warnings other than the usual output.
17134 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
17135 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
17136 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
17137 lt_prog_compiler_pic_works_GCJ
=yes
17143 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17144 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17146 if test x
"$lt_prog_compiler_pic_works_GCJ" = xyes
; then
17147 case $lt_prog_compiler_pic_GCJ in
17149 *) lt_prog_compiler_pic_GCJ
=" $lt_prog_compiler_pic_GCJ" ;;
17152 lt_prog_compiler_pic_GCJ
=
17153 lt_prog_compiler_can_build_shared_GCJ
=no
17158 # For platforms which do not support PIC, -DPIC is meaningless:
17160 lt_prog_compiler_pic_GCJ
=
17163 lt_prog_compiler_pic_GCJ
="$lt_prog_compiler_pic_GCJ"
17168 # Check to make sure the static flag actually works.
17170 wl
=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_GCJ\"
17171 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17172 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17173 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17174 echo $ECHO_N "(cached) $ECHO_C" >&6
17176 lt_prog_compiler_static_works_GCJ
=no
17177 save_LDFLAGS
="$LDFLAGS"
17178 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
17179 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
17180 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
17181 # The linker can only warn and ignore the option if not recognized
17182 # So say no if there are warnings
17183 if test -s conftest.err
; then
17184 # Append any errors to the config.log.
17185 cat conftest.err
1>&5
17186 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
17187 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
17188 if diff conftest.exp conftest.er2
>/dev
/null
; then
17189 lt_prog_compiler_static_works_GCJ
=yes
17192 lt_prog_compiler_static_works_GCJ
=yes
17196 LDFLAGS
="$save_LDFLAGS"
17199 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17200 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17202 if test x
"$lt_prog_compiler_static_works_GCJ" = xyes
; then
17205 lt_prog_compiler_static_GCJ
=
17209 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17210 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17211 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17212 echo $ECHO_N "(cached) $ECHO_C" >&6
17214 lt_cv_prog_compiler_c_o_GCJ
=no
17215 $rm -r conftest
2>/dev
/null
17219 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17221 lt_compiler_flag
="-o out/conftest2.$ac_objext"
17222 # Insert the option either (1) after the last *FLAGS variable, or
17223 # (2) before a word containing "conftest.", or (3) at the end.
17224 # Note that $ac_compile itself does not contain backslashes and begins
17225 # with a dollar sign (not a hyphen), so the echo should work correctly.
17226 lt_compile
=`echo "$ac_compile" | $SED \
17227 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17228 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17229 -e 's:$: $lt_compiler_flag:'`
17230 (eval echo "\"\$as_me:17230: $lt_compile\"" >&5)
17231 (eval "$lt_compile" 2>out
/conftest.err
)
17233 cat out
/conftest.err
>&5
17234 echo "$as_me:17234: \$? = $ac_status" >&5
17235 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
17237 # The compiler can only warn and ignore the option if not recognized
17238 # So say no if there are warnings
17239 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
17240 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
17241 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
17242 lt_cv_prog_compiler_c_o_GCJ
=yes
17247 # SGI C++ compiler will create directory out/ii_files/ for
17248 # template instantiation
17249 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
17250 $rm out
/* && rmdir out
17256 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17257 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17260 hard_links
="nottested"
17261 if test "$lt_cv_prog_compiler_c_o_GCJ" = no
&& test "$need_locks" != no
; then
17262 # do not overwrite the value of need_locks provided by the user
17263 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17264 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17267 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
17269 ln conftest.a conftest.b
2>&5 || hard_links
=no
17270 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
17271 { echo "$as_me:$LINENO: result: $hard_links" >&5
17272 echo "${ECHO_T}$hard_links" >&6; }
17273 if test "$hard_links" = no
; then
17274 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17275 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17282 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17283 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17286 allow_undefined_flag_GCJ
=
17287 enable_shared_with_static_runtimes_GCJ
=no
17289 archive_expsym_cmds_GCJ
=
17290 old_archive_From_new_cmds_GCJ
=
17291 old_archive_from_expsyms_cmds_GCJ
=
17292 export_dynamic_flag_spec_GCJ
=
17293 whole_archive_flag_spec_GCJ
=
17294 thread_safe_flag_spec_GCJ
=
17295 hardcode_libdir_flag_spec_GCJ
=
17296 hardcode_libdir_flag_spec_ld_GCJ
=
17297 hardcode_libdir_separator_GCJ
=
17298 hardcode_direct_GCJ
=no
17299 hardcode_minus_L_GCJ
=no
17300 hardcode_shlibpath_var_GCJ
=unsupported
17301 link_all_deplibs_GCJ
=unknown
17302 hardcode_automatic_GCJ
=no
17304 module_expsym_cmds_GCJ
=
17305 always_export_symbols_GCJ
=no
17306 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17307 # include_expsyms should be a list of space-separated symbols to be *always*
17308 # included in the symbol list
17309 include_expsyms_GCJ
=
17310 # exclude_expsyms can be an extended regexp of symbols to exclude
17311 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17312 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17313 # as well as any symbol that contains `d'.
17314 exclude_expsyms_GCJ
="_GLOBAL_OFFSET_TABLE_"
17315 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17316 # platforms (ab)use it in PIC code, but their linkers get confused if
17317 # the symbol is explicitly referenced. Since portable code cannot
17318 # rely on this symbol name, it's probably fine to never include it in
17319 # preloaded symbol tables.
17320 extract_expsyms_cmds
=
17321 # Just being paranoid about ensuring that cc_basename is set.
17322 for cc_temp
in $compiler""; do
17324 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
17325 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
17330 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17333 cygwin
* | mingw
* | pw32
*)
17334 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17335 # When not using gcc, we currently assume that we are using
17336 # Microsoft Visual C++.
17337 if test "$GCC" != yes; then
17342 # we just hope/assume this is gcc and not c89 (= MSVC++)
17351 if test "$with_gnu_ld" = yes; then
17352 # If archive_cmds runs LD, not CC, wlarc should be empty
17355 # Set some defaults for GNU ld with shared library support. These
17356 # are reset later if shared libraries are not supported. Putting them
17357 # here allows them to be overridden if necessary.
17358 runpath_var
=LD_RUN_PATH
17359 hardcode_libdir_flag_spec_GCJ
='${wl}--rpath ${wl}$libdir'
17360 export_dynamic_flag_spec_GCJ
='${wl}--export-dynamic'
17361 # ancient GNU ld didn't support --whole-archive et. al.
17362 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
17363 whole_archive_flag_spec_GCJ
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17365 whole_archive_flag_spec_GCJ
=
17367 supports_anon_versioning
=no
17368 case `$LD -v 2>/dev/null` in
17369 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
17370 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
17371 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
17372 *\
2.11.
*) ;; # other 2.11 versions
17373 *) supports_anon_versioning
=yes ;;
17376 # See if GNU ld supports shared libraries.
17378 aix3
* | aix4
* | aix5
*)
17379 # On AIX/PPC, the GNU linker is very broken
17380 if test "$host_cpu" != ia64
; then
17384 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17385 *** to be unable to reliably create shared libraries on AIX.
17386 *** Therefore, libtool is disabling shared libraries support. If you
17387 *** really care for shared libraries, you may want to modify your PATH
17388 *** so that a non-GNU linker is found, and then restart.
17395 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)'
17396 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17397 hardcode_minus_L_GCJ
=yes
17399 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17400 # that the semantics of dynamic libraries on AmigaOS, at least up
17401 # to version 4, is to share data among multiple programs linked
17402 # with the same dynamic library. Since this doesn't match the
17403 # behavior of shared libraries on other platforms, we can't use
17409 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
17410 allow_undefined_flag_GCJ
=unsupported
17411 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17412 # support --undefined. This deserves some investigation. FIXME
17413 archive_cmds_GCJ
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17419 cygwin
* | mingw
* | pw32
*)
17420 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17421 # as there is no search path for DLLs.
17422 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17423 allow_undefined_flag_GCJ
=unsupported
17424 always_export_symbols_GCJ
=no
17425 enable_shared_with_static_runtimes_GCJ
=yes
17426 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17428 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
17429 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17430 # If the export-symbols file already is a .def file (1st line
17431 # is EXPORTS), use it as is; otherwise, prepend...
17432 archive_expsym_cmds_GCJ
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17433 cp $export_symbols $output_objdir/$soname.def;
17435 echo EXPORTS > $output_objdir/$soname.def;
17436 cat $export_symbols >> $output_objdir/$soname.def;
17438 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17445 hardcode_direct_GCJ
=no
17446 hardcode_shlibpath_var_GCJ
=no
17447 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
17448 export_dynamic_flag_spec_GCJ
='${wl}-E'
17449 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17450 # Instead, shared libraries are loaded at an image base (0x10000000 by
17451 # default) and relocated if they conflict, which is a slow very memory
17452 # consuming and fragmenting process. To avoid this, we pick a random,
17453 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17454 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17455 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'
17456 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'
17459 gnu
* | linux
* | k
*bsd
*-gnu)
17460 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
17462 case $cc_basename,$host_cpu in
17463 pgcc
*) # Portland Group C compiler
17464 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'
17465 tmp_addflag
=' $pic_flag'
17467 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
17468 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'
17469 tmp_addflag
=' $pic_flag -Mnomain' ;;
17470 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
17471 tmp_addflag
=' -i_dynamic' ;;
17472 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
17473 tmp_addflag
=' -i_dynamic -nofor_main' ;;
17474 ifc
* | ifort
*) # Intel Fortran compiler
17475 tmp_addflag
=' -nofor_main' ;;
17477 case `$CC -V 2>&1 | sed 5q` in
17478 *Sun\ C
*) # Sun C 5.9
17479 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'
17480 tmp_sharedflag
='-G' ;;
17481 *Sun\ F
*) # Sun Fortran 8.3
17482 tmp_sharedflag
='-G' ;;
17484 tmp_sharedflag
='-shared' ;;
17486 archive_cmds_GCJ
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17488 if test $supports_anon_versioning = yes; then
17489 archive_expsym_cmds_GCJ
='$echo "{ global:" > $output_objdir/$libname.ver~
17490 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17491 $echo "local: *; };" >> $output_objdir/$libname.ver~
17492 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17494 link_all_deplibs_GCJ
=no
17500 netbsd
* | netbsdelf
*-gnu)
17501 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
17502 archive_cmds_GCJ
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17505 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17506 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17511 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
17515 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17516 *** create shared libraries on Solaris systems. Therefore, libtool
17517 *** is disabling shared libraries support. We urge you to upgrade GNU
17518 *** binutils to release 2.9.1 or newer. Another option is to modify
17519 *** your PATH or compiler configuration so that the native linker is
17520 *** used, and then restart.
17523 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
17524 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17525 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17531 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
17532 case `$LD -v 2>&1` in
17533 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
17537 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17538 *** reliably create shared libraries on SCO systems. Therefore, libtool
17539 *** is disabling shared libraries support. We urge you to upgrade GNU
17540 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17541 *** your PATH or compiler configuration so that the native linker is
17542 *** used, and then restart.
17547 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
17548 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17549 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17550 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17559 archive_cmds_GCJ
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17561 hardcode_direct_GCJ
=yes
17562 hardcode_shlibpath_var_GCJ
=no
17566 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
17567 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17568 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17575 if test "$ld_shlibs_GCJ" = no
; then
17577 hardcode_libdir_flag_spec_GCJ
=
17578 export_dynamic_flag_spec_GCJ
=
17579 whole_archive_flag_spec_GCJ
=
17582 # PORTME fill in a description of your system's linker (not GNU ld)
17585 allow_undefined_flag_GCJ
=unsupported
17586 always_export_symbols_GCJ
=yes
17587 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'
17588 # Note: this linker hardcodes the directories in LIBPATH if there
17589 # are no directories specified by -L.
17590 hardcode_minus_L_GCJ
=yes
17591 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17592 # Neither direct hardcoding nor static linking is supported with a
17594 hardcode_direct_GCJ
=unsupported
17599 if test "$host_cpu" = ia64
; then
17600 # On IA64, the linker does run time linking by default, so we don't
17601 # have to do anything special.
17602 aix_use_runtimelinking
=no
17603 exp_sym_flag
='-Bexport'
17606 # If we're using GNU nm, then we don't want the "-C" option.
17607 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17608 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
17609 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'
17611 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'
17613 aix_use_runtimelinking
=no
17615 # Test if we are trying to use run time linking or normal
17616 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17617 # need to do runtime linking.
17618 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
17619 for ld_flag
in $LDFLAGS; do
17620 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
17621 aix_use_runtimelinking
=yes
17628 exp_sym_flag
='-bexport'
17629 no_entry_flag
='-bnoentry'
17632 # When large executables or shared objects are built, AIX ld can
17633 # have problems creating the table of contents. If linking a library
17634 # or program results in "error TOC overflow" add -mminimal-toc to
17635 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17636 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17638 archive_cmds_GCJ
=''
17639 hardcode_direct_GCJ
=yes
17640 hardcode_libdir_separator_GCJ
=':'
17641 link_all_deplibs_GCJ
=yes
17643 if test "$GCC" = yes; then
17644 case $host_os in aix4.
[012]|aix4.
[012].
*)
17645 # We only want to do this on AIX 4.2 and lower, the check
17646 # below for broken collect2 doesn't work under 4.3+
17647 collect2name
=`${CC} -print-prog-name=collect2`
17648 if test -f "$collect2name" && \
17649 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
17651 # We have reworked collect2
17654 # We have old collect2
17655 hardcode_direct_GCJ
=unsupported
17656 # It fails to find uninstalled libraries when the uninstalled
17657 # path is not listed in the libpath. Setting hardcode_minus_L
17658 # to unsupported forces relinking
17659 hardcode_minus_L_GCJ
=yes
17660 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17661 hardcode_libdir_separator_GCJ
=
17665 shared_flag
='-shared'
17666 if test "$aix_use_runtimelinking" = yes; then
17667 shared_flag
="$shared_flag "'${wl}-G'
17671 if test "$host_cpu" = ia64
; then
17672 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17673 # chokes on -Wl,-G. The following line is correct:
17676 if test "$aix_use_runtimelinking" = yes; then
17677 shared_flag
='${wl}-G'
17679 shared_flag
='${wl}-bM:SRE'
17684 # It seems that -bexpall does not export symbols beginning with
17685 # underscore (_), so it is better to generate a list of symbols to export.
17686 always_export_symbols_GCJ
=yes
17687 if test "$aix_use_runtimelinking" = yes; then
17688 # Warning - without using the other runtime loading flags (-brtl),
17689 # -berok will link without error, but may produce a broken library.
17690 allow_undefined_flag_GCJ
='-berok'
17691 # Determine the default libpath from the value encoded in an empty executable.
17692 cat >conftest.
$ac_ext <<_ACEOF
17695 cat confdefs.h
>>conftest.
$ac_ext
17696 cat >>conftest.
$ac_ext <<_ACEOF
17697 /* end confdefs.h. */
17707 rm -f conftest.
$ac_objext conftest
$ac_exeext
17708 if { (ac_try
="$ac_link"
17709 case "(($ac_try" in
17710 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17711 *) ac_try_echo=$ac_try;;
17713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17714 (eval "$ac_link") 2>conftest.er1
17716 grep -v '^ *+' conftest.er1 >conftest.err
17718 cat conftest.err >&5
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); } && {
17721 test -z "$ac_c_werror_flag" ||
17722 test ! -s conftest.err
17723 } && test -s conftest$ac_exeext &&
17724 $as_test_x conftest$ac_exeext; then
17726 lt_aix_libpath_sed='
17727 /Import File Strings/,/^$/ {
17733 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
17734 # Check for a 64-bit object if we didn't find anything.
17735 if test -z "$aix_libpath"; then
17736 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
17739 echo "$as_me: failed program was:" >&5
17740 sed 's/^/| /' conftest.$ac_ext >&5
17745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17746 conftest$ac_exeext conftest.$ac_ext
17747 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17749 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17750 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"
17752 if test "$host_cpu" = ia64; then
17753 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17754 allow_undefined_flag_GCJ="-z nodefs"
17755 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"
17757 # Determine the default libpath from the value encoded in an empty executable.
17758 cat >conftest.$ac_ext <<_ACEOF
17761 cat confdefs.h >>conftest.$ac_ext
17762 cat >>conftest.$ac_ext <<_ACEOF
17763 /* end confdefs.h. */
17773 rm -f conftest.$ac_objext conftest$ac_exeext
17774 if { (ac_try="$ac_link"
17775 case "(($ac_try" in
17776 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17777 *) ac_try_echo
=$ac_try;;
17779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17780 (eval "$ac_link") 2>conftest.er1
17782 grep -v '^ *+' conftest.er1
>conftest.err
17784 cat conftest.err
>&5
17785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786 (exit $ac_status); } && {
17787 test -z "$ac_c_werror_flag" ||
17788 test ! -s conftest.err
17789 } && test -s conftest
$ac_exeext &&
17790 $as_test_x conftest
$ac_exeext; then
17792 lt_aix_libpath_sed
='
17793 /Import File Strings/,/^$/ {
17799 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17800 # Check for a 64-bit object if we didn't find anything.
17801 if test -z "$aix_libpath"; then
17802 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17805 echo "$as_me: failed program was:" >&5
17806 sed 's/^/| /' conftest.
$ac_ext >&5
17811 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17812 conftest
$ac_exeext conftest.
$ac_ext
17813 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17815 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
17816 # Warning - without using the other run time loading flags,
17817 # -berok will link without error, but may produce a broken library.
17818 no_undefined_flag_GCJ
=' ${wl}-bernotok'
17819 allow_undefined_flag_GCJ
=' ${wl}-berok'
17820 # Exported symbols can be pulled into shared objects from archives
17821 whole_archive_flag_spec_GCJ
='$convenience'
17822 archive_cmds_need_lc_GCJ
=yes
17823 # This is similar to how AIX traditionally builds its shared libraries.
17824 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'
17830 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)'
17831 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17832 hardcode_minus_L_GCJ
=yes
17833 # see comment about different semantics on the GNU ld section
17838 export_dynamic_flag_spec_GCJ
=-rdynamic
17841 cygwin
* | mingw
* | pw32
*)
17842 # When not using gcc, we currently assume that we are using
17843 # Microsoft Visual C++.
17844 # hardcode_libdir_flag_spec is actually meaningless, as there is
17845 # no search path for DLLs.
17846 hardcode_libdir_flag_spec_GCJ
=' '
17847 allow_undefined_flag_GCJ
=unsupported
17848 # Tell ltmain to make .lib files, not .a files.
17850 # Tell ltmain to make .dll files, not .so files.
17852 # FIXME: Setting linknames here is a bad hack.
17853 archive_cmds_GCJ
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17854 # The linker will automatically build a .lib file if we build a DLL.
17855 old_archive_From_new_cmds_GCJ
='true'
17856 # FIXME: Should let the user specify the lib program.
17857 old_archive_cmds_GCJ
='lib -OUT:$oldlib$oldobjs$old_deplibs'
17858 fix_srcfile_path_GCJ
='`cygpath -w "$srcfile"`'
17859 enable_shared_with_static_runtimes_GCJ
=yes
17862 darwin
* | rhapsody
*)
17864 rhapsody
* | darwin1.
[012])
17865 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}suppress'
17868 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17869 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17871 case ${MACOSX_DEPLOYMENT_TARGET} in
17873 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17876 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}dynamic_lookup'
17882 archive_cmds_need_lc_GCJ
=no
17883 hardcode_direct_GCJ
=no
17884 hardcode_automatic_GCJ
=yes
17885 hardcode_shlibpath_var_GCJ
=unsupported
17886 whole_archive_flag_spec_GCJ
=''
17887 link_all_deplibs_GCJ
=yes
17888 if test "$GCC" = yes ; then
17889 output_verbose_link_cmd
='echo'
17890 archive_cmds_GCJ
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17891 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17892 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17893 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}'
17894 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}'
17896 case $cc_basename in
17898 output_verbose_link_cmd
='echo'
17899 archive_cmds_GCJ
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17900 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17901 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17902 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}'
17903 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}'
17913 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17914 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17915 hardcode_shlibpath_var_GCJ
=no
17922 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17923 # support. Future versions do this automatically, but an explicit c++rt0.o
17924 # does not break anything, and helps significantly (at the cost of a little
17927 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17928 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17929 hardcode_direct_GCJ
=yes
17930 hardcode_shlibpath_var_GCJ
=no
17933 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17935 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17936 hardcode_direct_GCJ
=yes
17937 hardcode_minus_L_GCJ
=yes
17938 hardcode_shlibpath_var_GCJ
=no
17941 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17942 freebsd
* | dragonfly
*)
17943 archive_cmds_GCJ
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17944 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17945 hardcode_direct_GCJ
=yes
17946 hardcode_shlibpath_var_GCJ
=no
17950 if test "$GCC" = yes; then
17951 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'
17953 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'
17955 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17956 hardcode_libdir_separator_GCJ
=:
17957 hardcode_direct_GCJ
=yes
17959 # hardcode_minus_L: Not really in the search PATH,
17960 # but as the default location of the library.
17961 hardcode_minus_L_GCJ
=yes
17962 export_dynamic_flag_spec_GCJ
='${wl}-E'
17966 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
17967 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17969 archive_cmds_GCJ
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17971 if test "$with_gnu_ld" = no
; then
17972 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17973 hardcode_libdir_separator_GCJ
=:
17975 hardcode_direct_GCJ
=yes
17976 export_dynamic_flag_spec_GCJ
='${wl}-E'
17978 # hardcode_minus_L: Not really in the search PATH,
17979 # but as the default location of the library.
17980 hardcode_minus_L_GCJ
=yes
17985 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
17988 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17991 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17994 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18000 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18003 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18006 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18010 if test "$with_gnu_ld" = no
; then
18011 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
18012 hardcode_libdir_separator_GCJ
=:
18016 hardcode_libdir_flag_spec_ld_GCJ
='+b $libdir'
18017 hardcode_direct_GCJ
=no
18018 hardcode_shlibpath_var_GCJ
=no
18021 hardcode_direct_GCJ
=yes
18022 export_dynamic_flag_spec_GCJ
='${wl}-E'
18024 # hardcode_minus_L: Not really in the search PATH,
18025 # but as the default location of the library.
18026 hardcode_minus_L_GCJ
=yes
18032 irix5
* | irix6
* | nonstopux
*)
18033 if test "$GCC" = yes; then
18034 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'
18036 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'
18037 hardcode_libdir_flag_spec_ld_GCJ
='-rpath $libdir'
18039 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
18040 hardcode_libdir_separator_GCJ
=:
18041 link_all_deplibs_GCJ
=yes
18044 netbsd
* | netbsdelf
*-gnu)
18045 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
18046 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18048 archive_cmds_GCJ
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18050 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
18051 hardcode_direct_GCJ
=yes
18052 hardcode_shlibpath_var_GCJ
=no
18056 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18057 hardcode_direct_GCJ
=yes
18058 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
18059 hardcode_libdir_separator_GCJ
=:
18060 hardcode_shlibpath_var_GCJ
=no
18064 if test -f /usr
/libexec
/ld.so
; then
18065 hardcode_direct_GCJ
=yes
18066 hardcode_shlibpath_var_GCJ
=no
18067 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18068 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18069 archive_expsym_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18070 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
18071 export_dynamic_flag_spec_GCJ
='${wl}-E'
18074 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
18075 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18076 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
18079 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18080 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
18090 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
18091 hardcode_minus_L_GCJ
=yes
18092 allow_undefined_flag_GCJ
=unsupported
18093 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'
18094 old_archive_From_new_cmds_GCJ
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18098 if test "$GCC" = yes; then
18099 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
18100 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'
18102 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
18103 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'
18105 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
18106 hardcode_libdir_separator_GCJ
=:
18109 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
18110 if test "$GCC" = yes; then
18111 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
18112 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'
18113 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
18115 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
18116 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'
18117 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~
18118 $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'
18120 # Both c and cxx compiler support -rpath directly
18121 hardcode_libdir_flag_spec_GCJ
='-rpath $libdir'
18123 hardcode_libdir_separator_GCJ
=:
18127 no_undefined_flag_GCJ
=' -z text'
18128 if test "$GCC" = yes; then
18130 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18131 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18132 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18135 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18136 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18137 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18139 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
18140 hardcode_shlibpath_var_GCJ
=no
18142 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
18144 # The compiler driver will combine and reorder linker options,
18145 # but understands `-z linker_flag'. GCC discards it without `$wl',
18146 # but is careful enough not to reorder.
18147 # Supported since Solaris 2.6 (maybe 2.5.1?)
18148 if test "$GCC" = yes; then
18149 whole_archive_flag_spec_GCJ
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18151 whole_archive_flag_spec_GCJ
='-z allextract$convenience -z defaultextract'
18155 link_all_deplibs_GCJ
=yes
18159 if test "x$host_vendor" = xsequent
; then
18160 # Use $CC to link under sequent, because it throws in some extra .o
18161 # files that make .init and .fini sections work.
18162 archive_cmds_GCJ
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18164 archive_cmds_GCJ
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18166 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
18167 hardcode_direct_GCJ
=yes
18168 hardcode_minus_L_GCJ
=yes
18169 hardcode_shlibpath_var_GCJ
=no
18173 case $host_vendor in
18175 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18176 hardcode_direct_GCJ
=yes # is this really true???
18179 ## LD is ld it makes a PLAMLIB
18180 ## CC just makes a GrossModule.
18181 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18182 reload_cmds_GCJ
='$CC -r -o $output$reload_objs'
18183 hardcode_direct_GCJ
=no
18186 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18187 hardcode_direct_GCJ
=no
#Motorola manual says yes, but my tests say they lie
18190 runpath_var
='LD_RUN_PATH'
18191 hardcode_shlibpath_var_GCJ
=no
18195 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18196 hardcode_shlibpath_var_GCJ
=no
18197 export_dynamic_flag_spec_GCJ
='-Bexport'
18201 if test -d /usr
/nec
; then
18202 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18203 hardcode_shlibpath_var_GCJ
=no
18204 runpath_var
=LD_RUN_PATH
18205 hardcode_runpath_var
=yes
18210 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
18211 no_undefined_flag_GCJ
='${wl}-z,text'
18212 archive_cmds_need_lc_GCJ
=no
18213 hardcode_shlibpath_var_GCJ
=no
18214 runpath_var
='LD_RUN_PATH'
18216 if test "$GCC" = yes; then
18217 archive_cmds_GCJ
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18218 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18220 archive_cmds_GCJ
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18221 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18225 sysv5
* | sco3.2v5
* | sco5v6
*)
18226 # Note: We can NOT use -z defs as we might desire, because we do not
18227 # link with -lc, and that would cause any symbols used from libc to
18228 # always be unresolved, which means just about no library would
18229 # ever link correctly. If we're not using GNU ld we use -z text
18230 # though, which does catch some bad symbols but isn't as heavy-handed
18232 no_undefined_flag_GCJ
='${wl}-z,text'
18233 allow_undefined_flag_GCJ
='${wl}-z,nodefs'
18234 archive_cmds_need_lc_GCJ
=no
18235 hardcode_shlibpath_var_GCJ
=no
18236 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18237 hardcode_libdir_separator_GCJ
=':'
18238 link_all_deplibs_GCJ
=yes
18239 export_dynamic_flag_spec_GCJ
='${wl}-Bexport'
18240 runpath_var
='LD_RUN_PATH'
18242 if test "$GCC" = yes; then
18243 archive_cmds_GCJ
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18244 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18246 archive_cmds_GCJ
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18247 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18252 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18253 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
18254 hardcode_shlibpath_var_GCJ
=no
18263 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18264 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18265 test "$ld_shlibs_GCJ" = no
&& can_build_shared
=no
18268 # Do we need to explicitly link libc?
18270 case "x$archive_cmds_need_lc_GCJ" in
18272 # Assume -lc should be added
18273 archive_cmds_need_lc_GCJ
=yes
18275 if test "$enable_shared" = yes && test "$GCC" = yes; then
18276 case $archive_cmds_GCJ in
18278 # FIXME: we may have to deal with multi-command sequences.
18281 # Test whether the compiler implicitly links with -lc since on some
18282 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18283 # to ld, don't add -lc before -lgcc.
18284 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18285 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18287 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
18289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18290 (eval $ac_compile) 2>&5
18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 (exit $ac_status); } 2>conftest.err
; then
18296 libobjs
=conftest.
$ac_objext
18298 wl
=$lt_prog_compiler_wl_GCJ
18299 pic_flag
=$lt_prog_compiler_pic_GCJ
18305 lt_save_allow_undefined_flag
=$allow_undefined_flag_GCJ
18306 allow_undefined_flag_GCJ
=
18307 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18308 (eval $archive_cmds_GCJ 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
18310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311 (exit $ac_status); }
18313 archive_cmds_need_lc_GCJ
=no
18315 archive_cmds_need_lc_GCJ
=yes
18317 allow_undefined_flag_GCJ
=$lt_save_allow_undefined_flag
18319 cat conftest.err
1>&5
18322 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18323 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18330 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18331 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18332 library_names_spec
=
18333 libname_spec
='lib$name'
18337 postuninstall_cmds
=
18341 shlibpath_overrides_runpath
=unknown
18343 dynamic_linker
="$host_os ld.so"
18344 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
18346 need_lib_prefix
=unknown
18347 hardcode_into_libs
=no
18349 # when you set need_version to no, make sure it does not cause -set_version
18350 # flags to be left without arguments
18351 need_version
=unknown
18356 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
18357 shlibpath_var
=LIBPATH
18359 # AIX 3 has no versioning support, so we append a major version to the name.
18360 soname_spec
='${libname}${release}${shared_ext}$major'
18367 hardcode_into_libs
=yes
18368 if test "$host_cpu" = ia64
; then
18369 # AIX 5 supports IA64
18370 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18371 shlibpath_var
=LD_LIBRARY_PATH
18373 # With GCC up to 2.95.x, collect2 would create an import file
18374 # for dependence libraries. The import file would start with
18375 # the line `#! .'. This would cause the generated library to
18376 # depend on `.', always an invalid library. This was fixed in
18377 # development snapshots of GCC prior to 3.0.
18379 aix4 | aix4.
[01] | aix4.
[01].
*)
18380 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18382 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
18385 can_build_shared
=no
18389 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18390 # soname into executable. Probably we can add versioning support to
18391 # collect2, so additional links can be useful in future.
18392 if test "$aix_use_runtimelinking" = yes; then
18393 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18394 # instead of lib<name>.a to let people know that these are not
18395 # typical AIX shared libraries.
18396 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18398 # We preserve .a as extension for shared libraries through AIX4.2
18399 # and later when we are not doing run time linking.
18400 library_names_spec
='${libname}${release}.a $libname.a'
18401 soname_spec
='${libname}${release}${shared_ext}$major'
18403 shlibpath_var
=LIBPATH
18408 library_names_spec
='$libname.ixlibrary $libname.a'
18409 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18410 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'
18414 library_names_spec
='${libname}${shared_ext}'
18415 dynamic_linker
="$host_os ld.so"
18416 shlibpath_var
=LIBRARY_PATH
18422 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18423 soname_spec
='${libname}${release}${shared_ext}$major'
18424 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
18425 shlibpath_var
=LD_LIBRARY_PATH
18426 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18427 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
18428 # the default ld.so.conf also contains /usr/contrib/lib and
18429 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18430 # libtool to hard-code these into programs
18433 cygwin
* | mingw
* | pw32
*)
18434 version_type
=windows
18439 case $GCC,$host_os in
18440 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
18441 library_names_spec
='$libname.dll.a'
18442 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18443 postinstall_cmds
='base_file=`basename \${file}`~
18444 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18445 dldir=$destdir/`dirname \$dlpath`~
18446 test -d \$dldir || mkdir -p \$dldir~
18447 $install_prog $dir/$dlname \$dldir/$dlname~
18448 chmod a+x \$dldir/$dlname'
18449 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18450 dlpath=$dir/\$dldll~
18452 shlibpath_overrides_runpath
=yes
18456 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18457 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18458 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
18461 # MinGW DLLs use traditional 'lib' prefix
18462 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18463 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18464 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
18465 # It is most probably a Windows format PATH printed by
18466 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18467 # path with ; separators, and with drive letters. We can handle the
18468 # drive letters (cygwin fileutils understands them), so leave them,
18469 # especially as we might pass files found there to a mingw objdump,
18470 # which wouldn't understand a cygwinified path. Ahh.
18471 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18473 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18477 # pw32 DLLs use 'pw' prefix rather than 'lib'
18478 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18484 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18487 dynamic_linker
='Win32 ld.exe'
18488 # FIXME: first we should search . and the directory the executable is in
18492 darwin
* | rhapsody
*)
18493 dynamic_linker
="$host_os dyld"
18494 version_type
=darwin
18497 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18498 soname_spec
='${libname}${release}${major}$shared_ext'
18499 shlibpath_overrides_runpath
=yes
18500 shlibpath_var
=DYLD_LIBRARY_PATH
18501 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
18503 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
18510 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18511 soname_spec
='${libname}${release}${shared_ext}$major'
18512 shlibpath_var
=LD_LIBRARY_PATH
18519 freebsd
* | dragonfly
*)
18520 # DragonFly does not have aout. When/if they implement a new
18521 # versioning mechanism, adjust this.
18522 if test -x /usr
/bin
/objformat
; then
18523 objformat
=`/usr/bin/objformat`
18526 freebsd
[123]*) objformat
=aout
;;
18527 *) objformat
=elf
;;
18530 version_type
=freebsd-
$objformat
18531 case $version_type in
18533 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18538 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18542 shlibpath_var
=LD_LIBRARY_PATH
18545 shlibpath_overrides_runpath
=yes
18547 freebsd3.
[01]* | freebsdelf3.
[01]*)
18548 shlibpath_overrides_runpath
=yes
18549 hardcode_into_libs
=yes
18551 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
18552 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
18553 shlibpath_overrides_runpath
=no
18554 hardcode_into_libs
=yes
18556 *) # from 4.6 on, and DragonFly
18557 shlibpath_overrides_runpath
=yes
18558 hardcode_into_libs
=yes
18567 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18568 soname_spec
='${libname}${release}${shared_ext}$major'
18569 shlibpath_var
=LD_LIBRARY_PATH
18570 hardcode_into_libs
=yes
18573 hpux9
* | hpux10
* | hpux11
*)
18574 # Give a soname corresponding to the major version so that dld.sl refuses to
18575 # link against other versions.
18582 hardcode_into_libs
=yes
18583 dynamic_linker
="$host_os dld.so"
18584 shlibpath_var
=LD_LIBRARY_PATH
18585 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18586 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18587 soname_spec
='${libname}${release}${shared_ext}$major'
18588 if test "X$HPUX_IA64_MODE" = X32
; then
18589 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18591 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
18593 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18597 hardcode_into_libs
=yes
18598 dynamic_linker
="$host_os dld.sl"
18599 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
18600 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18601 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18602 soname_spec
='${libname}${release}${shared_ext}$major'
18603 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18604 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18608 dynamic_linker
="$host_os dld.sl"
18609 shlibpath_var
=SHLIB_PATH
18610 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
18611 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18612 soname_spec
='${libname}${release}${shared_ext}$major'
18615 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18616 postinstall_cmds
='chmod 555 $lib'
18623 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18624 soname_spec
='${libname}${release}${shared_ext}$major'
18625 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
18626 shlibpath_var
=LD_LIBRARY_PATH
18627 shlibpath_overrides_runpath
=no
18628 hardcode_into_libs
=yes
18631 irix5
* | irix6
* | nonstopux
*)
18633 nonstopux
*) version_type
=nonstopux
;;
18635 if test "$lt_cv_prog_gnu_ld" = yes; then
18643 soname_spec
='${libname}${release}${shared_ext}$major'
18644 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18646 irix5
* | nonstopux
*)
18647 libsuff
= shlibsuff
=
18650 case $LD in # libtool.m4 will add one of these switches to LD
18651 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
18652 libsuff
= shlibsuff
= libmagic
=32-bit;;
18653 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
18654 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
18655 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
18656 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
18657 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
18661 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
18662 shlibpath_overrides_runpath
=no
18663 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18664 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
18665 hardcode_into_libs
=yes
18668 # No shared lib support for Linux oldld, aout, or coff.
18669 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
18673 # This must be Linux ELF.
18674 linux
* | k
*bsd
*-gnu)
18678 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18679 soname_spec
='${libname}${release}${shared_ext}$major'
18680 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18681 shlibpath_var
=LD_LIBRARY_PATH
18682 shlibpath_overrides_runpath
=no
18683 # This implies no fast_install, which is unacceptable.
18684 # Some rework will be needed to allow for fast_install
18685 # before this can be enabled.
18686 hardcode_into_libs
=yes
18688 # Append ld.so.conf contents to the search path
18689 if test -f /etc
/ld.so.conf
; then
18690 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' ' '`
18691 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
18694 # We used to test for /lib/ld.so.1 and disable shared libraries on
18695 # powerpc, because MkLinux only supported shared libraries with the
18696 # GNU dynamic linker. Since this was broken with cross compilers,
18697 # most powerpc-linux boxes support dynamic linking these days and
18698 # people can always --disable-shared, the test was removed, and we
18699 # assume the GNU/Linux dynamic linker is in use.
18700 dynamic_linker
='GNU/Linux ld.so'
18707 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18708 soname_spec
='${libname}${release}${shared_ext}$major'
18709 shlibpath_var
=LD_LIBRARY_PATH
18710 shlibpath_overrides_runpath
=no
18711 hardcode_into_libs
=yes
18712 dynamic_linker
='NetBSD ld.elf_so'
18719 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
18720 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18721 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18722 dynamic_linker
='NetBSD (a.out) ld.so'
18724 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18725 soname_spec
='${libname}${release}${shared_ext}$major'
18726 dynamic_linker
='NetBSD ld.elf_so'
18728 shlibpath_var
=LD_LIBRARY_PATH
18729 shlibpath_overrides_runpath
=yes
18730 hardcode_into_libs
=yes
18735 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18736 shlibpath_var
=LD_LIBRARY_PATH
18737 shlibpath_overrides_runpath
=yes
18744 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18745 soname_spec
='${libname}${release}${shared_ext}$major'
18746 shlibpath_var
=LD_LIBRARY_PATH
18747 shlibpath_overrides_runpath
=yes
18752 sys_lib_dlsearch_path_spec
="/usr/lib"
18754 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18756 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
18757 *) need_version
=no
;;
18759 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18760 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18761 shlibpath_var
=LD_LIBRARY_PATH
18762 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18764 openbsd2.
[89] | openbsd2.
[89].
*)
18765 shlibpath_overrides_runpath
=no
18768 shlibpath_overrides_runpath
=yes
18772 shlibpath_overrides_runpath
=yes
18777 libname_spec
='$name'
18780 library_names_spec
='$libname${shared_ext} $libname.a'
18781 dynamic_linker
='OS/2 ld.exe'
18782 shlibpath_var
=LIBPATH
18785 osf3
* | osf4
* | osf5
*)
18789 soname_spec
='${libname}${release}${shared_ext}$major'
18790 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18791 shlibpath_var
=LD_LIBRARY_PATH
18792 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18793 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
18804 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18805 soname_spec
='${libname}${release}${shared_ext}$major'
18806 shlibpath_var
=LD_LIBRARY_PATH
18807 shlibpath_overrides_runpath
=yes
18808 hardcode_into_libs
=yes
18809 # ldd complains unless libraries are executable
18810 postinstall_cmds
='chmod +x $lib'
18815 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18816 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18817 shlibpath_var
=LD_LIBRARY_PATH
18818 shlibpath_overrides_runpath
=yes
18819 if test "$with_gnu_ld" = yes; then
18827 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18828 soname_spec
='${libname}${release}${shared_ext}$major'
18829 shlibpath_var
=LD_LIBRARY_PATH
18830 case $host_vendor in
18832 shlibpath_overrides_runpath
=no
18834 export_dynamic_flag_spec
='${wl}-Blargedynsym'
18835 runpath_var
=LD_RUN_PATH
18843 shlibpath_overrides_runpath
=no
18844 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
18850 if test -d /usr
/nec
;then
18852 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18853 soname_spec
='$libname${shared_ext}.$major'
18854 shlibpath_var
=LD_LIBRARY_PATH
18858 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
18859 version_type
=freebsd-elf
18862 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18863 soname_spec
='${libname}${release}${shared_ext}$major'
18864 shlibpath_var
=LD_LIBRARY_PATH
18865 hardcode_into_libs
=yes
18866 if test "$with_gnu_ld" = yes; then
18867 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18868 shlibpath_overrides_runpath
=no
18870 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
18871 shlibpath_overrides_runpath
=yes
18874 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
18878 sys_lib_dlsearch_path_spec
='/usr/lib'
18883 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18884 soname_spec
='${libname}${release}${shared_ext}$major'
18885 shlibpath_var
=LD_LIBRARY_PATH
18892 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18893 echo "${ECHO_T}$dynamic_linker" >&6; }
18894 test "$dynamic_linker" = no
&& can_build_shared
=no
18896 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
18897 if test "$GCC" = yes; then
18898 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18901 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18902 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18903 hardcode_action_GCJ
=
18904 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18905 test -n "$runpath_var_GCJ" || \
18906 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18908 # We can hardcode non-existant directories.
18909 if test "$hardcode_direct_GCJ" != no
&&
18910 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18911 # have to relink, otherwise we might link with an installed library
18912 # when we should be linking with a yet-to-be-installed one
18913 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18914 test "$hardcode_minus_L_GCJ" != no
; then
18915 # Linking always hardcodes the temporary library directory.
18916 hardcode_action_GCJ
=relink
18918 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18919 hardcode_action_GCJ
=immediate
18922 # We cannot hardcode anything, or else we can only hardcode existing
18924 hardcode_action_GCJ
=unsupported
18926 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18927 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18929 if test "$hardcode_action_GCJ" = relink
; then
18930 # Fast installation is not supported
18931 enable_fast_install
=no
18932 elif test "$shlibpath_overrides_runpath" = yes ||
18933 test "$enable_shared" = no
; then
18934 # Fast installation is not necessary
18935 enable_fast_install
=needless
18939 # The else clause should only fire when bootstrapping the
18940 # libtool distribution, otherwise you forgot to ship ltmain.sh
18941 # with your package, and you will get complaints that there are
18942 # no rules to generate ltmain.sh.
18943 if test -f "$ltmain"; then
18944 # See if we are running on zsh, and set the options which allow our commands through
18945 # without removal of \ escapes.
18946 if test -n "${ZSH_VERSION+set}" ; then
18947 setopt NO_GLOB_SUBST
18949 # Now quote all the things that may contain metacharacters while being
18950 # careful not to overquote the AC_SUBSTed values. We take copies of the
18951 # variables and quote the copies for generation of the libtool script.
18952 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18954 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18955 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18956 deplibs_check_method reload_flag reload_cmds need_locks \
18957 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18958 lt_cv_sys_global_symbol_to_c_name_address \
18959 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18960 old_postinstall_cmds old_postuninstall_cmds \
18964 lt_prog_compiler_wl_GCJ \
18965 lt_prog_compiler_pic_GCJ \
18966 lt_prog_compiler_static_GCJ \
18967 lt_prog_compiler_no_builtin_flag_GCJ \
18968 export_dynamic_flag_spec_GCJ \
18969 thread_safe_flag_spec_GCJ \
18970 whole_archive_flag_spec_GCJ \
18971 enable_shared_with_static_runtimes_GCJ \
18972 old_archive_cmds_GCJ \
18973 old_archive_from_new_cmds_GCJ \
18974 predep_objects_GCJ \
18975 postdep_objects_GCJ \
18978 compiler_lib_search_path_GCJ \
18980 archive_expsym_cmds_GCJ \
18981 postinstall_cmds_GCJ \
18982 postuninstall_cmds_GCJ \
18983 old_archive_from_expsyms_cmds_GCJ \
18984 allow_undefined_flag_GCJ \
18985 no_undefined_flag_GCJ \
18986 export_symbols_cmds_GCJ \
18987 hardcode_libdir_flag_spec_GCJ \
18988 hardcode_libdir_flag_spec_ld_GCJ \
18989 hardcode_libdir_separator_GCJ \
18990 hardcode_automatic_GCJ \
18992 module_expsym_cmds_GCJ \
18993 lt_cv_prog_compiler_c_o_GCJ \
18994 fix_srcfile_path_GCJ \
18995 exclude_expsyms_GCJ \
18996 include_expsyms_GCJ
; do
18999 old_archive_cmds_GCJ | \
19000 old_archive_from_new_cmds_GCJ | \
19001 archive_cmds_GCJ | \
19002 archive_expsym_cmds_GCJ | \
19003 module_cmds_GCJ | \
19004 module_expsym_cmds_GCJ | \
19005 old_archive_from_expsyms_cmds_GCJ | \
19006 export_symbols_cmds_GCJ | \
19007 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19008 postinstall_cmds | postuninstall_cmds | \
19009 old_postinstall_cmds | old_postuninstall_cmds | \
19010 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
19011 # Double-quote double-evaled strings.
19012 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19015 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19021 *'\$0 --fallback-echo"')
19022 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19028 cat <<__EOF__ >> "$cfgfile"
19029 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19031 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19033 # Shell to use when invoking shell scripts.
19036 # Whether or not to build shared libraries.
19037 build_libtool_libs=$enable_shared
19039 # Whether or not to build static libraries.
19040 build_old_libs=$enable_static
19042 # Whether or not to add -lc for building shared libraries.
19043 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19045 # Whether or not to disallow shared libs when runtime libs are static
19046 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19048 # Whether or not to optimize for fast installation.
19049 fast_install=$enable_fast_install
19052 host_alias=$host_alias
19056 # The build system.
19057 build_alias=$build_alias
19061 # An echo program that does not interpret backslashes.
19066 AR_FLAGS=$lt_AR_FLAGS
19071 # LTCC compiler flags.
19072 LTCFLAGS=$lt_LTCFLAGS
19074 # A language-specific compiler.
19075 CC=$lt_compiler_GCJ
19077 # Is the compiler the GNU C compiler?
19083 # The linker used to build libraries.
19086 # Whether we need hard or soft links.
19089 # A BSD-compatible nm program.
19092 # A symbol stripping program
19095 # Used to examine libraries when file_magic_cmd begins "file"
19096 MAGIC_CMD=$MAGIC_CMD
19098 # Used on cygwin: DLL creation program.
19101 # Used on cygwin: object dumper.
19104 # Used on cygwin: assembler.
19107 # The name of the directory that contains temporary libtool files.
19110 # How to create reloadable object files.
19111 reload_flag=$lt_reload_flag
19112 reload_cmds=$lt_reload_cmds
19114 # How to pass a linker flag through the compiler.
19115 wl=$lt_lt_prog_compiler_wl_GCJ
19117 # Object file suffix (normally "o").
19118 objext="$ac_objext"
19120 # Old archive suffix (normally "a").
19123 # Shared library suffix (normally ".so").
19124 shrext_cmds='$shrext_cmds'
19126 # Executable file suffix (normally "").
19129 # Additional compiler flags for building library objects.
19130 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19133 # What is the maximum length of a command?
19134 max_cmd_len=$lt_cv_sys_max_cmd_len
19136 # Does compiler simultaneously support -c and -o options?
19137 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19139 # Must we lock files when doing compilation?
19140 need_locks=$lt_need_locks
19142 # Do we need the lib prefix for modules?
19143 need_lib_prefix=$need_lib_prefix
19145 # Do we need a version for libraries?
19146 need_version=$need_version
19148 # Whether dlopen is supported.
19149 dlopen_support=$enable_dlopen
19151 # Whether dlopen of programs is supported.
19152 dlopen_self=$enable_dlopen_self
19154 # Whether dlopen of statically linked programs is supported.
19155 dlopen_self_static=$enable_dlopen_self_static
19157 # Compiler flag to prevent dynamic linking.
19158 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19160 # Compiler flag to turn off builtin functions.
19161 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19163 # Compiler flag to allow reflexive dlopens.
19164 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19166 # Compiler flag to generate shared objects directly from archives.
19167 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19169 # Compiler flag to generate thread-safe objects.
19170 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19172 # Library versioning type.
19173 version_type=$version_type
19175 # Format of library name prefix.
19176 libname_spec=$lt_libname_spec
19178 # List of archive names. First name is the real one, the rest are links.
19179 # The last name is the one that the linker finds with -lNAME.
19180 library_names_spec=$lt_library_names_spec
19182 # The coded name of the library, if different from the real name.
19183 soname_spec=$lt_soname_spec
19185 # Commands used to build and install an old-style archive.
19187 old_archive_cmds=$lt_old_archive_cmds_GCJ
19188 old_postinstall_cmds=$lt_old_postinstall_cmds
19189 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19191 # Create an old-style archive from a shared archive.
19192 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19194 # Create a temporary old-style archive to link instead of a shared archive.
19195 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19197 # Commands used to build and install a shared archive.
19198 archive_cmds=$lt_archive_cmds_GCJ
19199 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19200 postinstall_cmds=$lt_postinstall_cmds
19201 postuninstall_cmds=$lt_postuninstall_cmds
19203 # Commands used to build a loadable module (assumed same as above if empty)
19204 module_cmds=$lt_module_cmds_GCJ
19205 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19207 # Commands to strip libraries.
19208 old_striplib=$lt_old_striplib
19209 striplib=$lt_striplib
19211 # Dependencies to place before the objects being linked to create a
19213 predep_objects=$lt_predep_objects_GCJ
19215 # Dependencies to place after the objects being linked to create a
19217 postdep_objects=$lt_postdep_objects_GCJ
19219 # Dependencies to place before the objects being linked to create a
19221 predeps=$lt_predeps_GCJ
19223 # Dependencies to place after the objects being linked to create a
19225 postdeps=$lt_postdeps_GCJ
19227 # The library search path used internally by the compiler when linking
19228 # a shared library.
19229 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19231 # Method to check whether dependent libraries are shared objects.
19232 deplibs_check_method=$lt_deplibs_check_method
19234 # Command to use when deplibs_check_method == file_magic.
19235 file_magic_cmd=$lt_file_magic_cmd
19237 # Flag that allows shared libraries with undefined symbols to be built.
19238 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19240 # Flag that forces no undefined symbols.
19241 no_undefined_flag=$lt_no_undefined_flag_GCJ
19243 # Commands used to finish a libtool library installation in a directory.
19244 finish_cmds=$lt_finish_cmds
19246 # Same as above, but a single script fragment to be evaled but not shown.
19247 finish_eval=$lt_finish_eval
19249 # Take the output of nm and produce a listing of raw symbols and C names.
19250 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19252 # Transform the output of nm in a proper C declaration
19253 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19255 # Transform the output of nm in a C name address pair
19256 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19258 # This is the shared library runtime path variable.
19259 runpath_var=$runpath_var
19261 # This is the shared library path variable.
19262 shlibpath_var=$shlibpath_var
19264 # Is shlibpath searched before the hard-coded library search path?
19265 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19267 # How to hardcode a shared library path into an executable.
19268 hardcode_action=$hardcode_action_GCJ
19270 # Whether we should hardcode library paths into libraries.
19271 hardcode_into_libs=$hardcode_into_libs
19273 # Flag to hardcode \$libdir into a binary during linking.
19274 # This must work even if \$libdir does not exist.
19275 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19277 # If ld is used when linking, flag to hardcode \$libdir into
19278 # a binary during linking. This must work even if \$libdir does
19280 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19282 # Whether we need a single -rpath flag with a separated argument.
19283 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19285 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19286 # resulting binary.
19287 hardcode_direct=$hardcode_direct_GCJ
19289 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19290 # resulting binary.
19291 hardcode_minus_L=$hardcode_minus_L_GCJ
19293 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19294 # the resulting binary.
19295 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19297 # Set to yes if building a shared library automatically hardcodes DIR into the library
19298 # and all subsequent libraries and executables linked against it.
19299 hardcode_automatic=$hardcode_automatic_GCJ
19301 # Variables whose values should be saved in libtool wrapper scripts and
19302 # restored at relink time.
19303 variables_saved_for_relink="$variables_saved_for_relink"
19305 # Whether libtool must link a program against all its dependency libraries.
19306 link_all_deplibs=$link_all_deplibs_GCJ
19308 # Compile-time system search path for libraries
19309 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19311 # Run-time system search path for libraries
19312 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19314 # Fix the shell variable \$srcfile for the compiler.
19315 fix_srcfile_path=$lt_fix_srcfile_path
19317 # Set to yes if exported symbols are required.
19318 always_export_symbols=$always_export_symbols_GCJ
19320 # The commands to list exported symbols.
19321 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19323 # The commands to extract the exported symbol list from a shared archive.
19324 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19326 # Symbols that should not be listed in the preloaded symbols.
19327 exclude_expsyms=$lt_exclude_expsyms_GCJ
19329 # Symbols that must always be exported.
19330 include_expsyms=$lt_include_expsyms_GCJ
19332 # ### END LIBTOOL TAG CONFIG: $tagname
19338 # If there is no Makefile yet, we rely on a make rule to execute
19339 # `config.status --recheck' to rerun these tests and create the
19340 # libtool script then.
19341 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19342 if test -f "$ltmain_in"; then
19343 test -f Makefile
&& make "$ltmain"
19349 ac_cpp
='$CPP $CPPFLAGS'
19350 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19351 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19352 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19364 # Source file extension for RC test sources.
19367 # Object file extension for compiled RC test sources.
19371 # Code to be used in simple compile tests
19372 lt_simple_compile_test_code
='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19374 # Code to be used in simple link tests
19375 lt_simple_link_test_code
="$lt_simple_compile_test_code"
19377 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19379 # If no C compiler was specified, use CC.
19382 # If no C compiler flags were specified, use CFLAGS.
19383 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
19385 # Allow CC to be a program name with arguments.
19389 # save warnings/boilerplate of simple test code
19390 ac_outfile
=conftest.
$ac_objext
19391 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
19392 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
19393 _lt_compiler_boilerplate
=`cat conftest.err`
19396 ac_outfile
=conftest.
$ac_objext
19397 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
19398 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
19399 _lt_linker_boilerplate
=`cat conftest.err`
19403 # Allow CC to be a program name with arguments.
19408 for cc_temp
in $compiler""; do
19410 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
19411 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
19416 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19418 lt_cv_prog_compiler_c_o_RC
=yes
19420 # The else clause should only fire when bootstrapping the
19421 # libtool distribution, otherwise you forgot to ship ltmain.sh
19422 # with your package, and you will get complaints that there are
19423 # no rules to generate ltmain.sh.
19424 if test -f "$ltmain"; then
19425 # See if we are running on zsh, and set the options which allow our commands through
19426 # without removal of \ escapes.
19427 if test -n "${ZSH_VERSION+set}" ; then
19428 setopt NO_GLOB_SUBST
19430 # Now quote all the things that may contain metacharacters while being
19431 # careful not to overquote the AC_SUBSTed values. We take copies of the
19432 # variables and quote the copies for generation of the libtool script.
19433 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19435 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19436 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19437 deplibs_check_method reload_flag reload_cmds need_locks \
19438 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19439 lt_cv_sys_global_symbol_to_c_name_address \
19440 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19441 old_postinstall_cmds old_postuninstall_cmds \
19445 lt_prog_compiler_wl_RC \
19446 lt_prog_compiler_pic_RC \
19447 lt_prog_compiler_static_RC \
19448 lt_prog_compiler_no_builtin_flag_RC \
19449 export_dynamic_flag_spec_RC \
19450 thread_safe_flag_spec_RC \
19451 whole_archive_flag_spec_RC \
19452 enable_shared_with_static_runtimes_RC \
19453 old_archive_cmds_RC \
19454 old_archive_from_new_cmds_RC \
19455 predep_objects_RC \
19456 postdep_objects_RC \
19459 compiler_lib_search_path_RC \
19461 archive_expsym_cmds_RC \
19462 postinstall_cmds_RC \
19463 postuninstall_cmds_RC \
19464 old_archive_from_expsyms_cmds_RC \
19465 allow_undefined_flag_RC \
19466 no_undefined_flag_RC \
19467 export_symbols_cmds_RC \
19468 hardcode_libdir_flag_spec_RC \
19469 hardcode_libdir_flag_spec_ld_RC \
19470 hardcode_libdir_separator_RC \
19471 hardcode_automatic_RC \
19473 module_expsym_cmds_RC \
19474 lt_cv_prog_compiler_c_o_RC \
19475 fix_srcfile_path_RC \
19476 exclude_expsyms_RC \
19477 include_expsyms_RC
; do
19480 old_archive_cmds_RC | \
19481 old_archive_from_new_cmds_RC | \
19482 archive_cmds_RC | \
19483 archive_expsym_cmds_RC | \
19485 module_expsym_cmds_RC | \
19486 old_archive_from_expsyms_cmds_RC | \
19487 export_symbols_cmds_RC | \
19488 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19489 postinstall_cmds | postuninstall_cmds | \
19490 old_postinstall_cmds | old_postuninstall_cmds | \
19491 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
19492 # Double-quote double-evaled strings.
19493 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19496 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19502 *'\$0 --fallback-echo"')
19503 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19509 cat <<__EOF__ >> "$cfgfile"
19510 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19512 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19514 # Shell to use when invoking shell scripts.
19517 # Whether or not to build shared libraries.
19518 build_libtool_libs=$enable_shared
19520 # Whether or not to build static libraries.
19521 build_old_libs=$enable_static
19523 # Whether or not to add -lc for building shared libraries.
19524 build_libtool_need_lc=$archive_cmds_need_lc_RC
19526 # Whether or not to disallow shared libs when runtime libs are static
19527 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19529 # Whether or not to optimize for fast installation.
19530 fast_install=$enable_fast_install
19533 host_alias=$host_alias
19537 # The build system.
19538 build_alias=$build_alias
19542 # An echo program that does not interpret backslashes.
19547 AR_FLAGS=$lt_AR_FLAGS
19552 # LTCC compiler flags.
19553 LTCFLAGS=$lt_LTCFLAGS
19555 # A language-specific compiler.
19558 # Is the compiler the GNU C compiler?
19564 # The linker used to build libraries.
19567 # Whether we need hard or soft links.
19570 # A BSD-compatible nm program.
19573 # A symbol stripping program
19576 # Used to examine libraries when file_magic_cmd begins "file"
19577 MAGIC_CMD=$MAGIC_CMD
19579 # Used on cygwin: DLL creation program.
19582 # Used on cygwin: object dumper.
19585 # Used on cygwin: assembler.
19588 # The name of the directory that contains temporary libtool files.
19591 # How to create reloadable object files.
19592 reload_flag=$lt_reload_flag
19593 reload_cmds=$lt_reload_cmds
19595 # How to pass a linker flag through the compiler.
19596 wl=$lt_lt_prog_compiler_wl_RC
19598 # Object file suffix (normally "o").
19599 objext="$ac_objext"
19601 # Old archive suffix (normally "a").
19604 # Shared library suffix (normally ".so").
19605 shrext_cmds='$shrext_cmds'
19607 # Executable file suffix (normally "").
19610 # Additional compiler flags for building library objects.
19611 pic_flag=$lt_lt_prog_compiler_pic_RC
19614 # What is the maximum length of a command?
19615 max_cmd_len=$lt_cv_sys_max_cmd_len
19617 # Does compiler simultaneously support -c and -o options?
19618 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19620 # Must we lock files when doing compilation?
19621 need_locks=$lt_need_locks
19623 # Do we need the lib prefix for modules?
19624 need_lib_prefix=$need_lib_prefix
19626 # Do we need a version for libraries?
19627 need_version=$need_version
19629 # Whether dlopen is supported.
19630 dlopen_support=$enable_dlopen
19632 # Whether dlopen of programs is supported.
19633 dlopen_self=$enable_dlopen_self
19635 # Whether dlopen of statically linked programs is supported.
19636 dlopen_self_static=$enable_dlopen_self_static
19638 # Compiler flag to prevent dynamic linking.
19639 link_static_flag=$lt_lt_prog_compiler_static_RC
19641 # Compiler flag to turn off builtin functions.
19642 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19644 # Compiler flag to allow reflexive dlopens.
19645 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19647 # Compiler flag to generate shared objects directly from archives.
19648 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19650 # Compiler flag to generate thread-safe objects.
19651 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19653 # Library versioning type.
19654 version_type=$version_type
19656 # Format of library name prefix.
19657 libname_spec=$lt_libname_spec
19659 # List of archive names. First name is the real one, the rest are links.
19660 # The last name is the one that the linker finds with -lNAME.
19661 library_names_spec=$lt_library_names_spec
19663 # The coded name of the library, if different from the real name.
19664 soname_spec=$lt_soname_spec
19666 # Commands used to build and install an old-style archive.
19668 old_archive_cmds=$lt_old_archive_cmds_RC
19669 old_postinstall_cmds=$lt_old_postinstall_cmds
19670 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19672 # Create an old-style archive from a shared archive.
19673 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19675 # Create a temporary old-style archive to link instead of a shared archive.
19676 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19678 # Commands used to build and install a shared archive.
19679 archive_cmds=$lt_archive_cmds_RC
19680 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19681 postinstall_cmds=$lt_postinstall_cmds
19682 postuninstall_cmds=$lt_postuninstall_cmds
19684 # Commands used to build a loadable module (assumed same as above if empty)
19685 module_cmds=$lt_module_cmds_RC
19686 module_expsym_cmds=$lt_module_expsym_cmds_RC
19688 # Commands to strip libraries.
19689 old_striplib=$lt_old_striplib
19690 striplib=$lt_striplib
19692 # Dependencies to place before the objects being linked to create a
19694 predep_objects=$lt_predep_objects_RC
19696 # Dependencies to place after the objects being linked to create a
19698 postdep_objects=$lt_postdep_objects_RC
19700 # Dependencies to place before the objects being linked to create a
19702 predeps=$lt_predeps_RC
19704 # Dependencies to place after the objects being linked to create a
19706 postdeps=$lt_postdeps_RC
19708 # The library search path used internally by the compiler when linking
19709 # a shared library.
19710 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19712 # Method to check whether dependent libraries are shared objects.
19713 deplibs_check_method=$lt_deplibs_check_method
19715 # Command to use when deplibs_check_method == file_magic.
19716 file_magic_cmd=$lt_file_magic_cmd
19718 # Flag that allows shared libraries with undefined symbols to be built.
19719 allow_undefined_flag=$lt_allow_undefined_flag_RC
19721 # Flag that forces no undefined symbols.
19722 no_undefined_flag=$lt_no_undefined_flag_RC
19724 # Commands used to finish a libtool library installation in a directory.
19725 finish_cmds=$lt_finish_cmds
19727 # Same as above, but a single script fragment to be evaled but not shown.
19728 finish_eval=$lt_finish_eval
19730 # Take the output of nm and produce a listing of raw symbols and C names.
19731 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19733 # Transform the output of nm in a proper C declaration
19734 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19736 # Transform the output of nm in a C name address pair
19737 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19739 # This is the shared library runtime path variable.
19740 runpath_var=$runpath_var
19742 # This is the shared library path variable.
19743 shlibpath_var=$shlibpath_var
19745 # Is shlibpath searched before the hard-coded library search path?
19746 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19748 # How to hardcode a shared library path into an executable.
19749 hardcode_action=$hardcode_action_RC
19751 # Whether we should hardcode library paths into libraries.
19752 hardcode_into_libs=$hardcode_into_libs
19754 # Flag to hardcode \$libdir into a binary during linking.
19755 # This must work even if \$libdir does not exist.
19756 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19758 # If ld is used when linking, flag to hardcode \$libdir into
19759 # a binary during linking. This must work even if \$libdir does
19761 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19763 # Whether we need a single -rpath flag with a separated argument.
19764 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19766 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19767 # resulting binary.
19768 hardcode_direct=$hardcode_direct_RC
19770 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19771 # resulting binary.
19772 hardcode_minus_L=$hardcode_minus_L_RC
19774 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19775 # the resulting binary.
19776 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19778 # Set to yes if building a shared library automatically hardcodes DIR into the library
19779 # and all subsequent libraries and executables linked against it.
19780 hardcode_automatic=$hardcode_automatic_RC
19782 # Variables whose values should be saved in libtool wrapper scripts and
19783 # restored at relink time.
19784 variables_saved_for_relink="$variables_saved_for_relink"
19786 # Whether libtool must link a program against all its dependency libraries.
19787 link_all_deplibs=$link_all_deplibs_RC
19789 # Compile-time system search path for libraries
19790 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19792 # Run-time system search path for libraries
19793 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19795 # Fix the shell variable \$srcfile for the compiler.
19796 fix_srcfile_path=$lt_fix_srcfile_path
19798 # Set to yes if exported symbols are required.
19799 always_export_symbols=$always_export_symbols_RC
19801 # The commands to list exported symbols.
19802 export_symbols_cmds=$lt_export_symbols_cmds_RC
19804 # The commands to extract the exported symbol list from a shared archive.
19805 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19807 # Symbols that should not be listed in the preloaded symbols.
19808 exclude_expsyms=$lt_exclude_expsyms_RC
19810 # Symbols that must always be exported.
19811 include_expsyms=$lt_include_expsyms_RC
19813 # ### END LIBTOOL TAG CONFIG: $tagname
19819 # If there is no Makefile yet, we rely on a make rule to execute
19820 # `config.status --recheck' to rerun these tests and create the
19821 # libtool script then.
19822 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19823 if test -f "$ltmain_in"; then
19824 test -f Makefile
&& make "$ltmain"
19830 ac_cpp
='$CPP $CPPFLAGS'
19831 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19832 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19833 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19840 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19841 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19842 { (exit 1); exit 1; }; }
19846 # Append the new tag name to the list of available tags.
19847 if test -n "$tagname" ; then
19848 available_tags
="$available_tags $tagname"
19854 # Now substitute the updated list of available tags.
19855 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19856 mv "${ofile}T" "$ofile"
19860 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19861 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19862 { (exit 1); exit 1; }; }
19868 # This can be used to rebuild libtool when needed
19869 LIBTOOL_DEPS
="$ac_aux_dir/ltmain.sh"
19871 # Always use our own libtool.
19872 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
19874 # Prevent multiple expansion
19902 ac_header_dirent
=no
19903 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
19904 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19905 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19906 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
19907 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19908 echo $ECHO_N "(cached) $ECHO_C" >&6
19910 cat >conftest.
$ac_ext <<_ACEOF
19913 cat confdefs.h
>>conftest.
$ac_ext
19914 cat >>conftest.
$ac_ext <<_ACEOF
19915 /* end confdefs.h. */
19916 #include <sys/types.h>
19928 rm -f conftest.
$ac_objext
19929 if { (ac_try
="$ac_compile"
19930 case "(($ac_try" in
19931 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19932 *) ac_try_echo=$ac_try;;
19934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19935 (eval "$ac_compile") 2>conftest.er1
19937 grep -v '^ *+' conftest.er1 >conftest.err
19939 cat conftest.err >&5
19940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941 (exit $ac_status); } && {
19942 test -z "$ac_c_werror_flag" ||
19943 test ! -s conftest.err
19944 } && test -s conftest.$ac_objext; then
19945 eval "$as_ac_Header=yes"
19947 echo "$as_me: failed program was:" >&5
19948 sed 's/^/| /' conftest.$ac_ext >&5
19950 eval "$as_ac_Header=no"
19953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19955 ac_res=`eval echo '${'$as_ac_Header'}'`
19956 { echo "$as_me:$LINENO: result: $ac_res" >&5
19957 echo "${ECHO_T}$ac_res" >&6; }
19958 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19959 cat >>confdefs.h <<_ACEOF
19960 #define `echo "HAVE_$ac_hdr" |
$as_tr_cpp` 1
19963 ac_header_dirent=$ac_hdr; break
19967 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19968 if test $ac_header_dirent = dirent.h; then
19969 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
19970 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
19971 if test "${ac_cv_search_opendir+set}" = set; then
19972 echo $ECHO_N "(cached) $ECHO_C" >&6
19974 ac_func_search_save_LIBS=$LIBS
19975 cat >conftest.$ac_ext <<_ACEOF
19978 cat confdefs.h >>conftest.$ac_ext
19979 cat >>conftest.$ac_ext <<_ACEOF
19980 /* end confdefs.h. */
19982 /* Override any GCC internal prototype to avoid an error.
19983 Use char because int might match the return type of a GCC
19984 builtin and then its argument prototype would still apply. */
19997 for ac_lib in '' dir; do
19998 if test -z "$ac_lib"; then
19999 ac_res="none required"
20002 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20004 rm -f conftest.$ac_objext conftest$ac_exeext
20005 if { (ac_try="$ac_link"
20006 case "(($ac_try" in
20007 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20008 *) ac_try_echo
=$ac_try;;
20010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20011 (eval "$ac_link") 2>conftest.er1
20013 grep -v '^ *+' conftest.er1
>conftest.err
20015 cat conftest.err
>&5
20016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20017 (exit $ac_status); } && {
20018 test -z "$ac_c_werror_flag" ||
20019 test ! -s conftest.err
20020 } && test -s conftest
$ac_exeext &&
20021 $as_test_x conftest
$ac_exeext; then
20022 ac_cv_search_opendir
=$ac_res
20024 echo "$as_me: failed program was:" >&5
20025 sed 's/^/| /' conftest.
$ac_ext >&5
20030 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20032 if test "${ac_cv_search_opendir+set}" = set; then
20036 if test "${ac_cv_search_opendir+set}" = set; then
20039 ac_cv_search_opendir
=no
20041 rm conftest.
$ac_ext
20042 LIBS
=$ac_func_search_save_LIBS
20044 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20045 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20046 ac_res
=$ac_cv_search_opendir
20047 if test "$ac_res" != no
; then
20048 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
20053 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20054 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20055 if test "${ac_cv_search_opendir+set}" = set; then
20056 echo $ECHO_N "(cached) $ECHO_C" >&6
20058 ac_func_search_save_LIBS
=$LIBS
20059 cat >conftest.
$ac_ext <<_ACEOF
20062 cat confdefs.h
>>conftest.
$ac_ext
20063 cat >>conftest.
$ac_ext <<_ACEOF
20064 /* end confdefs.h. */
20066 /* Override any GCC internal prototype to avoid an error.
20067 Use char because int might match the return type of a GCC
20068 builtin and then its argument prototype would still apply. */
20081 for ac_lib
in '' x
; do
20082 if test -z "$ac_lib"; then
20083 ac_res
="none required"
20086 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
20088 rm -f conftest.
$ac_objext conftest
$ac_exeext
20089 if { (ac_try
="$ac_link"
20090 case "(($ac_try" in
20091 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20092 *) ac_try_echo=$ac_try;;
20094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20095 (eval "$ac_link") 2>conftest.er1
20097 grep -v '^ *+' conftest.er1 >conftest.err
20099 cat conftest.err >&5
20100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101 (exit $ac_status); } && {
20102 test -z "$ac_c_werror_flag" ||
20103 test ! -s conftest.err
20104 } && test -s conftest$ac_exeext &&
20105 $as_test_x conftest$ac_exeext; then
20106 ac_cv_search_opendir=$ac_res
20108 echo "$as_me: failed program was:" >&5
20109 sed 's/^/| /' conftest.$ac_ext >&5
20114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20116 if test "${ac_cv_search_opendir+set}" = set; then
20120 if test "${ac_cv_search_opendir+set}" = set; then
20123 ac_cv_search_opendir=no
20125 rm conftest.$ac_ext
20126 LIBS=$ac_func_search_save_LIBS
20128 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20129 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20130 ac_res=$ac_cv_search_opendir
20131 if test "$ac_res" != no; then
20132 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20138 # Check whether --enable-ltdl-install was given.
20139 if test "${enable_ltdl_install+set}" = set; then
20140 enableval=$enable_ltdl_install;
20144 if test x"${enable_ltdl_install-no}" != xno; then
20146 INSTALL_LTDL_FALSE='#'
20148 INSTALL_LTDL_TRUE='#'
20149 INSTALL_LTDL_FALSE=
20152 if test x"${enable_ltdl_convenience-no}" != xno; then
20153 CONVENIENCE_LTDL_TRUE=
20154 CONVENIENCE_LTDL_FALSE='#'
20156 CONVENIENCE_LTDL_TRUE='#'
20157 CONVENIENCE_LTDL_FALSE=
20162 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
20163 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
20164 if test "${libltdl_cv_shlibext+set}" = set; then
20165 echo $ECHO_N "(cached) $ECHO_C" >&6
20169 eval libltdl_cv_shlibext=$shrext_cmds
20172 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
20173 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
20174 if test -n "$libltdl_cv_shlibext"; then
20176 cat >>confdefs.h <<_ACEOF
20177 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
20183 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
20184 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
20185 if test "${libltdl_cv_shlibpath_var+set}" = set; then
20186 echo $ECHO_N "(cached) $ECHO_C" >&6
20188 libltdl_cv_shlibpath_var="$shlibpath_var"
20190 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
20191 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
20192 if test -n "$libltdl_cv_shlibpath_var"; then
20194 cat >>confdefs.h <<_ACEOF
20195 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
20201 { echo "$as_me:$LINENO: checking for the default library search path" >&5
20202 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
20203 if test "${libltdl_cv_sys_search_path+set}" = set; then
20204 echo $ECHO_N "(cached) $ECHO_C" >&6
20206 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
20208 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
20209 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
20210 if test -n "$libltdl_cv_sys_search_path"; then
20212 for dir in $libltdl_cv_sys_search_path; do
20213 if test -z "$sys_search_path"; then
20214 sys_search_path="$dir"
20216 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
20220 cat >>confdefs.h <<_ACEOF
20221 #define LTDL_SYSSEARCHPATH "$sys_search_path"
20226 { echo "$as_me:$LINENO: checking for objdir" >&5
20227 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
20228 if test "${libltdl_cv_objdir+set}" = set; then
20229 echo $ECHO_N "(cached) $ECHO_C" >&6
20231 libltdl_cv_objdir="$objdir"
20232 if test -n "$objdir"; then
20235 rm -f .libs 2>/dev/null
20236 mkdir .libs 2>/dev/null
20237 if test -d .libs; then
20238 libltdl_cv_objdir=.libs
20240 # MS-DOS does not allow filenames that begin with a dot.
20241 libltdl_cv_objdir=_libs
20243 rmdir .libs 2>/dev/null
20247 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
20248 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
20250 cat >>confdefs.h <<_ACEOF
20251 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
20256 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
20257 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
20258 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
20259 echo $ECHO_N "(cached) $ECHO_C" >&6
20261 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20262 libltdl_cv_preloaded_symbols=yes
20264 libltdl_cv_preloaded_symbols=no
20268 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
20269 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
20270 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20272 cat >>confdefs.h <<\_ACEOF
20273 #define HAVE_PRELOADED_SYMBOLS 1
20281 ac_cpp='$CPP $CPPFLAGS'
20282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20287 { echo "$as_me:$LINENO: checking for shl_load" >&5
20288 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
20289 if test "${ac_cv_func_shl_load+set}" = set; then
20290 echo $ECHO_N "(cached) $ECHO_C" >&6
20292 cat >conftest.$ac_ext <<_ACEOF
20295 cat confdefs.h >>conftest.$ac_ext
20296 cat >>conftest.$ac_ext <<_ACEOF
20297 /* end confdefs.h. */
20298 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20299 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20300 #define shl_load innocuous_shl_load
20302 /* System header to define __stub macros and hopefully few prototypes,
20303 which can conflict with char shl_load (); below.
20304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20305 <limits.h> exists even on freestanding compilers. */
20308 # include <limits.h>
20310 # include <assert.h>
20315 /* Override any GCC internal prototype to avoid an error.
20316 Use char because int might match the return type of a GCC
20317 builtin and then its argument prototype would still apply. */
20322 /* The GNU C library defines this for functions which it implements
20323 to always fail with ENOSYS. Some functions are actually named
20324 something starting with __ and the normal name is an alias. */
20325 #if defined __stub_shl_load || defined __stub___shl_load
20332 return shl_load ();
20337 rm -f conftest.$ac_objext conftest$ac_exeext
20338 if { (ac_try="$ac_link"
20339 case "(($ac_try" in
20340 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20341 *) ac_try_echo
=$ac_try;;
20343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20344 (eval "$ac_link") 2>conftest.er1
20346 grep -v '^ *+' conftest.er1
>conftest.err
20348 cat conftest.err
>&5
20349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350 (exit $ac_status); } && {
20351 test -z "$ac_c_werror_flag" ||
20352 test ! -s conftest.err
20353 } && test -s conftest
$ac_exeext &&
20354 $as_test_x conftest
$ac_exeext; then
20355 ac_cv_func_shl_load
=yes
20357 echo "$as_me: failed program was:" >&5
20358 sed 's/^/| /' conftest.
$ac_ext >&5
20360 ac_cv_func_shl_load
=no
20363 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20364 conftest
$ac_exeext conftest.
$ac_ext
20366 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20367 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
20368 if test $ac_cv_func_shl_load = yes; then
20370 cat >>confdefs.h
<<\_ACEOF
20371 #define HAVE_SHL_LOAD 1
20375 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20376 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
20377 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20378 echo $ECHO_N "(cached) $ECHO_C" >&6
20380 ac_check_lib_save_LIBS
=$LIBS
20382 cat >conftest.
$ac_ext <<_ACEOF
20385 cat confdefs.h
>>conftest.
$ac_ext
20386 cat >>conftest.
$ac_ext <<_ACEOF
20387 /* end confdefs.h. */
20389 /* Override any GCC internal prototype to avoid an error.
20390 Use char because int might match the return type of a GCC
20391 builtin and then its argument prototype would still apply. */
20399 return shl_load ();
20404 rm -f conftest.
$ac_objext conftest
$ac_exeext
20405 if { (ac_try
="$ac_link"
20406 case "(($ac_try" in
20407 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20408 *) ac_try_echo=$ac_try;;
20410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20411 (eval "$ac_link") 2>conftest.er1
20413 grep -v '^ *+' conftest.er1 >conftest.err
20415 cat conftest.err >&5
20416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417 (exit $ac_status); } && {
20418 test -z "$ac_c_werror_flag" ||
20419 test ! -s conftest.err
20420 } && test -s conftest$ac_exeext &&
20421 $as_test_x conftest$ac_exeext; then
20422 ac_cv_lib_dld_shl_load=yes
20424 echo "$as_me: failed program was:" >&5
20425 sed 's/^/| /' conftest.$ac_ext >&5
20427 ac_cv_lib_dld_shl_load=no
20430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20431 conftest$ac_exeext conftest.$ac_ext
20432 LIBS=$ac_check_lib_save_LIBS
20434 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20435 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
20436 if test $ac_cv_lib_dld_shl_load = yes; then
20438 cat >>confdefs.h <<\_ACEOF
20439 #define HAVE_SHL_LOAD 1
20442 LIBADD_DL="$LIBADD_DL -ldld"
20444 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20445 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
20446 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20447 echo $ECHO_N "(cached) $ECHO_C" >&6
20449 ac_check_lib_save_LIBS=$LIBS
20451 cat >conftest.$ac_ext <<_ACEOF
20454 cat confdefs.h >>conftest.$ac_ext
20455 cat >>conftest.$ac_ext <<_ACEOF
20456 /* end confdefs.h. */
20458 /* Override any GCC internal prototype to avoid an error.
20459 Use char because int might match the return type of a GCC
20460 builtin and then its argument prototype would still apply. */
20473 rm -f conftest.$ac_objext conftest$ac_exeext
20474 if { (ac_try="$ac_link"
20475 case "(($ac_try" in
20476 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20477 *) ac_try_echo
=$ac_try;;
20479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20480 (eval "$ac_link") 2>conftest.er1
20482 grep -v '^ *+' conftest.er1
>conftest.err
20484 cat conftest.err
>&5
20485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486 (exit $ac_status); } && {
20487 test -z "$ac_c_werror_flag" ||
20488 test ! -s conftest.err
20489 } && test -s conftest
$ac_exeext &&
20490 $as_test_x conftest
$ac_exeext; then
20491 ac_cv_lib_dl_dlopen
=yes
20493 echo "$as_me: failed program was:" >&5
20494 sed 's/^/| /' conftest.
$ac_ext >&5
20496 ac_cv_lib_dl_dlopen
=no
20499 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20500 conftest
$ac_exeext conftest.
$ac_ext
20501 LIBS
=$ac_check_lib_save_LIBS
20503 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20504 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
20505 if test $ac_cv_lib_dl_dlopen = yes; then
20507 cat >>confdefs.h
<<\_ACEOF
20508 #define HAVE_LIBDL 1
20511 LIBADD_DL
="-ldl" libltdl_cv_lib_dl_dlopen
="yes"
20513 cat >conftest.
$ac_ext <<_ACEOF
20516 cat confdefs.h
>>conftest.
$ac_ext
20517 cat >>conftest.
$ac_ext <<_ACEOF
20518 /* end confdefs.h. */
20520 # include <dlfcn.h>
20531 rm -f conftest.
$ac_objext conftest
$ac_exeext
20532 if { (ac_try
="$ac_link"
20533 case "(($ac_try" in
20534 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20535 *) ac_try_echo=$ac_try;;
20537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20538 (eval "$ac_link") 2>conftest.er1
20540 grep -v '^ *+' conftest.er1 >conftest.err
20542 cat conftest.err >&5
20543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544 (exit $ac_status); } && {
20545 test -z "$ac_c_werror_flag" ||
20546 test ! -s conftest.err
20547 } && test -s conftest$ac_exeext &&
20548 $as_test_x conftest$ac_exeext; then
20550 cat >>confdefs.h <<\_ACEOF
20551 #define HAVE_LIBDL 1
20553 libltdl_cv_func_dlopen="yes"
20555 echo "$as_me: failed program was:" >&5
20556 sed 's/^/| /' conftest.$ac_ext >&5
20558 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20559 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
20560 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20561 echo $ECHO_N "(cached) $ECHO_C" >&6
20563 ac_check_lib_save_LIBS=$LIBS
20564 LIBS="-lsvld $LIBS"
20565 cat >conftest.$ac_ext <<_ACEOF
20568 cat confdefs.h >>conftest.$ac_ext
20569 cat >>conftest.$ac_ext <<_ACEOF
20570 /* end confdefs.h. */
20572 /* Override any GCC internal prototype to avoid an error.
20573 Use char because int might match the return type of a GCC
20574 builtin and then its argument prototype would still apply. */
20587 rm -f conftest.$ac_objext conftest$ac_exeext
20588 if { (ac_try="$ac_link"
20589 case "(($ac_try" in
20590 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20591 *) ac_try_echo
=$ac_try;;
20593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20594 (eval "$ac_link") 2>conftest.er1
20596 grep -v '^ *+' conftest.er1
>conftest.err
20598 cat conftest.err
>&5
20599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600 (exit $ac_status); } && {
20601 test -z "$ac_c_werror_flag" ||
20602 test ! -s conftest.err
20603 } && test -s conftest
$ac_exeext &&
20604 $as_test_x conftest
$ac_exeext; then
20605 ac_cv_lib_svld_dlopen
=yes
20607 echo "$as_me: failed program was:" >&5
20608 sed 's/^/| /' conftest.
$ac_ext >&5
20610 ac_cv_lib_svld_dlopen
=no
20613 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20614 conftest
$ac_exeext conftest.
$ac_ext
20615 LIBS
=$ac_check_lib_save_LIBS
20617 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20618 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
20619 if test $ac_cv_lib_svld_dlopen = yes; then
20621 cat >>confdefs.h
<<\_ACEOF
20622 #define HAVE_LIBDL 1
20625 LIBADD_DL
="-lsvld" libltdl_cv_func_dlopen
="yes"
20627 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20628 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
20629 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20630 echo $ECHO_N "(cached) $ECHO_C" >&6
20632 ac_check_lib_save_LIBS
=$LIBS
20634 cat >conftest.
$ac_ext <<_ACEOF
20637 cat confdefs.h
>>conftest.
$ac_ext
20638 cat >>conftest.
$ac_ext <<_ACEOF
20639 /* end confdefs.h. */
20641 /* Override any GCC internal prototype to avoid an error.
20642 Use char because int might match the return type of a GCC
20643 builtin and then its argument prototype would still apply. */
20651 return dld_link ();
20656 rm -f conftest.
$ac_objext conftest
$ac_exeext
20657 if { (ac_try
="$ac_link"
20658 case "(($ac_try" in
20659 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20660 *) ac_try_echo=$ac_try;;
20662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20663 (eval "$ac_link") 2>conftest.er1
20665 grep -v '^ *+' conftest.er1 >conftest.err
20667 cat conftest.err >&5
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); } && {
20670 test -z "$ac_c_werror_flag" ||
20671 test ! -s conftest.err
20672 } && test -s conftest$ac_exeext &&
20673 $as_test_x conftest$ac_exeext; then
20674 ac_cv_lib_dld_dld_link=yes
20676 echo "$as_me: failed program was:" >&5
20677 sed 's/^/| /' conftest.$ac_ext >&5
20679 ac_cv_lib_dld_dld_link=no
20682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20683 conftest$ac_exeext conftest.$ac_ext
20684 LIBS=$ac_check_lib_save_LIBS
20686 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20687 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
20688 if test $ac_cv_lib_dld_dld_link = yes; then
20690 cat >>confdefs.h <<\_ACEOF
20694 LIBADD_DL="$LIBADD_DL -ldld"
20696 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
20697 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
20698 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
20699 echo $ECHO_N "(cached) $ECHO_C" >&6
20701 cat >conftest.$ac_ext <<_ACEOF
20704 cat confdefs.h >>conftest.$ac_ext
20705 cat >>conftest.$ac_ext <<_ACEOF
20706 /* end confdefs.h. */
20707 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
20708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20709 #define _dyld_func_lookup innocuous__dyld_func_lookup
20711 /* System header to define __stub macros and hopefully few prototypes,
20712 which can conflict with char _dyld_func_lookup (); below.
20713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20714 <limits.h> exists even on freestanding compilers. */
20717 # include <limits.h>
20719 # include <assert.h>
20722 #undef _dyld_func_lookup
20724 /* Override any GCC internal prototype to avoid an error.
20725 Use char because int might match the return type of a GCC
20726 builtin and then its argument prototype would still apply. */
20730 char _dyld_func_lookup ();
20731 /* The GNU C library defines this for functions which it implements
20732 to always fail with ENOSYS. Some functions are actually named
20733 something starting with __ and the normal name is an alias. */
20734 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
20741 return _dyld_func_lookup ();
20746 rm -f conftest.$ac_objext conftest$ac_exeext
20747 if { (ac_try="$ac_link"
20748 case "(($ac_try" in
20749 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20750 *) ac_try_echo
=$ac_try;;
20752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20753 (eval "$ac_link") 2>conftest.er1
20755 grep -v '^ *+' conftest.er1
>conftest.err
20757 cat conftest.err
>&5
20758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759 (exit $ac_status); } && {
20760 test -z "$ac_c_werror_flag" ||
20761 test ! -s conftest.err
20762 } && test -s conftest
$ac_exeext &&
20763 $as_test_x conftest
$ac_exeext; then
20764 ac_cv_func__dyld_func_lookup
=yes
20766 echo "$as_me: failed program was:" >&5
20767 sed 's/^/| /' conftest.
$ac_ext >&5
20769 ac_cv_func__dyld_func_lookup
=no
20772 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20773 conftest
$ac_exeext conftest.
$ac_ext
20775 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
20776 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
20777 if test $ac_cv_func__dyld_func_lookup = yes; then
20779 cat >>confdefs.h
<<\_ACEOF
20780 #define HAVE_DYLD 1
20794 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20795 conftest
$ac_exeext conftest.
$ac_ext
20806 if test x
"$libltdl_cv_func_dlopen" = xyes ||
test x
"$libltdl_cv_lib_dl_dlopen" = xyes
20808 lt_save_LIBS
="$LIBS"
20809 LIBS
="$LIBS $LIBADD_DL"
20811 for ac_func
in dlerror
20813 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20814 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20815 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20816 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20817 echo $ECHO_N "(cached) $ECHO_C" >&6
20819 cat >conftest.
$ac_ext <<_ACEOF
20822 cat confdefs.h
>>conftest.
$ac_ext
20823 cat >>conftest.
$ac_ext <<_ACEOF
20824 /* end confdefs.h. */
20825 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20827 #define $ac_func innocuous_$ac_func
20829 /* System header to define __stub macros and hopefully few prototypes,
20830 which can conflict with char $ac_func (); below.
20831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20832 <limits.h> exists even on freestanding compilers. */
20835 # include <limits.h>
20837 # include <assert.h>
20842 /* Override any GCC internal prototype to avoid an error.
20843 Use char because int might match the return type of a GCC
20844 builtin and then its argument prototype would still apply. */
20849 /* The GNU C library defines this for functions which it implements
20850 to always fail with ENOSYS. Some functions are actually named
20851 something starting with __ and the normal name is an alias. */
20852 #if defined __stub_$ac_func || defined __stub___$ac_func
20859 return $ac_func ();
20864 rm -f conftest.
$ac_objext conftest
$ac_exeext
20865 if { (ac_try
="$ac_link"
20866 case "(($ac_try" in
20867 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20868 *) ac_try_echo=$ac_try;;
20870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20871 (eval "$ac_link") 2>conftest.er1
20873 grep -v '^ *+' conftest.er1 >conftest.err
20875 cat conftest.err >&5
20876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877 (exit $ac_status); } && {
20878 test -z "$ac_c_werror_flag" ||
20879 test ! -s conftest.err
20880 } && test -s conftest$ac_exeext &&
20881 $as_test_x conftest$ac_exeext; then
20882 eval "$as_ac_var=yes"
20884 echo "$as_me: failed program was:" >&5
20885 sed 's/^/| /' conftest.$ac_ext >&5
20887 eval "$as_ac_var=no"
20890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20891 conftest$ac_exeext conftest.$ac_ext
20893 ac_res=`eval echo '${'$as_ac_var'}'`
20894 { echo "$as_me:$LINENO: result: $ac_res" >&5
20895 echo "${ECHO_T}$ac_res" >&6; }
20896 if test `eval echo '${'$as_ac_var'}'` = yes; then
20897 cat >>confdefs.h <<_ACEOF
20898 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
20904 LIBS="$lt_save_LIBS"
20907 ac_cpp='$CPP $CPPFLAGS'
20908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20914 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
20915 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
20916 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
20917 echo $ECHO_N "(cached) $ECHO_C" >&6
20919 ac_cv_sys_symbol_underscore=no
20920 cat > conftest.$ac_ext <<EOF
20921 void nm_test_func(){}
20922 int main(){nm_test_func;return 0;}
20924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20925 (eval $ac_compile) 2>&5
20927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928 (exit $ac_status); }; then
20929 # Now try to grab the symbols.
20930 ac_nlist=conftest.nm
20931 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
20932 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20935 (exit $ac_status); } && test -s "$ac_nlist"; then
20936 # See whether the symbols have a leading underscore.
20937 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20938 ac_cv_sys_symbol_underscore=yes
20940 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20943 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20947 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20950 echo "configure: failed program was:" >&5
20956 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
20957 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
20960 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
20961 if test x"$libltdl_cv_func_dlopen" = xyes ||
20962 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20963 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
20964 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
20965 if test "${libltdl_cv_need_uscore+set}" = set; then
20966 echo $ECHO_N "(cached) $ECHO_C" >&6
20968 libltdl_cv_need_uscore=unknown
20970 LIBS="$LIBS $LIBADD_DL"
20971 if test "$cross_compiling" = yes; then :
20972 libltdl_cv_need_uscore=cross
20974 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20975 lt_status=$lt_dlunknown
20976 cat > conftest.$ac_ext <<EOF
20977 #line 20977 "configure"
20978 #include "confdefs.h"
20987 # define LT_DLGLOBAL RTLD_GLOBAL
20990 # define LT_DLGLOBAL DL_GLOBAL
20992 # define LT_DLGLOBAL 0
20996 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20997 find out it does not work in some platform. */
20998 #ifndef LT_DLLAZY_OR_NOW
21000 # define LT_DLLAZY_OR_NOW RTLD_LAZY
21003 # define LT_DLLAZY_OR_NOW DL_LAZY
21006 # define LT_DLLAZY_OR_NOW RTLD_NOW
21009 # define LT_DLLAZY_OR_NOW DL_NOW
21011 # define LT_DLLAZY_OR_NOW 0
21019 extern "C" void exit (int);
21022 void fnord() { int i=42;}
21025 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21026 int status = $lt_dlunknown;
21030 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21031 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21032 /* dlclose (self); */
21040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21041 (eval $ac_link) 2>&5
21043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21045 (./conftest; exit; ) >&5 2>/dev/null
21047 case x$lt_status in
21048 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
21049 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
21050 x$lt_dlunknown|x*) ;;
21053 # compilation failed
21062 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
21063 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
21067 if test x"$libltdl_cv_need_uscore" = xyes; then
21069 cat >>confdefs.h <<\_ACEOF
21070 #define NEED_USCORE 1
21076 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
21077 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
21078 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
21079 echo $ECHO_N "(cached) $ECHO_C" >&6
21081 # PORTME does your system automatically load deplibs for dlopen?
21082 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
21083 # For now, we just catch OSes we know something about -- in the
21084 # future, we'll try test this programmatically.
21085 libltdl_cv_sys_dlopen_deplibs=unknown
21087 aix3*|aix4.1.*|aix4.2.*)
21088 # Unknown whether this is true for these versions of AIX, but
21089 # we want this `case' here to explicitly catch those versions.
21090 libltdl_cv_sys_dlopen_deplibs=unknown
21093 libltdl_cv_sys_dlopen_deplibs=yes
21096 # Assuming the user has installed a libdl from somewhere, this is true
21097 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
21098 libltdl_cv_sys_dlopen_deplibs=yes
21100 freebsd* | dragonfly*)
21101 libltdl_cv_sys_dlopen_deplibs=yes
21103 gnu* | linux* | k*bsd*-gnu)
21104 # GNU and its variants, using gnu ld.so (Glibc)
21105 libltdl_cv_sys_dlopen_deplibs=yes
21108 libltdl_cv_sys_dlopen_deplibs=yes
21111 libltdl_cv_sys_dlopen_deplibs=yes
21113 irix[12345]*|irix6.[01]*)
21114 # Catch all versions of IRIX before 6.2, and indicate that we don't
21115 # know how it worked for any of those versions.
21116 libltdl_cv_sys_dlopen_deplibs
=unknown
21119 # The case above catches anything before 6.2, and it's known that
21120 # at 6.2 and later dlopen does load deplibs.
21121 libltdl_cv_sys_dlopen_deplibs
=yes
21123 netbsd
* | netbsdelf
*-gnu)
21124 libltdl_cv_sys_dlopen_deplibs
=yes
21127 libltdl_cv_sys_dlopen_deplibs
=yes
21130 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
21131 # it did *not* use an RPATH in a shared library to find objects the
21132 # library depends on, so we explictly say `no'.
21133 libltdl_cv_sys_dlopen_deplibs
=no
21135 osf5.0|osf5.0a|osf5.1
)
21136 # dlopen *does* load deplibs and with the right loader patch applied
21137 # it even uses RPATH in a shared library to search for shared objects
21138 # that the library depends on, but there's no easy way to know if that
21139 # patch is installed. Since this is the case, all we can really
21140 # say is unknown -- it depends on the patch being installed. If
21141 # it is, this changes to `yes'. Without it, it would be `no'.
21142 libltdl_cv_sys_dlopen_deplibs
=unknown
21145 # the two cases above should catch all versions of osf <= 5.1. Read
21146 # the comments above for what we know about them.
21147 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
21148 # is used to find them so we can finally say `yes'.
21149 libltdl_cv_sys_dlopen_deplibs
=yes
21152 libltdl_cv_sys_dlopen_deplibs
=yes
21154 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21155 libltdl_cv_sys_dlopen_deplibs
=yes
21160 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
21161 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
21162 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
21164 cat >>confdefs.h
<<\_ACEOF
21165 #define LTDL_DLOPEN_DEPLIBS 1
21171 for ac_header
in argz.h
21173 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21174 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21175 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21177 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21178 echo $ECHO_N "(cached) $ECHO_C" >&6
21180 ac_res
=`eval echo '${'$as_ac_Header'}'`
21181 { echo "$as_me:$LINENO: result: $ac_res" >&5
21182 echo "${ECHO_T}$ac_res" >&6; }
21184 # Is the header compilable?
21185 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21186 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21187 cat >conftest.
$ac_ext <<_ACEOF
21190 cat confdefs.h
>>conftest.
$ac_ext
21191 cat >>conftest.
$ac_ext <<_ACEOF
21192 /* end confdefs.h. */
21193 $ac_includes_default
21194 #include <$ac_header>
21196 rm -f conftest.
$ac_objext
21197 if { (ac_try
="$ac_compile"
21198 case "(($ac_try" in
21199 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21200 *) ac_try_echo=$ac_try;;
21202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21203 (eval "$ac_compile") 2>conftest.er1
21205 grep -v '^ *+' conftest.er1 >conftest.err
21207 cat conftest.err >&5
21208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209 (exit $ac_status); } && {
21210 test -z "$ac_c_werror_flag" ||
21211 test ! -s conftest.err
21212 } && test -s conftest.$ac_objext; then
21213 ac_header_compiler=yes
21215 echo "$as_me: failed program was:" >&5
21216 sed 's/^/| /' conftest.$ac_ext >&5
21218 ac_header_compiler=no
21221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21222 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21223 echo "${ECHO_T}$ac_header_compiler" >&6; }
21225 # Is the header present?
21226 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21227 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21228 cat >conftest.$ac_ext <<_ACEOF
21231 cat confdefs.h >>conftest.$ac_ext
21232 cat >>conftest.$ac_ext <<_ACEOF
21233 /* end confdefs.h. */
21234 #include <$ac_header>
21236 if { (ac_try="$ac_cpp conftest.$ac_ext"
21237 case "(($ac_try" in
21238 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21239 *) ac_try_echo
=$ac_try;;
21241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21242 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21244 grep -v '^ *+' conftest.er1
>conftest.err
21246 cat conftest.err
>&5
21247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248 (exit $ac_status); } >/dev
/null
&& {
21249 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21250 test ! -s conftest.err
21252 ac_header_preproc
=yes
21254 echo "$as_me: failed program was:" >&5
21255 sed 's/^/| /' conftest.
$ac_ext >&5
21257 ac_header_preproc
=no
21260 rm -f conftest.err conftest.
$ac_ext
21261 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21262 echo "${ECHO_T}$ac_header_preproc" >&6; }
21264 # So? What about this header?
21265 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21267 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21268 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21270 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21271 ac_header_preproc
=yes
21274 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21275 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21276 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21277 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21278 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21279 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21280 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21281 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21283 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21284 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21285 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21287 ## ---------------------------------- ##
21288 ## Report this to bug-libtool@gnu.org ##
21289 ## ---------------------------------- ##
21291 ) |
sed "s/^/$as_me: WARNING: /" >&2
21294 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21296 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21297 echo $ECHO_N "(cached) $ECHO_C" >&6
21299 eval "$as_ac_Header=\$ac_header_preproc"
21301 ac_res
=`eval echo '${'$as_ac_Header'}'`
21302 { echo "$as_me:$LINENO: result: $ac_res" >&5
21303 echo "${ECHO_T}$ac_res" >&6; }
21306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21307 cat >>confdefs.h
<<_ACEOF
21308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21316 { echo "$as_me:$LINENO: checking for error_t" >&5
21317 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
21318 if test "${ac_cv_type_error_t+set}" = set; then
21319 echo $ECHO_N "(cached) $ECHO_C" >&6
21321 cat >conftest.
$ac_ext <<_ACEOF
21324 cat confdefs.h
>>conftest.
$ac_ext
21325 cat >>conftest.
$ac_ext <<_ACEOF
21326 /* end confdefs.h. */
21331 typedef error_t ac__type_new_;
21335 if ((ac__type_new_ *) 0)
21337 if (sizeof (ac__type_new_))
21343 rm -f conftest.
$ac_objext
21344 if { (ac_try
="$ac_compile"
21345 case "(($ac_try" in
21346 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21347 *) ac_try_echo=$ac_try;;
21349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21350 (eval "$ac_compile") 2>conftest.er1
21352 grep -v '^ *+' conftest.er1 >conftest.err
21354 cat conftest.err >&5
21355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21356 (exit $ac_status); } && {
21357 test -z "$ac_c_werror_flag" ||
21358 test ! -s conftest.err
21359 } && test -s conftest.$ac_objext; then
21360 ac_cv_type_error_t=yes
21362 echo "$as_me: failed program was:" >&5
21363 sed 's/^/| /' conftest.$ac_ext >&5
21365 ac_cv_type_error_t=no
21368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21370 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
21371 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
21372 if test $ac_cv_type_error_t = yes; then
21374 cat >>confdefs.h <<_ACEOF
21375 #define HAVE_ERROR_T 1
21381 cat >>confdefs.h <<\_ACEOF
21382 #define error_t int
21393 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
21395 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
21396 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21397 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21398 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21399 echo $ECHO_N "(cached) $ECHO_C" >&6
21401 cat >conftest.$ac_ext <<_ACEOF
21404 cat confdefs.h >>conftest.$ac_ext
21405 cat >>conftest.$ac_ext <<_ACEOF
21406 /* end confdefs.h. */
21407 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21409 #define $ac_func innocuous_$ac_func
21411 /* System header to define __stub macros and hopefully few prototypes,
21412 which can conflict with char $ac_func (); below.
21413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21414 <limits.h> exists even on freestanding compilers. */
21417 # include <limits.h>
21419 # include <assert.h>
21424 /* Override any GCC internal prototype to avoid an error.
21425 Use char because int might match the return type of a GCC
21426 builtin and then its argument prototype would still apply. */
21431 /* The GNU C library defines this for functions which it implements
21432 to always fail with ENOSYS. Some functions are actually named
21433 something starting with __ and the normal name is an alias. */
21434 #if defined __stub_$ac_func || defined __stub___$ac_func
21441 return $ac_func ();
21446 rm -f conftest.$ac_objext conftest$ac_exeext
21447 if { (ac_try="$ac_link"
21448 case "(($ac_try" in
21449 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21450 *) ac_try_echo
=$ac_try;;
21452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21453 (eval "$ac_link") 2>conftest.er1
21455 grep -v '^ *+' conftest.er1
>conftest.err
21457 cat conftest.err
>&5
21458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459 (exit $ac_status); } && {
21460 test -z "$ac_c_werror_flag" ||
21461 test ! -s conftest.err
21462 } && test -s conftest
$ac_exeext &&
21463 $as_test_x conftest
$ac_exeext; then
21464 eval "$as_ac_var=yes"
21466 echo "$as_me: failed program was:" >&5
21467 sed 's/^/| /' conftest.
$ac_ext >&5
21469 eval "$as_ac_var=no"
21472 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21473 conftest
$ac_exeext conftest.
$ac_ext
21475 ac_res
=`eval echo '${'$as_ac_var'}'`
21476 { echo "$as_me:$LINENO: result: $ac_res" >&5
21477 echo "${ECHO_T}$ac_res" >&6; }
21478 if test `eval echo '${'$as_ac_var'}'` = yes; then
21479 cat >>confdefs.h
<<_ACEOF
21480 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21513 for ac_header
in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
21516 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21517 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21518 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21520 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21521 echo $ECHO_N "(cached) $ECHO_C" >&6
21523 ac_res
=`eval echo '${'$as_ac_Header'}'`
21524 { echo "$as_me:$LINENO: result: $ac_res" >&5
21525 echo "${ECHO_T}$ac_res" >&6; }
21527 # Is the header compilable?
21528 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21529 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21530 cat >conftest.
$ac_ext <<_ACEOF
21533 cat confdefs.h
>>conftest.
$ac_ext
21534 cat >>conftest.
$ac_ext <<_ACEOF
21535 /* end confdefs.h. */
21536 $ac_includes_default
21537 #include <$ac_header>
21539 rm -f conftest.
$ac_objext
21540 if { (ac_try
="$ac_compile"
21541 case "(($ac_try" in
21542 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21543 *) ac_try_echo=$ac_try;;
21545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21546 (eval "$ac_compile") 2>conftest.er1
21548 grep -v '^ *+' conftest.er1 >conftest.err
21550 cat conftest.err >&5
21551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21552 (exit $ac_status); } && {
21553 test -z "$ac_c_werror_flag" ||
21554 test ! -s conftest.err
21555 } && test -s conftest.$ac_objext; then
21556 ac_header_compiler=yes
21558 echo "$as_me: failed program was:" >&5
21559 sed 's/^/| /' conftest.$ac_ext >&5
21561 ac_header_compiler=no
21564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21565 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21566 echo "${ECHO_T}$ac_header_compiler" >&6; }
21568 # Is the header present?
21569 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21570 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21571 cat >conftest.$ac_ext <<_ACEOF
21574 cat confdefs.h >>conftest.$ac_ext
21575 cat >>conftest.$ac_ext <<_ACEOF
21576 /* end confdefs.h. */
21577 #include <$ac_header>
21579 if { (ac_try="$ac_cpp conftest.$ac_ext"
21580 case "(($ac_try" in
21581 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21582 *) ac_try_echo
=$ac_try;;
21584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21587 grep -v '^ *+' conftest.er1
>conftest.err
21589 cat conftest.err
>&5
21590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591 (exit $ac_status); } >/dev
/null
&& {
21592 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21593 test ! -s conftest.err
21595 ac_header_preproc
=yes
21597 echo "$as_me: failed program was:" >&5
21598 sed 's/^/| /' conftest.
$ac_ext >&5
21600 ac_header_preproc
=no
21603 rm -f conftest.err conftest.
$ac_ext
21604 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21605 echo "${ECHO_T}$ac_header_preproc" >&6; }
21607 # So? What about this header?
21608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21610 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21611 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21612 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21613 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21614 ac_header_preproc
=yes
21617 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21618 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21619 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21620 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21621 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21622 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21623 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21624 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21626 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21627 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21628 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21630 ## ---------------------------------- ##
21631 ## Report this to bug-libtool@gnu.org ##
21632 ## ---------------------------------- ##
21634 ) |
sed "s/^/$as_me: WARNING: /" >&2
21637 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21639 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21640 echo $ECHO_N "(cached) $ECHO_C" >&6
21642 eval "$as_ac_Header=\$ac_header_preproc"
21644 ac_res
=`eval echo '${'$as_ac_Header'}'`
21645 { echo "$as_me:$LINENO: result: $ac_res" >&5
21646 echo "${ECHO_T}$ac_res" >&6; }
21649 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21650 cat >>confdefs.h
<<_ACEOF
21651 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21662 for ac_header
in dl.h sys
/dl.h dld.h mach-o
/dyld.h
21664 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21665 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21666 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21668 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21669 echo $ECHO_N "(cached) $ECHO_C" >&6
21671 ac_res
=`eval echo '${'$as_ac_Header'}'`
21672 { echo "$as_me:$LINENO: result: $ac_res" >&5
21673 echo "${ECHO_T}$ac_res" >&6; }
21675 # Is the header compilable?
21676 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21677 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21678 cat >conftest.
$ac_ext <<_ACEOF
21681 cat confdefs.h
>>conftest.
$ac_ext
21682 cat >>conftest.
$ac_ext <<_ACEOF
21683 /* end confdefs.h. */
21684 $ac_includes_default
21685 #include <$ac_header>
21687 rm -f conftest.
$ac_objext
21688 if { (ac_try
="$ac_compile"
21689 case "(($ac_try" in
21690 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21691 *) ac_try_echo=$ac_try;;
21693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21694 (eval "$ac_compile") 2>conftest.er1
21696 grep -v '^ *+' conftest.er1 >conftest.err
21698 cat conftest.err >&5
21699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700 (exit $ac_status); } && {
21701 test -z "$ac_c_werror_flag" ||
21702 test ! -s conftest.err
21703 } && test -s conftest.$ac_objext; then
21704 ac_header_compiler=yes
21706 echo "$as_me: failed program was:" >&5
21707 sed 's/^/| /' conftest.$ac_ext >&5
21709 ac_header_compiler=no
21712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21713 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21714 echo "${ECHO_T}$ac_header_compiler" >&6; }
21716 # Is the header present?
21717 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21718 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21719 cat >conftest.$ac_ext <<_ACEOF
21722 cat confdefs.h >>conftest.$ac_ext
21723 cat >>conftest.$ac_ext <<_ACEOF
21724 /* end confdefs.h. */
21725 #include <$ac_header>
21727 if { (ac_try="$ac_cpp conftest.$ac_ext"
21728 case "(($ac_try" in
21729 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21730 *) ac_try_echo
=$ac_try;;
21732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21735 grep -v '^ *+' conftest.er1
>conftest.err
21737 cat conftest.err
>&5
21738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739 (exit $ac_status); } >/dev
/null
&& {
21740 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21741 test ! -s conftest.err
21743 ac_header_preproc
=yes
21745 echo "$as_me: failed program was:" >&5
21746 sed 's/^/| /' conftest.
$ac_ext >&5
21748 ac_header_preproc
=no
21751 rm -f conftest.err conftest.
$ac_ext
21752 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21753 echo "${ECHO_T}$ac_header_preproc" >&6; }
21755 # So? What about this header?
21756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21758 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21759 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21761 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21762 ac_header_preproc
=yes
21765 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21766 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21767 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21768 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21769 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21770 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21771 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21772 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21775 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21776 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21778 ## ---------------------------------- ##
21779 ## Report this to bug-libtool@gnu.org ##
21780 ## ---------------------------------- ##
21782 ) |
sed "s/^/$as_me: WARNING: /" >&2
21785 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21787 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21788 echo $ECHO_N "(cached) $ECHO_C" >&6
21790 eval "$as_ac_Header=\$ac_header_preproc"
21792 ac_res
=`eval echo '${'$as_ac_Header'}'`
21793 { echo "$as_me:$LINENO: result: $ac_res" >&5
21794 echo "${ECHO_T}$ac_res" >&6; }
21797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21798 cat >>confdefs.h
<<_ACEOF
21799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21808 for ac_header
in string.h
strings.h
21810 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21811 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21812 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21814 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21815 echo $ECHO_N "(cached) $ECHO_C" >&6
21817 ac_res
=`eval echo '${'$as_ac_Header'}'`
21818 { echo "$as_me:$LINENO: result: $ac_res" >&5
21819 echo "${ECHO_T}$ac_res" >&6; }
21821 # Is the header compilable?
21822 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21823 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21824 cat >conftest.
$ac_ext <<_ACEOF
21827 cat confdefs.h
>>conftest.
$ac_ext
21828 cat >>conftest.
$ac_ext <<_ACEOF
21829 /* end confdefs.h. */
21830 $ac_includes_default
21831 #include <$ac_header>
21833 rm -f conftest.
$ac_objext
21834 if { (ac_try
="$ac_compile"
21835 case "(($ac_try" in
21836 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21837 *) ac_try_echo=$ac_try;;
21839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21840 (eval "$ac_compile") 2>conftest.er1
21842 grep -v '^ *+' conftest.er1 >conftest.err
21844 cat conftest.err >&5
21845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846 (exit $ac_status); } && {
21847 test -z "$ac_c_werror_flag" ||
21848 test ! -s conftest.err
21849 } && test -s conftest.$ac_objext; then
21850 ac_header_compiler=yes
21852 echo "$as_me: failed program was:" >&5
21853 sed 's/^/| /' conftest.$ac_ext >&5
21855 ac_header_compiler=no
21858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21859 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21860 echo "${ECHO_T}$ac_header_compiler" >&6; }
21862 # Is the header present?
21863 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21864 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21865 cat >conftest.$ac_ext <<_ACEOF
21868 cat confdefs.h >>conftest.$ac_ext
21869 cat >>conftest.$ac_ext <<_ACEOF
21870 /* end confdefs.h. */
21871 #include <$ac_header>
21873 if { (ac_try="$ac_cpp conftest.$ac_ext"
21874 case "(($ac_try" in
21875 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21876 *) ac_try_echo
=$ac_try;;
21878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21881 grep -v '^ *+' conftest.er1
>conftest.err
21883 cat conftest.err
>&5
21884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21885 (exit $ac_status); } >/dev
/null
&& {
21886 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21887 test ! -s conftest.err
21889 ac_header_preproc
=yes
21891 echo "$as_me: failed program was:" >&5
21892 sed 's/^/| /' conftest.
$ac_ext >&5
21894 ac_header_preproc
=no
21897 rm -f conftest.err conftest.
$ac_ext
21898 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21899 echo "${ECHO_T}$ac_header_preproc" >&6; }
21901 # So? What about this header?
21902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21904 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21905 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21907 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21908 ac_header_preproc
=yes
21911 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21912 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21913 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21914 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21915 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21916 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21917 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21918 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21920 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21921 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21922 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21924 ## ---------------------------------- ##
21925 ## Report this to bug-libtool@gnu.org ##
21926 ## ---------------------------------- ##
21928 ) |
sed "s/^/$as_me: WARNING: /" >&2
21931 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21933 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21934 echo $ECHO_N "(cached) $ECHO_C" >&6
21936 eval "$as_ac_Header=\$ac_header_preproc"
21938 ac_res
=`eval echo '${'$as_ac_Header'}'`
21939 { echo "$as_me:$LINENO: result: $ac_res" >&5
21940 echo "${ECHO_T}$ac_res" >&6; }
21943 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21944 cat >>confdefs.h
<<_ACEOF
21945 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21955 for ac_func
in strchr index
21957 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21958 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21959 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21960 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21961 echo $ECHO_N "(cached) $ECHO_C" >&6
21963 cat >conftest.
$ac_ext <<_ACEOF
21966 cat confdefs.h
>>conftest.
$ac_ext
21967 cat >>conftest.
$ac_ext <<_ACEOF
21968 /* end confdefs.h. */
21969 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21971 #define $ac_func innocuous_$ac_func
21973 /* System header to define __stub macros and hopefully few prototypes,
21974 which can conflict with char $ac_func (); below.
21975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21976 <limits.h> exists even on freestanding compilers. */
21979 # include <limits.h>
21981 # include <assert.h>
21986 /* Override any GCC internal prototype to avoid an error.
21987 Use char because int might match the return type of a GCC
21988 builtin and then its argument prototype would still apply. */
21993 /* The GNU C library defines this for functions which it implements
21994 to always fail with ENOSYS. Some functions are actually named
21995 something starting with __ and the normal name is an alias. */
21996 #if defined __stub_$ac_func || defined __stub___$ac_func
22003 return $ac_func ();
22008 rm -f conftest.
$ac_objext conftest
$ac_exeext
22009 if { (ac_try
="$ac_link"
22010 case "(($ac_try" in
22011 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22012 *) ac_try_echo=$ac_try;;
22014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22015 (eval "$ac_link") 2>conftest.er1
22017 grep -v '^ *+' conftest.er1 >conftest.err
22019 cat conftest.err >&5
22020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22021 (exit $ac_status); } && {
22022 test -z "$ac_c_werror_flag" ||
22023 test ! -s conftest.err
22024 } && test -s conftest$ac_exeext &&
22025 $as_test_x conftest$ac_exeext; then
22026 eval "$as_ac_var=yes"
22028 echo "$as_me: failed program was:" >&5
22029 sed 's/^/| /' conftest.$ac_ext >&5
22031 eval "$as_ac_var=no"
22034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22035 conftest$ac_exeext conftest.$ac_ext
22037 ac_res=`eval echo '${'$as_ac_var'}'`
22038 { echo "$as_me:$LINENO: result: $ac_res" >&5
22039 echo "${ECHO_T}$ac_res" >&6; }
22040 if test `eval echo '${'$as_ac_var'}'` = yes; then
22041 cat >>confdefs.h <<_ACEOF
22042 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
22050 for ac_func in strrchr rindex
22052 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
22053 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22054 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22055 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22056 echo $ECHO_N "(cached) $ECHO_C" >&6
22058 cat >conftest.$ac_ext <<_ACEOF
22061 cat confdefs.h >>conftest.$ac_ext
22062 cat >>conftest.$ac_ext <<_ACEOF
22063 /* end confdefs.h. */
22064 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22066 #define $ac_func innocuous_$ac_func
22068 /* System header to define __stub macros and hopefully few prototypes,
22069 which can conflict with char $ac_func (); below.
22070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22071 <limits.h> exists even on freestanding compilers. */
22074 # include <limits.h>
22076 # include <assert.h>
22081 /* Override any GCC internal prototype to avoid an error.
22082 Use char because int might match the return type of a GCC
22083 builtin and then its argument prototype would still apply. */
22088 /* The GNU C library defines this for functions which it implements
22089 to always fail with ENOSYS. Some functions are actually named
22090 something starting with __ and the normal name is an alias. */
22091 #if defined __stub_$ac_func || defined __stub___$ac_func
22098 return $ac_func ();
22103 rm -f conftest.$ac_objext conftest$ac_exeext
22104 if { (ac_try="$ac_link"
22105 case "(($ac_try" in
22106 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22107 *) ac_try_echo
=$ac_try;;
22109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22110 (eval "$ac_link") 2>conftest.er1
22112 grep -v '^ *+' conftest.er1
>conftest.err
22114 cat conftest.err
>&5
22115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22116 (exit $ac_status); } && {
22117 test -z "$ac_c_werror_flag" ||
22118 test ! -s conftest.err
22119 } && test -s conftest
$ac_exeext &&
22120 $as_test_x conftest
$ac_exeext; then
22121 eval "$as_ac_var=yes"
22123 echo "$as_me: failed program was:" >&5
22124 sed 's/^/| /' conftest.
$ac_ext >&5
22126 eval "$as_ac_var=no"
22129 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22130 conftest
$ac_exeext conftest.
$ac_ext
22132 ac_res
=`eval echo '${'$as_ac_var'}'`
22133 { echo "$as_me:$LINENO: result: $ac_res" >&5
22134 echo "${ECHO_T}$ac_res" >&6; }
22135 if test `eval echo '${'$as_ac_var'}'` = yes; then
22136 cat >>confdefs.h
<<_ACEOF
22137 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22145 for ac_func
in memcpy bcopy
22147 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22148 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22150 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22151 echo $ECHO_N "(cached) $ECHO_C" >&6
22153 cat >conftest.
$ac_ext <<_ACEOF
22156 cat confdefs.h
>>conftest.
$ac_ext
22157 cat >>conftest.
$ac_ext <<_ACEOF
22158 /* end confdefs.h. */
22159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22161 #define $ac_func innocuous_$ac_func
22163 /* System header to define __stub macros and hopefully few prototypes,
22164 which can conflict with char $ac_func (); below.
22165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22166 <limits.h> exists even on freestanding compilers. */
22169 # include <limits.h>
22171 # include <assert.h>
22176 /* Override any GCC internal prototype to avoid an error.
22177 Use char because int might match the return type of a GCC
22178 builtin and then its argument prototype would still apply. */
22183 /* The GNU C library defines this for functions which it implements
22184 to always fail with ENOSYS. Some functions are actually named
22185 something starting with __ and the normal name is an alias. */
22186 #if defined __stub_$ac_func || defined __stub___$ac_func
22193 return $ac_func ();
22198 rm -f conftest.
$ac_objext conftest
$ac_exeext
22199 if { (ac_try
="$ac_link"
22200 case "(($ac_try" in
22201 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22202 *) ac_try_echo=$ac_try;;
22204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22205 (eval "$ac_link") 2>conftest.er1
22207 grep -v '^ *+' conftest.er1 >conftest.err
22209 cat conftest.err >&5
22210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22211 (exit $ac_status); } && {
22212 test -z "$ac_c_werror_flag" ||
22213 test ! -s conftest.err
22214 } && test -s conftest$ac_exeext &&
22215 $as_test_x conftest$ac_exeext; then
22216 eval "$as_ac_var=yes"
22218 echo "$as_me: failed program was:" >&5
22219 sed 's/^/| /' conftest.$ac_ext >&5
22221 eval "$as_ac_var=no"
22224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22225 conftest$ac_exeext conftest.$ac_ext
22227 ac_res=`eval echo '${'$as_ac_var'}'`
22228 { echo "$as_me:$LINENO: result: $ac_res" >&5
22229 echo "${ECHO_T}$ac_res" >&6; }
22230 if test `eval echo '${'$as_ac_var'}'` = yes; then
22231 cat >>confdefs.h <<_ACEOF
22232 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
22240 for ac_func in memmove strcmp
22242 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
22243 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22244 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22245 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22246 echo $ECHO_N "(cached) $ECHO_C" >&6
22248 cat >conftest.$ac_ext <<_ACEOF
22251 cat confdefs.h >>conftest.$ac_ext
22252 cat >>conftest.$ac_ext <<_ACEOF
22253 /* end confdefs.h. */
22254 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22256 #define $ac_func innocuous_$ac_func
22258 /* System header to define __stub macros and hopefully few prototypes,
22259 which can conflict with char $ac_func (); below.
22260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22261 <limits.h> exists even on freestanding compilers. */
22264 # include <limits.h>
22266 # include <assert.h>
22271 /* Override any GCC internal prototype to avoid an error.
22272 Use char because int might match the return type of a GCC
22273 builtin and then its argument prototype would still apply. */
22278 /* The GNU C library defines this for functions which it implements
22279 to always fail with ENOSYS. Some functions are actually named
22280 something starting with __ and the normal name is an alias. */
22281 #if defined __stub_$ac_func || defined __stub___$ac_func
22288 return $ac_func ();
22293 rm -f conftest.$ac_objext conftest$ac_exeext
22294 if { (ac_try="$ac_link"
22295 case "(($ac_try" in
22296 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22297 *) ac_try_echo
=$ac_try;;
22299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22300 (eval "$ac_link") 2>conftest.er1
22302 grep -v '^ *+' conftest.er1
>conftest.err
22304 cat conftest.err
>&5
22305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22306 (exit $ac_status); } && {
22307 test -z "$ac_c_werror_flag" ||
22308 test ! -s conftest.err
22309 } && test -s conftest
$ac_exeext &&
22310 $as_test_x conftest
$ac_exeext; then
22311 eval "$as_ac_var=yes"
22313 echo "$as_me: failed program was:" >&5
22314 sed 's/^/| /' conftest.
$ac_ext >&5
22316 eval "$as_ac_var=no"
22319 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22320 conftest
$ac_exeext conftest.
$ac_ext
22322 ac_res
=`eval echo '${'$as_ac_var'}'`
22323 { echo "$as_me:$LINENO: result: $ac_res" >&5
22324 echo "${ECHO_T}$ac_res" >&6; }
22325 if test `eval echo '${'$as_ac_var'}'` = yes; then
22326 cat >>confdefs.h
<<_ACEOF
22327 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22336 for ac_func
in closedir opendir readdir
22338 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22339 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22341 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22342 echo $ECHO_N "(cached) $ECHO_C" >&6
22344 cat >conftest.
$ac_ext <<_ACEOF
22347 cat confdefs.h
>>conftest.
$ac_ext
22348 cat >>conftest.
$ac_ext <<_ACEOF
22349 /* end confdefs.h. */
22350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22352 #define $ac_func innocuous_$ac_func
22354 /* System header to define __stub macros and hopefully few prototypes,
22355 which can conflict with char $ac_func (); below.
22356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22357 <limits.h> exists even on freestanding compilers. */
22360 # include <limits.h>
22362 # include <assert.h>
22367 /* Override any GCC internal prototype to avoid an error.
22368 Use char because int might match the return type of a GCC
22369 builtin and then its argument prototype would still apply. */
22374 /* The GNU C library defines this for functions which it implements
22375 to always fail with ENOSYS. Some functions are actually named
22376 something starting with __ and the normal name is an alias. */
22377 #if defined __stub_$ac_func || defined __stub___$ac_func
22384 return $ac_func ();
22389 rm -f conftest.
$ac_objext conftest
$ac_exeext
22390 if { (ac_try
="$ac_link"
22391 case "(($ac_try" in
22392 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22393 *) ac_try_echo=$ac_try;;
22395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22396 (eval "$ac_link") 2>conftest.er1
22398 grep -v '^ *+' conftest.er1 >conftest.err
22400 cat conftest.err >&5
22401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22402 (exit $ac_status); } && {
22403 test -z "$ac_c_werror_flag" ||
22404 test ! -s conftest.err
22405 } && test -s conftest$ac_exeext &&
22406 $as_test_x conftest$ac_exeext; then
22407 eval "$as_ac_var=yes"
22409 echo "$as_me: failed program was:" >&5
22410 sed 's/^/| /' conftest.$ac_ext >&5
22412 eval "$as_ac_var=no"
22415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22416 conftest$ac_exeext conftest.$ac_ext
22418 ac_res=`eval echo '${'$as_ac_var'}'`
22419 { echo "$as_me:$LINENO: result: $ac_res" >&5
22420 echo "${ECHO_T}$ac_res" >&6; }
22421 if test `eval echo '${'$as_ac_var'}'` = yes; then
22422 cat >>confdefs.h <<_ACEOF
22423 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
22435 ac_config_files="$ac_config_files Makefile"
22437 cat >confcache <<\_ACEOF
22438 # This file is a shell script that caches the results of configure
22439 # tests run on this system so they can be shared between configure
22440 # scripts and configure runs, see configure's option --config-cache.
22441 # It is not useful on other systems. If it contains results you don't
22442 # want to keep, you may remove or edit it.
22444 # config.status only pays attention to the cache file if you give it
22445 # the --recheck option to rerun configure.
22447 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
22448 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22449 # following values.
22453 # The following way of writing the cache mishandles newlines in values,
22454 # but we know of no workaround that is simple, portable, and efficient.
22455 # So, we kill variables containing newlines.
22456 # Ultrix sh set writes to stderr and can't be redirected directly,
22457 # and sets the high bit in the cache file unless we assign to the vars.
22459 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22460 eval ac_val
=\$
$ac_var
22464 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22465 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22468 _ | IFS | as_nl
) ;; #(
22469 *) $as_unset $ac_var ;;
22475 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22476 *${as_nl}ac_space
=\
*)
22477 # `set' does not quote correctly, so add quotes (double-quote
22478 # substitution turns \\\\ into \\, and sed turns \\ into \).
22481 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22484 # `set' quotes correctly as required by POSIX, so do not add quotes.
22485 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22494 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22496 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22498 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
22499 if test -w "$cache_file"; then
22500 test "x$cache_file" != "x/dev/null" &&
22501 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22502 echo "$as_me: updating cache $cache_file" >&6;}
22503 cat confcache
>$cache_file
22505 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22506 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22511 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
22512 # Let make expand exec_prefix.
22513 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
22515 DEFS
=-DHAVE_CONFIG_H
22519 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
22520 # 1. Remove the extension, and $U if already installed.
22521 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
22522 ac_i
=`echo "$ac_i" | sed "$ac_script"`
22523 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22524 # will be set to the directory where LIBOBJS objects are built.
22525 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22526 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22528 LIBOBJS
=$ac_libobjs
22530 LTLIBOBJS
=$ac_ltlibobjs
22533 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22534 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22535 Usually this means the macro was only invoked conditionally." >&5
22536 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22537 Usually this means the macro was only invoked conditionally." >&2;}
22538 { (exit 1); exit 1; }; }
22540 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22541 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22542 Usually this means the macro was only invoked conditionally." >&5
22543 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22544 Usually this means the macro was only invoked conditionally." >&2;}
22545 { (exit 1); exit 1; }; }
22547 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22548 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22549 Usually this means the macro was only invoked conditionally." >&5
22550 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22551 Usually this means the macro was only invoked conditionally." >&2;}
22552 { (exit 1); exit 1; }; }
22554 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22555 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22556 Usually this means the macro was only invoked conditionally." >&5
22557 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22558 Usually this means the macro was only invoked conditionally." >&2;}
22559 { (exit 1); exit 1; }; }
22561 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22562 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22563 Usually this means the macro was only invoked conditionally." >&5
22564 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22565 Usually this means the macro was only invoked conditionally." >&2;}
22566 { (exit 1); exit 1; }; }
22569 : ${CONFIG_STATUS=./config.status}
22570 ac_clean_files_save
=$ac_clean_files
22571 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
22572 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22573 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22574 cat >$CONFIG_STATUS <<_ACEOF
22576 # Generated by $as_me.
22577 # Run this file to recreate the current configuration.
22578 # Compiler output produced by configure, useful for debugging
22579 # configure, is in config.log if it exists.
22582 ac_cs_recheck=false
22584 SHELL=\${CONFIG_SHELL-$SHELL}
22587 cat >>$CONFIG_STATUS <<\_ACEOF
22588 ## --------------------- ##
22589 ## M4sh Initialization. ##
22590 ## --------------------- ##
22592 # Be more Bourne compatible
22593 DUALCASE
=1; export DUALCASE
# for MKS sh
22594 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
22597 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22598 # is contrary to our usage. Disable this feature.
22599 alias -g '${1+"$@"}'='"$@"'
22600 setopt NO_GLOB_SUBST
22602 case `(set -o) 2>/dev/null` in
22603 *posix
*) set -o posix
;;
22612 # Avoid depending upon Character Ranges.
22613 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
22614 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22615 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
22616 as_cr_digits
='0123456789'
22617 as_cr_alnum
=$as_cr_Letters$as_cr_digits
22619 # The user is always right.
22620 if test "${PATH_SEPARATOR+set}" != set; then
22621 echo "#! /bin/sh" >conf$$.sh
22622 echo "exit 0" >>conf$$.sh
22624 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
22632 # Support unset when possible.
22633 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
22641 # We need space, tab and new line, in precisely that order. Quoting is
22642 # there to prevent editors from complaining about space-tab.
22643 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22644 # splitting by setting IFS to empty value.)
22649 # Find who we are. Look in the path if we contain no directory separator.
22651 *[\\/]* ) as_myself
=$0 ;;
22652 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22653 for as_dir
in $PATH
22656 test -z "$as_dir" && as_dir
=.
22657 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
22663 # We did not find ourselves, most probably we were run as `sh COMMAND'
22664 # in which case we are not to be found in the path.
22665 if test "x$as_myself" = x
; then
22668 if test ! -f "$as_myself"; then
22669 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22670 { (exit 1); exit 1; }
22673 # Work around bugs in pre-3.0 UWIN ksh.
22674 for as_var
in ENV MAIL MAILPATH
22675 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
22683 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22684 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22685 LC_TELEPHONE LC_TIME
22687 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22688 eval $as_var=C
; export $as_var
22690 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
22694 # Required to use basename.
22695 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
22696 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
22702 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22703 as_basename
=basename
22709 # Name of the executable.
22710 as_me
=`$as_basename -- "$0" ||
22711 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22712 X"$0" : 'X\(//\)$' \| \
22713 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22715 sed '/^.*\/\([^/][^/]*\)\/*$/{
22734 as_lineno_1
=$LINENO
22735 as_lineno_2
=$LINENO
22736 test "x$as_lineno_1" != "x$as_lineno_2" &&
22737 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
22739 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22740 # uniformly replaced by the line number. The first 'sed' inserts a
22741 # line-number line after each line using $LINENO; the second 'sed'
22742 # does the real work. The second script uses 'N' to pair each
22743 # line-number line with the line containing $LINENO, and appends
22744 # trailing '-' during substitution so that $LINENO is not a special
22745 # case at line end.
22746 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22747 # scripts with optimization help from Paolo Bonzini. Blame Lee
22748 # E. McMahon (1931-1989) for sed's syntax. :-)
22760 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22763 ' >$as_me.lineno
&&
22764 chmod +x
"$as_me.lineno" ||
22765 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22766 { (exit 1); exit 1; }; }
22768 # Don't try to exec as it changes $[0], causing all sort of problems
22769 # (the dirname of $[0] is not the place where we might find the
22770 # original and so on. Autoconf is especially sensitive to this).
22771 .
"./$as_me.lineno"
22772 # Exit status is that of the last command.
22777 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
22783 ECHO_C
= ECHO_N
= ECHO_T
=
22784 case `echo -n x` in
22786 case `echo 'x\c'` in
22787 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
22794 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
22795 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
22801 rm -f conf$$ conf$$.exe conf$$.
file
22802 if test -d conf$$.dir
; then
22803 rm -f conf$$.dir
/conf$$.
file
22809 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
22811 # ... but there are two gotchas:
22812 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22813 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22814 # In both cases, we have to default to `cp -p'.
22815 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
22817 elif ln conf$$.
file conf$$
2>/dev
/null
; then
22822 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
22823 rmdir conf$$.dir
2>/dev
/null
22825 if mkdir
-p .
2>/dev
/null
; then
22828 test -d .
/-p && rmdir .
/-p
22832 if test -x / >/dev
/null
2>&1; then
22833 as_test_x
='test -x'
22835 if ls -dL / >/dev
/null
2>&1; then
22842 if test -d "$1"; then
22848 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22849 ???[sx]*):;;*)false;;esac;fi
22853 as_executable_p
=$as_test_x
22855 # Sed expression to map a string onto a valid CPP name.
22856 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22858 # Sed expression to map a string onto a valid variable name.
22859 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22864 # Save the log message, to keep $[0] and so on meaningful, and to
22865 # report actual input values of CONFIG_FILES etc. instead of their
22866 # values after options handling.
22868 This file was extended by libltdl $as_me 1.2, which was
22869 generated by GNU Autoconf 2.61. Invocation command line was
22871 CONFIG_FILES = $CONFIG_FILES
22872 CONFIG_HEADERS = $CONFIG_HEADERS
22873 CONFIG_LINKS = $CONFIG_LINKS
22874 CONFIG_COMMANDS = $CONFIG_COMMANDS
22877 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22882 cat >>$CONFIG_STATUS <<_ACEOF
22883 # Files that config.status was made for.
22884 config_files="$ac_config_files"
22885 config_headers="$ac_config_headers"
22886 config_commands="$ac_config_commands"
22890 cat >>$CONFIG_STATUS <<\_ACEOF
22892 \`$as_me' instantiates files from templates according to the
22893 current configuration.
22895 Usage: $0 [OPTIONS] [FILE]...
22897 -h, --help print this help, then exit
22898 -V, --version print version number and configuration settings, then exit
22899 -q, --quiet do not print progress messages
22900 -d, --debug don't remove temporary files
22901 --recheck update $as_me by reconfiguring in the same conditions
22902 --file=FILE[:TEMPLATE]
22903 instantiate the configuration file FILE
22904 --header=FILE[:TEMPLATE]
22905 instantiate the configuration header FILE
22907 Configuration files:
22910 Configuration headers:
22913 Configuration commands:
22916 Report bugs to <bug-autoconf@gnu.org>."
22919 cat >>$CONFIG_STATUS <<_ACEOF
22921 libltdl config.status 1.2
22922 configured by $0, generated by GNU Autoconf 2.61,
22923 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22925 Copyright (C) 2006 Free Software Foundation, Inc.
22926 This config.status script is free software; the Free Software Foundation
22927 gives unlimited permission to copy, distribute and modify it."
22935 cat >>$CONFIG_STATUS <<\_ACEOF
22936 # If no file are specified by the user, then we need to provide default
22937 # value. By we need to know if files were specified by the user.
22943 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
22944 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
22955 # Handling of the options.
22956 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
22958 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
22959 echo "$ac_cs_version"; exit ;;
22960 --debug |
--debu |
--deb |
--de |
--d |
-d )
22962 --file |
--fil |
--fi |
--f )
22964 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
22965 ac_need_defaults
=false
;;
22966 --header |
--heade |
--head |
--hea )
22968 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
22969 ac_need_defaults
=false
;;
22971 # Conflict between --help and --header
22972 { echo "$as_me: error: ambiguous option: $1
22973 Try \`$0 --help' for more information." >&2
22974 { (exit 1); exit 1; }; };;
22975 --help |
--hel |
-h )
22976 echo "$ac_cs_usage"; exit ;;
22977 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
22978 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
22981 # This is an error.
22982 -*) { echo "$as_me: error: unrecognized option: $1
22983 Try \`$0 --help' for more information." >&2
22984 { (exit 1); exit 1; }; } ;;
22986 *) ac_config_targets
="$ac_config_targets $1"
22987 ac_need_defaults
=false
;;
22993 ac_configure_extra_args
=
22995 if $ac_cs_silent; then
22997 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23001 cat >>$CONFIG_STATUS <<_ACEOF
23002 if \$ac_cs_recheck; then
23003 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23004 CONFIG_SHELL=$SHELL
23005 export CONFIG_SHELL
23006 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23010 cat >>$CONFIG_STATUS <<\_ACEOF
23014 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23015 ## Running $as_me. ##
23021 cat >>$CONFIG_STATUS <<_ACEOF
23025 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23029 cat >>$CONFIG_STATUS <<\_ACEOF
23031 # Handling of arguments.
23032 for ac_config_target
in $ac_config_targets
23034 case $ac_config_target in
23035 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config-h.in" ;;
23036 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
23037 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23039 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23040 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23041 { (exit 1); exit 1; }; };;
23046 # If the user did not use the arguments to specify the items to instantiate,
23047 # then the envvar interface is used. Set only those that are not.
23048 # We use the long form for the default assignment because of an extremely
23049 # bizarre bug on SunOS 4.1.3.
23050 if $ac_need_defaults; then
23051 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23052 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23053 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23056 # Have a temporary directory for convenience. Make it in the build tree
23057 # simply because there is no reason against having it here, and in addition,
23058 # creating and moving files from /tmp can sometimes cause problems.
23059 # Hook for its removal unless debugging.
23060 # Note that there is a small window in which the directory will not be cleaned:
23061 # after its creation but before its name has been assigned to `$tmp'.
23065 trap 'exit_status=$?
23066 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23068 trap '{ (exit 1); exit 1; }' 1 2 13 15
23070 # Create a (secure) tmp directory for tmp files.
23073 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23074 test -n "$tmp" && test -d "$tmp"
23077 tmp
=.
/conf$$
-$RANDOM
23078 (umask 077 && mkdir
"$tmp")
23081 echo "$me: cannot create a temporary directory in ." >&2
23082 { (exit 1); exit 1; }
23086 # Set up the sed scripts for CONFIG_FILES section.
23089 # No need to generate the scripts if there are no CONFIG_FILES.
23090 # This happens for instance when ./config.status config.h
23091 if test -n "$CONFIG_FILES"; then
23098 for ac_last_try
in false false false false false
:; do
23099 cat >conf$
$subs.
sed <<_ACEOF
23100 SHELL!$SHELL$ac_delim
23101 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23102 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23103 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23104 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23105 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23106 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23107 exec_prefix!$exec_prefix$ac_delim
23108 prefix!$prefix$ac_delim
23109 program_transform_name!$program_transform_name$ac_delim
23110 bindir!$bindir$ac_delim
23111 sbindir!$sbindir$ac_delim
23112 libexecdir!$libexecdir$ac_delim
23113 datarootdir!$datarootdir$ac_delim
23114 datadir!$datadir$ac_delim
23115 sysconfdir!$sysconfdir$ac_delim
23116 sharedstatedir!$sharedstatedir$ac_delim
23117 localstatedir!$localstatedir$ac_delim
23118 includedir!$includedir$ac_delim
23119 oldincludedir!$oldincludedir$ac_delim
23120 docdir!$docdir$ac_delim
23121 infodir!$infodir$ac_delim
23122 htmldir!$htmldir$ac_delim
23123 dvidir!$dvidir$ac_delim
23124 pdfdir!$pdfdir$ac_delim
23125 psdir!$psdir$ac_delim
23126 libdir!$libdir$ac_delim
23127 localedir!$localedir$ac_delim
23128 mandir!$mandir$ac_delim
23129 DEFS!$DEFS$ac_delim
23130 ECHO_C!$ECHO_C$ac_delim
23131 ECHO_N!$ECHO_N$ac_delim
23132 ECHO_T!$ECHO_T$ac_delim
23133 LIBS!$LIBS$ac_delim
23134 build_alias!$build_alias$ac_delim
23135 host_alias!$host_alias$ac_delim
23136 target_alias!$target_alias$ac_delim
23137 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23138 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23139 INSTALL_DATA!$INSTALL_DATA$ac_delim
23140 am__isrc!$am__isrc$ac_delim
23141 CYGPATH_W!$CYGPATH_W$ac_delim
23142 PACKAGE!$PACKAGE$ac_delim
23143 VERSION!$VERSION$ac_delim
23144 ACLOCAL!$ACLOCAL$ac_delim
23145 AUTOCONF!$AUTOCONF$ac_delim
23146 AUTOMAKE!$AUTOMAKE$ac_delim
23147 AUTOHEADER!$AUTOHEADER$ac_delim
23148 MAKEINFO!$MAKEINFO$ac_delim
23149 install_sh!$install_sh$ac_delim
23150 STRIP!$STRIP$ac_delim
23151 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23152 mkdir_p!$mkdir_p$ac_delim
23154 SET_MAKE!$SET_MAKE$ac_delim
23155 am__leading_dot!$am__leading_dot$ac_delim
23156 AMTAR!$AMTAR$ac_delim
23157 am__tar!$am__tar$ac_delim
23158 am__untar!$am__untar$ac_delim
23160 CFLAGS!$CFLAGS$ac_delim
23161 LDFLAGS!$LDFLAGS$ac_delim
23162 CPPFLAGS!$CPPFLAGS$ac_delim
23163 ac_ct_CC!$ac_ct_CC$ac_delim
23164 EXEEXT!$EXEEXT$ac_delim
23165 OBJEXT!$OBJEXT$ac_delim
23166 DEPDIR!$DEPDIR$ac_delim
23167 am__include!$am__include$ac_delim
23168 am__quote!$am__quote$ac_delim
23169 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23170 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23171 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23172 CCDEPMODE!$CCDEPMODE$ac_delim
23173 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23174 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23175 build!$build$ac_delim
23176 build_cpu!$build_cpu$ac_delim
23177 build_vendor!$build_vendor$ac_delim
23178 build_os!$build_os$ac_delim
23179 host!$host$ac_delim
23180 host_cpu!$host_cpu$ac_delim
23181 host_vendor!$host_vendor$ac_delim
23182 host_os!$host_os$ac_delim
23184 GREP!$GREP$ac_delim
23185 EGREP!$EGREP$ac_delim
23186 LN_S!$LN_S$ac_delim
23187 ECHO!$ECHO$ac_delim
23189 RANLIB!$RANLIB$ac_delim
23190 DLLTOOL!$DLLTOOL$ac_delim
23192 OBJDUMP!$OBJDUMP$ac_delim
23195 CXXFLAGS!$CXXFLAGS$ac_delim
23196 ac_ct_CXX!$ac_ct_CXX$ac_delim
23199 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23201 elif $ac_last_try; then
23202 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23203 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23204 { (exit 1); exit 1; }; }
23206 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
23210 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23211 if test -n "$ac_eof"; then
23212 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
23213 ac_eof
=`expr $ac_eof + 1`
23216 cat >>$CONFIG_STATUS <<_ACEOF
23217 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23218 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23221 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23222 s/^/s,@/; s/!/@,|#_!!_#|/
23225 s/'"$ac_delim"'$/,g/; t
23227 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23228 ' >>$CONFIG_STATUS <conf$
$subs.
sed
23229 rm -f conf$
$subs.
sed
23230 cat >>$CONFIG_STATUS <<_ACEOF
23236 for ac_last_try
in false false false false false
:; do
23237 cat >conf$
$subs.
sed <<_ACEOF
23238 CXXDEPMODE!$CXXDEPMODE$ac_delim
23239 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23240 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23241 CXXCPP!$CXXCPP$ac_delim
23243 FFLAGS!$FFLAGS$ac_delim
23244 ac_ct_F77!$ac_ct_F77$ac_delim
23245 LIBTOOL!$LIBTOOL$ac_delim
23246 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
23247 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23248 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23249 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23250 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23251 LIBADD_DL!$LIBADD_DL$ac_delim
23252 LIBOBJS!$LIBOBJS$ac_delim
23253 LTLIBOBJS!$LTLIBOBJS$ac_delim
23256 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 16; then
23258 elif $ac_last_try; then
23259 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23260 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23261 { (exit 1); exit 1; }; }
23263 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
23267 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23268 if test -n "$ac_eof"; then
23269 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
23270 ac_eof
=`expr $ac_eof + 1`
23273 cat >>$CONFIG_STATUS <<_ACEOF
23274 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23275 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23278 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23279 s/^/s,@/; s/!/@,|#_!!_#|/
23282 s/'"$ac_delim"'$/,g/; t
23284 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23285 ' >>$CONFIG_STATUS <conf$
$subs.
sed
23286 rm -f conf$
$subs.
sed
23287 cat >>$CONFIG_STATUS <<_ACEOF
23294 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23295 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23296 # trailing colons and then remove the whole line if VPATH becomes empty
23297 # (actually we leave an empty line to preserve line numbers).
23298 if test "x$srcdir" = x.
; then
23299 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
23300 s/:*\$(srcdir):*/:/
23301 s/:*\${srcdir}:*/:/
23303 s/^\([^=]*=[ ]*\):*/\1/
23309 cat >>$CONFIG_STATUS <<\_ACEOF
23310 fi # test -n "$CONFIG_FILES"
23313 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
23316 :[FHLC
]) ac_mode
=$ac_tag; continue;;
23318 case $ac_mode$ac_tag in
23320 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23321 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23322 { (exit 1); exit 1; }; };;
23323 :[FH
]-) ac_tag
=-:-;;
23324 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
23341 -) ac_f
="$tmp/stdin";;
23342 *) # Look for the file first in the build tree, then in the source tree
23343 # (if the path is not absolute). The absolute path cannot be DOS-style,
23344 # because $ac_f cannot contain `:'.
23348 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
23350 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23351 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23352 { (exit 1); exit 1; }; };;
23354 ac_file_inputs
="$ac_file_inputs $ac_f"
23357 # Let's still pretend it is `configure' which instantiates (i.e., don't
23358 # use $as_me), people would be surprised to read:
23359 # /* config.h. Generated by config.status. */
23360 configure_input
="Generated from "`IFS=:
23361 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23362 if test x
"$ac_file" != x-
; then
23363 configure_input
="$ac_file. $configure_input"
23364 { echo "$as_me:$LINENO: creating $ac_file" >&5
23365 echo "$as_me: creating $ac_file" >&6;}
23369 *:-:* |
*:-) cat >"$tmp/stdin";;
23374 ac_dir
=`$as_dirname -- "$ac_file" ||
23375 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23376 X"$ac_file" : 'X\(//\)[^/]' \| \
23377 X"$ac_file" : 'X\(//\)$' \| \
23378 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23384 /^X\(\/\/\)[^/].*/{
23399 -*) as_dir
=.
/$as_dir;;
23401 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
23405 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23406 *) as_qdir
=$as_dir;;
23408 as_dirs
="'$as_qdir' $as_dirs"
23409 as_dir
=`$as_dirname -- "$as_dir" ||
23410 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23411 X"$as_dir" : 'X\(//\)[^/]' \| \
23412 X"$as_dir" : 'X\(//\)$' \| \
23413 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23419 /^X\(\/\/\)[^/].*/{
23432 test -d "$as_dir" && break
23434 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
23435 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23436 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23437 { (exit 1); exit 1; }; }; }
23441 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
23443 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23444 # A ".." for each directory in $ac_dir_suffix.
23445 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23446 case $ac_top_builddir_sub in
23447 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
23448 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
23451 ac_abs_top_builddir
=$ac_pwd
23452 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
23453 # for backward compatibility:
23454 ac_top_builddir
=$ac_top_build_prefix
23457 .
) # We are building in place.
23459 ac_top_srcdir
=$ac_top_builddir_sub
23460 ac_abs_top_srcdir
=$ac_pwd ;;
23461 [\\/]* | ?
:[\\/]* ) # Absolute name.
23462 ac_srcdir
=$srcdir$ac_dir_suffix;
23463 ac_top_srcdir
=$srcdir
23464 ac_abs_top_srcdir
=$srcdir ;;
23465 *) # Relative name.
23466 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
23467 ac_top_srcdir
=$ac_top_build_prefix$srcdir
23468 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
23470 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
23480 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23481 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
23483 ac_MKDIR_P
=$MKDIR_P
23485 [\\/$
]* | ?
:[\\/]* ) ;;
23486 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
23490 cat >>$CONFIG_STATUS <<\_ACEOF
23491 # If the template does not know about datarootdir, expand it.
23492 # FIXME: This hack should be removed a few years after 2.60.
23493 ac_datarootdir_hack
=; ac_datarootdir_seen
=
23495 case `sed -n '/datarootdir/ {
23504 ' $ac_file_inputs` in
23505 *datarootdir
*) ac_datarootdir_seen
=yes;;
23506 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
23507 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23508 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23510 cat >>$CONFIG_STATUS <<_ACEOF
23511 ac_datarootdir_hack='
23512 s&@datadir@&$datadir&g
23513 s&@docdir@&$docdir&g
23514 s&@infodir@&$infodir&g
23515 s&@localedir@&$localedir&g
23516 s&@mandir@&$mandir&g
23517 s&\\\${datarootdir}&$datarootdir&g' ;;
23521 # Neutralize VPATH when `$srcdir' = `.'.
23522 # Shell code in configure.ac might set extrasub.
23523 # FIXME: do we really want to maintain this feature?
23524 cat >>$CONFIG_STATUS <<_ACEOF
23528 cat >>$CONFIG_STATUS <<\_ACEOF
23530 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
23531 s
&@configure_input@
&$configure_input&;t t
23532 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
23533 s
&@srcdir@
&$ac_srcdir&;t t
23534 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
23535 s
&@top_srcdir@
&$ac_top_srcdir&;t t
23536 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
23537 s
&@builddir@
&$ac_builddir&;t t
23538 s
&@abs_builddir@
&$ac_abs_builddir&;t t
23539 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
23540 s
&@INSTALL@
&$ac_INSTALL&;t t
23541 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
23542 $ac_datarootdir_hack
23543 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
23545 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23546 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
23547 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
23548 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
23549 which seems to be undefined. Please make sure it is defined." >&5
23550 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
23551 which seems to be undefined. Please make sure it is defined." >&2;}
23555 -) cat "$tmp/out"; rm -f "$tmp/out";;
23556 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23565 # Transform confdefs.h into a sed script `conftest.defines', that
23566 # substitutes the proper values into config.h.in to produce config.h.
23567 rm -f conftest.defines conftest.
tail
23568 # First, append a space to every undef/define line, to ease matching.
23569 echo 's/$/ /' >conftest.defines
23570 # Then, protect against being on the right side of a sed subst, or in
23571 # an unquoted here document, in config.status. If some macros were
23572 # called several times there might be several #defines for the same
23573 # symbol, which is useless. But do not sort them, since the last
23574 # AC_DEFINE must be honored.
23575 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
23576 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23577 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23578 # PARAMS is the parameter list in the macro definition--in most cases, it's
23579 # just an empty string.
23580 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23581 ac_dB
='\\)[ (].*,\\1define\\2'
23589 s/^[ ]*#[ ]*define[ ][ ]*//
23594 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23595 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23596 ' >>conftest.defines
23598 # Remove the space that was appended to ease matching.
23599 # Then replace #undef with comments. This is necessary, for
23600 # example, in the case of _POSIX_SOURCE, which is predefined and required
23601 # on some systems where configure will not decide to define it.
23602 # (The regexp can be short, since the line contains either #define or #undef.)
23604 s,^[ #]*u.*,/* & */,' >>conftest.defines
23606 # Break up conftest.defines:
23607 ac_max_sed_lines
=50
23609 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23610 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23611 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23613 ac_in
='$ac_file_inputs'
23614 ac_out
='"$tmp/out1"'
23615 ac_nxt
='"$tmp/out2"'
23619 # Write a here document:
23620 cat >>$CONFIG_STATUS <<_ACEOF
23621 # First, check the format of the line:
23622 cat >"\$tmp/defines.sed" <<\\CEOF
23623 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23624 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23628 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
23630 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23631 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
23632 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
23633 grep . conftest.
tail >/dev
/null ||
break
23634 rm -f conftest.defines
23635 mv conftest.
tail conftest.defines
23637 rm -f conftest.defines conftest.
tail
23639 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23640 cat >>$CONFIG_STATUS <<\_ACEOF
23641 if test x
"$ac_file" != x-
; then
23642 echo "/* $configure_input */" >"$tmp/config.h"
23643 cat "$ac_result" >>"$tmp/config.h"
23644 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
23645 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23646 echo "$as_me: $ac_file is unchanged" >&6;}
23649 mv "$tmp/config.h" $ac_file
23652 echo "/* $configure_input */"
23656 # Compute $ac_file's index in $config_headers.
23658 for _am_header
in $config_headers :; do
23659 case $_am_header in
23660 $ac_file |
$ac_file:* )
23663 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
23666 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
23667 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23668 X$ac_file : 'X\(//\)[^/]' \| \
23669 X$ac_file : 'X\(//\)$' \| \
23670 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
23672 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23676 /^X\(\/\/\)[^/].*/{
23688 s/.*/./; q'`/stamp-h
$_am_stamp_count
23691 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23692 echo "$as_me: executing $ac_file commands" >&6;}
23697 case $ac_file$ac_mode in
23698 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
23699 # Strip MF so we end up with the name of the file.
23700 mf
=`echo "$mf" | sed -e 's/:.*$//'`
23701 # Check whether this is an Automake generated Makefile or not.
23702 # We used to match only the files named `Makefile.in', but
23703 # some people rename them; so instead we look at the file content.
23704 # Grep'ing the first line is not enough: some people post-process
23705 # each Makefile.in and add a new line on top of each file to say so.
23706 # Grep'ing the whole file is not good either: AIX grep has a line
23707 # limit of 2048, but all sed's we know have understand at least 4000.
23708 if sed 10q
"$mf" |
grep '^#.*generated by automake' > /dev
/null
2>&1; then
23709 dirpart
=`$as_dirname -- "$mf" ||
23710 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23711 X"$mf" : 'X\(//\)[^/]' \| \
23712 X"$mf" : 'X\(//\)$' \| \
23713 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23719 /^X\(\/\/\)[^/].*/{
23735 # Extract the definition of DEPDIR, am__include, and am__quote
23736 # from the Makefile without running `make'.
23737 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
23738 test -z "$DEPDIR" && continue
23739 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
23740 test -z "am__include" && continue
23741 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
23742 # When using ansi2knr, U may be empty or an underscore; expand it
23743 U
=`sed -n 's/^U = //p' < "$mf"`
23744 # Find all dependency output files, they are included files with
23745 # $(DEPDIR) in their names. We invoke sed twice because it is the
23746 # simplest approach to changing $(DEPDIR) to its actual value in the
23748 for file in `sed -n "
23749 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23750 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23751 # Make sure the directory exists.
23752 test -f "$dirpart/$file" && continue
23753 fdir
=`$as_dirname -- "$file" ||
23754 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23755 X"$file" : 'X\(//\)[^/]' \| \
23756 X"$file" : 'X\(//\)$' \| \
23757 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23759 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23763 /^X\(\/\/\)[^/].*/{
23776 { as_dir
=$dirpart/$fdir
23778 -*) as_dir
=.
/$as_dir;;
23780 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
23784 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23785 *) as_qdir
=$as_dir;;
23787 as_dirs
="'$as_qdir' $as_dirs"
23788 as_dir
=`$as_dirname -- "$as_dir" ||
23789 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23790 X"$as_dir" : 'X\(//\)[^/]' \| \
23791 X"$as_dir" : 'X\(//\)$' \| \
23792 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23794 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23798 /^X\(\/\/\)[^/].*/{
23811 test -d "$as_dir" && break
23813 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
23814 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23815 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23816 { (exit 1); exit 1; }; }; }
23817 # echo "creating $dirpart/$file"
23818 echo '# dummy' > "$dirpart/$file"
23827 { (exit 0); exit 0; }
23829 chmod +x
$CONFIG_STATUS
23830 ac_clean_files
=$ac_clean_files_save
23833 # configure is writing to config.log, and then calls config.status.
23834 # config.status does its own redirection, appending to config.log.
23835 # Unfortunately, on DOS this fails, as config.log is still kept open
23836 # by configure, so config.status won't be able to write to it; its
23837 # output is simply discarded. So we exec the FD to /dev/null,
23838 # effectively closing config.log, so it can be properly (re)opened and
23839 # appended to by config.status. When coming back to configure, we
23840 # need to make the FD available again.
23841 if test "$no_create" != yes; then
23843 ac_config_status_args
=
23844 test "$silent" = yes &&
23845 ac_config_status_args
="$ac_config_status_args --quiet"
23847 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
23849 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23850 # would make configure fail if this is the last instruction.
23851 $ac_cs_success ||
{ (exit 1); exit 1; }