version 1.26 | | version 1.27 |
---|
| | |
# generated automatically by aclocal 1.9.6 -*- Autoconf -*- | | # generated automatically by aclocal 1.9.5 -*- Autoconf -*- |
| | |
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, | | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
# 2005 Free Software Foundation, Inc. | | # 2005 Free Software Foundation, Inc. |
| | |
| | |
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- | | # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- |
| | |
# serial 48 AC_PROG_LIBTOOL | | # serial 47 AC_PROG_LIBTOOL |
| | # Debian $Rev: 214 $ |
| | |
| | |
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) | | # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) |
| | |
| | |
# Sed substitution that helps us do robust quoting. It backslashifies | | # Sed substitution that helps us do robust quoting. It backslashifies |
# metacharacters that are still active within double-quoted strings. | | # metacharacters that are still active within double-quoted strings. |
Xsed='sed -e 1s/^X//' | | Xsed='sed -e s/^X//' |
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] | | [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] |
| | |
# Same as above, but do not quote variable references. | | # Same as above, but do not quote variable references. |
| | |
default_ofile=libtool | | default_ofile=libtool |
can_build_shared=yes | | can_build_shared=yes |
| | |
# All known linkers require a `.a' archive for static linking (except MSVC, | | # All known linkers require a `.a' archive for static linking (except M$VC, |
# which needs '.lib'). | | # which needs '.lib'). |
libext=a | | libext=a |
ltmain="$ac_aux_dir/ltmain.sh" | | ltmain="$ac_aux_dir/ltmain.sh" |
| | |
test -z "$AS" && AS=as | | test -z "$AS" && AS=as |
test -z "$CC" && CC=cc | | test -z "$CC" && CC=cc |
test -z "$LTCC" && LTCC=$CC | | test -z "$LTCC" && LTCC=$CC |
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | | |
test -z "$DLLTOOL" && DLLTOOL=dlltool | | test -z "$DLLTOOL" && DLLTOOL=dlltool |
test -z "$LD" && LD=ld | | test -z "$LD" && LD=ld |
test -z "$LN_S" && LN_S="ln -s" | | test -z "$LN_S" && LN_S="ln -s" |
| | |
if test -n "$RANLIB"; then | | if test -n "$RANLIB"; then |
case $host_os in | | case $host_os in |
openbsd*) | | openbsd*) |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
;; | | ;; |
*) | | *) |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
;; | | ;; |
esac | | esac |
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
fi | | fi |
| | |
_LT_CC_BASENAME([$compiler]) | | |
| | |
# Only perform the check for file, if the check method requires it | | # Only perform the check for file, if the check method requires it |
case $deplibs_check_method in | | case $deplibs_check_method in |
file_magic*) | | file_magic*) |
| | |
# If no C compiler was specified, use CC. | | # If no C compiler was specified, use CC. |
LTCC=${LTCC-"$CC"} | | LTCC=${LTCC-"$CC"} |
| | |
# If no C compiler flags were specified, use CFLAGS. | | |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | | |
| | |
# Allow CC to be a program name with arguments. | | # Allow CC to be a program name with arguments. |
compiler=$CC | | compiler=$CC |
])# _LT_AC_SYS_COMPILER | | ])# _LT_AC_SYS_COMPILER |
| | |
| | |
# _LT_CC_BASENAME(CC) | | |
# ------------------- | | |
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | | |
AC_DEFUN([_LT_CC_BASENAME], | | |
[for cc_temp in $1""; do | | |
case $cc_temp in | | |
compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; | | |
distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; | | |
\-*) ;; | | |
*) break;; | | |
esac | | |
done | | |
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | | |
]) | | |
| | |
| | |
# _LT_COMPILER_BOILERPLATE | | |
# ------------------------ | | |
# Check for compiler boilerplate output or warnings with | | |
# the simple compiler test code. | | |
AC_DEFUN([_LT_COMPILER_BOILERPLATE], | | |
[ac_outfile=conftest.$ac_objext | | |
printf "$lt_simple_compile_test_code" >conftest.$ac_ext | | |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | | |
_lt_compiler_boilerplate=`cat conftest.err` | | |
$rm conftest* | | |
])# _LT_COMPILER_BOILERPLATE | | |
| | |
| | |
# _LT_LINKER_BOILERPLATE | | |
# ---------------------- | | |
# Check for linker boilerplate output or warnings with | | |
# the simple link test code. | | |
AC_DEFUN([_LT_LINKER_BOILERPLATE], | | |
[ac_outfile=conftest.$ac_objext | | |
printf "$lt_simple_link_test_code" >conftest.$ac_ext | | |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | | |
_lt_linker_boilerplate=`cat conftest.err` | | |
$rm conftest* | | |
])# _LT_LINKER_BOILERPLATE | | |
| | |
| | |
# _LT_AC_SYS_LIBPATH_AIX | | # _LT_AC_SYS_LIBPATH_AIX |
# ---------------------- | | # ---------------------- |
# Links a minimal program and checks the executable | | # Links a minimal program and checks the executable |
| | |
| | |
# The HP-UX ksh and POSIX shell print the target directory to stdout | | # The HP-UX ksh and POSIX shell print the target directory to stdout |
# if CDPATH is set. | | # if CDPATH is set. |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH | | if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
| | |
if test -z "$ECHO"; then | | if test -z "$ECHO"; then |
if test "X${echo_test_string+set}" != Xset; then | | if test "X${echo_test_string+set}" != Xset; then |
# find a string as large as possible, as long as the shell can cope with it | | # find a string as large as possible, as long as the shell can cope with it |
for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do | | for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do |
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
if (echo_test_string=`eval $cmd`) 2>/dev/null && | | if (echo_test_string="`eval $cmd`") 2>/dev/null && |
echo_test_string=`eval $cmd` && | | echo_test_string="`eval $cmd`" && |
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null | | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
then | | then |
break | | break |
| | |
# Find out which ABI we are using. | | # Find out which ABI we are using. |
echo 'int i;' > conftest.$ac_ext | | echo 'int i;' > conftest.$ac_ext |
if AC_TRY_EVAL(ac_compile); then | | if AC_TRY_EVAL(ac_compile); then |
case `/usr/bin/file conftest.o` in | | case "`/usr/bin/file conftest.o`" in |
*32-bit*) | | *32-bit*) |
case $host in | | case $host in |
x86_64-*linux*) | | x86_64-*linux*) |
| | |
CFLAGS="$SAVE_CFLAGS" | | CFLAGS="$SAVE_CFLAGS" |
fi | | fi |
;; | | ;; |
sparc*-*solaris*) | | |
# Find out which ABI we are using. | | |
echo 'int i;' > conftest.$ac_ext | | |
if AC_TRY_EVAL(ac_compile); then | | |
case `/usr/bin/file conftest.o` in | | |
*64-bit*) | | |
case $lt_cv_prog_gnu_ld in | | |
yes*) LD="${LD-ld} -m elf64_sparc" ;; | | |
*) LD="${LD-ld} -64" ;; | | |
esac | | |
;; | | |
esac | | |
fi | | |
rm -rf conftest* | | |
;; | | |
| | |
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], | | AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], |
[*-*-cygwin* | *-*-mingw* | *-*-pw32*) | | [*-*-cygwin* | *-*-mingw* | *-*-pw32*) |
AC_CHECK_TOOL(DLLTOOL, dlltool, false) | | AC_CHECK_TOOL(DLLTOOL, dlltool, false) |
| | |
# with a dollar sign (not a hyphen), so the echo should work correctly. | | # with a dollar sign (not a hyphen), so the echo should work correctly. |
# The option is referenced via a variable to avoid confusing sed. | | # The option is referenced via a variable to avoid confusing sed. |
lt_compile=`echo "$ac_compile" | $SED \ | | lt_compile=`echo "$ac_compile" | $SED \ |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ | | -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
-e 's:$: $lt_compiler_flag:'` | | -e 's:$: $lt_compiler_flag:'` |
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) | | (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
| | |
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | | echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
if (exit $ac_status) && test -s "$ac_outfile"; then | | if (exit $ac_status) && test -s "$ac_outfile"; then |
# The compiler can only warn and ignore the option if not recognized | | # The compiler can only warn and ignore the option if not recognized |
# So say no if there are warnings other than the usual output. | | # So say no if there are warnings |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | | if test ! -s conftest.err; then |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | | |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | | |
$2=yes | | $2=yes |
fi | | fi |
fi | | fi |
| | |
LDFLAGS="$LDFLAGS $3" | | LDFLAGS="$LDFLAGS $3" |
printf "$lt_simple_link_test_code" > conftest.$ac_ext | | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
# The linker can only warn and ignore the option if not recognized | | # The compiler can only warn and ignore the option if not recognized |
# So say no if there are warnings | | # So say no if there are warnings |
if test -s conftest.err; then | | if test -s conftest.err; then |
# Append any errors to the config.log. | | # Append any errors to the config.log. |
cat conftest.err 1>&AS_MESSAGE_LOG_FD | | cat conftest.err 1>&AS_MESSAGE_LOG_FD |
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | | |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | | |
if diff conftest.exp conftest.er2 >/dev/null; then | | |
$2=yes | | |
fi | | |
else | | else |
$2=yes | | $2=yes |
fi | | fi |
| | |
lt_cv_sys_max_cmd_len=8192; | | lt_cv_sys_max_cmd_len=8192; |
;; | | ;; |
| | |
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | | |
# This has been around since 386BSD, at least. Likely further. | | |
if test -x /sbin/sysctl; then | | |
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | | |
elif test -x /usr/sbin/sysctl; then | | |
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | | |
else | | |
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | | |
fi | | |
# And add a safety zone | | |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | | |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | | |
;; | | |
| | |
interix*) | | |
# We know the value 262144 and hardcode it with a safety zone (like BSD) | | |
lt_cv_sys_max_cmd_len=196608 | | |
;; | | |
| | |
osf*) | | |
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | | |
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | | |
# nice to cause kernel panics so lets avoid the loop below. | | |
# First set a reasonable default. | | |
lt_cv_sys_max_cmd_len=16384 | | |
# | | |
if test -x /sbin/sysconfig; then | | |
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | | |
*1*) lt_cv_sys_max_cmd_len=-1 ;; | | |
esac | | |
fi | | |
;; | | |
sco3.2v5*) | | |
lt_cv_sys_max_cmd_len=102400 | | |
;; | | |
sysv5* | sco5v6* | sysv4.2uw2*) | | |
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | | |
if test -n "$kargmax"; then | | |
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` | | |
else | | |
lt_cv_sys_max_cmd_len=32768 | | |
fi | | |
;; | | |
*) | | *) |
# If test is not a shell built-in, we'll probably end up computing a | | # If test is not a shell built-in, we'll probably end up computing a |
# maximum length that is only half of the actual maximum length, but | | # maximum length that is only half of the actual maximum length, but |
# we can't tell. | | # we can't tell. |
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | | while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ |
while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ | | |
= "XX$teststring") >/dev/null 2>&1 && | | = "XX$teststring") >/dev/null 2>&1 && |
new_result=`expr "X$teststring" : ".*" 2>&1` && | | new_result=`expr "X$teststring" : ".*" 2>&1` && |
lt_cv_sys_max_cmd_len=$new_result && | | lt_cv_sys_max_cmd_len=$new_result && |
| | |
| | |
| | |
# _LT_AC_CHECK_DLFCN | | # _LT_AC_CHECK_DLFCN |
# ------------------ | | # -------------------- |
AC_DEFUN([_LT_AC_CHECK_DLFCN], | | AC_DEFUN([_LT_AC_CHECK_DLFCN], |
[AC_CHECK_HEADERS(dlfcn.h)dnl | | [AC_CHECK_HEADERS(dlfcn.h)dnl |
])# _LT_AC_CHECK_DLFCN | | ])# _LT_AC_CHECK_DLFCN |
| | |
| | |
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, | | # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, |
# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) | | # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) |
# --------------------------------------------------------------------- | | # ------------------------------------------------------------------ |
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], | | AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], |
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl | | [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl |
if test "$cross_compiling" = yes; then : | | if test "$cross_compiling" = yes; then : |
| | |
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
/* dlclose (self); */ | | /* dlclose (self); */ |
} | | } |
else | | |
puts (dlerror ()); | | |
| | |
exit (status); | | exit (status); |
}] | | }] |
EOF | | EOF |
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then | | if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then |
(./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null | | (./conftest; exit; ) 2>/dev/null |
lt_status=$? | | lt_status=$? |
case x$lt_status in | | case x$lt_status in |
x$lt_dlno_uscore) $1 ;; | | x$lt_dlno_uscore) $1 ;; |
x$lt_dlneed_uscore) $2 ;; | | x$lt_dlneed_uscore) $2 ;; |
x$lt_dlunknown|x*) $3 ;; | | x$lt_unknown|x*) $3 ;; |
esac | | esac |
else : | | else : |
# compilation failed | | # compilation failed |
| | |
| | |
| | |
# AC_LIBTOOL_DLOPEN_SELF | | # AC_LIBTOOL_DLOPEN_SELF |
# ---------------------- | | # ------------------- |
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], | | AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], |
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl | | [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl |
if test "x$enable_dlopen" != xyes; then | | if test "x$enable_dlopen" != xyes; then |
| | |
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| | |
save_LDFLAGS="$LDFLAGS" | | save_LDFLAGS="$LDFLAGS" |
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| | |
save_LIBS="$LIBS" | | save_LIBS="$LIBS" |
LIBS="$lt_cv_dlopen_libs $LIBS" | | LIBS="$lt_cv_dlopen_libs $LIBS" |
| | |
]) | | ]) |
| | |
if test "x$lt_cv_dlopen_self" = xyes; then | | if test "x$lt_cv_dlopen_self" = xyes; then |
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | | LDFLAGS="$LDFLAGS $link_static_flag" |
AC_CACHE_CHECK([whether a statically linked program can dlopen itself], | | AC_CACHE_CHECK([whether a statically linked program can dlopen itself], |
lt_cv_dlopen_self_static, [dnl | | lt_cv_dlopen_self_static, [dnl |
_LT_AC_TRY_DLOPEN_SELF( | | _LT_AC_TRY_DLOPEN_SELF( |
| | |
# Note that $ac_compile itself does not contain backslashes and begins | | # Note that $ac_compile itself does not contain backslashes and begins |
# with a dollar sign (not a hyphen), so the echo should work correctly. | | # with a dollar sign (not a hyphen), so the echo should work correctly. |
lt_compile=`echo "$ac_compile" | $SED \ | | lt_compile=`echo "$ac_compile" | $SED \ |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ | | -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
-e 's:$: $lt_compiler_flag:'` | | -e 's:$: $lt_compiler_flag:'` |
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) | | (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
| | |
then | | then |
# The compiler can only warn and ignore the option if not recognized | | # The compiler can only warn and ignore the option if not recognized |
# So say no if there are warnings | | # So say no if there are warnings |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | | if test ! -s out/conftest.err; then |
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | | |
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | | |
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes | | _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
fi | | fi |
fi | | fi |
chmod u+w . 2>&AS_MESSAGE_LOG_FD | | chmod u+w . |
$rm conftest* | | $rm conftest* |
# SGI C++ compiler will create directory out/ii_files/ for | | # SGI C++ compiler will create directory out/ii_files/ for |
# template instantiation | | # template instantiation |
| | |
[AC_MSG_CHECKING([how to hardcode library paths into programs]) | | [AC_MSG_CHECKING([how to hardcode library paths into programs]) |
_LT_AC_TAGVAR(hardcode_action, $1)= | | _LT_AC_TAGVAR(hardcode_action, $1)= |
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ | | if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ |
test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ | | test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \ |
test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then | | test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then |
| | |
# We can hardcode non-existant directories. | | # We can hardcode non-existant directories. |
| | |
shlibpath_var=LIBRARY_PATH | | shlibpath_var=LIBRARY_PATH |
;; | | ;; |
| | |
bsdi[[45]]*) | | bsdi4*) |
version_type=linux | | version_type=linux |
need_version=no | | need_version=no |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
dldir=$destdir/`dirname \$dlpath`~ | | dldir=$destdir/`dirname \$dlpath`~ |
test -d \$dldir || mkdir -p \$dldir~ | | test -d \$dldir || mkdir -p \$dldir~ |
$install_prog $dir/$dlname \$dldir/$dlname~ | | $install_prog $dir/$dlname \$dldir/$dlname' |
chmod a+x \$dldir/$dlname' | | |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
dlpath=$dir/\$dldll~ | | dlpath=$dir/\$dldll~ |
$rm \$dlpath' | | $rm \$dlpath' |
| | |
;; | | ;; |
pw32*) | | pw32*) |
# pw32 DLLs use 'pw' prefix rather than 'lib' | | # pw32 DLLs use 'pw' prefix rather than 'lib' |
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
;; | | ;; |
esac | | esac |
;; | | ;; |
| | |
soname_spec='${libname}${release}${major}$shared_ext' | | soname_spec='${libname}${release}${major}$shared_ext' |
shlibpath_overrides_runpath=yes | | shlibpath_overrides_runpath=yes |
shlibpath_var=DYLD_LIBRARY_PATH | | shlibpath_var=DYLD_LIBRARY_PATH |
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
if test "$GCC" = yes; then | | if test "$GCC" = yes; then |
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` | | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
| | |
dynamic_linker='GNU ld.so' | | dynamic_linker='GNU ld.so' |
;; | | ;; |
| | |
freebsd* | dragonfly*) | | freebsd*) |
# DragonFly does not have aout. When/if they implement a new | | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
# versioning mechanism, adjust this. | | |
if test -x /usr/bin/objformat; then | | |
objformat=`/usr/bin/objformat` | | |
else | | |
case $host_os in | | |
freebsd[[123]]*) objformat=aout ;; | | |
*) objformat=elf ;; | | |
esac | | |
fi | | |
version_type=freebsd-$objformat | | version_type=freebsd-$objformat |
case $version_type in | | case $version_type in |
freebsd-elf*) | | freebsd-elf*) |
| | |
freebsd2*) | | freebsd2*) |
shlibpath_overrides_runpath=yes | | shlibpath_overrides_runpath=yes |
;; | | ;; |
freebsd3.[[01]]* | freebsdelf3.[[01]]*) | | freebsd3.[01]* | freebsdelf3.[01]*) |
shlibpath_overrides_runpath=yes | | shlibpath_overrides_runpath=yes |
hardcode_into_libs=yes | | hardcode_into_libs=yes |
;; | | ;; |
freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ | | *) # from 3.2 on |
freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) | | |
shlibpath_overrides_runpath=no | | shlibpath_overrides_runpath=no |
hardcode_into_libs=yes | | hardcode_into_libs=yes |
;; | | ;; |
freebsd*) # from 4.6 on | | |
shlibpath_overrides_runpath=yes | | |
hardcode_into_libs=yes | | |
;; | | |
esac | | esac |
;; | | ;; |
| | |
| | |
version_type=sunos | | version_type=sunos |
need_lib_prefix=no | | need_lib_prefix=no |
need_version=no | | need_version=no |
case $host_cpu in | | case "$host_cpu" in |
ia64*) | | ia64*) |
shrext_cmds='.so' | | shrext_cmds='.so' |
hardcode_into_libs=yes | | hardcode_into_libs=yes |
| | |
postinstall_cmds='chmod 555 $lib' | | postinstall_cmds='chmod 555 $lib' |
;; | | ;; |
| | |
interix3*) | | |
version_type=linux | | |
need_lib_prefix=no | | |
need_version=no | | |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | | |
soname_spec='${libname}${release}${shared_ext}$major' | | |
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | | |
shlibpath_var=LD_LIBRARY_PATH | | |
shlibpath_overrides_runpath=no | | |
hardcode_into_libs=yes | | |
;; | | |
| | |
irix5* | irix6* | nonstopux*) | | irix5* | irix6* | nonstopux*) |
case $host_os in | | case $host_os in |
nonstopux*) version_type=nonstopux ;; | | nonstopux*) version_type=nonstopux ;; |
| | |
# before this can be enabled. | | # before this can be enabled. |
hardcode_into_libs=yes | | hardcode_into_libs=yes |
| | |
# find out which ABI we are using | | |
libsuff= | | |
case "$host_cpu" in | | |
x86_64*|s390x*|powerpc64*) | | |
echo '[#]line __oline__ "configure"' > conftest.$ac_ext | | |
if AC_TRY_EVAL(ac_compile); then | | |
case `/usr/bin/file conftest.$ac_objext` in | | |
*64-bit*) | | |
libsuff=64 | | |
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" | | |
;; | | |
esac | | |
fi | | |
rm -rf conftest* | | |
;; | | |
esac | | |
| | |
# Append ld.so.conf contents to the search path | | # Append ld.so.conf contents to the search path |
if test -f /etc/ld.so.conf; then | | if test -f /etc/ld.so.conf; then |
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | | lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '` |
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" | | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
fi | | fi |
| | |
# We used to test for /lib/ld.so.1 and disable shared libraries on | | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| | |
dynamic_linker='GNU/Linux ld.so' | | dynamic_linker='GNU/Linux ld.so' |
;; | | ;; |
| | |
| | netbsdelf*-gnu) |
| | version_type=linux |
| | need_lib_prefix=no |
| | need_version=no |
| | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| | soname_spec='${libname}${release}${shared_ext}$major' |
| | shlibpath_var=LD_LIBRARY_PATH |
| | shlibpath_overrides_runpath=no |
| | hardcode_into_libs=yes |
| | dynamic_linker='NetBSD ld.elf_so' |
| | ;; |
| | |
knetbsd*-gnu) | | knetbsd*-gnu) |
version_type=linux | | version_type=linux |
need_lib_prefix=no | | need_lib_prefix=no |
| | |
| | |
openbsd*) | | openbsd*) |
version_type=sunos | | version_type=sunos |
sys_lib_dlsearch_path_spec="/usr/lib" | | |
need_lib_prefix=no | | need_lib_prefix=no |
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | | need_version=yes |
case $host_os in | | |
openbsd3.3 | openbsd3.3.*) need_version=yes ;; | | |
*) need_version=no ;; | | |
esac | | |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
shlibpath_var=LD_LIBRARY_PATH | | shlibpath_var=LD_LIBRARY_PATH |
| | |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
;; | | ;; |
| | |
| | sco3.2v5*) |
| | version_type=osf |
| | soname_spec='${libname}${release}${shared_ext}$major' |
| | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | shlibpath_var=LD_LIBRARY_PATH |
| | ;; |
| | |
solaris*) | | solaris*) |
version_type=linux | | version_type=linux |
need_lib_prefix=no | | need_lib_prefix=no |
| | |
need_version=yes | | need_version=yes |
;; | | ;; |
| | |
sysv4 | sysv4.3*) | | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
version_type=linux | | version_type=linux |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
soname_spec='${libname}${release}${shared_ext}$major' | | soname_spec='${libname}${release}${shared_ext}$major' |
| | |
fi | | fi |
;; | | ;; |
| | |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | | |
version_type=freebsd-elf | | |
need_lib_prefix=no | | |
need_version=no | | |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | | |
soname_spec='${libname}${release}${shared_ext}$major' | | |
shlibpath_var=LD_LIBRARY_PATH | | |
hardcode_into_libs=yes | | |
if test "$with_gnu_ld" = yes; then | | |
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | | |
shlibpath_overrides_runpath=no | | |
else | | |
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | | |
shlibpath_overrides_runpath=yes | | |
case $host_os in | | |
sco3.2v5*) | | |
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | | |
;; | | |
esac | | |
fi | | |
sys_lib_dlsearch_path_spec='/usr/lib' | | |
;; | | |
| | |
uts4*) | | uts4*) |
version_type=linux | | version_type=linux |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | |
esac | | esac |
AC_MSG_RESULT([$dynamic_linker]) | | AC_MSG_RESULT([$dynamic_linker]) |
test "$dynamic_linker" = no && can_build_shared=no | | test "$dynamic_linker" = no && can_build_shared=no |
| | |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | | |
if test "$GCC" = yes; then | | |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | | |
fi | | |
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER | | ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER |
| | |
| | |
| | |
AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) | | AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) |
fi | | fi |
fi | | fi |
if test -z "$LTCFLAGS"; then | | |
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" | | |
fi | | |
| | |
# Extract list of available tagged configurations in $ofile. | | # Extract list of available tagged configurations in $ofile. |
# Note that this assumes the entire list is on one line. | | # Note that this assumes the entire list is on one line. |
| | |
| | |
case $tagname in | | case $tagname in |
CXX) | | CXX) |
if test -n "$CXX" && ( test "X$CXX" != "Xno" && | | if test -n "$CXX" && test "X$CXX" != "Xno"; then |
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | | |
(test "X$CXX" != "Xg++"))) ; then | | |
AC_LIBTOOL_LANG_CXX_CONFIG | | AC_LIBTOOL_LANG_CXX_CONFIG |
else | | else |
tagname="" | | tagname="" |
| | |
| | |
# AC_LIBTOOL_WIN32_DLL | | # AC_LIBTOOL_WIN32_DLL |
# -------------------- | | # -------------------- |
# declare package support for building win32 DLLs | | # declare package support for building win32 dll's |
AC_DEFUN([AC_LIBTOOL_WIN32_DLL], | | AC_DEFUN([AC_LIBTOOL_WIN32_DLL], |
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) | | [AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) |
])# AC_LIBTOOL_WIN32_DLL | | ])# AC_LIBTOOL_WIN32_DLL |
| | |
| | |
# AC_DISABLE_SHARED | | # AC_DISABLE_SHARED |
# ----------------- | | # ----------------- |
# set the default shared flag to --disable-shared | | #- set the default shared flag to --disable-shared |
AC_DEFUN([AC_DISABLE_SHARED], | | AC_DEFUN([AC_DISABLE_SHARED], |
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
AC_ENABLE_SHARED(no) | | AC_ENABLE_SHARED(no) |
| | |
if test -n "$file_magic_test_file"; then | | if test -n "$file_magic_test_file"; then |
case $deplibs_check_method in | | case $deplibs_check_method in |
"file_magic "*) | | "file_magic "*) |
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
$EGREP "$file_magic_regex" > /dev/null; then | | $EGREP "$file_magic_regex" > /dev/null; then |
| | |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
lt_cv_path_LD="$ac_dir/$ac_prog" | | lt_cv_path_LD="$ac_dir/$ac_prog" |
# Check to see if the program is GNU ld. I'd rather use --version, | | # Check to see if the program is GNU ld. I'd rather use --version, |
# but apparently some variants of GNU ld only accept -v. | | # but apparently some GNU ld's only accept -v. |
# Break only if it was the GNU/non-GNU ld that we prefer. | | # Break only if it was the GNU/non-GNU ld that we prefer. |
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
*GNU* | *'with BFD'*) | | *GNU* | *'with BFD'*) |
| | |
AC_DEFUN([AC_PROG_LD_GNU], | | AC_DEFUN([AC_PROG_LD_GNU], |
[AC_REQUIRE([AC_PROG_EGREP])dnl | | [AC_REQUIRE([AC_PROG_EGREP])dnl |
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, | | AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, |
[# I'd rather use --version here, but apparently some GNU lds only accept -v. | | [# I'd rather use --version here, but apparently some GNU ld's only accept -v. |
case `$LD -v 2>&1 </dev/null` in | | case `$LD -v 2>&1 </dev/null` in |
*GNU* | *'with BFD'*) | | *GNU* | *'with BFD'*) |
lt_cv_prog_gnu_ld=yes | | lt_cv_prog_gnu_ld=yes |
| | |
*) reload_flag=" $reload_flag" ;; | | *) reload_flag=" $reload_flag" ;; |
esac | | esac |
reload_cmds='$LD$reload_flag -o $output$reload_objs' | | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
case $host_os in | | |
darwin*) | | |
if test "$GCC" = yes; then | | |
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | | |
else | | |
reload_cmds='$LD$reload_flag -o $output$reload_objs' | | |
fi | | |
;; | | |
esac | | |
])# AC_PROG_LD_RELOAD_FLAG | | ])# AC_PROG_LD_RELOAD_FLAG |
| | |
| | |
| | |
lt_cv_deplibs_check_method=pass_all | | lt_cv_deplibs_check_method=pass_all |
;; | | ;; |
| | |
bsdi[[45]]*) | | bsdi4*) |
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' | | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' |
lt_cv_file_magic_cmd='/usr/bin/file -L' | | lt_cv_file_magic_cmd='/usr/bin/file -L' |
lt_cv_file_magic_test_file=/shlib/libc.so | | lt_cv_file_magic_test_file=/shlib/libc.so |
| | |
lt_cv_deplibs_check_method=pass_all | | lt_cv_deplibs_check_method=pass_all |
;; | | ;; |
| | |
freebsd* | kfreebsd*-gnu | dragonfly*) | | freebsd* | kfreebsd*-gnu) |
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
case $host_cpu in | | case $host_cpu in |
i*86 ) | | i*86 ) |
# Not sure whether the presence of OpenBSD here was a mistake. | | # Not sure whether the presence of OpenBSD here was a mistake. |
# Let's accept both of them until this is cleared up. | | # Let's accept both of them until this is cleared up. |
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' | | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library' |
lt_cv_file_magic_cmd=/usr/bin/file | | lt_cv_file_magic_cmd=/usr/bin/file |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
;; | | ;; |
| | |
| | |
hpux10.20* | hpux11*) | | hpux10.20* | hpux11*) |
lt_cv_file_magic_cmd=/usr/bin/file | | lt_cv_file_magic_cmd=/usr/bin/file |
case $host_cpu in | | case "$host_cpu" in |
ia64*) | | ia64*) |
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' | | lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' |
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| | |
esac | | esac |
;; | | ;; |
| | |
interix3*) | | |
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | | |
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' | | |
;; | | |
| | |
irix5* | irix6* | nonstopux*) | | irix5* | irix6* | nonstopux*) |
case $LD in | | case $LD in |
*-32|*"-32 ") libmagic=32-bit;; | | *-32|*"-32 ") libmagic=32-bit;; |
| | |
lt_cv_deplibs_check_method=pass_all | | lt_cv_deplibs_check_method=pass_all |
;; | | ;; |
| | |
netbsd*) | | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' | | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' |
else | | else |
| | |
;; | | ;; |
| | |
openbsd*) | | openbsd*) |
| | lt_cv_file_magic_cmd=/usr/bin/file |
| | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' | | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object' |
else | | else |
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' | | lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' |
fi | | fi |
;; | | ;; |
| | |
| | |
lt_cv_deplibs_check_method=pass_all | | lt_cv_deplibs_check_method=pass_all |
;; | | ;; |
| | |
| | sco3.2v5*) |
| | lt_cv_deplibs_check_method=pass_all |
| | ;; |
| | |
solaris*) | | solaris*) |
lt_cv_deplibs_check_method=pass_all | | lt_cv_deplibs_check_method=pass_all |
;; | | ;; |
| | |
sysv4 | sysv4.3*) | | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
case $host_vendor in | | case $host_vendor in |
motorola) | | motorola) |
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]]' | | 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]]' |
| | |
siemens) | | siemens) |
lt_cv_deplibs_check_method=pass_all | | lt_cv_deplibs_check_method=pass_all |
;; | | ;; |
pc) | | |
lt_cv_deplibs_check_method=pass_all | | |
;; | | |
esac | | esac |
;; | | ;; |
| | |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*) |
lt_cv_deplibs_check_method=pass_all | | lt_cv_deplibs_check_method=pass_all |
;; | | ;; |
esac | | esac |
| | |
# Let the user override the test. | | # Let the user override the test. |
lt_cv_path_NM="$NM" | | lt_cv_path_NM="$NM" |
else | | else |
lt_nm_to_check="${ac_tool_prefix}nm" | | |
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | | |
lt_nm_to_check="$lt_nm_to_check nm" | | |
fi | | |
for lt_tmp_nm in $lt_nm_to_check; do | | |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
IFS="$lt_save_ifs" | | IFS="$lt_save_ifs" |
test -z "$ac_dir" && ac_dir=. | | test -z "$ac_dir" && ac_dir=. |
tmp_nm="$ac_dir/$lt_tmp_nm" | | tmp_nm="$ac_dir/${ac_tool_prefix}nm" |
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
# Check to see if the nm accepts a BSD-compat flag. | | # Check to see if the nm accepts a BSD-compat flag. |
# Adding the `sed 1q' prevents false positives on HP-UX, which says: | | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| | |
continue # so that we can try to find one that supports BSD flags | | continue # so that we can try to find one that supports BSD flags |
;; | | ;; |
esac | | esac |
;; | | |
esac | | esac |
fi | | fi |
done | | done |
IFS="$lt_save_ifs" | | IFS="$lt_save_ifs" |
done | | |
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
fi]) | | fi]) |
NM="$lt_cv_path_NM" | | NM="$lt_cv_path_NM" |
| | |
# ----------------------------------- | | # ----------------------------------- |
# sets LIBLTDL to the link flags for the libltdl convenience library and | | # sets LIBLTDL to the link flags for the libltdl convenience library and |
# LTDLINCL to the include flags for the libltdl header and adds | | # LTDLINCL to the include flags for the libltdl header and adds |
# --enable-ltdl-convenience to the configure arguments. Note that | | # --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL |
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, | | # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If |
# it is assumed to be `libltdl'. LIBLTDL will be prefixed with | | # DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will |
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' | | # be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with |
# (note the single quotes!). If your package is not flat and you're not | | # '${top_srcdir}/' (note the single quotes!). If your package is not |
# using automake, define top_builddir and top_srcdir appropriately in | | # flat and you're not using automake, define top_builddir and |
# the Makefiles. | | # top_srcdir appropriately in the Makefiles. |
AC_DEFUN([AC_LIBLTDL_CONVENIENCE], | | AC_DEFUN([AC_LIBLTDL_CONVENIENCE], |
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
case $enable_ltdl_convenience in | | case $enable_ltdl_convenience in |
| | |
# ----------------------------------- | | # ----------------------------------- |
# sets LIBLTDL to the link flags for the libltdl installable library and | | # sets LIBLTDL to the link flags for the libltdl installable library and |
# LTDLINCL to the include flags for the libltdl header and adds | | # LTDLINCL to the include flags for the libltdl header and adds |
# --enable-ltdl-install to the configure arguments. Note that | | # --enable-ltdl-install to the configure arguments. Note that LIBLTDL |
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, | | # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If |
# and an installed libltdl is not found, it is assumed to be `libltdl'. | | # DIRECTORY is not provided and an installed libltdl is not found, it is |
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with | | # assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/' |
# '${top_srcdir}/' (note the single quotes!). If your package is not | | # and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single |
# flat and you're not using automake, define top_builddir and top_srcdir | | # quotes!). If your package is not flat and you're not using automake, |
# appropriately in the Makefiles. | | # define top_builddir and top_srcdir appropriately in the Makefiles. |
# In the future, this macro may have to be called after AC_PROG_LIBTOOL. | | # In the future, this macro may have to be called after AC_PROG_LIBTOOL. |
AC_DEFUN([AC_LIBLTDL_INSTALLABLE], | | AC_DEFUN([AC_LIBLTDL_INSTALLABLE], |
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
| | |
# --------------- | | # --------------- |
AC_DEFUN([_LT_AC_LANG_CXX], | | AC_DEFUN([_LT_AC_LANG_CXX], |
[AC_REQUIRE([AC_PROG_CXX]) | | [AC_REQUIRE([AC_PROG_CXX]) |
AC_REQUIRE([_LT_AC_PROG_CXXCPP]) | | AC_REQUIRE([AC_PROG_CXXCPP]) |
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) | | _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) |
])# _LT_AC_LANG_CXX | | ])# _LT_AC_LANG_CXX |
| | |
# _LT_AC_PROG_CXXCPP | | |
# ------------------ | | |
AC_DEFUN([_LT_AC_PROG_CXXCPP], | | |
[ | | |
AC_REQUIRE([AC_PROG_CXX]) | | |
if test -n "$CXX" && ( test "X$CXX" != "Xno" && | | |
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | | |
(test "X$CXX" != "Xg++"))) ; then | | |
AC_PROG_CXXCPP | | |
fi | | |
])# _LT_AC_PROG_CXXCPP | | |
| | |
# AC_LIBTOOL_F77 | | # AC_LIBTOOL_F77 |
# -------------- | | # -------------- |
| | |
| | |
| | |
# AC_LIBTOOL_RC | | # AC_LIBTOOL_RC |
# ------------- | | # -------------- |
# enable support for Windows resource files | | # enable support for Windows resource files |
AC_DEFUN([AC_LIBTOOL_RC], | | AC_DEFUN([AC_LIBTOOL_RC], |
[AC_REQUIRE([LT_AC_PROG_RC]) | | [AC_REQUIRE([LT_AC_PROG_RC]) |
| | |
| | |
_LT_AC_SYS_COMPILER | | _LT_AC_SYS_COMPILER |
| | |
# save warnings/boilerplate of simple test code | | # |
_LT_COMPILER_BOILERPLATE | | # Check for any special shared library compilation flags. |
_LT_LINKER_BOILERPLATE | | # |
| | _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)= |
| | if test "$GCC" = no; then |
| | case $host_os in |
| | sco3.2v5*) |
| | _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf' |
| | ;; |
| | esac |
| | fi |
| | if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then |
| | AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries]) |
| | if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then : |
| | else |
| | AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure]) |
| | _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no |
| | fi |
| | fi |
| | |
| | |
| | # |
| | # Check to make sure the static flag actually works. |
| | # |
| | AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works], |
| | _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), |
| | $_LT_AC_TAGVAR(lt_prog_compiler_static, $1), |
| | [], |
| | [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) |
| | |
| | |
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) | | AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) |
AC_LIBTOOL_PROG_COMPILER_PIC($1) | | AC_LIBTOOL_PROG_COMPILER_PIC($1) |
| | |
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) | | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
AC_LIBTOOL_SYS_LIB_STRIP | | AC_LIBTOOL_SYS_LIB_STRIP |
AC_LIBTOOL_DLOPEN_SELF | | AC_LIBTOOL_DLOPEN_SELF($1) |
| | |
# Report which library types will actually be built | | # Report which librarie types wil actually be built |
AC_MSG_CHECKING([if libtool supports shared libraries]) | | AC_MSG_CHECKING([if libtool supports shared libraries]) |
AC_MSG_RESULT([$can_build_shared]) | | AC_MSG_RESULT([$can_build_shared]) |
| | |
| | |
| | |
# On AIX, shared libraries and static libraries use the same namespace, and | | # On AIX, shared libraries and static libraries use the same namespace, and |
# are all built from PIC. | | # are all built from PIC. |
case $host_os in | | case "$host_os" in |
aix3*) | | aix3*) |
test "$enable_shared" = yes && enable_static=no | | test "$enable_shared" = yes && enable_static=no |
if test -n "$RANLIB"; then | | if test -n "$RANLIB"; then |
| | |
test "$enable_shared" = yes && enable_static=no | | test "$enable_shared" = yes && enable_static=no |
fi | | fi |
;; | | ;; |
| | darwin* | rhapsody*) |
| | if test "$GCC" = yes; then |
| | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| | case "$host_os" in |
| | rhapsody* | darwin1.[[012]]) |
| | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' |
| | ;; |
| | *) # Darwin 1.3 on |
| | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' |
| | else |
| | case ${MACOSX_DEPLOYMENT_TARGET} in |
| | 10.[[012]]) |
| | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' |
| | ;; |
| | 10.*) |
| | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' |
| | ;; |
| | esac |
| | fi |
| | ;; |
| | esac |
| | output_verbose_link_cmd='echo' |
| | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' |
| | _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='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}' |
| | _LT_AC_TAGVAR(module_expsym_cmds, $1)='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}' |
| | _LT_AC_TAGVAR(hardcode_direct, $1)=no |
| | _LT_AC_TAGVAR(hardcode_automatic, $1)=yes |
| | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
| | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' |
| | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| | else |
| | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| | fi |
| | ;; |
esac | | esac |
AC_MSG_RESULT([$enable_shared]) | | AC_MSG_RESULT([$enable_shared]) |
| | |
| | |
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], | | AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], |
[AC_LANG_PUSH(C++) | | [AC_LANG_PUSH(C++) |
AC_REQUIRE([AC_PROG_CXX]) | | AC_REQUIRE([AC_PROG_CXX]) |
AC_REQUIRE([_LT_AC_PROG_CXXCPP]) | | AC_REQUIRE([AC_PROG_CXXCPP]) |
| | |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
_LT_AC_TAGVAR(allow_undefined_flag, $1)= | | _LT_AC_TAGVAR(allow_undefined_flag, $1)= |
| | |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= | | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no | | _LT_AC_TAGVAR(hardcode_minus_L, $1)=no |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | | |
_LT_AC_TAGVAR(hardcode_automatic, $1)=no | | _LT_AC_TAGVAR(hardcode_automatic, $1)=no |
_LT_AC_TAGVAR(module_cmds, $1)= | | _LT_AC_TAGVAR(module_cmds, $1)= |
_LT_AC_TAGVAR(module_expsym_cmds, $1)= | | _LT_AC_TAGVAR(module_expsym_cmds, $1)= |
| | |
_LT_AC_TAGVAR(compiler_lib_search_path, $1)= | | _LT_AC_TAGVAR(compiler_lib_search_path, $1)= |
| | |
# Source file extension for C++ test sources. | | # Source file extension for C++ test sources. |
ac_ext=cpp | | ac_ext=cc |
| | |
# Object file extension for compiled C++ test sources. | | # Object file extension for compiled C++ test sources. |
objext=o | | objext=o |
| | |
lt_simple_compile_test_code="int some_variable = 0;\n" | | lt_simple_compile_test_code="int some_variable = 0;\n" |
| | |
# Code to be used in simple link tests | | # Code to be used in simple link tests |
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n' | | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
| | |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. | | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
_LT_AC_SYS_COMPILER | | _LT_AC_SYS_COMPILER |
| | |
# save warnings/boilerplate of simple test code | | |
_LT_COMPILER_BOILERPLATE | | |
_LT_LINKER_BOILERPLATE | | |
| | |
# Allow CC to be a program name with arguments. | | # Allow CC to be a program name with arguments. |
lt_save_CC=$CC | | lt_save_CC=$CC |
lt_save_LD=$LD | | lt_save_LD=$LD |
| | |
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
else | | else |
$as_unset lt_cv_prog_gnu_ld | | unset lt_cv_prog_gnu_ld |
fi | | fi |
if test -n "${lt_cv_path_LDCXX+set}"; then | | if test -n "${lt_cv_path_LDCXX+set}"; then |
lt_cv_path_LD=$lt_cv_path_LDCXX | | lt_cv_path_LD=$lt_cv_path_LDCXX |
else | | else |
$as_unset lt_cv_path_LD | | unset lt_cv_path_LD |
fi | | fi |
test -z "${LDCXX+set}" || LD=$LDCXX | | test -z "${LDCXX+set}" || LD=$LDCXX |
CC=${CXX-"c++"} | | CC=${CXX-"c++"} |
compiler=$CC | | compiler=$CC |
_LT_AC_TAGVAR(compiler, $1)=$CC | | _LT_AC_TAGVAR(compiler, $1)=$CC |
_LT_CC_BASENAME([$compiler]) | | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
| | |
# We don't want -fno-exception wen compiling C++ code, so set the | | # We don't want -fno-exception wen compiling C++ code, so set the |
# no_builtin_flag separately | | # no_builtin_flag separately |
| | |
;; | | ;; |
esac | | esac |
done | | done |
;; | | |
esac | | esac |
| | |
exp_sym_flag='-bexport' | | exp_sym_flag='-bexport' |
| | |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes | | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| | |
if test "$GXX" = yes; then | | if test "$GXX" = yes; then |
case $host_os in aix4.[[012]]|aix4.[[012]].*) | | case $host_os in aix4.[012]|aix4.[012].*) |
# We only want to do this on AIX 4.2 and lower, the check | | # We only want to do this on AIX 4.2 and lower, the check |
# below for broken collect2 doesn't work under 4.3+ | | # below for broken collect2 doesn't work under 4.3+ |
collect2name=`${CC} -print-prog-name=collect2` | | collect2name=`${CC} -print-prog-name=collect2` |
| | |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= | | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
fi | | fi |
;; | | |
esac | | esac |
shared_flag='-shared' | | shared_flag='-shared' |
if test "$aix_use_runtimelinking" = yes; then | | |
shared_flag="$shared_flag "'${wl}-G' | | |
fi | | |
else | | else |
# not using gcc | | # not using gcc |
if test "$host_cpu" = ia64; then | | if test "$host_cpu" = ia64; then |
| | |
_LT_AC_SYS_LIBPATH_AIX | | _LT_AC_SYS_LIBPATH_AIX |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
| | |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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" | | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
else | | else |
if test "$host_cpu" = ia64; then | | if test "$host_cpu" = ia64; then |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' | | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" | | _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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" | | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
else | | else |
# Determine the default libpath from the value encoded in an empty executable. | | # Determine the default libpath from the value encoded in an empty executable. |
_LT_AC_SYS_LIBPATH_AIX | | _LT_AC_SYS_LIBPATH_AIX |
| | |
# -berok will link without error, but may produce a broken library. | | # -berok will link without error, but may produce a broken library. |
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' | | _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' | | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
| | # -bexpall does not export symbols beginning with underscore (_) |
| | _LT_AC_TAGVAR(always_export_symbols, $1)=yes |
# Exported symbols can be pulled into shared objects from archives | | # Exported symbols can be pulled into shared objects from archives |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' | | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes | | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes |
# This is similar to how AIX traditionally builds its shared libraries. | | # This is similar to how AIX traditionally builds it's shared libraries. |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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' | | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
fi | | |
fi | | fi |
;; | | |
| | |
beos*) | | |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | | |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported | | |
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc | | |
# support --undefined. This deserves some investigation. FIXME | | |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | | |
else | | |
_LT_AC_TAGVAR(ld_shlibs, $1)=no | | |
fi | | fi |
;; | | ;; |
| | |
chorus*) | | chorus*) |
case $cc_basename in | | case $cc_basename in |
*) | | *) |
| | |
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
| | |
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
_LT_AC_TAGVAR(archive_cmds, $1)='$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' | | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
# If the export-symbols file already is a .def file (1st line | | # If the export-symbols file already is a .def file (1st line |
# is EXPORTS), use it as is; otherwise, prepend... | | # is EXPORTS), use it as is; otherwise, prepend... |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| | |
echo EXPORTS > $output_objdir/$soname.def; | | echo EXPORTS > $output_objdir/$soname.def; |
cat $export_symbols >> $output_objdir/$soname.def; | | cat $export_symbols >> $output_objdir/$soname.def; |
fi~ | | fi~ |
$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' | | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
else | | else |
_LT_AC_TAGVAR(ld_shlibs, $1)=no | | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
fi | | fi |
;; | | ;; |
| | |
darwin* | rhapsody*) | | darwin* | rhapsody*) |
case $host_os in | | if test "$GXX" = yes; then |
| | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| | case "$host_os" in |
rhapsody* | darwin1.[[012]]) | | rhapsody* | darwin1.[[012]]) |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' | | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' |
;; | | ;; |
*) # Darwin 1.3 on | | *) # Darwin 1.3 on |
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' |
else | | else |
case ${MACOSX_DEPLOYMENT_TARGET} in | | case ${MACOSX_DEPLOYMENT_TARGET} in |
10.[[012]]) | | 10.[[012]]) |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' |
;; | | ;; |
10.*) | | 10.*) |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' | | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' |
;; | | ;; |
esac | | esac |
fi | | fi |
;; | | ;; |
esac | | esac |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | | |
_LT_AC_TAGVAR(hardcode_direct, $1)=no | | |
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes | | |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | | |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' | | |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes | | |
| | |
if test "$GXX" = yes ; then | | |
lt_int_apple_cc_single_mod=no | | lt_int_apple_cc_single_mod=no |
output_verbose_link_cmd='echo' | | output_verbose_link_cmd='echo' |
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then | | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
lt_int_apple_cc_single_mod=yes | | lt_int_apple_cc_single_mod=yes |
fi | | fi |
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
else | | else |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -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' |
fi | | fi |
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | | _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | | |
| | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='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}' | | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='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}' |
else | | else |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='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}' | | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}' |
fi | | fi |
_LT_AC_TAGVAR(module_expsym_cmds, $1)='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}' | | _LT_AC_TAGVAR(module_expsym_cmds, $1)='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}' |
| | _LT_AC_TAGVAR(hardcode_direct, $1)=no |
| | _LT_AC_TAGVAR(hardcode_automatic, $1)=yes |
| | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
| | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' |
| | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
else | | else |
case $cc_basename in | | |
xlc*) | | |
output_verbose_link_cmd='echo' | | |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | | |
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | | |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | | |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | | |
_LT_AC_TAGVAR(module_expsym_cmds, $1)='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}' | | |
;; | | |
*) | | |
_LT_AC_TAGVAR(ld_shlibs, $1)=no | | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
;; | | |
esac | | |
fi | | fi |
;; | | ;; |
| | |
dgux*) | | dgux*) |
case $cc_basename in | | case $cc_basename in |
ec++*) | | ec++) |
# FIXME: insert proper C++ library support | | # FIXME: insert proper C++ library support |
_LT_AC_TAGVAR(ld_shlibs, $1)=no | | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
;; | | ;; |
ghcx*) | | ghcx) |
# Green Hills C++ Compiler | | # Green Hills C++ Compiler |
# FIXME: insert proper C++ library support | | # FIXME: insert proper C++ library support |
_LT_AC_TAGVAR(ld_shlibs, $1)=no | | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| | |
;; | | ;; |
esac | | esac |
;; | | ;; |
freebsd[[12]]*) | | freebsd[12]*) |
# C++ shared libraries reported to be fairly broken before switch to ELF | | # C++ shared libraries reported to be fairly broken before switch to ELF |
_LT_AC_TAGVAR(ld_shlibs, $1)=no | | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
;; | | ;; |
freebsd-elf*) | | freebsd-elf*) |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
;; | | ;; |
freebsd* | kfreebsd*-gnu | dragonfly*) | | freebsd* | kfreebsd*-gnu) |
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
# conventions | | # conventions |
_LT_AC_TAGVAR(ld_shlibs, $1)=yes | | _LT_AC_TAGVAR(ld_shlibs, $1)=yes |
| | |
# location of the library. | | # location of the library. |
| | |
case $cc_basename in | | case $cc_basename in |
CC*) | | CC) |
# FIXME: insert proper C++ library support | | # FIXME: insert proper C++ library support |
_LT_AC_TAGVAR(ld_shlibs, $1)=no | | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
;; | | ;; |
aCC*) | | aCC) |
_LT_AC_TAGVAR(archive_cmds, $1)='$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' | | _LT_AC_TAGVAR(archive_cmds, $1)='$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' |
# Commands to make compiler produce verbose output that lists | | # Commands to make compiler produce verbose output that lists |
# what "hidden" libraries, object files and flags are used when | | # what "hidden" libraries, object files and flags are used when |
| | |
# explicitly linking system object files so we need to strip them | | # explicitly linking system object files so we need to strip them |
# from the output so that they don't get included in the library | | # from the output so that they don't get included in the library |
# dependencies. | | # dependencies. |
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' | | 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' |
;; | | ;; |
*) | | *) |
if test "$GXX" = yes; then | | if test "$GXX" = yes; then |
| | |
;; | | ;; |
hpux10*|hpux11*) | | hpux10*|hpux11*) |
if test $with_gnu_ld = no; then | | if test $with_gnu_ld = no; then |
| | case "$host_cpu" in |
| | hppa*64*) |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
| | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| | ;; |
case $host_cpu in | | ia64*) |
hppa*64*|ia64*) | | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' | | |
;; | | ;; |
*) | | *) |
| | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
| | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
;; | | ;; |
esac | | esac |
fi | | fi |
case $host_cpu in | | case "$host_cpu" in |
hppa*64*|ia64*) | | hppa*64*) |
_LT_AC_TAGVAR(hardcode_direct, $1)=no | | _LT_AC_TAGVAR(hardcode_direct, $1)=no |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
;; | | ;; |
| | ia64*) |
| | _LT_AC_TAGVAR(hardcode_direct, $1)=no |
| | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, |
| | # but as the default |
| | # location of the library. |
| | ;; |
*) | | *) |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes | | _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, | | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, |
| | |
esac | | esac |
| | |
case $cc_basename in | | case $cc_basename in |
CC*) | | CC) |
# FIXME: insert proper C++ library support | | # FIXME: insert proper C++ library support |
_LT_AC_TAGVAR(ld_shlibs, $1)=no | | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
;; | | ;; |
aCC*) | | aCC) |
case $host_cpu in | | case "$host_cpu" in |
hppa*64*) | | hppa*64*|ia64*) |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
;; | | |
ia64*) | | |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | | |
;; | | ;; |
*) | | *) |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| | |
*) | | *) |
if test "$GXX" = yes; then | | if test "$GXX" = yes; then |
if test $with_gnu_ld = no; then | | if test $with_gnu_ld = no; then |
case $host_cpu in | | case "$host_cpu" in |
hppa*64*) | | ia64*|hppa*64*) |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
;; | | |
ia64*) | | |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | | |
;; | | ;; |
*) | | *) |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| | |
;; | | ;; |
esac | | esac |
;; | | ;; |
interix3*) | | |
_LT_AC_TAGVAR(hardcode_direct, $1)=no | | |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | | |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | | |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | | |
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | | |
# Instead, shared libraries are loaded at an image base (0x10000000 by | | |
# default) and relocated if they conflict, which is a slow very memory | | |
# consuming and fragmenting process. To avoid this, we pick a random, | | |
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | | |
# time. Moving up from 0x10000000 also allows more sbrk(2) space. | | |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | | |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='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' | | |
;; | | |
irix5* | irix6*) | | irix5* | irix6*) |
case $cc_basename in | | case $cc_basename in |
CC*) | | CC) |
# SGI C++ | | # SGI C++ |
_LT_AC_TAGVAR(archive_cmds, $1)='$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' | | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' |
| | |
# Archives containing C++ object files must be created using | | # Archives containing C++ object files must be created using |
# "CC -ar", where "CC" is the IRIX C++ compiler. This is | | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| | |
*) | | *) |
if test "$GXX" = yes; then | | if test "$GXX" = yes; then |
if test "$with_gnu_ld" = no; then | | if test "$with_gnu_ld" = no; then |
_LT_AC_TAGVAR(archive_cmds, $1)='$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' | | _LT_AC_TAGVAR(archive_cmds, $1)='$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}${objdir}/so_locations -o $lib' |
else | | else |
_LT_AC_TAGVAR(archive_cmds, $1)='$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' | | _LT_AC_TAGVAR(archive_cmds, $1)='$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' |
fi | | fi |
| | |
;; | | ;; |
linux*) | | linux*) |
case $cc_basename in | | case $cc_basename in |
KCC*) | | KCC) |
# Kuck and Associates, Inc. (KAI) C++ Compiler | | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| | |
# KCC will only create a shared library if the output file | | # KCC will only create a shared library if the output file |
| | |
# "CC -Bstatic", where "CC" is the KAI C++ compiler. | | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' | | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' |
;; | | ;; |
icpc*) | | icpc) |
# Intel C++ | | # Intel C++ |
with_gnu_ld=yes | | with_gnu_ld=yes |
# version 8.0 and above of icpc choke on multiply defined symbols | | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
# if we add $predep_objects and $postdep_objects, however 7.1 and | | |
# earlier do not add the objects themselves. | | |
case `$CC -V 2>&1` in | | |
*"Version 7."*) | | |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
;; | | |
*) # Version 8.0 or newer | | |
tmp_idyn= | | |
case $host_cpu in | | |
ia64*) tmp_idyn=' -i_dynamic';; | | |
esac | | |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | | |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | | |
;; | | |
esac | | |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | | |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
;; | | ;; |
pgCC*) | | cxx) |
# Portland Group C++ compiler | | |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | | |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$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' | | |
| | |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' | | |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | | |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | | |
;; | | |
cxx*) | | |
# Compaq C++ | | # Compaq C++ |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' | | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' |
| | |
;; | | ;; |
mvs*) | | mvs*) |
case $cc_basename in | | case $cc_basename in |
cxx*) | | cxx) |
# FIXME: insert proper C++ library support | | # FIXME: insert proper C++ library support |
_LT_AC_TAGVAR(ld_shlibs, $1)=no | | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
;; | | ;; |
| | |
;; | | ;; |
esac | | esac |
;; | | ;; |
netbsd*) | | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
wlarc= | | wlarc= |
| | |
# Workaround some broken pre-1.5 toolchains | | # Workaround some broken pre-1.5 toolchains |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
;; | | ;; |
openbsd2*) | | |
# C++ shared libraries are fairly broken | | |
_LT_AC_TAGVAR(ld_shlibs, $1)=no | | |
;; | | |
openbsd*) | | |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes | | |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | | |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | | |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | | |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | | |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | | |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | | |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | | |
fi | | |
output_verbose_link_cmd='echo' | | |
;; | | |
osf3*) | | osf3*) |
case $cc_basename in | | case $cc_basename in |
KCC*) | | KCC) |
# Kuck and Associates, Inc. (KAI) C++ Compiler | | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| | |
# KCC will only create a shared library if the output file | | # KCC will only create a shared library if the output file |
| | |
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' | | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' |
| | |
;; | | ;; |
RCC*) | | RCC) |
# Rational C++ 2.4.1 | | # Rational C++ 2.4.1 |
# FIXME: insert proper C++ library support | | # FIXME: insert proper C++ library support |
_LT_AC_TAGVAR(ld_shlibs, $1)=no | | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
;; | | ;; |
cxx*) | | cxx) |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
_LT_AC_TAGVAR(archive_cmds, $1)='$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' | | _LT_AC_TAGVAR(archive_cmds, $1)='$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 ${objdir}/so_locations -o $lib' |
| | |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| | |
*) | | *) |
if test "$GXX" = yes && test "$with_gnu_ld" = no; then | | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
_LT_AC_TAGVAR(archive_cmds, $1)='$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' | | _LT_AC_TAGVAR(archive_cmds, $1)='$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}${objdir}/so_locations -o $lib' |
| | |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| | |
;; | | ;; |
osf4* | osf5*) | | osf4* | osf5*) |
case $cc_basename in | | case $cc_basename in |
KCC*) | | KCC) |
# Kuck and Associates, Inc. (KAI) C++ Compiler | | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| | |
# KCC will only create a shared library if the output file | | # KCC will only create a shared library if the output file |
| | |
# the KAI C++ compiler. | | # the KAI C++ compiler. |
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' | | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' |
;; | | ;; |
RCC*) | | RCC) |
# Rational C++ 2.4.1 | | # Rational C++ 2.4.1 |
# FIXME: insert proper C++ library support | | # FIXME: insert proper C++ library support |
_LT_AC_TAGVAR(ld_shlibs, $1)=no | | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
;; | | ;; |
cxx*) | | cxx) |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
_LT_AC_TAGVAR(archive_cmds, $1)='$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' | | _LT_AC_TAGVAR(archive_cmds, $1)='$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 ${objdir}/so_locations -o $lib' |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
echo "-hidden">> $lib.exp~ | | echo "-hidden">> $lib.exp~ |
$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~ | | $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 $objdir/so_locations -o $lib~ |
$rm $lib.exp' | | $rm $lib.exp' |
| | |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' | | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
| | |
*) | | *) |
if test "$GXX" = yes && test "$with_gnu_ld" = no; then | | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
_LT_AC_TAGVAR(archive_cmds, $1)='$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' | | _LT_AC_TAGVAR(archive_cmds, $1)='$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}${objdir}/so_locations -o $lib' |
| | |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| | |
# FIXME: insert proper C++ library support | | # FIXME: insert proper C++ library support |
_LT_AC_TAGVAR(ld_shlibs, $1)=no | | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
;; | | ;; |
| | sco*) |
| | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| | case $cc_basename in |
| | CC) |
| | # FIXME: insert proper C++ library support |
| | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| | ;; |
| | *) |
| | # FIXME: insert proper C++ library support |
| | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| | ;; |
| | esac |
| | ;; |
sunos4*) | | sunos4*) |
case $cc_basename in | | case $cc_basename in |
CC*) | | CC) |
# Sun C++ 4.x | | # Sun C++ 4.x |
# FIXME: insert proper C++ library support | | # FIXME: insert proper C++ library support |
_LT_AC_TAGVAR(ld_shlibs, $1)=no | | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
;; | | ;; |
lcc*) | | lcc) |
# Lucid | | # Lucid |
# FIXME: insert proper C++ library support | | # FIXME: insert proper C++ library support |
_LT_AC_TAGVAR(ld_shlibs, $1)=no | | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| | |
;; | | ;; |
solaris*) | | solaris*) |
case $cc_basename in | | case $cc_basename in |
CC*) | | CC) |
# Sun C++ 4.2, 5.x and Centerline C++ | | # Sun C++ 4.2, 5.x and Centerline C++ |
_LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes | | |
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' | | _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
$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' | | $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| | |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
case $host_os in | | case $host_os in |
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; | | solaris2.[0-5] | solaris2.[0-5].*) ;; |
*) | | *) |
# The C++ compiler is used as linker so we must use $wl | | # The C++ compiler is used as linker so we must use $wl |
# flag to pass the commands to the underlying system | | # flag to pass the commands to the underlying system |
# linker. We must also pass each convience library through | | # linker. |
# to the system linker between allextract/defaultextract. | | |
# The C++ compiler will combine linker options so we | | |
# cannot just pass the convience library names through | | |
# without $wl. | | |
# Supported since Solaris 2.6 (maybe 2.5.1?) | | # Supported since Solaris 2.6 (maybe 2.5.1?) |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' | | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
;; | | ;; |
esac | | esac |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes | | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| | |
output_verbose_link_cmd='echo' | | # Commands to make compiler produce verbose output that lists |
| | # what "hidden" libraries, object files and flags are used when |
| | # linking a shared library. |
| | # |
| | # There doesn't appear to be a way to prevent this compiler from |
| | # explicitly linking system object files so we need to strip them |
| | # from the output so that they don't get included in the library |
| | # dependencies. |
| | output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
| | |
# Archives containing C++ object files must be created using | | # Archives containing C++ object files must be created using |
# "CC -xar", where "CC" is the Sun C++ compiler. This is | | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| | |
# in the archive. | | # in the archive. |
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' | | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' |
;; | | ;; |
gcx*) | | gcx) |
# Green Hills C++ Compiler | | # Green Hills C++ Compiler |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| | |
| | |
;; | | ;; |
esac | | esac |
;; | | ;; |
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) | | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) |
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' | | |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | | |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | | |
runpath_var='LD_RUN_PATH' | | |
| | |
case $cc_basename in | | |
CC*) | | |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | | |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | | |
;; | | |
*) | | |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | | |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | | |
;; | | |
esac | | |
;; | | |
sysv5* | sco3.2v5* | sco5v6*) | | |
# Note: We can NOT use -z defs as we might desire, because we do not | | |
# link with -lc, and that would cause any symbols used from libc to | | |
# always be unresolved, which means just about no library would | | |
# ever link correctly. If we're not using GNU ld we use -z text | | |
# though, which does catch some bad symbols but isn't as heavy-handed | | |
# as -z defs. | | |
# For security reasons, it is highly recommended that you always | | |
# use absolute paths for naming shared libraries, and exclude the | | |
# DT_RUNPATH tag from executables and libraries. But doing so | | |
# requires that you compile everything twice, which is a pain. | | |
# So that behaviour is only enabled if SCOABSPATH is set to a | | |
# non-empty value in the environment. Most likely only useful for | | |
# creating official distributions of packages. | | |
# This is a hack until libtool officially supports absolute path | | |
# names for shared libraries. | | |
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' | | |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' | | |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | | |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | | |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' | | |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes | | |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' | | |
runpath_var='LD_RUN_PATH' | | |
| | |
case $cc_basename in | | |
CC*) | | |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | | |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | | |
;; | | |
*) | | |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | | |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | | |
;; | | |
esac | | |
;; | | ;; |
tandem*) | | tandem*) |
case $cc_basename in | | case $cc_basename in |
NCC*) | | NCC) |
# NonStop-UX NCC 3.20 | | # NonStop-UX NCC 3.20 |
# FIXME: insert proper C++ library support | | # FIXME: insert proper C++ library support |
_LT_AC_TAGVAR(ld_shlibs, $1)=no | | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| | |
AC_LIBTOOL_PROG_LD_SHLIBS($1) | | AC_LIBTOOL_PROG_LD_SHLIBS($1) |
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) | | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
| | AC_LIBTOOL_SYS_LIB_STRIP |
| | AC_LIBTOOL_DLOPEN_SELF($1) |
| | |
AC_LIBTOOL_CONFIG($1) | | AC_LIBTOOL_CONFIG($1) |
| | |
| | |
])# AC_LIBTOOL_LANG_CXX_CONFIG | | ])# AC_LIBTOOL_LANG_CXX_CONFIG |
| | |
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) | | # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) |
# ------------------------------------ | | # ------------------------ |
# Figure out "hidden" library dependencies from verbose | | # Figure out "hidden" library dependencies from verbose |
# compiler output when linking a shared library. | | # compiler output when linking a shared library. |
# Parse the compiler output and extract the necessary | | # Parse the compiler output and extract the necessary |
| | |
# The `*' in the case matches for architectures that use `case' in | | # The `*' in the case matches for architectures that use `case' in |
# $output_verbose_cmd can trigger glob expansion during the loop | | # $output_verbose_cmd can trigger glob expansion during the loop |
# eval without this substitution. | | # eval without this substitution. |
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` | | output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" |
| | |
for p in `eval $output_verbose_link_cmd`; do | | for p in `eval $output_verbose_link_cmd`; do |
case $p in | | case $p in |
| | |
| | |
$rm -f confest.$objext | | $rm -f confest.$objext |
| | |
# PORTME: override above test on systems where it is broken | | |
ifelse([$1],[CXX], | | |
[case $host_os in | | |
interix3*) | | |
# Interix 3.5 installs completely hosed .la files for C++, so rather than | | |
# hack all around it, let's just trust "g++" to DTRT. | | |
_LT_AC_TAGVAR(predep_objects,$1)= | | |
_LT_AC_TAGVAR(postdep_objects,$1)= | | |
_LT_AC_TAGVAR(postdeps,$1)= | | |
;; | | |
| | |
solaris*) | | |
case $cc_basename in | | |
CC*) | | |
# Adding this requires a known-good setup of shared libraries for | | |
# Sun compiler versions before 5.6, else PIC objects from an old | | |
# archive will be linked into the output, leading to subtle bugs. | | |
_LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun' | | |
;; | | |
esac | | |
;; | | |
esac | | |
]) | | |
| | |
case " $_LT_AC_TAGVAR(postdeps, $1) " in | | case " $_LT_AC_TAGVAR(postdeps, $1) " in |
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; | | *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; |
esac | | esac |
])# AC_LIBTOOL_POSTDEP_PREDEP | | ])# AC_LIBTOOL_POSTDEP_PREDEP |
| | |
# AC_LIBTOOL_LANG_F77_CONFIG | | # AC_LIBTOOL_LANG_F77_CONFIG |
# -------------------------- | | # ------------------------ |
# Ensure that the configuration vars for the C compiler are | | # Ensure that the configuration vars for the C compiler are |
# suitably defined. Those variables are subsequently used by | | # suitably defined. Those variables are subsequently used by |
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. | | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
| | |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. | | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
_LT_AC_SYS_COMPILER | | _LT_AC_SYS_COMPILER |
| | |
# save warnings/boilerplate of simple test code | | |
_LT_COMPILER_BOILERPLATE | | |
_LT_LINKER_BOILERPLATE | | |
| | |
# Allow CC to be a program name with arguments. | | # Allow CC to be a program name with arguments. |
lt_save_CC="$CC" | | lt_save_CC="$CC" |
CC=${F77-"f77"} | | CC=${F77-"f77"} |
compiler=$CC | | compiler=$CC |
_LT_AC_TAGVAR(compiler, $1)=$CC | | _LT_AC_TAGVAR(compiler, $1)=$CC |
_LT_CC_BASENAME([$compiler]) | | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
| | |
AC_MSG_CHECKING([if libtool supports shared libraries]) | | AC_MSG_CHECKING([if libtool supports shared libraries]) |
AC_MSG_RESULT([$can_build_shared]) | | AC_MSG_RESULT([$can_build_shared]) |
| | |
| | |
# On AIX, shared libraries and static libraries use the same namespace, and | | # On AIX, shared libraries and static libraries use the same namespace, and |
# are all built from PIC. | | # are all built from PIC. |
case $host_os in | | case "$host_os" in |
aix3*) | | aix3*) |
test "$enable_shared" = yes && enable_static=no | | test "$enable_shared" = yes && enable_static=no |
if test -n "$RANLIB"; then | | if test -n "$RANLIB"; then |
| | |
fi | | fi |
;; | | ;; |
aix4* | aix5*) | | aix4* | aix5*) |
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | | |
test "$enable_shared" = yes && enable_static=no | | test "$enable_shared" = yes && enable_static=no |
fi | | |
;; | | ;; |
esac | | esac |
AC_MSG_RESULT([$enable_shared]) | | AC_MSG_RESULT([$enable_shared]) |
| | |
test "$enable_shared" = yes || enable_static=yes | | test "$enable_shared" = yes || enable_static=yes |
AC_MSG_RESULT([$enable_static]) | | AC_MSG_RESULT([$enable_static]) |
| | |
| | test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no |
| | |
_LT_AC_TAGVAR(GCC, $1)="$G77" | | _LT_AC_TAGVAR(GCC, $1)="$G77" |
_LT_AC_TAGVAR(LD, $1)="$LD" | | _LT_AC_TAGVAR(LD, $1)="$LD" |
| | |
| | |
AC_LIBTOOL_PROG_LD_SHLIBS($1) | | AC_LIBTOOL_PROG_LD_SHLIBS($1) |
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) | | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
| | AC_LIBTOOL_SYS_LIB_STRIP |
| | |
| | |
AC_LIBTOOL_CONFIG($1) | | AC_LIBTOOL_CONFIG($1) |
| | |
| | |
lt_simple_compile_test_code="class foo {}\n" | | lt_simple_compile_test_code="class foo {}\n" |
| | |
# Code to be used in simple link tests | | # Code to be used in simple link tests |
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n' | | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' |
| | |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. | | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
_LT_AC_SYS_COMPILER | | _LT_AC_SYS_COMPILER |
| | |
# save warnings/boilerplate of simple test code | | |
_LT_COMPILER_BOILERPLATE | | |
_LT_LINKER_BOILERPLATE | | |
| | |
# Allow CC to be a program name with arguments. | | # Allow CC to be a program name with arguments. |
lt_save_CC="$CC" | | lt_save_CC="$CC" |
CC=${GCJ-"gcj"} | | CC=${GCJ-"gcj"} |
compiler=$CC | | compiler=$CC |
_LT_AC_TAGVAR(compiler, $1)=$CC | | _LT_AC_TAGVAR(compiler, $1)=$CC |
_LT_CC_BASENAME([$compiler]) | | |
| | |
# GCJ did not exist at the time GCC didn't implicitly link libc in. | | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| | |
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | | |
| | |
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) | | AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) |
AC_LIBTOOL_PROG_COMPILER_PIC($1) | | AC_LIBTOOL_PROG_COMPILER_PIC($1) |
AC_LIBTOOL_PROG_CC_C_O($1) | | AC_LIBTOOL_PROG_CC_C_O($1) |
| | |
AC_LIBTOOL_PROG_LD_SHLIBS($1) | | AC_LIBTOOL_PROG_LD_SHLIBS($1) |
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) | | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
| | AC_LIBTOOL_SYS_LIB_STRIP |
| | AC_LIBTOOL_DLOPEN_SELF($1) |
| | |
AC_LIBTOOL_CONFIG($1) | | AC_LIBTOOL_CONFIG($1) |
| | |
| | |
| | |
| | |
# AC_LIBTOOL_LANG_RC_CONFIG | | # AC_LIBTOOL_LANG_RC_CONFIG |
# ------------------------- | | # -------------------------- |
# Ensure that the configuration vars for the Windows resource compiler are | | # Ensure that the configuration vars for the Windows resource compiler are |
# suitably defined. Those variables are subsequently used by | | # suitably defined. Those variables are subsequently used by |
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. | | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
| | |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. | | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
_LT_AC_SYS_COMPILER | | _LT_AC_SYS_COMPILER |
| | |
# save warnings/boilerplate of simple test code | | |
_LT_COMPILER_BOILERPLATE | | |
_LT_LINKER_BOILERPLATE | | |
| | |
# Allow CC to be a program name with arguments. | | # Allow CC to be a program name with arguments. |
lt_save_CC="$CC" | | lt_save_CC="$CC" |
CC=${RC-"windres"} | | CC=${RC-"windres"} |
compiler=$CC | | compiler=$CC |
_LT_AC_TAGVAR(compiler, $1)=$CC | | _LT_AC_TAGVAR(compiler, $1)=$CC |
_LT_CC_BASENAME([$compiler]) | | |
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes | | _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
| | |
AC_LIBTOOL_CONFIG($1) | | AC_LIBTOOL_CONFIG($1) |
| | |
# Now quote all the things that may contain metacharacters while being | | # Now quote all the things that may contain metacharacters while being |
# careful not to overquote the AC_SUBSTed values. We take copies of the | | # careful not to overquote the AC_SUBSTed values. We take copies of the |
# variables and quote the copies for generation of the libtool script. | | # variables and quote the copies for generation of the libtool script. |
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
SED SHELL STRIP \ | | SED SHELL STRIP \ |
libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| | |
# | | # |
# You should have received a copy of the GNU General Public License | | # You should have received a copy of the GNU General Public License |
# along with this program; if not, write to the Free Software | | # along with this program; if not, write to the Free Software |
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
# | | # |
# As a special exception to the GNU General Public License, if you | | # As a special exception to the GNU General Public License, if you |
# distribute this file as part of a program that contains a | | # distribute this file as part of a program that contains a |
| | |
SED=$lt_SED | | SED=$lt_SED |
| | |
# Sed that helps us avoid accidentally triggering echo(1) options like -n. | | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
Xsed="$SED -e 1s/^X//" | | Xsed="$SED -e s/^X//" |
| | |
# The HP-UX ksh and POSIX shell print the target directory to stdout | | # The HP-UX ksh and POSIX shell print the target directory to stdout |
# if CDPATH is set. | | # if CDPATH is set. |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH | | if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
| | |
# The names of the tagged configurations supported by this script. | | # The names of the tagged configurations supported by this script. |
available_tags= | | available_tags= |
| | |
# The host system. | | # The host system. |
host_alias=$host_alias | | host_alias=$host_alias |
host=$host | | host=$host |
host_os=$host_os | | |
| | |
# The build system. | | |
build_alias=$build_alias | | |
build=$build | | |
build_os=$build_os | | |
| | |
# An echo program that does not interpret backslashes. | | # An echo program that does not interpret backslashes. |
echo=$lt_echo | | echo=$lt_echo |
| | |
# A C compiler. | | # A C compiler. |
LTCC=$lt_LTCC | | LTCC=$lt_LTCC |
| | |
# LTCC compiler flags. | | |
LTCFLAGS=$lt_LTCFLAGS | | |
| | |
# A language-specific compiler. | | # A language-specific compiler. |
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) | | CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) |
| | |
| | |
# Regexp to match symbols that can be accessed directly from C. | | # Regexp to match symbols that can be accessed directly from C. |
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' | | sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' |
| | |
| | # Transform the above into a raw symbol and a C symbol. |
| | symxfrm='\1 \2\3 \3' |
| | |
# Transform an extracted symbol line into a proper C declaration | | # Transform an extracted symbol line into a proper C declaration |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| | |
| | |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
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'" | | 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'" |
;; | | ;; |
linux*) | | |
if test "$host_cpu" = ia64; then | | |
symcode='[[ABCDGIRSTW]]' | | |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | | |
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'" | | |
fi | | |
;; | | |
irix* | nonstopux*) | | irix* | nonstopux*) |
symcode='[[BCDEGRST]]' | | symcode='[[BCDEGRST]]' |
;; | | ;; |
osf*) | | osf*) |
symcode='[[BCDEGQRST]]' | | symcode='[[BCDEGQRST]]' |
;; | | ;; |
solaris*) | | solaris* | sysv5*) |
symcode='[[BDRT]]' | | symcode='[[BDRT]]' |
;; | | ;; |
sco3.2v5*) | | |
symcode='[[DT]]' | | |
;; | | |
sysv4.2uw2*) | | |
symcode='[[DT]]' | | |
;; | | |
sysv5* | sco5v6* | unixware* | OpenUNIX*) | | |
symcode='[[ABDT]]' | | |
;; | | |
sysv4) | | sysv4) |
symcode='[[DFNSTU]]' | | symcode='[[DFNSTU]]' |
;; | | ;; |
| | |
# Try without a prefix undercore, then with it. | | # Try without a prefix undercore, then with it. |
for ac_symprfx in "" "_"; do | | for ac_symprfx in "" "_"; do |
| | |
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | | |
symxfrm="\\1 $ac_symprfx\\2 \\2" | | |
| | |
# Write the raw and C identifiers. | | # Write the raw and C identifiers. |
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
| | |
# Check to see that the pipe works correctly. | | # Check to see that the pipe works correctly. |
pipe_works=no | | pipe_works=no |
| | |
# DJGPP does not support shared libraries at all | | # DJGPP does not support shared libraries at all |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= | | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
;; | | ;; |
interix3*) | | |
# Interix 3.x gcc -fpic/-fPIC options generate broken code. | | |
# Instead, we relocate shared libraries at runtime. | | |
;; | | |
sysv4*MP*) | | sysv4*MP*) |
if test -d /usr/nec; then | | if test -d /usr/nec; then |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic | | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic |
| | |
hpux*) | | hpux*) |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
# not for PA HP-UX. | | # not for PA HP-UX. |
case $host_cpu in | | case "$host_cpu" in |
hppa*64*|ia64*) | | hppa*64*|ia64*) |
;; | | ;; |
*) | | *) |
| | |
;; | | ;; |
chorus*) | | chorus*) |
case $cc_basename in | | case $cc_basename in |
cxch68*) | | cxch68) |
# Green Hills C++ Compiler | | # Green Hills C++ Compiler |
# _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--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" | | # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--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" |
;; | | ;; |
esac | | esac |
;; | | ;; |
darwin*) | | |
# PIC is the default on this platform | | |
# Common symbols not allowed in MH_DYLIB files | | |
case $cc_basename in | | |
xlc*) | | |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' | | |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | | |
;; | | |
esac | | |
;; | | |
dgux*) | | dgux*) |
case $cc_basename in | | case $cc_basename in |
ec++*) | | ec++) |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
;; | | ;; |
ghcx*) | | ghcx) |
# Green Hills C++ Compiler | | # Green Hills C++ Compiler |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
;; | | ;; |
| | |
;; | | ;; |
esac | | esac |
;; | | ;; |
freebsd* | kfreebsd*-gnu | dragonfly*) | | freebsd* | kfreebsd*-gnu) |
# FreeBSD uses GNU C++ | | # FreeBSD uses GNU C++ |
;; | | ;; |
hpux9* | hpux10* | hpux11*) | | hpux9* | hpux10* | hpux11*) |
case $cc_basename in | | case $cc_basename in |
CC*) | | CC) |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' | | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
if test "$host_cpu" != ia64; then | | if test "$host_cpu" != ia64; then |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' | | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
fi | | fi |
;; | | ;; |
aCC*) | | aCC) |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' | | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
case $host_cpu in | | case "$host_cpu" in |
hppa*64*|ia64*) | | hppa*64*|ia64*) |
# +Z the default | | # +Z the default |
;; | | ;; |
| | |
;; | | ;; |
esac | | esac |
;; | | ;; |
interix*) | | |
# This is c89, which is MS Visual C++ (no shared libs) | | |
# Anyone wants to do a port? | | |
;; | | |
irix5* | irix6* | nonstopux*) | | irix5* | irix6* | nonstopux*) |
case $cc_basename in | | case $cc_basename in |
CC*) | | CC) |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
# CC pic flag -KPIC is the default. | | # CC pic flag -KPIC is the default. |
| | |
;; | | ;; |
linux*) | | linux*) |
case $cc_basename in | | case $cc_basename in |
KCC*) | | KCC) |
# KAI C++ Compiler | | # KAI C++ Compiler |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' | | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
;; | | ;; |
icpc* | ecpc*) | | icpc) |
# Intel C++ | | # Intel C++ |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' | | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' |
;; | | ;; |
pgCC*) | | cxx) |
# Portland Group C++ compiler. | | |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | | |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' | | |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | | |
;; | | |
cxx*) | | |
# Compaq C++ | | # Compaq C++ |
# Make sure the PIC flag is empty. It appears that all Alpha | | # Make sure the PIC flag is empty. It appears that all Alpha |
# Linux and Compaq Tru64 Unix objects are PIC. | | # Linux and Compaq Tru64 Unix objects are PIC. |
| | |
;; | | ;; |
mvs*) | | mvs*) |
case $cc_basename in | | case $cc_basename in |
cxx*) | | cxx) |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' | | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' |
;; | | ;; |
*) | | *) |
;; | | ;; |
esac | | esac |
;; | | ;; |
netbsd*) | | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
;; | | ;; |
osf3* | osf4* | osf5*) | | osf3* | osf4* | osf5*) |
case $cc_basename in | | case $cc_basename in |
KCC*) | | KCC) |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' | | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' |
;; | | ;; |
RCC*) | | RCC) |
# Rational C++ 2.4.1 | | # Rational C++ 2.4.1 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
;; | | ;; |
cxx*) | | cxx) |
# Digital/Compaq C++ | | # Digital/Compaq C++ |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
# Make sure the PIC flag is empty. It appears that all Alpha | | # Make sure the PIC flag is empty. It appears that all Alpha |
| | |
;; | | ;; |
psos*) | | psos*) |
;; | | ;; |
| | sco*) |
| | case $cc_basename in |
| | CC) |
| | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
| | ;; |
| | *) |
| | ;; |
| | esac |
| | ;; |
solaris*) | | solaris*) |
case $cc_basename in | | case $cc_basename in |
CC*) | | CC) |
# Sun C++ 4.2, 5.x and Centerline C++ | | # Sun C++ 4.2, 5.x and Centerline C++ |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' | | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
;; | | ;; |
gcx*) | | gcx) |
# Green Hills C++ Compiler | | # Green Hills C++ Compiler |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' | | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' |
;; | | ;; |
| | |
;; | | ;; |
sunos4*) | | sunos4*) |
case $cc_basename in | | case $cc_basename in |
CC*) | | CC) |
# Sun C++ 4.x | | # Sun C++ 4.x |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
;; | | ;; |
lcc*) | | lcc) |
# Lucid | | # Lucid |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
;; | | ;; |
| | |
;; | | ;; |
tandem*) | | tandem*) |
case $cc_basename in | | case $cc_basename in |
NCC*) | | NCC) |
# NonStop-UX NCC 3.20 | | # NonStop-UX NCC 3.20 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
;; | | ;; |
| | |
;; | | ;; |
esac | | esac |
;; | | ;; |
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | | unixware*) |
case $cc_basename in | | |
CC*) | | |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | | |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | | |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | | |
;; | | |
esac | | |
;; | | ;; |
vxworks*) | | vxworks*) |
;; | | ;; |
| | |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' | | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' |
;; | | ;; |
| | |
interix3*) | | |
# Interix 3.x gcc -fpic/-fPIC options generate broken code. | | |
# Instead, we relocate shared libraries at runtime. | | |
;; | | |
| | |
msdosdjgpp*) | | msdosdjgpp*) |
# Just because we use GCC doesn't mean we suddenly get shared libraries | | # Just because we use GCC doesn't mean we suddenly get shared libraries |
# on systems that don't support them. | | # on systems that don't support them. |
| | |
hpux*) | | hpux*) |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
# not for PA HP-UX. | | # not for PA HP-UX. |
case $host_cpu in | | case "$host_cpu" in |
hppa*64*|ia64*) | | hppa*64*|ia64*) |
# +Z the default | | # +Z the default |
;; | | ;; |
| | |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' | | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' |
fi | | fi |
;; | | ;; |
darwin*) | | |
# PIC is the default on this platform | | |
# Common symbols not allowed in MH_DYLIB files | | |
case $cc_basename in | | |
xlc*) | | |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' | | |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | | |
;; | | |
esac | | |
;; | | |
| | |
mingw* | pw32* | os2*) | | mingw* | pw32* | os2*) |
# This hack is so that the source file can tell whether it is being | | # This hack is so that the source file can tell whether it is being |
| | |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
# not for PA HP-UX. | | # not for PA HP-UX. |
case $host_cpu in | | case "$host_cpu" in |
hppa*64*|ia64*) | | hppa*64*|ia64*) |
# +Z the default | | # +Z the default |
;; | | ;; |
| | |
;; | | ;; |
| | |
linux*) | | linux*) |
case $cc_basename in | | case $CC in |
icc* | ecc*) | | icc* | ecc*) |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' | | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' |
;; | | ;; |
pgcc* | pgf77* | pgf90* | pgf95*) | | |
# Portland Group compilers (*not* the Pentium gcc compiler, | | |
# which looks to be a dead project) | | |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | | |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' | | |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | | |
;; | | |
ccc*) | | ccc*) |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
# All Alpha code is PIC. | | # All Alpha code is PIC. |
| | |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
;; | | ;; |
| | |
| | sco3.2v5*) |
| | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic' |
| | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn' |
| | ;; |
| | |
solaris*) | | solaris*) |
| | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
case $cc_basename in | | |
f77* | f90* | f95*) | | |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; | | |
*) | | |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; | | |
esac | | |
;; | | ;; |
| | |
sunos4*) | | sunos4*) |
| | |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
;; | | ;; |
| | |
sysv4 | sysv4.2uw2* | sysv4.3*) | | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| | |
fi | | fi |
;; | | ;; |
| | |
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | | |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | | |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | | |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | | |
;; | | |
| | |
unicos*) | | |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | | |
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no | | |
;; | | |
| | |
uts4*) | | uts4*) |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| | |
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= | | [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) | | _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) |
fi | | fi |
case $host_os in | | case "$host_os" in |
# For platforms which do not support PIC, -DPIC is meaningless: | | # For platforms which do not support PIC, -DPIC is meaningless: |
*djgpp*) | | *djgpp*) |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= | | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
| | |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" | | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" |
;; | | ;; |
esac | | esac |
| | |
# | | |
# Check to make sure the static flag actually works. | | |
# | | |
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\" | | |
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], | | |
_LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), | | |
$lt_tmp_static_flag, | | |
[], | | |
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) | | |
]) | | ]) |
| | |
| | |
| | |
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" | | _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" |
;; | | ;; |
cygwin* | mingw*) | | cygwin* | mingw*) |
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$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' | | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' |
| | ;; |
| | linux*) |
| | _LT_AC_TAGVAR(link_all_deplibs, $1)=no |
;; | | ;; |
*) | | *) |
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| | |
# rely on this symbol name, it's probably fine to never include it in | | # rely on this symbol name, it's probably fine to never include it in |
# preloaded symbol tables. | | # preloaded symbol tables. |
extract_expsyms_cmds= | | extract_expsyms_cmds= |
# Just being paranoid about ensuring that cc_basename is set. | | |
_LT_CC_BASENAME([$compiler]) | | |
case $host_os in | | case $host_os in |
cygwin* | mingw* | pw32*) | | cygwin* | mingw* | pw32*) |
# FIXME: the MSVC++ port hasn't been tested in a loooong time | | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| | |
with_gnu_ld=no | | with_gnu_ld=no |
fi | | fi |
;; | | ;; |
interix*) | | |
# we just hope/assume this is gcc and not c89 (= MSVC++) | | |
with_gnu_ld=yes | | |
;; | | |
openbsd*) | | openbsd*) |
with_gnu_ld=no | | with_gnu_ld=no |
;; | | ;; |
| | |
# If archive_cmds runs LD, not CC, wlarc should be empty | | # If archive_cmds runs LD, not CC, wlarc should be empty |
wlarc='${wl}' | | wlarc='${wl}' |
| | |
# Set some defaults for GNU ld with shared library support. These | | |
# are reset later if shared libraries are not supported. Putting them | | |
# here allows them to be overridden if necessary. | | |
runpath_var=LD_RUN_PATH | | |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' | | |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | | |
# ancient GNU ld didn't support --whole-archive et. al. | | |
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | | |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | | |
else | | |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= | | |
fi | | |
supports_anon_versioning=no | | |
case `$LD -v 2>/dev/null` in | | |
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 | | |
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | | |
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | | |
*\ 2.11.*) ;; # other 2.11 versions | | |
*) supports_anon_versioning=yes ;; | | |
esac | | |
| | |
# See if GNU ld supports shared libraries. | | # See if GNU ld supports shared libraries. |
case $host_os in | | case $host_os in |
aix3* | aix4* | aix5*) | | aix3* | aix4* | aix5*) |
| | |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported | | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
_LT_AC_TAGVAR(always_export_symbols, $1)=no | | _LT_AC_TAGVAR(always_export_symbols, $1)=no |
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' | | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' |
| | |
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
# If the export-symbols file already is a .def file (1st line | | # If the export-symbols file already is a .def file (1st line |
# is EXPORTS), use it as is; otherwise, prepend... | | # is EXPORTS), use it as is; otherwise, prepend... |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| | |
echo EXPORTS > $output_objdir/$soname.def; | | echo EXPORTS > $output_objdir/$soname.def; |
cat $export_symbols >> $output_objdir/$soname.def; | | cat $export_symbols >> $output_objdir/$soname.def; |
fi~ | | fi~ |
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
else | | |
_LT_AC_TAGVAR(ld_shlibs, $1)=no | | |
fi | | |
;; | | |
| | |
interix3*) | | |
_LT_AC_TAGVAR(hardcode_direct, $1)=no | | |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | | |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | | |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | | |
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | | |
# Instead, shared libraries are loaded at an image base (0x10000000 by | | |
# default) and relocated if they conflict, which is a slow very memory | | |
# consuming and fragmenting process. To avoid this, we pick a random, | | |
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | | |
# time. Moving up from 0x10000000 also allows more sbrk(2) space. | | |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | | |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='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' | | |
;; | | |
| | |
linux*) | | |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | | |
tmp_addflag= | | |
case $cc_basename,$host_cpu in | | |
pgcc*) # Portland Group C compiler | | |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | | |
tmp_addflag=' $pic_flag' | | |
;; | | |
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | | |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | | |
tmp_addflag=' $pic_flag -Mnomain' ;; | | |
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | | |
tmp_addflag=' -i_dynamic' ;; | | |
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | | |
tmp_addflag=' -i_dynamic -nofor_main' ;; | | |
ifc* | ifort*) # Intel Fortran compiler | | |
tmp_addflag=' -nofor_main' ;; | | |
esac | | |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | | |
| | |
if test $supports_anon_versioning = yes; then | | |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ | | |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | | |
$echo "local: *; };" >> $output_objdir/$libname.ver~ | | |
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | | |
fi | | |
else | | else |
_LT_AC_TAGVAR(ld_shlibs, $1)=no | | ld_shlibs=no |
fi | | fi |
;; | | ;; |
| | |
netbsd*) | | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
wlarc= | | wlarc= |
| | |
fi | | fi |
;; | | ;; |
| | |
solaris*) | | solaris* | sysv5*) |
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
_LT_AC_TAGVAR(ld_shlibs, $1)=no | | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
cat <<EOF 1>&2 | | cat <<EOF 1>&2 |
| | |
fi | | fi |
;; | | ;; |
| | |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | | |
case `$LD -v 2>&1` in | | |
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) | | |
_LT_AC_TAGVAR(ld_shlibs, $1)=no | | |
cat <<_LT_EOF 1>&2 | | |
| | |
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | | |
*** reliably create shared libraries on SCO systems. Therefore, libtool | | |
*** is disabling shared libraries support. We urge you to upgrade GNU | | |
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify | | |
*** your PATH or compiler configuration so that the native linker is | | |
*** used, and then restart. | | |
| | |
_LT_EOF | | |
;; | | |
*) | | |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | | |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' | | |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' | | |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' | | |
else | | |
_LT_AC_TAGVAR(ld_shlibs, $1)=no | | |
fi | | |
;; | | |
esac | | |
;; | | |
| | |
sunos4*) | | sunos4*) |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
wlarc= | | wlarc= |
| | |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
;; | | ;; |
| | |
| | linux*) |
| | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| | _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds" |
| | supports_anon_versioning=no |
| | case `$LD -v 2>/dev/null` in |
| | *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| | *\ 2.11.*) ;; # other 2.11 versions |
| | *) supports_anon_versioning=yes ;; |
| | esac |
| | if test $supports_anon_versioning = yes; then |
| | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ |
| | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| | else |
| | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds" |
| | fi |
| | _LT_AC_TAGVAR(link_all_deplibs, $1)=no |
| | else |
| | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| | fi |
| | ;; |
| | |
*) | | *) |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| | |
;; | | ;; |
esac | | esac |
| | |
if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then | | if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then |
runpath_var= | | runpath_var=LD_RUN_PATH |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= | | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= | | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
| | # ancient GNU ld didn't support --whole-archive et. al. |
| | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| | else |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= | | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
fi | | fi |
| | fi |
else | | else |
# PORTME fill in a description of your system's linker (not GNU ld) | | # PORTME fill in a description of your system's linker (not GNU ld) |
case $host_os in | | case $host_os in |
| | |
# Note: this linker hardcodes the directories in LIBPATH if there | | # Note: this linker hardcodes the directories in LIBPATH if there |
# are no directories specified by -L. | | # are no directories specified by -L. |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | | if test "$GCC" = yes && test -z "$link_static_flag"; then |
# Neither direct hardcoding nor static linking is supported with a | | # Neither direct hardcoding nor static linking is supported with a |
# broken collect2. | | # broken collect2. |
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported | | _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported |
| | |
break | | break |
fi | | fi |
done | | done |
;; | | |
esac | | esac |
| | |
exp_sym_flag='-bexport' | | exp_sym_flag='-bexport' |
| | |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes | | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| | |
if test "$GCC" = yes; then | | if test "$GCC" = yes; then |
case $host_os in aix4.[[012]]|aix4.[[012]].*) | | case $host_os in aix4.[012]|aix4.[012].*) |
# We only want to do this on AIX 4.2 and lower, the check | | # We only want to do this on AIX 4.2 and lower, the check |
# below for broken collect2 doesn't work under 4.3+ | | # below for broken collect2 doesn't work under 4.3+ |
collect2name=`${CC} -print-prog-name=collect2` | | collect2name=`${CC} -print-prog-name=collect2` |
| | |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= | | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
fi | | fi |
;; | | |
esac | | esac |
shared_flag='-shared' | | shared_flag='-shared' |
if test "$aix_use_runtimelinking" = yes; then | | |
shared_flag="$shared_flag "'${wl}-G' | | |
fi | | |
else | | else |
# not using gcc | | # not using gcc |
if test "$host_cpu" = ia64; then | | if test "$host_cpu" = ia64; then |
| | |
# Determine the default libpath from the value encoded in an empty executable. | | # Determine the default libpath from the value encoded in an empty executable. |
_LT_AC_SYS_LIBPATH_AIX | | _LT_AC_SYS_LIBPATH_AIX |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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" | | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
else | | else |
if test "$host_cpu" = ia64; then | | if test "$host_cpu" = ia64; then |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' | | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" | | _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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" | | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
else | | else |
# Determine the default libpath from the value encoded in an empty executable. | | # Determine the default libpath from the value encoded in an empty executable. |
_LT_AC_SYS_LIBPATH_AIX | | _LT_AC_SYS_LIBPATH_AIX |
| | |
# -berok will link without error, but may produce a broken library. | | # -berok will link without error, but may produce a broken library. |
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' | | _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' | | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
| | # -bexpall does not export symbols beginning with underscore (_) |
| | _LT_AC_TAGVAR(always_export_symbols, $1)=yes |
# Exported symbols can be pulled into shared objects from archives | | # Exported symbols can be pulled into shared objects from archives |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' | | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes | | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes |
# This is similar to how AIX traditionally builds its shared libraries. | | # This is similar to how AIX traditionally builds it's shared libraries. |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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' | | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
fi | | fi |
fi | | fi |
;; | | ;; |
| | |
_LT_AC_TAGVAR(ld_shlibs, $1)=no | | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
;; | | ;; |
| | |
bsdi[[45]]*) | | bsdi4*) |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic | | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic |
;; | | ;; |
| | |
| | |
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' | | _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' |
# FIXME: Should let the user specify the lib program. | | # FIXME: Should let the user specify the lib program. |
_LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs' | | _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs' |
_LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' | | fix_srcfile_path='`cygpath -w "$srcfile"`' |
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
;; | | ;; |
| | |
darwin* | rhapsody*) | | darwin* | rhapsody*) |
case $host_os in | | if test "$GXX" = yes ; then |
| | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| | case "$host_os" in |
rhapsody* | darwin1.[[012]]) | | rhapsody* | darwin1.[[012]]) |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' | | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' |
;; | | ;; |
*) # Darwin 1.3 on | | *) # Darwin 1.3 on |
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' |
else | | else |
case ${MACOSX_DEPLOYMENT_TARGET} in | | case ${MACOSX_DEPLOYMENT_TARGET} in |
10.[[012]]) | | 10.[[012]]) |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' |
;; | | ;; |
10.*) | | 10.*) |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' | | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' |
;; | | ;; |
esac | | esac |
fi | | fi |
;; | | ;; |
esac | | esac |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | | lt_int_apple_cc_single_mod=no |
| | output_verbose_link_cmd='echo' |
| | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
| | lt_int_apple_cc_single_mod=yes |
| | fi |
| | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| | else |
| | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -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' |
| | fi |
| | _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='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}' |
| | else |
| | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}' |
| | fi |
| | _LT_AC_TAGVAR(module_expsym_cmds, $1)='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}' |
_LT_AC_TAGVAR(hardcode_direct, $1)=no | | _LT_AC_TAGVAR(hardcode_direct, $1)=no |
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes | | _LT_AC_TAGVAR(hardcode_automatic, $1)=yes |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' | | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes | | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
if test "$GCC" = yes ; then | | |
output_verbose_link_cmd='echo' | | |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | | |
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | | |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | | |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='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}' | | |
_LT_AC_TAGVAR(module_expsym_cmds, $1)='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}' | | |
else | | else |
case $cc_basename in | | |
xlc*) | | |
output_verbose_link_cmd='echo' | | |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | | |
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | | |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | | |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | | |
_LT_AC_TAGVAR(module_expsym_cmds, $1)='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}' | | |
;; | | |
*) | | |
_LT_AC_TAGVAR(ld_shlibs, $1)=no | | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
;; | | |
esac | | |
fi | | fi |
;; | | ;; |
| | |
| | |
;; | | ;; |
| | |
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. | | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
freebsd* | kfreebsd*-gnu | dragonfly*) | | freebsd* | kfreebsd*-gnu) |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes | | _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| | |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
;; | | ;; |
| | |
hpux10*) | | hpux10* | hpux11*) |
if test "$GCC" = yes -a "$with_gnu_ld" = no; then | | |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | | |
else | | |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | | |
fi | | |
if test "$with_gnu_ld" = no; then | | |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | | |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | | |
| | |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes | | |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | | |
| | |
# hardcode_minus_L: Not really in the search PATH, | | |
# but as the default location of the library. | | |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | | |
fi | | |
;; | | |
| | |
hpux11*) | | |
if test "$GCC" = yes -a "$with_gnu_ld" = no; then | | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
case $host_cpu in | | case "$host_cpu" in |
hppa*64*) | | hppa*64*|ia64*) |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
;; | | ;; |
ia64*) | | |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | | |
;; | | |
*) | | *) |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
;; | | ;; |
esac | | esac |
else | | else |
case $host_cpu in | | case "$host_cpu" in |
hppa*64*) | | hppa*64*|ia64*) |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
;; | | |
ia64*) | | |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | | |
;; | | ;; |
*) | | *) |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
;; | | ;; |
esac | | esac |
fi | | fi |
if test "$with_gnu_ld" = no; then | | if test "$with_gnu_ld" = no; then |
| | case "$host_cpu" in |
| | hppa*64*) |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | | |
| | |
case $host_cpu in | | |
hppa*64*|ia64*) | | |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' | | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' |
| | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
_LT_AC_TAGVAR(hardcode_direct, $1)=no | | _LT_AC_TAGVAR(hardcode_direct, $1)=no |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
;; | | ;; |
| | ia64*) |
| | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| | _LT_AC_TAGVAR(hardcode_direct, $1)=no |
| | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| | |
| | # hardcode_minus_L: Not really in the search PATH, |
| | # but as the default location of the library. |
| | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
| | ;; |
*) | | *) |
| | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
| | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes | | _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| | |
| | |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes | | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
;; | | ;; |
| | |
netbsd*) | | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
else | | else |
| | |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | | |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
else | | else |
| | |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
_LT_AC_TAGVAR(archive_cmds, $1)='$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' | | _LT_AC_TAGVAR(archive_cmds, $1)='$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' |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
$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' | | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' |
| | |
# Both c and cxx compiler support -rpath directly | | # Both c and cxx compiler support -rpath directly |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' | | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
| | |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
;; | | ;; |
| | |
| | sco3.2v5*) |
| | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' |
| | runpath_var=LD_RUN_PATH |
| | hardcode_runpath_var=yes |
| | ;; |
| | |
solaris*) | | solaris*) |
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' | | _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' |
if test "$GCC" = yes; then | | if test "$GCC" = yes; then |
wlarc='${wl}' | | |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
else | | else |
wlarc='' | | |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| | |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
case $host_os in | | case $host_os in |
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; | | solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; |
*) | | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
# The compiler driver will combine linker options so we | | |
# cannot just pass the convience library names through | | |
# without $wl, iff we do not link with $LD. | | |
# Luckily, gcc supports the same syntax we need for Sun Studio. | | |
# Supported since Solaris 2.6 (maybe 2.5.1?) | | |
case $wlarc in | | |
'') | | |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; | | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; |
*) | | |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; | | |
esac ;; | | |
esac | | esac |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes | | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
;; | | ;; |
| | |
fi | | fi |
;; | | ;; |
| | |
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*) | | sysv4.2uw2*) |
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' | | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | | _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| | _LT_AC_TAGVAR(hardcode_minus_L, $1)=no |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
runpath_var='LD_RUN_PATH' | | hardcode_runpath_var=yes |
| | runpath_var=LD_RUN_PATH |
| | ;; |
| | |
| | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) |
| | _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text' |
if test "$GCC" = yes; then | | if test "$GCC" = yes; then |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | | |
else | | else |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | | |
fi | | fi |
| | runpath_var='LD_RUN_PATH' |
| | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
;; | | ;; |
| | |
sysv5* | sco3.2v5* | sco5v6*) | | sysv5*) |
# Note: We can NOT use -z defs as we might desire, because we do not | | _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' |
# link with -lc, and that would cause any symbols used from libc to | | # $CC -shared without GNU ld will not create a library from C++ |
# always be unresolved, which means just about no library would | | # object files and a static libstdc++, better avoid it by now |
# ever link correctly. If we're not using GNU ld we use -z text | | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
# though, which does catch some bad symbols but isn't as heavy-handed | | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
# as -z defs. | | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' | | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' | | |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | | |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | | |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' | | |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes | | |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' | | |
runpath_var='LD_RUN_PATH' | | runpath_var='LD_RUN_PATH' |
| | |
if test "$GCC" = yes; then | | |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | | |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | | |
else | | |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | | |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | | |
fi | | |
;; | | ;; |
| | |
uts4*) | | uts4*) |
| | |
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) | | AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) |
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no | | test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no |
| | |
| | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| | if test "$GCC" = yes; then |
| | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| | fi |
| | |
# | | # |
# Do we need to explicitly link libc? | | # Do we need to explicitly link libc? |
# | | # |
| | |
libobjs=conftest.$ac_objext | | libobjs=conftest.$ac_objext |
deplibs= | | deplibs= |
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) | | wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) |
pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) | | |
compiler_flags=-v | | compiler_flags=-v |
linker_flags=-v | | linker_flags=-v |
verstring= | | verstring= |
| | |
# Add /usr/xpg4/bin/sed as it is typically found on Solaris | | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
# along with /bin/sed that truncates output. | | # along with /bin/sed that truncates output. |
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
test ! -f $lt_ac_sed && continue | | test ! -f $lt_ac_sed && break |
cat /dev/null > conftest.in | | cat /dev/null > conftest.in |
lt_ac_count=0 | | lt_ac_count=0 |
echo $ECHO_N "0123456789$ECHO_C" >conftest.in | | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
| | |
fi | | fi |
done | | done |
done | | done |
]) | | |
SED=$lt_cv_path_SED | | SED=$lt_cv_path_SED |
| | ]) |
AC_MSG_RESULT([$SED]) | | AC_MSG_RESULT([$SED]) |
]) | | ]) |
| | |
| | |
# Call AM_AUTOMAKE_VERSION so it can be traced. | | # Call AM_AUTOMAKE_VERSION so it can be traced. |
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. | | # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. |
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], | | AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], |
[AM_AUTOMAKE_VERSION([1.9.6])]) | | [AM_AUTOMAKE_VERSION([1.9.5])]) |
| | |
# AM_AUX_DIR_EXPAND -*- Autoconf -*- | | # AM_AUX_DIR_EXPAND -*- Autoconf -*- |
| | |