2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
53 # Support unset when possible.
54 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself
=$0 ;;
73 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir
=.
78 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x
; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var
in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C
; export $as_var
111 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
123 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me
=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x
; then
155 if (eval ":") 2>/dev
/null
; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev
/null
; then
221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
222 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir
=.
228 for as_base
in sh bash ksh sh5
; do
229 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
236 for as_shell
in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix
*) set -o posix
;;
258 CONFIG_SHELL
=$as_shell
260 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix
*) set -o posix
;;
286 as_func_ret_success
() {
289 as_func_ret_failure
() {
294 if as_func_success
; then
298 echo as_func_success failed.
301 if as_func_failure
; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success
; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure
; then
315 echo as_func_ret_failure succeeded.
318 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) ||
{ (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x
; then
343 for as_var
in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no
; then
352 echo This
script requires a shell
more modern than all the
353 echo shells that I found on your system. Please
install a
354 echo modern shell
, or manually run the
script under such a
355 echo shell
if you
do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") ||
{
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system
,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x
"$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
472 ECHO_C
= ECHO_N
= ECHO_T
=
476 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
483 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
490 rm -f conf$$ conf$$.exe conf$$.
file
491 if test -d conf$$.dir
; then
492 rm -f conf$$.dir
/conf$$.
file
498 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
506 elif ln conf$$.
file conf$$
2>/dev
/null
; then
511 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
512 rmdir conf$$.dir
2>/dev
/null
514 if mkdir
-p .
2>/dev
/null
; then
517 test -d .
/-p && rmdir .
/-p
521 if test -x / >/dev
/null
2>&1; then
524 if ls -dL / >/dev
/null
2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p
=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL
=${CONFIG_SHELL-/bin/sh}
558 # Remove one level of quotation (which was required for Make).
559 ECHO
=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
564 if test "X$1" = X--no-reexec
; then
565 # Discard the --no-reexec flag, and continue.
567 elif test "X$1" = X--fallback-echo
; then
568 # Avoid inline document here, it may be left over
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $echo works!
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 if test "X$1" = X--fallback-echo
; then
579 # used as fallback echo
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
589 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset
; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if (echo_test_string
=`eval $cmd`) 2>/dev
/null
&&
597 echo_test_string
=`eval $cmd` &&
598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev
/null
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
610 # The Solaris, AIX, and Digital Unix default echo programs unquote
611 # backslashes. This makes it impossible to quote backslashes using
612 # echo "$something" | sed 's/\\/\\\\/g'
614 # So, first we look for a working echo in the user's PATH.
616 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
617 for dir
in $PATH /usr
/ucb
; do
619 if (test -f $dir/echo ||
test -f $dir/echo$ac_exeext) &&
620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
629 if test "X$echo" = Xecho
; then
630 # We didn't find a better echo, so look for alternatives.
631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632 echo_testing_string
=`(print -r "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # This shell has a builtin print -r that does the trick.
636 elif (test -f /bin
/ksh ||
test -f /bin
/ksh
$ac_exeext) &&
637 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
638 # If we have ksh, try running configure again with it.
639 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
640 export ORIGINAL_CONFIG_SHELL
641 CONFIG_SHELL
=/bin
/ksh
643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
652 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653 test "X$echo_testing_string" = 'X\t' &&
654 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
658 SHELL
="$CONFIG_SHELL"
660 echo="$CONFIG_SHELL $0 --fallback-echo"
661 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662 test "X$echo_testing_string" = 'X\t' &&
663 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
665 echo="$CONFIG_SHELL $0 --fallback-echo"
667 # maybe with a smaller string...
670 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev
/null
678 if test "$prev" != 'sed 50q "$0"'; then
679 echo_test_string
=`eval $prev`
680 export echo_test_string
681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683 # Oops. We lost completely, so just stick with echo.
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696 ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
702 tagnames
=${tagnames+${tagnames},}CXX
704 tagnames
=${tagnames+${tagnames},}F77
706 exec 7<&0 </dev
/null
6>&1
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
716 ac_default_prefix
=/usr
/local
718 ac_config_libobj_dir
=.
724 SHELL
=${CONFIG_SHELL-/bin/sh}
726 # Identity of this package.
733 ac_unique_file
="configure.in"
734 # Factoring default headers for most tests.
735 ac_includes_default
="\
737 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h>
740 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h>
747 # ifdef HAVE_STDLIB_H
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
757 #ifdef HAVE_STRINGS_H
758 # include <strings.h>
760 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h>
779 program_transform_name
821 INSTALL_STRIP_PROGRAM
880 ac_precious_vars
='build_alias
899 # Initialize some variables set by options.
901 ac_init_version
=false
902 # The variables have the same names as the options, with
903 # dashes changed to underlines.
911 program_transform_name
=s
,x
,x
,
919 # Installation directory options.
920 # These are left unexpanded so users can "make install exec_prefix=/foo"
921 # and all the variables that are supposed to be based on exec_prefix
922 # by default will actually change.
923 # Use braces instead of parens because sh, perl, etc. also accept them.
924 # (The list follows the same order as the GNU Coding Standards.)
925 bindir
='${exec_prefix}/bin'
926 sbindir
='${exec_prefix}/sbin'
927 libexecdir
='${exec_prefix}/libexec'
928 datarootdir
='${prefix}/share'
929 datadir
='${datarootdir}'
930 sysconfdir
='${prefix}/etc'
931 sharedstatedir
='${prefix}/com'
932 localstatedir
='${prefix}/var'
933 includedir
='${prefix}/include'
934 oldincludedir
='/usr/include'
935 docdir
='${datarootdir}/doc/${PACKAGE}'
936 infodir
='${datarootdir}/info'
941 libdir
='${exec_prefix}/lib'
942 localedir
='${datarootdir}/locale'
943 mandir
='${datarootdir}/man'
949 # If the previous option needs an argument, assign it.
950 if test -n "$ac_prev"; then
951 eval $ac_prev=\
$ac_option
957 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
961 # Accept the important Cygnus configure options, so we can diagnose typos.
963 case $ac_dashdash$ac_option in
967 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
969 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
972 -build |
--build |
--buil |
--bui |
--bu)
973 ac_prev
=build_alias
;;
974 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
975 build_alias
=$ac_optarg ;;
977 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
978 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
979 ac_prev
=cache_file
;;
980 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
981 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
982 cache_file
=$ac_optarg ;;
985 cache_file
=config.cache
;;
987 -datadir |
--datadir |
--datadi |
--datad)
989 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
990 datadir
=$ac_optarg ;;
992 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
993 |
--dataroo |
--dataro |
--datar)
994 ac_prev
=datarootdir
;;
995 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
996 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
997 datarootdir
=$ac_optarg ;;
999 -disable-* |
--disable-*)
1000 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1001 # Reject names that are not valid shell variable names.
1002 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1003 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1004 { (exit 1); exit 1; }; }
1005 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1006 eval enable_
$ac_feature=no
;;
1008 -docdir |
--docdir |
--docdi |
--doc |
--do)
1010 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1011 docdir
=$ac_optarg ;;
1013 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1015 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1016 dvidir
=$ac_optarg ;;
1018 -enable-* |
--enable-*)
1019 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1020 # Reject names that are not valid shell variable names.
1021 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1022 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1023 { (exit 1); exit 1; }; }
1024 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1025 eval enable_
$ac_feature=\
$ac_optarg ;;
1027 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1028 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1029 |
--exec |
--exe |
--ex)
1030 ac_prev
=exec_prefix
;;
1031 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1032 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1033 |
--exec=* |
--exe=* |
--ex=*)
1034 exec_prefix
=$ac_optarg ;;
1036 -gas |
--gas |
--ga |
--g)
1037 # Obsolete; use --with-gas.
1040 -help |
--help |
--hel |
--he |
-h)
1041 ac_init_help
=long
;;
1042 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1043 ac_init_help
=recursive
;;
1044 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1045 ac_init_help
=short
;;
1047 -host |
--host |
--hos |
--ho)
1048 ac_prev
=host_alias
;;
1049 -host=* |
--host=* |
--hos=* |
--ho=*)
1050 host_alias
=$ac_optarg ;;
1052 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1054 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1056 htmldir
=$ac_optarg ;;
1058 -includedir |
--includedir |
--includedi |
--included |
--include \
1059 |
--includ |
--inclu |
--incl |
--inc)
1060 ac_prev
=includedir
;;
1061 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1062 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1063 includedir
=$ac_optarg ;;
1065 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1067 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1068 infodir
=$ac_optarg ;;
1070 -libdir |
--libdir |
--libdi |
--libd)
1072 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1073 libdir
=$ac_optarg ;;
1075 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1076 |
--libexe |
--libex |
--libe)
1077 ac_prev
=libexecdir
;;
1078 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1079 |
--libexe=* |
--libex=* |
--libe=*)
1080 libexecdir
=$ac_optarg ;;
1082 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1083 ac_prev
=localedir
;;
1084 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1085 localedir
=$ac_optarg ;;
1087 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1088 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1089 ac_prev
=localstatedir
;;
1090 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1091 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1092 localstatedir
=$ac_optarg ;;
1094 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1096 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1097 mandir
=$ac_optarg ;;
1099 -nfp |
--nfp |
--nf)
1100 # Obsolete; use --without-fp.
1103 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1104 |
--no-cr |
--no-c |
-n)
1107 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1108 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1111 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1112 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1113 |
--oldin |
--oldi |
--old |
--ol |
--o)
1114 ac_prev
=oldincludedir
;;
1115 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1116 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1117 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1118 oldincludedir
=$ac_optarg ;;
1120 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1122 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1123 prefix
=$ac_optarg ;;
1125 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1126 |
--program-pre |
--program-pr |
--program-p)
1127 ac_prev
=program_prefix
;;
1128 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1129 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1130 program_prefix
=$ac_optarg ;;
1132 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1133 |
--program-suf |
--program-su |
--program-s)
1134 ac_prev
=program_suffix
;;
1135 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1136 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1137 program_suffix
=$ac_optarg ;;
1139 -program-transform-name |
--program-transform-name \
1140 |
--program-transform-nam |
--program-transform-na \
1141 |
--program-transform-n |
--program-transform- \
1142 |
--program-transform |
--program-transfor \
1143 |
--program-transfo |
--program-transf \
1144 |
--program-trans |
--program-tran \
1145 |
--progr-tra |
--program-tr |
--program-t)
1146 ac_prev
=program_transform_name
;;
1147 -program-transform-name=* |
--program-transform-name=* \
1148 |
--program-transform-nam=* |
--program-transform-na=* \
1149 |
--program-transform-n=* |
--program-transform-=* \
1150 |
--program-transform=* |
--program-transfor=* \
1151 |
--program-transfo=* |
--program-transf=* \
1152 |
--program-trans=* |
--program-tran=* \
1153 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1154 program_transform_name
=$ac_optarg ;;
1156 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1158 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1159 pdfdir
=$ac_optarg ;;
1161 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1163 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1166 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1167 |
-silent |
--silent |
--silen |
--sile |
--sil)
1170 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1172 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1174 sbindir
=$ac_optarg ;;
1176 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1177 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1178 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1180 ac_prev
=sharedstatedir
;;
1181 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1182 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1183 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1185 sharedstatedir
=$ac_optarg ;;
1187 -site |
--site |
--sit)
1189 -site=* |
--site=* |
--sit=*)
1192 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1194 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1195 srcdir
=$ac_optarg ;;
1197 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1198 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1199 ac_prev
=sysconfdir
;;
1200 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1201 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1202 sysconfdir
=$ac_optarg ;;
1204 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1205 ac_prev
=target_alias
;;
1206 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1207 target_alias
=$ac_optarg ;;
1209 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1212 -version |
--version |
--versio |
--versi |
--vers |
-V)
1213 ac_init_version
=: ;;
1216 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1217 # Reject names that are not valid shell variable names.
1218 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1219 { echo "$as_me: error: invalid package name: $ac_package" >&2
1220 { (exit 1); exit 1; }; }
1221 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1222 eval with_
$ac_package=\
$ac_optarg ;;
1224 -without-* |
--without-*)
1225 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1226 # Reject names that are not valid shell variable names.
1227 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1228 { echo "$as_me: error: invalid package name: $ac_package" >&2
1229 { (exit 1); exit 1; }; }
1230 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1231 eval with_
$ac_package=no
;;
1234 # Obsolete; use --with-x.
1237 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1238 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1239 ac_prev
=x_includes
;;
1240 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1241 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1242 x_includes
=$ac_optarg ;;
1244 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1245 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1246 ac_prev
=x_libraries
;;
1247 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1248 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1249 x_libraries
=$ac_optarg ;;
1251 -*) { echo "$as_me: error: unrecognized option: $ac_option
1252 Try \`$0 --help' for more information." >&2
1253 { (exit 1); exit 1; }; }
1257 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1258 # Reject names that are not valid shell variable names.
1259 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1260 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1261 { (exit 1); exit 1; }; }
1262 eval $ac_envvar=\
$ac_optarg
1263 export $ac_envvar ;;
1266 # FIXME: should be removed in autoconf 3.0.
1267 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1268 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1269 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1270 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1276 if test -n "$ac_prev"; then
1277 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1278 { echo "$as_me: error: missing argument to $ac_option" >&2
1279 { (exit 1); exit 1; }; }
1282 # Be sure to have absolute directory names.
1283 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1284 datadir sysconfdir sharedstatedir localstatedir includedir \
1285 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1286 libdir localedir mandir
1288 eval ac_val
=\$
$ac_var
1290 [\\/$
]* | ?
:[\\/]* ) continue;;
1291 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1293 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1294 { (exit 1); exit 1; }; }
1297 # There might be people who depend on the old broken behavior: `$host'
1298 # used to hold the argument of --host etc.
1299 # FIXME: To remove some day.
1302 target
=$target_alias
1304 # FIXME: To remove some day.
1305 if test "x$host_alias" != x
; then
1306 if test "x$build_alias" = x
; then
1307 cross_compiling
=maybe
1308 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1309 If a cross compiler is detected then cross compile mode will be used." >&2
1310 elif test "x$build_alias" != "x$host_alias"; then
1316 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1318 test "$silent" = yes && exec 6>/dev
/null
1321 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1322 ac_ls_di
=`ls -di .` &&
1323 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1324 { echo "$as_me: error: Working directory cannot be determined" >&2
1325 { (exit 1); exit 1; }; }
1326 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1327 { echo "$as_me: error: pwd does not report name of working directory" >&2
1328 { (exit 1); exit 1; }; }
1331 # Find the source files, if location was not specified.
1332 if test -z "$srcdir"; then
1333 ac_srcdir_defaulted
=yes
1334 # Try the directory containing this script, then the parent directory.
1335 ac_confdir
=`$as_dirname -- "$0" ||
1336 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1337 X"$0" : 'X\(//\)[^/]' \| \
1338 X"$0" : 'X\(//\)$' \| \
1339 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1363 ac_srcdir_defaulted
=no
1365 if test ! -r "$srcdir/$ac_unique_file"; then
1366 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1367 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1368 { (exit 1); exit 1; }; }
1370 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1372 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1373 { (exit 1); exit 1; }; }
1375 # When building in place, set srcdir=.
1376 if test "$ac_abs_confdir" = "$ac_pwd"; then
1379 # Remove unnecessary trailing slashes from srcdir.
1380 # Double slashes in file names in object file debugging info
1381 # mess up M-x gdb in Emacs.
1383 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1385 for ac_var
in $ac_precious_vars; do
1386 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1387 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1388 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1389 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1393 # Report the --help message.
1395 if test "$ac_init_help" = "long"; then
1396 # Omit some internal or obsolete options to make the list less imposing.
1397 # This message is too long to be a string in the A/UX 3.1 sh.
1399 \`configure' configures this package to adapt to many kinds of systems.
1401 Usage: $0 [OPTION]... [VAR=VALUE]...
1403 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1404 VAR=VALUE. See below for descriptions of some of the useful variables.
1406 Defaults for the options are specified in brackets.
1409 -h, --help display this help and exit
1410 --help=short display options specific to this package
1411 --help=recursive display the short help of all the included packages
1412 -V, --version display version information and exit
1413 -q, --quiet, --silent do not print \`checking...' messages
1414 --cache-file=FILE cache test results in FILE [disabled]
1415 -C, --config-cache alias for \`--cache-file=config.cache'
1416 -n, --no-create do not create output files
1417 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1419 Installation directories:
1420 --prefix=PREFIX install architecture-independent files in PREFIX
1421 [$ac_default_prefix]
1422 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1425 By default, \`make install' will install all the files in
1426 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1427 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1428 for instance \`--prefix=\$HOME'.
1430 For better control, use the options below.
1432 Fine tuning of the installation directories:
1433 --bindir=DIR user executables [EPREFIX/bin]
1434 --sbindir=DIR system admin executables [EPREFIX/sbin]
1435 --libexecdir=DIR program executables [EPREFIX/libexec]
1436 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1437 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1438 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1439 --libdir=DIR object code libraries [EPREFIX/lib]
1440 --includedir=DIR C header files [PREFIX/include]
1441 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1442 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1443 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1444 --infodir=DIR info documentation [DATAROOTDIR/info]
1445 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1446 --mandir=DIR man documentation [DATAROOTDIR/man]
1447 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1448 --htmldir=DIR html documentation [DOCDIR]
1449 --dvidir=DIR dvi documentation [DOCDIR]
1450 --pdfdir=DIR pdf documentation [DOCDIR]
1451 --psdir=DIR ps documentation [DOCDIR]
1457 --program-prefix=PREFIX prepend PREFIX to installed program names
1458 --program-suffix=SUFFIX append SUFFIX to installed program names
1459 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1462 --build=BUILD configure
for building on BUILD
[guessed
]
1463 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1467 if test -n "$ac_init_help"; then
1472 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1473 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1474 --disable-dependency-tracking speeds up one-time build
1475 --enable-dependency-tracking do not reject slow dependency extractors
1476 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1477 --enable-static[=PKGS
] build static libraries
[default
=yes]
1478 --enable-fast-install[=PKGS
]
1479 optimize
for fast installation
[default
=yes]
1480 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1483 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1484 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1485 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1486 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1488 --with-tags[=TAGS
] include additional configurations
[automatic
]
1490 Some influential environment variables
:
1491 CXX C
++ compiler
command
1492 CXXFLAGS C
++ compiler flags
1493 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1494 nonstandard directory
<lib dir
>
1495 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1496 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1497 you have headers
in a nonstandard directory
<include dir
>
1498 CC C compiler
command
1499 CFLAGS C compiler flags
1501 CXXCPP C
++ preprocessor
1502 F77 Fortran
77 compiler
command
1503 FFLAGS Fortran
77 compiler flags
1504 YACC The
`Yet Another C Compiler' implementation to use. Defaults to
1505 the first program found out of: `bison
-y', `byacc', `yacc'.
1506 YFLAGS The list of arguments that will be passed by default to $YACC.
1507 This script will default YFLAGS to the empty string to avoid a
1508 default value of `-d' given by some make applications.
1510 Use these variables to override the choices made by `configure' or to
help
1511 it to
find libraries and programs with nonstandard names
/locations.
1517 if test "$ac_init_help" = "recursive"; then
1518 # If there are subdirs, report their specific --help.
1519 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1520 test -d "$ac_dir" ||
continue
1524 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1526 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1527 # A ".." for each directory in $ac_dir_suffix.
1528 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1529 case $ac_top_builddir_sub in
1530 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1531 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1534 ac_abs_top_builddir
=$ac_pwd
1535 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1536 # for backward compatibility:
1537 ac_top_builddir
=$ac_top_build_prefix
1540 .
) # We are building in place.
1542 ac_top_srcdir
=$ac_top_builddir_sub
1543 ac_abs_top_srcdir
=$ac_pwd ;;
1544 [\\/]* | ?
:[\\/]* ) # Absolute name.
1545 ac_srcdir
=$srcdir$ac_dir_suffix;
1546 ac_top_srcdir
=$srcdir
1547 ac_abs_top_srcdir
=$srcdir ;;
1549 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1550 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1551 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1553 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1555 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1556 # Check for guested configure.
1557 if test -f "$ac_srcdir/configure.gnu"; then
1559 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1560 elif test -f "$ac_srcdir/configure"; then
1562 $SHELL "$ac_srcdir/configure" --help=recursive
1564 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1566 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1570 test -n "$ac_init_help" && exit $ac_status
1571 if $ac_init_version; then
1574 generated by GNU Autoconf
2.61
1576 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1577 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1578 This configure
script is free software
; the Free Software Foundation
1579 gives unlimited permission to copy
, distribute and modify it.
1583 cat >config.log
<<_ACEOF
1584 This file contains any messages produced by compilers while
1585 running configure, to aid debugging if configure makes a mistake.
1587 It was created by $as_me, which was
1588 generated by GNU Autoconf 2.61. Invocation command line was
1600 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1601 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1602 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1603 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1604 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1606 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1607 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1609 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1610 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1611 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1612 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1613 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1614 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1615 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1619 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1623 test -z "$as_dir" && as_dir
=.
1624 echo "PATH: $as_dir"
1640 # Keep a trace of the command line.
1641 # Strip out --no-create and --no-recursion so they do not pile up.
1642 # Strip out --silent because we don't want to record it for future runs.
1643 # Also quote any args containing shell meta-characters.
1644 # Make two passes to allow for proper duplicate-argument suppression.
1648 ac_must_keep_next
=false
1654 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1655 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1656 |
-silent |
--silent |
--silen |
--sile |
--sil)
1659 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1662 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1664 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1665 if test $ac_must_keep_next = true
; then
1666 ac_must_keep_next
=false
# Got value, back to normal.
1669 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1670 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1671 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1672 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1673 case "$ac_configure_args0 " in
1674 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1677 -* ) ac_must_keep_next
=true
;;
1680 ac_configure_args
="$ac_configure_args '$ac_arg'"
1685 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1686 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1688 # When interrupted or exit'd, cleanup temporary files, and complete
1689 # config.log. We remove comments because anyway the quotes in there
1690 # would cause problems or look ugly.
1691 # WARNING: Use '\'' to represent an apostrophe within the trap.
1692 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1693 trap 'exit_status=$?
1694 # Save into config.log some information that might help in debugging.
1699 ## ---------------- ##
1700 ## Cache variables. ##
1701 ## ---------------- ##
1704 # The following way of writing the cache mishandles newlines in values,
1706 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1707 eval ac_val=\$$ac_var
1711 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1712 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1715 _ | IFS | as_nl) ;; #(
1716 *) $as_unset $ac_var ;;
1721 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1722 *${as_nl}ac_space=\ *)
1724 "s/'\''/'\''\\\\'\'''\''/g;
1725 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1728 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1736 ## ----------------- ##
1737 ## Output variables. ##
1738 ## ----------------- ##
1741 for ac_var in $ac_subst_vars
1743 eval ac_val=\$$ac_var
1745 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1747 echo "$ac_var='\''$ac_val'\''"
1751 if test -n "$ac_subst_files"; then
1753 ## ------------------- ##
1754 ## File substitutions. ##
1755 ## ------------------- ##
1758 for ac_var
in $ac_subst_files
1760 eval ac_val
=\$
$ac_var
1762 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1764 echo "$ac_var='\''$ac_val'\''"
1769 if test -s confdefs.h; then
1779 test "$ac_signal" != 0 &&
1780 echo "$as_me: caught signal $ac_signal"
1781 echo "$as_me: exit $exit_status"
1783 rm -f core *.core core.conftest.* &&
1784 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1787 for ac_signal
in 1 2 13 15; do
1788 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1792 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1793 rm -f -r conftest
* confdefs.h
1795 # Predefined preprocessor variables.
1797 cat >>confdefs.h
<<_ACEOF
1798 #define PACKAGE_NAME "$PACKAGE_NAME"
1802 cat >>confdefs.h
<<_ACEOF
1803 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1807 cat >>confdefs.h
<<_ACEOF
1808 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1812 cat >>confdefs.h
<<_ACEOF
1813 #define PACKAGE_STRING "$PACKAGE_STRING"
1817 cat >>confdefs.h
<<_ACEOF
1818 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1822 # Let the site file select an alternate cache file if it wants to.
1823 # Prefer explicitly selected file to automatically selected ones.
1824 if test -n "$CONFIG_SITE"; then
1825 set x
"$CONFIG_SITE"
1826 elif test "x$prefix" != xNONE
; then
1827 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1829 set x
"$ac_default_prefix/share/config.site" \
1830 "$ac_default_prefix/etc/config.site"
1835 if test -r "$ac_site_file"; then
1836 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1837 echo "$as_me: loading site script $ac_site_file" >&6;}
1838 sed 's/^/| /' "$ac_site_file" >&5
1843 if test -r "$cache_file"; then
1844 # Some versions of bash will fail to source /dev/null (special
1845 # files actually), so we avoid doing that.
1846 if test -f "$cache_file"; then
1847 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1848 echo "$as_me: loading cache $cache_file" >&6;}
1850 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1851 *) .
"./$cache_file";;
1855 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1856 echo "$as_me: creating cache $cache_file" >&6;}
1860 # Check that the precious variables saved in the cache have kept the same
1862 ac_cache_corrupted
=false
1863 for ac_var
in $ac_precious_vars; do
1864 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1865 eval ac_new_set
=\
$ac_env_${ac_var}_set
1866 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1867 eval ac_new_val
=\
$ac_env_${ac_var}_value
1868 case $ac_old_set,$ac_new_set in
1870 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1871 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1872 ac_cache_corrupted
=: ;;
1874 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1875 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1876 ac_cache_corrupted
=: ;;
1879 if test "x$ac_old_val" != "x$ac_new_val"; then
1880 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1881 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1882 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1883 echo "$as_me: former value: $ac_old_val" >&2;}
1884 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1885 echo "$as_me: current value: $ac_new_val" >&2;}
1886 ac_cache_corrupted
=:
1889 # Pass precious variables to config.status.
1890 if test "$ac_new_set" = set; then
1892 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1893 *) ac_arg
=$ac_var=$ac_new_val ;;
1895 case " $ac_configure_args " in
1896 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1897 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1901 if $ac_cache_corrupted; then
1902 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1903 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1904 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1905 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1906 { (exit 1); exit 1; }; }
1926 ac_cpp
='$CPP $CPPFLAGS'
1927 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1928 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1929 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1933 ac_config_headers
="$ac_config_headers config.h"
1935 am__api_version
='1.10'
1938 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1939 if test -f "$ac_dir/install-sh"; then
1941 ac_install_sh
="$ac_aux_dir/install-sh -c"
1943 elif test -f "$ac_dir/install.sh"; then
1945 ac_install_sh
="$ac_aux_dir/install.sh -c"
1947 elif test -f "$ac_dir/shtool"; then
1949 ac_install_sh
="$ac_aux_dir/shtool install -c"
1953 if test -z "$ac_aux_dir"; then
1954 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1955 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1956 { (exit 1); exit 1; }; }
1959 # These three variables are undocumented and unsupported,
1960 # and are intended to be withdrawn in a future Autoconf release.
1961 # They can cause serious problems if a builder's source tree is in a directory
1962 # whose full name contains unusual characters.
1963 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1964 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1965 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1968 # Find a good install program. We prefer a C program (faster),
1969 # so one script is as good as another. But avoid the broken or
1970 # incompatible versions:
1971 # SysV /etc/install, /usr/sbin/install
1972 # SunOS /usr/etc/install
1973 # IRIX /sbin/install
1975 # AmigaOS /C/install, which installs bootblocks on floppy discs
1976 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1977 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1978 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1979 # OS/2's system install, which has a completely different semantic
1980 # ./install, which can be erroneously created by make from ./install.sh.
1981 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1982 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1983 if test -z "$INSTALL"; then
1984 if test "${ac_cv_path_install+set}" = set; then
1985 echo $ECHO_N "(cached) $ECHO_C" >&6
1987 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1991 test -z "$as_dir" && as_dir
=.
1992 # Account for people who put trailing slashes in PATH elements.
1994 .
/ | .
// |
/cC
/* | \
1995 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
1996 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
1999 # OSF1 and SCO ODT 3.0 have their own names for install.
2000 # Don't use installbsd from OSF since it installs stuff as root
2002 for ac_prog
in ginstall scoinst
install; do
2003 for ac_exec_ext
in '' $ac_executable_extensions; do
2004 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2005 if test $ac_prog = install &&
2006 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2007 # AIX install. It has an incompatible calling convention.
2009 elif test $ac_prog = install &&
2010 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2011 # program-specific install script used by HP pwplus--don't use.
2014 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2027 if test "${ac_cv_path_install+set}" = set; then
2028 INSTALL
=$ac_cv_path_install
2030 # As a last resort, use the slow shell script. Don't cache a
2031 # value for INSTALL within a source directory, because that will
2032 # break other packages using the cache if that directory is
2033 # removed, or if the value is a relative name.
2034 INSTALL
=$ac_install_sh
2037 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2038 echo "${ECHO_T}$INSTALL" >&6; }
2040 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2041 # It thinks the first close brace ends the variable substitution.
2042 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2044 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2046 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2048 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2049 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2052 echo timestamp
> conftest.
file
2053 # Do `set' in a subshell so we don't clobber the current shell's
2054 # arguments. Must try -L first in case configure is actually a
2055 # symlink; some systems play weird games with the mod time of symlinks
2056 # (eg FreeBSD returns the mod time of the symlink's containing
2059 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2060 if test "$*" = "X"; then
2062 set X
`ls -t $srcdir/configure conftest.file`
2065 if test "$*" != "X $srcdir/configure conftest.file" \
2066 && test "$*" != "X conftest.file $srcdir/configure"; then
2068 # If neither matched, then we have a broken ls. This can happen
2069 # if, for instance, CONFIG_SHELL is bash and it inherits a
2070 # broken ls alias from the environment. This has actually
2071 # happened. Such a system could not be considered "sane".
2072 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2073 alias in your environment" >&5
2074 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2075 alias in your environment" >&2;}
2076 { (exit 1); exit 1; }; }
2079 test "$2" = conftest.
file
2085 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2086 Check your system clock" >&5
2087 echo "$as_me: error: newly created file is older than distributed files!
2088 Check your system clock" >&2;}
2089 { (exit 1); exit 1; }; }
2091 { echo "$as_me:$LINENO: result: yes" >&5
2092 echo "${ECHO_T}yes" >&6; }
2093 test "$program_prefix" != NONE
&&
2094 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2095 # Use a double $ so make ignores it.
2096 test "$program_suffix" != NONE
&&
2097 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2098 # Double any \ or $. echo might interpret backslashes.
2099 # By default was `s,x,x', remove it if useless.
2100 cat <<\_ACEOF
>conftest.
sed
2101 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
2103 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
2106 # expand $ac_aux_dir to an absolute path
2107 am_aux_dir
=`cd $ac_aux_dir && pwd`
2109 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
2110 # Use eval to expand $SHELL
2111 if eval "$MISSING --run true"; then
2112 am_missing_run
="$MISSING --run "
2115 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2116 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2119 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2120 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2121 if test -z "$MKDIR_P"; then
2122 if test "${ac_cv_path_mkdir+set}" = set; then
2123 echo $ECHO_N "(cached) $ECHO_C" >&6
2125 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2126 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2129 test -z "$as_dir" && as_dir
=.
2130 for ac_prog
in mkdir gmkdir
; do
2131 for ac_exec_ext
in '' $ac_executable_extensions; do
2132 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
2133 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2134 'mkdir (GNU coreutils) '* | \
2135 'mkdir (coreutils) '* | \
2136 'mkdir (fileutils) '4.1*)
2137 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2147 if test "${ac_cv_path_mkdir+set}" = set; then
2148 MKDIR_P
="$ac_cv_path_mkdir -p"
2150 # As a last resort, use the slow shell script. Don't cache a
2151 # value for MKDIR_P within a source directory, because that will
2152 # break other packages using the cache if that directory is
2153 # removed, or if the value is a relative name.
2154 test -d .
/--version && rmdir .
/--version
2155 MKDIR_P
="$ac_install_sh -d"
2158 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2159 echo "${ECHO_T}$MKDIR_P" >&6; }
2163 [\\/$
]* | ?
:[\\/]*) ;;
2164 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
2167 for ac_prog
in gawk mawk nawk
awk
2169 # Extract the first word of "$ac_prog", so it can be a program name with args.
2170 set dummy
$ac_prog; ac_word
=$2
2171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2173 if test "${ac_cv_prog_AWK+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2176 if test -n "$AWK"; then
2177 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2179 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2183 test -z "$as_dir" && as_dir
=.
2184 for ac_exec_ext
in '' $ac_executable_extensions; do
2185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2186 ac_cv_prog_AWK
="$ac_prog"
2187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2197 if test -n "$AWK"; then
2198 { echo "$as_me:$LINENO: result: $AWK" >&5
2199 echo "${ECHO_T}$AWK" >&6; }
2201 { echo "$as_me:$LINENO: result: no" >&5
2202 echo "${ECHO_T}no" >&6; }
2206 test -n "$AWK" && break
2209 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2210 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2211 set x
${MAKE-make}; ac_make
=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2212 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2213 echo $ECHO_N "(cached) $ECHO_C" >&6
2215 cat >conftest.
make <<\_ACEOF
2218 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2220 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2221 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2223 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2225 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2229 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2230 { echo "$as_me:$LINENO: result: yes" >&5
2231 echo "${ECHO_T}yes" >&6; }
2234 { echo "$as_me:$LINENO: result: no" >&5
2235 echo "${ECHO_T}no" >&6; }
2236 SET_MAKE
="MAKE=${MAKE-make}"
2239 rm -rf .tst
2>/dev
/null
2240 mkdir .tst
2>/dev
/null
2241 if test -d .tst
; then
2246 rmdir .tst
2>/dev
/null
2248 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2249 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2250 # is not polluted with repeated "-I."
2251 am__isrc
=' -I$(srcdir)'
2252 # test to see if srcdir already configured
2253 if test -f $srcdir/config.status
; then
2254 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2255 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2256 { (exit 1); exit 1; }; }
2260 # test whether we have cygpath
2261 if test -z "$CYGPATH_W"; then
2262 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
2263 CYGPATH_W
='cygpath -w'
2270 # Define the identity of the package.
2275 cat >>confdefs.h
<<_ACEOF
2276 #define PACKAGE "$PACKAGE"
2280 cat >>confdefs.h
<<_ACEOF
2281 #define VERSION "$VERSION"
2284 # Some tools Automake needs.
2286 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2289 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
2292 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2295 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
2298 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
2300 install_sh
=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2302 # Installed binaries are usually stripped using `strip' when the user
2303 # run `make install-strip'. However `strip' might not be the right
2304 # tool to use in cross-compilation environments, therefore Automake
2305 # will honor the `STRIP' environment variable to overrule this program.
2306 if test "$cross_compiling" != no
; then
2307 if test -n "$ac_tool_prefix"; then
2308 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2309 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2312 if test "${ac_cv_prog_STRIP+set}" = set; then
2313 echo $ECHO_N "(cached) $ECHO_C" >&6
2315 if test -n "$STRIP"; then
2316 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2318 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2322 test -z "$as_dir" && as_dir
=.
2323 for ac_exec_ext
in '' $ac_executable_extensions; do
2324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2325 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2335 STRIP
=$ac_cv_prog_STRIP
2336 if test -n "$STRIP"; then
2337 { echo "$as_me:$LINENO: result: $STRIP" >&5
2338 echo "${ECHO_T}$STRIP" >&6; }
2340 { echo "$as_me:$LINENO: result: no" >&5
2341 echo "${ECHO_T}no" >&6; }
2346 if test -z "$ac_cv_prog_STRIP"; then
2348 # Extract the first word of "strip", so it can be a program name with args.
2349 set dummy strip
; ac_word
=$2
2350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2352 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2353 echo $ECHO_N "(cached) $ECHO_C" >&6
2355 if test -n "$ac_ct_STRIP"; then
2356 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2358 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2362 test -z "$as_dir" && as_dir
=.
2363 for ac_exec_ext
in '' $ac_executable_extensions; do
2364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2365 ac_cv_prog_ac_ct_STRIP
="strip"
2366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2375 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2376 if test -n "$ac_ct_STRIP"; then
2377 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2378 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2380 { echo "$as_me:$LINENO: result: no" >&5
2381 echo "${ECHO_T}no" >&6; }
2384 if test "x$ac_ct_STRIP" = x
; then
2387 case $cross_compiling:$ac_tool_warned in
2389 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2390 whose name does not start with the host triplet. If you think this
2391 configuration is useful to you, please write to autoconf@gnu.org." >&5
2392 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2393 whose name does not start with the host triplet. If you think this
2394 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2395 ac_tool_warned
=yes ;;
2400 STRIP
="$ac_cv_prog_STRIP"
2404 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2406 # We need awk for the "check" target. The system "awk" is bad on
2408 # Always define AMTAR for backward compatibility.
2410 AMTAR
=${AMTAR-"${am_missing_run}tar"}
2412 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
2420 ac_cpp
='$CXXCPP $CPPFLAGS'
2421 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2422 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2423 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2426 ac_cpp
='$CXXCPP $CPPFLAGS'
2427 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2428 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2429 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2430 if test -z "$CXX"; then
2431 if test -n "$CCC"; then
2434 if test -n "$ac_tool_prefix"; then
2435 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
2437 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2438 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2439 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2441 if test "${ac_cv_prog_CXX+set}" = set; then
2442 echo $ECHO_N "(cached) $ECHO_C" >&6
2444 if test -n "$CXX"; then
2445 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
2447 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2451 test -z "$as_dir" && as_dir
=.
2452 for ac_exec_ext
in '' $ac_executable_extensions; do
2453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2454 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
2455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2465 if test -n "$CXX"; then
2466 { echo "$as_me:$LINENO: result: $CXX" >&5
2467 echo "${ECHO_T}$CXX" >&6; }
2469 { echo "$as_me:$LINENO: result: no" >&5
2470 echo "${ECHO_T}no" >&6; }
2474 test -n "$CXX" && break
2477 if test -z "$CXX"; then
2479 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
2481 # Extract the first word of "$ac_prog", so it can be a program name with args.
2482 set dummy
$ac_prog; ac_word
=$2
2483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2485 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2486 echo $ECHO_N "(cached) $ECHO_C" >&6
2488 if test -n "$ac_ct_CXX"; then
2489 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
2491 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2495 test -z "$as_dir" && as_dir
=.
2496 for ac_exec_ext
in '' $ac_executable_extensions; do
2497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2498 ac_cv_prog_ac_ct_CXX
="$ac_prog"
2499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2508 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
2509 if test -n "$ac_ct_CXX"; then
2510 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2511 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2513 { echo "$as_me:$LINENO: result: no" >&5
2514 echo "${ECHO_T}no" >&6; }
2518 test -n "$ac_ct_CXX" && break
2521 if test "x$ac_ct_CXX" = x
; then
2524 case $cross_compiling:$ac_tool_warned in
2526 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2527 whose name does not start with the host triplet. If you think this
2528 configuration is useful to you, please write to autoconf@gnu.org." >&5
2529 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2530 whose name does not start with the host triplet. If you think this
2531 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2532 ac_tool_warned
=yes ;;
2540 # Provide some information about the compiler.
2541 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2542 ac_compiler
=`set X $ac_compile; echo $2`
2543 { (ac_try
="$ac_compiler --version >&5"
2545 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2546 *) ac_try_echo=$ac_try;;
2548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2549 (eval "$ac_compiler --version >&5") 2>&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }
2553 { (ac_try="$ac_compiler -v >&5"
2555 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2556 *) ac_try_echo
=$ac_try;;
2558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2559 (eval "$ac_compiler -v >&5") 2>&5
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); }
2563 { (ac_try
="$ac_compiler -V >&5"
2565 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2566 *) ac_try_echo=$ac_try;;
2568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2569 (eval "$ac_compiler -V >&5") 2>&5
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }
2574 cat >conftest.$ac_ext <<_ACEOF
2577 cat confdefs.h >>conftest.$ac_ext
2578 cat >>conftest.$ac_ext <<_ACEOF
2579 /* end confdefs.h. */
2589 ac_clean_files_save=$ac_clean_files
2590 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2591 # Try to create an executable without -o first, disregard a.out.
2592 # It will help us diagnose broken compilers, and finding out an intuition
2594 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2595 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2596 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2598 # List of possible output files, starting from the most likely.
2599 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2600 # only as a last resort. b.out is created by i960 compilers.
2601 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2603 # The IRIX 6 linker writes into existing files which may not be
2604 # executable, retaining their permissions. Remove them first so a
2605 # subsequent execution test works.
2607 for ac_file in $ac_files
2610 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2611 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2616 if { (ac_try="$ac_link_default"
2618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619 *) ac_try_echo=$ac_try;;
2621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2622 (eval "$ac_link_default") 2>&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; then
2626 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2627 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2628 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2629 # so that the user can short-circuit this test for compilers unknown to
2631 for ac_file
in $ac_files ''
2633 test -f "$ac_file" ||
continue
2635 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
2638 # We found the default executable, but exeext='' is most
2642 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2644 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2646 # We set ac_cv_exeext here because the later test for it is not
2647 # safe: cross compilers may not add the suffix if given an `-o'
2648 # argument, so we may need to know it at that point already.
2649 # Even if this section looks crufty: it has the advantage of
2656 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2662 { echo "$as_me:$LINENO: result: $ac_file" >&5
2663 echo "${ECHO_T}$ac_file" >&6; }
2664 if test -z "$ac_file"; then
2665 echo "$as_me: failed program was:" >&5
2666 sed 's/^/| /' conftest.
$ac_ext >&5
2668 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2669 See \`config.log' for more details." >&5
2670 echo "$as_me: error: C++ compiler cannot create executables
2671 See \`config.log' for more details." >&2;}
2672 { (exit 77); exit 77; }; }
2675 ac_exeext
=$ac_cv_exeext
2677 # Check that the compiler produces executables we can run. If not, either
2678 # the compiler is broken, or we cross compile.
2679 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2680 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2681 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2682 # If not cross compiling, check that we can run a simple program.
2683 if test "$cross_compiling" != yes; then
2684 if { ac_try
='./$ac_file'
2685 { (case "(($ac_try" in
2686 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2687 *) ac_try_echo=$ac_try;;
2689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2690 (eval "$ac_try") 2>&5
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; }; then
2696 if test "$cross_compiling" = maybe; then
2699 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2700 If you meant to cross compile, use \`--host'.
2701 See \`config.log' for more details.
" >&5
2702 echo "$as_me: error
: cannot run C
++ compiled programs.
2703 If you meant to cross compile
, use \
`--host'.
2704 See \`config.log
' for more details." >&2;}
2705 { (exit 1); exit 1; }; }
2709 { echo "$as_me:$LINENO: result: yes" >&5
2710 echo "${ECHO_T}yes" >&6; }
2712 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2713 ac_clean_files=$ac_clean_files_save
2714 # Check that the compiler produces executables we can run. If not, either
2715 # the compiler is broken, or we cross compile.
2716 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2717 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2718 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2719 echo "${ECHO_T}$cross_compiling" >&6; }
2721 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2722 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2723 if { (ac_try="$ac_link"
2725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726 *) ac_try_echo=$ac_try;;
2728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2729 (eval "$ac_link") 2>&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }; then
2733 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2734 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2735 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2737 for ac_file
in conftest.exe conftest conftest.
*; do
2738 test -f "$ac_file" ||
continue
2740 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
2741 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2747 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2748 See \`config.log' for more details." >&5
2749 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2750 See \`config.log' for more details." >&2;}
2751 { (exit 1); exit 1; }; }
2754 rm -f conftest
$ac_cv_exeext
2755 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2756 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2758 rm -f conftest.
$ac_ext
2759 EXEEXT
=$ac_cv_exeext
2761 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2762 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2763 if test "${ac_cv_objext+set}" = set; then
2764 echo $ECHO_N "(cached) $ECHO_C" >&6
2766 cat >conftest.
$ac_ext <<_ACEOF
2769 cat confdefs.h
>>conftest.
$ac_ext
2770 cat >>conftest.
$ac_ext <<_ACEOF
2771 /* end confdefs.h. */
2781 rm -f conftest.o conftest.obj
2782 if { (ac_try
="$ac_compile"
2784 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2785 *) ac_try_echo=$ac_try;;
2787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2788 (eval "$ac_compile") 2>&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); }; then
2792 for ac_file in conftest.o conftest.obj conftest.*; do
2793 test -f "$ac_file" || continue;
2795 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2796 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2801 echo "$as_me: failed program was:" >&5
2802 sed 's/^/| /' conftest.$ac_ext >&5
2804 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2805 See \`config.log
' for more details." >&5
2806 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2807 See \`config.log' for more details.
" >&2;}
2808 { (exit 1); exit 1; }; }
2811 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2813 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
2814 echo "${ECHO_T}$ac_cv_objext" >&6; }
2815 OBJEXT=$ac_cv_objext
2817 { echo "$as_me:$LINENO: checking whether we are using the GNU C
++ compiler
" >&5
2818 echo $ECHO_N "checking whether we are using the GNU C
++ compiler...
$ECHO_C" >&6; }
2819 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2820 echo $ECHO_N "(cached
) $ECHO_C" >&6
2822 cat >conftest.$ac_ext <<_ACEOF
2825 cat confdefs.h >>conftest.$ac_ext
2826 cat >>conftest.$ac_ext <<_ACEOF
2827 /* end confdefs.h. */
2840 rm -f conftest.$ac_objext
2841 if { (ac_try="$ac_compile"
2843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844 *) ac_try_echo=$ac_try;;
2846 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2847 (eval "$ac_compile") 2>conftest.er1
2849 grep -v '^ *+' conftest.er1 >conftest.err
2851 cat conftest.err >&5
2852 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2853 (exit $ac_status); } && {
2854 test -z "$ac_cxx_werror_flag" ||
2855 test ! -s conftest.err
2856 } && test -s conftest.$ac_objext; then
2859 echo "$as_me: failed program was
:" >&5
2860 sed 's/^/| /' conftest.$ac_ext >&5
2865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2866 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2869 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_compiler_gnu" >&5
2870 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2871 GXX=`test $ac_compiler_gnu = yes && echo yes`
2872 ac_test_CXXFLAGS=${CXXFLAGS+set}
2873 ac_save_CXXFLAGS=$CXXFLAGS
2874 { echo "$as_me:$LINENO: checking whether
$CXX accepts
-g" >&5
2875 echo $ECHO_N "checking whether
$CXX accepts
-g...
$ECHO_C" >&6; }
2876 if test "${ac_cv_prog_cxx_g+set}" = set; then
2877 echo $ECHO_N "(cached
) $ECHO_C" >&6
2879 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2880 ac_cxx_werror_flag=yes
2883 cat >conftest.$ac_ext <<_ACEOF
2886 cat confdefs.h >>conftest.$ac_ext
2887 cat >>conftest.$ac_ext <<_ACEOF
2888 /* end confdefs.h. */
2898 rm -f conftest.$ac_objext
2899 if { (ac_try="$ac_compile"
2901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2902 *) ac_try_echo=$ac_try;;
2904 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2905 (eval "$ac_compile") 2>conftest.er1
2907 grep -v '^ *+' conftest.er1 >conftest.err
2909 cat conftest.err >&5
2910 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2911 (exit $ac_status); } && {
2912 test -z "$ac_cxx_werror_flag" ||
2913 test ! -s conftest.err
2914 } && test -s conftest.$ac_objext; then
2915 ac_cv_prog_cxx_g=yes
2917 echo "$as_me: failed program was
:" >&5
2918 sed 's/^/| /' conftest.$ac_ext >&5
2921 cat >conftest.$ac_ext <<_ACEOF
2924 cat confdefs.h >>conftest.$ac_ext
2925 cat >>conftest.$ac_ext <<_ACEOF
2926 /* end confdefs.h. */
2936 rm -f conftest.$ac_objext
2937 if { (ac_try="$ac_compile"
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2942 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2943 (eval "$ac_compile") 2>conftest.er1
2945 grep -v '^ *+' conftest.er1 >conftest.err
2947 cat conftest.err >&5
2948 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2949 (exit $ac_status); } && {
2950 test -z "$ac_cxx_werror_flag" ||
2951 test ! -s conftest.err
2952 } && test -s conftest.$ac_objext; then
2955 echo "$as_me: failed program was
:" >&5
2956 sed 's/^/| /' conftest.$ac_ext >&5
2958 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2960 cat >conftest.$ac_ext <<_ACEOF
2963 cat confdefs.h >>conftest.$ac_ext
2964 cat >>conftest.$ac_ext <<_ACEOF
2965 /* end confdefs.h. */
2975 rm -f conftest.$ac_objext
2976 if { (ac_try="$ac_compile"
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2981 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2982 (eval "$ac_compile") 2>conftest.er1
2984 grep -v '^ *+' conftest.er1 >conftest.err
2986 cat conftest.err >&5
2987 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2988 (exit $ac_status); } && {
2989 test -z "$ac_cxx_werror_flag" ||
2990 test ! -s conftest.err
2991 } && test -s conftest.$ac_objext; then
2992 ac_cv_prog_cxx_g=yes
2994 echo "$as_me: failed program was
:" >&5
2995 sed 's/^/| /' conftest.$ac_ext >&5
3000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3007 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3009 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cxx_g" >&5
3010 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3011 if test "$ac_test_CXXFLAGS" = set; then
3012 CXXFLAGS=$ac_save_CXXFLAGS
3013 elif test $ac_cv_prog_cxx_g = yes; then
3014 if test "$GXX" = yes; then
3020 if test "$GXX" = yes; then
3027 ac_cpp='$CXXCPP $CPPFLAGS'
3028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3031 DEPDIR="${am__leading_dot}deps
"
3033 ac_config_commands="$ac_config_commands depfiles
"
3036 am_make=${MAKE-make}
3037 cat > confinc << 'END'
3042 # If we don't find an include directive, just comment out the code.
3043 { echo "$as_me:$LINENO: checking
for style of include used by
$am_make" >&5
3044 echo $ECHO_N "checking
for style of include used by
$am_make...
$ECHO_C" >&6; }
3048 # First try GNU make style include.
3049 echo "include confinc" > confmf
3050 # We grep out `Entering directory' and `Leaving directory'
3051 # messages which can occur if `w' ends up in MAKEFLAGS.
3052 # In particular we don't look at `^make:' because GNU make might
3053 # be invoked under some other name (usually "gmake"), in which
3054 # case it prints its new name instead of `make'.
3055 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3060 # Now try BSD make style include.
3061 if test "$am__include" = "#"; then
3062 echo '.include "confinc"' > confmf
3063 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3064 am__include
=.include
3071 { echo "$as_me:$LINENO: result: $_am_result" >&5
3072 echo "${ECHO_T}$_am_result" >&6; }
3073 rm -f confinc confmf
3075 # Check whether --enable-dependency-tracking was given.
3076 if test "${enable_dependency_tracking+set}" = set; then
3077 enableval
=$enable_dependency_tracking;
3080 if test "x$enable_dependency_tracking" != xno
; then
3081 am_depcomp
="$ac_aux_dir/depcomp"
3084 if test "x$enable_dependency_tracking" != xno; then
3094 depcc
="$CXX" am_compiler_list
=
3096 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3097 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3098 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3099 echo $ECHO_N "(cached) $ECHO_C" >&6
3101 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3102 # We make a subdir and do the tests there. Otherwise we can end up
3103 # making bogus files that we don't know about and never remove. For
3104 # instance it was reported that on HP-UX the gcc test will end up
3105 # making a dummy file named `D' -- because `-MD' means `put the output
3108 # Copy depcomp to subdir because otherwise we won't find it if we're
3109 # using a relative directory.
3110 cp "$am_depcomp" conftest.dir
3112 # We will build objects and dependencies in a subdirectory because
3113 # it helps to detect inapplicable dependency modes. For instance
3114 # both Tru64's cc and ICC support -MD to output dependencies as a
3115 # side effect of compilation, but ICC will put the dependencies in
3116 # the current directory while Tru64 will put them in the object
3120 am_cv_CXX_dependencies_compiler_type
=none
3121 if test "$am_compiler_list" = ""; then
3122 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3124 for depmode
in $am_compiler_list; do
3125 # Setup a source with many dependencies, because some compilers
3126 # like to wrap large dependency lists on column 80 (with \), and
3127 # we should not choose a depcomp mode which is confused by this.
3129 # We need to recreate these files for each test, as the compiler may
3130 # overwrite some of them when testing with obscure command lines.
3131 # This happens at least with the AIX C compiler.
3133 for i
in 1 2 3 4 5 6; do
3134 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3135 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3136 # Solaris 8's {/usr,}/bin/sh.
3137 touch sub
/conftst
$i.h
3139 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3143 # after this tag, mechanisms are not by side-effect, so they'll
3144 # only be used when explicitly requested
3145 if test "x$enable_dependency_tracking" = xyes
; then
3153 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3154 # mode. It turns out that the SunPro C++ compiler does not properly
3155 # handle `-M -o', and we need to detect this.
3156 if depmode
=$depmode \
3157 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3158 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3159 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3160 >/dev
/null
2>conftest.err
&&
3161 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3162 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3163 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3164 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3165 # icc doesn't choke on unknown options, it will just issue warnings
3166 # or remarks (even with -Werror). So we grep stderr for any message
3167 # that says an option was ignored or not supported.
3168 # When given -MP, icc 7.0 and 7.1 complain thusly:
3169 # icc: Command line warning: ignoring option '-M'; no argument required
3170 # The diagnosis changed in icc 8.0:
3171 # icc: Command line remark: option '-MP' not supported
3172 if (grep 'ignoring option' conftest.err ||
3173 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3174 am_cv_CXX_dependencies_compiler_type
=$depmode
3183 am_cv_CXX_dependencies_compiler_type
=none
3187 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3188 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3189 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
3192 test "x$enable_dependency_tracking" != xno \
3193 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
3194 am__fastdepCXX_TRUE
=
3195 am__fastdepCXX_FALSE
='#'
3197 am__fastdepCXX_TRUE
='#'
3198 am__fastdepCXX_FALSE
=
3203 # Check whether --enable-shared was given.
3204 if test "${enable_shared+set}" = set; then
3205 enableval
=$enable_shared; p
=${PACKAGE-default}
3207 yes) enable_shared
=yes ;;
3208 no
) enable_shared
=no
;;
3211 # Look at the argument we got. We use all the common list separators.
3212 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
3213 for pkg
in $enableval; do
3215 if test "X$pkg" = "X$p"; then
3227 # Check whether --enable-static was given.
3228 if test "${enable_static+set}" = set; then
3229 enableval
=$enable_static; p
=${PACKAGE-default}
3231 yes) enable_static
=yes ;;
3232 no
) enable_static
=no
;;
3235 # Look at the argument we got. We use all the common list separators.
3236 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
3237 for pkg
in $enableval; do
3239 if test "X$pkg" = "X$p"; then
3251 # Check whether --enable-fast-install was given.
3252 if test "${enable_fast_install+set}" = set; then
3253 enableval
=$enable_fast_install; p
=${PACKAGE-default}
3255 yes) enable_fast_install
=yes ;;
3256 no
) enable_fast_install
=no
;;
3258 enable_fast_install
=no
3259 # Look at the argument we got. We use all the common list separators.
3260 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
3261 for pkg
in $enableval; do
3263 if test "X$pkg" = "X$p"; then
3264 enable_fast_install
=yes
3271 enable_fast_install
=yes
3275 # Make sure we can run config.sub.
3276 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3277 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3278 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3279 { (exit 1); exit 1; }; }
3281 { echo "$as_me:$LINENO: checking build system type" >&5
3282 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3283 if test "${ac_cv_build+set}" = set; then
3284 echo $ECHO_N "(cached) $ECHO_C" >&6
3286 ac_build_alias
=$build_alias
3287 test "x$ac_build_alias" = x
&&
3288 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3289 test "x$ac_build_alias" = x
&&
3290 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3291 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3292 { (exit 1); exit 1; }; }
3293 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3294 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3295 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3296 { (exit 1); exit 1; }; }
3299 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3300 echo "${ECHO_T}$ac_cv_build" >&6; }
3301 case $ac_cv_build in
3303 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3304 echo "$as_me: error: invalid value of canonical build" >&2;}
3305 { (exit 1); exit 1; }; };;
3308 ac_save_IFS
=$IFS; IFS
='-'
3314 # Remember, the first character of IFS is used to create $*,
3315 # except with old shells:
3318 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3321 { echo "$as_me:$LINENO: checking host system type" >&5
3322 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3323 if test "${ac_cv_host+set}" = set; then
3324 echo $ECHO_N "(cached) $ECHO_C" >&6
3326 if test "x$host_alias" = x
; then
3327 ac_cv_host
=$ac_cv_build
3329 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3330 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3331 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3332 { (exit 1); exit 1; }; }
3336 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3337 echo "${ECHO_T}$ac_cv_host" >&6; }
3340 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3341 echo "$as_me: error: invalid value of canonical host" >&2;}
3342 { (exit 1); exit 1; }; };;
3345 ac_save_IFS
=$IFS; IFS
='-'
3351 # Remember, the first character of IFS is used to create $*,
3352 # except with old shells:
3355 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3359 ac_cpp
='$CPP $CPPFLAGS'
3360 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3361 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3362 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3363 if test -n "$ac_tool_prefix"; then
3364 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3365 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3368 if test "${ac_cv_prog_CC+set}" = set; then
3369 echo $ECHO_N "(cached) $ECHO_C" >&6
3371 if test -n "$CC"; then
3372 ac_cv_prog_CC
="$CC" # Let the user override the test.
3374 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3378 test -z "$as_dir" && as_dir
=.
3379 for ac_exec_ext
in '' $ac_executable_extensions; do
3380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3381 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3392 if test -n "$CC"; then
3393 { echo "$as_me:$LINENO: result: $CC" >&5
3394 echo "${ECHO_T}$CC" >&6; }
3396 { echo "$as_me:$LINENO: result: no" >&5
3397 echo "${ECHO_T}no" >&6; }
3402 if test -z "$ac_cv_prog_CC"; then
3404 # Extract the first word of "gcc", so it can be a program name with args.
3405 set dummy gcc
; ac_word
=$2
3406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3408 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3409 echo $ECHO_N "(cached) $ECHO_C" >&6
3411 if test -n "$ac_ct_CC"; then
3412 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3414 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3418 test -z "$as_dir" && as_dir
=.
3419 for ac_exec_ext
in '' $ac_executable_extensions; do
3420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3421 ac_cv_prog_ac_ct_CC
="gcc"
3422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3431 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3432 if test -n "$ac_ct_CC"; then
3433 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3434 echo "${ECHO_T}$ac_ct_CC" >&6; }
3436 { echo "$as_me:$LINENO: result: no" >&5
3437 echo "${ECHO_T}no" >&6; }
3440 if test "x$ac_ct_CC" = x
; then
3443 case $cross_compiling:$ac_tool_warned in
3445 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3446 whose name does not start with the host triplet. If you think this
3447 configuration is useful to you, please write to autoconf@gnu.org." >&5
3448 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3449 whose name does not start with the host triplet. If you think this
3450 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3451 ac_tool_warned
=yes ;;
3459 if test -z "$CC"; then
3460 if test -n "$ac_tool_prefix"; then
3461 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3462 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3465 if test "${ac_cv_prog_CC+set}" = set; then
3466 echo $ECHO_N "(cached) $ECHO_C" >&6
3468 if test -n "$CC"; then
3469 ac_cv_prog_CC
="$CC" # Let the user override the test.
3471 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3475 test -z "$as_dir" && as_dir
=.
3476 for ac_exec_ext
in '' $ac_executable_extensions; do
3477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3478 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3489 if test -n "$CC"; then
3490 { echo "$as_me:$LINENO: result: $CC" >&5
3491 echo "${ECHO_T}$CC" >&6; }
3493 { echo "$as_me:$LINENO: result: no" >&5
3494 echo "${ECHO_T}no" >&6; }
3500 if test -z "$CC"; then
3501 # Extract the first word of "cc", so it can be a program name with args.
3502 set dummy cc
; ac_word
=$2
3503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3505 if test "${ac_cv_prog_CC+set}" = set; then
3506 echo $ECHO_N "(cached) $ECHO_C" >&6
3508 if test -n "$CC"; then
3509 ac_cv_prog_CC
="$CC" # Let the user override the test.
3512 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3516 test -z "$as_dir" && as_dir
=.
3517 for ac_exec_ext
in '' $ac_executable_extensions; do
3518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3519 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3520 ac_prog_rejected
=yes
3524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3531 if test $ac_prog_rejected = yes; then
3532 # We found a bogon in the path, so make sure we never use it.
3533 set dummy
$ac_cv_prog_CC
3535 if test $# != 0; then
3536 # We chose a different compiler from the bogus one.
3537 # However, it has the same basename, so the bogon will be chosen
3538 # first if we set CC to just the basename; use the full file name.
3540 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3546 if test -n "$CC"; then
3547 { echo "$as_me:$LINENO: result: $CC" >&5
3548 echo "${ECHO_T}$CC" >&6; }
3550 { echo "$as_me:$LINENO: result: no" >&5
3551 echo "${ECHO_T}no" >&6; }
3556 if test -z "$CC"; then
3557 if test -n "$ac_tool_prefix"; then
3558 for ac_prog
in cl.exe
3560 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3561 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3562 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3564 if test "${ac_cv_prog_CC+set}" = set; then
3565 echo $ECHO_N "(cached) $ECHO_C" >&6
3567 if test -n "$CC"; then
3568 ac_cv_prog_CC
="$CC" # Let the user override the test.
3570 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3574 test -z "$as_dir" && as_dir
=.
3575 for ac_exec_ext
in '' $ac_executable_extensions; do
3576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3577 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3588 if test -n "$CC"; then
3589 { echo "$as_me:$LINENO: result: $CC" >&5
3590 echo "${ECHO_T}$CC" >&6; }
3592 { echo "$as_me:$LINENO: result: no" >&5
3593 echo "${ECHO_T}no" >&6; }
3597 test -n "$CC" && break
3600 if test -z "$CC"; then
3602 for ac_prog
in cl.exe
3604 # Extract the first word of "$ac_prog", so it can be a program name with args.
3605 set dummy
$ac_prog; ac_word
=$2
3606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3608 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3611 if test -n "$ac_ct_CC"; then
3612 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3614 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3618 test -z "$as_dir" && as_dir
=.
3619 for ac_exec_ext
in '' $ac_executable_extensions; do
3620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3621 ac_cv_prog_ac_ct_CC
="$ac_prog"
3622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3631 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3632 if test -n "$ac_ct_CC"; then
3633 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3634 echo "${ECHO_T}$ac_ct_CC" >&6; }
3636 { echo "$as_me:$LINENO: result: no" >&5
3637 echo "${ECHO_T}no" >&6; }
3641 test -n "$ac_ct_CC" && break
3644 if test "x$ac_ct_CC" = x
; then
3647 case $cross_compiling:$ac_tool_warned in
3649 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3650 whose name does not start with the host triplet. If you think this
3651 configuration is useful to you, please write to autoconf@gnu.org." >&5
3652 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3653 whose name does not start with the host triplet. If you think this
3654 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3655 ac_tool_warned
=yes ;;
3664 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3665 See \`config.log' for more details." >&5
3666 echo "$as_me: error: no acceptable C compiler found in \$PATH
3667 See \`config.log' for more details." >&2;}
3668 { (exit 1); exit 1; }; }
3670 # Provide some information about the compiler.
3671 echo "$as_me:$LINENO: checking for C compiler version" >&5
3672 ac_compiler
=`set X $ac_compile; echo $2`
3673 { (ac_try
="$ac_compiler --version >&5"
3675 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3676 *) ac_try_echo=$ac_try;;
3678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3679 (eval "$ac_compiler --version >&5") 2>&5
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); }
3683 { (ac_try="$ac_compiler -v >&5"
3685 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3686 *) ac_try_echo
=$ac_try;;
3688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3689 (eval "$ac_compiler -v >&5") 2>&5
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); }
3693 { (ac_try
="$ac_compiler -V >&5"
3695 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3696 *) ac_try_echo=$ac_try;;
3698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3699 (eval "$ac_compiler -V >&5") 2>&5
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); }
3704 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3705 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3706 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3709 cat >conftest.$ac_ext <<_ACEOF
3712 cat confdefs.h >>conftest.$ac_ext
3713 cat >>conftest.$ac_ext <<_ACEOF
3714 /* end confdefs.h. */
3727 rm -f conftest.$ac_objext
3728 if { (ac_try="$ac_compile"
3730 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3731 *) ac_try_echo
=$ac_try;;
3733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3734 (eval "$ac_compile") 2>conftest.er1
3736 grep -v '^ *+' conftest.er1
>conftest.err
3738 cat conftest.err
>&5
3739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740 (exit $ac_status); } && {
3741 test -z "$ac_c_werror_flag" ||
3742 test ! -s conftest.err
3743 } && test -s conftest.
$ac_objext; then
3746 echo "$as_me: failed program was:" >&5
3747 sed 's/^/| /' conftest.
$ac_ext >&5
3752 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3753 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3756 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3757 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3758 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3759 ac_test_CFLAGS
=${CFLAGS+set}
3760 ac_save_CFLAGS
=$CFLAGS
3761 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3762 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3763 if test "${ac_cv_prog_cc_g+set}" = set; then
3764 echo $ECHO_N "(cached) $ECHO_C" >&6
3766 ac_save_c_werror_flag
=$ac_c_werror_flag
3767 ac_c_werror_flag
=yes
3770 cat >conftest.
$ac_ext <<_ACEOF
3773 cat confdefs.h
>>conftest.
$ac_ext
3774 cat >>conftest.
$ac_ext <<_ACEOF
3775 /* end confdefs.h. */
3785 rm -f conftest.
$ac_objext
3786 if { (ac_try
="$ac_compile"
3788 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3789 *) ac_try_echo=$ac_try;;
3791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3792 (eval "$ac_compile") 2>conftest.er1
3794 grep -v '^ *+' conftest.er1 >conftest.err
3796 cat conftest.err >&5
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); } && {
3799 test -z "$ac_c_werror_flag" ||
3800 test ! -s conftest.err
3801 } && test -s conftest.$ac_objext; then
3804 echo "$as_me: failed program was:" >&5
3805 sed 's/^/| /' conftest.$ac_ext >&5
3808 cat >conftest.$ac_ext <<_ACEOF
3811 cat confdefs.h >>conftest.$ac_ext
3812 cat >>conftest.$ac_ext <<_ACEOF
3813 /* end confdefs.h. */
3823 rm -f conftest.$ac_objext
3824 if { (ac_try="$ac_compile"
3826 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3827 *) ac_try_echo
=$ac_try;;
3829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3830 (eval "$ac_compile") 2>conftest.er1
3832 grep -v '^ *+' conftest.er1
>conftest.err
3834 cat conftest.err
>&5
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); } && {
3837 test -z "$ac_c_werror_flag" ||
3838 test ! -s conftest.err
3839 } && test -s conftest.
$ac_objext; then
3842 echo "$as_me: failed program was:" >&5
3843 sed 's/^/| /' conftest.
$ac_ext >&5
3845 ac_c_werror_flag
=$ac_save_c_werror_flag
3847 cat >conftest.
$ac_ext <<_ACEOF
3850 cat confdefs.h
>>conftest.
$ac_ext
3851 cat >>conftest.
$ac_ext <<_ACEOF
3852 /* end confdefs.h. */
3862 rm -f conftest.
$ac_objext
3863 if { (ac_try
="$ac_compile"
3865 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3866 *) ac_try_echo=$ac_try;;
3868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3869 (eval "$ac_compile") 2>conftest.er1
3871 grep -v '^ *+' conftest.er1 >conftest.err
3873 cat conftest.err >&5
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); } && {
3876 test -z "$ac_c_werror_flag" ||
3877 test ! -s conftest.err
3878 } && test -s conftest.$ac_objext; then
3881 echo "$as_me: failed program was:" >&5
3882 sed 's/^/| /' conftest.$ac_ext >&5
3887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3894 ac_c_werror_flag=$ac_save_c_werror_flag
3896 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3897 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3898 if test "$ac_test_CFLAGS" = set; then
3899 CFLAGS=$ac_save_CFLAGS
3900 elif test $ac_cv_prog_cc_g = yes; then
3901 if test "$GCC" = yes; then
3907 if test "$GCC" = yes; then
3913 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3914 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3915 if test "${ac_cv_prog_cc_c89+set}" = set; then
3916 echo $ECHO_N "(cached) $ECHO_C" >&6
3918 ac_cv_prog_cc_c89=no
3920 cat >conftest.$ac_ext <<_ACEOF
3923 cat confdefs.h >>conftest.$ac_ext
3924 cat >>conftest.$ac_ext <<_ACEOF
3925 /* end confdefs.h. */
3928 #include <sys/types.h>
3929 #include <sys/stat.h>
3930 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3931 struct buf { int x; };
3932 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3933 static char *e (p, i)
3939 static char *f (char * (*g) (char **, int), char **p, ...)
3944 s = g (p, va_arg (v,int));
3949 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3950 function prototypes and stuff, but not '\xHH' hex character constants.
3951 These don't provoke an error unfortunately, instead are silently treated
3952 as 'x'. The following induces an error, until -std is added to get
3953 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3954 array size at least. It's necessary to write '\x00'==0 to get something
3955 that's true only with -std. */
3956 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3958 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3959 inside strings and character constants. */
3961 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3963 int test (int i, double x);
3964 struct s1 {int (*f) (int a);};
3965 struct s2 {int (*f) (double a);};
3966 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3972 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3977 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3978 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3980 CC="$ac_save_CC $ac_arg"
3981 rm -f conftest.$ac_objext
3982 if { (ac_try="$ac_compile"
3984 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3985 *) ac_try_echo
=$ac_try;;
3987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3988 (eval "$ac_compile") 2>conftest.er1
3990 grep -v '^ *+' conftest.er1
>conftest.err
3992 cat conftest.err
>&5
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); } && {
3995 test -z "$ac_c_werror_flag" ||
3996 test ! -s conftest.err
3997 } && test -s conftest.
$ac_objext; then
3998 ac_cv_prog_cc_c89
=$ac_arg
4000 echo "$as_me: failed program was:" >&5
4001 sed 's/^/| /' conftest.
$ac_ext >&5
4006 rm -f core conftest.err conftest.
$ac_objext
4007 test "x$ac_cv_prog_cc_c89" != "xno" && break
4009 rm -f conftest.
$ac_ext
4014 case "x$ac_cv_prog_cc_c89" in
4016 { echo "$as_me:$LINENO: result: none needed" >&5
4017 echo "${ECHO_T}none needed" >&6; } ;;
4019 { echo "$as_me:$LINENO: result: unsupported" >&5
4020 echo "${ECHO_T}unsupported" >&6; } ;;
4022 CC
="$CC $ac_cv_prog_cc_c89"
4023 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4024 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4029 ac_cpp
='$CXXCPP $CPPFLAGS'
4030 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4031 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4032 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4034 depcc
="$CC" am_compiler_list
=
4036 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4037 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4038 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4039 echo $ECHO_N "(cached) $ECHO_C" >&6
4041 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4042 # We make a subdir and do the tests there. Otherwise we can end up
4043 # making bogus files that we don't know about and never remove. For
4044 # instance it was reported that on HP-UX the gcc test will end up
4045 # making a dummy file named `D' -- because `-MD' means `put the output
4048 # Copy depcomp to subdir because otherwise we won't find it if we're
4049 # using a relative directory.
4050 cp "$am_depcomp" conftest.dir
4052 # We will build objects and dependencies in a subdirectory because
4053 # it helps to detect inapplicable dependency modes. For instance
4054 # both Tru64's cc and ICC support -MD to output dependencies as a
4055 # side effect of compilation, but ICC will put the dependencies in
4056 # the current directory while Tru64 will put them in the object
4060 am_cv_CC_dependencies_compiler_type
=none
4061 if test "$am_compiler_list" = ""; then
4062 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4064 for depmode
in $am_compiler_list; do
4065 # Setup a source with many dependencies, because some compilers
4066 # like to wrap large dependency lists on column 80 (with \), and
4067 # we should not choose a depcomp mode which is confused by this.
4069 # We need to recreate these files for each test, as the compiler may
4070 # overwrite some of them when testing with obscure command lines.
4071 # This happens at least with the AIX C compiler.
4073 for i
in 1 2 3 4 5 6; do
4074 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4075 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4076 # Solaris 8's {/usr,}/bin/sh.
4077 touch sub
/conftst
$i.h
4079 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4083 # after this tag, mechanisms are not by side-effect, so they'll
4084 # only be used when explicitly requested
4085 if test "x$enable_dependency_tracking" = xyes
; then
4093 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4094 # mode. It turns out that the SunPro C++ compiler does not properly
4095 # handle `-M -o', and we need to detect this.
4096 if depmode
=$depmode \
4097 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
4098 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4099 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
4100 >/dev
/null
2>conftest.err
&&
4101 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4102 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4103 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
4104 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4105 # icc doesn't choke on unknown options, it will just issue warnings
4106 # or remarks (even with -Werror). So we grep stderr for any message
4107 # that says an option was ignored or not supported.
4108 # When given -MP, icc 7.0 and 7.1 complain thusly:
4109 # icc: Command line warning: ignoring option '-M'; no argument required
4110 # The diagnosis changed in icc 8.0:
4111 # icc: Command line remark: option '-MP' not supported
4112 if (grep 'ignoring option' conftest.err ||
4113 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4114 am_cv_CC_dependencies_compiler_type
=$depmode
4123 am_cv_CC_dependencies_compiler_type
=none
4127 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4128 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4129 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4132 test "x$enable_dependency_tracking" != xno \
4133 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
4135 am__fastdepCC_FALSE
='#'
4137 am__fastdepCC_TRUE
='#'
4138 am__fastdepCC_FALSE
=
4142 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4143 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4144 if test "${lt_cv_path_SED+set}" = set; then
4145 echo $ECHO_N "(cached) $ECHO_C" >&6
4147 # Loop through the user's path and test for sed and gsed.
4148 # Then use that list of sed's as ones to test for truncation.
4149 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4153 test -z "$as_dir" && as_dir
=.
4154 for lt_ac_prog
in sed gsed
; do
4155 for ac_exec_ext
in '' $ac_executable_extensions; do
4156 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4157 lt_ac_sed_list
="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4165 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4166 # along with /bin/sed that truncates output.
4167 for lt_ac_sed
in $lt_ac_sed_list /usr
/xpg
4/bin
/sed; do
4168 test ! -f $lt_ac_sed && continue
4169 cat /dev
/null
> conftest.
in
4171 echo $ECHO_N "0123456789$ECHO_C" >conftest.
in
4172 # Check for GNU sed and select it if it is found.
4173 if "$lt_ac_sed" --version 2>&1 < /dev
/null |
grep 'GNU' > /dev
/null
; then
4174 lt_cv_path_SED
=$lt_ac_sed
4178 cat conftest.
in conftest.
in >conftest.tmp
4179 mv conftest.tmp conftest.
in
4180 cp conftest.
in conftest.
nl
4182 $lt_ac_sed -e 's/a$//' < conftest.
nl >conftest.out ||
break
4183 cmp -s conftest.out conftest.
nl ||
break
4184 # 10000 chars as input seems more than enough
4185 test $lt_ac_count -gt 10 && break
4186 lt_ac_count
=`expr $lt_ac_count + 1`
4187 if test $lt_ac_count -gt $lt_ac_max; then
4188 lt_ac_max
=$lt_ac_count
4189 lt_cv_path_SED
=$lt_ac_sed
4198 { echo "$as_me:$LINENO: result: $SED" >&5
4199 echo "${ECHO_T}$SED" >&6; }
4201 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4202 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4203 if test "${ac_cv_path_GREP+set}" = set; then
4204 echo $ECHO_N "(cached) $ECHO_C" >&6
4206 # Extract the first word of "grep ggrep" to use in msg output
4207 if test -z "$GREP"; then
4208 set dummy
grep ggrep
; ac_prog_name
=$2
4209 if test "${ac_cv_path_GREP+set}" = set; then
4210 echo $ECHO_N "(cached) $ECHO_C" >&6
4212 ac_path_GREP_found
=false
4213 # Loop through the user's path and test for each of PROGNAME-LIST
4214 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4215 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4218 test -z "$as_dir" && as_dir
=.
4219 for ac_prog
in grep ggrep
; do
4220 for ac_exec_ext
in '' $ac_executable_extensions; do
4221 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4222 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4223 # Check for GNU ac_path_GREP and select it if it is found.
4224 # Check for GNU $ac_path_GREP
4225 case `"$ac_path_GREP" --version 2>&1` in
4227 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4230 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4233 cat "conftest.in" "conftest.in" >"conftest.tmp"
4234 mv "conftest.tmp" "conftest.in"
4235 cp "conftest.in" "conftest.nl"
4236 echo 'GREP' >> "conftest.nl"
4237 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4238 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4239 ac_count
=`expr $ac_count + 1`
4240 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4241 # Best one so far, save it but keep looking for a better one
4242 ac_cv_path_GREP
="$ac_path_GREP"
4243 ac_path_GREP_max
=$ac_count
4245 # 10*(2^10) chars as input seems more than enough
4246 test $ac_count -gt 10 && break
4248 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4252 $ac_path_GREP_found && break 3
4262 GREP
="$ac_cv_path_GREP"
4263 if test -z "$GREP"; then
4264 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4265 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4266 { (exit 1); exit 1; }; }
4270 ac_cv_path_GREP
=$GREP
4275 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4276 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4277 GREP
="$ac_cv_path_GREP"
4280 { echo "$as_me:$LINENO: checking for egrep" >&5
4281 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4282 if test "${ac_cv_path_EGREP+set}" = set; then
4283 echo $ECHO_N "(cached) $ECHO_C" >&6
4285 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4286 then ac_cv_path_EGREP
="$GREP -E"
4288 # Extract the first word of "egrep" to use in msg output
4289 if test -z "$EGREP"; then
4290 set dummy
egrep; ac_prog_name
=$2
4291 if test "${ac_cv_path_EGREP+set}" = set; then
4292 echo $ECHO_N "(cached) $ECHO_C" >&6
4294 ac_path_EGREP_found
=false
4295 # Loop through the user's path and test for each of PROGNAME-LIST
4296 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4297 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4300 test -z "$as_dir" && as_dir
=.
4301 for ac_prog
in egrep; do
4302 for ac_exec_ext
in '' $ac_executable_extensions; do
4303 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4304 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4305 # Check for GNU ac_path_EGREP and select it if it is found.
4306 # Check for GNU $ac_path_EGREP
4307 case `"$ac_path_EGREP" --version 2>&1` in
4309 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4312 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4315 cat "conftest.in" "conftest.in" >"conftest.tmp"
4316 mv "conftest.tmp" "conftest.in"
4317 cp "conftest.in" "conftest.nl"
4318 echo 'EGREP' >> "conftest.nl"
4319 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4320 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4321 ac_count
=`expr $ac_count + 1`
4322 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4323 # Best one so far, save it but keep looking for a better one
4324 ac_cv_path_EGREP
="$ac_path_EGREP"
4325 ac_path_EGREP_max
=$ac_count
4327 # 10*(2^10) chars as input seems more than enough
4328 test $ac_count -gt 10 && break
4330 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4334 $ac_path_EGREP_found && break 3
4344 EGREP
="$ac_cv_path_EGREP"
4345 if test -z "$EGREP"; then
4346 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4347 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4348 { (exit 1); exit 1; }; }
4352 ac_cv_path_EGREP
=$EGREP
4358 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4359 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4360 EGREP
="$ac_cv_path_EGREP"
4364 # Check whether --with-gnu-ld was given.
4365 if test "${with_gnu_ld+set}" = set; then
4366 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
4372 if test "$GCC" = yes; then
4373 # Check if gcc -print-prog-name=ld gives a path.
4374 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4375 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4378 # gcc leaves a trailing carriage return which upsets mingw
4379 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4381 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
4384 # Accept absolute paths.
4386 re_direlt
='/[^/][^/]*/\.\./'
4387 # Canonicalize the pathname of ld
4388 ac_prog
=`echo $ac_prog| $SED 's%\\\\%/%g'`
4389 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
4390 ac_prog
=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4392 test -z "$LD" && LD
="$ac_prog"
4395 # If it fails, then pretend we aren't using GCC.
4399 # If it is relative, then search for the first ld in PATH.
4403 elif test "$with_gnu_ld" = yes; then
4404 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4405 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4407 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4408 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4410 if test "${lt_cv_path_LD+set}" = set; then
4411 echo $ECHO_N "(cached) $ECHO_C" >&6
4413 if test -z "$LD"; then
4414 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4415 for ac_dir
in $PATH; do
4417 test -z "$ac_dir" && ac_dir
=.
4418 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
4419 lt_cv_path_LD
="$ac_dir/$ac_prog"
4420 # Check to see if the program is GNU ld. I'd rather use --version,
4421 # but apparently some variants of GNU ld only accept -v.
4422 # Break only if it was the GNU/non-GNU ld that we prefer.
4423 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4424 *GNU
* |
*'with BFD'*)
4425 test "$with_gnu_ld" != no
&& break
4428 test "$with_gnu_ld" != yes && break
4435 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
4440 if test -n "$LD"; then
4441 { echo "$as_me:$LINENO: result: $LD" >&5
4442 echo "${ECHO_T}$LD" >&6; }
4444 { echo "$as_me:$LINENO: result: no" >&5
4445 echo "${ECHO_T}no" >&6; }
4447 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4448 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4449 { (exit 1); exit 1; }; }
4450 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4451 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4452 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4453 echo $ECHO_N "(cached) $ECHO_C" >&6
4455 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4456 case `$LD -v 2>&1 </dev/null` in
4457 *GNU
* |
*'with BFD'*)
4458 lt_cv_prog_gnu_ld
=yes
4461 lt_cv_prog_gnu_ld
=no
4465 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4466 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4467 with_gnu_ld
=$lt_cv_prog_gnu_ld
4470 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4471 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4472 if test "${lt_cv_ld_reload_flag+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4475 lt_cv_ld_reload_flag
='-r'
4477 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4478 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4479 reload_flag
=$lt_cv_ld_reload_flag
4480 case $reload_flag in
4482 *) reload_flag
=" $reload_flag" ;;
4484 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
4487 if test "$GCC" = yes; then
4488 reload_cmds
='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4490 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
4495 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4496 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4497 if test "${lt_cv_path_NM+set}" = set; then
4498 echo $ECHO_N "(cached) $ECHO_C" >&6
4500 if test -n "$NM"; then
4501 # Let the user override the test.
4504 lt_nm_to_check
="${ac_tool_prefix}nm"
4505 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4506 lt_nm_to_check
="$lt_nm_to_check nm"
4508 for lt_tmp_nm
in $lt_nm_to_check; do
4509 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4510 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
4512 test -z "$ac_dir" && ac_dir
=.
4513 tmp_nm
="$ac_dir/$lt_tmp_nm"
4514 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
4515 # Check to see if the nm accepts a BSD-compat flag.
4516 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4517 # nm: unknown option "B" ignored
4518 # Tru64's nm complains that /dev/null is an invalid object file
4519 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4520 */dev
/null
* |
*'Invalid file or object type'*)
4521 lt_cv_path_NM
="$tmp_nm -B"
4525 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4527 lt_cv_path_NM
="$tmp_nm -p"
4531 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4532 continue # so that we can try to find one that supports BSD flags
4541 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
4544 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4545 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4548 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4549 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4551 if test "$LN_S" = "ln -s"; then
4552 { echo "$as_me:$LINENO: result: yes" >&5
4553 echo "${ECHO_T}yes" >&6; }
4555 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4556 echo "${ECHO_T}no, using $LN_S" >&6; }
4559 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4560 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4561 if test "${lt_cv_deplibs_check_method+set}" = set; then
4562 echo $ECHO_N "(cached) $ECHO_C" >&6
4564 lt_cv_file_magic_cmd
='$MAGIC_CMD'
4565 lt_cv_file_magic_test_file
=
4566 lt_cv_deplibs_check_method
='unknown'
4567 # Need to set the preceding variable on all platforms that support
4568 # interlibrary dependencies.
4569 # 'none' -- dependencies not supported.
4570 # `unknown' -- same as none, but documents that we really don't know.
4571 # 'pass_all' -- all dependencies passed with no checks.
4572 # 'test_compile' -- check by making test program.
4573 # 'file_magic [[regex]]' -- check by looking for files in library path
4574 # which responds to the $file_magic_cmd with a given extended regex.
4575 # If you have `file' or equivalent on your system and you're not sure
4576 # whether `pass_all' will *always* work, you probably want this one.
4580 lt_cv_deplibs_check_method
=pass_all
4584 lt_cv_deplibs_check_method
=pass_all
4588 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4589 lt_cv_file_magic_cmd
='/usr/bin/file -L'
4590 lt_cv_file_magic_test_file
=/shlib
/libc.so
4594 # func_win32_libid is a shell function defined in ltmain.sh
4595 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
4596 lt_cv_file_magic_cmd
='func_win32_libid'
4600 # Base MSYS/MinGW do not provide the 'file' command needed by
4601 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4602 # unless we find 'file', for example because we are cross-compiling.
4603 if ( file / ) >/dev
/null
2>&1; then
4604 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
4605 lt_cv_file_magic_cmd
='func_win32_libid'
4607 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
4608 lt_cv_file_magic_cmd
='$OBJDUMP -f'
4612 darwin
* | rhapsody
*)
4613 lt_cv_deplibs_check_method
=pass_all
4616 freebsd
* | dragonfly
*)
4617 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
4620 # Not sure whether the presence of OpenBSD here was a mistake.
4621 # Let's accept both of them until this is cleared up.
4622 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4623 lt_cv_file_magic_cmd
=/usr
/bin
/file
4624 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
4628 lt_cv_deplibs_check_method
=pass_all
4633 lt_cv_deplibs_check_method
=pass_all
4636 hpux10.20
* | hpux11
*)
4637 lt_cv_file_magic_cmd
=/usr
/bin
/file
4640 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4641 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
4644 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]'
4645 lt_cv_file_magic_test_file
=/usr
/lib
/pa20_64
/libc.sl
4648 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4649 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
4655 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4656 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|\.a)$'
4659 irix5
* | irix6
* | nonstopux
*)
4661 *-32|
*"-32 ") libmagic
=32-bit;;
4662 *-n32|
*"-n32 ") libmagic
=N32
;;
4663 *-64|
*"-64 ") libmagic
=64-bit;;
4664 *) libmagic
=never-match
;;
4666 lt_cv_deplibs_check_method
=pass_all
4669 # This must be Linux ELF.
4670 linux
* | k
*bsd
*-gnu)
4671 lt_cv_deplibs_check_method
=pass_all
4675 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
4676 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4678 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4683 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4684 lt_cv_file_magic_cmd
=/usr
/bin
/file
4685 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
4689 lt_cv_deplibs_check_method
=unknown
4693 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4694 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4696 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4700 osf3
* | osf4
* | osf5
*)
4701 lt_cv_deplibs_check_method
=pass_all
4705 lt_cv_deplibs_check_method
=pass_all
4709 lt_cv_deplibs_check_method
=pass_all
4713 case $host_vendor in
4715 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]'
4716 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
4719 lt_cv_deplibs_check_method
=pass_all
4722 lt_cv_file_magic_cmd
='/bin/file'
4723 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4726 lt_cv_file_magic_cmd
='/bin/file'
4727 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4728 lt_cv_file_magic_test_file
=/lib
/libc.so
4731 lt_cv_deplibs_check_method
=pass_all
4734 lt_cv_deplibs_check_method
=pass_all
4739 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
4740 lt_cv_deplibs_check_method
=pass_all
4745 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4746 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4747 file_magic_cmd
=$lt_cv_file_magic_cmd
4748 deplibs_check_method
=$lt_cv_deplibs_check_method
4749 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
4754 # If no C compiler was specified, use CC.
4757 # If no C compiler flags were specified, use CFLAGS.
4758 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
4760 # Allow CC to be a program name with arguments.
4764 # Check whether --enable-libtool-lock was given.
4765 if test "${enable_libtool_lock+set}" = set; then
4766 enableval
=$enable_libtool_lock;
4769 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
4771 # Some flags need to be propagated to the compiler or linker for good
4775 # Find out which ABI we are using.
4776 echo 'int i;' > conftest.
$ac_ext
4777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4778 (eval $ac_compile) 2>&5
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); }; then
4782 case `/usr/bin/file conftest.$ac_objext` in
4794 # Find out which ABI we are using.
4795 echo '#line 4795 "configure"' > conftest.
$ac_ext
4796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4797 (eval $ac_compile) 2>&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); }; then
4801 if test "$lt_cv_prog_gnu_ld" = yes; then
4802 case `/usr/bin/file conftest.$ac_objext` in
4804 LD
="${LD-ld} -melf32bsmip"
4807 LD
="${LD-ld} -melf32bmipn32"
4810 LD
="${LD-ld} -melf64bmip"
4814 case `/usr/bin/file conftest.$ac_objext` in
4830 x86_64-
*kfreebsd
*-gnu|x86_64-
*linux
*|ppc
*-*linux
*|powerpc
*-*linux
*| \
4831 s390
*-*linux
*|sparc
*-*linux
*)
4832 # Find out which ABI we are using.
4833 echo 'int i;' > conftest.
$ac_ext
4834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4835 (eval $ac_compile) 2>&5
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); }; then
4839 case `/usr/bin/file conftest.o` in
4842 x86_64-
*kfreebsd
*-gnu)
4843 LD
="${LD-ld} -m elf_i386_fbsd"
4846 LD
="${LD-ld} -m elf_i386"
4848 ppc64-
*linux
*|powerpc64-
*linux
*)
4849 LD
="${LD-ld} -m elf32ppclinux"
4852 LD
="${LD-ld} -m elf_s390"
4855 LD
="${LD-ld} -m elf32_sparc"
4862 x86_64-
*kfreebsd
*-gnu)
4863 LD
="${LD-ld} -m elf_x86_64_fbsd"
4866 LD
="${LD-ld} -m elf_x86_64"
4868 ppc
*-*linux
*|powerpc
*-*linux
*)
4869 LD
="${LD-ld} -m elf64ppc"
4872 LD
="${LD-ld} -m elf64_s390"
4875 LD
="${LD-ld} -m elf64_sparc"
4885 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4886 SAVE_CFLAGS
="$CFLAGS"
4887 CFLAGS
="$CFLAGS -belf"
4888 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4889 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4890 if test "${lt_cv_cc_needs_belf+set}" = set; then
4891 echo $ECHO_N "(cached) $ECHO_C" >&6
4894 ac_cpp
='$CPP $CPPFLAGS'
4895 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4896 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4897 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4899 cat >conftest.
$ac_ext <<_ACEOF
4902 cat confdefs.h
>>conftest.
$ac_ext
4903 cat >>conftest.
$ac_ext <<_ACEOF
4904 /* end confdefs.h. */
4914 rm -f conftest.
$ac_objext conftest
$ac_exeext
4915 if { (ac_try
="$ac_link"
4917 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4918 *) ac_try_echo=$ac_try;;
4920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4921 (eval "$ac_link") 2>conftest.er1
4923 grep -v '^ *+' conftest.er1 >conftest.err
4925 cat conftest.err >&5
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); } && {
4928 test -z "$ac_c_werror_flag" ||
4929 test ! -s conftest.err
4930 } && test -s conftest$ac_exeext &&
4931 $as_test_x conftest$ac_exeext; then
4932 lt_cv_cc_needs_belf=yes
4934 echo "$as_me: failed program was:" >&5
4935 sed 's/^/| /' conftest.$ac_ext >&5
4937 lt_cv_cc_needs_belf=no
4940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4941 conftest$ac_exeext conftest.$ac_ext
4943 ac_cpp='$CPP $CPPFLAGS'
4944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4949 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4950 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4951 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4952 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4953 CFLAGS="$SAVE_CFLAGS"
4957 # Find out which ABI we are using.
4958 echo 'int i;' > conftest.$ac_ext
4959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4960 (eval $ac_compile) 2>&5
4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963 (exit $ac_status); }; then
4964 case `/usr
/bin
/file conftest.o
` in
4966 case $lt_cv_prog_gnu_ld in
4967 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4968 *) LD="${LD-ld} -64" ;;
4979 need_locks="$enable_libtool_lock"
4983 ac_cpp='$CPP $CPPFLAGS'
4984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4987 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4988 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4989 # On Suns, sometimes $CPP names a directory.
4990 if test -n "$CPP" && test -d "$CPP"; then
4993 if test -z "$CPP"; then
4994 if test "${ac_cv_prog_CPP+set}" = set; then
4995 echo $ECHO_N "(cached) $ECHO_C" >&6
4997 # Double quotes because CPP needs to be expanded
4998 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5001 for ac_c_preproc_warn_flag in '' yes
5003 # Use a header file that comes with gcc, so configuring glibc
5004 # with a fresh cross-compiler works.
5005 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5006 # <limits.h> exists even on freestanding compilers.
5007 # On the NeXT, cc -E runs the code through the compiler's parser,
5008 # not just through cpp. "Syntax error" is here to catch this case.
5009 cat >conftest.$ac_ext <<_ACEOF
5012 cat confdefs.h >>conftest.$ac_ext
5013 cat >>conftest.$ac_ext <<_ACEOF
5014 /* end confdefs.h. */
5016 # include <limits.h>
5018 # include <assert.h>
5022 if { (ac_try="$ac_cpp conftest.$ac_ext"
5024 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5025 *) ac_try_echo
=$ac_try;;
5027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5028 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5030 grep -v '^ *+' conftest.er1
>conftest.err
5032 cat conftest.err
>&5
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); } >/dev
/null
&& {
5035 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5036 test ! -s conftest.err
5040 echo "$as_me: failed program was:" >&5
5041 sed 's/^/| /' conftest.
$ac_ext >&5
5043 # Broken: fails on valid input.
5047 rm -f conftest.err conftest.
$ac_ext
5049 # OK, works on sane cases. Now check whether nonexistent headers
5050 # can be detected and how.
5051 cat >conftest.
$ac_ext <<_ACEOF
5054 cat confdefs.h
>>conftest.
$ac_ext
5055 cat >>conftest.
$ac_ext <<_ACEOF
5056 /* end confdefs.h. */
5057 #include <ac_nonexistent.h>
5059 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5061 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5062 *) ac_try_echo=$ac_try;;
5064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5067 grep -v '^ *+' conftest.er1 >conftest.err
5069 cat conftest.err >&5
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); } >/dev/null && {
5072 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5073 test ! -s conftest.err
5075 # Broken: success on invalid input.
5078 echo "$as_me: failed program was:" >&5
5079 sed 's/^/| /' conftest.$ac_ext >&5
5081 # Passes both tests.
5086 rm -f conftest.err conftest.$ac_ext
5089 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5090 rm -f conftest.err conftest.
$ac_ext
5091 if $ac_preproc_ok; then
5103 { echo "$as_me:$LINENO: result: $CPP" >&5
5104 echo "${ECHO_T}$CPP" >&6; }
5106 for ac_c_preproc_warn_flag
in '' yes
5108 # Use a header file that comes with gcc, so configuring glibc
5109 # with a fresh cross-compiler works.
5110 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5111 # <limits.h> exists even on freestanding compilers.
5112 # On the NeXT, cc -E runs the code through the compiler's parser,
5113 # not just through cpp. "Syntax error" is here to catch this case.
5114 cat >conftest.
$ac_ext <<_ACEOF
5117 cat confdefs.h
>>conftest.
$ac_ext
5118 cat >>conftest.
$ac_ext <<_ACEOF
5119 /* end confdefs.h. */
5121 # include <limits.h>
5123 # include <assert.h>
5127 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5129 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5130 *) ac_try_echo=$ac_try;;
5132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5135 grep -v '^ *+' conftest.er1 >conftest.err
5137 cat conftest.err >&5
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); } >/dev/null && {
5140 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5141 test ! -s conftest.err
5145 echo "$as_me: failed program was:" >&5
5146 sed 's/^/| /' conftest.$ac_ext >&5
5148 # Broken: fails on valid input.
5152 rm -f conftest.err conftest.$ac_ext
5154 # OK, works on sane cases. Now check whether nonexistent headers
5155 # can be detected and how.
5156 cat >conftest.$ac_ext <<_ACEOF
5159 cat confdefs.h >>conftest.$ac_ext
5160 cat >>conftest.$ac_ext <<_ACEOF
5161 /* end confdefs.h. */
5162 #include <ac_nonexistent.h>
5164 if { (ac_try="$ac_cpp conftest.$ac_ext"
5166 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5167 *) ac_try_echo
=$ac_try;;
5169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5172 grep -v '^ *+' conftest.er1
>conftest.err
5174 cat conftest.err
>&5
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); } >/dev
/null
&& {
5177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5178 test ! -s conftest.err
5180 # Broken: success on invalid input.
5183 echo "$as_me: failed program was:" >&5
5184 sed 's/^/| /' conftest.
$ac_ext >&5
5186 # Passes both tests.
5191 rm -f conftest.err conftest.
$ac_ext
5194 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5195 rm -f conftest.err conftest.
$ac_ext
5196 if $ac_preproc_ok; then
5199 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5200 See \`config.log' for more details." >&5
5201 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5202 See \`config.log' for more details." >&2;}
5203 { (exit 1); exit 1; }; }
5207 ac_cpp
='$CPP $CPPFLAGS'
5208 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5209 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5210 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5213 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5214 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5215 if test "${ac_cv_header_stdc+set}" = set; then
5216 echo $ECHO_N "(cached) $ECHO_C" >&6
5218 cat >conftest.
$ac_ext <<_ACEOF
5221 cat confdefs.h
>>conftest.
$ac_ext
5222 cat >>conftest.
$ac_ext <<_ACEOF
5223 /* end confdefs.h. */
5237 rm -f conftest.
$ac_objext
5238 if { (ac_try
="$ac_compile"
5240 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5241 *) ac_try_echo=$ac_try;;
5243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5244 (eval "$ac_compile") 2>conftest.er1
5246 grep -v '^ *+' conftest.er1 >conftest.err
5248 cat conftest.err >&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); } && {
5251 test -z "$ac_c_werror_flag" ||
5252 test ! -s conftest.err
5253 } && test -s conftest.$ac_objext; then
5254 ac_cv_header_stdc=yes
5256 echo "$as_me: failed program was:" >&5
5257 sed 's/^/| /' conftest.$ac_ext >&5
5259 ac_cv_header_stdc=no
5262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5264 if test $ac_cv_header_stdc = yes; then
5265 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5266 cat >conftest.$ac_ext <<_ACEOF
5269 cat confdefs.h >>conftest.$ac_ext
5270 cat >>conftest.$ac_ext <<_ACEOF
5271 /* end confdefs.h. */
5275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5276 $EGREP "memchr" >/dev/null 2>&1; then
5279 ac_cv_header_stdc=no
5285 if test $ac_cv_header_stdc = yes; then
5286 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5287 cat >conftest.$ac_ext <<_ACEOF
5290 cat confdefs.h >>conftest.$ac_ext
5291 cat >>conftest.$ac_ext <<_ACEOF
5292 /* end confdefs.h. */
5296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5297 $EGREP "free" >/dev/null 2>&1; then
5300 ac_cv_header_stdc=no
5306 if test $ac_cv_header_stdc = yes; then
5307 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5308 if test "$cross_compiling" = yes; then
5311 cat >conftest.$ac_ext <<_ACEOF
5314 cat confdefs.h >>conftest.$ac_ext
5315 cat >>conftest.$ac_ext <<_ACEOF
5316 /* end confdefs.h. */
5319 #if ((' ' & 0x0FF) == 0x020)
5320 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5321 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5323 # define ISLOWER(c) \
5324 (('a' <= (c) && (c) <= 'i') \
5325 || ('j' <= (c) && (c) <= 'r') \
5326 || ('s' <= (c) && (c) <= 'z'))
5327 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5330 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5335 for (i = 0; i < 256; i++)
5336 if (XOR (islower (i), ISLOWER (i))
5337 || toupper (i) != TOUPPER (i))
5342 rm -f conftest$ac_exeext
5343 if { (ac_try="$ac_link"
5345 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5346 *) ac_try_echo
=$ac_try;;
5348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5349 (eval "$ac_link") 2>&5
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5353 { (case "(($ac_try" in
5354 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5355 *) ac_try_echo=$ac_try;;
5357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5358 (eval "$ac_try") 2>&5
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); }; }; then
5364 echo "$as_me: program exited with status $ac_status" >&5
5365 echo "$as_me: failed program was:" >&5
5366 sed 's/^/| /' conftest.$ac_ext >&5
5369 ac_cv_header_stdc=no
5371 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5377 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5378 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5379 if test $ac_cv_header_stdc = yes; then
5381 cat >>confdefs.h <<\_ACEOF
5382 #define STDC_HEADERS 1
5387 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5397 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5398 inttypes.h stdint.h unistd.h
5400 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5401 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5404 echo $ECHO_N "(cached) $ECHO_C" >&6
5406 cat >conftest.$ac_ext <<_ACEOF
5409 cat confdefs.h >>conftest.$ac_ext
5410 cat >>conftest.$ac_ext <<_ACEOF
5411 /* end confdefs.h. */
5412 $ac_includes_default
5414 #include <$ac_header>
5416 rm -f conftest.$ac_objext
5417 if { (ac_try="$ac_compile"
5419 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5420 *) ac_try_echo
=$ac_try;;
5422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5423 (eval "$ac_compile") 2>conftest.er1
5425 grep -v '^ *+' conftest.er1
>conftest.err
5427 cat conftest.err
>&5
5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); } && {
5430 test -z "$ac_c_werror_flag" ||
5431 test ! -s conftest.err
5432 } && test -s conftest.
$ac_objext; then
5433 eval "$as_ac_Header=yes"
5435 echo "$as_me: failed program was:" >&5
5436 sed 's/^/| /' conftest.
$ac_ext >&5
5438 eval "$as_ac_Header=no"
5441 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5443 ac_res
=`eval echo '${'$as_ac_Header'}'`
5444 { echo "$as_me:$LINENO: result: $ac_res" >&5
5445 echo "${ECHO_T}$ac_res" >&6; }
5446 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5447 cat >>confdefs.h
<<_ACEOF
5448 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5457 for ac_header
in dlfcn.h
5459 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5460 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5461 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5463 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
5466 ac_res
=`eval echo '${'$as_ac_Header'}'`
5467 { echo "$as_me:$LINENO: result: $ac_res" >&5
5468 echo "${ECHO_T}$ac_res" >&6; }
5470 # Is the header compilable?
5471 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5472 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5473 cat >conftest.
$ac_ext <<_ACEOF
5476 cat confdefs.h
>>conftest.
$ac_ext
5477 cat >>conftest.
$ac_ext <<_ACEOF
5478 /* end confdefs.h. */
5479 $ac_includes_default
5480 #include <$ac_header>
5482 rm -f conftest.
$ac_objext
5483 if { (ac_try
="$ac_compile"
5485 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5486 *) ac_try_echo=$ac_try;;
5488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5489 (eval "$ac_compile") 2>conftest.er1
5491 grep -v '^ *+' conftest.er1 >conftest.err
5493 cat conftest.err >&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); } && {
5496 test -z "$ac_c_werror_flag" ||
5497 test ! -s conftest.err
5498 } && test -s conftest.$ac_objext; then
5499 ac_header_compiler=yes
5501 echo "$as_me: failed program was:" >&5
5502 sed 's/^/| /' conftest.$ac_ext >&5
5504 ac_header_compiler=no
5507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5508 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5509 echo "${ECHO_T}$ac_header_compiler" >&6; }
5511 # Is the header present?
5512 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5513 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5514 cat >conftest.$ac_ext <<_ACEOF
5517 cat confdefs.h >>conftest.$ac_ext
5518 cat >>conftest.$ac_ext <<_ACEOF
5519 /* end confdefs.h. */
5520 #include <$ac_header>
5522 if { (ac_try="$ac_cpp conftest.$ac_ext"
5524 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5525 *) ac_try_echo
=$ac_try;;
5527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5530 grep -v '^ *+' conftest.er1
>conftest.err
5532 cat conftest.err
>&5
5533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534 (exit $ac_status); } >/dev
/null
&& {
5535 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5536 test ! -s conftest.err
5538 ac_header_preproc
=yes
5540 echo "$as_me: failed program was:" >&5
5541 sed 's/^/| /' conftest.
$ac_ext >&5
5543 ac_header_preproc
=no
5546 rm -f conftest.err conftest.
$ac_ext
5547 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5548 echo "${ECHO_T}$ac_header_preproc" >&6; }
5550 # So? What about this header?
5551 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5553 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5554 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5556 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5557 ac_header_preproc
=yes
5560 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5561 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5562 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5563 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5564 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5565 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5566 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5567 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5569 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5570 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5571 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5575 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5577 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5578 echo $ECHO_N "(cached) $ECHO_C" >&6
5580 eval "$as_ac_Header=\$ac_header_preproc"
5582 ac_res
=`eval echo '${'$as_ac_Header'}'`
5583 { echo "$as_me:$LINENO: result: $ac_res" >&5
5584 echo "${ECHO_T}$ac_res" >&6; }
5587 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5588 cat >>confdefs.h
<<_ACEOF
5589 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5598 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5599 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5600 (test "X$CXX" != "Xg++"))) ; then
5602 ac_cpp
='$CXXCPP $CPPFLAGS'
5603 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5604 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5605 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5606 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5607 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5608 if test -z "$CXXCPP"; then
5609 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5610 echo $ECHO_N "(cached) $ECHO_C" >&6
5612 # Double quotes because CXXCPP needs to be expanded
5613 for CXXCPP
in "$CXX -E" "/lib/cpp"
5616 for ac_cxx_preproc_warn_flag
in '' yes
5618 # Use a header file that comes with gcc, so configuring glibc
5619 # with a fresh cross-compiler works.
5620 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5621 # <limits.h> exists even on freestanding compilers.
5622 # On the NeXT, cc -E runs the code through the compiler's parser,
5623 # not just through cpp. "Syntax error" is here to catch this case.
5624 cat >conftest.
$ac_ext <<_ACEOF
5627 cat confdefs.h
>>conftest.
$ac_ext
5628 cat >>conftest.
$ac_ext <<_ACEOF
5629 /* end confdefs.h. */
5631 # include <limits.h>
5633 # include <assert.h>
5637 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5639 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5640 *) ac_try_echo=$ac_try;;
5642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5645 grep -v '^ *+' conftest.er1 >conftest.err
5647 cat conftest.err >&5
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); } >/dev/null && {
5650 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5651 test ! -s conftest.err
5655 echo "$as_me: failed program was:" >&5
5656 sed 's/^/| /' conftest.$ac_ext >&5
5658 # Broken: fails on valid input.
5662 rm -f conftest.err conftest.$ac_ext
5664 # OK, works on sane cases. Now check whether nonexistent headers
5665 # can be detected and how.
5666 cat >conftest.$ac_ext <<_ACEOF
5669 cat confdefs.h >>conftest.$ac_ext
5670 cat >>conftest.$ac_ext <<_ACEOF
5671 /* end confdefs.h. */
5672 #include <ac_nonexistent.h>
5674 if { (ac_try="$ac_cpp conftest.$ac_ext"
5676 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5677 *) ac_try_echo
=$ac_try;;
5679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5682 grep -v '^ *+' conftest.er1
>conftest.err
5684 cat conftest.err
>&5
5685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686 (exit $ac_status); } >/dev
/null
&& {
5687 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5688 test ! -s conftest.err
5690 # Broken: success on invalid input.
5693 echo "$as_me: failed program was:" >&5
5694 sed 's/^/| /' conftest.
$ac_ext >&5
5696 # Passes both tests.
5701 rm -f conftest.err conftest.
$ac_ext
5704 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5705 rm -f conftest.err conftest.
$ac_ext
5706 if $ac_preproc_ok; then
5711 ac_cv_prog_CXXCPP
=$CXXCPP
5714 CXXCPP
=$ac_cv_prog_CXXCPP
5716 ac_cv_prog_CXXCPP
=$CXXCPP
5718 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5719 echo "${ECHO_T}$CXXCPP" >&6; }
5721 for ac_cxx_preproc_warn_flag
in '' yes
5723 # Use a header file that comes with gcc, so configuring glibc
5724 # with a fresh cross-compiler works.
5725 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5726 # <limits.h> exists even on freestanding compilers.
5727 # On the NeXT, cc -E runs the code through the compiler's parser,
5728 # not just through cpp. "Syntax error" is here to catch this case.
5729 cat >conftest.
$ac_ext <<_ACEOF
5732 cat confdefs.h
>>conftest.
$ac_ext
5733 cat >>conftest.
$ac_ext <<_ACEOF
5734 /* end confdefs.h. */
5736 # include <limits.h>
5738 # include <assert.h>
5742 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5744 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5745 *) ac_try_echo=$ac_try;;
5747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5750 grep -v '^ *+' conftest.er1 >conftest.err
5752 cat conftest.err >&5
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); } >/dev/null && {
5755 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5756 test ! -s conftest.err
5760 echo "$as_me: failed program was:" >&5
5761 sed 's/^/| /' conftest.$ac_ext >&5
5763 # Broken: fails on valid input.
5767 rm -f conftest.err conftest.$ac_ext
5769 # OK, works on sane cases. Now check whether nonexistent headers
5770 # can be detected and how.
5771 cat >conftest.$ac_ext <<_ACEOF
5774 cat confdefs.h >>conftest.$ac_ext
5775 cat >>conftest.$ac_ext <<_ACEOF
5776 /* end confdefs.h. */
5777 #include <ac_nonexistent.h>
5779 if { (ac_try="$ac_cpp conftest.$ac_ext"
5781 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5782 *) ac_try_echo
=$ac_try;;
5784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5785 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5787 grep -v '^ *+' conftest.er1
>conftest.err
5789 cat conftest.err
>&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); } >/dev
/null
&& {
5792 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5793 test ! -s conftest.err
5795 # Broken: success on invalid input.
5798 echo "$as_me: failed program was:" >&5
5799 sed 's/^/| /' conftest.
$ac_ext >&5
5801 # Passes both tests.
5806 rm -f conftest.err conftest.
$ac_ext
5809 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5810 rm -f conftest.err conftest.
$ac_ext
5811 if $ac_preproc_ok; then
5814 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5815 See \`config.log' for more details." >&5
5816 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5817 See \`config.log' for more details." >&2;}
5818 { (exit 1); exit 1; }; }
5822 ac_cpp
='$CXXCPP $CPPFLAGS'
5823 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5824 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5825 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5831 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5832 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5833 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
5834 if test -n "$ac_tool_prefix"; then
5835 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
5837 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5838 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5841 if test "${ac_cv_prog_F77+set}" = set; then
5842 echo $ECHO_N "(cached) $ECHO_C" >&6
5844 if test -n "$F77"; then
5845 ac_cv_prog_F77
="$F77" # Let the user override the test.
5847 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5851 test -z "$as_dir" && as_dir
=.
5852 for ac_exec_ext
in '' $ac_executable_extensions; do
5853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5854 ac_cv_prog_F77
="$ac_tool_prefix$ac_prog"
5855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5865 if test -n "$F77"; then
5866 { echo "$as_me:$LINENO: result: $F77" >&5
5867 echo "${ECHO_T}$F77" >&6; }
5869 { echo "$as_me:$LINENO: result: no" >&5
5870 echo "${ECHO_T}no" >&6; }
5874 test -n "$F77" && break
5877 if test -z "$F77"; then
5879 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
5881 # Extract the first word of "$ac_prog", so it can be a program name with args.
5882 set dummy
$ac_prog; ac_word
=$2
5883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5885 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5886 echo $ECHO_N "(cached) $ECHO_C" >&6
5888 if test -n "$ac_ct_F77"; then
5889 ac_cv_prog_ac_ct_F77
="$ac_ct_F77" # Let the user override the test.
5891 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5895 test -z "$as_dir" && as_dir
=.
5896 for ac_exec_ext
in '' $ac_executable_extensions; do
5897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5898 ac_cv_prog_ac_ct_F77
="$ac_prog"
5899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5908 ac_ct_F77
=$ac_cv_prog_ac_ct_F77
5909 if test -n "$ac_ct_F77"; then
5910 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5911 echo "${ECHO_T}$ac_ct_F77" >&6; }
5913 { echo "$as_me:$LINENO: result: no" >&5
5914 echo "${ECHO_T}no" >&6; }
5918 test -n "$ac_ct_F77" && break
5921 if test "x$ac_ct_F77" = x
; then
5924 case $cross_compiling:$ac_tool_warned in
5926 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5927 whose name does not start with the host triplet. If you think this
5928 configuration is useful to you, please write to autoconf@gnu.org." >&5
5929 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5930 whose name does not start with the host triplet. If you think this
5931 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5932 ac_tool_warned
=yes ;;
5939 # Provide some information about the compiler.
5940 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5941 ac_compiler
=`set X $ac_compile; echo $2`
5942 { (ac_try
="$ac_compiler --version >&5"
5944 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5945 *) ac_try_echo=$ac_try;;
5947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5948 (eval "$ac_compiler --version >&5") 2>&5
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); }
5952 { (ac_try="$ac_compiler -v >&5"
5954 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5955 *) ac_try_echo
=$ac_try;;
5957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5958 (eval "$ac_compiler -v >&5") 2>&5
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); }
5962 { (ac_try
="$ac_compiler -V >&5"
5964 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5965 *) ac_try_echo=$ac_try;;
5967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5968 (eval "$ac_compiler -V >&5") 2>&5
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); }
5974 # If we don't use `.F
' as extension, the preprocessor is not run on the
5975 # input file. (Note that this only needs to work for GNU compilers.)
5978 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5979 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5980 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5981 echo $ECHO_N "(cached) $ECHO_C" >&6
5983 cat >conftest.$ac_ext <<_ACEOF
5991 rm -f conftest.$ac_objext
5992 if { (ac_try="$ac_compile"
5994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5995 *) ac_try_echo=$ac_try;;
5997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5998 (eval "$ac_compile") 2>conftest.er1
6000 grep -v '^
*+' conftest.er1 >conftest.err
6002 cat conftest.err >&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); } && {
6005 test -z "$ac_f77_werror_flag" ||
6006 test ! -s conftest.err
6007 } && test -s conftest.$ac_objext; then
6010 echo "$as_me: failed program was:" >&5
6011 sed 's
/^
/|
/' conftest.$ac_ext >&5
6016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6017 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6020 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6021 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6023 ac_test_FFLAGS=${FFLAGS+set}
6024 ac_save_FFLAGS=$FFLAGS
6026 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6027 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6028 if test "${ac_cv_prog_f77_g+set}" = set; then
6029 echo $ECHO_N "(cached) $ECHO_C" >&6
6032 cat >conftest.$ac_ext <<_ACEOF
6037 rm -f conftest.$ac_objext
6038 if { (ac_try="$ac_compile"
6040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6041 *) ac_try_echo=$ac_try;;
6043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6044 (eval "$ac_compile") 2>conftest.er1
6046 grep -v '^
*+' conftest.er1 >conftest.err
6048 cat conftest.err >&5
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); } && {
6051 test -z "$ac_f77_werror_flag" ||
6052 test ! -s conftest.err
6053 } && test -s conftest.$ac_objext; then
6054 ac_cv_prog_f77_g=yes
6056 echo "$as_me: failed program was:" >&5
6057 sed 's
/^
/|
/' conftest.$ac_ext >&5
6062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6065 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6066 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6067 if test "$ac_test_FFLAGS" = set; then
6068 FFLAGS=$ac_save_FFLAGS
6069 elif test $ac_cv_prog_f77_g = yes; then
6070 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6076 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6083 G77=`test $ac_compiler_gnu = yes && echo yes`
6085 ac_cpp='$CXXCPP $CPPFLAGS'
6086 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
6087 ac_link='$CXX -o conftest
$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
6088 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6092 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works
for C compilers
!
6094 # find the maximum length of command line arguments
6095 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6096 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6097 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6098 echo $ECHO_N "(cached) $ECHO_C" >&6
6105 # On DJGPP, this test can blow up pretty badly due to problems in libc
6106 # (any single argument exceeding 2000 bytes causes a buffer overrun
6107 # during glob expansion). Even if it were fixed, the result of this
6108 # check would be larger than it should be.
6109 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
6113 # Under GNU Hurd, this test is not required because there is
6114 # no limit to the length of command line arguments.
6115 # Libtool will interpret -1 as no limit whatsoever
6116 lt_cv_sys_max_cmd_len
=-1;
6120 # On Win9x/ME, this test blows up -- it succeeds, but takes
6121 # about 5 minutes as the teststring grows exponentially.
6122 # Worse, since 9x/ME are not pre-emptively multitasking,
6123 # you end up with a "frozen" computer, even though with patience
6124 # the test eventually succeeds (with a max line length of 256k).
6125 # Instead, let's just punt: use the minimum linelength reported by
6126 # all of the supported platforms: 8192 (on NT/2K/XP).
6127 lt_cv_sys_max_cmd_len
=8192;
6131 # On AmigaOS with pdksh, this test takes hours, literally.
6132 # So we just punt and use a minimum line length of 8192.
6133 lt_cv_sys_max_cmd_len
=8192;
6136 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
6137 # This has been around since 386BSD, at least. Likely further.
6138 if test -x /sbin
/sysctl
; then
6139 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
6140 elif test -x /usr
/sbin
/sysctl
; then
6141 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
6143 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
6145 # And add a safety zone
6146 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6147 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6151 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6152 lt_cv_sys_max_cmd_len
=196608
6156 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6157 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6158 # nice to cause kernel panics so lets avoid the loop below.
6159 # First set a reasonable default.
6160 lt_cv_sys_max_cmd_len
=16384
6162 if test -x /sbin
/sysconfig
; then
6163 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6164 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
6169 lt_cv_sys_max_cmd_len
=102400
6171 sysv5
* | sco5v6
* | sysv4.2uw2
*)
6172 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6173 if test -n "$kargmax"; then
6174 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
6176 lt_cv_sys_max_cmd_len
=32768
6180 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
6181 if test -n "$lt_cv_sys_max_cmd_len"; then
6182 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6183 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6185 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
6186 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6187 = "XX$teststring") >/dev
/null
2>&1 &&
6188 new_result
=`expr "X$teststring" : ".*" 2>&1` &&
6189 lt_cv_sys_max_cmd_len
=$new_result &&
6190 test $i != 17 # 1/2 MB should be enough
6193 teststring
=$teststring$teststring
6196 # Add a significant safety factor because C++ compilers can tack on massive
6197 # amounts of additional arguments before passing them to the linker.
6198 # It appears as though 1/2 is a usable value.
6199 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
6206 if test -n $lt_cv_sys_max_cmd_len ; then
6207 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6208 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6210 { echo "$as_me:$LINENO: result: none" >&5
6211 echo "${ECHO_T}none" >&6; }
6218 # Check for command to grab the raw symbol name followed by C symbol from nm.
6219 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6220 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6221 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6222 echo $ECHO_N "(cached) $ECHO_C" >&6
6225 # These are sane defaults that work on at least a few old systems.
6226 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6228 # Character class describing NM global symbol codes.
6229 symcode
='[BCDEGRST]'
6231 # Regexp to match symbols that can be accessed directly from C.
6232 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
6234 # Transform an extracted symbol line into a proper C declaration
6235 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6237 # Transform an extracted symbol line into symbol name and symbol address
6238 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'"
6240 # Define system-specific variables.
6245 cygwin
* | mingw
* | pw32
*)
6246 symcode
='[ABCDGISTW]'
6248 hpux
*) # Its linker distinguishes data from code symbols
6249 if test "$host_cpu" = ia64
; then
6250 symcode
='[ABCDEGRST]'
6252 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6253 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'"
6255 linux
* | k
*bsd
*-gnu)
6256 if test "$host_cpu" = ia64
; then
6257 symcode
='[ABCDGIRSTW]'
6258 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6259 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'"
6263 symcode
='[BCDEGRST]'
6266 symcode
='[BCDEGQRST]'
6277 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
6285 # Handle CRLF in mingw tool chain
6289 opt_cr
=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6293 # If we're using GNU nm, then use its standard symbol codes.
6294 case `$NM -V 2>&1` in
6295 *GNU
* |
*'with BFD'*)
6296 symcode
='[ABCDGIRSTW]' ;;
6299 # Try without a prefix undercore, then with it.
6300 for ac_symprfx
in "" "_"; do
6302 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6303 symxfrm
="\\1 $ac_symprfx\\2 \\2"
6305 # Write the raw and C identifiers.
6306 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6308 # Check to see that the pipe works correctly.
6312 cat > conftest.
$ac_ext <<EOF
6317 void nm_test_func(){}
6321 int main(){nm_test_var='a';nm_test_func();return(0);}
6324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6325 (eval $ac_compile) 2>&5
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); }; then
6329 # Now try to grab the symbols.
6331 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6332 (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist) 2>&5
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); } && test -s "$nlist"; then
6336 # Try sorting and uniquifying the output.
6337 if sort "$nlist" |
uniq > "$nlist"T
; then
6338 mv -f "$nlist"T
"$nlist"
6343 # Make sure that we snagged all the symbols we need.
6344 if grep ' nm_test_var$' "$nlist" >/dev
/null
; then
6345 if grep ' nm_test_func$' "$nlist" >/dev
/null
; then
6346 cat <<EOF > conftest.$ac_ext
6352 # Now generate the symbol file.
6353 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6355 cat <<EOF >> conftest.$ac_ext
6356 #if defined (__STDC__) && __STDC__
6357 # define lt_ptr_t void *
6359 # define lt_ptr_t char *
6363 /* The mapping between symbol names and symbols. */
6368 lt_preloaded_symbols[] =
6371 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" |
grep -v main
>> conftest.
$ac_ext
6372 cat <<\EOF
>> conftest.
$ac_ext
6380 # Now try linking the two files.
6381 mv conftest.
$ac_objext conftstm.
$ac_objext
6382 lt_save_LIBS
="$LIBS"
6383 lt_save_CFLAGS
="$CFLAGS"
6384 LIBS
="conftstm.$ac_objext"
6385 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6387 (eval $ac_link) 2>&5
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); } && test -s conftest
${ac_exeext}; then
6393 LIBS
="$lt_save_LIBS"
6394 CFLAGS
="$lt_save_CFLAGS"
6396 echo "cannot find nm_test_func in $nlist" >&5
6399 echo "cannot find nm_test_var in $nlist" >&5
6402 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6405 echo "$progname: failed program was:" >&5
6406 cat conftest.
$ac_ext >&5
6408 rm -f conftest
* conftst
*
6410 # Do not use the global_symbol_pipe unless it works.
6411 if test "$pipe_works" = yes; then
6414 lt_cv_sys_global_symbol_pipe
=
6420 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6421 lt_cv_sys_global_symbol_to_cdecl
=
6423 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6424 { echo "$as_me:$LINENO: result: failed" >&5
6425 echo "${ECHO_T}failed" >&6; }
6427 { echo "$as_me:$LINENO: result: ok" >&5
6428 echo "${ECHO_T}ok" >&6; }
6431 { echo "$as_me:$LINENO: checking for objdir" >&5
6432 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6433 if test "${lt_cv_objdir+set}" = set; then
6434 echo $ECHO_N "(cached) $ECHO_C" >&6
6436 rm -f .libs
2>/dev
/null
6437 mkdir .libs
2>/dev
/null
6438 if test -d .libs
; then
6441 # MS-DOS does not allow filenames that begin with a dot.
6444 rmdir .libs
2>/dev
/null
6446 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6447 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6448 objdir
=$lt_cv_objdir
6456 # AIX sometimes has problems with the GCC collect2 program. For some
6457 # reason, if we set the COLLECT_NAMES environment variable, the problems
6458 # vanish in a puff of smoke.
6459 if test "X${COLLECT_NAMES+set}" != Xset
; then
6461 export COLLECT_NAMES
6466 # Sed substitution that helps us do robust quoting. It backslashifies
6467 # metacharacters that are still active within double-quoted strings.
6468 Xsed
='sed -e 1s/^X//'
6469 sed_quote_subst
='s/\([\\"\\`$\\\\]\)/\\\1/g'
6471 # Same as above, but do not quote variable references.
6472 double_quote_subst
='s/\([\\"\\`\\\\]\)/\\\1/g'
6474 # Sed substitution to delay expansion of an escaped shell variable in a
6475 # double_quote_subst'ed string.
6476 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
6478 # Sed substitution to avoid accidental globbing in evaled expressions
6479 no_glob_subst
='s/\*/\\\*/g'
6485 default_ofile
=libtool
6486 can_build_shared
=yes
6488 # All known linkers require a `.a' archive for static linking (except MSVC,
6489 # which needs '.lib').
6491 ltmain
="$ac_aux_dir/ltmain.sh"
6492 ofile
="$default_ofile"
6493 with_gnu_ld
="$lt_cv_prog_gnu_ld"
6495 if test -n "$ac_tool_prefix"; then
6496 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6497 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6500 if test "${ac_cv_prog_AR+set}" = set; then
6501 echo $ECHO_N "(cached) $ECHO_C" >&6
6503 if test -n "$AR"; then
6504 ac_cv_prog_AR
="$AR" # Let the user override the test.
6506 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6510 test -z "$as_dir" && as_dir
=.
6511 for ac_exec_ext
in '' $ac_executable_extensions; do
6512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6513 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6524 if test -n "$AR"; then
6525 { echo "$as_me:$LINENO: result: $AR" >&5
6526 echo "${ECHO_T}$AR" >&6; }
6528 { echo "$as_me:$LINENO: result: no" >&5
6529 echo "${ECHO_T}no" >&6; }
6534 if test -z "$ac_cv_prog_AR"; then
6536 # Extract the first word of "ar", so it can be a program name with args.
6537 set dummy
ar; ac_word
=$2
6538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6540 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6541 echo $ECHO_N "(cached) $ECHO_C" >&6
6543 if test -n "$ac_ct_AR"; then
6544 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6546 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6550 test -z "$as_dir" && as_dir
=.
6551 for ac_exec_ext
in '' $ac_executable_extensions; do
6552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6553 ac_cv_prog_ac_ct_AR
="ar"
6554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6563 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6564 if test -n "$ac_ct_AR"; then
6565 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6566 echo "${ECHO_T}$ac_ct_AR" >&6; }
6568 { echo "$as_me:$LINENO: result: no" >&5
6569 echo "${ECHO_T}no" >&6; }
6572 if test "x$ac_ct_AR" = x
; then
6575 case $cross_compiling:$ac_tool_warned in
6577 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6578 whose name does not start with the host triplet. If you think this
6579 configuration is useful to you, please write to autoconf@gnu.org." >&5
6580 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6581 whose name does not start with the host triplet. If you think this
6582 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6583 ac_tool_warned
=yes ;;
6591 if test -n "$ac_tool_prefix"; then
6592 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6593 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6596 if test "${ac_cv_prog_RANLIB+set}" = set; then
6597 echo $ECHO_N "(cached) $ECHO_C" >&6
6599 if test -n "$RANLIB"; then
6600 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6602 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6606 test -z "$as_dir" && as_dir
=.
6607 for ac_exec_ext
in '' $ac_executable_extensions; do
6608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6609 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6619 RANLIB
=$ac_cv_prog_RANLIB
6620 if test -n "$RANLIB"; then
6621 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6622 echo "${ECHO_T}$RANLIB" >&6; }
6624 { echo "$as_me:$LINENO: result: no" >&5
6625 echo "${ECHO_T}no" >&6; }
6630 if test -z "$ac_cv_prog_RANLIB"; then
6631 ac_ct_RANLIB
=$RANLIB
6632 # Extract the first word of "ranlib", so it can be a program name with args.
6633 set dummy ranlib
; ac_word
=$2
6634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6636 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6637 echo $ECHO_N "(cached) $ECHO_C" >&6
6639 if test -n "$ac_ct_RANLIB"; then
6640 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6642 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6646 test -z "$as_dir" && as_dir
=.
6647 for ac_exec_ext
in '' $ac_executable_extensions; do
6648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6649 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6659 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6660 if test -n "$ac_ct_RANLIB"; then
6661 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6662 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6664 { echo "$as_me:$LINENO: result: no" >&5
6665 echo "${ECHO_T}no" >&6; }
6668 if test "x$ac_ct_RANLIB" = x
; then
6671 case $cross_compiling:$ac_tool_warned in
6673 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6674 whose name does not start with the host triplet. If you think this
6675 configuration is useful to you, please write to autoconf@gnu.org." >&5
6676 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6677 whose name does not start with the host triplet. If you think this
6678 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6679 ac_tool_warned
=yes ;;
6681 RANLIB
=$ac_ct_RANLIB
6684 RANLIB
="$ac_cv_prog_RANLIB"
6687 if test -n "$ac_tool_prefix"; then
6688 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6689 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6690 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6692 if test "${ac_cv_prog_STRIP+set}" = set; then
6693 echo $ECHO_N "(cached) $ECHO_C" >&6
6695 if test -n "$STRIP"; then
6696 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
6698 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6702 test -z "$as_dir" && as_dir
=.
6703 for ac_exec_ext
in '' $ac_executable_extensions; do
6704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6705 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
6706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6715 STRIP
=$ac_cv_prog_STRIP
6716 if test -n "$STRIP"; then
6717 { echo "$as_me:$LINENO: result: $STRIP" >&5
6718 echo "${ECHO_T}$STRIP" >&6; }
6720 { echo "$as_me:$LINENO: result: no" >&5
6721 echo "${ECHO_T}no" >&6; }
6726 if test -z "$ac_cv_prog_STRIP"; then
6728 # Extract the first word of "strip", so it can be a program name with args.
6729 set dummy strip
; ac_word
=$2
6730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6732 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6733 echo $ECHO_N "(cached) $ECHO_C" >&6
6735 if test -n "$ac_ct_STRIP"; then
6736 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
6738 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6742 test -z "$as_dir" && as_dir
=.
6743 for ac_exec_ext
in '' $ac_executable_extensions; do
6744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6745 ac_cv_prog_ac_ct_STRIP
="strip"
6746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6755 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
6756 if test -n "$ac_ct_STRIP"; then
6757 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6758 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6760 { echo "$as_me:$LINENO: result: no" >&5
6761 echo "${ECHO_T}no" >&6; }
6764 if test "x$ac_ct_STRIP" = x
; then
6767 case $cross_compiling:$ac_tool_warned in
6769 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6770 whose name does not start with the host triplet. If you think this
6771 configuration is useful to you, please write to autoconf@gnu.org." >&5
6772 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6773 whose name does not start with the host triplet. If you think this
6774 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6775 ac_tool_warned
=yes ;;
6780 STRIP
="$ac_cv_prog_STRIP"
6785 old_CFLAGS
="$CFLAGS"
6787 # Set sane defaults for various variables
6788 test -z "$AR" && AR
=ar
6789 test -z "$AR_FLAGS" && AR_FLAGS
=cru
6790 test -z "$AS" && AS
=as
6791 test -z "$CC" && CC
=cc
6792 test -z "$LTCC" && LTCC
=$CC
6793 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
6794 test -z "$DLLTOOL" && DLLTOOL
=dlltool
6795 test -z "$LD" && LD
=ld
6796 test -z "$LN_S" && LN_S
="ln -s"
6797 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
6798 test -z "$NM" && NM
=nm
6799 test -z "$SED" && SED
=sed
6800 test -z "$OBJDUMP" && OBJDUMP
=objdump
6801 test -z "$RANLIB" && RANLIB
=:
6802 test -z "$STRIP" && STRIP
=:
6803 test -z "$ac_objext" && ac_objext
=o
6805 # Determine commands to create old-style static archives.
6806 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs'
6807 old_postinstall_cmds
='chmod 644 $oldlib'
6808 old_postuninstall_cmds
=
6810 if test -n "$RANLIB"; then
6813 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6816 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB \$oldlib"
6819 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
6822 for cc_temp
in $compiler""; do
6824 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
6825 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
6830 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6833 # Only perform the check for file, if the check method requires it
6834 case $deplibs_check_method in
6836 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6837 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6838 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6839 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6840 echo $ECHO_N "(cached) $ECHO_C" >&6
6844 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
6847 lt_save_MAGIC_CMD
="$MAGIC_CMD"
6848 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6849 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
6850 for ac_dir
in $ac_dummy; do
6852 test -z "$ac_dir" && ac_dir
=.
6853 if test -f $ac_dir/${ac_tool_prefix}file; then
6854 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
6855 if test -n "$file_magic_test_file"; then
6856 case $deplibs_check_method in
6858 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6859 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6860 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
6861 $EGREP "$file_magic_regex" > /dev
/null
; then
6866 *** Warning: the command libtool uses to detect shared libraries,
6867 *** $file_magic_cmd, produces output that libtool cannot recognize.
6868 *** The result is that libtool may fail to recognize shared libraries
6869 *** as such. This will affect the creation of libtool libraries that
6870 *** depend on shared libraries, but programs linked with such libtool
6871 *** libraries will work regardless of this problem. Nevertheless, you
6872 *** may want to report the problem to your system manager and/or to
6873 *** bug-libtool@gnu.org
6883 MAGIC_CMD
="$lt_save_MAGIC_CMD"
6888 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6889 if test -n "$MAGIC_CMD"; then
6890 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6891 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6893 { echo "$as_me:$LINENO: result: no" >&5
6894 echo "${ECHO_T}no" >&6; }
6897 if test -z "$lt_cv_path_MAGIC_CMD"; then
6898 if test -n "$ac_tool_prefix"; then
6899 { echo "$as_me:$LINENO: checking for file" >&5
6900 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6901 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6902 echo $ECHO_N "(cached) $ECHO_C" >&6
6906 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
6909 lt_save_MAGIC_CMD
="$MAGIC_CMD"
6910 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6911 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
6912 for ac_dir
in $ac_dummy; do
6914 test -z "$ac_dir" && ac_dir
=.
6915 if test -f $ac_dir/file; then
6916 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
6917 if test -n "$file_magic_test_file"; then
6918 case $deplibs_check_method in
6920 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6921 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6922 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
6923 $EGREP "$file_magic_regex" > /dev
/null
; then
6928 *** Warning: the command libtool uses to detect shared libraries,
6929 *** $file_magic_cmd, produces output that libtool cannot recognize.
6930 *** The result is that libtool may fail to recognize shared libraries
6931 *** as such. This will affect the creation of libtool libraries that
6932 *** depend on shared libraries, but programs linked with such libtool
6933 *** libraries will work regardless of this problem. Nevertheless, you
6934 *** may want to report the problem to your system manager and/or to
6935 *** bug-libtool@gnu.org
6945 MAGIC_CMD
="$lt_save_MAGIC_CMD"
6950 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6951 if test -n "$MAGIC_CMD"; then
6952 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6953 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6955 { echo "$as_me:$LINENO: result: no" >&5
6956 echo "${ECHO_T}no" >&6; }
6971 # Check whether --enable-libtool-lock was given.
6972 if test "${enable_libtool_lock+set}" = set; then
6973 enableval
=$enable_libtool_lock;
6976 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
6979 # Check whether --with-pic was given.
6980 if test "${with_pic+set}" = set; then
6981 withval
=$with_pic; pic_mode
="$withval"
6986 test -z "$pic_mode" && pic_mode
=default
6988 # Use C for the default configuration in the libtool script
6992 ac_cpp
='$CPP $CPPFLAGS'
6993 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6994 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6995 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6998 # Source file extension for C test sources.
7001 # Object file extension for compiled C test sources.
7005 # Code to be used in simple compile tests
7006 lt_simple_compile_test_code
="int some_variable = 0;"
7008 # Code to be used in simple link tests
7009 lt_simple_link_test_code
='int main(){return(0);}'
7012 # If no C compiler was specified, use CC.
7015 # If no C compiler flags were specified, use CFLAGS.
7016 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
7018 # Allow CC to be a program name with arguments.
7022 # save warnings/boilerplate of simple test code
7023 ac_outfile
=conftest.
$ac_objext
7024 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
7025 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7026 _lt_compiler_boilerplate
=`cat conftest.err`
7029 ac_outfile
=conftest.
$ac_objext
7030 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
7031 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7032 _lt_linker_boilerplate
=`cat conftest.err`
7037 lt_prog_compiler_no_builtin_flag
=
7039 if test "$GCC" = yes; then
7040 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
7043 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7044 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7045 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7046 echo $ECHO_N "(cached) $ECHO_C" >&6
7048 lt_cv_prog_compiler_rtti_exceptions
=no
7049 ac_outfile
=conftest.
$ac_objext
7050 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7051 lt_compiler_flag
="-fno-rtti -fno-exceptions"
7052 # Insert the option either (1) after the last *FLAGS variable, or
7053 # (2) before a word containing "conftest.", or (3) at the end.
7054 # Note that $ac_compile itself does not contain backslashes and begins
7055 # with a dollar sign (not a hyphen), so the echo should work correctly.
7056 # The option is referenced via a variable to avoid confusing sed.
7057 lt_compile
=`echo "$ac_compile" | $SED \
7058 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7059 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7060 -e 's:$: $lt_compiler_flag:'`
7061 (eval echo "\"\$as_me:7061: $lt_compile\"" >&5)
7062 (eval "$lt_compile" 2>conftest.err
)
7064 cat conftest.err
>&5
7065 echo "$as_me:7065: \$? = $ac_status" >&5
7066 if (exit $ac_status) && test -s "$ac_outfile"; then
7067 # The compiler can only warn and ignore the option if not recognized
7068 # So say no if there are warnings other than the usual output.
7069 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
7070 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7071 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7072 lt_cv_prog_compiler_rtti_exceptions
=yes
7078 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7079 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7081 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
7082 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7089 lt_prog_compiler_wl
=
7090 lt_prog_compiler_pic
=
7091 lt_prog_compiler_static
=
7093 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7094 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7096 if test "$GCC" = yes; then
7097 lt_prog_compiler_wl
='-Wl,'
7098 lt_prog_compiler_static
='-static'
7102 # All AIX code is PIC.
7103 if test "$host_cpu" = ia64
; then
7104 # AIX 5 now supports IA64 processor
7105 lt_prog_compiler_static
='-Bstatic'
7110 # FIXME: we need at least 68020 code to build shared libraries, but
7111 # adding the `-m68020' flag to GCC prevents building anything better,
7113 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
7116 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
7117 # PIC is the default for these OSes.
7120 mingw
* | cygwin
* | pw32
* | os2
*)
7121 # This hack is so that the source file can tell whether it is being
7122 # built for inclusion in a dll (and should export symbols for example).
7123 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7124 # (--disable-auto-import) libraries
7125 lt_prog_compiler_pic
='-DDLL_EXPORT'
7128 darwin
* | rhapsody
*)
7129 # PIC is the default on this platform
7130 # Common symbols not allowed in MH_DYLIB files
7131 lt_prog_compiler_pic
='-fno-common'
7135 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7136 # Instead, we relocate shared libraries at runtime.
7140 # Just because we use GCC doesn't mean we suddenly get shared libraries
7141 # on systems that don't support them.
7142 lt_prog_compiler_can_build_shared
=no
7147 if test -d /usr
/nec
; then
7148 lt_prog_compiler_pic
=-Kconform_pic
7153 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7160 lt_prog_compiler_pic
='-fPIC'
7166 lt_prog_compiler_pic
='-fPIC'
7170 # PORTME Check for flag to pass linker flags through the system compiler.
7173 lt_prog_compiler_wl
='-Wl,'
7174 if test "$host_cpu" = ia64
; then
7175 # AIX 5 now supports IA64 processor
7176 lt_prog_compiler_static
='-Bstatic'
7178 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
7182 # PIC is the default on this platform
7183 # Common symbols not allowed in MH_DYLIB files
7184 case $cc_basename in
7186 lt_prog_compiler_pic
='-qnocommon'
7187 lt_prog_compiler_wl
='-Wl,'
7192 mingw
* | cygwin
* | pw32
* | os2
*)
7193 # This hack is so that the source file can tell whether it is being
7194 # built for inclusion in a dll (and should export symbols for example).
7195 lt_prog_compiler_pic
='-DDLL_EXPORT'
7198 hpux9
* | hpux10
* | hpux11
*)
7199 lt_prog_compiler_wl
='-Wl,'
7200 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7207 lt_prog_compiler_pic
='+Z'
7210 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7211 lt_prog_compiler_static
='${wl}-a ${wl}archive'
7214 irix5
* | irix6
* | nonstopux
*)
7215 lt_prog_compiler_wl
='-Wl,'
7216 # PIC (with -KPIC) is the default.
7217 lt_prog_compiler_static
='-non_shared'
7221 lt_prog_compiler_pic
='-KPIC'
7222 lt_prog_compiler_static
='-Bstatic'
7225 linux
* | k
*bsd
*-gnu)
7226 case $cc_basename in
7228 lt_prog_compiler_wl
='-Wl,'
7229 lt_prog_compiler_pic
='-KPIC'
7230 lt_prog_compiler_static
='-static'
7232 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
7233 # Portland Group compilers (*not* the Pentium gcc compiler,
7234 # which looks to be a dead project)
7235 lt_prog_compiler_wl
='-Wl,'
7236 lt_prog_compiler_pic
='-fpic'
7237 lt_prog_compiler_static
='-Bstatic'
7240 lt_prog_compiler_wl
='-Wl,'
7241 # All Alpha code is PIC.
7242 lt_prog_compiler_static
='-non_shared'
7245 case `$CC -V 2>&1 | sed 5q` in
7248 lt_prog_compiler_pic
='-KPIC'
7249 lt_prog_compiler_static
='-Bstatic'
7250 lt_prog_compiler_wl
='-Wl,'
7253 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7254 lt_prog_compiler_pic
='-KPIC'
7255 lt_prog_compiler_static
='-Bstatic'
7256 lt_prog_compiler_wl
=''
7263 osf3
* | osf4
* | osf5
*)
7264 lt_prog_compiler_wl
='-Wl,'
7265 # All OSF/1 code is PIC.
7266 lt_prog_compiler_static
='-non_shared'
7270 lt_prog_compiler_static
='-non_shared'
7274 lt_prog_compiler_pic
='-KPIC'
7275 lt_prog_compiler_static
='-Bstatic'
7276 case $cc_basename in
7278 lt_prog_compiler_wl
='-Qoption ld ';;
7280 lt_prog_compiler_wl
='-Wl,';;
7285 lt_prog_compiler_wl
='-Qoption ld '
7286 lt_prog_compiler_pic
='-PIC'
7287 lt_prog_compiler_static
='-Bstatic'
7290 sysv4 | sysv4.2uw2
* | sysv4.3
*)
7291 lt_prog_compiler_wl
='-Wl,'
7292 lt_prog_compiler_pic
='-KPIC'
7293 lt_prog_compiler_static
='-Bstatic'
7297 if test -d /usr
/nec
;then
7298 lt_prog_compiler_pic
='-Kconform_pic'
7299 lt_prog_compiler_static
='-Bstatic'
7303 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
7304 lt_prog_compiler_wl
='-Wl,'
7305 lt_prog_compiler_pic
='-KPIC'
7306 lt_prog_compiler_static
='-Bstatic'
7310 lt_prog_compiler_wl
='-Wl,'
7311 lt_prog_compiler_can_build_shared
=no
7315 lt_prog_compiler_pic
='-pic'
7316 lt_prog_compiler_static
='-Bstatic'
7320 lt_prog_compiler_can_build_shared
=no
7325 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7326 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7329 # Check to make sure the PIC flag actually works.
7331 if test -n "$lt_prog_compiler_pic"; then
7333 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7334 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7335 if test "${lt_prog_compiler_pic_works+set}" = set; then
7336 echo $ECHO_N "(cached) $ECHO_C" >&6
7338 lt_prog_compiler_pic_works
=no
7339 ac_outfile
=conftest.
$ac_objext
7340 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7341 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
7342 # Insert the option either (1) after the last *FLAGS variable, or
7343 # (2) before a word containing "conftest.", or (3) at the end.
7344 # Note that $ac_compile itself does not contain backslashes and begins
7345 # with a dollar sign (not a hyphen), so the echo should work correctly.
7346 # The option is referenced via a variable to avoid confusing sed.
7347 lt_compile
=`echo "$ac_compile" | $SED \
7348 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7349 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7350 -e 's:$: $lt_compiler_flag:'`
7351 (eval echo "\"\$as_me:7351: $lt_compile\"" >&5)
7352 (eval "$lt_compile" 2>conftest.err
)
7354 cat conftest.err
>&5
7355 echo "$as_me:7355: \$? = $ac_status" >&5
7356 if (exit $ac_status) && test -s "$ac_outfile"; then
7357 # The compiler can only warn and ignore the option if not recognized
7358 # So say no if there are warnings other than the usual output.
7359 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
7360 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7361 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7362 lt_prog_compiler_pic_works
=yes
7368 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7369 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7371 if test x
"$lt_prog_compiler_pic_works" = xyes
; then
7372 case $lt_prog_compiler_pic in
7374 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
7377 lt_prog_compiler_pic
=
7378 lt_prog_compiler_can_build_shared
=no
7383 # For platforms which do not support PIC, -DPIC is meaningless:
7385 lt_prog_compiler_pic
=
7388 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
7393 # Check to make sure the static flag actually works.
7395 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
7396 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7397 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7398 if test "${lt_prog_compiler_static_works+set}" = set; then
7399 echo $ECHO_N "(cached) $ECHO_C" >&6
7401 lt_prog_compiler_static_works
=no
7402 save_LDFLAGS
="$LDFLAGS"
7403 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
7404 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
7405 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
7406 # The linker can only warn and ignore the option if not recognized
7407 # So say no if there are warnings
7408 if test -s conftest.err
; then
7409 # Append any errors to the config.log.
7410 cat conftest.err
1>&5
7411 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
7412 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7413 if diff conftest.exp conftest.er2
>/dev
/null
; then
7414 lt_prog_compiler_static_works
=yes
7417 lt_prog_compiler_static_works
=yes
7421 LDFLAGS
="$save_LDFLAGS"
7424 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7425 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7427 if test x
"$lt_prog_compiler_static_works" = xyes
; then
7430 lt_prog_compiler_static
=
7434 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7435 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7436 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7437 echo $ECHO_N "(cached) $ECHO_C" >&6
7439 lt_cv_prog_compiler_c_o
=no
7440 $rm -r conftest
2>/dev
/null
7444 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7446 lt_compiler_flag
="-o out/conftest2.$ac_objext"
7447 # Insert the option either (1) after the last *FLAGS variable, or
7448 # (2) before a word containing "conftest.", or (3) at the end.
7449 # Note that $ac_compile itself does not contain backslashes and begins
7450 # with a dollar sign (not a hyphen), so the echo should work correctly.
7451 lt_compile
=`echo "$ac_compile" | $SED \
7452 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7453 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7454 -e 's:$: $lt_compiler_flag:'`
7455 (eval echo "\"\$as_me:7455: $lt_compile\"" >&5)
7456 (eval "$lt_compile" 2>out
/conftest.err
)
7458 cat out
/conftest.err
>&5
7459 echo "$as_me:7459: \$? = $ac_status" >&5
7460 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
7462 # The compiler can only warn and ignore the option if not recognized
7463 # So say no if there are warnings
7464 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
7465 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
7466 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
7467 lt_cv_prog_compiler_c_o
=yes
7472 # SGI C++ compiler will create directory out/ii_files/ for
7473 # template instantiation
7474 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
7475 $rm out
/* && rmdir out
7481 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7482 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7485 hard_links
="nottested"
7486 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
7487 # do not overwrite the value of need_locks provided by the user
7488 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7489 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7492 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
7494 ln conftest.a conftest.b
2>&5 || hard_links
=no
7495 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
7496 { echo "$as_me:$LINENO: result: $hard_links" >&5
7497 echo "${ECHO_T}$hard_links" >&6; }
7498 if test "$hard_links" = no
; then
7499 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7500 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7507 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7508 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7511 allow_undefined_flag
=
7512 enable_shared_with_static_runtimes
=no
7514 archive_expsym_cmds
=
7515 old_archive_From_new_cmds
=
7516 old_archive_from_expsyms_cmds
=
7517 export_dynamic_flag_spec
=
7518 whole_archive_flag_spec
=
7519 thread_safe_flag_spec
=
7520 hardcode_libdir_flag_spec
=
7521 hardcode_libdir_flag_spec_ld
=
7522 hardcode_libdir_separator
=
7525 hardcode_shlibpath_var
=unsupported
7526 link_all_deplibs
=unknown
7527 hardcode_automatic
=no
7530 always_export_symbols
=no
7531 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7532 # include_expsyms should be a list of space-separated symbols to be *always*
7533 # included in the symbol list
7535 # exclude_expsyms can be an extended regexp of symbols to exclude
7536 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7537 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7538 # as well as any symbol that contains `d'.
7539 exclude_expsyms
="_GLOBAL_OFFSET_TABLE_"
7540 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7541 # platforms (ab)use it in PIC code, but their linkers get confused if
7542 # the symbol is explicitly referenced. Since portable code cannot
7543 # rely on this symbol name, it's probably fine to never include it in
7544 # preloaded symbol tables.
7545 extract_expsyms_cmds
=
7546 # Just being paranoid about ensuring that cc_basename is set.
7547 for cc_temp
in $compiler""; do
7549 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7550 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7555 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7558 cygwin
* | mingw
* | pw32
*)
7559 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7560 # When not using gcc, we currently assume that we are using
7561 # Microsoft Visual C++.
7562 if test "$GCC" != yes; then
7567 # we just hope/assume this is gcc and not c89 (= MSVC++)
7576 if test "$with_gnu_ld" = yes; then
7577 # If archive_cmds runs LD, not CC, wlarc should be empty
7580 # Set some defaults for GNU ld with shared library support. These
7581 # are reset later if shared libraries are not supported. Putting them
7582 # here allows them to be overridden if necessary.
7583 runpath_var
=LD_RUN_PATH
7584 hardcode_libdir_flag_spec
='${wl}--rpath ${wl}$libdir'
7585 export_dynamic_flag_spec
='${wl}--export-dynamic'
7586 # ancient GNU ld didn't support --whole-archive et. al.
7587 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
7588 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7590 whole_archive_flag_spec
=
7592 supports_anon_versioning
=no
7593 case `$LD -v 2>/dev/null` in
7594 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
7595 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
7596 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
7597 *\
2.11.
*) ;; # other 2.11 versions
7598 *) supports_anon_versioning
=yes ;;
7601 # See if GNU ld supports shared libraries.
7603 aix3
* | aix4
* | aix5
*)
7604 # On AIX/PPC, the GNU linker is very broken
7605 if test "$host_cpu" != ia64
; then
7609 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7610 *** to be unable to reliably create shared libraries on AIX.
7611 *** Therefore, libtool is disabling shared libraries support. If you
7612 *** really care for shared libraries, you may want to modify your PATH
7613 *** so that a non-GNU linker is found, and then restart.
7620 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)'
7621 hardcode_libdir_flag_spec
='-L$libdir'
7622 hardcode_minus_L
=yes
7624 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7625 # that the semantics of dynamic libraries on AmigaOS, at least up
7626 # to version 4, is to share data among multiple programs linked
7627 # with the same dynamic library. Since this doesn't match the
7628 # behavior of shared libraries on other platforms, we can't use
7634 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7635 allow_undefined_flag
=unsupported
7636 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7637 # support --undefined. This deserves some investigation. FIXME
7638 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7644 cygwin
* | mingw
* | pw32
*)
7645 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7646 # as there is no search path for DLLs.
7647 hardcode_libdir_flag_spec
='-L$libdir'
7648 allow_undefined_flag
=unsupported
7649 always_export_symbols
=no
7650 enable_shared_with_static_runtimes
=yes
7651 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7653 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
7654 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7655 # If the export-symbols file already is a .def file (1st line
7656 # is EXPORTS), use it as is; otherwise, prepend...
7657 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7658 cp $export_symbols $output_objdir/$soname.def;
7660 echo EXPORTS > $output_objdir/$soname.def;
7661 cat $export_symbols >> $output_objdir/$soname.def;
7663 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7671 hardcode_shlibpath_var
=no
7672 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
7673 export_dynamic_flag_spec
='${wl}-E'
7674 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7675 # Instead, shared libraries are loaded at an image base (0x10000000 by
7676 # default) and relocated if they conflict, which is a slow very memory
7677 # consuming and fragmenting process. To avoid this, we pick a random,
7678 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7679 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7680 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7681 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'
7684 gnu
* | linux
* | k
*bsd
*-gnu)
7685 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7687 case $cc_basename,$host_cpu in
7688 pgcc
*) # Portland Group C compiler
7689 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'
7690 tmp_addflag
=' $pic_flag'
7692 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
7693 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'
7694 tmp_addflag
=' $pic_flag -Mnomain' ;;
7695 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
7696 tmp_addflag
=' -i_dynamic' ;;
7697 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
7698 tmp_addflag
=' -i_dynamic -nofor_main' ;;
7699 ifc
* | ifort
*) # Intel Fortran compiler
7700 tmp_addflag
=' -nofor_main' ;;
7702 case `$CC -V 2>&1 | sed 5q` in
7703 *Sun\ C
*) # Sun C 5.9
7704 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'
7705 tmp_sharedflag
='-G' ;;
7706 *Sun\ F
*) # Sun Fortran 8.3
7707 tmp_sharedflag
='-G' ;;
7709 tmp_sharedflag
='-shared' ;;
7711 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7713 if test $supports_anon_versioning = yes; then
7714 archive_expsym_cmds
='$echo "{ global:" > $output_objdir/$libname.ver~
7715 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7716 $echo "local: *; };" >> $output_objdir/$libname.ver~
7717 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7725 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
7726 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7729 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7730 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7735 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
7739 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7740 *** create shared libraries on Solaris systems. Therefore, libtool
7741 *** is disabling shared libraries support. We urge you to upgrade GNU
7742 *** binutils to release 2.9.1 or newer. Another option is to modify
7743 *** your PATH or compiler configuration so that the native linker is
7744 *** used, and then restart.
7747 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7748 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7749 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7755 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
7756 case `$LD -v 2>&1` in
7757 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
7761 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7762 *** reliably create shared libraries on SCO systems. Therefore, libtool
7763 *** is disabling shared libraries support. We urge you to upgrade GNU
7764 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7765 *** your PATH or compiler configuration so that the native linker is
7766 *** used, and then restart.
7771 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7772 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7773 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7774 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7783 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7786 hardcode_shlibpath_var
=no
7790 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7791 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7792 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7799 if test "$ld_shlibs" = no
; then
7801 hardcode_libdir_flag_spec
=
7802 export_dynamic_flag_spec
=
7803 whole_archive_flag_spec
=
7806 # PORTME fill in a description of your system's linker (not GNU ld)
7809 allow_undefined_flag
=unsupported
7810 always_export_symbols
=yes
7811 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'
7812 # Note: this linker hardcodes the directories in LIBPATH if there
7813 # are no directories specified by -L.
7814 hardcode_minus_L
=yes
7815 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7816 # Neither direct hardcoding nor static linking is supported with a
7818 hardcode_direct
=unsupported
7823 if test "$host_cpu" = ia64
; then
7824 # On IA64, the linker does run time linking by default, so we don't
7825 # have to do anything special.
7826 aix_use_runtimelinking
=no
7827 exp_sym_flag
='-Bexport'
7830 # If we're using GNU nm, then we don't want the "-C" option.
7831 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7832 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
7833 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'
7835 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'
7837 aix_use_runtimelinking
=no
7839 # Test if we are trying to use run time linking or normal
7840 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7841 # need to do runtime linking.
7842 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
7843 for ld_flag
in $LDFLAGS; do
7844 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
7845 aix_use_runtimelinking
=yes
7852 exp_sym_flag
='-bexport'
7853 no_entry_flag
='-bnoentry'
7856 # When large executables or shared objects are built, AIX ld can
7857 # have problems creating the table of contents. If linking a library
7858 # or program results in "error TOC overflow" add -mminimal-toc to
7859 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7860 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7864 hardcode_libdir_separator
=':'
7865 link_all_deplibs
=yes
7867 if test "$GCC" = yes; then
7868 case $host_os in aix4.
[012]|aix4.
[012].
*)
7869 # We only want to do this on AIX 4.2 and lower, the check
7870 # below for broken collect2 doesn't work under 4.3+
7871 collect2name
=`${CC} -print-prog-name=collect2`
7872 if test -f "$collect2name" && \
7873 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
7875 # We have reworked collect2
7878 # We have old collect2
7879 hardcode_direct
=unsupported
7880 # It fails to find uninstalled libraries when the uninstalled
7881 # path is not listed in the libpath. Setting hardcode_minus_L
7882 # to unsupported forces relinking
7883 hardcode_minus_L
=yes
7884 hardcode_libdir_flag_spec
='-L$libdir'
7885 hardcode_libdir_separator
=
7889 shared_flag
='-shared'
7890 if test "$aix_use_runtimelinking" = yes; then
7891 shared_flag
="$shared_flag "'${wl}-G'
7895 if test "$host_cpu" = ia64
; then
7896 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7897 # chokes on -Wl,-G. The following line is correct:
7900 if test "$aix_use_runtimelinking" = yes; then
7901 shared_flag
='${wl}-G'
7903 shared_flag
='${wl}-bM:SRE'
7908 # It seems that -bexpall does not export symbols beginning with
7909 # underscore (_), so it is better to generate a list of symbols to export.
7910 always_export_symbols
=yes
7911 if test "$aix_use_runtimelinking" = yes; then
7912 # Warning - without using the other runtime loading flags (-brtl),
7913 # -berok will link without error, but may produce a broken library.
7914 allow_undefined_flag
='-berok'
7915 # Determine the default libpath from the value encoded in an empty executable.
7916 cat >conftest.
$ac_ext <<_ACEOF
7919 cat confdefs.h
>>conftest.
$ac_ext
7920 cat >>conftest.
$ac_ext <<_ACEOF
7921 /* end confdefs.h. */
7931 rm -f conftest.
$ac_objext conftest
$ac_exeext
7932 if { (ac_try
="$ac_link"
7934 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7935 *) ac_try_echo=$ac_try;;
7937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7938 (eval "$ac_link") 2>conftest.er1
7940 grep -v '^ *+' conftest.er1 >conftest.err
7942 cat conftest.err >&5
7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 (exit $ac_status); } && {
7945 test -z "$ac_c_werror_flag" ||
7946 test ! -s conftest.err
7947 } && test -s conftest$ac_exeext &&
7948 $as_test_x conftest$ac_exeext; then
7950 lt_aix_libpath_sed='
7951 /Import File Strings/,/^$/ {
7957 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
7958 # Check for a 64-bit object if we didn't find anything.
7959 if test -z "$aix_libpath"; then
7960 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
7963 echo "$as_me: failed program was:" >&5
7964 sed 's/^/| /' conftest.$ac_ext >&5
7969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7970 conftest$ac_exeext conftest.$ac_ext
7971 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7973 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7974 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"
7976 if test "$host_cpu" = ia64; then
7977 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7978 allow_undefined_flag="-z nodefs"
7979 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"
7981 # Determine the default libpath from the value encoded in an empty executable.
7982 cat >conftest.$ac_ext <<_ACEOF
7985 cat confdefs.h >>conftest.$ac_ext
7986 cat >>conftest.$ac_ext <<_ACEOF
7987 /* end confdefs.h. */
7997 rm -f conftest.$ac_objext conftest$ac_exeext
7998 if { (ac_try="$ac_link"
8000 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8001 *) ac_try_echo
=$ac_try;;
8003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8004 (eval "$ac_link") 2>conftest.er1
8006 grep -v '^ *+' conftest.er1
>conftest.err
8008 cat conftest.err
>&5
8009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010 (exit $ac_status); } && {
8011 test -z "$ac_c_werror_flag" ||
8012 test ! -s conftest.err
8013 } && test -s conftest
$ac_exeext &&
8014 $as_test_x conftest
$ac_exeext; then
8016 lt_aix_libpath_sed
='
8017 /Import File Strings/,/^$/ {
8023 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8024 # Check for a 64-bit object if we didn't find anything.
8025 if test -z "$aix_libpath"; then
8026 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8029 echo "$as_me: failed program was:" >&5
8030 sed 's/^/| /' conftest.
$ac_ext >&5
8035 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8036 conftest
$ac_exeext conftest.
$ac_ext
8037 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
8039 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
8040 # Warning - without using the other run time loading flags,
8041 # -berok will link without error, but may produce a broken library.
8042 no_undefined_flag
=' ${wl}-bernotok'
8043 allow_undefined_flag
=' ${wl}-berok'
8044 # Exported symbols can be pulled into shared objects from archives
8045 whole_archive_flag_spec
='$convenience'
8046 archive_cmds_need_lc
=yes
8047 # This is similar to how AIX traditionally builds its shared libraries.
8048 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'
8054 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)'
8055 hardcode_libdir_flag_spec
='-L$libdir'
8056 hardcode_minus_L
=yes
8057 # see comment about different semantics on the GNU ld section
8062 export_dynamic_flag_spec
=-rdynamic
8065 cygwin
* | mingw
* | pw32
*)
8066 # When not using gcc, we currently assume that we are using
8067 # Microsoft Visual C++.
8068 # hardcode_libdir_flag_spec is actually meaningless, as there is
8069 # no search path for DLLs.
8070 hardcode_libdir_flag_spec
=' '
8071 allow_undefined_flag
=unsupported
8072 # Tell ltmain to make .lib files, not .a files.
8074 # Tell ltmain to make .dll files, not .so files.
8076 # FIXME: Setting linknames here is a bad hack.
8077 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8078 # The linker will automatically build a .lib file if we build a DLL.
8079 old_archive_From_new_cmds
='true'
8080 # FIXME: Should let the user specify the lib program.
8081 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
8082 fix_srcfile_path
='`cygpath -w "$srcfile"`'
8083 enable_shared_with_static_runtimes
=yes
8086 darwin
* | rhapsody
*)
8088 rhapsody
* | darwin1.
[012])
8089 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
8092 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8093 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8095 case ${MACOSX_DEPLOYMENT_TARGET} in
8097 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8100 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
8106 archive_cmds_need_lc
=no
8108 hardcode_automatic
=yes
8109 hardcode_shlibpath_var
=unsupported
8110 whole_archive_flag_spec
=''
8111 link_all_deplibs
=yes
8112 if test "$GCC" = yes ; then
8113 output_verbose_link_cmd
='echo'
8114 archive_cmds
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8115 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8116 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8117 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}'
8118 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}'
8120 case $cc_basename in
8122 output_verbose_link_cmd
='echo'
8123 archive_cmds
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8124 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8125 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8126 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}'
8127 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}'
8137 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8138 hardcode_libdir_flag_spec
='-L$libdir'
8139 hardcode_shlibpath_var
=no
8146 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8147 # support. Future versions do this automatically, but an explicit c++rt0.o
8148 # does not break anything, and helps significantly (at the cost of a little
8151 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8152 hardcode_libdir_flag_spec
='-R$libdir'
8154 hardcode_shlibpath_var
=no
8157 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8159 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8161 hardcode_minus_L
=yes
8162 hardcode_shlibpath_var
=no
8165 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8166 freebsd
* | dragonfly
*)
8167 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8168 hardcode_libdir_flag_spec
='-R$libdir'
8170 hardcode_shlibpath_var
=no
8174 if test "$GCC" = yes; then
8175 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'
8177 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'
8179 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8180 hardcode_libdir_separator
=:
8183 # hardcode_minus_L: Not really in the search PATH,
8184 # but as the default location of the library.
8185 hardcode_minus_L
=yes
8186 export_dynamic_flag_spec
='${wl}-E'
8190 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
8191 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8193 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8195 if test "$with_gnu_ld" = no
; then
8196 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8197 hardcode_libdir_separator
=:
8200 export_dynamic_flag_spec
='${wl}-E'
8202 # hardcode_minus_L: Not really in the search PATH,
8203 # but as the default location of the library.
8204 hardcode_minus_L
=yes
8209 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
8212 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8215 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8218 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8224 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8227 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8230 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8234 if test "$with_gnu_ld" = no
; then
8235 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8236 hardcode_libdir_separator
=:
8240 hardcode_libdir_flag_spec_ld
='+b $libdir'
8242 hardcode_shlibpath_var
=no
8246 export_dynamic_flag_spec
='${wl}-E'
8248 # hardcode_minus_L: Not really in the search PATH,
8249 # but as the default location of the library.
8250 hardcode_minus_L
=yes
8256 irix5
* | irix6
* | nonstopux
*)
8257 if test "$GCC" = yes; then
8258 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'
8260 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'
8261 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
8263 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8264 hardcode_libdir_separator
=:
8265 link_all_deplibs
=yes
8269 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
8270 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8272 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8274 hardcode_libdir_flag_spec
='-R$libdir'
8276 hardcode_shlibpath_var
=no
8280 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8282 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8283 hardcode_libdir_separator
=:
8284 hardcode_shlibpath_var
=no
8288 if test -f /usr
/libexec
/ld.so
; then
8290 hardcode_shlibpath_var
=no
8291 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8292 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8293 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8294 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8295 export_dynamic_flag_spec
='${wl}-E'
8298 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
8299 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8300 hardcode_libdir_flag_spec
='-R$libdir'
8303 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8304 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8314 hardcode_libdir_flag_spec
='-L$libdir'
8315 hardcode_minus_L
=yes
8316 allow_undefined_flag
=unsupported
8317 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'
8318 old_archive_From_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8322 if test "$GCC" = yes; then
8323 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
8324 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'
8326 allow_undefined_flag
=' -expect_unresolved \*'
8327 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'
8329 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8330 hardcode_libdir_separator
=:
8333 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
8334 if test "$GCC" = yes; then
8335 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
8336 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'
8337 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8339 allow_undefined_flag
=' -expect_unresolved \*'
8340 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'
8341 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8342 $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'
8344 # Both c and cxx compiler support -rpath directly
8345 hardcode_libdir_flag_spec
='-rpath $libdir'
8347 hardcode_libdir_separator
=:
8351 no_undefined_flag
=' -z text'
8352 if test "$GCC" = yes; then
8354 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8355 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8356 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8359 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8360 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8361 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8363 hardcode_libdir_flag_spec
='-R$libdir'
8364 hardcode_shlibpath_var
=no
8366 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
8368 # The compiler driver will combine and reorder linker options,
8369 # but understands `-z linker_flag'. GCC discards it without `$wl',
8370 # but is careful enough not to reorder.
8371 # Supported since Solaris 2.6 (maybe 2.5.1?)
8372 if test "$GCC" = yes; then
8373 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8375 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
8379 link_all_deplibs
=yes
8383 if test "x$host_vendor" = xsequent
; then
8384 # Use $CC to link under sequent, because it throws in some extra .o
8385 # files that make .init and .fini sections work.
8386 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8388 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8390 hardcode_libdir_flag_spec
='-L$libdir'
8392 hardcode_minus_L
=yes
8393 hardcode_shlibpath_var
=no
8397 case $host_vendor in
8399 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8400 hardcode_direct
=yes # is this really true???
8403 ## LD is ld it makes a PLAMLIB
8404 ## CC just makes a GrossModule.
8405 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8406 reload_cmds
='$CC -r -o $output$reload_objs'
8410 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8411 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
8414 runpath_var
='LD_RUN_PATH'
8415 hardcode_shlibpath_var
=no
8419 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8420 hardcode_shlibpath_var
=no
8421 export_dynamic_flag_spec
='-Bexport'
8425 if test -d /usr
/nec
; then
8426 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8427 hardcode_shlibpath_var
=no
8428 runpath_var
=LD_RUN_PATH
8429 hardcode_runpath_var
=yes
8434 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
8435 no_undefined_flag
='${wl}-z,text'
8436 archive_cmds_need_lc
=no
8437 hardcode_shlibpath_var
=no
8438 runpath_var
='LD_RUN_PATH'
8440 if test "$GCC" = yes; then
8441 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8442 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8444 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8445 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8449 sysv5
* | sco3.2v5
* | sco5v6
*)
8450 # Note: We can NOT use -z defs as we might desire, because we do not
8451 # link with -lc, and that would cause any symbols used from libc to
8452 # always be unresolved, which means just about no library would
8453 # ever link correctly. If we're not using GNU ld we use -z text
8454 # though, which does catch some bad symbols but isn't as heavy-handed
8456 no_undefined_flag
='${wl}-z,text'
8457 allow_undefined_flag
='${wl}-z,nodefs'
8458 archive_cmds_need_lc
=no
8459 hardcode_shlibpath_var
=no
8460 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8461 hardcode_libdir_separator
=':'
8462 link_all_deplibs
=yes
8463 export_dynamic_flag_spec
='${wl}-Bexport'
8464 runpath_var
='LD_RUN_PATH'
8466 if test "$GCC" = yes; then
8467 archive_cmds
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8468 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8470 archive_cmds
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8471 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8476 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8477 hardcode_libdir_flag_spec
='-L$libdir'
8478 hardcode_shlibpath_var
=no
8487 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8488 echo "${ECHO_T}$ld_shlibs" >&6; }
8489 test "$ld_shlibs" = no
&& can_build_shared
=no
8492 # Do we need to explicitly link libc?
8494 case "x$archive_cmds_need_lc" in
8496 # Assume -lc should be added
8497 archive_cmds_need_lc
=yes
8499 if test "$enable_shared" = yes && test "$GCC" = yes; then
8500 case $archive_cmds in
8502 # FIXME: we may have to deal with multi-command sequences.
8505 # Test whether the compiler implicitly links with -lc since on some
8506 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8507 # to ld, don't add -lc before -lgcc.
8508 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8509 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8511 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8514 (eval $ac_compile) 2>&5
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); } 2>conftest.err
; then
8520 libobjs
=conftest.
$ac_objext
8522 wl
=$lt_prog_compiler_wl
8523 pic_flag
=$lt_prog_compiler_pic
8529 lt_save_allow_undefined_flag
=$allow_undefined_flag
8530 allow_undefined_flag
=
8531 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8532 (eval $archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); }
8537 archive_cmds_need_lc
=no
8539 archive_cmds_need_lc
=yes
8541 allow_undefined_flag
=$lt_save_allow_undefined_flag
8543 cat conftest.err
1>&5
8546 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8547 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8554 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8555 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8557 libname_spec
='lib$name'
8565 shlibpath_overrides_runpath
=unknown
8567 dynamic_linker
="$host_os ld.so"
8568 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
8570 if test "$GCC" = yes; then
8572 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
8573 *) lt_awk_arg
="/^libraries:/" ;;
8575 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8576 if echo "$lt_search_path_spec" |
grep ';' >/dev
/null
; then
8577 # if the path contains ";" then we assume it to be the separator
8578 # otherwise default to the standard path separator (i.e. ":") - it is
8579 # assumed that no part of a normal pathname contains ";" but that should
8580 # okay in the real world where ";" in dirpaths is itself problematic.
8581 lt_search_path_spec
=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8583 lt_search_path_spec
=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8585 # Ok, now we have the path, separated by spaces, we can step through it
8586 # and add multilib dir if necessary.
8587 lt_tmp_lt_search_path_spec
=
8588 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8589 for lt_sys_path
in $lt_search_path_spec; do
8590 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8591 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8593 test -d "$lt_sys_path" && \
8594 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
8597 lt_search_path_spec
=`echo $lt_tmp_lt_search_path_spec | awk '
8598 BEGIN {RS=" "; FS="/|\n";} {
8601 for (lt_i = NF; lt_i > 0; lt_i--) {
8602 if ($lt_i != "" && $lt_i != ".") {
8603 if ($lt_i == "..") {
8606 if (lt_count == 0) {
8607 lt_foo="/" $lt_i lt_foo;
8614 if (lt_foo != "") { lt_freq[lt_foo]++; }
8615 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8617 sys_lib_search_path_spec
=`echo $lt_search_path_spec`
8619 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
8621 need_lib_prefix
=unknown
8622 hardcode_into_libs
=no
8624 # when you set need_version to no, make sure it does not cause -set_version
8625 # flags to be left without arguments
8626 need_version
=unknown
8631 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
8632 shlibpath_var
=LIBPATH
8634 # AIX 3 has no versioning support, so we append a major version to the name.
8635 soname_spec
='${libname}${release}${shared_ext}$major'
8642 hardcode_into_libs
=yes
8643 if test "$host_cpu" = ia64
; then
8644 # AIX 5 supports IA64
8645 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8646 shlibpath_var
=LD_LIBRARY_PATH
8648 # With GCC up to 2.95.x, collect2 would create an import file
8649 # for dependence libraries. The import file would start with
8650 # the line `#! .'. This would cause the generated library to
8651 # depend on `.', always an invalid library. This was fixed in
8652 # development snapshots of GCC prior to 3.0.
8654 aix4 | aix4.
[01] | aix4.
[01].
*)
8655 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8657 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
8664 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8665 # soname into executable. Probably we can add versioning support to
8666 # collect2, so additional links can be useful in future.
8667 if test "$aix_use_runtimelinking" = yes; then
8668 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8669 # instead of lib<name>.a to let people know that these are not
8670 # typical AIX shared libraries.
8671 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8673 # We preserve .a as extension for shared libraries through AIX4.2
8674 # and later when we are not doing run time linking.
8675 library_names_spec
='${libname}${release}.a $libname.a'
8676 soname_spec
='${libname}${release}${shared_ext}$major'
8678 shlibpath_var
=LIBPATH
8683 library_names_spec
='$libname.ixlibrary $libname.a'
8684 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8685 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'
8689 library_names_spec
='${libname}${shared_ext}'
8690 dynamic_linker
="$host_os ld.so"
8691 shlibpath_var
=LIBRARY_PATH
8697 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8698 soname_spec
='${libname}${release}${shared_ext}$major'
8699 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
8700 shlibpath_var
=LD_LIBRARY_PATH
8701 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8702 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
8703 # the default ld.so.conf also contains /usr/contrib/lib and
8704 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8705 # libtool to hard-code these into programs
8708 cygwin
* | mingw
* | pw32
*)
8709 version_type
=windows
8714 case $GCC,$host_os in
8715 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
8716 library_names_spec
='$libname.dll.a'
8717 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8718 postinstall_cmds
='base_file=`basename \${file}`~
8719 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8720 dldir=$destdir/`dirname \$dlpath`~
8721 test -d \$dldir || mkdir -p \$dldir~
8722 $install_prog $dir/$dlname \$dldir/$dlname~
8723 chmod a+x \$dldir/$dlname'
8724 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8725 dlpath=$dir/\$dldll~
8727 shlibpath_overrides_runpath
=yes
8731 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8732 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8733 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
8736 # MinGW DLLs use traditional 'lib' prefix
8737 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8738 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8739 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
8740 # It is most probably a Windows format PATH printed by
8741 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8742 # path with ; separators, and with drive letters. We can handle the
8743 # drive letters (cygwin fileutils understands them), so leave them,
8744 # especially as we might pass files found there to a mingw objdump,
8745 # which wouldn't understand a cygwinified path. Ahh.
8746 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8748 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8752 # pw32 DLLs use 'pw' prefix rather than 'lib'
8753 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8759 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8762 dynamic_linker
='Win32 ld.exe'
8763 # FIXME: first we should search . and the directory the executable is in
8767 darwin
* | rhapsody
*)
8768 dynamic_linker
="$host_os dyld"
8772 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8773 soname_spec
='${libname}${release}${major}$shared_ext'
8774 shlibpath_overrides_runpath
=yes
8775 shlibpath_var
=DYLD_LIBRARY_PATH
8776 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
8778 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
8779 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
8786 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8787 soname_spec
='${libname}${release}${shared_ext}$major'
8788 shlibpath_var
=LD_LIBRARY_PATH
8795 freebsd
* | dragonfly
*)
8796 # DragonFly does not have aout. When/if they implement a new
8797 # versioning mechanism, adjust this.
8798 if test -x /usr
/bin
/objformat
; then
8799 objformat
=`/usr/bin/objformat`
8802 freebsd
[123]*) objformat
=aout
;;
8806 version_type
=freebsd-
$objformat
8807 case $version_type in
8809 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8814 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8818 shlibpath_var
=LD_LIBRARY_PATH
8821 shlibpath_overrides_runpath
=yes
8823 freebsd3.
[01]* | freebsdelf3.
[01]*)
8824 shlibpath_overrides_runpath
=yes
8825 hardcode_into_libs
=yes
8827 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
8828 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
8829 shlibpath_overrides_runpath
=no
8830 hardcode_into_libs
=yes
8832 *) # from 4.6 on, and DragonFly
8833 shlibpath_overrides_runpath
=yes
8834 hardcode_into_libs
=yes
8843 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8844 soname_spec
='${libname}${release}${shared_ext}$major'
8845 shlibpath_var
=LD_LIBRARY_PATH
8846 hardcode_into_libs
=yes
8849 hpux9
* | hpux10
* | hpux11
*)
8850 # Give a soname corresponding to the major version so that dld.sl refuses to
8851 # link against other versions.
8858 hardcode_into_libs
=yes
8859 dynamic_linker
="$host_os dld.so"
8860 shlibpath_var
=LD_LIBRARY_PATH
8861 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
8862 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8863 soname_spec
='${libname}${release}${shared_ext}$major'
8864 if test "X$HPUX_IA64_MODE" = X32
; then
8865 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8867 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
8869 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
8873 hardcode_into_libs
=yes
8874 dynamic_linker
="$host_os dld.sl"
8875 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
8876 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
8877 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8878 soname_spec
='${libname}${release}${shared_ext}$major'
8879 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8880 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
8884 dynamic_linker
="$host_os dld.sl"
8885 shlibpath_var
=SHLIB_PATH
8886 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
8887 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8888 soname_spec
='${libname}${release}${shared_ext}$major'
8891 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8892 postinstall_cmds
='chmod 555 $lib'
8899 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8900 soname_spec
='${libname}${release}${shared_ext}$major'
8901 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
8902 shlibpath_var
=LD_LIBRARY_PATH
8903 shlibpath_overrides_runpath
=no
8904 hardcode_into_libs
=yes
8907 irix5
* | irix6
* | nonstopux
*)
8909 nonstopux
*) version_type
=nonstopux
;;
8911 if test "$lt_cv_prog_gnu_ld" = yes; then
8919 soname_spec
='${libname}${release}${shared_ext}$major'
8920 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8922 irix5
* | nonstopux
*)
8926 case $LD in # libtool.m4 will add one of these switches to LD
8927 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
8928 libsuff
= shlibsuff
= libmagic
=32-bit;;
8929 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
8930 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
8931 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
8932 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
8933 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
8937 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
8938 shlibpath_overrides_runpath
=no
8939 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8940 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
8941 hardcode_into_libs
=yes
8944 # No shared lib support for Linux oldld, aout, or coff.
8945 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
8949 # This must be Linux ELF.
8950 linux
* | k
*bsd
*-gnu)
8954 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8955 soname_spec
='${libname}${release}${shared_ext}$major'
8956 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8957 shlibpath_var
=LD_LIBRARY_PATH
8958 shlibpath_overrides_runpath
=no
8959 # This implies no fast_install, which is unacceptable.
8960 # Some rework will be needed to allow for fast_install
8961 # before this can be enabled.
8962 hardcode_into_libs
=yes
8963 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8964 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
8966 # Append ld.so.conf contents to the search path
8967 if test -f /etc
/ld.so.conf
; then
8968 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' ' '`
8969 sys_lib_dlsearch_path_spec
="$sys_lib_dlsearch_path_spec $lt_ld_extra"
8972 # We used to test for /lib/ld.so.1 and disable shared libraries on
8973 # powerpc, because MkLinux only supported shared libraries with the
8974 # GNU dynamic linker. Since this was broken with cross compilers,
8975 # most powerpc-linux boxes support dynamic linking these days and
8976 # people can always --disable-shared, the test was removed, and we
8977 # assume the GNU/Linux dynamic linker is in use.
8978 dynamic_linker
='GNU/Linux ld.so'
8985 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
8986 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8987 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8988 dynamic_linker
='NetBSD (a.out) ld.so'
8990 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8991 soname_spec
='${libname}${release}${shared_ext}$major'
8992 dynamic_linker
='NetBSD ld.elf_so'
8994 shlibpath_var
=LD_LIBRARY_PATH
8995 shlibpath_overrides_runpath
=yes
8996 hardcode_into_libs
=yes
9001 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9002 shlibpath_var
=LD_LIBRARY_PATH
9003 shlibpath_overrides_runpath
=yes
9010 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9011 soname_spec
='${libname}${release}${shared_ext}$major'
9012 shlibpath_var
=LD_LIBRARY_PATH
9013 shlibpath_overrides_runpath
=yes
9018 sys_lib_dlsearch_path_spec
="/usr/lib"
9020 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9022 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
9023 *) need_version
=no
;;
9025 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9026 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9027 shlibpath_var
=LD_LIBRARY_PATH
9028 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9030 openbsd2.
[89] | openbsd2.
[89].
*)
9031 shlibpath_overrides_runpath
=no
9034 shlibpath_overrides_runpath
=yes
9038 shlibpath_overrides_runpath
=yes
9043 libname_spec
='$name'
9046 library_names_spec
='$libname${shared_ext} $libname.a'
9047 dynamic_linker
='OS/2 ld.exe'
9048 shlibpath_var
=LIBPATH
9051 osf3
* | osf4
* | osf5
*)
9055 soname_spec
='${libname}${release}${shared_ext}$major'
9056 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9057 shlibpath_var
=LD_LIBRARY_PATH
9058 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9059 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
9070 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9071 soname_spec
='${libname}${release}${shared_ext}$major'
9072 shlibpath_var
=LD_LIBRARY_PATH
9073 shlibpath_overrides_runpath
=yes
9074 hardcode_into_libs
=yes
9075 # ldd complains unless libraries are executable
9076 postinstall_cmds
='chmod +x $lib'
9081 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9082 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9083 shlibpath_var
=LD_LIBRARY_PATH
9084 shlibpath_overrides_runpath
=yes
9085 if test "$with_gnu_ld" = yes; then
9093 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9094 soname_spec
='${libname}${release}${shared_ext}$major'
9095 shlibpath_var
=LD_LIBRARY_PATH
9096 case $host_vendor in
9098 shlibpath_overrides_runpath
=no
9100 export_dynamic_flag_spec
='${wl}-Blargedynsym'
9101 runpath_var
=LD_RUN_PATH
9109 shlibpath_overrides_runpath
=no
9110 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
9116 if test -d /usr
/nec
;then
9118 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9119 soname_spec
='$libname${shared_ext}.$major'
9120 shlibpath_var
=LD_LIBRARY_PATH
9124 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
9125 version_type
=freebsd-elf
9128 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9129 soname_spec
='${libname}${release}${shared_ext}$major'
9130 shlibpath_var
=LD_LIBRARY_PATH
9131 hardcode_into_libs
=yes
9132 if test "$with_gnu_ld" = yes; then
9133 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9134 shlibpath_overrides_runpath
=no
9136 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
9137 shlibpath_overrides_runpath
=yes
9140 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
9144 sys_lib_dlsearch_path_spec
='/usr/lib'
9149 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9150 soname_spec
='${libname}${release}${shared_ext}$major'
9151 shlibpath_var
=LD_LIBRARY_PATH
9158 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9159 echo "${ECHO_T}$dynamic_linker" >&6; }
9160 test "$dynamic_linker" = no
&& can_build_shared
=no
9162 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
9163 if test "$GCC" = yes; then
9164 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9167 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9168 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9170 if test -n "$hardcode_libdir_flag_spec" || \
9171 test -n "$runpath_var" || \
9172 test "X$hardcode_automatic" = "Xyes" ; then
9174 # We can hardcode non-existant directories.
9175 if test "$hardcode_direct" != no
&&
9176 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9177 # have to relink, otherwise we might link with an installed library
9178 # when we should be linking with a yet-to-be-installed one
9179 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9180 test "$hardcode_minus_L" != no
; then
9181 # Linking always hardcodes the temporary library directory.
9182 hardcode_action
=relink
9184 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9185 hardcode_action
=immediate
9188 # We cannot hardcode anything, or else we can only hardcode existing
9190 hardcode_action
=unsupported
9192 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9193 echo "${ECHO_T}$hardcode_action" >&6; }
9195 if test "$hardcode_action" = relink
; then
9196 # Fast installation is not supported
9197 enable_fast_install
=no
9198 elif test "$shlibpath_overrides_runpath" = yes ||
9199 test "$enable_shared" = no
; then
9200 # Fast installation is not necessary
9201 enable_fast_install
=needless
9206 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9207 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9208 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
9209 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
9210 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
9211 { echo "$as_me:$LINENO: result: yes" >&5
9212 echo "${ECHO_T}yes" >&6; }
9214 # FIXME - insert some real tests, host_os isn't really good enough
9217 if test -n "$STRIP" ; then
9218 striplib
="$STRIP -x"
9219 old_striplib
="$STRIP -S"
9220 { echo "$as_me:$LINENO: result: yes" >&5
9221 echo "${ECHO_T}yes" >&6; }
9223 { echo "$as_me:$LINENO: result: no" >&5
9224 echo "${ECHO_T}no" >&6; }
9228 { echo "$as_me:$LINENO: result: no" >&5
9229 echo "${ECHO_T}no" >&6; }
9234 if test "x$enable_dlopen" != xyes
; then
9235 enable_dlopen
=unknown
9236 enable_dlopen_self
=unknown
9237 enable_dlopen_self_static
=unknown
9244 lt_cv_dlopen
="load_add_on"
9246 lt_cv_dlopen_self
=yes
9250 lt_cv_dlopen
="LoadLibrary"
9255 lt_cv_dlopen
="dlopen"
9260 # if libdl is installed we need to link against it
9261 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9262 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9263 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9264 echo $ECHO_N "(cached) $ECHO_C" >&6
9266 ac_check_lib_save_LIBS
=$LIBS
9268 cat >conftest.
$ac_ext <<_ACEOF
9271 cat confdefs.h
>>conftest.
$ac_ext
9272 cat >>conftest.
$ac_ext <<_ACEOF
9273 /* end confdefs.h. */
9275 /* Override any GCC internal prototype to avoid an error.
9276 Use char because int might match the return type of a GCC
9277 builtin and then its argument prototype would still apply. */
9290 rm -f conftest.
$ac_objext conftest
$ac_exeext
9291 if { (ac_try
="$ac_link"
9293 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9294 *) ac_try_echo=$ac_try;;
9296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9297 (eval "$ac_link") 2>conftest.er1
9299 grep -v '^ *+' conftest.er1 >conftest.err
9301 cat conftest.err >&5
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); } && {
9304 test -z "$ac_c_werror_flag" ||
9305 test ! -s conftest.err
9306 } && test -s conftest$ac_exeext &&
9307 $as_test_x conftest$ac_exeext; then
9308 ac_cv_lib_dl_dlopen=yes
9310 echo "$as_me: failed program was:" >&5
9311 sed 's/^/| /' conftest.$ac_ext >&5
9313 ac_cv_lib_dl_dlopen=no
9316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9317 conftest$ac_exeext conftest.$ac_ext
9318 LIBS=$ac_check_lib_save_LIBS
9320 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9321 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9322 if test $ac_cv_lib_dl_dlopen = yes; then
9323 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9328 lt_cv_dlopen_self=yes
9335 { echo "$as_me:$LINENO: checking for shl_load" >&5
9336 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9337 if test "${ac_cv_func_shl_load+set}" = set; then
9338 echo $ECHO_N "(cached) $ECHO_C" >&6
9340 cat >conftest.$ac_ext <<_ACEOF
9343 cat confdefs.h >>conftest.$ac_ext
9344 cat >>conftest.$ac_ext <<_ACEOF
9345 /* end confdefs.h. */
9346 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9348 #define shl_load innocuous_shl_load
9350 /* System header to define __stub macros and hopefully few prototypes,
9351 which can conflict with char shl_load (); below.
9352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9353 <limits.h> exists even on freestanding compilers. */
9356 # include <limits.h>
9358 # include <assert.h>
9363 /* Override any GCC internal prototype to avoid an error.
9364 Use char because int might match the return type of a GCC
9365 builtin and then its argument prototype would still apply. */
9370 /* The GNU C library defines this for functions which it implements
9371 to always fail with ENOSYS. Some functions are actually named
9372 something starting with __ and the normal name is an alias. */
9373 #if defined __stub_shl_load || defined __stub___shl_load
9385 rm -f conftest.$ac_objext conftest$ac_exeext
9386 if { (ac_try="$ac_link"
9388 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9389 *) ac_try_echo
=$ac_try;;
9391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9392 (eval "$ac_link") 2>conftest.er1
9394 grep -v '^ *+' conftest.er1
>conftest.err
9396 cat conftest.err
>&5
9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); } && {
9399 test -z "$ac_c_werror_flag" ||
9400 test ! -s conftest.err
9401 } && test -s conftest
$ac_exeext &&
9402 $as_test_x conftest
$ac_exeext; then
9403 ac_cv_func_shl_load
=yes
9405 echo "$as_me: failed program was:" >&5
9406 sed 's/^/| /' conftest.
$ac_ext >&5
9408 ac_cv_func_shl_load
=no
9411 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9412 conftest
$ac_exeext conftest.
$ac_ext
9414 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9415 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9416 if test $ac_cv_func_shl_load = yes; then
9417 lt_cv_dlopen
="shl_load"
9419 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9420 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9421 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9422 echo $ECHO_N "(cached) $ECHO_C" >&6
9424 ac_check_lib_save_LIBS
=$LIBS
9426 cat >conftest.
$ac_ext <<_ACEOF
9429 cat confdefs.h
>>conftest.
$ac_ext
9430 cat >>conftest.
$ac_ext <<_ACEOF
9431 /* end confdefs.h. */
9433 /* Override any GCC internal prototype to avoid an error.
9434 Use char because int might match the return type of a GCC
9435 builtin and then its argument prototype would still apply. */
9448 rm -f conftest.
$ac_objext conftest
$ac_exeext
9449 if { (ac_try
="$ac_link"
9451 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9452 *) ac_try_echo=$ac_try;;
9454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9455 (eval "$ac_link") 2>conftest.er1
9457 grep -v '^ *+' conftest.er1 >conftest.err
9459 cat conftest.err >&5
9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 (exit $ac_status); } && {
9462 test -z "$ac_c_werror_flag" ||
9463 test ! -s conftest.err
9464 } && test -s conftest$ac_exeext &&
9465 $as_test_x conftest$ac_exeext; then
9466 ac_cv_lib_dld_shl_load=yes
9468 echo "$as_me: failed program was:" >&5
9469 sed 's/^/| /' conftest.$ac_ext >&5
9471 ac_cv_lib_dld_shl_load=no
9474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9475 conftest$ac_exeext conftest.$ac_ext
9476 LIBS=$ac_check_lib_save_LIBS
9478 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9479 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9480 if test $ac_cv_lib_dld_shl_load = yes; then
9481 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9483 { echo "$as_me:$LINENO: checking for dlopen" >&5
9484 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9485 if test "${ac_cv_func_dlopen+set}" = set; then
9486 echo $ECHO_N "(cached) $ECHO_C" >&6
9488 cat >conftest.$ac_ext <<_ACEOF
9491 cat confdefs.h >>conftest.$ac_ext
9492 cat >>conftest.$ac_ext <<_ACEOF
9493 /* end confdefs.h. */
9494 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9496 #define dlopen innocuous_dlopen
9498 /* System header to define __stub macros and hopefully few prototypes,
9499 which can conflict with char dlopen (); below.
9500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9501 <limits.h> exists even on freestanding compilers. */
9504 # include <limits.h>
9506 # include <assert.h>
9511 /* Override any GCC internal prototype to avoid an error.
9512 Use char because int might match the return type of a GCC
9513 builtin and then its argument prototype would still apply. */
9518 /* The GNU C library defines this for functions which it implements
9519 to always fail with ENOSYS. Some functions are actually named
9520 something starting with __ and the normal name is an alias. */
9521 #if defined __stub_dlopen || defined __stub___dlopen
9533 rm -f conftest.$ac_objext conftest$ac_exeext
9534 if { (ac_try="$ac_link"
9536 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9537 *) ac_try_echo
=$ac_try;;
9539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9540 (eval "$ac_link") 2>conftest.er1
9542 grep -v '^ *+' conftest.er1
>conftest.err
9544 cat conftest.err
>&5
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); } && {
9547 test -z "$ac_c_werror_flag" ||
9548 test ! -s conftest.err
9549 } && test -s conftest
$ac_exeext &&
9550 $as_test_x conftest
$ac_exeext; then
9551 ac_cv_func_dlopen
=yes
9553 echo "$as_me: failed program was:" >&5
9554 sed 's/^/| /' conftest.
$ac_ext >&5
9556 ac_cv_func_dlopen
=no
9559 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9560 conftest
$ac_exeext conftest.
$ac_ext
9562 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9563 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9564 if test $ac_cv_func_dlopen = yes; then
9565 lt_cv_dlopen
="dlopen"
9567 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9568 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9569 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9570 echo $ECHO_N "(cached) $ECHO_C" >&6
9572 ac_check_lib_save_LIBS
=$LIBS
9574 cat >conftest.
$ac_ext <<_ACEOF
9577 cat confdefs.h
>>conftest.
$ac_ext
9578 cat >>conftest.
$ac_ext <<_ACEOF
9579 /* end confdefs.h. */
9581 /* Override any GCC internal prototype to avoid an error.
9582 Use char because int might match the return type of a GCC
9583 builtin and then its argument prototype would still apply. */
9596 rm -f conftest.
$ac_objext conftest
$ac_exeext
9597 if { (ac_try
="$ac_link"
9599 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9600 *) ac_try_echo=$ac_try;;
9602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9603 (eval "$ac_link") 2>conftest.er1
9605 grep -v '^ *+' conftest.er1 >conftest.err
9607 cat conftest.err >&5
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); } && {
9610 test -z "$ac_c_werror_flag" ||
9611 test ! -s conftest.err
9612 } && test -s conftest$ac_exeext &&
9613 $as_test_x conftest$ac_exeext; then
9614 ac_cv_lib_dl_dlopen=yes
9616 echo "$as_me: failed program was:" >&5
9617 sed 's/^/| /' conftest.$ac_ext >&5
9619 ac_cv_lib_dl_dlopen=no
9622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9623 conftest$ac_exeext conftest.$ac_ext
9624 LIBS=$ac_check_lib_save_LIBS
9626 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9627 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9628 if test $ac_cv_lib_dl_dlopen = yes; then
9629 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9631 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9632 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9633 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9634 echo $ECHO_N "(cached) $ECHO_C" >&6
9636 ac_check_lib_save_LIBS=$LIBS
9638 cat >conftest.$ac_ext <<_ACEOF
9641 cat confdefs.h >>conftest.$ac_ext
9642 cat >>conftest.$ac_ext <<_ACEOF
9643 /* end confdefs.h. */
9645 /* Override any GCC internal prototype to avoid an error.
9646 Use char because int might match the return type of a GCC
9647 builtin and then its argument prototype would still apply. */
9660 rm -f conftest.$ac_objext conftest$ac_exeext
9661 if { (ac_try="$ac_link"
9663 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9664 *) ac_try_echo
=$ac_try;;
9666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9667 (eval "$ac_link") 2>conftest.er1
9669 grep -v '^ *+' conftest.er1
>conftest.err
9671 cat conftest.err
>&5
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); } && {
9674 test -z "$ac_c_werror_flag" ||
9675 test ! -s conftest.err
9676 } && test -s conftest
$ac_exeext &&
9677 $as_test_x conftest
$ac_exeext; then
9678 ac_cv_lib_svld_dlopen
=yes
9680 echo "$as_me: failed program was:" >&5
9681 sed 's/^/| /' conftest.
$ac_ext >&5
9683 ac_cv_lib_svld_dlopen
=no
9686 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9687 conftest
$ac_exeext conftest.
$ac_ext
9688 LIBS
=$ac_check_lib_save_LIBS
9690 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9691 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9692 if test $ac_cv_lib_svld_dlopen = yes; then
9693 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
9695 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9696 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9697 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9698 echo $ECHO_N "(cached) $ECHO_C" >&6
9700 ac_check_lib_save_LIBS
=$LIBS
9702 cat >conftest.
$ac_ext <<_ACEOF
9705 cat confdefs.h
>>conftest.
$ac_ext
9706 cat >>conftest.
$ac_ext <<_ACEOF
9707 /* end confdefs.h. */
9709 /* Override any GCC internal prototype to avoid an error.
9710 Use char because int might match the return type of a GCC
9711 builtin and then its argument prototype would still apply. */
9724 rm -f conftest.
$ac_objext conftest
$ac_exeext
9725 if { (ac_try
="$ac_link"
9727 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9728 *) ac_try_echo=$ac_try;;
9730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9731 (eval "$ac_link") 2>conftest.er1
9733 grep -v '^ *+' conftest.er1 >conftest.err
9735 cat conftest.err >&5
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); } && {
9738 test -z "$ac_c_werror_flag" ||
9739 test ! -s conftest.err
9740 } && test -s conftest$ac_exeext &&
9741 $as_test_x conftest$ac_exeext; then
9742 ac_cv_lib_dld_dld_link=yes
9744 echo "$as_me: failed program was:" >&5
9745 sed 's/^/| /' conftest.$ac_ext >&5
9747 ac_cv_lib_dld_dld_link=no
9750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9751 conftest$ac_exeext conftest.$ac_ext
9752 LIBS=$ac_check_lib_save_LIBS
9754 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9755 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9756 if test $ac_cv_lib_dld_dld_link = yes; then
9757 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9778 if test "x$lt_cv_dlopen" != xno; then
9784 case $lt_cv_dlopen in
9786 save_CPPFLAGS="$CPPFLAGS"
9787 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9789 save_LDFLAGS="$LDFLAGS"
9790 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9793 LIBS="$lt_cv_dlopen_libs $LIBS"
9795 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9796 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9797 if test "${lt_cv_dlopen_self+set}" = set; then
9798 echo $ECHO_N "(cached) $ECHO_C" >&6
9800 if test "$cross_compiling" = yes; then :
9801 lt_cv_dlopen_self=cross
9803 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9804 lt_status=$lt_dlunknown
9805 cat > conftest.$ac_ext <<EOF
9806 #line 9806 "configure"
9807 #include "confdefs.h"
9816 # define LT_DLGLOBAL RTLD_GLOBAL
9819 # define LT_DLGLOBAL DL_GLOBAL
9821 # define LT_DLGLOBAL 0
9825 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9826 find out it does not work in some platform. */
9827 #ifndef LT_DLLAZY_OR_NOW
9829 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9832 # define LT_DLLAZY_OR_NOW DL_LAZY
9835 # define LT_DLLAZY_OR_NOW RTLD_NOW
9838 # define LT_DLLAZY_OR_NOW DL_NOW
9840 # define LT_DLLAZY_OR_NOW 0
9848 extern "C" void exit (int);
9851 void fnord() { int i=42;}
9854 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9855 int status = $lt_dlunknown;
9859 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9860 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9861 /* dlclose (self); */
9869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9870 (eval $ac_link) 2>&5
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9874 (./conftest; exit; ) >&5 2>/dev/null
9877 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9878 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9879 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9882 # compilation failed
9883 lt_cv_dlopen_self=no
9890 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9891 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9893 if test "x$lt_cv_dlopen_self" = xyes; then
9894 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9895 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9896 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9897 if test "${lt_cv_dlopen_self_static+set}" = set; then
9898 echo $ECHO_N "(cached) $ECHO_C" >&6
9900 if test "$cross_compiling" = yes; then :
9901 lt_cv_dlopen_self_static=cross
9903 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9904 lt_status=$lt_dlunknown
9905 cat > conftest.$ac_ext <<EOF
9906 #line 9906 "configure"
9907 #include "confdefs.h"
9916 # define LT_DLGLOBAL RTLD_GLOBAL
9919 # define LT_DLGLOBAL DL_GLOBAL
9921 # define LT_DLGLOBAL 0
9925 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9926 find out it does not work in some platform. */
9927 #ifndef LT_DLLAZY_OR_NOW
9929 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9932 # define LT_DLLAZY_OR_NOW DL_LAZY
9935 # define LT_DLLAZY_OR_NOW RTLD_NOW
9938 # define LT_DLLAZY_OR_NOW DL_NOW
9940 # define LT_DLLAZY_OR_NOW 0
9948 extern "C" void exit (int);
9951 void fnord() { int i=42;}
9954 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9955 int status = $lt_dlunknown;
9959 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9960 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9961 /* dlclose (self); */
9969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9970 (eval $ac_link) 2>&5
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9974 (./conftest; exit; ) >&5 2>/dev/null
9977 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9978 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9979 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9982 # compilation failed
9983 lt_cv_dlopen_self_static=no
9990 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9991 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9994 CPPFLAGS="$save_CPPFLAGS"
9995 LDFLAGS="$save_LDFLAGS"
10000 case $lt_cv_dlopen_self in
10001 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10002 *) enable_dlopen_self=unknown ;;
10005 case $lt_cv_dlopen_self_static in
10006 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10007 *) enable_dlopen_self_static=unknown ;;
10012 # Report which library types will actually be built
10013 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10014 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10015 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10016 echo "${ECHO_T}$can_build_shared" >&6; }
10018 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10019 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10020 test "$can_build_shared" = "no" && enable_shared=no
10022 # On AIX, shared libraries and static libraries use the same namespace, and
10023 # are all built from PIC.
10026 test "$enable_shared" = yes && enable_static=no
10027 if test -n "$RANLIB"; then
10028 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10029 postinstall_cmds='$RANLIB $lib'
10034 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10035 test "$enable_shared" = yes && enable_static=no
10039 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10040 echo "${ECHO_T}$enable_shared" >&6; }
10042 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10043 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10044 # Make sure either enable_shared or enable_static is yes.
10045 test "$enable_shared" = yes || enable_static=yes
10046 { echo "$as_me:$LINENO: result: $enable_static" >&5
10047 echo "${ECHO_T}$enable_static" >&6; }
10049 # The else clause should only fire when bootstrapping the
10050 # libtool distribution, otherwise you forgot to ship ltmain.sh
10051 # with your package, and you will get complaints that there are
10052 # no rules to generate ltmain.sh.
10053 if test -f "$ltmain"; then
10054 # See if we are running on zsh, and set the options which allow our commands through
10055 # without removal of \ escapes.
10056 if test -n "${ZSH_VERSION+set}" ; then
10057 setopt NO_GLOB_SUBST
10059 # Now quote all the things that may contain metacharacters while being
10060 # careful not to overquote the AC_SUBSTed values. We take copies of the
10061 # variables and quote the copies for generation of the libtool script.
10062 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10064 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10065 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10066 deplibs_check_method reload_flag reload_cmds need_locks \
10067 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10068 lt_cv_sys_global_symbol_to_c_name_address \
10069 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10070 old_postinstall_cmds old_postuninstall_cmds \
10074 lt_prog_compiler_wl \
10075 lt_prog_compiler_pic \
10076 lt_prog_compiler_static \
10077 lt_prog_compiler_no_builtin_flag \
10078 export_dynamic_flag_spec \
10079 thread_safe_flag_spec \
10080 whole_archive_flag_spec \
10081 enable_shared_with_static_runtimes \
10083 old_archive_from_new_cmds \
10088 compiler_lib_search_path \
10090 archive_expsym_cmds \
10092 postuninstall_cmds \
10093 old_archive_from_expsyms_cmds \
10094 allow_undefined_flag \
10095 no_undefined_flag \
10096 export_symbols_cmds \
10097 hardcode_libdir_flag_spec \
10098 hardcode_libdir_flag_spec_ld \
10099 hardcode_libdir_separator \
10100 hardcode_automatic \
10102 module_expsym_cmds \
10103 lt_cv_prog_compiler_c_o \
10106 include_expsyms; do
10109 old_archive_cmds | \
10110 old_archive_from_new_cmds | \
10112 archive_expsym_cmds | \
10114 module_expsym_cmds | \
10115 old_archive_from_expsyms_cmds | \
10116 export_symbols_cmds | \
10117 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10118 postinstall_cmds | postuninstall_cmds | \
10119 old_postinstall_cmds | old_postuninstall_cmds | \
10120 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10121 # Double-quote double-evaled strings.
10122 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$double_quote_subst\" -e \"\
$sed_quote_subst\" -e \"\
$delay_variable_subst\"\
`\\\""
10125 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$sed_quote_subst\"\
`\\\""
10131 *'\$0 --fallback-echo"')
10132 lt_echo=`$echo "X$lt_echo" |
$Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10136 cfgfile="${ofile}T"
10137 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10139 { echo "$as_me:$LINENO: creating $ofile" >&5
10140 echo "$as_me: creating $ofile" >&6;}
10142 cat <<__EOF__ >> "$cfgfile"
10145 # `$echo "$cfgfile" |
sed 's%^.*/%%'` - Provide generalized library-building support services.
10146 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10147 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10149 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10150 # Free Software Foundation, Inc.
10152 # This file is part of GNU Libtool:
10153 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10155 # This program is free software; you can redistribute it and/or modify
10156 # it under the terms of the GNU General Public License as published by
10157 # the Free Software Foundation; either version 2 of the License, or
10158 # (at your option) any later version.
10160 # This program is distributed in the hope that it will be useful, but
10161 # WITHOUT ANY WARRANTY; without even the implied warranty of
10162 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10163 # General Public License for more details.
10165 # You should have received a copy of the GNU General Public License
10166 # along with this program; if not, write to the Free Software
10167 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10169 # As a special exception to the GNU General Public License, if you
10170 # distribute this file as part of a program that contains a
10171 # configuration script generated by Autoconf, you may include it under
10172 # the same distribution terms that you use for the rest of that program.
10174 # A sed program that does not truncate output.
10177 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10178 Xsed="$SED -e 1s/^X//"
10180 # The HP-UX ksh and POSIX shell print the target directory to stdout
10181 # if CDPATH is set.
10182 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10184 # The names of the tagged configurations supported by this script.
10187 # ### BEGIN LIBTOOL CONFIG
10189 # Libtool was configured on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
10191 # Shell to use when invoking shell scripts.
10194 # Whether or not to build shared libraries.
10195 build_libtool_libs=$enable_shared
10197 # Whether or not to build static libraries.
10198 build_old_libs=$enable_static
10200 # Whether or not to add -lc for building shared libraries.
10201 build_libtool_need_lc=$archive_cmds_need_lc
10203 # Whether or not to disallow shared libs when runtime libs are static
10204 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10206 # Whether or not to optimize for fast installation.
10207 fast_install=$enable_fast_install
10210 host_alias=$host_alias
10214 # The build system.
10215 build_alias=$build_alias
10219 # An echo program that does not interpret backslashes.
10224 AR_FLAGS=$lt_AR_FLAGS
10229 # LTCC compiler flags.
10230 LTCFLAGS=$lt_LTCFLAGS
10232 # A language-specific compiler.
10235 # Is the compiler the GNU C compiler?
10241 # The linker used to build libraries.
10244 # Whether we need hard or soft links.
10247 # A BSD-compatible nm program.
10250 # A symbol stripping program
10253 # Used to examine libraries when file_magic_cmd begins "file"
10254 MAGIC_CMD=$MAGIC_CMD
10256 # Used on cygwin: DLL creation program.
10259 # Used on cygwin: object dumper.
10262 # Used on cygwin: assembler.
10265 # The name of the directory that contains temporary libtool files.
10268 # How to create reloadable object files.
10269 reload_flag=$lt_reload_flag
10270 reload_cmds=$lt_reload_cmds
10272 # How to pass a linker flag through the compiler.
10273 wl=$lt_lt_prog_compiler_wl
10275 # Object file suffix (normally "o").
10276 objext="$ac_objext"
10278 # Old archive suffix (normally "a").
10281 # Shared library suffix (normally ".so").
10282 shrext_cmds='$shrext_cmds'
10284 # Executable file suffix (normally "").
10287 # Additional compiler flags for building library objects.
10288 pic_flag=$lt_lt_prog_compiler_pic
10291 # What is the maximum length of a command?
10292 max_cmd_len=$lt_cv_sys_max_cmd_len
10294 # Does compiler simultaneously support -c and -o options?
10295 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10297 # Must we lock files when doing compilation?
10298 need_locks=$lt_need_locks
10300 # Do we need the lib prefix for modules?
10301 need_lib_prefix=$need_lib_prefix
10303 # Do we need a version for libraries?
10304 need_version=$need_version
10306 # Whether dlopen is supported.
10307 dlopen_support=$enable_dlopen
10309 # Whether dlopen of programs is supported.
10310 dlopen_self=$enable_dlopen_self
10312 # Whether dlopen of statically linked programs is supported.
10313 dlopen_self_static=$enable_dlopen_self_static
10315 # Compiler flag to prevent dynamic linking.
10316 link_static_flag=$lt_lt_prog_compiler_static
10318 # Compiler flag to turn off builtin functions.
10319 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10321 # Compiler flag to allow reflexive dlopens.
10322 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10324 # Compiler flag to generate shared objects directly from archives.
10325 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10327 # Compiler flag to generate thread-safe objects.
10328 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10330 # Library versioning type.
10331 version_type=$version_type
10333 # Format of library name prefix.
10334 libname_spec=$lt_libname_spec
10336 # List of archive names. First name is the real one, the rest are links.
10337 # The last name is the one that the linker finds with -lNAME.
10338 library_names_spec=$lt_library_names_spec
10340 # The coded name of the library, if different from the real name.
10341 soname_spec=$lt_soname_spec
10343 # Commands used to build and install an old-style archive.
10345 old_archive_cmds=$lt_old_archive_cmds
10346 old_postinstall_cmds=$lt_old_postinstall_cmds
10347 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10349 # Create an old-style archive from a shared archive.
10350 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10352 # Create a temporary old-style archive to link instead of a shared archive.
10353 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10355 # Commands used to build and install a shared archive.
10356 archive_cmds=$lt_archive_cmds
10357 archive_expsym_cmds=$lt_archive_expsym_cmds
10358 postinstall_cmds=$lt_postinstall_cmds
10359 postuninstall_cmds=$lt_postuninstall_cmds
10361 # Commands used to build a loadable module (assumed same as above if empty)
10362 module_cmds=$lt_module_cmds
10363 module_expsym_cmds=$lt_module_expsym_cmds
10365 # Commands to strip libraries.
10366 old_striplib=$lt_old_striplib
10367 striplib=$lt_striplib
10369 # Dependencies to place before the objects being linked to create a
10371 predep_objects=$lt_predep_objects
10373 # Dependencies to place after the objects being linked to create a
10375 postdep_objects=$lt_postdep_objects
10377 # Dependencies to place before the objects being linked to create a
10379 predeps=$lt_predeps
10381 # Dependencies to place after the objects being linked to create a
10383 postdeps=$lt_postdeps
10385 # The library search path used internally by the compiler when linking
10386 # a shared library.
10387 compiler_lib_search_path=$lt_compiler_lib_search_path
10389 # Method to check whether dependent libraries are shared objects.
10390 deplibs_check_method=$lt_deplibs_check_method
10392 # Command to use when deplibs_check_method == file_magic.
10393 file_magic_cmd=$lt_file_magic_cmd
10395 # Flag that allows shared libraries with undefined symbols to be built.
10396 allow_undefined_flag=$lt_allow_undefined_flag
10398 # Flag that forces no undefined symbols.
10399 no_undefined_flag=$lt_no_undefined_flag
10401 # Commands used to finish a libtool library installation in a directory.
10402 finish_cmds=$lt_finish_cmds
10404 # Same as above, but a single script fragment to be evaled but not shown.
10405 finish_eval=$lt_finish_eval
10407 # Take the output of nm and produce a listing of raw symbols and C names.
10408 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10410 # Transform the output of nm in a proper C declaration
10411 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10413 # Transform the output of nm in a C name address pair
10414 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10416 # This is the shared library runtime path variable.
10417 runpath_var=$runpath_var
10419 # This is the shared library path variable.
10420 shlibpath_var=$shlibpath_var
10422 # Is shlibpath searched before the hard-coded library search path?
10423 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10425 # How to hardcode a shared library path into an executable.
10426 hardcode_action=$hardcode_action
10428 # Whether we should hardcode library paths into libraries.
10429 hardcode_into_libs=$hardcode_into_libs
10431 # Flag to hardcode \$libdir into a binary during linking.
10432 # This must work even if \$libdir does not exist.
10433 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10435 # If ld is used when linking, flag to hardcode \$libdir into
10436 # a binary during linking. This must work even if \$libdir does
10438 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10440 # Whether we need a single -rpath flag with a separated argument.
10441 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10443 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10444 # resulting binary.
10445 hardcode_direct=$hardcode_direct
10447 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10448 # resulting binary.
10449 hardcode_minus_L=$hardcode_minus_L
10451 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10452 # the resulting binary.
10453 hardcode_shlibpath_var=$hardcode_shlibpath_var
10455 # Set to yes if building a shared library automatically hardcodes DIR into the library
10456 # and all subsequent libraries and executables linked against it.
10457 hardcode_automatic=$hardcode_automatic
10459 # Variables whose values should be saved in libtool wrapper scripts and
10460 # restored at relink time.
10461 variables_saved_for_relink="$variables_saved_for_relink"
10463 # Whether libtool must link a program against all its dependency libraries.
10464 link_all_deplibs=$link_all_deplibs
10466 # Compile-time system search path for libraries
10467 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10469 # Run-time system search path for libraries
10470 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10472 # Fix the shell variable \$srcfile for the compiler.
10473 fix_srcfile_path=$lt_fix_srcfile_path
10475 # Set to yes if exported symbols are required.
10476 always_export_symbols=$always_export_symbols
10478 # The commands to list exported symbols.
10479 export_symbols_cmds=$lt_export_symbols_cmds
10481 # The commands to extract the exported symbol list from a shared archive.
10482 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10484 # Symbols that should not be listed in the preloaded symbols.
10485 exclude_expsyms=$lt_exclude_expsyms
10487 # Symbols that must always be exported.
10488 include_expsyms=$lt_include_expsyms
10490 # ### END LIBTOOL CONFIG
10497 cat <<\EOF >> "$cfgfile"
10499 # AIX sometimes has problems with the GCC collect2 program. For some
10500 # reason, if we set the COLLECT_NAMES environment variable, the problems
10501 # vanish in a puff of smoke.
10502 if test "X${COLLECT_NAMES+set}" != Xset; then
10504 export COLLECT_NAMES
10510 # We use sed instead of cat because bash on DJGPP gets confused if
10511 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10512 # text mode, it properly converts lines to CR/LF. This bash problem
10513 # is reportedly fixed, but why not run on old versions too?
10514 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10516 mv -f "$cfgfile" "$ofile" || \
10517 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10521 # If there is no Makefile yet, we rely on a make rule to execute
10522 # `config.status
--recheck' to rerun these tests and create the
10523 # libtool script then.
10524 ltmain_in=`echo $ltmain | sed -e 's
/\.sh$
/.in
/'`
10525 if test -f "$ltmain_in"; then
10526 test -f Makefile && make "$ltmain"
10532 ac_cpp='$CXXCPP $CPPFLAGS'
10533 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
10534 ac_link='$CXX -o conftest
$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
10535 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10540 # Check whether --with-tags was given.
10541 if test "${with_tags+set}" = set; then
10542 withval=$with_tags; tagnames="$withval"
10546 if test -f "$ltmain" && test -n "$tagnames"; then
10547 if test ! -f "${ofile}"; then
10548 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist
" >&5
10549 echo "$as_me: WARNING
: output
file \
`$ofile' does not exist" >&2;}
10552 if test -z "$LTCC"; then
10553 eval "`$SHELL ${ofile} --config |
grep '^LTCC='`"
10554 if test -z "$LTCC"; then
10555 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10556 echo "$as_me: WARNING: output file \`$ofile' does not
look like a libtool
script" >&2;}
10558 { echo "$as_me:$LINENO: WARNING
: using \
`LTCC=$LTCC', extracted from \`$ofile'" >&5
10559 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \
`$ofile'" >&2;}
10562 if test -z "$LTCFLAGS"; then
10563 eval "`$SHELL ${ofile} --config |
grep '^LTCFLAGS='`"
10566 # Extract list of available tagged configurations in $ofile.
10567 # Note that this assumes the entire list is on one line.
10568 available_tags=`grep "^available_tags=" "${ofile}" |
$SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10570 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10571 for tagname in $tagnames; do
10573 # Check whether tagname contains only valid characters
10574 case `$echo "X$tagname" |
$Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10576 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10577 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10578 { (exit 1); exit 1; }; }
10582 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10584 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10585 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10586 { (exit 1); exit 1; }; }
10589 # Update the list of available tags.
10590 if test -n "$tagname"; then
10591 echo appending configuration tag \"$tagname\" to $ofile
10595 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10596 ( (test "X$CXX" = "Xg++" && `g
++ -v >/dev
/null
2>&1` ) ||
10597 (test "X$CXX" != "Xg++"))) ; then
10599 ac_cpp='$CXXCPP $CPPFLAGS'
10600 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10601 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10602 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10607 archive_cmds_need_lc_CXX=no
10608 allow_undefined_flag_CXX=
10609 always_export_symbols_CXX=no
10610 archive_expsym_cmds_CXX=
10611 export_dynamic_flag_spec_CXX=
10612 hardcode_direct_CXX=no
10613 hardcode_libdir_flag_spec_CXX=
10614 hardcode_libdir_flag_spec_ld_CXX=
10615 hardcode_libdir_separator_CXX=
10616 hardcode_minus_L_CXX=no
10617 hardcode_shlibpath_var_CXX=unsupported
10618 hardcode_automatic_CXX=no
10620 module_expsym_cmds_CXX=
10621 link_all_deplibs_CXX=unknown
10622 old_archive_cmds_CXX=$old_archive_cmds
10623 no_undefined_flag_CXX=
10624 whole_archive_flag_spec_CXX=
10625 enable_shared_with_static_runtimes_CXX=no
10627 # Dependencies to place before and after the object being linked:
10628 predep_objects_CXX=
10629 postdep_objects_CXX=
10632 compiler_lib_search_path_CXX=
10634 # Source file extension for C++ test sources.
10637 # Object file extension for compiled C++ test sources.
10641 # Code to be used in simple compile tests
10642 lt_simple_compile_test_code="int some_variable = 0;"
10644 # Code to be used in simple link tests
10645 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10647 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10649 # If no C compiler was specified, use CC.
10652 # If no C compiler flags were specified, use CFLAGS.
10653 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10655 # Allow CC to be a program name with arguments.
10659 # save warnings/boilerplate of simple test code
10660 ac_outfile=conftest.$ac_objext
10661 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10662 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10663 _lt_compiler_boilerplate=`cat conftest.err
`
10666 ac_outfile=conftest.$ac_objext
10667 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10668 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10669 _lt_linker_boilerplate=`cat conftest.err
`
10673 # Allow CC to be a program name with arguments.
10678 lt_save_with_gnu_ld=$with_gnu_ld
10679 lt_save_path_LD=$lt_cv_path_LD
10680 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10681 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10683 $as_unset lt_cv_prog_gnu_ld
10685 if test -n "${lt_cv_path_LDCXX+set}"; then
10686 lt_cv_path_LD=$lt_cv_path_LDCXX
10688 $as_unset lt_cv_path_LD
10690 test -z "${LDCXX+set}" || LD=$LDCXX
10694 for cc_temp in $compiler""; do
10696 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10697 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10702 cc_basename=`$echo "X$cc_temp" |
$Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10705 # We don't want -fno-exception wen compiling C++ code, so set the
10706 # no_builtin_flag separately
10707 if test "$GXX" = yes; then
10708 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10710 lt_prog_compiler_no_builtin_flag_CXX=
10713 if test "$GXX" = yes; then
10714 # Set up default GNU C++ configuration
10717 # Check whether --with-gnu-ld was given.
10718 if test "${with_gnu_ld+set}" = set; then
10719 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10725 if test "$GCC" = yes; then
10726 # Check if gcc -print-prog-name=ld gives a path.
10727 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10728 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10731 # gcc leaves a trailing carriage return which upsets mingw
10732 ac_prog=`($CC -print-prog-name=ld
) 2>&5 |
tr -d '\015'` ;;
10734 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
10737 # Accept absolute paths.
10739 re_direlt='/[^/][^/]*/\.\./'
10740 # Canonicalize the pathname of ld
10741 ac_prog=`echo $ac_prog|
$SED 's%\\\\%/%g'`
10742 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10743 ac_prog=`echo $ac_prog|
$SED "s%$re_direlt%/%"`
10745 test -z "$LD" && LD="$ac_prog"
10748 # If it fails, then pretend we aren't using GCC.
10752 # If it is relative, then search for the first ld in PATH.
10753 with_gnu_ld=unknown
10756 elif test "$with_gnu_ld" = yes; then
10757 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10758 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10760 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10761 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10763 if test "${lt_cv_path_LD+set}" = set; then
10764 echo $ECHO_N "(cached) $ECHO_C" >&6
10766 if test -z "$LD"; then
10767 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10768 for ac_dir in $PATH; do
10770 test -z "$ac_dir" && ac_dir=.
10771 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10772 lt_cv_path_LD="$ac_dir/$ac_prog"
10773 # Check to see if the program is GNU ld. I'd rather use --version,
10774 # but apparently some variants of GNU ld only accept -v.
10775 # Break only if it was the GNU/non-GNU ld that we prefer.
10776 case `"$lt_cv_path_LD" -v 2>&1 </dev
/null
` in
10777 *GNU* | *'with BFD'*)
10778 test "$with_gnu_ld" != no && break
10781 test "$with_gnu_ld" != yes && break
10788 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10792 LD="$lt_cv_path_LD"
10793 if test -n "$LD"; then
10794 { echo "$as_me:$LINENO: result: $LD" >&5
10795 echo "${ECHO_T}$LD" >&6; }
10797 { echo "$as_me:$LINENO: result: no" >&5
10798 echo "${ECHO_T}no" >&6; }
10800 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10801 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10802 { (exit 1); exit 1; }; }
10803 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10804 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10805 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10806 echo $ECHO_N "(cached) $ECHO_C" >&6
10808 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10809 case `$LD -v 2>&1 </dev
/null
` in
10810 *GNU* | *'with BFD'*)
10811 lt_cv_prog_gnu_ld=yes
10814 lt_cv_prog_gnu_ld=no
10818 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10819 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10820 with_gnu_ld=$lt_cv_prog_gnu_ld
10824 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10825 # archiving commands below assume that GNU ld is being used.
10826 if test "$with_gnu_ld" = yes; then
10827 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10828 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'
10830 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10831 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10833 # If archive_cmds runs LD, not CC, wlarc should be empty
10834 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10835 # investigate it a little bit more. (MM)
10838 # ancient GNU ld didn't support --whole-archive et. al.
10839 if eval "`$CC -print-prog-name=ld
` --help 2>&1" | \
10840 grep 'no-whole-archive' > /dev/null; then
10841 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10843 whole_archive_flag_spec_CXX=
10849 # A generic and very simple default shared library creation
10850 # command for GNU C++ for the case where it uses the native
10851 # linker, instead of GNU ld. If possible, this setting should
10852 # overridden to take advantage of the native linker features on
10853 # the platform it is being used on.
10854 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10857 # Commands to make compiler produce verbose output that lists
10858 # what "hidden" libraries, object files and flags are used when
10859 # linking a shared library.
10860 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10868 # PORTME: fill in a description of your system's C++ link characteristics
10869 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10870 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10874 # FIXME: insert proper C++ library support
10878 if test "$host_cpu" = ia64; then
10879 # On IA64, the linker does run time linking by default, so we don't
10880 # have to do anything special.
10881 aix_use_runtimelinking=no
10882 exp_sym_flag='-Bexport'
10885 aix_use_runtimelinking=no
10887 # Test if we are trying to use run time linking or normal
10888 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10889 # need to do runtime linking.
10890 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10891 for ld_flag in $LDFLAGS; do
10894 aix_use_runtimelinking=yes
10902 exp_sym_flag='-bexport'
10903 no_entry_flag='-bnoentry'
10906 # When large executables or shared objects are built, AIX ld can
10907 # have problems creating the table of contents. If linking a library
10908 # or program results in "error TOC overflow" add -mminimal-toc to
10909 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10910 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10912 archive_cmds_CXX=''
10913 hardcode_direct_CXX=yes
10914 hardcode_libdir_separator_CXX=':'
10915 link_all_deplibs_CXX=yes
10917 if test "$GXX" = yes; then
10918 case $host_os in aix4.[012]|aix4.[012].*)
10919 # We only want to do this on AIX 4.2 and lower, the check
10920 # below for broken collect2 doesn't work under 4.3+
10921 collect2name=`${CC} -print-prog-name=collect2
`
10922 if test -f "$collect2name" && \
10923 strings "$collect2name" | grep resolve_lib_name >/dev/null
10925 # We have reworked collect2
10928 # We have old collect2
10929 hardcode_direct_CXX=unsupported
10930 # It fails to find uninstalled libraries when the uninstalled
10931 # path is not listed in the libpath. Setting hardcode_minus_L
10932 # to unsupported forces relinking
10933 hardcode_minus_L_CXX=yes
10934 hardcode_libdir_flag_spec_CXX='-L$libdir'
10935 hardcode_libdir_separator_CXX=
10939 shared_flag='-shared'
10940 if test "$aix_use_runtimelinking" = yes; then
10941 shared_flag="$shared_flag "'${wl}-G'
10945 if test "$host_cpu" = ia64; then
10946 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10947 # chokes on -Wl,-G. The following line is correct:
10950 if test "$aix_use_runtimelinking" = yes; then
10951 shared_flag='${wl}-G'
10953 shared_flag='${wl}-bM:SRE'
10958 # It seems that -bexpall does not export symbols beginning with
10959 # underscore (_), so it is better to generate a list of symbols to export.
10960 always_export_symbols_CXX=yes
10961 if test "$aix_use_runtimelinking" = yes; then
10962 # Warning - without using the other runtime loading flags (-brtl),
10963 # -berok will link without error, but may produce a broken library.
10964 allow_undefined_flag_CXX='-berok'
10965 # Determine the default libpath from the value encoded in an empty executable.
10966 cat >conftest.$ac_ext <<_ACEOF
10969 cat confdefs.h >>conftest.$ac_ext
10970 cat >>conftest.$ac_ext <<_ACEOF
10971 /* end confdefs.h. */
10981 rm -f conftest.$ac_objext conftest$ac_exeext
10982 if { (ac_try="$ac_link"
10983 case "(($ac_try" in
10984 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10985 *) ac_try_echo
=$ac_try;;
10987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10988 (eval "$ac_link") 2>conftest.er1
10990 grep -v '^ *+' conftest.er1
>conftest.err
10992 cat conftest.err
>&5
10993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994 (exit $ac_status); } && {
10995 test -z "$ac_cxx_werror_flag" ||
10996 test ! -s conftest.err
10997 } && test -s conftest
$ac_exeext &&
10998 $as_test_x conftest
$ac_exeext; then
11000 lt_aix_libpath_sed
='
11001 /Import File Strings/,/^$/ {
11007 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11008 # Check for a 64-bit object if we didn't find anything.
11009 if test -z "$aix_libpath"; then
11010 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11013 echo "$as_me: failed program was:" >&5
11014 sed 's/^/| /' conftest.
$ac_ext >&5
11019 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11020 conftest
$ac_exeext conftest.
$ac_ext
11021 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
11023 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
11025 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"
11027 if test "$host_cpu" = ia64
; then
11028 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
11029 allow_undefined_flag_CXX
="-z nodefs"
11030 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"
11032 # Determine the default libpath from the value encoded in an empty executable.
11033 cat >conftest.
$ac_ext <<_ACEOF
11036 cat confdefs.h
>>conftest.
$ac_ext
11037 cat >>conftest.
$ac_ext <<_ACEOF
11038 /* end confdefs.h. */
11048 rm -f conftest.
$ac_objext conftest
$ac_exeext
11049 if { (ac_try
="$ac_link"
11050 case "(($ac_try" in
11051 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11052 *) ac_try_echo=$ac_try;;
11054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11055 (eval "$ac_link") 2>conftest.er1
11057 grep -v '^ *+' conftest.er1 >conftest.err
11059 cat conftest.err >&5
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); } && {
11062 test -z "$ac_cxx_werror_flag" ||
11063 test ! -s conftest.err
11064 } && test -s conftest$ac_exeext &&
11065 $as_test_x conftest$ac_exeext; then
11067 lt_aix_libpath_sed='
11068 /Import File Strings/,/^$/ {
11074 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
11075 # Check for a 64-bit object if we didn't find anything.
11076 if test -z "$aix_libpath"; then
11077 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
11080 echo "$as_me: failed program was:" >&5
11081 sed 's/^/| /' conftest.$ac_ext >&5
11086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11087 conftest$ac_exeext conftest.$ac_ext
11088 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11090 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11091 # Warning - without using the other run time loading flags,
11092 # -berok will link without error, but may produce a broken library.
11093 no_undefined_flag_CXX=' ${wl}-bernotok'
11094 allow_undefined_flag_CXX=' ${wl}-berok'
11095 # Exported symbols can be pulled into shared objects from archives
11096 whole_archive_flag_spec_CXX='$convenience'
11097 archive_cmds_need_lc_CXX=yes
11098 # This is similar to how AIX traditionally builds its shared libraries.
11099 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'
11105 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11106 allow_undefined_flag_CXX=unsupported
11107 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11108 # support --undefined. This deserves some investigation. FIXME
11109 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11116 case $cc_basename in
11118 # FIXME: insert proper C++ library support
11124 cygwin* | mingw* | pw32*)
11125 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11126 # as there is no search path for DLLs.
11127 hardcode_libdir_flag_spec_CXX='-L$libdir'
11128 allow_undefined_flag_CXX=unsupported
11129 always_export_symbols_CXX=no
11130 enable_shared_with_static_runtimes_CXX=yes
11132 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11133 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'
11134 # If the export-symbols file already is a .def file (1st line
11135 # is EXPORTS), use it as is; otherwise, prepend...
11136 archive_expsym_cmds_CXX='if test "x`$SED 1q
$export_symbols`" = xEXPORTS; then
11137 cp $export_symbols $output_objdir/$soname.def;
11139 echo EXPORTS > $output_objdir/$soname.def;
11140 cat $export_symbols >> $output_objdir/$soname.def;
11142 $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'
11147 darwin* | rhapsody*)
11149 rhapsody* | darwin1.[012])
11150 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11153 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11154 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11156 case ${MACOSX_DEPLOYMENT_TARGET} in
11158 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11161 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11167 archive_cmds_need_lc_CXX=no
11168 hardcode_direct_CXX=no
11169 hardcode_automatic_CXX=yes
11170 hardcode_shlibpath_var_CXX=unsupported
11171 whole_archive_flag_spec_CXX=''
11172 link_all_deplibs_CXX=yes
11174 if test "$GXX" = yes ; then
11175 lt_int_apple_cc_single_mod=no
11176 output_verbose_link_cmd='echo'
11177 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11178 lt_int_apple_cc_single_mod=yes
11180 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11181 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11183 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'
11185 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11186 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11187 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11188 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}'
11190 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}'
11192 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}'
11194 case $cc_basename in
11196 output_verbose_link_cmd='echo'
11197 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'
11198 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11199 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11200 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}'
11201 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}'
11211 case $cc_basename in
11213 # FIXME: insert proper C++ library support
11217 # Green Hills C++ Compiler
11218 # FIXME: insert proper C++ library support
11222 # FIXME: insert proper C++ library support
11228 # C++ shared libraries reported to be fairly broken before switch to ELF
11232 archive_cmds_need_lc_CXX=no
11234 freebsd* | dragonfly*)
11235 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11242 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11243 hardcode_libdir_separator_CXX=:
11244 export_dynamic_flag_spec_CXX='${wl}-E'
11245 hardcode_direct_CXX=yes
11246 hardcode_minus_L_CXX=yes # Not in the search PATH,
11247 # but as the default
11248 # location of the library.
11250 case $cc_basename in
11252 # FIXME: insert proper C++ library support
11256 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'
11257 # Commands to make compiler produce verbose output that lists
11258 # what "hidden" libraries, object files and flags are used when
11259 # linking a shared library.
11261 # There doesn't appear to be a way to prevent this compiler from
11262 # explicitly linking system object files so we need to strip them
11263 # from the output so that they don't get included in the library
11265 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'
11268 if test "$GXX" = yes; then
11269 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'
11271 # FIXME: insert proper C++ library support
11278 if test $with_gnu_ld = no; then
11279 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11280 hardcode_libdir_separator_CXX=:
11285 export_dynamic_flag_spec_CXX='${wl}-E'
11291 hardcode_direct_CXX=no
11292 hardcode_shlibpath_var_CXX=no
11295 hardcode_direct_CXX=yes
11296 hardcode_minus_L_CXX=yes # Not in the search PATH,
11297 # but as the default
11298 # location of the library.
11302 case $cc_basename in
11304 # FIXME: insert proper C++ library support
11310 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11313 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11316 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11319 # Commands to make compiler produce verbose output that lists
11320 # what "hidden" libraries, object files and flags are used when
11321 # linking a shared library.
11323 # There doesn't appear to be a way to prevent this compiler from
11324 # explicitly linking system object files so we need to strip them
11325 # from the output so that they don't get included in the library
11327 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'
11330 if test "$GXX" = yes; then
11331 if test $with_gnu_ld = no; then
11334 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11337 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11340 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'
11345 # FIXME: insert proper C++ library support
11352 hardcode_direct_CXX=no
11353 hardcode_shlibpath_var_CXX=no
11354 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11355 export_dynamic_flag_spec_CXX='${wl}-E'
11356 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11357 # Instead, shared libraries are loaded at an image base (0x10000000 by
11358 # default) and relocated if they conflict, which is a slow very memory
11359 # consuming and fragmenting process. To avoid this, we pick a random,
11360 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11361 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11362 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'
11363 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'
11366 case $cc_basename in
11369 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'
11371 # Archives containing C++ object files must be created using
11372 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11373 # necessary to make sure instantiated templates are included
11375 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11378 if test "$GXX" = yes; then
11379 if test "$with_gnu_ld" = no; then
11380 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'
11382 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'
11385 link_all_deplibs_CXX=yes
11388 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11389 hardcode_libdir_separator_CXX=:
11391 linux* | k*bsd*-gnu)
11392 case $cc_basename in
11394 # Kuck and Associates, Inc. (KAI) C++ Compiler
11396 # KCC will only create a shared library if the output file
11397 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11398 # to its proper name (with version) after linking.
11399 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'
11400 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'
11401 # Commands to make compiler produce verbose output that lists
11402 # what "hidden" libraries, object files and flags are used when
11403 # linking a shared library.
11405 # There doesn't appear to be a way to prevent this compiler from
11406 # explicitly linking system object files so we need to strip them
11407 # from the output so that they don't get included in the library
11409 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'
11411 hardcode_libdir_flag_spec_CXX
='${wl}--rpath,$libdir'
11412 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11414 # Archives containing C++ object files must be created using
11415 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11416 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
11421 # version 8.0 and above of icpc choke on multiply defined symbols
11422 # if we add $predep_objects and $postdep_objects, however 7.1 and
11423 # earlier do not add the objects themselves.
11424 case `$CC -V 2>&1` in
11426 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11427 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'
11429 *) # Version 8.0 or newer
11432 ia64
*) tmp_idyn
=' -i_dynamic';;
11434 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11435 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'
11438 archive_cmds_need_lc_CXX
=no
11439 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11440 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11441 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11444 # Portland Group C++ compiler
11445 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11446 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'
11448 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
11449 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11450 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'
11454 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11455 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'
11457 runpath_var
=LD_RUN_PATH
11458 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
11459 hardcode_libdir_separator_CXX
=:
11461 # Commands to make compiler produce verbose output that lists
11462 # what "hidden" libraries, object files and flags are used when
11463 # linking a shared library.
11465 # There doesn't appear to be a way to prevent this compiler from
11466 # explicitly linking system object files so we need to strip them
11467 # from the output so that they don't get included in the library
11469 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'
11472 case `$CC -V 2>&1 | sed 5q` in
11475 no_undefined_flag_CXX
=' -zdefs'
11476 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11477 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'
11478 hardcode_libdir_flag_spec_CXX
='-R$libdir'
11479 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'
11481 # Not sure whether something based on
11482 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11484 output_verbose_link_cmd
='echo'
11486 # Archives containing C++ object files must be created using
11487 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11488 # necessary to make sure instantiated templates are included
11490 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
11497 # FIXME: insert proper C++ library support
11501 # FIXME: insert proper C++ library support
11505 case $cc_basename in
11507 # FIXME: insert proper C++ library support
11511 # FIXME: insert proper C++ library support
11517 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
11518 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11520 hardcode_libdir_flag_spec_CXX
='-R$libdir'
11521 hardcode_direct_CXX
=yes
11522 hardcode_shlibpath_var_CXX
=no
11524 # Workaround some broken pre-1.5 toolchains
11525 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11528 # C++ shared libraries are fairly broken
11532 if test -f /usr
/libexec
/ld.so
; then
11533 hardcode_direct_CXX
=yes
11534 hardcode_shlibpath_var_CXX
=no
11535 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11536 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11537 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11538 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11539 export_dynamic_flag_spec_CXX
='${wl}-E'
11540 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11542 output_verbose_link_cmd
='echo'
11548 case $cc_basename in
11550 # Kuck and Associates, Inc. (KAI) C++ Compiler
11552 # KCC will only create a shared library if the output file
11553 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11554 # to its proper name (with version) after linking.
11555 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'
11557 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11558 hardcode_libdir_separator_CXX
=:
11560 # Archives containing C++ object files must be created using
11561 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11562 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
11566 # Rational C++ 2.4.1
11567 # FIXME: insert proper C++ library support
11571 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
11572 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'
11574 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
11575 hardcode_libdir_separator_CXX
=:
11577 # Commands to make compiler produce verbose output that lists
11578 # what "hidden" libraries, object files and flags are used when
11579 # linking a shared library.
11581 # There doesn't appear to be a way to prevent this compiler from
11582 # explicitly linking system object files so we need to strip them
11583 # from the output so that they don't get included in the library
11585 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'
11588 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
11589 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
11590 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'
11592 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
11593 hardcode_libdir_separator_CXX
=:
11595 # Commands to make compiler produce verbose output that lists
11596 # what "hidden" libraries, object files and flags are used when
11597 # linking a shared library.
11598 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11601 # FIXME: insert proper C++ library support
11608 case $cc_basename in
11610 # Kuck and Associates, Inc. (KAI) C++ Compiler
11612 # KCC will only create a shared library if the output file
11613 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11614 # to its proper name (with version) after linking.
11615 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'
11617 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11618 hardcode_libdir_separator_CXX
=:
11620 # Archives containing C++ object files must be created using
11621 # the KAI C++ compiler.
11622 old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs'
11625 # Rational C++ 2.4.1
11626 # FIXME: insert proper C++ library support
11630 allow_undefined_flag_CXX
=' -expect_unresolved \*'
11631 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'
11632 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11633 echo "-hidden">> $lib.exp~
11634 $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~
11637 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
11638 hardcode_libdir_separator_CXX
=:
11640 # Commands to make compiler produce verbose output that lists
11641 # what "hidden" libraries, object files and flags are used when
11642 # linking a shared library.
11644 # There doesn't appear to be a way to prevent this compiler from
11645 # explicitly linking system object files so we need to strip them
11646 # from the output so that they don't get included in the library
11648 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'
11651 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
11652 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
11653 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'
11655 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
11656 hardcode_libdir_separator_CXX
=:
11658 # Commands to make compiler produce verbose output that lists
11659 # what "hidden" libraries, object files and flags are used when
11660 # linking a shared library.
11661 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11664 # FIXME: insert proper C++ library support
11671 # FIXME: insert proper C++ library support
11675 case $cc_basename in
11678 # FIXME: insert proper C++ library support
11683 # FIXME: insert proper C++ library support
11687 # FIXME: insert proper C++ library support
11693 case $cc_basename in
11695 # Sun C++ 4.2, 5.x and Centerline C++
11696 archive_cmds_need_lc_CXX
=yes
11697 no_undefined_flag_CXX
=' -zdefs'
11698 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11699 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11700 $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'
11702 hardcode_libdir_flag_spec_CXX
='-R$libdir'
11703 hardcode_shlibpath_var_CXX
=no
11705 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
11707 # The compiler driver will combine and reorder linker options,
11708 # but understands `-z linker_flag'.
11709 # Supported since Solaris 2.6 (maybe 2.5.1?)
11710 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
11713 link_all_deplibs_CXX
=yes
11715 output_verbose_link_cmd
='echo'
11717 # Archives containing C++ object files must be created using
11718 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11719 # necessary to make sure instantiated templates are included
11721 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
11724 # Green Hills C++ Compiler
11725 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11727 # The C++ compiler must be used to create the archive.
11728 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11731 # GNU C++ compiler with Solaris linker
11732 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
11733 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
11734 if $CC --version |
grep -v '^2\.7' > /dev
/null
; then
11735 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11736 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11737 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11739 # Commands to make compiler produce verbose output that lists
11740 # what "hidden" libraries, object files and flags are used when
11741 # linking a shared library.
11742 output_verbose_link_cmd
="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11744 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11746 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11747 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11748 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11750 # Commands to make compiler produce verbose output that lists
11751 # what "hidden" libraries, object files and flags are used when
11752 # linking a shared library.
11753 output_verbose_link_cmd
="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11756 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
11758 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
11760 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11767 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
11768 no_undefined_flag_CXX
='${wl}-z,text'
11769 archive_cmds_need_lc_CXX
=no
11770 hardcode_shlibpath_var_CXX
=no
11771 runpath_var
='LD_RUN_PATH'
11773 case $cc_basename in
11775 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11776 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11779 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11780 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11784 sysv5
* | sco3.2v5
* | sco5v6
*)
11785 # Note: We can NOT use -z defs as we might desire, because we do not
11786 # link with -lc, and that would cause any symbols used from libc to
11787 # always be unresolved, which means just about no library would
11788 # ever link correctly. If we're not using GNU ld we use -z text
11789 # though, which does catch some bad symbols but isn't as heavy-handed
11791 # For security reasons, it is highly recommended that you always
11792 # use absolute paths for naming shared libraries, and exclude the
11793 # DT_RUNPATH tag from executables and libraries. But doing so
11794 # requires that you compile everything twice, which is a pain.
11795 # So that behaviour is only enabled if SCOABSPATH is set to a
11796 # non-empty value in the environment. Most likely only useful for
11797 # creating official distributions of packages.
11798 # This is a hack until libtool officially supports absolute path
11799 # names for shared libraries.
11800 no_undefined_flag_CXX
='${wl}-z,text'
11801 allow_undefined_flag_CXX
='${wl}-z,nodefs'
11802 archive_cmds_need_lc_CXX
=no
11803 hardcode_shlibpath_var_CXX
=no
11804 hardcode_libdir_flag_spec_CXX
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11805 hardcode_libdir_separator_CXX
=':'
11806 link_all_deplibs_CXX
=yes
11807 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
11808 runpath_var
='LD_RUN_PATH'
11810 case $cc_basename in
11812 archive_cmds_CXX
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11813 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11816 archive_cmds_CXX
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11817 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11822 case $cc_basename in
11824 # NonStop-UX NCC 3.20
11825 # FIXME: insert proper C++ library support
11829 # FIXME: insert proper C++ library support
11835 # FIXME: insert proper C++ library support
11839 # FIXME: insert proper C++ library support
11843 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11844 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11845 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
11851 cat > conftest.
$ac_ext <<EOF
11855 Foo (void) { a = 0; }
11861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11862 (eval $ac_compile) 2>&5
11864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865 (exit $ac_status); }; then
11866 # Parse the compiler output and extract the necessary
11867 # objects, libraries and library flags.
11869 # Sentinel used to keep track of whether or not we are before
11870 # the conftest object file.
11871 pre_test_object_deps_done
=no
11873 # The `*' in the case matches for architectures that use `case' in
11874 # $output_verbose_cmd can trigger glob expansion during the loop
11875 # eval without this substitution.
11876 output_verbose_link_cmd
=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11878 for p
in `eval $output_verbose_link_cmd`; do
11882 # Some compilers place space between "-{L,R}" and the path.
11883 # Remove the space.
11884 if test $p = "-L" \
11885 ||
test $p = "-R"; then
11892 if test "$pre_test_object_deps_done" = no
; then
11895 # Internal compiler library paths should come after those
11896 # provided the user. The postdeps already come after the
11897 # user supplied libs so there is no need to process them.
11898 if test -z "$compiler_lib_search_path_CXX"; then
11899 compiler_lib_search_path_CXX
="${prev}${p}"
11901 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
11904 # The "-l" case would never come before the object being
11905 # linked, so don't bother handling this case.
11908 if test -z "$postdeps_CXX"; then
11909 postdeps_CXX
="${prev}${p}"
11911 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
11917 # This assumes that the test object file only shows up
11918 # once in the compiler output.
11919 if test "$p" = "conftest.$objext"; then
11920 pre_test_object_deps_done
=yes
11924 if test "$pre_test_object_deps_done" = no
; then
11925 if test -z "$predep_objects_CXX"; then
11926 predep_objects_CXX
="$p"
11928 predep_objects_CXX
="$predep_objects_CXX $p"
11931 if test -z "$postdep_objects_CXX"; then
11932 postdep_objects_CXX
="$p"
11934 postdep_objects_CXX
="$postdep_objects_CXX $p"
11939 *) ;; # Ignore the rest.
11947 echo "libtool.m4: error: problem compiling CXX test program"
11950 $rm -f confest.
$objext
11952 # PORTME: override above test on systems where it is broken
11955 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11956 # hack all around it, let's just trust "g++" to DTRT.
11957 predep_objects_CXX
=
11958 postdep_objects_CXX
=
11963 case `$CC -V 2>&1 | sed 5q` in
11967 # The more standards-conforming stlport4 library is
11968 # incompatible with the Cstd library. Avoid specifying
11969 # it if it's in CXXFLAGS. Ignore libCrun as
11970 # -library=stlport4 depends on it.
11971 case " $CXX $CXXFLAGS " in
11972 *" -library=stlport4 "*)
11973 solaris_use_stlport4
=yes
11976 if test "$solaris_use_stlport4" != yes; then
11977 postdeps_CXX
='-library=Cstd -library=Crun'
11984 case $cc_basename in
11986 # The more standards-conforming stlport4 library is
11987 # incompatible with the Cstd library. Avoid specifying
11988 # it if it's in CXXFLAGS. Ignore libCrun as
11989 # -library=stlport4 depends on it.
11990 case " $CXX $CXXFLAGS " in
11991 *" -library=stlport4 "*)
11992 solaris_use_stlport4
=yes
11996 # Adding this requires a known-good setup of shared libraries for
11997 # Sun compiler versions before 5.6, else PIC objects from an old
11998 # archive will be linked into the output, leading to subtle bugs.
11999 if test "$solaris_use_stlport4" != yes; then
12000 postdeps_CXX
='-library=Cstd -library=Crun'
12008 case " $postdeps_CXX " in
12009 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
12012 lt_prog_compiler_wl_CXX
=
12013 lt_prog_compiler_pic_CXX
=
12014 lt_prog_compiler_static_CXX
=
12016 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12017 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12019 # C++ specific cases for pic, static, wl, etc.
12020 if test "$GXX" = yes; then
12021 lt_prog_compiler_wl_CXX
='-Wl,'
12022 lt_prog_compiler_static_CXX
='-static'
12026 # All AIX code is PIC.
12027 if test "$host_cpu" = ia64
; then
12028 # AIX 5 now supports IA64 processor
12029 lt_prog_compiler_static_CXX
='-Bstatic'
12033 # FIXME: we need at least 68020 code to build shared libraries, but
12034 # adding the `-m68020' flag to GCC prevents building anything better,
12036 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
12038 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
12039 # PIC is the default for these OSes.
12041 mingw
* | cygwin
* | os2
* | pw32
*)
12042 # This hack is so that the source file can tell whether it is being
12043 # built for inclusion in a dll (and should export symbols for example).
12044 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12045 # (--disable-auto-import) libraries
12046 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
12048 darwin
* | rhapsody
*)
12049 # PIC is the default on this platform
12050 # Common symbols not allowed in MH_DYLIB files
12051 lt_prog_compiler_pic_CXX
='-fno-common'
12054 # DJGPP does not support shared libraries at all
12055 lt_prog_compiler_pic_CXX
=
12058 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12059 # Instead, we relocate shared libraries at runtime.
12062 if test -d /usr
/nec
; then
12063 lt_prog_compiler_pic_CXX
=-Kconform_pic
12067 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12068 # not for PA HP-UX.
12073 lt_prog_compiler_pic_CXX
='-fPIC'
12078 lt_prog_compiler_pic_CXX
='-fPIC'
12084 # All AIX code is PIC.
12085 if test "$host_cpu" = ia64
; then
12086 # AIX 5 now supports IA64 processor
12087 lt_prog_compiler_static_CXX
='-Bstatic'
12089 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
12093 case $cc_basename in
12095 # Green Hills C++ Compiler
12096 # _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"
12101 # PIC is the default on this platform
12102 # Common symbols not allowed in MH_DYLIB files
12103 case $cc_basename in
12105 lt_prog_compiler_pic_CXX
='-qnocommon'
12106 lt_prog_compiler_wl_CXX
='-Wl,'
12111 case $cc_basename in
12113 lt_prog_compiler_pic_CXX
='-KPIC'
12116 # Green Hills C++ Compiler
12117 lt_prog_compiler_pic_CXX
='-pic'
12123 freebsd
* | dragonfly
*)
12124 # FreeBSD uses GNU C++
12126 hpux9
* | hpux10
* | hpux11
*)
12127 case $cc_basename in
12129 lt_prog_compiler_wl_CXX
='-Wl,'
12130 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
12131 if test "$host_cpu" != ia64
; then
12132 lt_prog_compiler_pic_CXX
='+Z'
12136 lt_prog_compiler_wl_CXX
='-Wl,'
12137 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
12143 lt_prog_compiler_pic_CXX
='+Z'
12152 # This is c89, which is MS Visual C++ (no shared libs)
12153 # Anyone wants to do a port?
12155 irix5
* | irix6
* | nonstopux
*)
12156 case $cc_basename in
12158 lt_prog_compiler_wl_CXX
='-Wl,'
12159 lt_prog_compiler_static_CXX
='-non_shared'
12160 # CC pic flag -KPIC is the default.
12166 linux
* | k
*bsd
*-gnu)
12167 case $cc_basename in
12170 lt_prog_compiler_wl_CXX
='--backend -Wl,'
12171 lt_prog_compiler_pic_CXX
='-fPIC'
12175 lt_prog_compiler_wl_CXX
='-Wl,'
12176 lt_prog_compiler_pic_CXX
='-KPIC'
12177 lt_prog_compiler_static_CXX
='-static'
12180 # Portland Group C++ compiler.
12181 lt_prog_compiler_wl_CXX
='-Wl,'
12182 lt_prog_compiler_pic_CXX
='-fpic'
12183 lt_prog_compiler_static_CXX
='-Bstatic'
12187 # Make sure the PIC flag is empty. It appears that all Alpha
12188 # Linux and Compaq Tru64 Unix objects are PIC.
12189 lt_prog_compiler_pic_CXX
=
12190 lt_prog_compiler_static_CXX
='-non_shared'
12193 case `$CC -V 2>&1 | sed 5q` in
12196 lt_prog_compiler_pic_CXX
='-KPIC'
12197 lt_prog_compiler_static_CXX
='-Bstatic'
12198 lt_prog_compiler_wl_CXX
='-Qoption ld '
12209 case $cc_basename in
12211 lt_prog_compiler_pic_CXX
='-W c,exportall'
12219 osf3
* | osf4
* | osf5
*)
12220 case $cc_basename in
12222 lt_prog_compiler_wl_CXX
='--backend -Wl,'
12225 # Rational C++ 2.4.1
12226 lt_prog_compiler_pic_CXX
='-pic'
12229 # Digital/Compaq C++
12230 lt_prog_compiler_wl_CXX
='-Wl,'
12231 # Make sure the PIC flag is empty. It appears that all Alpha
12232 # Linux and Compaq Tru64 Unix objects are PIC.
12233 lt_prog_compiler_pic_CXX
=
12234 lt_prog_compiler_static_CXX
='-non_shared'
12243 case $cc_basename in
12245 # Sun C++ 4.2, 5.x and Centerline C++
12246 lt_prog_compiler_pic_CXX
='-KPIC'
12247 lt_prog_compiler_static_CXX
='-Bstatic'
12248 lt_prog_compiler_wl_CXX
='-Qoption ld '
12251 # Green Hills C++ Compiler
12252 lt_prog_compiler_pic_CXX
='-PIC'
12259 case $cc_basename in
12262 lt_prog_compiler_pic_CXX
='-pic'
12263 lt_prog_compiler_static_CXX
='-Bstatic'
12267 lt_prog_compiler_pic_CXX
='-pic'
12274 case $cc_basename in
12276 # NonStop-UX NCC 3.20
12277 lt_prog_compiler_pic_CXX
='-KPIC'
12283 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
12284 case $cc_basename in
12286 lt_prog_compiler_wl_CXX
='-Wl,'
12287 lt_prog_compiler_pic_CXX
='-KPIC'
12288 lt_prog_compiler_static_CXX
='-Bstatic'
12295 lt_prog_compiler_can_build_shared_CXX
=no
12300 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12301 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12304 # Check to make sure the PIC flag actually works.
12306 if test -n "$lt_prog_compiler_pic_CXX"; then
12308 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12309 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12310 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12311 echo $ECHO_N "(cached) $ECHO_C" >&6
12313 lt_prog_compiler_pic_works_CXX
=no
12314 ac_outfile
=conftest.
$ac_objext
12315 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12316 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
12317 # Insert the option either (1) after the last *FLAGS variable, or
12318 # (2) before a word containing "conftest.", or (3) at the end.
12319 # Note that $ac_compile itself does not contain backslashes and begins
12320 # with a dollar sign (not a hyphen), so the echo should work correctly.
12321 # The option is referenced via a variable to avoid confusing sed.
12322 lt_compile
=`echo "$ac_compile" | $SED \
12323 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12324 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12325 -e 's:$: $lt_compiler_flag:'`
12326 (eval echo "\"\$as_me:12326: $lt_compile\"" >&5)
12327 (eval "$lt_compile" 2>conftest.err
)
12329 cat conftest.err
>&5
12330 echo "$as_me:12330: \$? = $ac_status" >&5
12331 if (exit $ac_status) && test -s "$ac_outfile"; then
12332 # The compiler can only warn and ignore the option if not recognized
12333 # So say no if there are warnings other than the usual output.
12334 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
12335 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12336 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12337 lt_prog_compiler_pic_works_CXX
=yes
12343 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12344 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12346 if test x
"$lt_prog_compiler_pic_works_CXX" = xyes
; then
12347 case $lt_prog_compiler_pic_CXX in
12349 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
12352 lt_prog_compiler_pic_CXX
=
12353 lt_prog_compiler_can_build_shared_CXX
=no
12358 # For platforms which do not support PIC, -DPIC is meaningless:
12360 lt_prog_compiler_pic_CXX
=
12363 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
12368 # Check to make sure the static flag actually works.
12370 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
12371 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12372 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12373 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12374 echo $ECHO_N "(cached) $ECHO_C" >&6
12376 lt_prog_compiler_static_works_CXX
=no
12377 save_LDFLAGS
="$LDFLAGS"
12378 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
12379 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
12380 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
12381 # The linker can only warn and ignore the option if not recognized
12382 # So say no if there are warnings
12383 if test -s conftest.err
; then
12384 # Append any errors to the config.log.
12385 cat conftest.err
1>&5
12386 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
12387 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12388 if diff conftest.exp conftest.er2
>/dev
/null
; then
12389 lt_prog_compiler_static_works_CXX
=yes
12392 lt_prog_compiler_static_works_CXX
=yes
12396 LDFLAGS
="$save_LDFLAGS"
12399 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12400 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12402 if test x
"$lt_prog_compiler_static_works_CXX" = xyes
; then
12405 lt_prog_compiler_static_CXX
=
12409 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12410 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12411 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12412 echo $ECHO_N "(cached) $ECHO_C" >&6
12414 lt_cv_prog_compiler_c_o_CXX
=no
12415 $rm -r conftest
2>/dev
/null
12419 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12421 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12422 # Insert the option either (1) after the last *FLAGS variable, or
12423 # (2) before a word containing "conftest.", or (3) at the end.
12424 # Note that $ac_compile itself does not contain backslashes and begins
12425 # with a dollar sign (not a hyphen), so the echo should work correctly.
12426 lt_compile
=`echo "$ac_compile" | $SED \
12427 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12428 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12429 -e 's:$: $lt_compiler_flag:'`
12430 (eval echo "\"\$as_me:12430: $lt_compile\"" >&5)
12431 (eval "$lt_compile" 2>out
/conftest.err
)
12433 cat out
/conftest.err
>&5
12434 echo "$as_me:12434: \$? = $ac_status" >&5
12435 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12437 # The compiler can only warn and ignore the option if not recognized
12438 # So say no if there are warnings
12439 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
12440 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12441 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12442 lt_cv_prog_compiler_c_o_CXX
=yes
12447 # SGI C++ compiler will create directory out/ii_files/ for
12448 # template instantiation
12449 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
12450 $rm out
/* && rmdir out
12456 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12457 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12460 hard_links
="nottested"
12461 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
12462 # do not overwrite the value of need_locks provided by the user
12463 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12464 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12467 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12469 ln conftest.a conftest.b
2>&5 || hard_links
=no
12470 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12471 { echo "$as_me:$LINENO: result: $hard_links" >&5
12472 echo "${ECHO_T}$hard_links" >&6; }
12473 if test "$hard_links" = no
; then
12474 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12475 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12482 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12483 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12485 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12488 # If we're using GNU nm, then we don't want the "-C" option.
12489 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12490 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
12491 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'
12493 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'
12497 export_symbols_cmds_CXX
="$ltdll_cmds"
12500 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'
12503 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12507 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12508 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12509 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
12512 # Do we need to explicitly link libc?
12514 case "x$archive_cmds_need_lc_CXX" in
12516 # Assume -lc should be added
12517 archive_cmds_need_lc_CXX
=yes
12519 if test "$enable_shared" = yes && test "$GCC" = yes; then
12520 case $archive_cmds_CXX in
12522 # FIXME: we may have to deal with multi-command sequences.
12525 # Test whether the compiler implicitly links with -lc since on some
12526 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12527 # to ld, don't add -lc before -lgcc.
12528 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12529 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12531 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12534 (eval $ac_compile) 2>&5
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); } 2>conftest.err
; then
12540 libobjs
=conftest.
$ac_objext
12542 wl
=$lt_prog_compiler_wl_CXX
12543 pic_flag
=$lt_prog_compiler_pic_CXX
12549 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
12550 allow_undefined_flag_CXX
=
12551 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12552 (eval $archive_cmds_CXX 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); }
12557 archive_cmds_need_lc_CXX
=no
12559 archive_cmds_need_lc_CXX
=yes
12561 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
12563 cat conftest.err
1>&5
12566 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12567 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12574 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12575 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12576 library_names_spec
=
12577 libname_spec
='lib$name'
12581 postuninstall_cmds
=
12585 shlibpath_overrides_runpath
=unknown
12587 dynamic_linker
="$host_os ld.so"
12588 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
12590 need_lib_prefix
=unknown
12591 hardcode_into_libs
=no
12593 # when you set need_version to no, make sure it does not cause -set_version
12594 # flags to be left without arguments
12595 need_version
=unknown
12600 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
12601 shlibpath_var
=LIBPATH
12603 # AIX 3 has no versioning support, so we append a major version to the name.
12604 soname_spec
='${libname}${release}${shared_ext}$major'
12611 hardcode_into_libs
=yes
12612 if test "$host_cpu" = ia64
; then
12613 # AIX 5 supports IA64
12614 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12615 shlibpath_var
=LD_LIBRARY_PATH
12617 # With GCC up to 2.95.x, collect2 would create an import file
12618 # for dependence libraries. The import file would start with
12619 # the line `#! .'. This would cause the generated library to
12620 # depend on `.', always an invalid library. This was fixed in
12621 # development snapshots of GCC prior to 3.0.
12623 aix4 | aix4.
[01] | aix4.
[01].
*)
12624 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12626 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
12629 can_build_shared
=no
12633 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12634 # soname into executable. Probably we can add versioning support to
12635 # collect2, so additional links can be useful in future.
12636 if test "$aix_use_runtimelinking" = yes; then
12637 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12638 # instead of lib<name>.a to let people know that these are not
12639 # typical AIX shared libraries.
12640 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12642 # We preserve .a as extension for shared libraries through AIX4.2
12643 # and later when we are not doing run time linking.
12644 library_names_spec
='${libname}${release}.a $libname.a'
12645 soname_spec
='${libname}${release}${shared_ext}$major'
12647 shlibpath_var
=LIBPATH
12652 library_names_spec
='$libname.ixlibrary $libname.a'
12653 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12654 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'
12658 library_names_spec
='${libname}${shared_ext}'
12659 dynamic_linker
="$host_os ld.so"
12660 shlibpath_var
=LIBRARY_PATH
12666 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12667 soname_spec
='${libname}${release}${shared_ext}$major'
12668 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
12669 shlibpath_var
=LD_LIBRARY_PATH
12670 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12671 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
12672 # the default ld.so.conf also contains /usr/contrib/lib and
12673 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12674 # libtool to hard-code these into programs
12677 cygwin
* | mingw
* | pw32
*)
12678 version_type
=windows
12683 case $GCC,$host_os in
12684 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
12685 library_names_spec
='$libname.dll.a'
12686 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12687 postinstall_cmds
='base_file=`basename \${file}`~
12688 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12689 dldir=$destdir/`dirname \$dlpath`~
12690 test -d \$dldir || mkdir -p \$dldir~
12691 $install_prog $dir/$dlname \$dldir/$dlname~
12692 chmod a+x \$dldir/$dlname'
12693 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12694 dlpath=$dir/\$dldll~
12696 shlibpath_overrides_runpath
=yes
12700 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12701 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12702 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
12705 # MinGW DLLs use traditional 'lib' prefix
12706 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12707 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12708 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
12709 # It is most probably a Windows format PATH printed by
12710 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12711 # path with ; separators, and with drive letters. We can handle the
12712 # drive letters (cygwin fileutils understands them), so leave them,
12713 # especially as we might pass files found there to a mingw objdump,
12714 # which wouldn't understand a cygwinified path. Ahh.
12715 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12717 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12721 # pw32 DLLs use 'pw' prefix rather than 'lib'
12722 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12728 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12731 dynamic_linker
='Win32 ld.exe'
12732 # FIXME: first we should search . and the directory the executable is in
12736 darwin
* | rhapsody
*)
12737 dynamic_linker
="$host_os dyld"
12738 version_type
=darwin
12741 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12742 soname_spec
='${libname}${release}${major}$shared_ext'
12743 shlibpath_overrides_runpath
=yes
12744 shlibpath_var
=DYLD_LIBRARY_PATH
12745 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
12747 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
12754 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12755 soname_spec
='${libname}${release}${shared_ext}$major'
12756 shlibpath_var
=LD_LIBRARY_PATH
12763 freebsd
* | dragonfly
*)
12764 # DragonFly does not have aout. When/if they implement a new
12765 # versioning mechanism, adjust this.
12766 if test -x /usr
/bin
/objformat
; then
12767 objformat
=`/usr/bin/objformat`
12770 freebsd
[123]*) objformat
=aout
;;
12771 *) objformat
=elf
;;
12774 version_type
=freebsd-
$objformat
12775 case $version_type in
12777 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12782 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12786 shlibpath_var
=LD_LIBRARY_PATH
12789 shlibpath_overrides_runpath
=yes
12791 freebsd3.
[01]* | freebsdelf3.
[01]*)
12792 shlibpath_overrides_runpath
=yes
12793 hardcode_into_libs
=yes
12795 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
12796 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
12797 shlibpath_overrides_runpath
=no
12798 hardcode_into_libs
=yes
12800 *) # from 4.6 on, and DragonFly
12801 shlibpath_overrides_runpath
=yes
12802 hardcode_into_libs
=yes
12811 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12812 soname_spec
='${libname}${release}${shared_ext}$major'
12813 shlibpath_var
=LD_LIBRARY_PATH
12814 hardcode_into_libs
=yes
12817 hpux9
* | hpux10
* | hpux11
*)
12818 # Give a soname corresponding to the major version so that dld.sl refuses to
12819 # link against other versions.
12826 hardcode_into_libs
=yes
12827 dynamic_linker
="$host_os dld.so"
12828 shlibpath_var
=LD_LIBRARY_PATH
12829 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
12830 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12831 soname_spec
='${libname}${release}${shared_ext}$major'
12832 if test "X$HPUX_IA64_MODE" = X32
; then
12833 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12835 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
12837 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
12841 hardcode_into_libs
=yes
12842 dynamic_linker
="$host_os dld.sl"
12843 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
12844 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
12845 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12846 soname_spec
='${libname}${release}${shared_ext}$major'
12847 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12848 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
12852 dynamic_linker
="$host_os dld.sl"
12853 shlibpath_var
=SHLIB_PATH
12854 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
12855 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12856 soname_spec
='${libname}${release}${shared_ext}$major'
12859 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12860 postinstall_cmds
='chmod 555 $lib'
12867 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12868 soname_spec
='${libname}${release}${shared_ext}$major'
12869 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
12870 shlibpath_var
=LD_LIBRARY_PATH
12871 shlibpath_overrides_runpath
=no
12872 hardcode_into_libs
=yes
12875 irix5
* | irix6
* | nonstopux
*)
12877 nonstopux
*) version_type
=nonstopux
;;
12879 if test "$lt_cv_prog_gnu_ld" = yes; then
12887 soname_spec
='${libname}${release}${shared_ext}$major'
12888 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12890 irix5
* | nonstopux
*)
12891 libsuff
= shlibsuff
=
12894 case $LD in # libtool.m4 will add one of these switches to LD
12895 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
12896 libsuff
= shlibsuff
= libmagic
=32-bit;;
12897 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
12898 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
12899 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
12900 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
12901 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
12905 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
12906 shlibpath_overrides_runpath
=no
12907 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12908 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
12909 hardcode_into_libs
=yes
12912 # No shared lib support for Linux oldld, aout, or coff.
12913 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
12917 # This must be Linux ELF.
12918 linux
* | k
*bsd
*-gnu)
12922 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12923 soname_spec
='${libname}${release}${shared_ext}$major'
12924 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12925 shlibpath_var
=LD_LIBRARY_PATH
12926 shlibpath_overrides_runpath
=no
12927 # This implies no fast_install, which is unacceptable.
12928 # Some rework will be needed to allow for fast_install
12929 # before this can be enabled.
12930 hardcode_into_libs
=yes
12931 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12932 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
12934 # Append ld.so.conf contents to the search path
12935 if test -f /etc
/ld.so.conf
; then
12936 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' ' '`
12937 sys_lib_dlsearch_path_spec
="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12940 # We used to test for /lib/ld.so.1 and disable shared libraries on
12941 # powerpc, because MkLinux only supported shared libraries with the
12942 # GNU dynamic linker. Since this was broken with cross compilers,
12943 # most powerpc-linux boxes support dynamic linking these days and
12944 # people can always --disable-shared, the test was removed, and we
12945 # assume the GNU/Linux dynamic linker is in use.
12946 dynamic_linker
='GNU/Linux ld.so'
12953 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
12954 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12955 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12956 dynamic_linker
='NetBSD (a.out) ld.so'
12958 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12959 soname_spec
='${libname}${release}${shared_ext}$major'
12960 dynamic_linker
='NetBSD ld.elf_so'
12962 shlibpath_var
=LD_LIBRARY_PATH
12963 shlibpath_overrides_runpath
=yes
12964 hardcode_into_libs
=yes
12969 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12970 shlibpath_var
=LD_LIBRARY_PATH
12971 shlibpath_overrides_runpath
=yes
12978 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12979 soname_spec
='${libname}${release}${shared_ext}$major'
12980 shlibpath_var
=LD_LIBRARY_PATH
12981 shlibpath_overrides_runpath
=yes
12986 sys_lib_dlsearch_path_spec
="/usr/lib"
12988 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12990 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
12991 *) need_version
=no
;;
12993 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12994 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12995 shlibpath_var
=LD_LIBRARY_PATH
12996 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12998 openbsd2.
[89] | openbsd2.
[89].
*)
12999 shlibpath_overrides_runpath
=no
13002 shlibpath_overrides_runpath
=yes
13006 shlibpath_overrides_runpath
=yes
13011 libname_spec
='$name'
13014 library_names_spec
='$libname${shared_ext} $libname.a'
13015 dynamic_linker
='OS/2 ld.exe'
13016 shlibpath_var
=LIBPATH
13019 osf3
* | osf4
* | osf5
*)
13023 soname_spec
='${libname}${release}${shared_ext}$major'
13024 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13025 shlibpath_var
=LD_LIBRARY_PATH
13026 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13027 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
13038 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13039 soname_spec
='${libname}${release}${shared_ext}$major'
13040 shlibpath_var
=LD_LIBRARY_PATH
13041 shlibpath_overrides_runpath
=yes
13042 hardcode_into_libs
=yes
13043 # ldd complains unless libraries are executable
13044 postinstall_cmds
='chmod +x $lib'
13049 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13050 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13051 shlibpath_var
=LD_LIBRARY_PATH
13052 shlibpath_overrides_runpath
=yes
13053 if test "$with_gnu_ld" = yes; then
13061 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13062 soname_spec
='${libname}${release}${shared_ext}$major'
13063 shlibpath_var
=LD_LIBRARY_PATH
13064 case $host_vendor in
13066 shlibpath_overrides_runpath
=no
13068 export_dynamic_flag_spec
='${wl}-Blargedynsym'
13069 runpath_var
=LD_RUN_PATH
13077 shlibpath_overrides_runpath
=no
13078 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
13084 if test -d /usr
/nec
;then
13086 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13087 soname_spec
='$libname${shared_ext}.$major'
13088 shlibpath_var
=LD_LIBRARY_PATH
13092 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
13093 version_type
=freebsd-elf
13096 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13097 soname_spec
='${libname}${release}${shared_ext}$major'
13098 shlibpath_var
=LD_LIBRARY_PATH
13099 hardcode_into_libs
=yes
13100 if test "$with_gnu_ld" = yes; then
13101 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13102 shlibpath_overrides_runpath
=no
13104 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
13105 shlibpath_overrides_runpath
=yes
13108 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
13112 sys_lib_dlsearch_path_spec
='/usr/lib'
13117 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13118 soname_spec
='${libname}${release}${shared_ext}$major'
13119 shlibpath_var
=LD_LIBRARY_PATH
13126 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13127 echo "${ECHO_T}$dynamic_linker" >&6; }
13128 test "$dynamic_linker" = no
&& can_build_shared
=no
13130 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
13131 if test "$GCC" = yes; then
13132 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13135 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13136 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13137 hardcode_action_CXX
=
13138 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13139 test -n "$runpath_var_CXX" || \
13140 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13142 # We can hardcode non-existant directories.
13143 if test "$hardcode_direct_CXX" != no
&&
13144 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13145 # have to relink, otherwise we might link with an installed library
13146 # when we should be linking with a yet-to-be-installed one
13147 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13148 test "$hardcode_minus_L_CXX" != no
; then
13149 # Linking always hardcodes the temporary library directory.
13150 hardcode_action_CXX
=relink
13152 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13153 hardcode_action_CXX
=immediate
13156 # We cannot hardcode anything, or else we can only hardcode existing
13158 hardcode_action_CXX
=unsupported
13160 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13161 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13163 if test "$hardcode_action_CXX" = relink
; then
13164 # Fast installation is not supported
13165 enable_fast_install
=no
13166 elif test "$shlibpath_overrides_runpath" = yes ||
13167 test "$enable_shared" = no
; then
13168 # Fast installation is not necessary
13169 enable_fast_install
=needless
13173 # The else clause should only fire when bootstrapping the
13174 # libtool distribution, otherwise you forgot to ship ltmain.sh
13175 # with your package, and you will get complaints that there are
13176 # no rules to generate ltmain.sh.
13177 if test -f "$ltmain"; then
13178 # See if we are running on zsh, and set the options which allow our commands through
13179 # without removal of \ escapes.
13180 if test -n "${ZSH_VERSION+set}" ; then
13181 setopt NO_GLOB_SUBST
13183 # Now quote all the things that may contain metacharacters while being
13184 # careful not to overquote the AC_SUBSTed values. We take copies of the
13185 # variables and quote the copies for generation of the libtool script.
13186 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13188 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13189 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13190 deplibs_check_method reload_flag reload_cmds need_locks \
13191 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13192 lt_cv_sys_global_symbol_to_c_name_address \
13193 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13194 old_postinstall_cmds old_postuninstall_cmds \
13198 lt_prog_compiler_wl_CXX \
13199 lt_prog_compiler_pic_CXX \
13200 lt_prog_compiler_static_CXX \
13201 lt_prog_compiler_no_builtin_flag_CXX \
13202 export_dynamic_flag_spec_CXX \
13203 thread_safe_flag_spec_CXX \
13204 whole_archive_flag_spec_CXX \
13205 enable_shared_with_static_runtimes_CXX \
13206 old_archive_cmds_CXX \
13207 old_archive_from_new_cmds_CXX \
13208 predep_objects_CXX \
13209 postdep_objects_CXX \
13212 compiler_lib_search_path_CXX \
13214 archive_expsym_cmds_CXX \
13215 postinstall_cmds_CXX \
13216 postuninstall_cmds_CXX \
13217 old_archive_from_expsyms_cmds_CXX \
13218 allow_undefined_flag_CXX \
13219 no_undefined_flag_CXX \
13220 export_symbols_cmds_CXX \
13221 hardcode_libdir_flag_spec_CXX \
13222 hardcode_libdir_flag_spec_ld_CXX \
13223 hardcode_libdir_separator_CXX \
13224 hardcode_automatic_CXX \
13226 module_expsym_cmds_CXX \
13227 lt_cv_prog_compiler_c_o_CXX \
13228 fix_srcfile_path_CXX \
13229 exclude_expsyms_CXX \
13230 include_expsyms_CXX
; do
13233 old_archive_cmds_CXX | \
13234 old_archive_from_new_cmds_CXX | \
13235 archive_cmds_CXX | \
13236 archive_expsym_cmds_CXX | \
13237 module_cmds_CXX | \
13238 module_expsym_cmds_CXX | \
13239 old_archive_from_expsyms_cmds_CXX | \
13240 export_symbols_cmds_CXX | \
13241 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13242 postinstall_cmds | postuninstall_cmds | \
13243 old_postinstall_cmds | old_postuninstall_cmds | \
13244 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
13245 # Double-quote double-evaled strings.
13246 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13249 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13255 *'\$0 --fallback-echo"')
13256 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13262 cat <<__EOF__ >> "$cfgfile"
13263 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13265 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13267 # Shell to use when invoking shell scripts.
13270 # Whether or not to build shared libraries.
13271 build_libtool_libs=$enable_shared
13273 # Whether or not to build static libraries.
13274 build_old_libs=$enable_static
13276 # Whether or not to add -lc for building shared libraries.
13277 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13279 # Whether or not to disallow shared libs when runtime libs are static
13280 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13282 # Whether or not to optimize for fast installation.
13283 fast_install=$enable_fast_install
13286 host_alias=$host_alias
13290 # The build system.
13291 build_alias=$build_alias
13295 # An echo program that does not interpret backslashes.
13300 AR_FLAGS=$lt_AR_FLAGS
13305 # LTCC compiler flags.
13306 LTCFLAGS=$lt_LTCFLAGS
13308 # A language-specific compiler.
13309 CC=$lt_compiler_CXX
13311 # Is the compiler the GNU C compiler?
13317 # The linker used to build libraries.
13320 # Whether we need hard or soft links.
13323 # A BSD-compatible nm program.
13326 # A symbol stripping program
13329 # Used to examine libraries when file_magic_cmd begins "file"
13330 MAGIC_CMD=$MAGIC_CMD
13332 # Used on cygwin: DLL creation program.
13335 # Used on cygwin: object dumper.
13338 # Used on cygwin: assembler.
13341 # The name of the directory that contains temporary libtool files.
13344 # How to create reloadable object files.
13345 reload_flag=$lt_reload_flag
13346 reload_cmds=$lt_reload_cmds
13348 # How to pass a linker flag through the compiler.
13349 wl=$lt_lt_prog_compiler_wl_CXX
13351 # Object file suffix (normally "o").
13352 objext="$ac_objext"
13354 # Old archive suffix (normally "a").
13357 # Shared library suffix (normally ".so").
13358 shrext_cmds='$shrext_cmds'
13360 # Executable file suffix (normally "").
13363 # Additional compiler flags for building library objects.
13364 pic_flag=$lt_lt_prog_compiler_pic_CXX
13367 # What is the maximum length of a command?
13368 max_cmd_len=$lt_cv_sys_max_cmd_len
13370 # Does compiler simultaneously support -c and -o options?
13371 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13373 # Must we lock files when doing compilation?
13374 need_locks=$lt_need_locks
13376 # Do we need the lib prefix for modules?
13377 need_lib_prefix=$need_lib_prefix
13379 # Do we need a version for libraries?
13380 need_version=$need_version
13382 # Whether dlopen is supported.
13383 dlopen_support=$enable_dlopen
13385 # Whether dlopen of programs is supported.
13386 dlopen_self=$enable_dlopen_self
13388 # Whether dlopen of statically linked programs is supported.
13389 dlopen_self_static=$enable_dlopen_self_static
13391 # Compiler flag to prevent dynamic linking.
13392 link_static_flag=$lt_lt_prog_compiler_static_CXX
13394 # Compiler flag to turn off builtin functions.
13395 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13397 # Compiler flag to allow reflexive dlopens.
13398 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13400 # Compiler flag to generate shared objects directly from archives.
13401 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13403 # Compiler flag to generate thread-safe objects.
13404 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13406 # Library versioning type.
13407 version_type=$version_type
13409 # Format of library name prefix.
13410 libname_spec=$lt_libname_spec
13412 # List of archive names. First name is the real one, the rest are links.
13413 # The last name is the one that the linker finds with -lNAME.
13414 library_names_spec=$lt_library_names_spec
13416 # The coded name of the library, if different from the real name.
13417 soname_spec=$lt_soname_spec
13419 # Commands used to build and install an old-style archive.
13421 old_archive_cmds=$lt_old_archive_cmds_CXX
13422 old_postinstall_cmds=$lt_old_postinstall_cmds
13423 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13425 # Create an old-style archive from a shared archive.
13426 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13428 # Create a temporary old-style archive to link instead of a shared archive.
13429 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13431 # Commands used to build and install a shared archive.
13432 archive_cmds=$lt_archive_cmds_CXX
13433 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13434 postinstall_cmds=$lt_postinstall_cmds
13435 postuninstall_cmds=$lt_postuninstall_cmds
13437 # Commands used to build a loadable module (assumed same as above if empty)
13438 module_cmds=$lt_module_cmds_CXX
13439 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13441 # Commands to strip libraries.
13442 old_striplib=$lt_old_striplib
13443 striplib=$lt_striplib
13445 # Dependencies to place before the objects being linked to create a
13447 predep_objects=$lt_predep_objects_CXX
13449 # Dependencies to place after the objects being linked to create a
13451 postdep_objects=$lt_postdep_objects_CXX
13453 # Dependencies to place before the objects being linked to create a
13455 predeps=$lt_predeps_CXX
13457 # Dependencies to place after the objects being linked to create a
13459 postdeps=$lt_postdeps_CXX
13461 # The library search path used internally by the compiler when linking
13462 # a shared library.
13463 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13465 # Method to check whether dependent libraries are shared objects.
13466 deplibs_check_method=$lt_deplibs_check_method
13468 # Command to use when deplibs_check_method == file_magic.
13469 file_magic_cmd=$lt_file_magic_cmd
13471 # Flag that allows shared libraries with undefined symbols to be built.
13472 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13474 # Flag that forces no undefined symbols.
13475 no_undefined_flag=$lt_no_undefined_flag_CXX
13477 # Commands used to finish a libtool library installation in a directory.
13478 finish_cmds=$lt_finish_cmds
13480 # Same as above, but a single script fragment to be evaled but not shown.
13481 finish_eval=$lt_finish_eval
13483 # Take the output of nm and produce a listing of raw symbols and C names.
13484 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13486 # Transform the output of nm in a proper C declaration
13487 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13489 # Transform the output of nm in a C name address pair
13490 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13492 # This is the shared library runtime path variable.
13493 runpath_var=$runpath_var
13495 # This is the shared library path variable.
13496 shlibpath_var=$shlibpath_var
13498 # Is shlibpath searched before the hard-coded library search path?
13499 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13501 # How to hardcode a shared library path into an executable.
13502 hardcode_action=$hardcode_action_CXX
13504 # Whether we should hardcode library paths into libraries.
13505 hardcode_into_libs=$hardcode_into_libs
13507 # Flag to hardcode \$libdir into a binary during linking.
13508 # This must work even if \$libdir does not exist.
13509 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13511 # If ld is used when linking, flag to hardcode \$libdir into
13512 # a binary during linking. This must work even if \$libdir does
13514 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13516 # Whether we need a single -rpath flag with a separated argument.
13517 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13519 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13520 # resulting binary.
13521 hardcode_direct=$hardcode_direct_CXX
13523 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13524 # resulting binary.
13525 hardcode_minus_L=$hardcode_minus_L_CXX
13527 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13528 # the resulting binary.
13529 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13531 # Set to yes if building a shared library automatically hardcodes DIR into the library
13532 # and all subsequent libraries and executables linked against it.
13533 hardcode_automatic=$hardcode_automatic_CXX
13535 # Variables whose values should be saved in libtool wrapper scripts and
13536 # restored at relink time.
13537 variables_saved_for_relink="$variables_saved_for_relink"
13539 # Whether libtool must link a program against all its dependency libraries.
13540 link_all_deplibs=$link_all_deplibs_CXX
13542 # Compile-time system search path for libraries
13543 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13545 # Run-time system search path for libraries
13546 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13548 # Fix the shell variable \$srcfile for the compiler.
13549 fix_srcfile_path=$lt_fix_srcfile_path
13551 # Set to yes if exported symbols are required.
13552 always_export_symbols=$always_export_symbols_CXX
13554 # The commands to list exported symbols.
13555 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13557 # The commands to extract the exported symbol list from a shared archive.
13558 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13560 # Symbols that should not be listed in the preloaded symbols.
13561 exclude_expsyms=$lt_exclude_expsyms_CXX
13563 # Symbols that must always be exported.
13564 include_expsyms=$lt_include_expsyms_CXX
13566 # ### END LIBTOOL TAG CONFIG: $tagname
13572 # If there is no Makefile yet, we rely on a make rule to execute
13573 # `config.status --recheck' to rerun these tests and create the
13574 # libtool script then.
13575 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13576 if test -f "$ltmain_in"; then
13577 test -f Makefile
&& make "$ltmain"
13583 ac_cpp
='$CXXCPP $CPPFLAGS'
13584 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13585 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13586 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
13592 with_gnu_ldcxx
=$with_gnu_ld
13593 with_gnu_ld
=$lt_save_with_gnu_ld
13594 lt_cv_path_LDCXX
=$lt_cv_path_LD
13595 lt_cv_path_LD
=$lt_save_path_LD
13596 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
13597 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
13605 if test -n "$F77" && test "X$F77" != "Xno"; then
13608 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13609 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13610 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
13613 archive_cmds_need_lc_F77
=no
13614 allow_undefined_flag_F77
=
13615 always_export_symbols_F77
=no
13616 archive_expsym_cmds_F77
=
13617 export_dynamic_flag_spec_F77
=
13618 hardcode_direct_F77
=no
13619 hardcode_libdir_flag_spec_F77
=
13620 hardcode_libdir_flag_spec_ld_F77
=
13621 hardcode_libdir_separator_F77
=
13622 hardcode_minus_L_F77
=no
13623 hardcode_automatic_F77
=no
13625 module_expsym_cmds_F77
=
13626 link_all_deplibs_F77
=unknown
13627 old_archive_cmds_F77
=$old_archive_cmds
13628 no_undefined_flag_F77
=
13629 whole_archive_flag_spec_F77
=
13630 enable_shared_with_static_runtimes_F77
=no
13632 # Source file extension for f77 test sources.
13635 # Object file extension for compiled f77 test sources.
13639 # Code to be used in simple compile tests
13640 lt_simple_compile_test_code
="\
13646 # Code to be used in simple link tests
13647 lt_simple_link_test_code
="\
13652 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13654 # If no C compiler was specified, use CC.
13657 # If no C compiler flags were specified, use CFLAGS.
13658 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
13660 # Allow CC to be a program name with arguments.
13664 # save warnings/boilerplate of simple test code
13665 ac_outfile
=conftest.
$ac_objext
13666 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
13667 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
13668 _lt_compiler_boilerplate
=`cat conftest.err`
13671 ac_outfile
=conftest.
$ac_objext
13672 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
13673 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
13674 _lt_linker_boilerplate
=`cat conftest.err`
13678 # Allow CC to be a program name with arguments.
13683 for cc_temp
in $compiler""; do
13685 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
13686 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
13691 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13694 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13695 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13696 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13697 echo "${ECHO_T}$can_build_shared" >&6; }
13699 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13700 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13701 test "$can_build_shared" = "no" && enable_shared
=no
13703 # On AIX, shared libraries and static libraries use the same namespace, and
13704 # are all built from PIC.
13707 test "$enable_shared" = yes && enable_static
=no
13708 if test -n "$RANLIB"; then
13709 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
13710 postinstall_cmds
='$RANLIB $lib'
13714 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
13715 test "$enable_shared" = yes && enable_static
=no
13719 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13720 echo "${ECHO_T}$enable_shared" >&6; }
13722 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13723 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13724 # Make sure either enable_shared or enable_static is yes.
13725 test "$enable_shared" = yes || enable_static
=yes
13726 { echo "$as_me:$LINENO: result: $enable_static" >&5
13727 echo "${ECHO_T}$enable_static" >&6; }
13732 lt_prog_compiler_wl_F77
=
13733 lt_prog_compiler_pic_F77
=
13734 lt_prog_compiler_static_F77
=
13736 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13737 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13739 if test "$GCC" = yes; then
13740 lt_prog_compiler_wl_F77
='-Wl,'
13741 lt_prog_compiler_static_F77
='-static'
13745 # All AIX code is PIC.
13746 if test "$host_cpu" = ia64
; then
13747 # AIX 5 now supports IA64 processor
13748 lt_prog_compiler_static_F77
='-Bstatic'
13753 # FIXME: we need at least 68020 code to build shared libraries, but
13754 # adding the `-m68020' flag to GCC prevents building anything better,
13756 lt_prog_compiler_pic_F77
='-m68020 -resident32 -malways-restore-a4'
13759 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
13760 # PIC is the default for these OSes.
13763 mingw
* | cygwin
* | pw32
* | os2
*)
13764 # This hack is so that the source file can tell whether it is being
13765 # built for inclusion in a dll (and should export symbols for example).
13766 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13767 # (--disable-auto-import) libraries
13768 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
13771 darwin
* | rhapsody
*)
13772 # PIC is the default on this platform
13773 # Common symbols not allowed in MH_DYLIB files
13774 lt_prog_compiler_pic_F77
='-fno-common'
13778 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13779 # Instead, we relocate shared libraries at runtime.
13783 # Just because we use GCC doesn't mean we suddenly get shared libraries
13784 # on systems that don't support them.
13785 lt_prog_compiler_can_build_shared_F77
=no
13790 if test -d /usr
/nec
; then
13791 lt_prog_compiler_pic_F77
=-Kconform_pic
13796 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13797 # not for PA HP-UX.
13803 lt_prog_compiler_pic_F77
='-fPIC'
13809 lt_prog_compiler_pic_F77
='-fPIC'
13813 # PORTME Check for flag to pass linker flags through the system compiler.
13816 lt_prog_compiler_wl_F77
='-Wl,'
13817 if test "$host_cpu" = ia64
; then
13818 # AIX 5 now supports IA64 processor
13819 lt_prog_compiler_static_F77
='-Bstatic'
13821 lt_prog_compiler_static_F77
='-bnso -bI:/lib/syscalls.exp'
13825 # PIC is the default on this platform
13826 # Common symbols not allowed in MH_DYLIB files
13827 case $cc_basename in
13829 lt_prog_compiler_pic_F77
='-qnocommon'
13830 lt_prog_compiler_wl_F77
='-Wl,'
13835 mingw
* | cygwin
* | pw32
* | os2
*)
13836 # This hack is so that the source file can tell whether it is being
13837 # built for inclusion in a dll (and should export symbols for example).
13838 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
13841 hpux9
* | hpux10
* | hpux11
*)
13842 lt_prog_compiler_wl_F77
='-Wl,'
13843 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13844 # not for PA HP-UX.
13850 lt_prog_compiler_pic_F77
='+Z'
13853 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13854 lt_prog_compiler_static_F77
='${wl}-a ${wl}archive'
13857 irix5
* | irix6
* | nonstopux
*)
13858 lt_prog_compiler_wl_F77
='-Wl,'
13859 # PIC (with -KPIC) is the default.
13860 lt_prog_compiler_static_F77
='-non_shared'
13864 lt_prog_compiler_pic_F77
='-KPIC'
13865 lt_prog_compiler_static_F77
='-Bstatic'
13868 linux
* | k
*bsd
*-gnu)
13869 case $cc_basename in
13871 lt_prog_compiler_wl_F77
='-Wl,'
13872 lt_prog_compiler_pic_F77
='-KPIC'
13873 lt_prog_compiler_static_F77
='-static'
13875 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
13876 # Portland Group compilers (*not* the Pentium gcc compiler,
13877 # which looks to be a dead project)
13878 lt_prog_compiler_wl_F77
='-Wl,'
13879 lt_prog_compiler_pic_F77
='-fpic'
13880 lt_prog_compiler_static_F77
='-Bstatic'
13883 lt_prog_compiler_wl_F77
='-Wl,'
13884 # All Alpha code is PIC.
13885 lt_prog_compiler_static_F77
='-non_shared'
13888 case `$CC -V 2>&1 | sed 5q` in
13891 lt_prog_compiler_pic_F77
='-KPIC'
13892 lt_prog_compiler_static_F77
='-Bstatic'
13893 lt_prog_compiler_wl_F77
='-Wl,'
13896 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13897 lt_prog_compiler_pic_F77
='-KPIC'
13898 lt_prog_compiler_static_F77
='-Bstatic'
13899 lt_prog_compiler_wl_F77
=''
13906 osf3
* | osf4
* | osf5
*)
13907 lt_prog_compiler_wl_F77
='-Wl,'
13908 # All OSF/1 code is PIC.
13909 lt_prog_compiler_static_F77
='-non_shared'
13913 lt_prog_compiler_static_F77
='-non_shared'
13917 lt_prog_compiler_pic_F77
='-KPIC'
13918 lt_prog_compiler_static_F77
='-Bstatic'
13919 case $cc_basename in
13920 f77
* | f90
* | f95
*)
13921 lt_prog_compiler_wl_F77
='-Qoption ld ';;
13923 lt_prog_compiler_wl_F77
='-Wl,';;
13928 lt_prog_compiler_wl_F77
='-Qoption ld '
13929 lt_prog_compiler_pic_F77
='-PIC'
13930 lt_prog_compiler_static_F77
='-Bstatic'
13933 sysv4 | sysv4.2uw2
* | sysv4.3
*)
13934 lt_prog_compiler_wl_F77
='-Wl,'
13935 lt_prog_compiler_pic_F77
='-KPIC'
13936 lt_prog_compiler_static_F77
='-Bstatic'
13940 if test -d /usr
/nec
;then
13941 lt_prog_compiler_pic_F77
='-Kconform_pic'
13942 lt_prog_compiler_static_F77
='-Bstatic'
13946 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
13947 lt_prog_compiler_wl_F77
='-Wl,'
13948 lt_prog_compiler_pic_F77
='-KPIC'
13949 lt_prog_compiler_static_F77
='-Bstatic'
13953 lt_prog_compiler_wl_F77
='-Wl,'
13954 lt_prog_compiler_can_build_shared_F77
=no
13958 lt_prog_compiler_pic_F77
='-pic'
13959 lt_prog_compiler_static_F77
='-Bstatic'
13963 lt_prog_compiler_can_build_shared_F77
=no
13968 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13969 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13972 # Check to make sure the PIC flag actually works.
13974 if test -n "$lt_prog_compiler_pic_F77"; then
13976 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13977 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13978 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13979 echo $ECHO_N "(cached) $ECHO_C" >&6
13981 lt_prog_compiler_pic_works_F77
=no
13982 ac_outfile
=conftest.
$ac_objext
13983 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13984 lt_compiler_flag
="$lt_prog_compiler_pic_F77"
13985 # Insert the option either (1) after the last *FLAGS variable, or
13986 # (2) before a word containing "conftest.", or (3) at the end.
13987 # Note that $ac_compile itself does not contain backslashes and begins
13988 # with a dollar sign (not a hyphen), so the echo should work correctly.
13989 # The option is referenced via a variable to avoid confusing sed.
13990 lt_compile
=`echo "$ac_compile" | $SED \
13991 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13992 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13993 -e 's:$: $lt_compiler_flag:'`
13994 (eval echo "\"\$as_me:13994: $lt_compile\"" >&5)
13995 (eval "$lt_compile" 2>conftest.err
)
13997 cat conftest.err
>&5
13998 echo "$as_me:13998: \$? = $ac_status" >&5
13999 if (exit $ac_status) && test -s "$ac_outfile"; then
14000 # The compiler can only warn and ignore the option if not recognized
14001 # So say no if there are warnings other than the usual output.
14002 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
14003 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
14004 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
14005 lt_prog_compiler_pic_works_F77
=yes
14011 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14012 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14014 if test x
"$lt_prog_compiler_pic_works_F77" = xyes
; then
14015 case $lt_prog_compiler_pic_F77 in
14017 *) lt_prog_compiler_pic_F77
=" $lt_prog_compiler_pic_F77" ;;
14020 lt_prog_compiler_pic_F77
=
14021 lt_prog_compiler_can_build_shared_F77
=no
14026 # For platforms which do not support PIC, -DPIC is meaningless:
14028 lt_prog_compiler_pic_F77
=
14031 lt_prog_compiler_pic_F77
="$lt_prog_compiler_pic_F77"
14036 # Check to make sure the static flag actually works.
14038 wl
=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_F77\"
14039 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14040 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14041 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14042 echo $ECHO_N "(cached) $ECHO_C" >&6
14044 lt_prog_compiler_static_works_F77
=no
14045 save_LDFLAGS
="$LDFLAGS"
14046 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
14047 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
14048 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
14049 # The linker can only warn and ignore the option if not recognized
14050 # So say no if there are warnings
14051 if test -s conftest.err
; then
14052 # Append any errors to the config.log.
14053 cat conftest.err
1>&5
14054 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
14055 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
14056 if diff conftest.exp conftest.er2
>/dev
/null
; then
14057 lt_prog_compiler_static_works_F77
=yes
14060 lt_prog_compiler_static_works_F77
=yes
14064 LDFLAGS
="$save_LDFLAGS"
14067 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14068 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14070 if test x
"$lt_prog_compiler_static_works_F77" = xyes
; then
14073 lt_prog_compiler_static_F77
=
14077 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14078 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14079 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14080 echo $ECHO_N "(cached) $ECHO_C" >&6
14082 lt_cv_prog_compiler_c_o_F77
=no
14083 $rm -r conftest
2>/dev
/null
14087 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14089 lt_compiler_flag
="-o out/conftest2.$ac_objext"
14090 # Insert the option either (1) after the last *FLAGS variable, or
14091 # (2) before a word containing "conftest.", or (3) at the end.
14092 # Note that $ac_compile itself does not contain backslashes and begins
14093 # with a dollar sign (not a hyphen), so the echo should work correctly.
14094 lt_compile
=`echo "$ac_compile" | $SED \
14095 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14096 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14097 -e 's:$: $lt_compiler_flag:'`
14098 (eval echo "\"\$as_me:14098: $lt_compile\"" >&5)
14099 (eval "$lt_compile" 2>out
/conftest.err
)
14101 cat out
/conftest.err
>&5
14102 echo "$as_me:14102: \$? = $ac_status" >&5
14103 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
14105 # The compiler can only warn and ignore the option if not recognized
14106 # So say no if there are warnings
14107 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
14108 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
14109 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
14110 lt_cv_prog_compiler_c_o_F77
=yes
14115 # SGI C++ compiler will create directory out/ii_files/ for
14116 # template instantiation
14117 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
14118 $rm out
/* && rmdir out
14124 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14125 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14128 hard_links
="nottested"
14129 if test "$lt_cv_prog_compiler_c_o_F77" = no
&& test "$need_locks" != no
; then
14130 # do not overwrite the value of need_locks provided by the user
14131 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14132 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14135 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14137 ln conftest.a conftest.b
2>&5 || hard_links
=no
14138 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14139 { echo "$as_me:$LINENO: result: $hard_links" >&5
14140 echo "${ECHO_T}$hard_links" >&6; }
14141 if test "$hard_links" = no
; then
14142 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14143 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14150 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14151 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14154 allow_undefined_flag_F77
=
14155 enable_shared_with_static_runtimes_F77
=no
14157 archive_expsym_cmds_F77
=
14158 old_archive_From_new_cmds_F77
=
14159 old_archive_from_expsyms_cmds_F77
=
14160 export_dynamic_flag_spec_F77
=
14161 whole_archive_flag_spec_F77
=
14162 thread_safe_flag_spec_F77
=
14163 hardcode_libdir_flag_spec_F77
=
14164 hardcode_libdir_flag_spec_ld_F77
=
14165 hardcode_libdir_separator_F77
=
14166 hardcode_direct_F77
=no
14167 hardcode_minus_L_F77
=no
14168 hardcode_shlibpath_var_F77
=unsupported
14169 link_all_deplibs_F77
=unknown
14170 hardcode_automatic_F77
=no
14172 module_expsym_cmds_F77
=
14173 always_export_symbols_F77
=no
14174 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14175 # include_expsyms should be a list of space-separated symbols to be *always*
14176 # included in the symbol list
14177 include_expsyms_F77
=
14178 # exclude_expsyms can be an extended regexp of symbols to exclude
14179 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14180 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14181 # as well as any symbol that contains `d'.
14182 exclude_expsyms_F77
="_GLOBAL_OFFSET_TABLE_"
14183 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14184 # platforms (ab)use it in PIC code, but their linkers get confused if
14185 # the symbol is explicitly referenced. Since portable code cannot
14186 # rely on this symbol name, it's probably fine to never include it in
14187 # preloaded symbol tables.
14188 extract_expsyms_cmds
=
14189 # Just being paranoid about ensuring that cc_basename is set.
14190 for cc_temp
in $compiler""; do
14192 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
14193 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
14198 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14201 cygwin
* | mingw
* | pw32
*)
14202 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14203 # When not using gcc, we currently assume that we are using
14204 # Microsoft Visual C++.
14205 if test "$GCC" != yes; then
14210 # we just hope/assume this is gcc and not c89 (= MSVC++)
14219 if test "$with_gnu_ld" = yes; then
14220 # If archive_cmds runs LD, not CC, wlarc should be empty
14223 # Set some defaults for GNU ld with shared library support. These
14224 # are reset later if shared libraries are not supported. Putting them
14225 # here allows them to be overridden if necessary.
14226 runpath_var
=LD_RUN_PATH
14227 hardcode_libdir_flag_spec_F77
='${wl}--rpath ${wl}$libdir'
14228 export_dynamic_flag_spec_F77
='${wl}--export-dynamic'
14229 # ancient GNU ld didn't support --whole-archive et. al.
14230 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
14231 whole_archive_flag_spec_F77
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14233 whole_archive_flag_spec_F77
=
14235 supports_anon_versioning
=no
14236 case `$LD -v 2>/dev/null` in
14237 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
14238 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
14239 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
14240 *\
2.11.
*) ;; # other 2.11 versions
14241 *) supports_anon_versioning
=yes ;;
14244 # See if GNU ld supports shared libraries.
14246 aix3
* | aix4
* | aix5
*)
14247 # On AIX/PPC, the GNU linker is very broken
14248 if test "$host_cpu" != ia64
; then
14252 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14253 *** to be unable to reliably create shared libraries on AIX.
14254 *** Therefore, libtool is disabling shared libraries support. If you
14255 *** really care for shared libraries, you may want to modify your PATH
14256 *** so that a non-GNU linker is found, and then restart.
14263 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)'
14264 hardcode_libdir_flag_spec_F77
='-L$libdir'
14265 hardcode_minus_L_F77
=yes
14267 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14268 # that the semantics of dynamic libraries on AmigaOS, at least up
14269 # to version 4, is to share data among multiple programs linked
14270 # with the same dynamic library. Since this doesn't match the
14271 # behavior of shared libraries on other platforms, we can't use
14277 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14278 allow_undefined_flag_F77
=unsupported
14279 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14280 # support --undefined. This deserves some investigation. FIXME
14281 archive_cmds_F77
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14287 cygwin
* | mingw
* | pw32
*)
14288 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14289 # as there is no search path for DLLs.
14290 hardcode_libdir_flag_spec_F77
='-L$libdir'
14291 allow_undefined_flag_F77
=unsupported
14292 always_export_symbols_F77
=no
14293 enable_shared_with_static_runtimes_F77
=yes
14294 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14296 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
14297 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14298 # If the export-symbols file already is a .def file (1st line
14299 # is EXPORTS), use it as is; otherwise, prepend...
14300 archive_expsym_cmds_F77
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14301 cp $export_symbols $output_objdir/$soname.def;
14303 echo EXPORTS > $output_objdir/$soname.def;
14304 cat $export_symbols >> $output_objdir/$soname.def;
14306 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14313 hardcode_direct_F77
=no
14314 hardcode_shlibpath_var_F77
=no
14315 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14316 export_dynamic_flag_spec_F77
='${wl}-E'
14317 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14318 # Instead, shared libraries are loaded at an image base (0x10000000 by
14319 # default) and relocated if they conflict, which is a slow very memory
14320 # consuming and fragmenting process. To avoid this, we pick a random,
14321 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14322 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14323 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'
14324 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'
14327 gnu
* | linux
* | k
*bsd
*-gnu)
14328 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14330 case $cc_basename,$host_cpu in
14331 pgcc
*) # Portland Group C compiler
14332 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'
14333 tmp_addflag
=' $pic_flag'
14335 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
14336 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'
14337 tmp_addflag
=' $pic_flag -Mnomain' ;;
14338 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
14339 tmp_addflag
=' -i_dynamic' ;;
14340 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
14341 tmp_addflag
=' -i_dynamic -nofor_main' ;;
14342 ifc
* | ifort
*) # Intel Fortran compiler
14343 tmp_addflag
=' -nofor_main' ;;
14345 case `$CC -V 2>&1 | sed 5q` in
14346 *Sun\ C
*) # Sun C 5.9
14347 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'
14348 tmp_sharedflag
='-G' ;;
14349 *Sun\ F
*) # Sun Fortran 8.3
14350 tmp_sharedflag
='-G' ;;
14352 tmp_sharedflag
='-shared' ;;
14354 archive_cmds_F77
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14356 if test $supports_anon_versioning = yes; then
14357 archive_expsym_cmds_F77
='$echo "{ global:" > $output_objdir/$libname.ver~
14358 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14359 $echo "local: *; };" >> $output_objdir/$libname.ver~
14360 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14368 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14369 archive_cmds_F77
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14372 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14373 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14378 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
14382 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14383 *** create shared libraries on Solaris systems. Therefore, libtool
14384 *** is disabling shared libraries support. We urge you to upgrade GNU
14385 *** binutils to release 2.9.1 or newer. Another option is to modify
14386 *** your PATH or compiler configuration so that the native linker is
14387 *** used, and then restart.
14390 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14391 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14392 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14398 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
14399 case `$LD -v 2>&1` in
14400 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
14404 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14405 *** reliably create shared libraries on SCO systems. Therefore, libtool
14406 *** is disabling shared libraries support. We urge you to upgrade GNU
14407 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14408 *** your PATH or compiler configuration so that the native linker is
14409 *** used, and then restart.
14414 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14415 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14416 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14417 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14426 archive_cmds_F77
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14428 hardcode_direct_F77
=yes
14429 hardcode_shlibpath_var_F77
=no
14433 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14434 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14435 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14442 if test "$ld_shlibs_F77" = no
; then
14444 hardcode_libdir_flag_spec_F77
=
14445 export_dynamic_flag_spec_F77
=
14446 whole_archive_flag_spec_F77
=
14449 # PORTME fill in a description of your system's linker (not GNU ld)
14452 allow_undefined_flag_F77
=unsupported
14453 always_export_symbols_F77
=yes
14454 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'
14455 # Note: this linker hardcodes the directories in LIBPATH if there
14456 # are no directories specified by -L.
14457 hardcode_minus_L_F77
=yes
14458 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14459 # Neither direct hardcoding nor static linking is supported with a
14461 hardcode_direct_F77
=unsupported
14466 if test "$host_cpu" = ia64
; then
14467 # On IA64, the linker does run time linking by default, so we don't
14468 # have to do anything special.
14469 aix_use_runtimelinking
=no
14470 exp_sym_flag
='-Bexport'
14473 # If we're using GNU nm, then we don't want the "-C" option.
14474 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14475 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
14476 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'
14478 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'
14480 aix_use_runtimelinking
=no
14482 # Test if we are trying to use run time linking or normal
14483 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14484 # need to do runtime linking.
14485 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
14486 for ld_flag
in $LDFLAGS; do
14487 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
14488 aix_use_runtimelinking
=yes
14495 exp_sym_flag
='-bexport'
14496 no_entry_flag
='-bnoentry'
14499 # When large executables or shared objects are built, AIX ld can
14500 # have problems creating the table of contents. If linking a library
14501 # or program results in "error TOC overflow" add -mminimal-toc to
14502 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14503 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14505 archive_cmds_F77
=''
14506 hardcode_direct_F77
=yes
14507 hardcode_libdir_separator_F77
=':'
14508 link_all_deplibs_F77
=yes
14510 if test "$GCC" = yes; then
14511 case $host_os in aix4.
[012]|aix4.
[012].
*)
14512 # We only want to do this on AIX 4.2 and lower, the check
14513 # below for broken collect2 doesn't work under 4.3+
14514 collect2name
=`${CC} -print-prog-name=collect2`
14515 if test -f "$collect2name" && \
14516 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
14518 # We have reworked collect2
14521 # We have old collect2
14522 hardcode_direct_F77
=unsupported
14523 # It fails to find uninstalled libraries when the uninstalled
14524 # path is not listed in the libpath. Setting hardcode_minus_L
14525 # to unsupported forces relinking
14526 hardcode_minus_L_F77
=yes
14527 hardcode_libdir_flag_spec_F77
='-L$libdir'
14528 hardcode_libdir_separator_F77
=
14532 shared_flag
='-shared'
14533 if test "$aix_use_runtimelinking" = yes; then
14534 shared_flag
="$shared_flag "'${wl}-G'
14538 if test "$host_cpu" = ia64
; then
14539 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14540 # chokes on -Wl,-G. The following line is correct:
14543 if test "$aix_use_runtimelinking" = yes; then
14544 shared_flag
='${wl}-G'
14546 shared_flag
='${wl}-bM:SRE'
14551 # It seems that -bexpall does not export symbols beginning with
14552 # underscore (_), so it is better to generate a list of symbols to export.
14553 always_export_symbols_F77
=yes
14554 if test "$aix_use_runtimelinking" = yes; then
14555 # Warning - without using the other runtime loading flags (-brtl),
14556 # -berok will link without error, but may produce a broken library.
14557 allow_undefined_flag_F77
='-berok'
14558 # Determine the default libpath from the value encoded in an empty executable.
14559 cat >conftest.
$ac_ext <<_ACEOF
14564 rm -f conftest.
$ac_objext conftest
$ac_exeext
14565 if { (ac_try
="$ac_link"
14566 case "(($ac_try" in
14567 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14568 *) ac_try_echo=$ac_try;;
14570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14571 (eval "$ac_link") 2>conftest.er1
14573 grep -v '^ *+' conftest.er1 >conftest.err
14575 cat conftest.err >&5
14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); } && {
14578 test -z "$ac_f77_werror_flag" ||
14579 test ! -s conftest.err
14580 } && test -s conftest$ac_exeext &&
14581 $as_test_x conftest$ac_exeext; then
14583 lt_aix_libpath_sed='
14584 /Import File Strings/,/^$/ {
14590 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
14591 # Check for a 64-bit object if we didn't find anything.
14592 if test -z "$aix_libpath"; then
14593 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
14596 echo "$as_me: failed program was:" >&5
14597 sed 's/^/| /' conftest.$ac_ext >&5
14602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14603 conftest$ac_exeext conftest.$ac_ext
14604 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14606 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14607 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"
14609 if test "$host_cpu" = ia64; then
14610 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14611 allow_undefined_flag_F77="-z nodefs"
14612 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"
14614 # Determine the default libpath from the value encoded in an empty executable.
14615 cat >conftest.$ac_ext <<_ACEOF
14620 rm -f conftest.$ac_objext conftest$ac_exeext
14621 if { (ac_try="$ac_link"
14622 case "(($ac_try" in
14623 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14624 *) ac_try_echo
=$ac_try;;
14626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14627 (eval "$ac_link") 2>conftest.er1
14629 grep -v '^ *+' conftest.er1
>conftest.err
14631 cat conftest.err
>&5
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); } && {
14634 test -z "$ac_f77_werror_flag" ||
14635 test ! -s conftest.err
14636 } && test -s conftest
$ac_exeext &&
14637 $as_test_x conftest
$ac_exeext; then
14639 lt_aix_libpath_sed
='
14640 /Import File Strings/,/^$/ {
14646 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14647 # Check for a 64-bit object if we didn't find anything.
14648 if test -z "$aix_libpath"; then
14649 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14652 echo "$as_me: failed program was:" >&5
14653 sed 's/^/| /' conftest.
$ac_ext >&5
14658 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14659 conftest
$ac_exeext conftest.
$ac_ext
14660 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
14662 hardcode_libdir_flag_spec_F77
='${wl}-blibpath:$libdir:'"$aix_libpath"
14663 # Warning - without using the other run time loading flags,
14664 # -berok will link without error, but may produce a broken library.
14665 no_undefined_flag_F77
=' ${wl}-bernotok'
14666 allow_undefined_flag_F77
=' ${wl}-berok'
14667 # Exported symbols can be pulled into shared objects from archives
14668 whole_archive_flag_spec_F77
='$convenience'
14669 archive_cmds_need_lc_F77
=yes
14670 # This is similar to how AIX traditionally builds its shared libraries.
14671 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'
14677 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)'
14678 hardcode_libdir_flag_spec_F77
='-L$libdir'
14679 hardcode_minus_L_F77
=yes
14680 # see comment about different semantics on the GNU ld section
14685 export_dynamic_flag_spec_F77
=-rdynamic
14688 cygwin
* | mingw
* | pw32
*)
14689 # When not using gcc, we currently assume that we are using
14690 # Microsoft Visual C++.
14691 # hardcode_libdir_flag_spec is actually meaningless, as there is
14692 # no search path for DLLs.
14693 hardcode_libdir_flag_spec_F77
=' '
14694 allow_undefined_flag_F77
=unsupported
14695 # Tell ltmain to make .lib files, not .a files.
14697 # Tell ltmain to make .dll files, not .so files.
14699 # FIXME: Setting linknames here is a bad hack.
14700 archive_cmds_F77
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14701 # The linker will automatically build a .lib file if we build a DLL.
14702 old_archive_From_new_cmds_F77
='true'
14703 # FIXME: Should let the user specify the lib program.
14704 old_archive_cmds_F77
='lib -OUT:$oldlib$oldobjs$old_deplibs'
14705 fix_srcfile_path_F77
='`cygpath -w "$srcfile"`'
14706 enable_shared_with_static_runtimes_F77
=yes
14709 darwin
* | rhapsody
*)
14711 rhapsody
* | darwin1.
[012])
14712 allow_undefined_flag_F77
='${wl}-undefined ${wl}suppress'
14715 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14716 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14718 case ${MACOSX_DEPLOYMENT_TARGET} in
14720 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14723 allow_undefined_flag_F77
='${wl}-undefined ${wl}dynamic_lookup'
14729 archive_cmds_need_lc_F77
=no
14730 hardcode_direct_F77
=no
14731 hardcode_automatic_F77
=yes
14732 hardcode_shlibpath_var_F77
=unsupported
14733 whole_archive_flag_spec_F77
=''
14734 link_all_deplibs_F77
=yes
14735 if test "$GCC" = yes ; then
14736 output_verbose_link_cmd
='echo'
14737 archive_cmds_F77
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14738 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14739 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14740 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}'
14741 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}'
14743 case $cc_basename in
14745 output_verbose_link_cmd
='echo'
14746 archive_cmds_F77
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14747 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14748 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14749 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}'
14750 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}'
14760 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14761 hardcode_libdir_flag_spec_F77
='-L$libdir'
14762 hardcode_shlibpath_var_F77
=no
14769 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14770 # support. Future versions do this automatically, but an explicit c++rt0.o
14771 # does not break anything, and helps significantly (at the cost of a little
14774 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14775 hardcode_libdir_flag_spec_F77
='-R$libdir'
14776 hardcode_direct_F77
=yes
14777 hardcode_shlibpath_var_F77
=no
14780 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14782 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14783 hardcode_direct_F77
=yes
14784 hardcode_minus_L_F77
=yes
14785 hardcode_shlibpath_var_F77
=no
14788 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14789 freebsd
* | dragonfly
*)
14790 archive_cmds_F77
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14791 hardcode_libdir_flag_spec_F77
='-R$libdir'
14792 hardcode_direct_F77
=yes
14793 hardcode_shlibpath_var_F77
=no
14797 if test "$GCC" = yes; then
14798 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'
14800 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'
14802 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14803 hardcode_libdir_separator_F77
=:
14804 hardcode_direct_F77
=yes
14806 # hardcode_minus_L: Not really in the search PATH,
14807 # but as the default location of the library.
14808 hardcode_minus_L_F77
=yes
14809 export_dynamic_flag_spec_F77
='${wl}-E'
14813 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
14814 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14816 archive_cmds_F77
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14818 if test "$with_gnu_ld" = no
; then
14819 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14820 hardcode_libdir_separator_F77
=:
14822 hardcode_direct_F77
=yes
14823 export_dynamic_flag_spec_F77
='${wl}-E'
14825 # hardcode_minus_L: Not really in the search PATH,
14826 # but as the default location of the library.
14827 hardcode_minus_L_F77
=yes
14832 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
14835 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14838 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14841 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14847 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14850 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14853 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14857 if test "$with_gnu_ld" = no
; then
14858 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14859 hardcode_libdir_separator_F77
=:
14863 hardcode_libdir_flag_spec_ld_F77
='+b $libdir'
14864 hardcode_direct_F77
=no
14865 hardcode_shlibpath_var_F77
=no
14868 hardcode_direct_F77
=yes
14869 export_dynamic_flag_spec_F77
='${wl}-E'
14871 # hardcode_minus_L: Not really in the search PATH,
14872 # but as the default location of the library.
14873 hardcode_minus_L_F77
=yes
14879 irix5
* | irix6
* | nonstopux
*)
14880 if test "$GCC" = yes; then
14881 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'
14883 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'
14884 hardcode_libdir_flag_spec_ld_F77
='-rpath $libdir'
14886 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14887 hardcode_libdir_separator_F77
=:
14888 link_all_deplibs_F77
=yes
14892 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14893 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14895 archive_cmds_F77
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14897 hardcode_libdir_flag_spec_F77
='-R$libdir'
14898 hardcode_direct_F77
=yes
14899 hardcode_shlibpath_var_F77
=no
14903 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14904 hardcode_direct_F77
=yes
14905 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14906 hardcode_libdir_separator_F77
=:
14907 hardcode_shlibpath_var_F77
=no
14911 if test -f /usr
/libexec
/ld.so
; then
14912 hardcode_direct_F77
=yes
14913 hardcode_shlibpath_var_F77
=no
14914 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14915 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14916 archive_expsym_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14917 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14918 export_dynamic_flag_spec_F77
='${wl}-E'
14921 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
14922 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14923 hardcode_libdir_flag_spec_F77
='-R$libdir'
14926 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14927 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14937 hardcode_libdir_flag_spec_F77
='-L$libdir'
14938 hardcode_minus_L_F77
=yes
14939 allow_undefined_flag_F77
=unsupported
14940 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'
14941 old_archive_From_new_cmds_F77
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14945 if test "$GCC" = yes; then
14946 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
14947 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'
14949 allow_undefined_flag_F77
=' -expect_unresolved \*'
14950 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'
14952 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14953 hardcode_libdir_separator_F77
=:
14956 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
14957 if test "$GCC" = yes; then
14958 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
14959 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'
14960 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14962 allow_undefined_flag_F77
=' -expect_unresolved \*'
14963 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'
14964 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~
14965 $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'
14967 # Both c and cxx compiler support -rpath directly
14968 hardcode_libdir_flag_spec_F77
='-rpath $libdir'
14970 hardcode_libdir_separator_F77
=:
14974 no_undefined_flag_F77
=' -z text'
14975 if test "$GCC" = yes; then
14977 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14978 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14979 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14982 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14983 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14984 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14986 hardcode_libdir_flag_spec_F77
='-R$libdir'
14987 hardcode_shlibpath_var_F77
=no
14989 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
14991 # The compiler driver will combine and reorder linker options,
14992 # but understands `-z linker_flag'. GCC discards it without `$wl',
14993 # but is careful enough not to reorder.
14994 # Supported since Solaris 2.6 (maybe 2.5.1?)
14995 if test "$GCC" = yes; then
14996 whole_archive_flag_spec_F77
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14998 whole_archive_flag_spec_F77
='-z allextract$convenience -z defaultextract'
15002 link_all_deplibs_F77
=yes
15006 if test "x$host_vendor" = xsequent
; then
15007 # Use $CC to link under sequent, because it throws in some extra .o
15008 # files that make .init and .fini sections work.
15009 archive_cmds_F77
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15011 archive_cmds_F77
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15013 hardcode_libdir_flag_spec_F77
='-L$libdir'
15014 hardcode_direct_F77
=yes
15015 hardcode_minus_L_F77
=yes
15016 hardcode_shlibpath_var_F77
=no
15020 case $host_vendor in
15022 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15023 hardcode_direct_F77
=yes # is this really true???
15026 ## LD is ld it makes a PLAMLIB
15027 ## CC just makes a GrossModule.
15028 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15029 reload_cmds_F77
='$CC -r -o $output$reload_objs'
15030 hardcode_direct_F77
=no
15033 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15034 hardcode_direct_F77
=no
#Motorola manual says yes, but my tests say they lie
15037 runpath_var
='LD_RUN_PATH'
15038 hardcode_shlibpath_var_F77
=no
15042 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15043 hardcode_shlibpath_var_F77
=no
15044 export_dynamic_flag_spec_F77
='-Bexport'
15048 if test -d /usr
/nec
; then
15049 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15050 hardcode_shlibpath_var_F77
=no
15051 runpath_var
=LD_RUN_PATH
15052 hardcode_runpath_var
=yes
15057 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
15058 no_undefined_flag_F77
='${wl}-z,text'
15059 archive_cmds_need_lc_F77
=no
15060 hardcode_shlibpath_var_F77
=no
15061 runpath_var
='LD_RUN_PATH'
15063 if test "$GCC" = yes; then
15064 archive_cmds_F77
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15065 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15067 archive_cmds_F77
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15068 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15072 sysv5
* | sco3.2v5
* | sco5v6
*)
15073 # Note: We can NOT use -z defs as we might desire, because we do not
15074 # link with -lc, and that would cause any symbols used from libc to
15075 # always be unresolved, which means just about no library would
15076 # ever link correctly. If we're not using GNU ld we use -z text
15077 # though, which does catch some bad symbols but isn't as heavy-handed
15079 no_undefined_flag_F77
='${wl}-z,text'
15080 allow_undefined_flag_F77
='${wl}-z,nodefs'
15081 archive_cmds_need_lc_F77
=no
15082 hardcode_shlibpath_var_F77
=no
15083 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15084 hardcode_libdir_separator_F77
=':'
15085 link_all_deplibs_F77
=yes
15086 export_dynamic_flag_spec_F77
='${wl}-Bexport'
15087 runpath_var
='LD_RUN_PATH'
15089 if test "$GCC" = yes; then
15090 archive_cmds_F77
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15091 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15093 archive_cmds_F77
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15094 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15099 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15100 hardcode_libdir_flag_spec_F77
='-L$libdir'
15101 hardcode_shlibpath_var_F77
=no
15110 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15111 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15112 test "$ld_shlibs_F77" = no
&& can_build_shared
=no
15115 # Do we need to explicitly link libc?
15117 case "x$archive_cmds_need_lc_F77" in
15119 # Assume -lc should be added
15120 archive_cmds_need_lc_F77
=yes
15122 if test "$enable_shared" = yes && test "$GCC" = yes; then
15123 case $archive_cmds_F77 in
15125 # FIXME: we may have to deal with multi-command sequences.
15128 # Test whether the compiler implicitly links with -lc since on some
15129 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15130 # to ld, don't add -lc before -lgcc.
15131 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15132 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15134 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
15136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15137 (eval $ac_compile) 2>&5
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); } 2>conftest.err
; then
15143 libobjs
=conftest.
$ac_objext
15145 wl
=$lt_prog_compiler_wl_F77
15146 pic_flag
=$lt_prog_compiler_pic_F77
15152 lt_save_allow_undefined_flag
=$allow_undefined_flag_F77
15153 allow_undefined_flag_F77
=
15154 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15155 (eval $archive_cmds_F77 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 (exit $ac_status); }
15160 archive_cmds_need_lc_F77
=no
15162 archive_cmds_need_lc_F77
=yes
15164 allow_undefined_flag_F77
=$lt_save_allow_undefined_flag
15166 cat conftest.err
1>&5
15169 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15170 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15177 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15178 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15179 library_names_spec
=
15180 libname_spec
='lib$name'
15184 postuninstall_cmds
=
15188 shlibpath_overrides_runpath
=unknown
15190 dynamic_linker
="$host_os ld.so"
15191 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
15193 need_lib_prefix
=unknown
15194 hardcode_into_libs
=no
15196 # when you set need_version to no, make sure it does not cause -set_version
15197 # flags to be left without arguments
15198 need_version
=unknown
15203 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
15204 shlibpath_var
=LIBPATH
15206 # AIX 3 has no versioning support, so we append a major version to the name.
15207 soname_spec
='${libname}${release}${shared_ext}$major'
15214 hardcode_into_libs
=yes
15215 if test "$host_cpu" = ia64
; then
15216 # AIX 5 supports IA64
15217 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15218 shlibpath_var
=LD_LIBRARY_PATH
15220 # With GCC up to 2.95.x, collect2 would create an import file
15221 # for dependence libraries. The import file would start with
15222 # the line `#! .'. This would cause the generated library to
15223 # depend on `.', always an invalid library. This was fixed in
15224 # development snapshots of GCC prior to 3.0.
15226 aix4 | aix4.
[01] | aix4.
[01].
*)
15227 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15229 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
15232 can_build_shared
=no
15236 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15237 # soname into executable. Probably we can add versioning support to
15238 # collect2, so additional links can be useful in future.
15239 if test "$aix_use_runtimelinking" = yes; then
15240 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15241 # instead of lib<name>.a to let people know that these are not
15242 # typical AIX shared libraries.
15243 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15245 # We preserve .a as extension for shared libraries through AIX4.2
15246 # and later when we are not doing run time linking.
15247 library_names_spec
='${libname}${release}.a $libname.a'
15248 soname_spec
='${libname}${release}${shared_ext}$major'
15250 shlibpath_var
=LIBPATH
15255 library_names_spec
='$libname.ixlibrary $libname.a'
15256 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15257 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'
15261 library_names_spec
='${libname}${shared_ext}'
15262 dynamic_linker
="$host_os ld.so"
15263 shlibpath_var
=LIBRARY_PATH
15269 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15270 soname_spec
='${libname}${release}${shared_ext}$major'
15271 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
15272 shlibpath_var
=LD_LIBRARY_PATH
15273 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15274 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
15275 # the default ld.so.conf also contains /usr/contrib/lib and
15276 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15277 # libtool to hard-code these into programs
15280 cygwin
* | mingw
* | pw32
*)
15281 version_type
=windows
15286 case $GCC,$host_os in
15287 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
15288 library_names_spec
='$libname.dll.a'
15289 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15290 postinstall_cmds
='base_file=`basename \${file}`~
15291 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15292 dldir=$destdir/`dirname \$dlpath`~
15293 test -d \$dldir || mkdir -p \$dldir~
15294 $install_prog $dir/$dlname \$dldir/$dlname~
15295 chmod a+x \$dldir/$dlname'
15296 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15297 dlpath=$dir/\$dldll~
15299 shlibpath_overrides_runpath
=yes
15303 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15304 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15305 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
15308 # MinGW DLLs use traditional 'lib' prefix
15309 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15310 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15311 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
15312 # It is most probably a Windows format PATH printed by
15313 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15314 # path with ; separators, and with drive letters. We can handle the
15315 # drive letters (cygwin fileutils understands them), so leave them,
15316 # especially as we might pass files found there to a mingw objdump,
15317 # which wouldn't understand a cygwinified path. Ahh.
15318 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15320 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15324 # pw32 DLLs use 'pw' prefix rather than 'lib'
15325 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15331 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15334 dynamic_linker
='Win32 ld.exe'
15335 # FIXME: first we should search . and the directory the executable is in
15339 darwin
* | rhapsody
*)
15340 dynamic_linker
="$host_os dyld"
15341 version_type
=darwin
15344 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15345 soname_spec
='${libname}${release}${major}$shared_ext'
15346 shlibpath_overrides_runpath
=yes
15347 shlibpath_var
=DYLD_LIBRARY_PATH
15348 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
15350 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
15357 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15358 soname_spec
='${libname}${release}${shared_ext}$major'
15359 shlibpath_var
=LD_LIBRARY_PATH
15366 freebsd
* | dragonfly
*)
15367 # DragonFly does not have aout. When/if they implement a new
15368 # versioning mechanism, adjust this.
15369 if test -x /usr
/bin
/objformat
; then
15370 objformat
=`/usr/bin/objformat`
15373 freebsd
[123]*) objformat
=aout
;;
15374 *) objformat
=elf
;;
15377 version_type
=freebsd-
$objformat
15378 case $version_type in
15380 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15385 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15389 shlibpath_var
=LD_LIBRARY_PATH
15392 shlibpath_overrides_runpath
=yes
15394 freebsd3.
[01]* | freebsdelf3.
[01]*)
15395 shlibpath_overrides_runpath
=yes
15396 hardcode_into_libs
=yes
15398 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
15399 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
15400 shlibpath_overrides_runpath
=no
15401 hardcode_into_libs
=yes
15403 *) # from 4.6 on, and DragonFly
15404 shlibpath_overrides_runpath
=yes
15405 hardcode_into_libs
=yes
15414 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15415 soname_spec
='${libname}${release}${shared_ext}$major'
15416 shlibpath_var
=LD_LIBRARY_PATH
15417 hardcode_into_libs
=yes
15420 hpux9
* | hpux10
* | hpux11
*)
15421 # Give a soname corresponding to the major version so that dld.sl refuses to
15422 # link against other versions.
15429 hardcode_into_libs
=yes
15430 dynamic_linker
="$host_os dld.so"
15431 shlibpath_var
=LD_LIBRARY_PATH
15432 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
15433 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15434 soname_spec
='${libname}${release}${shared_ext}$major'
15435 if test "X$HPUX_IA64_MODE" = X32
; then
15436 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15438 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
15440 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15444 hardcode_into_libs
=yes
15445 dynamic_linker
="$host_os dld.sl"
15446 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
15447 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
15448 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15449 soname_spec
='${libname}${release}${shared_ext}$major'
15450 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15451 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15455 dynamic_linker
="$host_os dld.sl"
15456 shlibpath_var
=SHLIB_PATH
15457 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
15458 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15459 soname_spec
='${libname}${release}${shared_ext}$major'
15462 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15463 postinstall_cmds
='chmod 555 $lib'
15470 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15471 soname_spec
='${libname}${release}${shared_ext}$major'
15472 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
15473 shlibpath_var
=LD_LIBRARY_PATH
15474 shlibpath_overrides_runpath
=no
15475 hardcode_into_libs
=yes
15478 irix5
* | irix6
* | nonstopux
*)
15480 nonstopux
*) version_type
=nonstopux
;;
15482 if test "$lt_cv_prog_gnu_ld" = yes; then
15490 soname_spec
='${libname}${release}${shared_ext}$major'
15491 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15493 irix5
* | nonstopux
*)
15494 libsuff
= shlibsuff
=
15497 case $LD in # libtool.m4 will add one of these switches to LD
15498 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
15499 libsuff
= shlibsuff
= libmagic
=32-bit;;
15500 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
15501 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
15502 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
15503 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
15504 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
15508 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
15509 shlibpath_overrides_runpath
=no
15510 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15511 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
15512 hardcode_into_libs
=yes
15515 # No shared lib support for Linux oldld, aout, or coff.
15516 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
15520 # This must be Linux ELF.
15521 linux
* | k
*bsd
*-gnu)
15525 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15526 soname_spec
='${libname}${release}${shared_ext}$major'
15527 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15528 shlibpath_var
=LD_LIBRARY_PATH
15529 shlibpath_overrides_runpath
=no
15530 # This implies no fast_install, which is unacceptable.
15531 # Some rework will be needed to allow for fast_install
15532 # before this can be enabled.
15533 hardcode_into_libs
=yes
15534 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15535 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
15537 # Append ld.so.conf contents to the search path
15538 if test -f /etc
/ld.so.conf
; then
15539 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' ' '`
15540 sys_lib_dlsearch_path_spec
="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15543 # We used to test for /lib/ld.so.1 and disable shared libraries on
15544 # powerpc, because MkLinux only supported shared libraries with the
15545 # GNU dynamic linker. Since this was broken with cross compilers,
15546 # most powerpc-linux boxes support dynamic linking these days and
15547 # people can always --disable-shared, the test was removed, and we
15548 # assume the GNU/Linux dynamic linker is in use.
15549 dynamic_linker
='GNU/Linux ld.so'
15556 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
15557 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15558 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15559 dynamic_linker
='NetBSD (a.out) ld.so'
15561 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15562 soname_spec
='${libname}${release}${shared_ext}$major'
15563 dynamic_linker
='NetBSD ld.elf_so'
15565 shlibpath_var
=LD_LIBRARY_PATH
15566 shlibpath_overrides_runpath
=yes
15567 hardcode_into_libs
=yes
15572 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15573 shlibpath_var
=LD_LIBRARY_PATH
15574 shlibpath_overrides_runpath
=yes
15581 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15582 soname_spec
='${libname}${release}${shared_ext}$major'
15583 shlibpath_var
=LD_LIBRARY_PATH
15584 shlibpath_overrides_runpath
=yes
15589 sys_lib_dlsearch_path_spec
="/usr/lib"
15591 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15593 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
15594 *) need_version
=no
;;
15596 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15597 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15598 shlibpath_var
=LD_LIBRARY_PATH
15599 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15601 openbsd2.
[89] | openbsd2.
[89].
*)
15602 shlibpath_overrides_runpath
=no
15605 shlibpath_overrides_runpath
=yes
15609 shlibpath_overrides_runpath
=yes
15614 libname_spec
='$name'
15617 library_names_spec
='$libname${shared_ext} $libname.a'
15618 dynamic_linker
='OS/2 ld.exe'
15619 shlibpath_var
=LIBPATH
15622 osf3
* | osf4
* | osf5
*)
15626 soname_spec
='${libname}${release}${shared_ext}$major'
15627 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15628 shlibpath_var
=LD_LIBRARY_PATH
15629 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15630 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
15641 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15642 soname_spec
='${libname}${release}${shared_ext}$major'
15643 shlibpath_var
=LD_LIBRARY_PATH
15644 shlibpath_overrides_runpath
=yes
15645 hardcode_into_libs
=yes
15646 # ldd complains unless libraries are executable
15647 postinstall_cmds
='chmod +x $lib'
15652 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15653 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15654 shlibpath_var
=LD_LIBRARY_PATH
15655 shlibpath_overrides_runpath
=yes
15656 if test "$with_gnu_ld" = yes; then
15664 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15665 soname_spec
='${libname}${release}${shared_ext}$major'
15666 shlibpath_var
=LD_LIBRARY_PATH
15667 case $host_vendor in
15669 shlibpath_overrides_runpath
=no
15671 export_dynamic_flag_spec
='${wl}-Blargedynsym'
15672 runpath_var
=LD_RUN_PATH
15680 shlibpath_overrides_runpath
=no
15681 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
15687 if test -d /usr
/nec
;then
15689 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15690 soname_spec
='$libname${shared_ext}.$major'
15691 shlibpath_var
=LD_LIBRARY_PATH
15695 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
15696 version_type
=freebsd-elf
15699 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15700 soname_spec
='${libname}${release}${shared_ext}$major'
15701 shlibpath_var
=LD_LIBRARY_PATH
15702 hardcode_into_libs
=yes
15703 if test "$with_gnu_ld" = yes; then
15704 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15705 shlibpath_overrides_runpath
=no
15707 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
15708 shlibpath_overrides_runpath
=yes
15711 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
15715 sys_lib_dlsearch_path_spec
='/usr/lib'
15720 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15721 soname_spec
='${libname}${release}${shared_ext}$major'
15722 shlibpath_var
=LD_LIBRARY_PATH
15729 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15730 echo "${ECHO_T}$dynamic_linker" >&6; }
15731 test "$dynamic_linker" = no
&& can_build_shared
=no
15733 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
15734 if test "$GCC" = yes; then
15735 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15738 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15739 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15740 hardcode_action_F77
=
15741 if test -n "$hardcode_libdir_flag_spec_F77" || \
15742 test -n "$runpath_var_F77" || \
15743 test "X$hardcode_automatic_F77" = "Xyes" ; then
15745 # We can hardcode non-existant directories.
15746 if test "$hardcode_direct_F77" != no
&&
15747 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15748 # have to relink, otherwise we might link with an installed library
15749 # when we should be linking with a yet-to-be-installed one
15750 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15751 test "$hardcode_minus_L_F77" != no
; then
15752 # Linking always hardcodes the temporary library directory.
15753 hardcode_action_F77
=relink
15755 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15756 hardcode_action_F77
=immediate
15759 # We cannot hardcode anything, or else we can only hardcode existing
15761 hardcode_action_F77
=unsupported
15763 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15764 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15766 if test "$hardcode_action_F77" = relink
; then
15767 # Fast installation is not supported
15768 enable_fast_install
=no
15769 elif test "$shlibpath_overrides_runpath" = yes ||
15770 test "$enable_shared" = no
; then
15771 # Fast installation is not necessary
15772 enable_fast_install
=needless
15776 # The else clause should only fire when bootstrapping the
15777 # libtool distribution, otherwise you forgot to ship ltmain.sh
15778 # with your package, and you will get complaints that there are
15779 # no rules to generate ltmain.sh.
15780 if test -f "$ltmain"; then
15781 # See if we are running on zsh, and set the options which allow our commands through
15782 # without removal of \ escapes.
15783 if test -n "${ZSH_VERSION+set}" ; then
15784 setopt NO_GLOB_SUBST
15786 # Now quote all the things that may contain metacharacters while being
15787 # careful not to overquote the AC_SUBSTed values. We take copies of the
15788 # variables and quote the copies for generation of the libtool script.
15789 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15791 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15792 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15793 deplibs_check_method reload_flag reload_cmds need_locks \
15794 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15795 lt_cv_sys_global_symbol_to_c_name_address \
15796 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15797 old_postinstall_cmds old_postuninstall_cmds \
15801 lt_prog_compiler_wl_F77 \
15802 lt_prog_compiler_pic_F77 \
15803 lt_prog_compiler_static_F77 \
15804 lt_prog_compiler_no_builtin_flag_F77 \
15805 export_dynamic_flag_spec_F77 \
15806 thread_safe_flag_spec_F77 \
15807 whole_archive_flag_spec_F77 \
15808 enable_shared_with_static_runtimes_F77 \
15809 old_archive_cmds_F77 \
15810 old_archive_from_new_cmds_F77 \
15811 predep_objects_F77 \
15812 postdep_objects_F77 \
15815 compiler_lib_search_path_F77 \
15817 archive_expsym_cmds_F77 \
15818 postinstall_cmds_F77 \
15819 postuninstall_cmds_F77 \
15820 old_archive_from_expsyms_cmds_F77 \
15821 allow_undefined_flag_F77 \
15822 no_undefined_flag_F77 \
15823 export_symbols_cmds_F77 \
15824 hardcode_libdir_flag_spec_F77 \
15825 hardcode_libdir_flag_spec_ld_F77 \
15826 hardcode_libdir_separator_F77 \
15827 hardcode_automatic_F77 \
15829 module_expsym_cmds_F77 \
15830 lt_cv_prog_compiler_c_o_F77 \
15831 fix_srcfile_path_F77 \
15832 exclude_expsyms_F77 \
15833 include_expsyms_F77
; do
15836 old_archive_cmds_F77 | \
15837 old_archive_from_new_cmds_F77 | \
15838 archive_cmds_F77 | \
15839 archive_expsym_cmds_F77 | \
15840 module_cmds_F77 | \
15841 module_expsym_cmds_F77 | \
15842 old_archive_from_expsyms_cmds_F77 | \
15843 export_symbols_cmds_F77 | \
15844 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15845 postinstall_cmds | postuninstall_cmds | \
15846 old_postinstall_cmds | old_postuninstall_cmds | \
15847 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
15848 # Double-quote double-evaled strings.
15849 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15852 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15858 *'\$0 --fallback-echo"')
15859 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15865 cat <<__EOF__ >> "$cfgfile"
15866 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15868 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15870 # Shell to use when invoking shell scripts.
15873 # Whether or not to build shared libraries.
15874 build_libtool_libs=$enable_shared
15876 # Whether or not to build static libraries.
15877 build_old_libs=$enable_static
15879 # Whether or not to add -lc for building shared libraries.
15880 build_libtool_need_lc=$archive_cmds_need_lc_F77
15882 # Whether or not to disallow shared libs when runtime libs are static
15883 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15885 # Whether or not to optimize for fast installation.
15886 fast_install=$enable_fast_install
15889 host_alias=$host_alias
15893 # The build system.
15894 build_alias=$build_alias
15898 # An echo program that does not interpret backslashes.
15903 AR_FLAGS=$lt_AR_FLAGS
15908 # LTCC compiler flags.
15909 LTCFLAGS=$lt_LTCFLAGS
15911 # A language-specific compiler.
15912 CC=$lt_compiler_F77
15914 # Is the compiler the GNU C compiler?
15920 # The linker used to build libraries.
15923 # Whether we need hard or soft links.
15926 # A BSD-compatible nm program.
15929 # A symbol stripping program
15932 # Used to examine libraries when file_magic_cmd begins "file"
15933 MAGIC_CMD=$MAGIC_CMD
15935 # Used on cygwin: DLL creation program.
15938 # Used on cygwin: object dumper.
15941 # Used on cygwin: assembler.
15944 # The name of the directory that contains temporary libtool files.
15947 # How to create reloadable object files.
15948 reload_flag=$lt_reload_flag
15949 reload_cmds=$lt_reload_cmds
15951 # How to pass a linker flag through the compiler.
15952 wl=$lt_lt_prog_compiler_wl_F77
15954 # Object file suffix (normally "o").
15955 objext="$ac_objext"
15957 # Old archive suffix (normally "a").
15960 # Shared library suffix (normally ".so").
15961 shrext_cmds='$shrext_cmds'
15963 # Executable file suffix (normally "").
15966 # Additional compiler flags for building library objects.
15967 pic_flag=$lt_lt_prog_compiler_pic_F77
15970 # What is the maximum length of a command?
15971 max_cmd_len=$lt_cv_sys_max_cmd_len
15973 # Does compiler simultaneously support -c and -o options?
15974 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15976 # Must we lock files when doing compilation?
15977 need_locks=$lt_need_locks
15979 # Do we need the lib prefix for modules?
15980 need_lib_prefix=$need_lib_prefix
15982 # Do we need a version for libraries?
15983 need_version=$need_version
15985 # Whether dlopen is supported.
15986 dlopen_support=$enable_dlopen
15988 # Whether dlopen of programs is supported.
15989 dlopen_self=$enable_dlopen_self
15991 # Whether dlopen of statically linked programs is supported.
15992 dlopen_self_static=$enable_dlopen_self_static
15994 # Compiler flag to prevent dynamic linking.
15995 link_static_flag=$lt_lt_prog_compiler_static_F77
15997 # Compiler flag to turn off builtin functions.
15998 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16000 # Compiler flag to allow reflexive dlopens.
16001 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16003 # Compiler flag to generate shared objects directly from archives.
16004 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16006 # Compiler flag to generate thread-safe objects.
16007 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16009 # Library versioning type.
16010 version_type=$version_type
16012 # Format of library name prefix.
16013 libname_spec=$lt_libname_spec
16015 # List of archive names. First name is the real one, the rest are links.
16016 # The last name is the one that the linker finds with -lNAME.
16017 library_names_spec=$lt_library_names_spec
16019 # The coded name of the library, if different from the real name.
16020 soname_spec=$lt_soname_spec
16022 # Commands used to build and install an old-style archive.
16024 old_archive_cmds=$lt_old_archive_cmds_F77
16025 old_postinstall_cmds=$lt_old_postinstall_cmds
16026 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16028 # Create an old-style archive from a shared archive.
16029 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16031 # Create a temporary old-style archive to link instead of a shared archive.
16032 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16034 # Commands used to build and install a shared archive.
16035 archive_cmds=$lt_archive_cmds_F77
16036 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16037 postinstall_cmds=$lt_postinstall_cmds
16038 postuninstall_cmds=$lt_postuninstall_cmds
16040 # Commands used to build a loadable module (assumed same as above if empty)
16041 module_cmds=$lt_module_cmds_F77
16042 module_expsym_cmds=$lt_module_expsym_cmds_F77
16044 # Commands to strip libraries.
16045 old_striplib=$lt_old_striplib
16046 striplib=$lt_striplib
16048 # Dependencies to place before the objects being linked to create a
16050 predep_objects=$lt_predep_objects_F77
16052 # Dependencies to place after the objects being linked to create a
16054 postdep_objects=$lt_postdep_objects_F77
16056 # Dependencies to place before the objects being linked to create a
16058 predeps=$lt_predeps_F77
16060 # Dependencies to place after the objects being linked to create a
16062 postdeps=$lt_postdeps_F77
16064 # The library search path used internally by the compiler when linking
16065 # a shared library.
16066 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16068 # Method to check whether dependent libraries are shared objects.
16069 deplibs_check_method=$lt_deplibs_check_method
16071 # Command to use when deplibs_check_method == file_magic.
16072 file_magic_cmd=$lt_file_magic_cmd
16074 # Flag that allows shared libraries with undefined symbols to be built.
16075 allow_undefined_flag=$lt_allow_undefined_flag_F77
16077 # Flag that forces no undefined symbols.
16078 no_undefined_flag=$lt_no_undefined_flag_F77
16080 # Commands used to finish a libtool library installation in a directory.
16081 finish_cmds=$lt_finish_cmds
16083 # Same as above, but a single script fragment to be evaled but not shown.
16084 finish_eval=$lt_finish_eval
16086 # Take the output of nm and produce a listing of raw symbols and C names.
16087 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16089 # Transform the output of nm in a proper C declaration
16090 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16092 # Transform the output of nm in a C name address pair
16093 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16095 # This is the shared library runtime path variable.
16096 runpath_var=$runpath_var
16098 # This is the shared library path variable.
16099 shlibpath_var=$shlibpath_var
16101 # Is shlibpath searched before the hard-coded library search path?
16102 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16104 # How to hardcode a shared library path into an executable.
16105 hardcode_action=$hardcode_action_F77
16107 # Whether we should hardcode library paths into libraries.
16108 hardcode_into_libs=$hardcode_into_libs
16110 # Flag to hardcode \$libdir into a binary during linking.
16111 # This must work even if \$libdir does not exist.
16112 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16114 # If ld is used when linking, flag to hardcode \$libdir into
16115 # a binary during linking. This must work even if \$libdir does
16117 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16119 # Whether we need a single -rpath flag with a separated argument.
16120 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16122 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16123 # resulting binary.
16124 hardcode_direct=$hardcode_direct_F77
16126 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16127 # resulting binary.
16128 hardcode_minus_L=$hardcode_minus_L_F77
16130 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16131 # the resulting binary.
16132 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16134 # Set to yes if building a shared library automatically hardcodes DIR into the library
16135 # and all subsequent libraries and executables linked against it.
16136 hardcode_automatic=$hardcode_automatic_F77
16138 # Variables whose values should be saved in libtool wrapper scripts and
16139 # restored at relink time.
16140 variables_saved_for_relink="$variables_saved_for_relink"
16142 # Whether libtool must link a program against all its dependency libraries.
16143 link_all_deplibs=$link_all_deplibs_F77
16145 # Compile-time system search path for libraries
16146 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16148 # Run-time system search path for libraries
16149 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16151 # Fix the shell variable \$srcfile for the compiler.
16152 fix_srcfile_path=$lt_fix_srcfile_path
16154 # Set to yes if exported symbols are required.
16155 always_export_symbols=$always_export_symbols_F77
16157 # The commands to list exported symbols.
16158 export_symbols_cmds=$lt_export_symbols_cmds_F77
16160 # The commands to extract the exported symbol list from a shared archive.
16161 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16163 # Symbols that should not be listed in the preloaded symbols.
16164 exclude_expsyms=$lt_exclude_expsyms_F77
16166 # Symbols that must always be exported.
16167 include_expsyms=$lt_include_expsyms_F77
16169 # ### END LIBTOOL TAG CONFIG: $tagname
16175 # If there is no Makefile yet, we rely on a make rule to execute
16176 # `config.status --recheck' to rerun these tests and create the
16177 # libtool script then.
16178 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16179 if test -f "$ltmain_in"; then
16180 test -f Makefile
&& make "$ltmain"
16186 ac_cpp
='$CXXCPP $CPPFLAGS'
16187 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16188 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16189 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
16199 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16202 # Source file extension for Java test sources.
16205 # Object file extension for compiled Java test sources.
16209 # Code to be used in simple compile tests
16210 lt_simple_compile_test_code
="class foo {}"
16212 # Code to be used in simple link tests
16213 lt_simple_link_test_code
='public class conftest { public static void main(String[] argv) {}; }'
16215 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16217 # If no C compiler was specified, use CC.
16220 # If no C compiler flags were specified, use CFLAGS.
16221 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
16223 # Allow CC to be a program name with arguments.
16227 # save warnings/boilerplate of simple test code
16228 ac_outfile
=conftest.
$ac_objext
16229 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
16230 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
16231 _lt_compiler_boilerplate
=`cat conftest.err`
16234 ac_outfile
=conftest.
$ac_objext
16235 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
16236 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
16237 _lt_linker_boilerplate
=`cat conftest.err`
16241 # Allow CC to be a program name with arguments.
16246 for cc_temp
in $compiler""; do
16248 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
16249 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
16254 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16257 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16258 archive_cmds_need_lc_GCJ
=no
16260 old_archive_cmds_GCJ
=$old_archive_cmds
16263 lt_prog_compiler_no_builtin_flag_GCJ
=
16265 if test "$GCC" = yes; then
16266 lt_prog_compiler_no_builtin_flag_GCJ
=' -fno-builtin'
16269 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16270 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16271 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16272 echo $ECHO_N "(cached) $ECHO_C" >&6
16274 lt_cv_prog_compiler_rtti_exceptions
=no
16275 ac_outfile
=conftest.
$ac_objext
16276 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16277 lt_compiler_flag
="-fno-rtti -fno-exceptions"
16278 # Insert the option either (1) after the last *FLAGS variable, or
16279 # (2) before a word containing "conftest.", or (3) at the end.
16280 # Note that $ac_compile itself does not contain backslashes and begins
16281 # with a dollar sign (not a hyphen), so the echo should work correctly.
16282 # The option is referenced via a variable to avoid confusing sed.
16283 lt_compile
=`echo "$ac_compile" | $SED \
16284 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16285 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16286 -e 's:$: $lt_compiler_flag:'`
16287 (eval echo "\"\$as_me:16287: $lt_compile\"" >&5)
16288 (eval "$lt_compile" 2>conftest.err
)
16290 cat conftest.err
>&5
16291 echo "$as_me:16291: \$? = $ac_status" >&5
16292 if (exit $ac_status) && test -s "$ac_outfile"; then
16293 # The compiler can only warn and ignore the option if not recognized
16294 # So say no if there are warnings other than the usual output.
16295 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
16296 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16297 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
16298 lt_cv_prog_compiler_rtti_exceptions
=yes
16304 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16305 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16307 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
16308 lt_prog_compiler_no_builtin_flag_GCJ
="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16315 lt_prog_compiler_wl_GCJ
=
16316 lt_prog_compiler_pic_GCJ
=
16317 lt_prog_compiler_static_GCJ
=
16319 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16320 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16322 if test "$GCC" = yes; then
16323 lt_prog_compiler_wl_GCJ
='-Wl,'
16324 lt_prog_compiler_static_GCJ
='-static'
16328 # All AIX code is PIC.
16329 if test "$host_cpu" = ia64
; then
16330 # AIX 5 now supports IA64 processor
16331 lt_prog_compiler_static_GCJ
='-Bstatic'
16336 # FIXME: we need at least 68020 code to build shared libraries, but
16337 # adding the `-m68020' flag to GCC prevents building anything better,
16339 lt_prog_compiler_pic_GCJ
='-m68020 -resident32 -malways-restore-a4'
16342 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
16343 # PIC is the default for these OSes.
16346 mingw
* | cygwin
* | pw32
* | os2
*)
16347 # This hack is so that the source file can tell whether it is being
16348 # built for inclusion in a dll (and should export symbols for example).
16349 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16350 # (--disable-auto-import) libraries
16351 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
16354 darwin
* | rhapsody
*)
16355 # PIC is the default on this platform
16356 # Common symbols not allowed in MH_DYLIB files
16357 lt_prog_compiler_pic_GCJ
='-fno-common'
16361 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16362 # Instead, we relocate shared libraries at runtime.
16366 # Just because we use GCC doesn't mean we suddenly get shared libraries
16367 # on systems that don't support them.
16368 lt_prog_compiler_can_build_shared_GCJ
=no
16373 if test -d /usr
/nec
; then
16374 lt_prog_compiler_pic_GCJ
=-Kconform_pic
16379 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16380 # not for PA HP-UX.
16386 lt_prog_compiler_pic_GCJ
='-fPIC'
16392 lt_prog_compiler_pic_GCJ
='-fPIC'
16396 # PORTME Check for flag to pass linker flags through the system compiler.
16399 lt_prog_compiler_wl_GCJ
='-Wl,'
16400 if test "$host_cpu" = ia64
; then
16401 # AIX 5 now supports IA64 processor
16402 lt_prog_compiler_static_GCJ
='-Bstatic'
16404 lt_prog_compiler_static_GCJ
='-bnso -bI:/lib/syscalls.exp'
16408 # PIC is the default on this platform
16409 # Common symbols not allowed in MH_DYLIB files
16410 case $cc_basename in
16412 lt_prog_compiler_pic_GCJ
='-qnocommon'
16413 lt_prog_compiler_wl_GCJ
='-Wl,'
16418 mingw
* | cygwin
* | pw32
* | os2
*)
16419 # This hack is so that the source file can tell whether it is being
16420 # built for inclusion in a dll (and should export symbols for example).
16421 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
16424 hpux9
* | hpux10
* | hpux11
*)
16425 lt_prog_compiler_wl_GCJ
='-Wl,'
16426 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16427 # not for PA HP-UX.
16433 lt_prog_compiler_pic_GCJ
='+Z'
16436 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16437 lt_prog_compiler_static_GCJ
='${wl}-a ${wl}archive'
16440 irix5
* | irix6
* | nonstopux
*)
16441 lt_prog_compiler_wl_GCJ
='-Wl,'
16442 # PIC (with -KPIC) is the default.
16443 lt_prog_compiler_static_GCJ
='-non_shared'
16447 lt_prog_compiler_pic_GCJ
='-KPIC'
16448 lt_prog_compiler_static_GCJ
='-Bstatic'
16451 linux
* | k
*bsd
*-gnu)
16452 case $cc_basename in
16454 lt_prog_compiler_wl_GCJ
='-Wl,'
16455 lt_prog_compiler_pic_GCJ
='-KPIC'
16456 lt_prog_compiler_static_GCJ
='-static'
16458 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
16459 # Portland Group compilers (*not* the Pentium gcc compiler,
16460 # which looks to be a dead project)
16461 lt_prog_compiler_wl_GCJ
='-Wl,'
16462 lt_prog_compiler_pic_GCJ
='-fpic'
16463 lt_prog_compiler_static_GCJ
='-Bstatic'
16466 lt_prog_compiler_wl_GCJ
='-Wl,'
16467 # All Alpha code is PIC.
16468 lt_prog_compiler_static_GCJ
='-non_shared'
16471 case `$CC -V 2>&1 | sed 5q` in
16474 lt_prog_compiler_pic_GCJ
='-KPIC'
16475 lt_prog_compiler_static_GCJ
='-Bstatic'
16476 lt_prog_compiler_wl_GCJ
='-Wl,'
16479 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16480 lt_prog_compiler_pic_GCJ
='-KPIC'
16481 lt_prog_compiler_static_GCJ
='-Bstatic'
16482 lt_prog_compiler_wl_GCJ
=''
16489 osf3
* | osf4
* | osf5
*)
16490 lt_prog_compiler_wl_GCJ
='-Wl,'
16491 # All OSF/1 code is PIC.
16492 lt_prog_compiler_static_GCJ
='-non_shared'
16496 lt_prog_compiler_static_GCJ
='-non_shared'
16500 lt_prog_compiler_pic_GCJ
='-KPIC'
16501 lt_prog_compiler_static_GCJ
='-Bstatic'
16502 case $cc_basename in
16503 f77
* | f90
* | f95
*)
16504 lt_prog_compiler_wl_GCJ
='-Qoption ld ';;
16506 lt_prog_compiler_wl_GCJ
='-Wl,';;
16511 lt_prog_compiler_wl_GCJ
='-Qoption ld '
16512 lt_prog_compiler_pic_GCJ
='-PIC'
16513 lt_prog_compiler_static_GCJ
='-Bstatic'
16516 sysv4 | sysv4.2uw2
* | sysv4.3
*)
16517 lt_prog_compiler_wl_GCJ
='-Wl,'
16518 lt_prog_compiler_pic_GCJ
='-KPIC'
16519 lt_prog_compiler_static_GCJ
='-Bstatic'
16523 if test -d /usr
/nec
;then
16524 lt_prog_compiler_pic_GCJ
='-Kconform_pic'
16525 lt_prog_compiler_static_GCJ
='-Bstatic'
16529 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
16530 lt_prog_compiler_wl_GCJ
='-Wl,'
16531 lt_prog_compiler_pic_GCJ
='-KPIC'
16532 lt_prog_compiler_static_GCJ
='-Bstatic'
16536 lt_prog_compiler_wl_GCJ
='-Wl,'
16537 lt_prog_compiler_can_build_shared_GCJ
=no
16541 lt_prog_compiler_pic_GCJ
='-pic'
16542 lt_prog_compiler_static_GCJ
='-Bstatic'
16546 lt_prog_compiler_can_build_shared_GCJ
=no
16551 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16552 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16555 # Check to make sure the PIC flag actually works.
16557 if test -n "$lt_prog_compiler_pic_GCJ"; then
16559 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16560 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16561 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16562 echo $ECHO_N "(cached) $ECHO_C" >&6
16564 lt_prog_compiler_pic_works_GCJ
=no
16565 ac_outfile
=conftest.
$ac_objext
16566 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16567 lt_compiler_flag
="$lt_prog_compiler_pic_GCJ"
16568 # Insert the option either (1) after the last *FLAGS variable, or
16569 # (2) before a word containing "conftest.", or (3) at the end.
16570 # Note that $ac_compile itself does not contain backslashes and begins
16571 # with a dollar sign (not a hyphen), so the echo should work correctly.
16572 # The option is referenced via a variable to avoid confusing sed.
16573 lt_compile
=`echo "$ac_compile" | $SED \
16574 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16575 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16576 -e 's:$: $lt_compiler_flag:'`
16577 (eval echo "\"\$as_me:16577: $lt_compile\"" >&5)
16578 (eval "$lt_compile" 2>conftest.err
)
16580 cat conftest.err
>&5
16581 echo "$as_me:16581: \$? = $ac_status" >&5
16582 if (exit $ac_status) && test -s "$ac_outfile"; then
16583 # The compiler can only warn and ignore the option if not recognized
16584 # So say no if there are warnings other than the usual output.
16585 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
16586 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16587 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
16588 lt_prog_compiler_pic_works_GCJ
=yes
16594 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16595 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16597 if test x
"$lt_prog_compiler_pic_works_GCJ" = xyes
; then
16598 case $lt_prog_compiler_pic_GCJ in
16600 *) lt_prog_compiler_pic_GCJ
=" $lt_prog_compiler_pic_GCJ" ;;
16603 lt_prog_compiler_pic_GCJ
=
16604 lt_prog_compiler_can_build_shared_GCJ
=no
16609 # For platforms which do not support PIC, -DPIC is meaningless:
16611 lt_prog_compiler_pic_GCJ
=
16614 lt_prog_compiler_pic_GCJ
="$lt_prog_compiler_pic_GCJ"
16619 # Check to make sure the static flag actually works.
16621 wl
=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_GCJ\"
16622 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16623 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16624 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16625 echo $ECHO_N "(cached) $ECHO_C" >&6
16627 lt_prog_compiler_static_works_GCJ
=no
16628 save_LDFLAGS
="$LDFLAGS"
16629 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
16630 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16631 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16632 # The linker can only warn and ignore the option if not recognized
16633 # So say no if there are warnings
16634 if test -s conftest.err
; then
16635 # Append any errors to the config.log.
16636 cat conftest.err
1>&5
16637 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
16638 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16639 if diff conftest.exp conftest.er2
>/dev
/null
; then
16640 lt_prog_compiler_static_works_GCJ
=yes
16643 lt_prog_compiler_static_works_GCJ
=yes
16647 LDFLAGS
="$save_LDFLAGS"
16650 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16651 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16653 if test x
"$lt_prog_compiler_static_works_GCJ" = xyes
; then
16656 lt_prog_compiler_static_GCJ
=
16660 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16661 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16662 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16663 echo $ECHO_N "(cached) $ECHO_C" >&6
16665 lt_cv_prog_compiler_c_o_GCJ
=no
16666 $rm -r conftest
2>/dev
/null
16670 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16672 lt_compiler_flag
="-o out/conftest2.$ac_objext"
16673 # Insert the option either (1) after the last *FLAGS variable, or
16674 # (2) before a word containing "conftest.", or (3) at the end.
16675 # Note that $ac_compile itself does not contain backslashes and begins
16676 # with a dollar sign (not a hyphen), so the echo should work correctly.
16677 lt_compile
=`echo "$ac_compile" | $SED \
16678 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16679 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16680 -e 's:$: $lt_compiler_flag:'`
16681 (eval echo "\"\$as_me:16681: $lt_compile\"" >&5)
16682 (eval "$lt_compile" 2>out
/conftest.err
)
16684 cat out
/conftest.err
>&5
16685 echo "$as_me:16685: \$? = $ac_status" >&5
16686 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
16688 # The compiler can only warn and ignore the option if not recognized
16689 # So say no if there are warnings
16690 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
16691 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
16692 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
16693 lt_cv_prog_compiler_c_o_GCJ
=yes
16698 # SGI C++ compiler will create directory out/ii_files/ for
16699 # template instantiation
16700 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
16701 $rm out
/* && rmdir out
16707 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16708 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16711 hard_links
="nottested"
16712 if test "$lt_cv_prog_compiler_c_o_GCJ" = no
&& test "$need_locks" != no
; then
16713 # do not overwrite the value of need_locks provided by the user
16714 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16715 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16718 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
16720 ln conftest.a conftest.b
2>&5 || hard_links
=no
16721 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
16722 { echo "$as_me:$LINENO: result: $hard_links" >&5
16723 echo "${ECHO_T}$hard_links" >&6; }
16724 if test "$hard_links" = no
; then
16725 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16726 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16733 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16734 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16737 allow_undefined_flag_GCJ
=
16738 enable_shared_with_static_runtimes_GCJ
=no
16740 archive_expsym_cmds_GCJ
=
16741 old_archive_From_new_cmds_GCJ
=
16742 old_archive_from_expsyms_cmds_GCJ
=
16743 export_dynamic_flag_spec_GCJ
=
16744 whole_archive_flag_spec_GCJ
=
16745 thread_safe_flag_spec_GCJ
=
16746 hardcode_libdir_flag_spec_GCJ
=
16747 hardcode_libdir_flag_spec_ld_GCJ
=
16748 hardcode_libdir_separator_GCJ
=
16749 hardcode_direct_GCJ
=no
16750 hardcode_minus_L_GCJ
=no
16751 hardcode_shlibpath_var_GCJ
=unsupported
16752 link_all_deplibs_GCJ
=unknown
16753 hardcode_automatic_GCJ
=no
16755 module_expsym_cmds_GCJ
=
16756 always_export_symbols_GCJ
=no
16757 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16758 # include_expsyms should be a list of space-separated symbols to be *always*
16759 # included in the symbol list
16760 include_expsyms_GCJ
=
16761 # exclude_expsyms can be an extended regexp of symbols to exclude
16762 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16763 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16764 # as well as any symbol that contains `d'.
16765 exclude_expsyms_GCJ
="_GLOBAL_OFFSET_TABLE_"
16766 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16767 # platforms (ab)use it in PIC code, but their linkers get confused if
16768 # the symbol is explicitly referenced. Since portable code cannot
16769 # rely on this symbol name, it's probably fine to never include it in
16770 # preloaded symbol tables.
16771 extract_expsyms_cmds
=
16772 # Just being paranoid about ensuring that cc_basename is set.
16773 for cc_temp
in $compiler""; do
16775 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
16776 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
16781 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16784 cygwin
* | mingw
* | pw32
*)
16785 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16786 # When not using gcc, we currently assume that we are using
16787 # Microsoft Visual C++.
16788 if test "$GCC" != yes; then
16793 # we just hope/assume this is gcc and not c89 (= MSVC++)
16802 if test "$with_gnu_ld" = yes; then
16803 # If archive_cmds runs LD, not CC, wlarc should be empty
16806 # Set some defaults for GNU ld with shared library support. These
16807 # are reset later if shared libraries are not supported. Putting them
16808 # here allows them to be overridden if necessary.
16809 runpath_var
=LD_RUN_PATH
16810 hardcode_libdir_flag_spec_GCJ
='${wl}--rpath ${wl}$libdir'
16811 export_dynamic_flag_spec_GCJ
='${wl}--export-dynamic'
16812 # ancient GNU ld didn't support --whole-archive et. al.
16813 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
16814 whole_archive_flag_spec_GCJ
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16816 whole_archive_flag_spec_GCJ
=
16818 supports_anon_versioning
=no
16819 case `$LD -v 2>/dev/null` in
16820 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
16821 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
16822 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
16823 *\
2.11.
*) ;; # other 2.11 versions
16824 *) supports_anon_versioning
=yes ;;
16827 # See if GNU ld supports shared libraries.
16829 aix3
* | aix4
* | aix5
*)
16830 # On AIX/PPC, the GNU linker is very broken
16831 if test "$host_cpu" != ia64
; then
16835 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16836 *** to be unable to reliably create shared libraries on AIX.
16837 *** Therefore, libtool is disabling shared libraries support. If you
16838 *** really care for shared libraries, you may want to modify your PATH
16839 *** so that a non-GNU linker is found, and then restart.
16846 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)'
16847 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16848 hardcode_minus_L_GCJ
=yes
16850 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16851 # that the semantics of dynamic libraries on AmigaOS, at least up
16852 # to version 4, is to share data among multiple programs linked
16853 # with the same dynamic library. Since this doesn't match the
16854 # behavior of shared libraries on other platforms, we can't use
16860 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16861 allow_undefined_flag_GCJ
=unsupported
16862 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16863 # support --undefined. This deserves some investigation. FIXME
16864 archive_cmds_GCJ
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16870 cygwin
* | mingw
* | pw32
*)
16871 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16872 # as there is no search path for DLLs.
16873 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16874 allow_undefined_flag_GCJ
=unsupported
16875 always_export_symbols_GCJ
=no
16876 enable_shared_with_static_runtimes_GCJ
=yes
16877 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16879 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
16880 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16881 # If the export-symbols file already is a .def file (1st line
16882 # is EXPORTS), use it as is; otherwise, prepend...
16883 archive_expsym_cmds_GCJ
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16884 cp $export_symbols $output_objdir/$soname.def;
16886 echo EXPORTS > $output_objdir/$soname.def;
16887 cat $export_symbols >> $output_objdir/$soname.def;
16889 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16896 hardcode_direct_GCJ
=no
16897 hardcode_shlibpath_var_GCJ
=no
16898 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
16899 export_dynamic_flag_spec_GCJ
='${wl}-E'
16900 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16901 # Instead, shared libraries are loaded at an image base (0x10000000 by
16902 # default) and relocated if they conflict, which is a slow very memory
16903 # consuming and fragmenting process. To avoid this, we pick a random,
16904 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16905 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16906 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'
16907 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'
16910 gnu
* | linux
* | k
*bsd
*-gnu)
16911 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16913 case $cc_basename,$host_cpu in
16914 pgcc
*) # Portland Group C compiler
16915 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'
16916 tmp_addflag
=' $pic_flag'
16918 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
16919 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'
16920 tmp_addflag
=' $pic_flag -Mnomain' ;;
16921 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
16922 tmp_addflag
=' -i_dynamic' ;;
16923 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
16924 tmp_addflag
=' -i_dynamic -nofor_main' ;;
16925 ifc
* | ifort
*) # Intel Fortran compiler
16926 tmp_addflag
=' -nofor_main' ;;
16928 case `$CC -V 2>&1 | sed 5q` in
16929 *Sun\ C
*) # Sun C 5.9
16930 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'
16931 tmp_sharedflag
='-G' ;;
16932 *Sun\ F
*) # Sun Fortran 8.3
16933 tmp_sharedflag
='-G' ;;
16935 tmp_sharedflag
='-shared' ;;
16937 archive_cmds_GCJ
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16939 if test $supports_anon_versioning = yes; then
16940 archive_expsym_cmds_GCJ
='$echo "{ global:" > $output_objdir/$libname.ver~
16941 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16942 $echo "local: *; };" >> $output_objdir/$libname.ver~
16943 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16951 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
16952 archive_cmds_GCJ
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16955 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16956 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16961 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
16965 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16966 *** create shared libraries on Solaris systems. Therefore, libtool
16967 *** is disabling shared libraries support. We urge you to upgrade GNU
16968 *** binutils to release 2.9.1 or newer. Another option is to modify
16969 *** your PATH or compiler configuration so that the native linker is
16970 *** used, and then restart.
16973 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16974 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16975 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16981 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
16982 case `$LD -v 2>&1` in
16983 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
16987 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16988 *** reliably create shared libraries on SCO systems. Therefore, libtool
16989 *** is disabling shared libraries support. We urge you to upgrade GNU
16990 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16991 *** your PATH or compiler configuration so that the native linker is
16992 *** used, and then restart.
16997 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16998 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16999 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17000 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17009 archive_cmds_GCJ
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17011 hardcode_direct_GCJ
=yes
17012 hardcode_shlibpath_var_GCJ
=no
17016 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
17017 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17018 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17025 if test "$ld_shlibs_GCJ" = no
; then
17027 hardcode_libdir_flag_spec_GCJ
=
17028 export_dynamic_flag_spec_GCJ
=
17029 whole_archive_flag_spec_GCJ
=
17032 # PORTME fill in a description of your system's linker (not GNU ld)
17035 allow_undefined_flag_GCJ
=unsupported
17036 always_export_symbols_GCJ
=yes
17037 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'
17038 # Note: this linker hardcodes the directories in LIBPATH if there
17039 # are no directories specified by -L.
17040 hardcode_minus_L_GCJ
=yes
17041 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17042 # Neither direct hardcoding nor static linking is supported with a
17044 hardcode_direct_GCJ
=unsupported
17049 if test "$host_cpu" = ia64
; then
17050 # On IA64, the linker does run time linking by default, so we don't
17051 # have to do anything special.
17052 aix_use_runtimelinking
=no
17053 exp_sym_flag
='-Bexport'
17056 # If we're using GNU nm, then we don't want the "-C" option.
17057 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17058 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
17059 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'
17061 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'
17063 aix_use_runtimelinking
=no
17065 # Test if we are trying to use run time linking or normal
17066 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17067 # need to do runtime linking.
17068 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
17069 for ld_flag
in $LDFLAGS; do
17070 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
17071 aix_use_runtimelinking
=yes
17078 exp_sym_flag
='-bexport'
17079 no_entry_flag
='-bnoentry'
17082 # When large executables or shared objects are built, AIX ld can
17083 # have problems creating the table of contents. If linking a library
17084 # or program results in "error TOC overflow" add -mminimal-toc to
17085 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17086 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17088 archive_cmds_GCJ
=''
17089 hardcode_direct_GCJ
=yes
17090 hardcode_libdir_separator_GCJ
=':'
17091 link_all_deplibs_GCJ
=yes
17093 if test "$GCC" = yes; then
17094 case $host_os in aix4.
[012]|aix4.
[012].
*)
17095 # We only want to do this on AIX 4.2 and lower, the check
17096 # below for broken collect2 doesn't work under 4.3+
17097 collect2name
=`${CC} -print-prog-name=collect2`
17098 if test -f "$collect2name" && \
17099 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
17101 # We have reworked collect2
17104 # We have old collect2
17105 hardcode_direct_GCJ
=unsupported
17106 # It fails to find uninstalled libraries when the uninstalled
17107 # path is not listed in the libpath. Setting hardcode_minus_L
17108 # to unsupported forces relinking
17109 hardcode_minus_L_GCJ
=yes
17110 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17111 hardcode_libdir_separator_GCJ
=
17115 shared_flag
='-shared'
17116 if test "$aix_use_runtimelinking" = yes; then
17117 shared_flag
="$shared_flag "'${wl}-G'
17121 if test "$host_cpu" = ia64
; then
17122 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17123 # chokes on -Wl,-G. The following line is correct:
17126 if test "$aix_use_runtimelinking" = yes; then
17127 shared_flag
='${wl}-G'
17129 shared_flag
='${wl}-bM:SRE'
17134 # It seems that -bexpall does not export symbols beginning with
17135 # underscore (_), so it is better to generate a list of symbols to export.
17136 always_export_symbols_GCJ
=yes
17137 if test "$aix_use_runtimelinking" = yes; then
17138 # Warning - without using the other runtime loading flags (-brtl),
17139 # -berok will link without error, but may produce a broken library.
17140 allow_undefined_flag_GCJ
='-berok'
17141 # Determine the default libpath from the value encoded in an empty executable.
17142 cat >conftest.
$ac_ext <<_ACEOF
17145 cat confdefs.h
>>conftest.
$ac_ext
17146 cat >>conftest.
$ac_ext <<_ACEOF
17147 /* end confdefs.h. */
17157 rm -f conftest.
$ac_objext conftest
$ac_exeext
17158 if { (ac_try
="$ac_link"
17159 case "(($ac_try" in
17160 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17161 *) ac_try_echo=$ac_try;;
17163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17164 (eval "$ac_link") 2>conftest.er1
17166 grep -v '^ *+' conftest.er1 >conftest.err
17168 cat conftest.err >&5
17169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170 (exit $ac_status); } && {
17171 test -z "$ac_cxx_werror_flag" ||
17172 test ! -s conftest.err
17173 } && test -s conftest$ac_exeext &&
17174 $as_test_x conftest$ac_exeext; then
17176 lt_aix_libpath_sed='
17177 /Import File Strings/,/^$/ {
17183 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
17184 # Check for a 64-bit object if we didn't find anything.
17185 if test -z "$aix_libpath"; then
17186 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
17189 echo "$as_me: failed program was:" >&5
17190 sed 's/^/| /' conftest.$ac_ext >&5
17195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17196 conftest$ac_exeext conftest.$ac_ext
17197 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17199 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17200 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"
17202 if test "$host_cpu" = ia64; then
17203 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17204 allow_undefined_flag_GCJ="-z nodefs"
17205 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"
17207 # Determine the default libpath from the value encoded in an empty executable.
17208 cat >conftest.$ac_ext <<_ACEOF
17211 cat confdefs.h >>conftest.$ac_ext
17212 cat >>conftest.$ac_ext <<_ACEOF
17213 /* end confdefs.h. */
17223 rm -f conftest.$ac_objext conftest$ac_exeext
17224 if { (ac_try="$ac_link"
17225 case "(($ac_try" in
17226 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17227 *) ac_try_echo
=$ac_try;;
17229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17230 (eval "$ac_link") 2>conftest.er1
17232 grep -v '^ *+' conftest.er1
>conftest.err
17234 cat conftest.err
>&5
17235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236 (exit $ac_status); } && {
17237 test -z "$ac_cxx_werror_flag" ||
17238 test ! -s conftest.err
17239 } && test -s conftest
$ac_exeext &&
17240 $as_test_x conftest
$ac_exeext; then
17242 lt_aix_libpath_sed
='
17243 /Import File Strings/,/^$/ {
17249 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17250 # Check for a 64-bit object if we didn't find anything.
17251 if test -z "$aix_libpath"; then
17252 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17255 echo "$as_me: failed program was:" >&5
17256 sed 's/^/| /' conftest.
$ac_ext >&5
17261 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17262 conftest
$ac_exeext conftest.
$ac_ext
17263 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17265 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
17266 # Warning - without using the other run time loading flags,
17267 # -berok will link without error, but may produce a broken library.
17268 no_undefined_flag_GCJ
=' ${wl}-bernotok'
17269 allow_undefined_flag_GCJ
=' ${wl}-berok'
17270 # Exported symbols can be pulled into shared objects from archives
17271 whole_archive_flag_spec_GCJ
='$convenience'
17272 archive_cmds_need_lc_GCJ
=yes
17273 # This is similar to how AIX traditionally builds its shared libraries.
17274 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'
17280 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)'
17281 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17282 hardcode_minus_L_GCJ
=yes
17283 # see comment about different semantics on the GNU ld section
17288 export_dynamic_flag_spec_GCJ
=-rdynamic
17291 cygwin
* | mingw
* | pw32
*)
17292 # When not using gcc, we currently assume that we are using
17293 # Microsoft Visual C++.
17294 # hardcode_libdir_flag_spec is actually meaningless, as there is
17295 # no search path for DLLs.
17296 hardcode_libdir_flag_spec_GCJ
=' '
17297 allow_undefined_flag_GCJ
=unsupported
17298 # Tell ltmain to make .lib files, not .a files.
17300 # Tell ltmain to make .dll files, not .so files.
17302 # FIXME: Setting linknames here is a bad hack.
17303 archive_cmds_GCJ
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17304 # The linker will automatically build a .lib file if we build a DLL.
17305 old_archive_From_new_cmds_GCJ
='true'
17306 # FIXME: Should let the user specify the lib program.
17307 old_archive_cmds_GCJ
='lib -OUT:$oldlib$oldobjs$old_deplibs'
17308 fix_srcfile_path_GCJ
='`cygpath -w "$srcfile"`'
17309 enable_shared_with_static_runtimes_GCJ
=yes
17312 darwin
* | rhapsody
*)
17314 rhapsody
* | darwin1.
[012])
17315 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}suppress'
17318 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17319 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17321 case ${MACOSX_DEPLOYMENT_TARGET} in
17323 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17326 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}dynamic_lookup'
17332 archive_cmds_need_lc_GCJ
=no
17333 hardcode_direct_GCJ
=no
17334 hardcode_automatic_GCJ
=yes
17335 hardcode_shlibpath_var_GCJ
=unsupported
17336 whole_archive_flag_spec_GCJ
=''
17337 link_all_deplibs_GCJ
=yes
17338 if test "$GCC" = yes ; then
17339 output_verbose_link_cmd
='echo'
17340 archive_cmds_GCJ
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17341 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17342 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17343 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}'
17344 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}'
17346 case $cc_basename in
17348 output_verbose_link_cmd
='echo'
17349 archive_cmds_GCJ
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17350 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17351 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17352 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}'
17353 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}'
17363 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17364 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17365 hardcode_shlibpath_var_GCJ
=no
17372 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17373 # support. Future versions do this automatically, but an explicit c++rt0.o
17374 # does not break anything, and helps significantly (at the cost of a little
17377 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17378 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17379 hardcode_direct_GCJ
=yes
17380 hardcode_shlibpath_var_GCJ
=no
17383 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17385 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17386 hardcode_direct_GCJ
=yes
17387 hardcode_minus_L_GCJ
=yes
17388 hardcode_shlibpath_var_GCJ
=no
17391 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17392 freebsd
* | dragonfly
*)
17393 archive_cmds_GCJ
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17394 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17395 hardcode_direct_GCJ
=yes
17396 hardcode_shlibpath_var_GCJ
=no
17400 if test "$GCC" = yes; then
17401 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'
17403 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'
17405 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17406 hardcode_libdir_separator_GCJ
=:
17407 hardcode_direct_GCJ
=yes
17409 # hardcode_minus_L: Not really in the search PATH,
17410 # but as the default location of the library.
17411 hardcode_minus_L_GCJ
=yes
17412 export_dynamic_flag_spec_GCJ
='${wl}-E'
17416 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
17417 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17419 archive_cmds_GCJ
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17421 if test "$with_gnu_ld" = no
; then
17422 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17423 hardcode_libdir_separator_GCJ
=:
17425 hardcode_direct_GCJ
=yes
17426 export_dynamic_flag_spec_GCJ
='${wl}-E'
17428 # hardcode_minus_L: Not really in the search PATH,
17429 # but as the default location of the library.
17430 hardcode_minus_L_GCJ
=yes
17435 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
17438 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17441 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17444 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17450 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17453 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17456 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17460 if test "$with_gnu_ld" = no
; then
17461 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17462 hardcode_libdir_separator_GCJ
=:
17466 hardcode_libdir_flag_spec_ld_GCJ
='+b $libdir'
17467 hardcode_direct_GCJ
=no
17468 hardcode_shlibpath_var_GCJ
=no
17471 hardcode_direct_GCJ
=yes
17472 export_dynamic_flag_spec_GCJ
='${wl}-E'
17474 # hardcode_minus_L: Not really in the search PATH,
17475 # but as the default location of the library.
17476 hardcode_minus_L_GCJ
=yes
17482 irix5
* | irix6
* | nonstopux
*)
17483 if test "$GCC" = yes; then
17484 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'
17486 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'
17487 hardcode_libdir_flag_spec_ld_GCJ
='-rpath $libdir'
17489 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17490 hardcode_libdir_separator_GCJ
=:
17491 link_all_deplibs_GCJ
=yes
17495 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
17496 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17498 archive_cmds_GCJ
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17500 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17501 hardcode_direct_GCJ
=yes
17502 hardcode_shlibpath_var_GCJ
=no
17506 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17507 hardcode_direct_GCJ
=yes
17508 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17509 hardcode_libdir_separator_GCJ
=:
17510 hardcode_shlibpath_var_GCJ
=no
17514 if test -f /usr
/libexec
/ld.so
; then
17515 hardcode_direct_GCJ
=yes
17516 hardcode_shlibpath_var_GCJ
=no
17517 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17518 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17519 archive_expsym_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17520 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
17521 export_dynamic_flag_spec_GCJ
='${wl}-E'
17524 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
17525 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17526 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17529 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17530 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
17540 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17541 hardcode_minus_L_GCJ
=yes
17542 allow_undefined_flag_GCJ
=unsupported
17543 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'
17544 old_archive_From_new_cmds_GCJ
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17548 if test "$GCC" = yes; then
17549 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
17550 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'
17552 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
17553 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'
17555 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17556 hardcode_libdir_separator_GCJ
=:
17559 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
17560 if test "$GCC" = yes; then
17561 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
17562 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'
17563 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17565 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
17566 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'
17567 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~
17568 $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'
17570 # Both c and cxx compiler support -rpath directly
17571 hardcode_libdir_flag_spec_GCJ
='-rpath $libdir'
17573 hardcode_libdir_separator_GCJ
=:
17577 no_undefined_flag_GCJ
=' -z text'
17578 if test "$GCC" = yes; then
17580 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17581 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17582 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17585 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17586 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17587 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17589 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17590 hardcode_shlibpath_var_GCJ
=no
17592 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
17594 # The compiler driver will combine and reorder linker options,
17595 # but understands `-z linker_flag'. GCC discards it without `$wl',
17596 # but is careful enough not to reorder.
17597 # Supported since Solaris 2.6 (maybe 2.5.1?)
17598 if test "$GCC" = yes; then
17599 whole_archive_flag_spec_GCJ
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17601 whole_archive_flag_spec_GCJ
='-z allextract$convenience -z defaultextract'
17605 link_all_deplibs_GCJ
=yes
17609 if test "x$host_vendor" = xsequent
; then
17610 # Use $CC to link under sequent, because it throws in some extra .o
17611 # files that make .init and .fini sections work.
17612 archive_cmds_GCJ
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17614 archive_cmds_GCJ
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17616 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17617 hardcode_direct_GCJ
=yes
17618 hardcode_minus_L_GCJ
=yes
17619 hardcode_shlibpath_var_GCJ
=no
17623 case $host_vendor in
17625 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17626 hardcode_direct_GCJ
=yes # is this really true???
17629 ## LD is ld it makes a PLAMLIB
17630 ## CC just makes a GrossModule.
17631 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17632 reload_cmds_GCJ
='$CC -r -o $output$reload_objs'
17633 hardcode_direct_GCJ
=no
17636 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17637 hardcode_direct_GCJ
=no
#Motorola manual says yes, but my tests say they lie
17640 runpath_var
='LD_RUN_PATH'
17641 hardcode_shlibpath_var_GCJ
=no
17645 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17646 hardcode_shlibpath_var_GCJ
=no
17647 export_dynamic_flag_spec_GCJ
='-Bexport'
17651 if test -d /usr
/nec
; then
17652 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17653 hardcode_shlibpath_var_GCJ
=no
17654 runpath_var
=LD_RUN_PATH
17655 hardcode_runpath_var
=yes
17660 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
17661 no_undefined_flag_GCJ
='${wl}-z,text'
17662 archive_cmds_need_lc_GCJ
=no
17663 hardcode_shlibpath_var_GCJ
=no
17664 runpath_var
='LD_RUN_PATH'
17666 if test "$GCC" = yes; then
17667 archive_cmds_GCJ
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17668 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17670 archive_cmds_GCJ
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17671 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17675 sysv5
* | sco3.2v5
* | sco5v6
*)
17676 # Note: We can NOT use -z defs as we might desire, because we do not
17677 # link with -lc, and that would cause any symbols used from libc to
17678 # always be unresolved, which means just about no library would
17679 # ever link correctly. If we're not using GNU ld we use -z text
17680 # though, which does catch some bad symbols but isn't as heavy-handed
17682 no_undefined_flag_GCJ
='${wl}-z,text'
17683 allow_undefined_flag_GCJ
='${wl}-z,nodefs'
17684 archive_cmds_need_lc_GCJ
=no
17685 hardcode_shlibpath_var_GCJ
=no
17686 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17687 hardcode_libdir_separator_GCJ
=':'
17688 link_all_deplibs_GCJ
=yes
17689 export_dynamic_flag_spec_GCJ
='${wl}-Bexport'
17690 runpath_var
='LD_RUN_PATH'
17692 if test "$GCC" = yes; then
17693 archive_cmds_GCJ
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17694 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17696 archive_cmds_GCJ
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17697 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17702 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17703 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17704 hardcode_shlibpath_var_GCJ
=no
17713 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17714 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17715 test "$ld_shlibs_GCJ" = no
&& can_build_shared
=no
17718 # Do we need to explicitly link libc?
17720 case "x$archive_cmds_need_lc_GCJ" in
17722 # Assume -lc should be added
17723 archive_cmds_need_lc_GCJ
=yes
17725 if test "$enable_shared" = yes && test "$GCC" = yes; then
17726 case $archive_cmds_GCJ in
17728 # FIXME: we may have to deal with multi-command sequences.
17731 # Test whether the compiler implicitly links with -lc since on some
17732 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17733 # to ld, don't add -lc before -lgcc.
17734 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17735 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17737 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17740 (eval $ac_compile) 2>&5
17742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743 (exit $ac_status); } 2>conftest.err
; then
17746 libobjs
=conftest.
$ac_objext
17748 wl
=$lt_prog_compiler_wl_GCJ
17749 pic_flag
=$lt_prog_compiler_pic_GCJ
17755 lt_save_allow_undefined_flag
=$allow_undefined_flag_GCJ
17756 allow_undefined_flag_GCJ
=
17757 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17758 (eval $archive_cmds_GCJ 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); }
17763 archive_cmds_need_lc_GCJ
=no
17765 archive_cmds_need_lc_GCJ
=yes
17767 allow_undefined_flag_GCJ
=$lt_save_allow_undefined_flag
17769 cat conftest.err
1>&5
17772 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17773 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17780 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17781 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17782 library_names_spec
=
17783 libname_spec
='lib$name'
17787 postuninstall_cmds
=
17791 shlibpath_overrides_runpath
=unknown
17793 dynamic_linker
="$host_os ld.so"
17794 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17796 need_lib_prefix
=unknown
17797 hardcode_into_libs
=no
17799 # when you set need_version to no, make sure it does not cause -set_version
17800 # flags to be left without arguments
17801 need_version
=unknown
17806 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17807 shlibpath_var
=LIBPATH
17809 # AIX 3 has no versioning support, so we append a major version to the name.
17810 soname_spec
='${libname}${release}${shared_ext}$major'
17817 hardcode_into_libs
=yes
17818 if test "$host_cpu" = ia64
; then
17819 # AIX 5 supports IA64
17820 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17821 shlibpath_var
=LD_LIBRARY_PATH
17823 # With GCC up to 2.95.x, collect2 would create an import file
17824 # for dependence libraries. The import file would start with
17825 # the line `#! .'. This would cause the generated library to
17826 # depend on `.', always an invalid library. This was fixed in
17827 # development snapshots of GCC prior to 3.0.
17829 aix4 | aix4.
[01] | aix4.
[01].
*)
17830 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17832 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
17835 can_build_shared
=no
17839 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17840 # soname into executable. Probably we can add versioning support to
17841 # collect2, so additional links can be useful in future.
17842 if test "$aix_use_runtimelinking" = yes; then
17843 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17844 # instead of lib<name>.a to let people know that these are not
17845 # typical AIX shared libraries.
17846 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17848 # We preserve .a as extension for shared libraries through AIX4.2
17849 # and later when we are not doing run time linking.
17850 library_names_spec
='${libname}${release}.a $libname.a'
17851 soname_spec
='${libname}${release}${shared_ext}$major'
17853 shlibpath_var
=LIBPATH
17858 library_names_spec
='$libname.ixlibrary $libname.a'
17859 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17860 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'
17864 library_names_spec
='${libname}${shared_ext}'
17865 dynamic_linker
="$host_os ld.so"
17866 shlibpath_var
=LIBRARY_PATH
17872 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17873 soname_spec
='${libname}${release}${shared_ext}$major'
17874 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17875 shlibpath_var
=LD_LIBRARY_PATH
17876 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17877 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17878 # the default ld.so.conf also contains /usr/contrib/lib and
17879 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17880 # libtool to hard-code these into programs
17883 cygwin
* | mingw
* | pw32
*)
17884 version_type
=windows
17889 case $GCC,$host_os in
17890 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
17891 library_names_spec
='$libname.dll.a'
17892 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17893 postinstall_cmds
='base_file=`basename \${file}`~
17894 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17895 dldir=$destdir/`dirname \$dlpath`~
17896 test -d \$dldir || mkdir -p \$dldir~
17897 $install_prog $dir/$dlname \$dldir/$dlname~
17898 chmod a+x \$dldir/$dlname'
17899 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17900 dlpath=$dir/\$dldll~
17902 shlibpath_overrides_runpath
=yes
17906 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17907 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17908 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
17911 # MinGW DLLs use traditional 'lib' prefix
17912 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17913 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17914 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
17915 # It is most probably a Windows format PATH printed by
17916 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17917 # path with ; separators, and with drive letters. We can handle the
17918 # drive letters (cygwin fileutils understands them), so leave them,
17919 # especially as we might pass files found there to a mingw objdump,
17920 # which wouldn't understand a cygwinified path. Ahh.
17921 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17923 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17927 # pw32 DLLs use 'pw' prefix rather than 'lib'
17928 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17934 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17937 dynamic_linker
='Win32 ld.exe'
17938 # FIXME: first we should search . and the directory the executable is in
17942 darwin
* | rhapsody
*)
17943 dynamic_linker
="$host_os dyld"
17944 version_type
=darwin
17947 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17948 soname_spec
='${libname}${release}${major}$shared_ext'
17949 shlibpath_overrides_runpath
=yes
17950 shlibpath_var
=DYLD_LIBRARY_PATH
17951 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17953 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17960 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17961 soname_spec
='${libname}${release}${shared_ext}$major'
17962 shlibpath_var
=LD_LIBRARY_PATH
17969 freebsd
* | dragonfly
*)
17970 # DragonFly does not have aout. When/if they implement a new
17971 # versioning mechanism, adjust this.
17972 if test -x /usr
/bin
/objformat
; then
17973 objformat
=`/usr/bin/objformat`
17976 freebsd
[123]*) objformat
=aout
;;
17977 *) objformat
=elf
;;
17980 version_type
=freebsd-
$objformat
17981 case $version_type in
17983 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17988 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17992 shlibpath_var
=LD_LIBRARY_PATH
17995 shlibpath_overrides_runpath
=yes
17997 freebsd3.
[01]* | freebsdelf3.
[01]*)
17998 shlibpath_overrides_runpath
=yes
17999 hardcode_into_libs
=yes
18001 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
18002 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
18003 shlibpath_overrides_runpath
=no
18004 hardcode_into_libs
=yes
18006 *) # from 4.6 on, and DragonFly
18007 shlibpath_overrides_runpath
=yes
18008 hardcode_into_libs
=yes
18017 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18018 soname_spec
='${libname}${release}${shared_ext}$major'
18019 shlibpath_var
=LD_LIBRARY_PATH
18020 hardcode_into_libs
=yes
18023 hpux9
* | hpux10
* | hpux11
*)
18024 # Give a soname corresponding to the major version so that dld.sl refuses to
18025 # link against other versions.
18032 hardcode_into_libs
=yes
18033 dynamic_linker
="$host_os dld.so"
18034 shlibpath_var
=LD_LIBRARY_PATH
18035 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18036 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18037 soname_spec
='${libname}${release}${shared_ext}$major'
18038 if test "X$HPUX_IA64_MODE" = X32
; then
18039 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18041 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
18043 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18047 hardcode_into_libs
=yes
18048 dynamic_linker
="$host_os dld.sl"
18049 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
18050 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18051 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18052 soname_spec
='${libname}${release}${shared_ext}$major'
18053 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18054 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18058 dynamic_linker
="$host_os dld.sl"
18059 shlibpath_var
=SHLIB_PATH
18060 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
18061 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18062 soname_spec
='${libname}${release}${shared_ext}$major'
18065 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18066 postinstall_cmds
='chmod 555 $lib'
18073 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18074 soname_spec
='${libname}${release}${shared_ext}$major'
18075 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
18076 shlibpath_var
=LD_LIBRARY_PATH
18077 shlibpath_overrides_runpath
=no
18078 hardcode_into_libs
=yes
18081 irix5
* | irix6
* | nonstopux
*)
18083 nonstopux
*) version_type
=nonstopux
;;
18085 if test "$lt_cv_prog_gnu_ld" = yes; then
18093 soname_spec
='${libname}${release}${shared_ext}$major'
18094 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18096 irix5
* | nonstopux
*)
18097 libsuff
= shlibsuff
=
18100 case $LD in # libtool.m4 will add one of these switches to LD
18101 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
18102 libsuff
= shlibsuff
= libmagic
=32-bit;;
18103 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
18104 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
18105 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
18106 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
18107 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
18111 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
18112 shlibpath_overrides_runpath
=no
18113 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18114 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
18115 hardcode_into_libs
=yes
18118 # No shared lib support for Linux oldld, aout, or coff.
18119 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
18123 # This must be Linux ELF.
18124 linux
* | k
*bsd
*-gnu)
18128 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18129 soname_spec
='${libname}${release}${shared_ext}$major'
18130 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18131 shlibpath_var
=LD_LIBRARY_PATH
18132 shlibpath_overrides_runpath
=no
18133 # This implies no fast_install, which is unacceptable.
18134 # Some rework will be needed to allow for fast_install
18135 # before this can be enabled.
18136 hardcode_into_libs
=yes
18137 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18138 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
18140 # Append ld.so.conf contents to the search path
18141 if test -f /etc
/ld.so.conf
; then
18142 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' ' '`
18143 sys_lib_dlsearch_path_spec
="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18146 # We used to test for /lib/ld.so.1 and disable shared libraries on
18147 # powerpc, because MkLinux only supported shared libraries with the
18148 # GNU dynamic linker. Since this was broken with cross compilers,
18149 # most powerpc-linux boxes support dynamic linking these days and
18150 # people can always --disable-shared, the test was removed, and we
18151 # assume the GNU/Linux dynamic linker is in use.
18152 dynamic_linker
='GNU/Linux ld.so'
18159 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
18160 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18161 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18162 dynamic_linker
='NetBSD (a.out) ld.so'
18164 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18165 soname_spec
='${libname}${release}${shared_ext}$major'
18166 dynamic_linker
='NetBSD ld.elf_so'
18168 shlibpath_var
=LD_LIBRARY_PATH
18169 shlibpath_overrides_runpath
=yes
18170 hardcode_into_libs
=yes
18175 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18176 shlibpath_var
=LD_LIBRARY_PATH
18177 shlibpath_overrides_runpath
=yes
18184 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18185 soname_spec
='${libname}${release}${shared_ext}$major'
18186 shlibpath_var
=LD_LIBRARY_PATH
18187 shlibpath_overrides_runpath
=yes
18192 sys_lib_dlsearch_path_spec
="/usr/lib"
18194 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18196 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
18197 *) need_version
=no
;;
18199 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18200 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18201 shlibpath_var
=LD_LIBRARY_PATH
18202 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18204 openbsd2.
[89] | openbsd2.
[89].
*)
18205 shlibpath_overrides_runpath
=no
18208 shlibpath_overrides_runpath
=yes
18212 shlibpath_overrides_runpath
=yes
18217 libname_spec
='$name'
18220 library_names_spec
='$libname${shared_ext} $libname.a'
18221 dynamic_linker
='OS/2 ld.exe'
18222 shlibpath_var
=LIBPATH
18225 osf3
* | osf4
* | osf5
*)
18229 soname_spec
='${libname}${release}${shared_ext}$major'
18230 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18231 shlibpath_var
=LD_LIBRARY_PATH
18232 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18233 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
18244 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18245 soname_spec
='${libname}${release}${shared_ext}$major'
18246 shlibpath_var
=LD_LIBRARY_PATH
18247 shlibpath_overrides_runpath
=yes
18248 hardcode_into_libs
=yes
18249 # ldd complains unless libraries are executable
18250 postinstall_cmds
='chmod +x $lib'
18255 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18256 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18257 shlibpath_var
=LD_LIBRARY_PATH
18258 shlibpath_overrides_runpath
=yes
18259 if test "$with_gnu_ld" = yes; then
18267 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18268 soname_spec
='${libname}${release}${shared_ext}$major'
18269 shlibpath_var
=LD_LIBRARY_PATH
18270 case $host_vendor in
18272 shlibpath_overrides_runpath
=no
18274 export_dynamic_flag_spec
='${wl}-Blargedynsym'
18275 runpath_var
=LD_RUN_PATH
18283 shlibpath_overrides_runpath
=no
18284 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
18290 if test -d /usr
/nec
;then
18292 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18293 soname_spec
='$libname${shared_ext}.$major'
18294 shlibpath_var
=LD_LIBRARY_PATH
18298 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
18299 version_type
=freebsd-elf
18302 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18303 soname_spec
='${libname}${release}${shared_ext}$major'
18304 shlibpath_var
=LD_LIBRARY_PATH
18305 hardcode_into_libs
=yes
18306 if test "$with_gnu_ld" = yes; then
18307 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18308 shlibpath_overrides_runpath
=no
18310 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
18311 shlibpath_overrides_runpath
=yes
18314 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
18318 sys_lib_dlsearch_path_spec
='/usr/lib'
18323 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18324 soname_spec
='${libname}${release}${shared_ext}$major'
18325 shlibpath_var
=LD_LIBRARY_PATH
18332 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18333 echo "${ECHO_T}$dynamic_linker" >&6; }
18334 test "$dynamic_linker" = no
&& can_build_shared
=no
18336 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
18337 if test "$GCC" = yes; then
18338 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18341 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18342 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18343 hardcode_action_GCJ
=
18344 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18345 test -n "$runpath_var_GCJ" || \
18346 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18348 # We can hardcode non-existant directories.
18349 if test "$hardcode_direct_GCJ" != no
&&
18350 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18351 # have to relink, otherwise we might link with an installed library
18352 # when we should be linking with a yet-to-be-installed one
18353 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18354 test "$hardcode_minus_L_GCJ" != no
; then
18355 # Linking always hardcodes the temporary library directory.
18356 hardcode_action_GCJ
=relink
18358 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18359 hardcode_action_GCJ
=immediate
18362 # We cannot hardcode anything, or else we can only hardcode existing
18364 hardcode_action_GCJ
=unsupported
18366 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18367 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18369 if test "$hardcode_action_GCJ" = relink
; then
18370 # Fast installation is not supported
18371 enable_fast_install
=no
18372 elif test "$shlibpath_overrides_runpath" = yes ||
18373 test "$enable_shared" = no
; then
18374 # Fast installation is not necessary
18375 enable_fast_install
=needless
18379 # The else clause should only fire when bootstrapping the
18380 # libtool distribution, otherwise you forgot to ship ltmain.sh
18381 # with your package, and you will get complaints that there are
18382 # no rules to generate ltmain.sh.
18383 if test -f "$ltmain"; then
18384 # See if we are running on zsh, and set the options which allow our commands through
18385 # without removal of \ escapes.
18386 if test -n "${ZSH_VERSION+set}" ; then
18387 setopt NO_GLOB_SUBST
18389 # Now quote all the things that may contain metacharacters while being
18390 # careful not to overquote the AC_SUBSTed values. We take copies of the
18391 # variables and quote the copies for generation of the libtool script.
18392 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18394 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18395 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18396 deplibs_check_method reload_flag reload_cmds need_locks \
18397 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18398 lt_cv_sys_global_symbol_to_c_name_address \
18399 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18400 old_postinstall_cmds old_postuninstall_cmds \
18404 lt_prog_compiler_wl_GCJ \
18405 lt_prog_compiler_pic_GCJ \
18406 lt_prog_compiler_static_GCJ \
18407 lt_prog_compiler_no_builtin_flag_GCJ \
18408 export_dynamic_flag_spec_GCJ \
18409 thread_safe_flag_spec_GCJ \
18410 whole_archive_flag_spec_GCJ \
18411 enable_shared_with_static_runtimes_GCJ \
18412 old_archive_cmds_GCJ \
18413 old_archive_from_new_cmds_GCJ \
18414 predep_objects_GCJ \
18415 postdep_objects_GCJ \
18418 compiler_lib_search_path_GCJ \
18420 archive_expsym_cmds_GCJ \
18421 postinstall_cmds_GCJ \
18422 postuninstall_cmds_GCJ \
18423 old_archive_from_expsyms_cmds_GCJ \
18424 allow_undefined_flag_GCJ \
18425 no_undefined_flag_GCJ \
18426 export_symbols_cmds_GCJ \
18427 hardcode_libdir_flag_spec_GCJ \
18428 hardcode_libdir_flag_spec_ld_GCJ \
18429 hardcode_libdir_separator_GCJ \
18430 hardcode_automatic_GCJ \
18432 module_expsym_cmds_GCJ \
18433 lt_cv_prog_compiler_c_o_GCJ \
18434 fix_srcfile_path_GCJ \
18435 exclude_expsyms_GCJ \
18436 include_expsyms_GCJ
; do
18439 old_archive_cmds_GCJ | \
18440 old_archive_from_new_cmds_GCJ | \
18441 archive_cmds_GCJ | \
18442 archive_expsym_cmds_GCJ | \
18443 module_cmds_GCJ | \
18444 module_expsym_cmds_GCJ | \
18445 old_archive_from_expsyms_cmds_GCJ | \
18446 export_symbols_cmds_GCJ | \
18447 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18448 postinstall_cmds | postuninstall_cmds | \
18449 old_postinstall_cmds | old_postuninstall_cmds | \
18450 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
18451 # Double-quote double-evaled strings.
18452 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18455 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18461 *'\$0 --fallback-echo"')
18462 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18468 cat <<__EOF__ >> "$cfgfile"
18469 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18471 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18473 # Shell to use when invoking shell scripts.
18476 # Whether or not to build shared libraries.
18477 build_libtool_libs=$enable_shared
18479 # Whether or not to build static libraries.
18480 build_old_libs=$enable_static
18482 # Whether or not to add -lc for building shared libraries.
18483 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18485 # Whether or not to disallow shared libs when runtime libs are static
18486 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18488 # Whether or not to optimize for fast installation.
18489 fast_install=$enable_fast_install
18492 host_alias=$host_alias
18496 # The build system.
18497 build_alias=$build_alias
18501 # An echo program that does not interpret backslashes.
18506 AR_FLAGS=$lt_AR_FLAGS
18511 # LTCC compiler flags.
18512 LTCFLAGS=$lt_LTCFLAGS
18514 # A language-specific compiler.
18515 CC=$lt_compiler_GCJ
18517 # Is the compiler the GNU C compiler?
18523 # The linker used to build libraries.
18526 # Whether we need hard or soft links.
18529 # A BSD-compatible nm program.
18532 # A symbol stripping program
18535 # Used to examine libraries when file_magic_cmd begins "file"
18536 MAGIC_CMD=$MAGIC_CMD
18538 # Used on cygwin: DLL creation program.
18541 # Used on cygwin: object dumper.
18544 # Used on cygwin: assembler.
18547 # The name of the directory that contains temporary libtool files.
18550 # How to create reloadable object files.
18551 reload_flag=$lt_reload_flag
18552 reload_cmds=$lt_reload_cmds
18554 # How to pass a linker flag through the compiler.
18555 wl=$lt_lt_prog_compiler_wl_GCJ
18557 # Object file suffix (normally "o").
18558 objext="$ac_objext"
18560 # Old archive suffix (normally "a").
18563 # Shared library suffix (normally ".so").
18564 shrext_cmds='$shrext_cmds'
18566 # Executable file suffix (normally "").
18569 # Additional compiler flags for building library objects.
18570 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18573 # What is the maximum length of a command?
18574 max_cmd_len=$lt_cv_sys_max_cmd_len
18576 # Does compiler simultaneously support -c and -o options?
18577 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18579 # Must we lock files when doing compilation?
18580 need_locks=$lt_need_locks
18582 # Do we need the lib prefix for modules?
18583 need_lib_prefix=$need_lib_prefix
18585 # Do we need a version for libraries?
18586 need_version=$need_version
18588 # Whether dlopen is supported.
18589 dlopen_support=$enable_dlopen
18591 # Whether dlopen of programs is supported.
18592 dlopen_self=$enable_dlopen_self
18594 # Whether dlopen of statically linked programs is supported.
18595 dlopen_self_static=$enable_dlopen_self_static
18597 # Compiler flag to prevent dynamic linking.
18598 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18600 # Compiler flag to turn off builtin functions.
18601 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18603 # Compiler flag to allow reflexive dlopens.
18604 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18606 # Compiler flag to generate shared objects directly from archives.
18607 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18609 # Compiler flag to generate thread-safe objects.
18610 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18612 # Library versioning type.
18613 version_type=$version_type
18615 # Format of library name prefix.
18616 libname_spec=$lt_libname_spec
18618 # List of archive names. First name is the real one, the rest are links.
18619 # The last name is the one that the linker finds with -lNAME.
18620 library_names_spec=$lt_library_names_spec
18622 # The coded name of the library, if different from the real name.
18623 soname_spec=$lt_soname_spec
18625 # Commands used to build and install an old-style archive.
18627 old_archive_cmds=$lt_old_archive_cmds_GCJ
18628 old_postinstall_cmds=$lt_old_postinstall_cmds
18629 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18631 # Create an old-style archive from a shared archive.
18632 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18634 # Create a temporary old-style archive to link instead of a shared archive.
18635 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18637 # Commands used to build and install a shared archive.
18638 archive_cmds=$lt_archive_cmds_GCJ
18639 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18640 postinstall_cmds=$lt_postinstall_cmds
18641 postuninstall_cmds=$lt_postuninstall_cmds
18643 # Commands used to build a loadable module (assumed same as above if empty)
18644 module_cmds=$lt_module_cmds_GCJ
18645 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18647 # Commands to strip libraries.
18648 old_striplib=$lt_old_striplib
18649 striplib=$lt_striplib
18651 # Dependencies to place before the objects being linked to create a
18653 predep_objects=$lt_predep_objects_GCJ
18655 # Dependencies to place after the objects being linked to create a
18657 postdep_objects=$lt_postdep_objects_GCJ
18659 # Dependencies to place before the objects being linked to create a
18661 predeps=$lt_predeps_GCJ
18663 # Dependencies to place after the objects being linked to create a
18665 postdeps=$lt_postdeps_GCJ
18667 # The library search path used internally by the compiler when linking
18668 # a shared library.
18669 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18671 # Method to check whether dependent libraries are shared objects.
18672 deplibs_check_method=$lt_deplibs_check_method
18674 # Command to use when deplibs_check_method == file_magic.
18675 file_magic_cmd=$lt_file_magic_cmd
18677 # Flag that allows shared libraries with undefined symbols to be built.
18678 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18680 # Flag that forces no undefined symbols.
18681 no_undefined_flag=$lt_no_undefined_flag_GCJ
18683 # Commands used to finish a libtool library installation in a directory.
18684 finish_cmds=$lt_finish_cmds
18686 # Same as above, but a single script fragment to be evaled but not shown.
18687 finish_eval=$lt_finish_eval
18689 # Take the output of nm and produce a listing of raw symbols and C names.
18690 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18692 # Transform the output of nm in a proper C declaration
18693 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18695 # Transform the output of nm in a C name address pair
18696 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18698 # This is the shared library runtime path variable.
18699 runpath_var=$runpath_var
18701 # This is the shared library path variable.
18702 shlibpath_var=$shlibpath_var
18704 # Is shlibpath searched before the hard-coded library search path?
18705 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18707 # How to hardcode a shared library path into an executable.
18708 hardcode_action=$hardcode_action_GCJ
18710 # Whether we should hardcode library paths into libraries.
18711 hardcode_into_libs=$hardcode_into_libs
18713 # Flag to hardcode \$libdir into a binary during linking.
18714 # This must work even if \$libdir does not exist.
18715 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18717 # If ld is used when linking, flag to hardcode \$libdir into
18718 # a binary during linking. This must work even if \$libdir does
18720 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18722 # Whether we need a single -rpath flag with a separated argument.
18723 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18725 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18726 # resulting binary.
18727 hardcode_direct=$hardcode_direct_GCJ
18729 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18730 # resulting binary.
18731 hardcode_minus_L=$hardcode_minus_L_GCJ
18733 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18734 # the resulting binary.
18735 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18737 # Set to yes if building a shared library automatically hardcodes DIR into the library
18738 # and all subsequent libraries and executables linked against it.
18739 hardcode_automatic=$hardcode_automatic_GCJ
18741 # Variables whose values should be saved in libtool wrapper scripts and
18742 # restored at relink time.
18743 variables_saved_for_relink="$variables_saved_for_relink"
18745 # Whether libtool must link a program against all its dependency libraries.
18746 link_all_deplibs=$link_all_deplibs_GCJ
18748 # Compile-time system search path for libraries
18749 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18751 # Run-time system search path for libraries
18752 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18754 # Fix the shell variable \$srcfile for the compiler.
18755 fix_srcfile_path=$lt_fix_srcfile_path
18757 # Set to yes if exported symbols are required.
18758 always_export_symbols=$always_export_symbols_GCJ
18760 # The commands to list exported symbols.
18761 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18763 # The commands to extract the exported symbol list from a shared archive.
18764 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18766 # Symbols that should not be listed in the preloaded symbols.
18767 exclude_expsyms=$lt_exclude_expsyms_GCJ
18769 # Symbols that must always be exported.
18770 include_expsyms=$lt_include_expsyms_GCJ
18772 # ### END LIBTOOL TAG CONFIG: $tagname
18778 # If there is no Makefile yet, we rely on a make rule to execute
18779 # `config.status --recheck' to rerun these tests and create the
18780 # libtool script then.
18781 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18782 if test -f "$ltmain_in"; then
18783 test -f Makefile
&& make "$ltmain"
18789 ac_cpp
='$CXXCPP $CPPFLAGS'
18790 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18791 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18792 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18804 # Source file extension for RC test sources.
18807 # Object file extension for compiled RC test sources.
18811 # Code to be used in simple compile tests
18812 lt_simple_compile_test_code
='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18814 # Code to be used in simple link tests
18815 lt_simple_link_test_code
="$lt_simple_compile_test_code"
18817 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18819 # If no C compiler was specified, use CC.
18822 # If no C compiler flags were specified, use CFLAGS.
18823 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18825 # Allow CC to be a program name with arguments.
18829 # save warnings/boilerplate of simple test code
18830 ac_outfile
=conftest.
$ac_objext
18831 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18832 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18833 _lt_compiler_boilerplate
=`cat conftest.err`
18836 ac_outfile
=conftest.
$ac_objext
18837 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18838 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18839 _lt_linker_boilerplate
=`cat conftest.err`
18843 # Allow CC to be a program name with arguments.
18848 for cc_temp
in $compiler""; do
18850 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18851 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18856 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18858 lt_cv_prog_compiler_c_o_RC
=yes
18860 # The else clause should only fire when bootstrapping the
18861 # libtool distribution, otherwise you forgot to ship ltmain.sh
18862 # with your package, and you will get complaints that there are
18863 # no rules to generate ltmain.sh.
18864 if test -f "$ltmain"; then
18865 # See if we are running on zsh, and set the options which allow our commands through
18866 # without removal of \ escapes.
18867 if test -n "${ZSH_VERSION+set}" ; then
18868 setopt NO_GLOB_SUBST
18870 # Now quote all the things that may contain metacharacters while being
18871 # careful not to overquote the AC_SUBSTed values. We take copies of the
18872 # variables and quote the copies for generation of the libtool script.
18873 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18875 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18876 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18877 deplibs_check_method reload_flag reload_cmds need_locks \
18878 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18879 lt_cv_sys_global_symbol_to_c_name_address \
18880 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18881 old_postinstall_cmds old_postuninstall_cmds \
18885 lt_prog_compiler_wl_RC \
18886 lt_prog_compiler_pic_RC \
18887 lt_prog_compiler_static_RC \
18888 lt_prog_compiler_no_builtin_flag_RC \
18889 export_dynamic_flag_spec_RC \
18890 thread_safe_flag_spec_RC \
18891 whole_archive_flag_spec_RC \
18892 enable_shared_with_static_runtimes_RC \
18893 old_archive_cmds_RC \
18894 old_archive_from_new_cmds_RC \
18895 predep_objects_RC \
18896 postdep_objects_RC \
18899 compiler_lib_search_path_RC \
18901 archive_expsym_cmds_RC \
18902 postinstall_cmds_RC \
18903 postuninstall_cmds_RC \
18904 old_archive_from_expsyms_cmds_RC \
18905 allow_undefined_flag_RC \
18906 no_undefined_flag_RC \
18907 export_symbols_cmds_RC \
18908 hardcode_libdir_flag_spec_RC \
18909 hardcode_libdir_flag_spec_ld_RC \
18910 hardcode_libdir_separator_RC \
18911 hardcode_automatic_RC \
18913 module_expsym_cmds_RC \
18914 lt_cv_prog_compiler_c_o_RC \
18915 fix_srcfile_path_RC \
18916 exclude_expsyms_RC \
18917 include_expsyms_RC
; do
18920 old_archive_cmds_RC | \
18921 old_archive_from_new_cmds_RC | \
18922 archive_cmds_RC | \
18923 archive_expsym_cmds_RC | \
18925 module_expsym_cmds_RC | \
18926 old_archive_from_expsyms_cmds_RC | \
18927 export_symbols_cmds_RC | \
18928 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18929 postinstall_cmds | postuninstall_cmds | \
18930 old_postinstall_cmds | old_postuninstall_cmds | \
18931 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
18932 # Double-quote double-evaled strings.
18933 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18936 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18942 *'\$0 --fallback-echo"')
18943 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18949 cat <<__EOF__ >> "$cfgfile"
18950 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18952 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18954 # Shell to use when invoking shell scripts.
18957 # Whether or not to build shared libraries.
18958 build_libtool_libs=$enable_shared
18960 # Whether or not to build static libraries.
18961 build_old_libs=$enable_static
18963 # Whether or not to add -lc for building shared libraries.
18964 build_libtool_need_lc=$archive_cmds_need_lc_RC
18966 # Whether or not to disallow shared libs when runtime libs are static
18967 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18969 # Whether or not to optimize for fast installation.
18970 fast_install=$enable_fast_install
18973 host_alias=$host_alias
18977 # The build system.
18978 build_alias=$build_alias
18982 # An echo program that does not interpret backslashes.
18987 AR_FLAGS=$lt_AR_FLAGS
18992 # LTCC compiler flags.
18993 LTCFLAGS=$lt_LTCFLAGS
18995 # A language-specific compiler.
18998 # Is the compiler the GNU C compiler?
19004 # The linker used to build libraries.
19007 # Whether we need hard or soft links.
19010 # A BSD-compatible nm program.
19013 # A symbol stripping program
19016 # Used to examine libraries when file_magic_cmd begins "file"
19017 MAGIC_CMD=$MAGIC_CMD
19019 # Used on cygwin: DLL creation program.
19022 # Used on cygwin: object dumper.
19025 # Used on cygwin: assembler.
19028 # The name of the directory that contains temporary libtool files.
19031 # How to create reloadable object files.
19032 reload_flag=$lt_reload_flag
19033 reload_cmds=$lt_reload_cmds
19035 # How to pass a linker flag through the compiler.
19036 wl=$lt_lt_prog_compiler_wl_RC
19038 # Object file suffix (normally "o").
19039 objext="$ac_objext"
19041 # Old archive suffix (normally "a").
19044 # Shared library suffix (normally ".so").
19045 shrext_cmds='$shrext_cmds'
19047 # Executable file suffix (normally "").
19050 # Additional compiler flags for building library objects.
19051 pic_flag=$lt_lt_prog_compiler_pic_RC
19054 # What is the maximum length of a command?
19055 max_cmd_len=$lt_cv_sys_max_cmd_len
19057 # Does compiler simultaneously support -c and -o options?
19058 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19060 # Must we lock files when doing compilation?
19061 need_locks=$lt_need_locks
19063 # Do we need the lib prefix for modules?
19064 need_lib_prefix=$need_lib_prefix
19066 # Do we need a version for libraries?
19067 need_version=$need_version
19069 # Whether dlopen is supported.
19070 dlopen_support=$enable_dlopen
19072 # Whether dlopen of programs is supported.
19073 dlopen_self=$enable_dlopen_self
19075 # Whether dlopen of statically linked programs is supported.
19076 dlopen_self_static=$enable_dlopen_self_static
19078 # Compiler flag to prevent dynamic linking.
19079 link_static_flag=$lt_lt_prog_compiler_static_RC
19081 # Compiler flag to turn off builtin functions.
19082 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19084 # Compiler flag to allow reflexive dlopens.
19085 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19087 # Compiler flag to generate shared objects directly from archives.
19088 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19090 # Compiler flag to generate thread-safe objects.
19091 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19093 # Library versioning type.
19094 version_type=$version_type
19096 # Format of library name prefix.
19097 libname_spec=$lt_libname_spec
19099 # List of archive names. First name is the real one, the rest are links.
19100 # The last name is the one that the linker finds with -lNAME.
19101 library_names_spec=$lt_library_names_spec
19103 # The coded name of the library, if different from the real name.
19104 soname_spec=$lt_soname_spec
19106 # Commands used to build and install an old-style archive.
19108 old_archive_cmds=$lt_old_archive_cmds_RC
19109 old_postinstall_cmds=$lt_old_postinstall_cmds
19110 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19112 # Create an old-style archive from a shared archive.
19113 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19115 # Create a temporary old-style archive to link instead of a shared archive.
19116 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19118 # Commands used to build and install a shared archive.
19119 archive_cmds=$lt_archive_cmds_RC
19120 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19121 postinstall_cmds=$lt_postinstall_cmds
19122 postuninstall_cmds=$lt_postuninstall_cmds
19124 # Commands used to build a loadable module (assumed same as above if empty)
19125 module_cmds=$lt_module_cmds_RC
19126 module_expsym_cmds=$lt_module_expsym_cmds_RC
19128 # Commands to strip libraries.
19129 old_striplib=$lt_old_striplib
19130 striplib=$lt_striplib
19132 # Dependencies to place before the objects being linked to create a
19134 predep_objects=$lt_predep_objects_RC
19136 # Dependencies to place after the objects being linked to create a
19138 postdep_objects=$lt_postdep_objects_RC
19140 # Dependencies to place before the objects being linked to create a
19142 predeps=$lt_predeps_RC
19144 # Dependencies to place after the objects being linked to create a
19146 postdeps=$lt_postdeps_RC
19148 # The library search path used internally by the compiler when linking
19149 # a shared library.
19150 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19152 # Method to check whether dependent libraries are shared objects.
19153 deplibs_check_method=$lt_deplibs_check_method
19155 # Command to use when deplibs_check_method == file_magic.
19156 file_magic_cmd=$lt_file_magic_cmd
19158 # Flag that allows shared libraries with undefined symbols to be built.
19159 allow_undefined_flag=$lt_allow_undefined_flag_RC
19161 # Flag that forces no undefined symbols.
19162 no_undefined_flag=$lt_no_undefined_flag_RC
19164 # Commands used to finish a libtool library installation in a directory.
19165 finish_cmds=$lt_finish_cmds
19167 # Same as above, but a single script fragment to be evaled but not shown.
19168 finish_eval=$lt_finish_eval
19170 # Take the output of nm and produce a listing of raw symbols and C names.
19171 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19173 # Transform the output of nm in a proper C declaration
19174 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19176 # Transform the output of nm in a C name address pair
19177 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19179 # This is the shared library runtime path variable.
19180 runpath_var=$runpath_var
19182 # This is the shared library path variable.
19183 shlibpath_var=$shlibpath_var
19185 # Is shlibpath searched before the hard-coded library search path?
19186 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19188 # How to hardcode a shared library path into an executable.
19189 hardcode_action=$hardcode_action_RC
19191 # Whether we should hardcode library paths into libraries.
19192 hardcode_into_libs=$hardcode_into_libs
19194 # Flag to hardcode \$libdir into a binary during linking.
19195 # This must work even if \$libdir does not exist.
19196 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19198 # If ld is used when linking, flag to hardcode \$libdir into
19199 # a binary during linking. This must work even if \$libdir does
19201 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19203 # Whether we need a single -rpath flag with a separated argument.
19204 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19206 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19207 # resulting binary.
19208 hardcode_direct=$hardcode_direct_RC
19210 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19211 # resulting binary.
19212 hardcode_minus_L=$hardcode_minus_L_RC
19214 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19215 # the resulting binary.
19216 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19218 # Set to yes if building a shared library automatically hardcodes DIR into the library
19219 # and all subsequent libraries and executables linked against it.
19220 hardcode_automatic=$hardcode_automatic_RC
19222 # Variables whose values should be saved in libtool wrapper scripts and
19223 # restored at relink time.
19224 variables_saved_for_relink="$variables_saved_for_relink"
19226 # Whether libtool must link a program against all its dependency libraries.
19227 link_all_deplibs=$link_all_deplibs_RC
19229 # Compile-time system search path for libraries
19230 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19232 # Run-time system search path for libraries
19233 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19235 # Fix the shell variable \$srcfile for the compiler.
19236 fix_srcfile_path=$lt_fix_srcfile_path
19238 # Set to yes if exported symbols are required.
19239 always_export_symbols=$always_export_symbols_RC
19241 # The commands to list exported symbols.
19242 export_symbols_cmds=$lt_export_symbols_cmds_RC
19244 # The commands to extract the exported symbol list from a shared archive.
19245 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19247 # Symbols that should not be listed in the preloaded symbols.
19248 exclude_expsyms=$lt_exclude_expsyms_RC
19250 # Symbols that must always be exported.
19251 include_expsyms=$lt_include_expsyms_RC
19253 # ### END LIBTOOL TAG CONFIG: $tagname
19259 # If there is no Makefile yet, we rely on a make rule to execute
19260 # `config.status --recheck' to rerun these tests and create the
19261 # libtool script then.
19262 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19263 if test -f "$ltmain_in"; then
19264 test -f Makefile
&& make "$ltmain"
19270 ac_cpp
='$CXXCPP $CPPFLAGS'
19271 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19272 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19273 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19280 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19281 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19282 { (exit 1); exit 1; }; }
19286 # Append the new tag name to the list of available tags.
19287 if test -n "$tagname" ; then
19288 available_tags
="$available_tags $tagname"
19294 # Now substitute the updated list of available tags.
19295 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19296 mv "${ofile}T" "$ofile"
19300 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19301 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19302 { (exit 1); exit 1; }; }
19308 # This can be used to rebuild libtool when needed
19309 LIBTOOL_DEPS
="$ac_aux_dir/ltmain.sh"
19311 # Always use our own libtool.
19312 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
19314 # Prevent multiple expansion
19335 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19336 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
19337 if test "${ac_cv_c_bigendian+set}" = set; then
19338 echo $ECHO_N "(cached) $ECHO_C" >&6
19340 # See if sys/param.h defines the BYTE_ORDER macro.
19341 cat >conftest.
$ac_ext <<_ACEOF
19344 cat confdefs.h
>>conftest.
$ac_ext
19345 cat >>conftest.
$ac_ext <<_ACEOF
19346 /* end confdefs.h. */
19347 #include <sys/types.h>
19348 #include <sys/param.h>
19353 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
19354 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
19355 bogus endian macros
19362 rm -f conftest.
$ac_objext
19363 if { (ac_try
="$ac_compile"
19364 case "(($ac_try" in
19365 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19366 *) ac_try_echo=$ac_try;;
19368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19369 (eval "$ac_compile") 2>conftest.er1
19371 grep -v '^ *+' conftest.er1 >conftest.err
19373 cat conftest.err >&5
19374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375 (exit $ac_status); } && {
19376 test -z "$ac_cxx_werror_flag" ||
19377 test ! -s conftest.err
19378 } && test -s conftest.$ac_objext; then
19379 # It does; now see whether it defined to BIG_ENDIAN or not.
19380 cat >conftest.$ac_ext <<_ACEOF
19383 cat confdefs.h >>conftest.$ac_ext
19384 cat >>conftest.$ac_ext <<_ACEOF
19385 /* end confdefs.h. */
19386 #include <sys/types.h>
19387 #include <sys/param.h>
19392 #if BYTE_ORDER != BIG_ENDIAN
19400 rm -f conftest.$ac_objext
19401 if { (ac_try="$ac_compile"
19402 case "(($ac_try" in
19403 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19404 *) ac_try_echo
=$ac_try;;
19406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19407 (eval "$ac_compile") 2>conftest.er1
19409 grep -v '^ *+' conftest.er1
>conftest.err
19411 cat conftest.err
>&5
19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); } && {
19414 test -z "$ac_cxx_werror_flag" ||
19415 test ! -s conftest.err
19416 } && test -s conftest.
$ac_objext; then
19417 ac_cv_c_bigendian
=yes
19419 echo "$as_me: failed program was:" >&5
19420 sed 's/^/| /' conftest.
$ac_ext >&5
19422 ac_cv_c_bigendian
=no
19425 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19427 echo "$as_me: failed program was:" >&5
19428 sed 's/^/| /' conftest.
$ac_ext >&5
19430 # It does not; compile a test program.
19431 if test "$cross_compiling" = yes; then
19432 # try to guess the endianness by grepping values into an object file
19433 ac_cv_c_bigendian
=unknown
19434 cat >conftest.
$ac_ext <<_ACEOF
19437 cat confdefs.h
>>conftest.
$ac_ext
19438 cat >>conftest.
$ac_ext <<_ACEOF
19439 /* end confdefs.h. */
19440 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19441 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19442 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19443 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19444 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19445 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19449 _ascii (); _ebcdic ();
19454 rm -f conftest.
$ac_objext
19455 if { (ac_try
="$ac_compile"
19456 case "(($ac_try" in
19457 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19458 *) ac_try_echo=$ac_try;;
19460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19461 (eval "$ac_compile") 2>conftest.er1
19463 grep -v '^ *+' conftest.er1 >conftest.err
19465 cat conftest.err >&5
19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467 (exit $ac_status); } && {
19468 test -z "$ac_cxx_werror_flag" ||
19469 test ! -s conftest.err
19470 } && test -s conftest.$ac_objext; then
19471 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
19472 ac_cv_c_bigendian=yes
19474 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19475 if test "$ac_cv_c_bigendian" = unknown; then
19476 ac_cv_c_bigendian=no
19478 # finding both strings is unlikely to happen, but who knows?
19479 ac_cv_c_bigendian=unknown
19483 echo "$as_me: failed program was:" >&5
19484 sed 's/^/| /' conftest.$ac_ext >&5
19489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19491 cat >conftest.$ac_ext <<_ACEOF
19494 cat confdefs.h >>conftest.$ac_ext
19495 cat >>conftest.$ac_ext <<_ACEOF
19496 /* end confdefs.h. */
19497 $ac_includes_default
19502 /* Are we little or big endian? From Harbison&Steele. */
19506 char c[sizeof (long int)];
19509 return u.c[sizeof (long int) - 1] == 1;
19515 rm -f conftest$ac_exeext
19516 if { (ac_try="$ac_link"
19517 case "(($ac_try" in
19518 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19519 *) ac_try_echo
=$ac_try;;
19521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19522 (eval "$ac_link") 2>&5
19524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19526 { (case "(($ac_try" in
19527 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19528 *) ac_try_echo=$ac_try;;
19530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19531 (eval "$ac_try") 2>&5
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); }; }; then
19535 ac_cv_c_bigendian=no
19537 echo "$as_me: program exited with status $ac_status" >&5
19538 echo "$as_me: failed program was:" >&5
19539 sed 's/^/| /' conftest.$ac_ext >&5
19541 ( exit $ac_status )
19542 ac_cv_c_bigendian=yes
19544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19552 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19553 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
19554 case $ac_cv_c_bigendian in
19557 cat >>confdefs.h <<\_ACEOF
19558 #define WORDS_BIGENDIAN 1
19564 { { echo "$as_me:$LINENO: error: unknown endianness
19565 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
19566 echo "$as_me: error: unknown endianness
19567 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19568 { (exit 1); exit 1; }; } ;;
19571 { echo "$as_me:$LINENO: checking host system type" >&5
19572 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
19573 if test "${ac_cv_host+set}" = set; then
19574 echo $ECHO_N "(cached) $ECHO_C" >&6
19576 if test "x$host_alias" = x; then
19577 ac_cv_host=$ac_cv_build
19579 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
19580 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
19581 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
19582 { (exit 1); exit 1; }; }
19586 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
19587 echo "${ECHO_T}$ac_cv_host" >&6; }
19588 case $ac_cv_host in
19590 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
19591 echo "$as_me: error: invalid value of canonical host" >&2;}
19592 { (exit 1); exit 1; }; };;
19595 ac_save_IFS=$IFS; IFS='-'
19601 # Remember, the first character of IFS is used to create $*,
19602 # except with old shells:
19605 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
19608 for ac_prog in 'bison -y' byacc
19610 # Extract the first word of "$ac_prog", so it can be a program name with args.
19611 set dummy $ac_prog; ac_word=$2
19612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19614 if test "${ac_cv_prog_YACC+set}" = set; then
19615 echo $ECHO_N "(cached) $ECHO_C" >&6
19617 if test -n "$YACC"; then
19618 ac_cv_prog_YACC="$YACC" # Let the user override the test.
19620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19621 for as_dir in $PATH
19624 test -z "$as_dir" && as_dir=.
19625 for ac_exec_ext in '' $ac_executable_extensions; do
19626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19627 ac_cv_prog_YACC="$ac_prog"
19628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19637 YACC=$ac_cv_prog_YACC
19638 if test -n "$YACC"; then
19639 { echo "$as_me:$LINENO: result: $YACC" >&5
19640 echo "${ECHO_T}$YACC" >&6; }
19642 { echo "$as_me:$LINENO: result: no" >&5
19643 echo "${ECHO_T}no" >&6; }
19647 test -n "$YACC" && break
19649 test -n "$YACC" || YACC="yacc"
19651 for ac_prog in flex lex
19653 # Extract the first word of "$ac_prog", so it can be a program name with args.
19654 set dummy $ac_prog; ac_word=$2
19655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19657 if test "${ac_cv_prog_LEX+set}" = set; then
19658 echo $ECHO_N "(cached) $ECHO_C" >&6
19660 if test -n "$LEX"; then
19661 ac_cv_prog_LEX="$LEX" # Let the user override the test.
19663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19664 for as_dir in $PATH
19667 test -z "$as_dir" && as_dir=.
19668 for ac_exec_ext in '' $ac_executable_extensions; do
19669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19670 ac_cv_prog_LEX="$ac_prog"
19671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19680 LEX=$ac_cv_prog_LEX
19681 if test -n "$LEX"; then
19682 { echo "$as_me:$LINENO: result: $LEX" >&5
19683 echo "${ECHO_T}$LEX" >&6; }
19685 { echo "$as_me:$LINENO: result: no" >&5
19686 echo "${ECHO_T}no" >&6; }
19690 test -n "$LEX" && break
19692 test -n "$LEX" || LEX=":"
19694 if test "x$LEX" != "x:"; then
19695 cat >conftest.l <<_ACEOF
19701 e { yyless (input () != 0); }
19702 f { unput (yytext[0]); }
19703 . { BEGIN INITIAL; }
19705 #ifdef YYTEXT_POINTER
19706 extern char *yytext;
19711 return ! yylex () + ! yywrap ();
19714 { (ac_try="$LEX conftest.l"
19715 case "(($ac_try" in
19716 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19717 *) ac_try_echo
=$ac_try;;
19719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19720 (eval "$LEX conftest.l") 2>&5
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); }
19724 { echo "$as_me:$LINENO: checking lex output file root" >&5
19725 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
19726 if test "${ac_cv_prog_lex_root+set}" = set; then
19727 echo $ECHO_N "(cached) $ECHO_C" >&6
19730 if test -f lex.yy.c
; then
19731 ac_cv_prog_lex_root
=lex.yy
19732 elif test -f lexyy.c
; then
19733 ac_cv_prog_lex_root
=lexyy
19735 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
19736 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
19737 { (exit 1); exit 1; }; }
19740 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
19741 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
19742 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
19744 if test -z "${LEXLIB+set}"; then
19745 { echo "$as_me:$LINENO: checking lex library" >&5
19746 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
19747 if test "${ac_cv_lib_lex+set}" = set; then
19748 echo $ECHO_N "(cached) $ECHO_C" >&6
19752 ac_cv_lib_lex
='none needed'
19753 for ac_lib
in '' -lfl -ll; do
19754 LIBS
="$ac_lib $ac_save_LIBS"
19755 cat >conftest.
$ac_ext <<_ACEOF
19756 `cat $LEX_OUTPUT_ROOT.c`
19758 rm -f conftest.
$ac_objext conftest
$ac_exeext
19759 if { (ac_try
="$ac_link"
19760 case "(($ac_try" in
19761 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19762 *) ac_try_echo=$ac_try;;
19764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19765 (eval "$ac_link") 2>conftest.er1
19767 grep -v '^ *+' conftest.er1 >conftest.err
19769 cat conftest.err >&5
19770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771 (exit $ac_status); } && {
19772 test -z "$ac_cxx_werror_flag" ||
19773 test ! -s conftest.err
19774 } && test -s conftest$ac_exeext &&
19775 $as_test_x conftest$ac_exeext; then
19776 ac_cv_lib_lex=$ac_lib
19778 echo "$as_me: failed program was:" >&5
19779 sed 's/^/| /' conftest.$ac_ext >&5
19784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19785 conftest$ac_exeext conftest.$ac_ext
19786 test "$ac_cv_lib_lex" != 'none needed' && break
19791 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
19792 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
19793 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
19797 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
19798 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
19799 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
19800 echo $ECHO_N "(cached) $ECHO_C" >&6
19802 # POSIX says lex can declare yytext either as a pointer or an array; the
19803 # default is implementation-dependent. Figure out which it is, since
19804 # not all implementations provide the %pointer and %array declarations.
19805 ac_cv_prog_lex_yytext_pointer=no
19807 LIBS="$LEXLIB $ac_save_LIBS"
19808 cat >conftest.$ac_ext <<_ACEOF
19809 #define YYTEXT_POINTER 1
19810 `cat $LEX_OUTPUT_ROOT.c
`
19812 rm -f conftest.$ac_objext conftest$ac_exeext
19813 if { (ac_try="$ac_link"
19814 case "(($ac_try" in
19815 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19816 *) ac_try_echo
=$ac_try;;
19818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19819 (eval "$ac_link") 2>conftest.er1
19821 grep -v '^ *+' conftest.er1
>conftest.err
19823 cat conftest.err
>&5
19824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825 (exit $ac_status); } && {
19826 test -z "$ac_cxx_werror_flag" ||
19827 test ! -s conftest.err
19828 } && test -s conftest
$ac_exeext &&
19829 $as_test_x conftest
$ac_exeext; then
19830 ac_cv_prog_lex_yytext_pointer
=yes
19832 echo "$as_me: failed program was:" >&5
19833 sed 's/^/| /' conftest.
$ac_ext >&5
19838 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19839 conftest
$ac_exeext conftest.
$ac_ext
19843 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
19844 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
19845 if test $ac_cv_prog_lex_yytext_pointer = yes; then
19847 cat >>confdefs.h
<<\_ACEOF
19848 #define YYTEXT_POINTER 1
19852 rm -f conftest.l
$LEX_OUTPUT_ROOT.c
19855 if test "$LEX" = :; then
19856 LEX
=${am_missing_run}flex
19859 case "${host_os}" in
19864 case "${host_cpu}" in
19869 echo "#ifndef BUILD_H" >build.h
19870 echo "#define BUILD_H" >>build.h
19871 echo "#define CSQL" >>build.h
19872 echo "#define ${OSTYPE}" >>build.h
19873 echo "#define ${CPUTYPE}" >>build.h
19874 echo "#endif " >>build.h
19891 for ac_header
in stdio.h sys
/mman.h sys
/shm.h sys
/errno.h
crypt.h unistd.h \
19892 string.h sys
/types.h sys
/stat.h fcntl.h pthread.h math.h \
19895 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19896 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19897 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19899 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19900 echo $ECHO_N "(cached) $ECHO_C" >&6
19902 ac_res
=`eval echo '${'$as_ac_Header'}'`
19903 { echo "$as_me:$LINENO: result: $ac_res" >&5
19904 echo "${ECHO_T}$ac_res" >&6; }
19906 # Is the header compilable?
19907 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19908 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19909 cat >conftest.
$ac_ext <<_ACEOF
19912 cat confdefs.h
>>conftest.
$ac_ext
19913 cat >>conftest.
$ac_ext <<_ACEOF
19914 /* end confdefs.h. */
19915 $ac_includes_default
19916 #include <$ac_header>
19918 rm -f conftest.
$ac_objext
19919 if { (ac_try
="$ac_compile"
19920 case "(($ac_try" in
19921 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19922 *) ac_try_echo=$ac_try;;
19924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19925 (eval "$ac_compile") 2>conftest.er1
19927 grep -v '^ *+' conftest.er1 >conftest.err
19929 cat conftest.err >&5
19930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19931 (exit $ac_status); } && {
19932 test -z "$ac_cxx_werror_flag" ||
19933 test ! -s conftest.err
19934 } && test -s conftest.$ac_objext; then
19935 ac_header_compiler=yes
19937 echo "$as_me: failed program was:" >&5
19938 sed 's/^/| /' conftest.$ac_ext >&5
19940 ac_header_compiler=no
19943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19944 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19945 echo "${ECHO_T}$ac_header_compiler" >&6; }
19947 # Is the header present?
19948 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19949 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19950 cat >conftest.$ac_ext <<_ACEOF
19953 cat confdefs.h >>conftest.$ac_ext
19954 cat >>conftest.$ac_ext <<_ACEOF
19955 /* end confdefs.h. */
19956 #include <$ac_header>
19958 if { (ac_try="$ac_cpp conftest.$ac_ext"
19959 case "(($ac_try" in
19960 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19961 *) ac_try_echo
=$ac_try;;
19963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19964 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19966 grep -v '^ *+' conftest.er1
>conftest.err
19968 cat conftest.err
>&5
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); } >/dev
/null
&& {
19971 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
19972 test ! -s conftest.err
19974 ac_header_preproc
=yes
19976 echo "$as_me: failed program was:" >&5
19977 sed 's/^/| /' conftest.
$ac_ext >&5
19979 ac_header_preproc
=no
19982 rm -f conftest.err conftest.
$ac_ext
19983 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19984 echo "${ECHO_T}$ac_header_preproc" >&6; }
19986 # So? What about this header?
19987 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19989 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19990 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19992 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19993 ac_header_preproc
=yes
19996 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19997 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19998 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19999 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20000 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20001 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20002 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20003 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20005 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20006 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20007 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20011 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20013 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20014 echo $ECHO_N "(cached) $ECHO_C" >&6
20016 eval "$as_ac_Header=\$ac_header_preproc"
20018 ac_res
=`eval echo '${'$as_ac_Header'}'`
20019 { echo "$as_me:$LINENO: result: $ac_res" >&5
20020 echo "${ECHO_T}$ac_res" >&6; }
20023 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20024 cat >>confdefs.h
<<_ACEOF
20025 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20035 ac_config_files
="$ac_config_files Makefile src/Makefile include/Makefile src/storage/Makefile src/sql/Makefile src/adapter/Makefile src/gateway/Makefile src/cache/Makefile src/network/Makefile src/sqllog/Makefile src/tools/Makefile src/jdbc/Makefile src/odbc/Makefile src/oci/Makefile src/sqlnetwork/Makefile"
20037 cat >confcache
<<\_ACEOF
20038 # This file is a shell script that caches the results of configure
20039 # tests run on this system so they can be shared between configure
20040 # scripts and configure runs, see configure's option --config-cache.
20041 # It is not useful on other systems. If it contains results you don't
20042 # want to keep, you may remove or edit it.
20044 # config.status only pays attention to the cache file if you give it
20045 # the --recheck option to rerun configure.
20047 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20048 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20049 # following values.
20053 # The following way of writing the cache mishandles newlines in values,
20054 # but we know of no workaround that is simple, portable, and efficient.
20055 # So, we kill variables containing newlines.
20056 # Ultrix sh set writes to stderr and can't be redirected directly,
20057 # and sets the high bit in the cache file unless we assign to the vars.
20059 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20060 eval ac_val
=\$
$ac_var
20064 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20065 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20068 _ | IFS | as_nl
) ;; #(
20069 *) $as_unset $ac_var ;;
20075 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20076 *${as_nl}ac_space
=\
*)
20077 # `set' does not quote correctly, so add quotes (double-quote
20078 # substitution turns \\\\ into \\, and sed turns \\ into \).
20081 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20084 # `set' quotes correctly as required by POSIX, so do not add quotes.
20085 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20094 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20096 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20098 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
20099 if test -w "$cache_file"; then
20100 test "x$cache_file" != "x/dev/null" &&
20101 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20102 echo "$as_me: updating cache $cache_file" >&6;}
20103 cat confcache
>$cache_file
20105 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20106 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20111 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
20112 # Let make expand exec_prefix.
20113 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
20115 DEFS
=-DHAVE_CONFIG_H
20119 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
20120 # 1. Remove the extension, and $U if already installed.
20121 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
20122 ac_i
=`echo "$ac_i" | sed "$ac_script"`
20123 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20124 # will be set to the directory where LIBOBJS objects are built.
20125 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20126 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20128 LIBOBJS
=$ac_libobjs
20130 LTLIBOBJS
=$ac_ltlibobjs
20133 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20134 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20135 Usually this means the macro was only invoked conditionally." >&5
20136 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20137 Usually this means the macro was only invoked conditionally." >&2;}
20138 { (exit 1); exit 1; }; }
20140 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20141 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20142 Usually this means the macro was only invoked conditionally." >&5
20143 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20144 Usually this means the macro was only invoked conditionally." >&2;}
20145 { (exit 1); exit 1; }; }
20147 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20148 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20149 Usually this means the macro was only invoked conditionally." >&5
20150 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20151 Usually this means the macro was only invoked conditionally." >&2;}
20152 { (exit 1); exit 1; }; }
20155 : ${CONFIG_STATUS=./config.status}
20156 ac_clean_files_save
=$ac_clean_files
20157 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
20158 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20159 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20160 cat >$CONFIG_STATUS <<_ACEOF
20162 # Generated by $as_me.
20163 # Run this file to recreate the current configuration.
20164 # Compiler output produced by configure, useful for debugging
20165 # configure, is in config.log if it exists.
20168 ac_cs_recheck=false
20170 SHELL=\${CONFIG_SHELL-$SHELL}
20173 cat >>$CONFIG_STATUS <<\_ACEOF
20174 ## --------------------- ##
20175 ## M4sh Initialization. ##
20176 ## --------------------- ##
20178 # Be more Bourne compatible
20179 DUALCASE
=1; export DUALCASE
# for MKS sh
20180 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
20183 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20184 # is contrary to our usage. Disable this feature.
20185 alias -g '${1+"$@"}'='"$@"'
20186 setopt NO_GLOB_SUBST
20188 case `(set -o) 2>/dev/null` in
20189 *posix
*) set -o posix
;;
20198 # Avoid depending upon Character Ranges.
20199 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
20200 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20201 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
20202 as_cr_digits
='0123456789'
20203 as_cr_alnum
=$as_cr_Letters$as_cr_digits
20205 # The user is always right.
20206 if test "${PATH_SEPARATOR+set}" != set; then
20207 echo "#! /bin/sh" >conf$$.sh
20208 echo "exit 0" >>conf$$.sh
20210 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
20218 # Support unset when possible.
20219 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
20227 # We need space, tab and new line, in precisely that order. Quoting is
20228 # there to prevent editors from complaining about space-tab.
20229 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20230 # splitting by setting IFS to empty value.)
20235 # Find who we are. Look in the path if we contain no directory separator.
20237 *[\\/]* ) as_myself
=$0 ;;
20238 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20239 for as_dir
in $PATH
20242 test -z "$as_dir" && as_dir
=.
20243 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
20249 # We did not find ourselves, most probably we were run as `sh COMMAND'
20250 # in which case we are not to be found in the path.
20251 if test "x$as_myself" = x
; then
20254 if test ! -f "$as_myself"; then
20255 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20256 { (exit 1); exit 1; }
20259 # Work around bugs in pre-3.0 UWIN ksh.
20260 for as_var
in ENV MAIL MAILPATH
20261 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
20269 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20270 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20271 LC_TELEPHONE LC_TIME
20273 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20274 eval $as_var=C
; export $as_var
20276 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
20280 # Required to use basename.
20281 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
20282 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
20288 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20289 as_basename
=basename
20295 # Name of the executable.
20296 as_me
=`$as_basename -- "$0" ||
20297 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20298 X"$0" : 'X\(//\)$' \| \
20299 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20301 sed '/^.*\/\([^/][^/]*\)\/*$/{
20320 as_lineno_1
=$LINENO
20321 as_lineno_2
=$LINENO
20322 test "x$as_lineno_1" != "x$as_lineno_2" &&
20323 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
20325 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20326 # uniformly replaced by the line number. The first 'sed' inserts a
20327 # line-number line after each line using $LINENO; the second 'sed'
20328 # does the real work. The second script uses 'N' to pair each
20329 # line-number line with the line containing $LINENO, and appends
20330 # trailing '-' during substitution so that $LINENO is not a special
20331 # case at line end.
20332 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20333 # scripts with optimization help from Paolo Bonzini. Blame Lee
20334 # E. McMahon (1931-1989) for sed's syntax. :-)
20346 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20349 ' >$as_me.lineno
&&
20350 chmod +x
"$as_me.lineno" ||
20351 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20352 { (exit 1); exit 1; }; }
20354 # Don't try to exec as it changes $[0], causing all sort of problems
20355 # (the dirname of $[0] is not the place where we might find the
20356 # original and so on. Autoconf is especially sensitive to this).
20357 .
"./$as_me.lineno"
20358 # Exit status is that of the last command.
20363 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
20369 ECHO_C
= ECHO_N
= ECHO_T
=
20370 case `echo -n x` in
20372 case `echo 'x\c'` in
20373 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
20380 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
20381 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
20387 rm -f conf$$ conf$$.exe conf$$.
file
20388 if test -d conf$$.dir
; then
20389 rm -f conf$$.dir
/conf$$.
file
20395 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
20397 # ... but there are two gotchas:
20398 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20399 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20400 # In both cases, we have to default to `cp -p'.
20401 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
20403 elif ln conf$$.
file conf$$
2>/dev
/null
; then
20408 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
20409 rmdir conf$$.dir
2>/dev
/null
20411 if mkdir
-p .
2>/dev
/null
; then
20414 test -d .
/-p && rmdir .
/-p
20418 if test -x / >/dev
/null
2>&1; then
20419 as_test_x
='test -x'
20421 if ls -dL / >/dev
/null
2>&1; then
20428 if test -d "$1"; then
20434 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20435 ???[sx]*):;;*)false;;esac;fi
20439 as_executable_p
=$as_test_x
20441 # Sed expression to map a string onto a valid CPP name.
20442 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20444 # Sed expression to map a string onto a valid variable name.
20445 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20450 # Save the log message, to keep $[0] and so on meaningful, and to
20451 # report actual input values of CONFIG_FILES etc. instead of their
20452 # values after options handling.
20454 This file was extended by $as_me, which was
20455 generated by GNU Autoconf 2.61. Invocation command line was
20457 CONFIG_FILES = $CONFIG_FILES
20458 CONFIG_HEADERS = $CONFIG_HEADERS
20459 CONFIG_LINKS = $CONFIG_LINKS
20460 CONFIG_COMMANDS = $CONFIG_COMMANDS
20463 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20468 cat >>$CONFIG_STATUS <<_ACEOF
20469 # Files that config.status was made for.
20470 config_files="$ac_config_files"
20471 config_headers="$ac_config_headers"
20472 config_commands="$ac_config_commands"
20476 cat >>$CONFIG_STATUS <<\_ACEOF
20478 \`$as_me' instantiates files from templates according to the
20479 current configuration.
20481 Usage: $0 [OPTIONS] [FILE]...
20483 -h, --help print this help, then exit
20484 -V, --version print version number and configuration settings, then exit
20485 -q, --quiet do not print progress messages
20486 -d, --debug don't remove temporary files
20487 --recheck update $as_me by reconfiguring in the same conditions
20488 --file=FILE[:TEMPLATE]
20489 instantiate the configuration file FILE
20490 --header=FILE[:TEMPLATE]
20491 instantiate the configuration header FILE
20493 Configuration files:
20496 Configuration headers:
20499 Configuration commands:
20502 Report bugs to <bug-autoconf@gnu.org>."
20505 cat >>$CONFIG_STATUS <<_ACEOF
20508 configured by $0, generated by GNU Autoconf 2.61,
20509 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20511 Copyright (C) 2006 Free Software Foundation, Inc.
20512 This config.status script is free software; the Free Software Foundation
20513 gives unlimited permission to copy, distribute and modify it."
20521 cat >>$CONFIG_STATUS <<\_ACEOF
20522 # If no file are specified by the user, then we need to provide default
20523 # value. By we need to know if files were specified by the user.
20529 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20530 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
20541 # Handling of the options.
20542 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20544 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
20545 echo "$ac_cs_version"; exit ;;
20546 --debug |
--debu |
--deb |
--de |
--d |
-d )
20548 --file |
--fil |
--fi |
--f )
20550 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
20551 ac_need_defaults
=false
;;
20552 --header |
--heade |
--head |
--hea )
20554 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
20555 ac_need_defaults
=false
;;
20557 # Conflict between --help and --header
20558 { echo "$as_me: error: ambiguous option: $1
20559 Try \`$0 --help' for more information." >&2
20560 { (exit 1); exit 1; }; };;
20561 --help |
--hel |
-h )
20562 echo "$ac_cs_usage"; exit ;;
20563 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20564 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20567 # This is an error.
20568 -*) { echo "$as_me: error: unrecognized option: $1
20569 Try \`$0 --help' for more information." >&2
20570 { (exit 1); exit 1; }; } ;;
20572 *) ac_config_targets
="$ac_config_targets $1"
20573 ac_need_defaults
=false
;;
20579 ac_configure_extra_args
=
20581 if $ac_cs_silent; then
20583 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20587 cat >>$CONFIG_STATUS <<_ACEOF
20588 if \$ac_cs_recheck; then
20589 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20590 CONFIG_SHELL=$SHELL
20591 export CONFIG_SHELL
20592 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20596 cat >>$CONFIG_STATUS <<\_ACEOF
20600 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20601 ## Running $as_me. ##
20607 cat >>$CONFIG_STATUS <<_ACEOF
20611 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20615 cat >>$CONFIG_STATUS <<\_ACEOF
20617 # Handling of arguments.
20618 for ac_config_target
in $ac_config_targets
20620 case $ac_config_target in
20621 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
20622 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
20623 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
20624 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
20625 "include/Makefile") CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
20626 "src/storage/Makefile") CONFIG_FILES
="$CONFIG_FILES src/storage/Makefile" ;;
20627 "src/sql/Makefile") CONFIG_FILES
="$CONFIG_FILES src/sql/Makefile" ;;
20628 "src/adapter/Makefile") CONFIG_FILES
="$CONFIG_FILES src/adapter/Makefile" ;;
20629 "src/gateway/Makefile") CONFIG_FILES
="$CONFIG_FILES src/gateway/Makefile" ;;
20630 "src/cache/Makefile") CONFIG_FILES
="$CONFIG_FILES src/cache/Makefile" ;;
20631 "src/network/Makefile") CONFIG_FILES
="$CONFIG_FILES src/network/Makefile" ;;
20632 "src/sqllog/Makefile") CONFIG_FILES
="$CONFIG_FILES src/sqllog/Makefile" ;;
20633 "src/tools/Makefile") CONFIG_FILES
="$CONFIG_FILES src/tools/Makefile" ;;
20634 "src/jdbc/Makefile") CONFIG_FILES
="$CONFIG_FILES src/jdbc/Makefile" ;;
20635 "src/odbc/Makefile") CONFIG_FILES
="$CONFIG_FILES src/odbc/Makefile" ;;
20636 "src/oci/Makefile") CONFIG_FILES
="$CONFIG_FILES src/oci/Makefile" ;;
20637 "src/sqlnetwork/Makefile") CONFIG_FILES
="$CONFIG_FILES src/sqlnetwork/Makefile" ;;
20639 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20640 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20641 { (exit 1); exit 1; }; };;
20646 # If the user did not use the arguments to specify the items to instantiate,
20647 # then the envvar interface is used. Set only those that are not.
20648 # We use the long form for the default assignment because of an extremely
20649 # bizarre bug on SunOS 4.1.3.
20650 if $ac_need_defaults; then
20651 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20652 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
20653 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20656 # Have a temporary directory for convenience. Make it in the build tree
20657 # simply because there is no reason against having it here, and in addition,
20658 # creating and moving files from /tmp can sometimes cause problems.
20659 # Hook for its removal unless debugging.
20660 # Note that there is a small window in which the directory will not be cleaned:
20661 # after its creation but before its name has been assigned to `$tmp'.
20665 trap 'exit_status=$?
20666 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20668 trap '{ (exit 1); exit 1; }' 1 2 13 15
20670 # Create a (secure) tmp directory for tmp files.
20673 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20674 test -n "$tmp" && test -d "$tmp"
20677 tmp
=.
/conf$$
-$RANDOM
20678 (umask 077 && mkdir
"$tmp")
20681 echo "$me: cannot create a temporary directory in ." >&2
20682 { (exit 1); exit 1; }
20686 # Set up the sed scripts for CONFIG_FILES section.
20689 # No need to generate the scripts if there are no CONFIG_FILES.
20690 # This happens for instance when ./config.status config.h
20691 if test -n "$CONFIG_FILES"; then
20698 for ac_last_try
in false false false false false
:; do
20699 cat >conf$
$subs.
sed <<_ACEOF
20700 SHELL!$SHELL$ac_delim
20701 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20702 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20703 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20704 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20705 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20706 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20707 exec_prefix!$exec_prefix$ac_delim
20708 prefix!$prefix$ac_delim
20709 program_transform_name!$program_transform_name$ac_delim
20710 bindir!$bindir$ac_delim
20711 sbindir!$sbindir$ac_delim
20712 libexecdir!$libexecdir$ac_delim
20713 datarootdir!$datarootdir$ac_delim
20714 datadir!$datadir$ac_delim
20715 sysconfdir!$sysconfdir$ac_delim
20716 sharedstatedir!$sharedstatedir$ac_delim
20717 localstatedir!$localstatedir$ac_delim
20718 includedir!$includedir$ac_delim
20719 oldincludedir!$oldincludedir$ac_delim
20720 docdir!$docdir$ac_delim
20721 infodir!$infodir$ac_delim
20722 htmldir!$htmldir$ac_delim
20723 dvidir!$dvidir$ac_delim
20724 pdfdir!$pdfdir$ac_delim
20725 psdir!$psdir$ac_delim
20726 libdir!$libdir$ac_delim
20727 localedir!$localedir$ac_delim
20728 mandir!$mandir$ac_delim
20729 DEFS!$DEFS$ac_delim
20730 ECHO_C!$ECHO_C$ac_delim
20731 ECHO_N!$ECHO_N$ac_delim
20732 ECHO_T!$ECHO_T$ac_delim
20733 LIBS!$LIBS$ac_delim
20734 build_alias!$build_alias$ac_delim
20735 host_alias!$host_alias$ac_delim
20736 target_alias!$target_alias$ac_delim
20737 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20738 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20739 INSTALL_DATA!$INSTALL_DATA$ac_delim
20740 am__isrc!$am__isrc$ac_delim
20741 CYGPATH_W!$CYGPATH_W$ac_delim
20742 PACKAGE!$PACKAGE$ac_delim
20743 VERSION!$VERSION$ac_delim
20744 ACLOCAL!$ACLOCAL$ac_delim
20745 AUTOCONF!$AUTOCONF$ac_delim
20746 AUTOMAKE!$AUTOMAKE$ac_delim
20747 AUTOHEADER!$AUTOHEADER$ac_delim
20748 MAKEINFO!$MAKEINFO$ac_delim
20749 install_sh!$install_sh$ac_delim
20750 STRIP!$STRIP$ac_delim
20751 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20752 mkdir_p!$mkdir_p$ac_delim
20754 SET_MAKE!$SET_MAKE$ac_delim
20755 am__leading_dot!$am__leading_dot$ac_delim
20756 AMTAR!$AMTAR$ac_delim
20757 am__tar!$am__tar$ac_delim
20758 am__untar!$am__untar$ac_delim
20760 CXXFLAGS!$CXXFLAGS$ac_delim
20761 LDFLAGS!$LDFLAGS$ac_delim
20762 CPPFLAGS!$CPPFLAGS$ac_delim
20763 ac_ct_CXX!$ac_ct_CXX$ac_delim
20764 EXEEXT!$EXEEXT$ac_delim
20765 OBJEXT!$OBJEXT$ac_delim
20766 DEPDIR!$DEPDIR$ac_delim
20767 am__include!$am__include$ac_delim
20768 am__quote!$am__quote$ac_delim
20769 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
20770 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20771 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20772 CXXDEPMODE!$CXXDEPMODE$ac_delim
20773 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
20774 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
20775 build!$build$ac_delim
20776 build_cpu!$build_cpu$ac_delim
20777 build_vendor!$build_vendor$ac_delim
20778 build_os!$build_os$ac_delim
20779 host!$host$ac_delim
20780 host_cpu!$host_cpu$ac_delim
20781 host_vendor!$host_vendor$ac_delim
20782 host_os!$host_os$ac_delim
20784 CFLAGS!$CFLAGS$ac_delim
20785 ac_ct_CC!$ac_ct_CC$ac_delim
20786 CCDEPMODE!$CCDEPMODE$ac_delim
20787 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20788 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20790 GREP!$GREP$ac_delim
20791 EGREP!$EGREP$ac_delim
20792 LN_S!$LN_S$ac_delim
20793 ECHO!$ECHO$ac_delim
20795 RANLIB!$RANLIB$ac_delim
20799 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20801 elif $ac_last_try; then
20802 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20803 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20804 { (exit 1); exit 1; }; }
20806 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
20810 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20811 if test -n "$ac_eof"; then
20812 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
20813 ac_eof
=`expr $ac_eof + 1`
20816 cat >>$CONFIG_STATUS <<_ACEOF
20817 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20818 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20821 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20822 s/^/s,@/; s/!/@,|#_!!_#|/
20825 s/'"$ac_delim"'$/,g/; t
20827 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20828 ' >>$CONFIG_STATUS <conf$
$subs.
sed
20829 rm -f conf$
$subs.
sed
20830 cat >>$CONFIG_STATUS <<_ACEOF
20836 for ac_last_try
in false false false false false
:; do
20837 cat >conf$
$subs.
sed <<_ACEOF
20838 CXXCPP!$CXXCPP$ac_delim
20840 FFLAGS!$FFLAGS$ac_delim
20841 ac_ct_F77!$ac_ct_F77$ac_delim
20842 LIBTOOL!$LIBTOOL$ac_delim
20843 YACC!$YACC$ac_delim
20844 YFLAGS!$YFLAGS$ac_delim
20846 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
20847 LEXLIB!$LEXLIB$ac_delim
20848 LIBOBJS!$LIBOBJS$ac_delim
20849 LTLIBOBJS!$LTLIBOBJS$ac_delim
20852 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 12; then
20854 elif $ac_last_try; then
20855 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20856 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20857 { (exit 1); exit 1; }; }
20859 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
20863 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20864 if test -n "$ac_eof"; then
20865 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
20866 ac_eof
=`expr $ac_eof + 1`
20869 cat >>$CONFIG_STATUS <<_ACEOF
20870 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20871 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20874 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20875 s/^/s,@/; s/!/@,|#_!!_#|/
20878 s/'"$ac_delim"'$/,g/; t
20880 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20881 ' >>$CONFIG_STATUS <conf$
$subs.
sed
20882 rm -f conf$
$subs.
sed
20883 cat >>$CONFIG_STATUS <<_ACEOF
20890 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20891 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20892 # trailing colons and then remove the whole line if VPATH becomes empty
20893 # (actually we leave an empty line to preserve line numbers).
20894 if test "x$srcdir" = x.
; then
20895 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
20896 s/:*\$(srcdir):*/:/
20897 s/:*\${srcdir}:*/:/
20899 s/^\([^=]*=[ ]*\):*/\1/
20905 cat >>$CONFIG_STATUS <<\_ACEOF
20906 fi # test -n "$CONFIG_FILES"
20909 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
20912 :[FHLC
]) ac_mode
=$ac_tag; continue;;
20914 case $ac_mode$ac_tag in
20916 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20917 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20918 { (exit 1); exit 1; }; };;
20919 :[FH
]-) ac_tag
=-:-;;
20920 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
20937 -) ac_f
="$tmp/stdin";;
20938 *) # Look for the file first in the build tree, then in the source tree
20939 # (if the path is not absolute). The absolute path cannot be DOS-style,
20940 # because $ac_f cannot contain `:'.
20944 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
20946 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20947 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20948 { (exit 1); exit 1; }; };;
20950 ac_file_inputs
="$ac_file_inputs $ac_f"
20953 # Let's still pretend it is `configure' which instantiates (i.e., don't
20954 # use $as_me), people would be surprised to read:
20955 # /* config.h. Generated by config.status. */
20956 configure_input
="Generated from "`IFS=:
20957 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20958 if test x
"$ac_file" != x-
; then
20959 configure_input
="$ac_file. $configure_input"
20960 { echo "$as_me:$LINENO: creating $ac_file" >&5
20961 echo "$as_me: creating $ac_file" >&6;}
20965 *:-:* |
*:-) cat >"$tmp/stdin";;
20970 ac_dir
=`$as_dirname -- "$ac_file" ||
20971 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20972 X"$ac_file" : 'X\(//\)[^/]' \| \
20973 X"$ac_file" : 'X\(//\)$' \| \
20974 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20976 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20980 /^X\(\/\/\)[^/].*/{
20995 -*) as_dir
=.
/$as_dir;;
20997 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
21001 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21002 *) as_qdir
=$as_dir;;
21004 as_dirs
="'$as_qdir' $as_dirs"
21005 as_dir
=`$as_dirname -- "$as_dir" ||
21006 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21007 X"$as_dir" : 'X\(//\)[^/]' \| \
21008 X"$as_dir" : 'X\(//\)$' \| \
21009 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21015 /^X\(\/\/\)[^/].*/{
21028 test -d "$as_dir" && break
21030 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
21031 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21032 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21033 { (exit 1); exit 1; }; }; }
21037 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21039 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21040 # A ".." for each directory in $ac_dir_suffix.
21041 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21042 case $ac_top_builddir_sub in
21043 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21044 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
21047 ac_abs_top_builddir
=$ac_pwd
21048 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
21049 # for backward compatibility:
21050 ac_top_builddir
=$ac_top_build_prefix
21053 .
) # We are building in place.
21055 ac_top_srcdir
=$ac_top_builddir_sub
21056 ac_abs_top_srcdir
=$ac_pwd ;;
21057 [\\/]* | ?
:[\\/]* ) # Absolute name.
21058 ac_srcdir
=$srcdir$ac_dir_suffix;
21059 ac_top_srcdir
=$srcdir
21060 ac_abs_top_srcdir
=$srcdir ;;
21061 *) # Relative name.
21062 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
21063 ac_top_srcdir
=$ac_top_build_prefix$srcdir
21064 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
21066 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
21076 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
21077 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
21079 ac_MKDIR_P
=$MKDIR_P
21081 [\\/$
]* | ?
:[\\/]* ) ;;
21082 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
21086 cat >>$CONFIG_STATUS <<\_ACEOF
21087 # If the template does not know about datarootdir, expand it.
21088 # FIXME: This hack should be removed a few years after 2.60.
21089 ac_datarootdir_hack
=; ac_datarootdir_seen
=
21091 case `sed -n '/datarootdir/ {
21100 ' $ac_file_inputs` in
21101 *datarootdir
*) ac_datarootdir_seen
=yes;;
21102 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
21103 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21104 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21106 cat >>$CONFIG_STATUS <<_ACEOF
21107 ac_datarootdir_hack='
21108 s&@datadir@&$datadir&g
21109 s&@docdir@&$docdir&g
21110 s&@infodir@&$infodir&g
21111 s&@localedir@&$localedir&g
21112 s&@mandir@&$mandir&g
21113 s&\\\${datarootdir}&$datarootdir&g' ;;
21117 # Neutralize VPATH when `$srcdir' = `.'.
21118 # Shell code in configure.ac might set extrasub.
21119 # FIXME: do we really want to maintain this feature?
21120 cat >>$CONFIG_STATUS <<_ACEOF
21124 cat >>$CONFIG_STATUS <<\_ACEOF
21126 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
21127 s
&@configure_input@
&$configure_input&;t t
21128 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
21129 s
&@srcdir@
&$ac_srcdir&;t t
21130 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
21131 s
&@top_srcdir@
&$ac_top_srcdir&;t t
21132 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
21133 s
&@builddir@
&$ac_builddir&;t t
21134 s
&@abs_builddir@
&$ac_abs_builddir&;t t
21135 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
21136 s
&@INSTALL@
&$ac_INSTALL&;t t
21137 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
21138 $ac_datarootdir_hack
21139 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
21141 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21142 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
21143 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
21144 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
21145 which seems to be undefined. Please make sure it is defined." >&5
21146 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
21147 which seems to be undefined. Please make sure it is defined." >&2;}
21151 -) cat "$tmp/out"; rm -f "$tmp/out";;
21152 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21161 # Transform confdefs.h into a sed script `conftest.defines', that
21162 # substitutes the proper values into config.h.in to produce config.h.
21163 rm -f conftest.defines conftest.
tail
21164 # First, append a space to every undef/define line, to ease matching.
21165 echo 's/$/ /' >conftest.defines
21166 # Then, protect against being on the right side of a sed subst, or in
21167 # an unquoted here document, in config.status. If some macros were
21168 # called several times there might be several #defines for the same
21169 # symbol, which is useless. But do not sort them, since the last
21170 # AC_DEFINE must be honored.
21171 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
21172 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21173 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21174 # PARAMS is the parameter list in the macro definition--in most cases, it's
21175 # just an empty string.
21176 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21177 ac_dB
='\\)[ (].*,\\1define\\2'
21185 s/^[ ]*#[ ]*define[ ][ ]*//
21190 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21191 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21192 ' >>conftest.defines
21194 # Remove the space that was appended to ease matching.
21195 # Then replace #undef with comments. This is necessary, for
21196 # example, in the case of _POSIX_SOURCE, which is predefined and required
21197 # on some systems where configure will not decide to define it.
21198 # (The regexp can be short, since the line contains either #define or #undef.)
21200 s,^[ #]*u.*,/* & */,' >>conftest.defines
21202 # Break up conftest.defines:
21203 ac_max_sed_lines
=50
21205 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21206 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21207 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21209 ac_in
='$ac_file_inputs'
21210 ac_out
='"$tmp/out1"'
21211 ac_nxt
='"$tmp/out2"'
21215 # Write a here document:
21216 cat >>$CONFIG_STATUS <<_ACEOF
21217 # First, check the format of the line:
21218 cat >"\$tmp/defines.sed" <<\\CEOF
21219 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21220 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21224 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
21226 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21227 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
21228 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
21229 grep . conftest.
tail >/dev
/null ||
break
21230 rm -f conftest.defines
21231 mv conftest.
tail conftest.defines
21233 rm -f conftest.defines conftest.
tail
21235 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21236 cat >>$CONFIG_STATUS <<\_ACEOF
21237 if test x
"$ac_file" != x-
; then
21238 echo "/* $configure_input */" >"$tmp/config.h"
21239 cat "$ac_result" >>"$tmp/config.h"
21240 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
21241 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21242 echo "$as_me: $ac_file is unchanged" >&6;}
21245 mv "$tmp/config.h" $ac_file
21248 echo "/* $configure_input */"
21252 # Compute $ac_file's index in $config_headers.
21254 for _am_header
in $config_headers :; do
21255 case $_am_header in
21256 $ac_file |
$ac_file:* )
21259 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
21262 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
21263 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21264 X$ac_file : 'X\(//\)[^/]' \| \
21265 X$ac_file : 'X\(//\)$' \| \
21266 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
21268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21272 /^X\(\/\/\)[^/].*/{
21284 s/.*/./; q'`/stamp-h
$_am_stamp_count
21287 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21288 echo "$as_me: executing $ac_file commands" >&6;}
21293 case $ac_file$ac_mode in
21294 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
21295 # Strip MF so we end up with the name of the file.
21296 mf
=`echo "$mf" | sed -e 's/:.*$//'`
21297 # Check whether this is an Automake generated Makefile or not.
21298 # We used to match only the files named `Makefile.in', but
21299 # some people rename them; so instead we look at the file content.
21300 # Grep'ing the first line is not enough: some people post-process
21301 # each Makefile.in and add a new line on top of each file to say so.
21302 # Grep'ing the whole file is not good either: AIX grep has a line
21303 # limit of 2048, but all sed's we know have understand at least 4000.
21304 if sed 10q
"$mf" |
grep '^#.*generated by automake' > /dev
/null
2>&1; then
21305 dirpart
=`$as_dirname -- "$mf" ||
21306 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21307 X"$mf" : 'X\(//\)[^/]' \| \
21308 X"$mf" : 'X\(//\)$' \| \
21309 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21315 /^X\(\/\/\)[^/].*/{
21331 # Extract the definition of DEPDIR, am__include, and am__quote
21332 # from the Makefile without running `make'.
21333 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
21334 test -z "$DEPDIR" && continue
21335 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
21336 test -z "am__include" && continue
21337 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
21338 # When using ansi2knr, U may be empty or an underscore; expand it
21339 U
=`sed -n 's/^U = //p' < "$mf"`
21340 # Find all dependency output files, they are included files with
21341 # $(DEPDIR) in their names. We invoke sed twice because it is the
21342 # simplest approach to changing $(DEPDIR) to its actual value in the
21344 for file in `sed -n "
21345 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21346 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21347 # Make sure the directory exists.
21348 test -f "$dirpart/$file" && continue
21349 fdir
=`$as_dirname -- "$file" ||
21350 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21351 X"$file" : 'X\(//\)[^/]' \| \
21352 X"$file" : 'X\(//\)$' \| \
21353 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21359 /^X\(\/\/\)[^/].*/{
21372 { as_dir
=$dirpart/$fdir
21374 -*) as_dir
=.
/$as_dir;;
21376 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
21380 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21381 *) as_qdir
=$as_dir;;
21383 as_dirs
="'$as_qdir' $as_dirs"
21384 as_dir
=`$as_dirname -- "$as_dir" ||
21385 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21386 X"$as_dir" : 'X\(//\)[^/]' \| \
21387 X"$as_dir" : 'X\(//\)$' \| \
21388 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21394 /^X\(\/\/\)[^/].*/{
21407 test -d "$as_dir" && break
21409 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
21410 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21411 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21412 { (exit 1); exit 1; }; }; }
21413 # echo "creating $dirpart/$file"
21414 echo '# dummy' > "$dirpart/$file"
21423 { (exit 0); exit 0; }
21425 chmod +x
$CONFIG_STATUS
21426 ac_clean_files
=$ac_clean_files_save
21429 # configure is writing to config.log, and then calls config.status.
21430 # config.status does its own redirection, appending to config.log.
21431 # Unfortunately, on DOS this fails, as config.log is still kept open
21432 # by configure, so config.status won't be able to write to it; its
21433 # output is simply discarded. So we exec the FD to /dev/null,
21434 # effectively closing config.log, so it can be properly (re)opened and
21435 # appended to by config.status. When coming back to configure, we
21436 # need to make the FD available again.
21437 if test "$no_create" != yes; then
21439 ac_config_status_args
=
21440 test "$silent" = yes &&
21441 ac_config_status_args
="$ac_config_status_args --quiet"
21443 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
21445 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21446 # would make configure fail if this is the last instruction.
21447 $ac_cs_success ||
{ (exit 1); exit 1; }