|
@@ -44,8 +44,8 @@ AC_DEFUN([AM_LANGINFO_CODESET],
|
|
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
|
|
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
|
|
#
|
|
#
|
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
|
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
|
|
-# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
|
|
+# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
|
|
-# Inc.
|
|
+# Foundation, Inc.
|
|
# Written by Gordon Matzigkeit, 1996
|
|
# Written by Gordon Matzigkeit, 1996
|
|
#
|
|
#
|
|
# This file is free software; the Free Software Foundation gives
|
|
# This file is free software; the Free Software Foundation gives
|
|
@@ -54,8 +54,8 @@ AC_DEFUN([AM_LANGINFO_CODESET],
|
|
|
|
|
|
m4_define([_LT_COPYING], [dnl
|
|
m4_define([_LT_COPYING], [dnl
|
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
|
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
|
|
-# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
|
|
+# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
|
|
-# Inc.
|
|
+# Foundation, Inc.
|
|
# Written by Gordon Matzigkeit, 1996
|
|
# Written by Gordon Matzigkeit, 1996
|
|
#
|
|
#
|
|
# This file is part of GNU Libtool.
|
|
# This file is part of GNU Libtool.
|
|
@@ -189,6 +189,8 @@ AC_REQUIRE([AC_CANONICAL_BUILD])dnl
|
|
AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
|
|
AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
|
|
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
|
|
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
|
|
|
|
|
|
|
|
+_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
|
|
|
|
+dnl
|
|
_LT_DECL([], [host_alias], [0], [The host system])dnl
|
|
_LT_DECL([], [host_alias], [0], [The host system])dnl
|
|
_LT_DECL([], [host], [0])dnl
|
|
_LT_DECL([], [host], [0])dnl
|
|
_LT_DECL([], [host_os], [0])dnl
|
|
_LT_DECL([], [host_os], [0])dnl
|
|
@@ -674,7 +676,7 @@ m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
|
|
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
|
|
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
|
|
configured by $[0], generated by m4_PACKAGE_STRING.
|
|
configured by $[0], generated by m4_PACKAGE_STRING.
|
|
|
|
|
|
-Copyright (C) 2010 Free Software Foundation, Inc.
|
|
+Copyright (C) 2011 Free Software Foundation, Inc.
|
|
This config.lt script is free software; the Free Software Foundation
|
|
This config.lt script is free software; the Free Software Foundation
|
|
gives unlimited permision to copy, distribute and modify it."
|
|
gives unlimited permision to copy, distribute and modify it."
|
|
|
|
|
|
@@ -838,6 +840,7 @@ AC_DEFUN([LT_LANG],
|
|
m4_case([$1],
|
|
m4_case([$1],
|
|
[C], [_LT_LANG(C)],
|
|
[C], [_LT_LANG(C)],
|
|
[C++], [_LT_LANG(CXX)],
|
|
[C++], [_LT_LANG(CXX)],
|
|
|
|
+ [Go], [_LT_LANG(GO)],
|
|
[Java], [_LT_LANG(GCJ)],
|
|
[Java], [_LT_LANG(GCJ)],
|
|
[Fortran 77], [_LT_LANG(F77)],
|
|
[Fortran 77], [_LT_LANG(F77)],
|
|
[Fortran], [_LT_LANG(FC)],
|
|
[Fortran], [_LT_LANG(FC)],
|
|
@@ -859,6 +862,29 @@ m4_defun([_LT_LANG],
|
|
])# _LT_LANG
|
|
])# _LT_LANG
|
|
|
|
|
|
|
|
|
|
|
|
+m4_ifndef([AC_PROG_GO], [
|
|
|
|
+# NOTE: This macro has been submitted for inclusion into #
|
|
|
|
+# GNU Autoconf as AC_PROG_GO. When it is available in #
|
|
|
|
+# a released version of Autoconf we should remove this #
|
|
|
|
+# macro and use it instead. #
|
|
|
|
+m4_defun([AC_PROG_GO],
|
|
|
|
+[AC_LANG_PUSH(Go)dnl
|
|
|
|
+AC_ARG_VAR([GOC], [Go compiler command])dnl
|
|
|
|
+AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
|
|
|
|
+_AC_ARG_VAR_LDFLAGS()dnl
|
|
|
|
+AC_CHECK_TOOL(GOC, gccgo)
|
|
|
|
+if test -z "$GOC"; then
|
|
|
|
+ if test -n "$ac_tool_prefix"; then
|
|
|
|
+ AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
|
|
|
|
+ fi
|
|
|
|
+fi
|
|
|
|
+if test -z "$GOC"; then
|
|
|
|
+ AC_CHECK_PROG(GOC, gccgo, gccgo, false)
|
|
|
|
+fi
|
|
|
|
+])#m4_defun
|
|
|
|
+])#m4_ifndef
|
|
|
|
+
|
|
|
|
+
|
|
# _LT_LANG_DEFAULT_CONFIG
|
|
# _LT_LANG_DEFAULT_CONFIG
|
|
# -----------------------
|
|
# -----------------------
|
|
m4_defun([_LT_LANG_DEFAULT_CONFIG],
|
|
m4_defun([_LT_LANG_DEFAULT_CONFIG],
|
|
@@ -889,6 +915,10 @@ AC_PROVIDE_IFELSE([AC_PROG_GCJ],
|
|
m4_ifdef([LT_PROG_GCJ],
|
|
m4_ifdef([LT_PROG_GCJ],
|
|
[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
|
|
[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
|
|
|
|
|
|
|
|
+AC_PROVIDE_IFELSE([AC_PROG_GO],
|
|
|
|
+ [LT_LANG(GO)],
|
|
|
|
+ [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
|
|
|
|
+
|
|
AC_PROVIDE_IFELSE([LT_PROG_RC],
|
|
AC_PROVIDE_IFELSE([LT_PROG_RC],
|
|
[LT_LANG(RC)],
|
|
[LT_LANG(RC)],
|
|
[m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
|
|
[m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
|
|
@@ -991,7 +1021,13 @@ m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
|
|
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
|
|
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
|
|
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
|
|
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
|
|
_lt_result=$?
|
|
_lt_result=$?
|
|
- if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
|
|
+ # If there is a non-empty error log, and "single_module"
|
|
|
|
+ # appears in it, assume the flag caused a linker warning
|
|
|
|
+ if test -s conftest.err && $GREP single_module conftest.err; then
|
|
|
|
+ cat conftest.err >&AS_MESSAGE_LOG_FD
|
|
|
|
+ # Otherwise, if the output was created with a 0 exit code from
|
|
|
|
+ # the compiler, it worked.
|
|
|
|
+ elif test -f libconftest.dylib && test $_lt_result -eq 0; then
|
|
lt_cv_apple_cc_single_mod=yes
|
|
lt_cv_apple_cc_single_mod=yes
|
|
else
|
|
else
|
|
cat conftest.err >&AS_MESSAGE_LOG_FD
|
|
cat conftest.err >&AS_MESSAGE_LOG_FD
|
|
@@ -999,6 +1035,7 @@ m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
|
|
rm -rf libconftest.dylib*
|
|
rm -rf libconftest.dylib*
|
|
rm -f conftest.*
|
|
rm -f conftest.*
|
|
fi])
|
|
fi])
|
|
|
|
+
|
|
AC_CACHE_CHECK([for -exported_symbols_list linker flag],
|
|
AC_CACHE_CHECK([for -exported_symbols_list linker flag],
|
|
[lt_cv_ld_exported_symbols_list],
|
|
[lt_cv_ld_exported_symbols_list],
|
|
[lt_cv_ld_exported_symbols_list=no
|
|
[lt_cv_ld_exported_symbols_list=no
|
|
@@ -1010,6 +1047,7 @@ m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
|
|
[lt_cv_ld_exported_symbols_list=no])
|
|
[lt_cv_ld_exported_symbols_list=no])
|
|
LDFLAGS="$save_LDFLAGS"
|
|
LDFLAGS="$save_LDFLAGS"
|
|
])
|
|
])
|
|
|
|
+
|
|
AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
|
|
AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
|
|
[lt_cv_ld_force_load=no
|
|
[lt_cv_ld_force_load=no
|
|
cat > conftest.c << _LT_EOF
|
|
cat > conftest.c << _LT_EOF
|
|
@@ -1027,7 +1065,9 @@ _LT_EOF
|
|
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
|
|
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
|
|
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
|
|
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
|
|
_lt_result=$?
|
|
_lt_result=$?
|
|
- if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
|
|
+ if test -s conftest.err && $GREP force_load conftest.err; then
|
|
|
|
+ cat conftest.err >&AS_MESSAGE_LOG_FD
|
|
|
|
+ elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
|
|
lt_cv_ld_force_load=yes
|
|
lt_cv_ld_force_load=yes
|
|
else
|
|
else
|
|
cat conftest.err >&AS_MESSAGE_LOG_FD
|
|
cat conftest.err >&AS_MESSAGE_LOG_FD
|
|
@@ -1072,8 +1112,8 @@ _LT_EOF
|
|
])
|
|
])
|
|
|
|
|
|
|
|
|
|
-# _LT_DARWIN_LINKER_FEATURES
|
|
+# _LT_DARWIN_LINKER_FEATURES([TAG])
|
|
-# --------------------------
|
|
+# ---------------------------------
|
|
# Checks for linker and compiler features on darwin
|
|
# Checks for linker and compiler features on darwin
|
|
m4_defun([_LT_DARWIN_LINKER_FEATURES],
|
|
m4_defun([_LT_DARWIN_LINKER_FEATURES],
|
|
[
|
|
[
|
|
@@ -1084,6 +1124,8 @@ m4_defun([_LT_DARWIN_LINKER_FEATURES],
|
|
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
|
|
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
|
|
if test "$lt_cv_ld_force_load" = "yes"; then
|
|
if test "$lt_cv_ld_force_load" = "yes"; then
|
|
_LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
|
|
_LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
|
|
|
|
+ m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
|
|
|
|
+ [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
|
|
else
|
|
else
|
|
_LT_TAGVAR(whole_archive_flag_spec, $1)=''
|
|
_LT_TAGVAR(whole_archive_flag_spec, $1)=''
|
|
fi
|
|
fi
|
|
@@ -1367,14 +1409,27 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
|
|
CFLAGS="$SAVE_CFLAGS"
|
|
CFLAGS="$SAVE_CFLAGS"
|
|
fi
|
|
fi
|
|
;;
|
|
;;
|
|
-sparc*-*solaris*)
|
|
+*-*solaris*)
|
|
# 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
|
|
*64-bit*)
|
|
*64-bit*)
|
|
case $lt_cv_prog_gnu_ld in
|
|
case $lt_cv_prog_gnu_ld in
|
|
- yes*) LD="${LD-ld} -m elf64_sparc" ;;
|
|
+ yes*)
|
|
|
|
+ case $host in
|
|
|
|
+ i?86-*-solaris*)
|
|
|
|
+ LD="${LD-ld} -m elf_x86_64"
|
|
|
|
+ ;;
|
|
|
|
+ sparc*-*-solaris*)
|
|
|
|
+ LD="${LD-ld} -m elf64_sparc"
|
|
|
|
+ ;;
|
|
|
|
+ esac
|
|
|
|
+ # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
|
|
|
|
+ if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
|
|
|
|
+ LD="${LD-ld}_sol2"
|
|
|
|
+ fi
|
|
|
|
+ ;;
|
|
*)
|
|
*)
|
|
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
|
|
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
|
|
LD="${LD-ld} -64"
|
|
LD="${LD-ld} -64"
|
|
@@ -1451,13 +1506,13 @@ old_postuninstall_cmds=
|
|
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="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
|
|
;;
|
|
;;
|
|
*)
|
|
*)
|
|
- old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
|
|
+ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
|
|
;;
|
|
;;
|
|
esac
|
|
esac
|
|
- old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
|
|
+ old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
|
|
fi
|
|
fi
|
|
|
|
|
|
case $host_os in
|
|
case $host_os in
|
|
@@ -1637,6 +1692,11 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
|
|
lt_cv_sys_max_cmd_len=196608
|
|
lt_cv_sys_max_cmd_len=196608
|
|
;;
|
|
;;
|
|
|
|
|
|
|
|
+ os2*)
|
|
|
|
+ # The test takes a long time on OS/2.
|
|
|
|
+ lt_cv_sys_max_cmd_len=8192
|
|
|
|
+ ;;
|
|
|
|
+
|
|
osf*)
|
|
osf*)
|
|
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
|
|
# 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
|
|
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
|
|
@@ -1676,7 +1736,7 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
|
|
# 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.
|
|
- while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
|
|
+ while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
|
|
= "X$teststring$teststring"; } >/dev/null 2>&1 &&
|
|
= "X$teststring$teststring"; } >/dev/null 2>&1 &&
|
|
test $i != 17 # 1/2 MB should be enough
|
|
test $i != 17 # 1/2 MB should be enough
|
|
do
|
|
do
|
|
@@ -2222,7 +2282,7 @@ need_version=unknown
|
|
|
|
|
|
case $host_os in
|
|
case $host_os in
|
|
aix3*)
|
|
aix3*)
|
|
- version_type=linux
|
|
+ version_type=linux # correct to gnu/linux during the next big refactor
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
|
|
shlibpath_var=LIBPATH
|
|
shlibpath_var=LIBPATH
|
|
|
|
|
|
@@ -2231,7 +2291,7 @@ aix3*)
|
|
;;
|
|
;;
|
|
|
|
|
|
aix[[4-9]]*)
|
|
aix[[4-9]]*)
|
|
- version_type=linux
|
|
+ version_type=linux # correct to gnu/linux during the next big refactor
|
|
need_lib_prefix=no
|
|
need_lib_prefix=no
|
|
need_version=no
|
|
need_version=no
|
|
hardcode_into_libs=yes
|
|
hardcode_into_libs=yes
|
|
@@ -2296,7 +2356,7 @@ beos*)
|
|
;;
|
|
;;
|
|
|
|
|
|
bsdi[[45]]*)
|
|
bsdi[[45]]*)
|
|
- version_type=linux
|
|
+ version_type=linux # correct to gnu/linux during the next big refactor
|
|
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}'
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
|
@@ -2435,7 +2495,7 @@ m4_if([$1], [],[
|
|
;;
|
|
;;
|
|
|
|
|
|
dgux*)
|
|
dgux*)
|
|
- version_type=linux
|
|
+ version_type=linux # correct to gnu/linux during the next big refactor
|
|
need_lib_prefix=no
|
|
need_lib_prefix=no
|
|
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'
|
|
@@ -2443,10 +2503,6 @@ dgux*)
|
|
shlibpath_var=LD_LIBRARY_PATH
|
|
shlibpath_var=LD_LIBRARY_PATH
|
|
;;
|
|
;;
|
|
|
|
|
|
-freebsd1*)
|
|
|
|
- dynamic_linker=no
|
|
|
|
- ;;
|
|
|
|
-
|
|
|
|
freebsd* | dragonfly*)
|
|
freebsd* | dragonfly*)
|
|
# DragonFly does not have aout. When/if they implement a new
|
|
# DragonFly does not have aout. When/if they implement a new
|
|
# versioning mechanism, adjust this.
|
|
# versioning mechanism, adjust this.
|
|
@@ -2454,7 +2510,7 @@ freebsd* | dragonfly*)
|
|
objformat=`/usr/bin/objformat`
|
|
objformat=`/usr/bin/objformat`
|
|
else
|
|
else
|
|
case $host_os in
|
|
case $host_os in
|
|
- freebsd[[123]]*) objformat=aout ;;
|
|
+ freebsd[[23]].*) objformat=aout ;;
|
|
*) objformat=elf ;;
|
|
*) objformat=elf ;;
|
|
esac
|
|
esac
|
|
fi
|
|
fi
|
|
@@ -2472,7 +2528,7 @@ freebsd* | dragonfly*)
|
|
esac
|
|
esac
|
|
shlibpath_var=LD_LIBRARY_PATH
|
|
shlibpath_var=LD_LIBRARY_PATH
|
|
case $host_os in
|
|
case $host_os in
|
|
- freebsd2*)
|
|
+ freebsd2.*)
|
|
shlibpath_overrides_runpath=yes
|
|
shlibpath_overrides_runpath=yes
|
|
;;
|
|
;;
|
|
freebsd3.[[01]]* | freebsdelf3.[[01]]*)
|
|
freebsd3.[[01]]* | freebsdelf3.[[01]]*)
|
|
@@ -2492,17 +2548,18 @@ freebsd* | dragonfly*)
|
|
;;
|
|
;;
|
|
|
|
|
|
gnu*)
|
|
gnu*)
|
|
- version_type=linux
|
|
+ version_type=linux # correct to gnu/linux during the next big refactor
|
|
need_lib_prefix=no
|
|
need_lib_prefix=no
|
|
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}'
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
|
shlibpath_var=LD_LIBRARY_PATH
|
|
shlibpath_var=LD_LIBRARY_PATH
|
|
|
|
+ shlibpath_overrides_runpath=no
|
|
hardcode_into_libs=yes
|
|
hardcode_into_libs=yes
|
|
;;
|
|
;;
|
|
|
|
|
|
haiku*)
|
|
haiku*)
|
|
- version_type=linux
|
|
+ version_type=linux # correct to gnu/linux during the next big refactor
|
|
need_lib_prefix=no
|
|
need_lib_prefix=no
|
|
need_version=no
|
|
need_version=no
|
|
dynamic_linker="$host_os runtime_loader"
|
|
dynamic_linker="$host_os runtime_loader"
|
|
@@ -2563,7 +2620,7 @@ hpux9* | hpux10* | hpux11*)
|
|
;;
|
|
;;
|
|
|
|
|
|
interix[[3-9]]*)
|
|
interix[[3-9]]*)
|
|
- version_type=linux
|
|
+ version_type=linux # correct to gnu/linux during the next big refactor
|
|
need_lib_prefix=no
|
|
need_lib_prefix=no
|
|
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}'
|
|
@@ -2579,7 +2636,7 @@ irix5* | irix6* | nonstopux*)
|
|
nonstopux*) version_type=nonstopux ;;
|
|
nonstopux*) version_type=nonstopux ;;
|
|
*)
|
|
*)
|
|
if test "$lt_cv_prog_gnu_ld" = yes; then
|
|
if test "$lt_cv_prog_gnu_ld" = yes; then
|
|
- version_type=linux
|
|
+ version_type=linux # correct to gnu/linux during the next big refactor
|
|
else
|
|
else
|
|
version_type=irix
|
|
version_type=irix
|
|
fi ;;
|
|
fi ;;
|
|
@@ -2616,9 +2673,9 @@ linux*oldld* | linux*aout* | linux*coff*)
|
|
dynamic_linker=no
|
|
dynamic_linker=no
|
|
;;
|
|
;;
|
|
|
|
|
|
-# This must be Linux ELF.
|
|
+# This must be glibc/ELF.
|
|
linux* | k*bsd*-gnu | kopensolaris*-gnu)
|
|
linux* | k*bsd*-gnu | kopensolaris*-gnu)
|
|
- version_type=linux
|
|
+ version_type=linux # correct to gnu/linux during the next big refactor
|
|
need_lib_prefix=no
|
|
need_lib_prefix=no
|
|
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}'
|
|
@@ -2681,7 +2738,7 @@ netbsd*)
|
|
;;
|
|
;;
|
|
|
|
|
|
newsos6)
|
|
newsos6)
|
|
- version_type=linux
|
|
+ version_type=linux # correct to gnu/linux during the next big refactor
|
|
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}'
|
|
shlibpath_var=LD_LIBRARY_PATH
|
|
shlibpath_var=LD_LIBRARY_PATH
|
|
shlibpath_overrides_runpath=yes
|
|
shlibpath_overrides_runpath=yes
|
|
@@ -2750,7 +2807,7 @@ rdos*)
|
|
;;
|
|
;;
|
|
|
|
|
|
solaris*)
|
|
solaris*)
|
|
- version_type=linux
|
|
+ version_type=linux # correct to gnu/linux during the next big refactor
|
|
need_lib_prefix=no
|
|
need_lib_prefix=no
|
|
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}'
|
|
@@ -2775,7 +2832,7 @@ sunos4*)
|
|
;;
|
|
;;
|
|
|
|
|
|
sysv4 | sysv4.3*)
|
|
sysv4 | sysv4.3*)
|
|
- version_type=linux
|
|
+ version_type=linux # correct to gnu/linux during the next big refactor
|
|
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'
|
|
shlibpath_var=LD_LIBRARY_PATH
|
|
shlibpath_var=LD_LIBRARY_PATH
|
|
@@ -2799,7 +2856,7 @@ sysv4 | sysv4.3*)
|
|
|
|
|
|
sysv4*MP*)
|
|
sysv4*MP*)
|
|
if test -d /usr/nec ;then
|
|
if test -d /usr/nec ;then
|
|
- version_type=linux
|
|
+ version_type=linux # correct to gnu/linux during the next big refactor
|
|
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
|
|
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
|
|
soname_spec='$libname${shared_ext}.$major'
|
|
soname_spec='$libname${shared_ext}.$major'
|
|
shlibpath_var=LD_LIBRARY_PATH
|
|
shlibpath_var=LD_LIBRARY_PATH
|
|
@@ -2830,7 +2887,7 @@ sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
|
|
|
|
|
tpf*)
|
|
tpf*)
|
|
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
|
|
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
|
|
- version_type=linux
|
|
+ version_type=linux # correct to gnu/linux during the next big refactor
|
|
need_lib_prefix=no
|
|
need_lib_prefix=no
|
|
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}'
|
|
@@ -2840,7 +2897,7 @@ tpf*)
|
|
;;
|
|
;;
|
|
|
|
|
|
uts4*)
|
|
uts4*)
|
|
- version_type=linux
|
|
+ version_type=linux # correct to gnu/linux during the next big refactor
|
|
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'
|
|
shlibpath_var=LD_LIBRARY_PATH
|
|
shlibpath_var=LD_LIBRARY_PATH
|
|
@@ -3262,7 +3319,7 @@ irix5* | irix6* | nonstopux*)
|
|
lt_cv_deplibs_check_method=pass_all
|
|
lt_cv_deplibs_check_method=pass_all
|
|
;;
|
|
;;
|
|
|
|
|
|
-# This must be Linux ELF.
|
|
+# This must be glibc/ELF.
|
|
linux* | k*bsd*-gnu | kopensolaris*-gnu)
|
|
linux* | k*bsd*-gnu | kopensolaris*-gnu)
|
|
lt_cv_deplibs_check_method=pass_all
|
|
lt_cv_deplibs_check_method=pass_all
|
|
;;
|
|
;;
|
|
@@ -3682,6 +3739,7 @@ for ac_symprfx in "" "_"; do
|
|
# which start with @ or ?.
|
|
# which start with @ or ?.
|
|
lt_cv_sys_global_symbol_pipe="$AWK ['"\
|
|
lt_cv_sys_global_symbol_pipe="$AWK ['"\
|
|
" {last_section=section; section=\$ 3};"\
|
|
" {last_section=section; section=\$ 3};"\
|
|
|
|
+" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
|
|
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
|
|
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
|
|
" \$ 0!~/External *\|/{next};"\
|
|
" \$ 0!~/External *\|/{next};"\
|
|
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
|
|
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
|
|
@@ -4266,7 +4324,9 @@ m4_if([$1], [CXX], [
|
|
case $cc_basename in
|
|
case $cc_basename in
|
|
nvcc*) # Cuda Compiler Driver 2.2
|
|
nvcc*) # Cuda Compiler Driver 2.2
|
|
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
|
|
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
|
|
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC'
|
|
+ if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
|
|
|
|
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
|
|
|
|
+ fi
|
|
;;
|
|
;;
|
|
esac
|
|
esac
|
|
else
|
|
else
|
|
@@ -4358,18 +4418,33 @@ m4_if([$1], [CXX], [
|
|
;;
|
|
;;
|
|
*)
|
|
*)
|
|
case `$CC -V 2>&1 | sed 5q` in
|
|
case `$CC -V 2>&1 | sed 5q` in
|
|
- *Sun\ F* | *Sun*Fortran*)
|
|
+ *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
|
|
# Sun Fortran 8.3 passes all unrecognized flags to the linker
|
|
# Sun Fortran 8.3 passes all unrecognized flags to the linker
|
|
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
|
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
|
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
_LT_TAGVAR(lt_prog_compiler_wl, $1)=''
|
|
_LT_TAGVAR(lt_prog_compiler_wl, $1)=''
|
|
;;
|
|
;;
|
|
|
|
+ *Sun\ F* | *Sun*Fortran*)
|
|
|
|
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
|
|
|
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
|
|
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
|
|
|
|
+ ;;
|
|
*Sun\ C*)
|
|
*Sun\ C*)
|
|
# Sun C 5.9
|
|
# Sun C 5.9
|
|
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
|
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
|
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
;;
|
|
;;
|
|
|
|
+ *Intel*\ [[CF]]*Compiler*)
|
|
|
|
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
|
|
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
|
|
|
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
|
|
|
+ ;;
|
|
|
|
+ *Portland\ Group*)
|
|
|
|
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
|
|
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
|
|
|
|
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
|
|
+ ;;
|
|
esac
|
|
esac
|
|
;;
|
|
;;
|
|
esac
|
|
esac
|
|
@@ -4529,7 +4604,9 @@ m4_if([$1], [CXX], [
|
|
;;
|
|
;;
|
|
cygwin* | mingw* | cegcc*)
|
|
cygwin* | mingw* | cegcc*)
|
|
case $cc_basename in
|
|
case $cc_basename in
|
|
- cl*) ;;
|
|
+ cl*)
|
|
|
|
+ _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
|
|
|
|
+ ;;
|
|
*)
|
|
*)
|
|
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
|
|
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
|
|
_LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
|
|
_LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
|
|
@@ -4554,7 +4631,6 @@ m4_if([$1], [CXX], [
|
|
_LT_TAGVAR(hardcode_direct, $1)=no
|
|
_LT_TAGVAR(hardcode_direct, $1)=no
|
|
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
|
|
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
|
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
|
- _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
|
|
|
|
_LT_TAGVAR(hardcode_libdir_separator, $1)=
|
|
_LT_TAGVAR(hardcode_libdir_separator, $1)=
|
|
_LT_TAGVAR(hardcode_minus_L, $1)=no
|
|
_LT_TAGVAR(hardcode_minus_L, $1)=no
|
|
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
|
|
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
|
|
@@ -4805,8 +4881,7 @@ _LT_EOF
|
|
xlf* | bgf* | bgxlf* | mpixlf*)
|
|
xlf* | bgf* | bgxlf* | mpixlf*)
|
|
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
|
|
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
|
|
_LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
|
|
_LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
|
|
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
|
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
|
- _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
|
|
|
|
_LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
|
|
_LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
|
|
if test "x$supports_anon_versioning" = xyes; then
|
|
if test "x$supports_anon_versioning" = xyes; then
|
|
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
|
|
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
|
|
@@ -5101,6 +5176,7 @@ _LT_EOF
|
|
# The linker will not automatically build a static lib if we build a DLL.
|
|
# The linker will not automatically build a static lib if we build a DLL.
|
|
# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
|
|
# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
|
|
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
|
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
|
|
|
+ _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
|
|
_LT_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_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'
|
|
# Don't use ranlib
|
|
# Don't use ranlib
|
|
_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
|
|
_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
|
|
@@ -5147,10 +5223,6 @@ _LT_EOF
|
|
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
;;
|
|
;;
|
|
|
|
|
|
- freebsd1*)
|
|
|
|
- _LT_TAGVAR(ld_shlibs, $1)=no
|
|
|
|
- ;;
|
|
|
|
-
|
|
|
|
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
|
|
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
|
|
# support. Future versions do this automatically, but an explicit c++rt0.o
|
|
# support. Future versions do this automatically, but an explicit c++rt0.o
|
|
# does not break anything, and helps significantly (at the cost of a little
|
|
# does not break anything, and helps significantly (at the cost of a little
|
|
@@ -5163,7 +5235,7 @@ _LT_EOF
|
|
;;
|
|
;;
|
|
|
|
|
|
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
|
|
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
|
|
- freebsd2*)
|
|
+ freebsd2.*)
|
|
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
|
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
|
_LT_TAGVAR(hardcode_direct, $1)=yes
|
|
_LT_TAGVAR(hardcode_direct, $1)=yes
|
|
_LT_TAGVAR(hardcode_minus_L, $1)=yes
|
|
_LT_TAGVAR(hardcode_minus_L, $1)=yes
|
|
@@ -5202,7 +5274,6 @@ _LT_EOF
|
|
fi
|
|
fi
|
|
if test "$with_gnu_ld" = no; then
|
|
if test "$with_gnu_ld" = no; then
|
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
|
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
|
|
- _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
|
|
|
|
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
|
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
|
_LT_TAGVAR(hardcode_direct, $1)=yes
|
|
_LT_TAGVAR(hardcode_direct, $1)=yes
|
|
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
|
|
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
|
|
@@ -5644,9 +5715,6 @@ _LT_TAGDECL([], [no_undefined_flag], [1],
|
|
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
|
|
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
|
|
[Flag to hardcode $libdir into a binary during linking.
|
|
[Flag to hardcode $libdir into a binary during linking.
|
|
This must work even if $libdir does not exist])
|
|
This must work even if $libdir does not exist])
|
|
-_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
|
|
|
|
- [[If ld is used when linking, flag to hardcode $libdir into a binary
|
|
|
|
- during linking. This must work even if $libdir does not exist]])
|
|
|
|
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
|
|
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
|
|
[Whether we need a single "-rpath" flag with a separated argument])
|
|
[Whether we need a single "-rpath" flag with a separated argument])
|
|
_LT_TAGDECL([], [hardcode_direct], [0],
|
|
_LT_TAGDECL([], [hardcode_direct], [0],
|
|
@@ -5800,7 +5868,6 @@ _LT_TAGVAR(export_dynamic_flag_spec, $1)=
|
|
_LT_TAGVAR(hardcode_direct, $1)=no
|
|
_LT_TAGVAR(hardcode_direct, $1)=no
|
|
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
|
|
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
|
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
|
-_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
|
|
|
|
_LT_TAGVAR(hardcode_libdir_separator, $1)=
|
|
_LT_TAGVAR(hardcode_libdir_separator, $1)=
|
|
_LT_TAGVAR(hardcode_minus_L, $1)=no
|
|
_LT_TAGVAR(hardcode_minus_L, $1)=no
|
|
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
|
|
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
|
|
@@ -6170,7 +6237,7 @@ if test "$_lt_caught_CXX_error" != yes; then
|
|
esac
|
|
esac
|
|
;;
|
|
;;
|
|
|
|
|
|
- freebsd[[12]]*)
|
|
+ freebsd2.*)
|
|
# C++ shared libraries reported to be fairly broken before
|
|
# C++ shared libraries reported to be fairly broken before
|
|
# switch to ELF
|
|
# switch to ELF
|
|
_LT_TAGVAR(ld_shlibs, $1)=no
|
|
_LT_TAGVAR(ld_shlibs, $1)=no
|
|
@@ -6931,12 +6998,18 @@ public class foo {
|
|
}
|
|
}
|
|
};
|
|
};
|
|
_LT_EOF
|
|
_LT_EOF
|
|
|
|
+], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
|
|
|
|
+package foo
|
|
|
|
+func foo() {
|
|
|
|
+}
|
|
|
|
+_LT_EOF
|
|
])
|
|
])
|
|
|
|
|
|
_lt_libdeps_save_CFLAGS=$CFLAGS
|
|
_lt_libdeps_save_CFLAGS=$CFLAGS
|
|
case "$CC $CFLAGS " in #(
|
|
case "$CC $CFLAGS " in #(
|
|
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
|
|
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
|
|
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
|
|
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
|
|
|
|
+*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
|
|
esac
|
|
esac
|
|
|
|
|
|
dnl Parse the compiler output and extract the necessary
|
|
dnl Parse the compiler output and extract the necessary
|
|
@@ -7133,7 +7206,6 @@ _LT_TAGVAR(export_dynamic_flag_spec, $1)=
|
|
_LT_TAGVAR(hardcode_direct, $1)=no
|
|
_LT_TAGVAR(hardcode_direct, $1)=no
|
|
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
|
|
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
|
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
|
-_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
|
|
|
|
_LT_TAGVAR(hardcode_libdir_separator, $1)=
|
|
_LT_TAGVAR(hardcode_libdir_separator, $1)=
|
|
_LT_TAGVAR(hardcode_minus_L, $1)=no
|
|
_LT_TAGVAR(hardcode_minus_L, $1)=no
|
|
_LT_TAGVAR(hardcode_automatic, $1)=no
|
|
_LT_TAGVAR(hardcode_automatic, $1)=no
|
|
@@ -7266,7 +7338,6 @@ _LT_TAGVAR(export_dynamic_flag_spec, $1)=
|
|
_LT_TAGVAR(hardcode_direct, $1)=no
|
|
_LT_TAGVAR(hardcode_direct, $1)=no
|
|
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
|
|
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
|
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
|
-_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
|
|
|
|
_LT_TAGVAR(hardcode_libdir_separator, $1)=
|
|
_LT_TAGVAR(hardcode_libdir_separator, $1)=
|
|
_LT_TAGVAR(hardcode_minus_L, $1)=no
|
|
_LT_TAGVAR(hardcode_minus_L, $1)=no
|
|
_LT_TAGVAR(hardcode_automatic, $1)=no
|
|
_LT_TAGVAR(hardcode_automatic, $1)=no
|
|
@@ -7449,6 +7520,73 @@ CFLAGS=$lt_save_CFLAGS
|
|
])# _LT_LANG_GCJ_CONFIG
|
|
])# _LT_LANG_GCJ_CONFIG
|
|
|
|
|
|
|
|
|
|
|
|
+# _LT_LANG_GO_CONFIG([TAG])
|
|
|
|
+# --------------------------
|
|
|
|
+# Ensure that the configuration variables for the GNU Go compiler
|
|
|
|
+# are suitably defined. These variables are subsequently used by _LT_CONFIG
|
|
|
|
+# to write the compiler configuration to `libtool'.
|
|
|
|
+m4_defun([_LT_LANG_GO_CONFIG],
|
|
|
|
+[AC_REQUIRE([LT_PROG_GO])dnl
|
|
|
|
+AC_LANG_SAVE
|
|
|
|
+
|
|
|
|
+# Source file extension for Go test sources.
|
|
|
|
+ac_ext=go
|
|
|
|
+
|
|
|
|
+# Object file extension for compiled Go test sources.
|
|
|
|
+objext=o
|
|
|
|
+_LT_TAGVAR(objext, $1)=$objext
|
|
|
|
+
|
|
|
|
+# Code to be used in simple compile tests
|
|
|
|
+lt_simple_compile_test_code="package main; func main() { }"
|
|
|
|
+
|
|
|
|
+# Code to be used in simple link tests
|
|
|
|
+lt_simple_link_test_code='package main; func main() { }'
|
|
|
|
+
|
|
|
|
+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
|
|
|
+_LT_TAG_COMPILER
|
|
|
|
+
|
|
|
|
+# save warnings/boilerplate of simple test code
|
|
|
|
+_LT_COMPILER_BOILERPLATE
|
|
|
|
+_LT_LINKER_BOILERPLATE
|
|
|
|
+
|
|
|
|
+# Allow CC to be a program name with arguments.
|
|
|
|
+lt_save_CC=$CC
|
|
|
|
+lt_save_CFLAGS=$CFLAGS
|
|
|
|
+lt_save_GCC=$GCC
|
|
|
|
+GCC=yes
|
|
|
|
+CC=${GOC-"gccgo"}
|
|
|
|
+CFLAGS=$GOFLAGS
|
|
|
|
+compiler=$CC
|
|
|
|
+_LT_TAGVAR(compiler, $1)=$CC
|
|
|
|
+_LT_TAGVAR(LD, $1)="$LD"
|
|
|
|
+_LT_CC_BASENAME([$compiler])
|
|
|
|
+
|
|
|
|
+# Go did not exist at the time GCC didn't implicitly link libc in.
|
|
|
|
+_LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
|
|
|
+
|
|
|
|
+_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
|
|
|
|
+_LT_TAGVAR(reload_flag, $1)=$reload_flag
|
|
|
|
+_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
|
|
|
|
+
|
|
|
|
+if test -n "$compiler"; then
|
|
|
|
+ _LT_COMPILER_NO_RTTI($1)
|
|
|
|
+ _LT_COMPILER_PIC($1)
|
|
|
|
+ _LT_COMPILER_C_O($1)
|
|
|
|
+ _LT_COMPILER_FILE_LOCKS($1)
|
|
|
|
+ _LT_LINKER_SHLIBS($1)
|
|
|
|
+ _LT_LINKER_HARDCODE_LIBPATH($1)
|
|
|
|
+
|
|
|
|
+ _LT_CONFIG($1)
|
|
|
|
+fi
|
|
|
|
+
|
|
|
|
+AC_LANG_RESTORE
|
|
|
|
+
|
|
|
|
+GCC=$lt_save_GCC
|
|
|
|
+CC=$lt_save_CC
|
|
|
|
+CFLAGS=$lt_save_CFLAGS
|
|
|
|
+])# _LT_LANG_GO_CONFIG
|
|
|
|
+
|
|
|
|
+
|
|
# _LT_LANG_RC_CONFIG([TAG])
|
|
# _LT_LANG_RC_CONFIG([TAG])
|
|
# -------------------------
|
|
# -------------------------
|
|
# Ensure that the configuration variables for the Windows resource compiler
|
|
# Ensure that the configuration variables for the Windows resource compiler
|
|
@@ -7518,6 +7656,13 @@ dnl aclocal-1.4 backwards compatibility:
|
|
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
|
|
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
|
|
|
|
|
|
|
|
|
|
|
|
+# LT_PROG_GO
|
|
|
|
+# ----------
|
|
|
|
+AC_DEFUN([LT_PROG_GO],
|
|
|
|
+[AC_CHECK_TOOL(GOC, gccgo,)
|
|
|
|
+])
|
|
|
|
+
|
|
|
|
+
|
|
# LT_PROG_RC
|
|
# LT_PROG_RC
|
|
# ----------
|
|
# ----------
|
|
AC_DEFUN([LT_PROG_RC],
|
|
AC_DEFUN([LT_PROG_RC],
|
|
@@ -8182,9 +8327,24 @@ dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
|
|
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
|
|
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
|
|
m4_define([_LT_WITH_PIC],
|
|
m4_define([_LT_WITH_PIC],
|
|
[AC_ARG_WITH([pic],
|
|
[AC_ARG_WITH([pic],
|
|
- [AS_HELP_STRING([--with-pic],
|
|
+ [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
|
|
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
|
|
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
|
|
- [pic_mode="$withval"],
|
|
+ [lt_p=${PACKAGE-default}
|
|
|
|
+ case $withval in
|
|
|
|
+ yes|no) pic_mode=$withval ;;
|
|
|
|
+ *)
|
|
|
|
+ pic_mode=default
|
|
|
|
+ # Look at the argument we got. We use all the common list separators.
|
|
|
|
+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
|
|
|
+ for lt_pkg in $withval; do
|
|
|
|
+ IFS="$lt_save_ifs"
|
|
|
|
+ if test "X$lt_pkg" = "X$lt_p"; then
|
|
|
|
+ pic_mode=yes
|
|
|
|
+ fi
|
|
|
|
+ done
|
|
|
|
+ IFS="$lt_save_ifs"
|
|
|
|
+ ;;
|
|
|
|
+ esac],
|
|
[pic_mode=default])
|
|
[pic_mode=default])
|
|
|
|
|
|
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
|
|
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
|
|
@@ -8356,15 +8516,15 @@ m4_define([lt_dict_filter],
|
|
|
|
|
|
# @configure_input@
|
|
# @configure_input@
|
|
|
|
|
|
-# serial 3293 ltversion.m4
|
|
+# serial 3337 ltversion.m4
|
|
# This file is part of GNU Libtool
|
|
# This file is part of GNU Libtool
|
|
|
|
|
|
-m4_define([LT_PACKAGE_VERSION], [2.4])
|
|
+m4_define([LT_PACKAGE_VERSION], [2.4.2])
|
|
-m4_define([LT_PACKAGE_REVISION], [1.3293])
|
|
+m4_define([LT_PACKAGE_REVISION], [1.3337])
|
|
|
|
|
|
AC_DEFUN([LTVERSION_VERSION],
|
|
AC_DEFUN([LTVERSION_VERSION],
|
|
-[macro_version='2.4'
|
|
+[macro_version='2.4.2'
|
|
-macro_revision='1.3293'
|
|
+macro_revision='1.3337'
|
|
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
|
|
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
|
|
_LT_DECL(, macro_revision, 0)
|
|
_LT_DECL(, macro_revision, 0)
|
|
])
|
|
])
|
|
@@ -9433,3 +9593,4 @@ AC_SUBST([am__tar])
|
|
AC_SUBST([am__untar])
|
|
AC_SUBST([am__untar])
|
|
]) # _AM_PROG_TAR
|
|
]) # _AM_PROG_TAR
|
|
|
|
|
|
|
|
+
|