| 1 |
< |
# generated automatically by aclocal 1.11.1 -*- Autoconf -*- |
| 1 |
> |
# generated automatically by aclocal 1.13.3 -*- Autoconf -*- |
| 2 |
> |
|
| 3 |
> |
# Copyright (C) 1996-2013 Free Software Foundation, Inc. |
| 4 |
|
|
| 3 |
– |
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
| 4 |
– |
# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
| 5 |
|
# This file is free software; the Free Software Foundation |
| 6 |
|
# gives unlimited permission to copy and/or distribute it, |
| 7 |
|
# with or without modifications, as long as this notice is preserved. |
| 11 |
|
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
| 12 |
|
# PARTICULAR PURPOSE. |
| 13 |
|
|
| 14 |
+ |
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) |
| 15 |
|
m4_ifndef([AC_AUTOCONF_VERSION], |
| 16 |
|
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
| 17 |
< |
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.67],, |
| 18 |
< |
[m4_warning([this file was generated for autoconf 2.67. |
| 17 |
> |
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, |
| 18 |
> |
[m4_warning([this file was generated for autoconf 2.69. |
| 19 |
|
You have another version of autoconf. It may work, but is not guaranteed to. |
| 20 |
|
If you have problems, you may need to regenerate the build system entirely. |
| 21 |
< |
To do so, use the procedure documented by the package, typically `autoreconf'.])]) |
| 21 |
> |
To do so, use the procedure documented by the package, typically 'autoreconf'.])]) |
| 22 |
|
|
| 23 |
|
# Portability macros for glibc argz. -*- Autoconf -*- |
| 24 |
|
# |
| 88 |
|
;; #( |
| 89 |
|
*) lt_cv_sys_argz_works=yes ;; |
| 90 |
|
esac]]) |
| 91 |
< |
AS_IF([test $lt_cv_sys_argz_works = yes], |
| 91 |
> |
AS_IF([test "$lt_cv_sys_argz_works" = yes], |
| 92 |
|
[AC_DEFINE([HAVE_WORKING_ARGZ], 1, |
| 93 |
|
[This value is set to 1 to indicate that the system argz facility works])], |
| 94 |
|
[ARGZ_H=argz.h |
| 103 |
|
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- |
| 104 |
|
# |
| 105 |
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
| 106 |
< |
# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, |
| 107 |
< |
# Inc. |
| 106 |
> |
# 2006, 2007, 2008, 2009, 2010, 2011 Free Software |
| 107 |
> |
# Foundation, Inc. |
| 108 |
|
# Written by Gordon Matzigkeit, 1996 |
| 109 |
|
# |
| 110 |
|
# This file is free software; the Free Software Foundation gives |
| 113 |
|
|
| 114 |
|
m4_define([_LT_COPYING], [dnl |
| 115 |
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
| 116 |
< |
# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, |
| 117 |
< |
# Inc. |
| 116 |
> |
# 2006, 2007, 2008, 2009, 2010, 2011 Free Software |
| 117 |
> |
# Foundation, Inc. |
| 118 |
|
# Written by Gordon Matzigkeit, 1996 |
| 119 |
|
# |
| 120 |
|
# This file is part of GNU Libtool. |
| 248 |
|
AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl |
| 249 |
|
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl |
| 250 |
|
|
| 251 |
+ |
_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl |
| 252 |
+ |
dnl |
| 253 |
|
_LT_DECL([], [host_alias], [0], [The host system])dnl |
| 254 |
|
_LT_DECL([], [host], [0])dnl |
| 255 |
|
_LT_DECL([], [host_os], [0])dnl |
| 272 |
|
dnl |
| 273 |
|
m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
| 274 |
|
m4_require([_LT_CHECK_SHELL_FEATURES])dnl |
| 275 |
+ |
m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl |
| 276 |
|
m4_require([_LT_CMD_RELOAD])dnl |
| 277 |
|
m4_require([_LT_CHECK_MAGIC_METHOD])dnl |
| 278 |
+ |
m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl |
| 279 |
|
m4_require([_LT_CMD_OLD_ARCHIVE])dnl |
| 280 |
|
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl |
| 281 |
+ |
m4_require([_LT_WITH_SYSROOT])dnl |
| 282 |
|
|
| 283 |
|
_LT_CONFIG_LIBTOOL_INIT([ |
| 284 |
|
# See if we are running on zsh, and set the options which allow our |
| 735 |
|
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) |
| 736 |
|
configured by $[0], generated by m4_PACKAGE_STRING. |
| 737 |
|
|
| 738 |
< |
Copyright (C) 2010 Free Software Foundation, Inc. |
| 738 |
> |
Copyright (C) 2011 Free Software Foundation, Inc. |
| 739 |
|
This config.lt script is free software; the Free Software Foundation |
| 740 |
|
gives unlimited permision to copy, distribute and modify it." |
| 741 |
|
|
| 849 |
|
# if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 850 |
|
# text mode, it properly converts lines to CR/LF. This bash problem |
| 851 |
|
# is reportedly fixed, but why not run on old versions too? |
| 852 |
< |
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ |
| 853 |
< |
|| (rm -f "$cfgfile"; exit 1) |
| 852 |
> |
sed '$q' "$ltmain" >> "$cfgfile" \ |
| 853 |
> |
|| (rm -f "$cfgfile"; exit 1) |
| 854 |
|
|
| 855 |
< |
_LT_PROG_XSI_SHELLFNS |
| 855 |
> |
_LT_PROG_REPLACE_SHELLFNS |
| 856 |
|
|
| 857 |
< |
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ |
| 852 |
< |
|| (rm -f "$cfgfile"; exit 1) |
| 853 |
< |
|
| 854 |
< |
mv -f "$cfgfile" "$ofile" || |
| 857 |
> |
mv -f "$cfgfile" "$ofile" || |
| 858 |
|
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 859 |
|
chmod +x "$ofile" |
| 860 |
|
], |
| 899 |
|
m4_case([$1], |
| 900 |
|
[C], [_LT_LANG(C)], |
| 901 |
|
[C++], [_LT_LANG(CXX)], |
| 902 |
+ |
[Go], [_LT_LANG(GO)], |
| 903 |
|
[Java], [_LT_LANG(GCJ)], |
| 904 |
|
[Fortran 77], [_LT_LANG(F77)], |
| 905 |
|
[Fortran], [_LT_LANG(FC)], |
| 921 |
|
])# _LT_LANG |
| 922 |
|
|
| 923 |
|
|
| 924 |
+ |
m4_ifndef([AC_PROG_GO], [ |
| 925 |
+ |
# NOTE: This macro has been submitted for inclusion into # |
| 926 |
+ |
# GNU Autoconf as AC_PROG_GO. When it is available in # |
| 927 |
+ |
# a released version of Autoconf we should remove this # |
| 928 |
+ |
# macro and use it instead. # |
| 929 |
+ |
m4_defun([AC_PROG_GO], |
| 930 |
+ |
[AC_LANG_PUSH(Go)dnl |
| 931 |
+ |
AC_ARG_VAR([GOC], [Go compiler command])dnl |
| 932 |
+ |
AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl |
| 933 |
+ |
_AC_ARG_VAR_LDFLAGS()dnl |
| 934 |
+ |
AC_CHECK_TOOL(GOC, gccgo) |
| 935 |
+ |
if test -z "$GOC"; then |
| 936 |
+ |
if test -n "$ac_tool_prefix"; then |
| 937 |
+ |
AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo]) |
| 938 |
+ |
fi |
| 939 |
+ |
fi |
| 940 |
+ |
if test -z "$GOC"; then |
| 941 |
+ |
AC_CHECK_PROG(GOC, gccgo, gccgo, false) |
| 942 |
+ |
fi |
| 943 |
+ |
])#m4_defun |
| 944 |
+ |
])#m4_ifndef |
| 945 |
+ |
|
| 946 |
+ |
|
| 947 |
|
# _LT_LANG_DEFAULT_CONFIG |
| 948 |
|
# ----------------------- |
| 949 |
|
m4_defun([_LT_LANG_DEFAULT_CONFIG], |
| 974 |
|
m4_ifdef([LT_PROG_GCJ], |
| 975 |
|
[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) |
| 976 |
|
|
| 977 |
+ |
AC_PROVIDE_IFELSE([AC_PROG_GO], |
| 978 |
+ |
[LT_LANG(GO)], |
| 979 |
+ |
[m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])]) |
| 980 |
+ |
|
| 981 |
|
AC_PROVIDE_IFELSE([LT_PROG_RC], |
| 982 |
|
[LT_LANG(RC)], |
| 983 |
|
[m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) |
| 1080 |
|
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 1081 |
|
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
| 1082 |
|
_lt_result=$? |
| 1083 |
< |
if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then |
| 1083 |
> |
# If there is a non-empty error log, and "single_module" |
| 1084 |
> |
# appears in it, assume the flag caused a linker warning |
| 1085 |
> |
if test -s conftest.err && $GREP single_module conftest.err; then |
| 1086 |
> |
cat conftest.err >&AS_MESSAGE_LOG_FD |
| 1087 |
> |
# Otherwise, if the output was created with a 0 exit code from |
| 1088 |
> |
# the compiler, it worked. |
| 1089 |
> |
elif test -f libconftest.dylib && test $_lt_result -eq 0; then |
| 1090 |
|
lt_cv_apple_cc_single_mod=yes |
| 1091 |
|
else |
| 1092 |
|
cat conftest.err >&AS_MESSAGE_LOG_FD |
| 1094 |
|
rm -rf libconftest.dylib* |
| 1095 |
|
rm -f conftest.* |
| 1096 |
|
fi]) |
| 1097 |
+ |
|
| 1098 |
|
AC_CACHE_CHECK([for -exported_symbols_list linker flag], |
| 1099 |
|
[lt_cv_ld_exported_symbols_list], |
| 1100 |
|
[lt_cv_ld_exported_symbols_list=no |
| 1106 |
|
[lt_cv_ld_exported_symbols_list=no]) |
| 1107 |
|
LDFLAGS="$save_LDFLAGS" |
| 1108 |
|
]) |
| 1109 |
+ |
|
| 1110 |
|
AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], |
| 1111 |
|
[lt_cv_ld_force_load=no |
| 1112 |
|
cat > conftest.c << _LT_EOF |
| 1124 |
|
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD |
| 1125 |
|
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
| 1126 |
|
_lt_result=$? |
| 1127 |
< |
if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then |
| 1127 |
> |
if test -s conftest.err && $GREP force_load conftest.err; then |
| 1128 |
> |
cat conftest.err >&AS_MESSAGE_LOG_FD |
| 1129 |
> |
elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then |
| 1130 |
|
lt_cv_ld_force_load=yes |
| 1131 |
|
else |
| 1132 |
|
cat conftest.err >&AS_MESSAGE_LOG_FD |
| 1171 |
|
]) |
| 1172 |
|
|
| 1173 |
|
|
| 1174 |
< |
# _LT_DARWIN_LINKER_FEATURES |
| 1175 |
< |
# -------------------------- |
| 1174 |
> |
# _LT_DARWIN_LINKER_FEATURES([TAG]) |
| 1175 |
> |
# --------------------------------- |
| 1176 |
|
# Checks for linker and compiler features on darwin |
| 1177 |
|
m4_defun([_LT_DARWIN_LINKER_FEATURES], |
| 1178 |
|
[ |
| 1183 |
|
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
| 1184 |
|
if test "$lt_cv_ld_force_load" = "yes"; then |
| 1185 |
|
_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\"`' |
| 1186 |
+ |
m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], |
| 1187 |
+ |
[FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) |
| 1188 |
|
else |
| 1189 |
|
_LT_TAGVAR(whole_archive_flag_spec, $1)='' |
| 1190 |
|
fi |
| 1211 |
|
fi |
| 1212 |
|
]) |
| 1213 |
|
|
| 1214 |
< |
# _LT_SYS_MODULE_PATH_AIX |
| 1215 |
< |
# ----------------------- |
| 1214 |
> |
# _LT_SYS_MODULE_PATH_AIX([TAGNAME]) |
| 1215 |
> |
# ---------------------------------- |
| 1216 |
|
# Links a minimal program and checks the executable |
| 1217 |
|
# for the system default hardcoded library path. In most cases, |
| 1218 |
|
# this is /usr/lib:/lib, but when the MPI compilers are used |
| 1219 |
|
# the location of the communication and MPI libs are included too. |
| 1220 |
|
# If we don't find anything, use the default library path according |
| 1221 |
|
# to the aix ld manual. |
| 1222 |
+ |
# Store the results from the different compilers for each TAGNAME. |
| 1223 |
+ |
# Allow to override them for all tags through lt_cv_aix_libpath. |
| 1224 |
|
m4_defun([_LT_SYS_MODULE_PATH_AIX], |
| 1225 |
|
[m4_require([_LT_DECL_SED])dnl |
| 1226 |
< |
AC_LINK_IFELSE(AC_LANG_PROGRAM,[ |
| 1227 |
< |
lt_aix_libpath_sed=' |
| 1228 |
< |
/Import File Strings/,/^$/ { |
| 1229 |
< |
/^0/ { |
| 1230 |
< |
s/^0 *\(.*\)$/\1/ |
| 1231 |
< |
p |
| 1232 |
< |
} |
| 1233 |
< |
}' |
| 1234 |
< |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 1235 |
< |
# Check for a 64-bit object if we didn't find anything. |
| 1236 |
< |
if test -z "$aix_libpath"; then |
| 1237 |
< |
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 1238 |
< |
fi],[]) |
| 1239 |
< |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 1226 |
> |
if test "${lt_cv_aix_libpath+set}" = set; then |
| 1227 |
> |
aix_libpath=$lt_cv_aix_libpath |
| 1228 |
> |
else |
| 1229 |
> |
AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], |
| 1230 |
> |
[AC_LINK_IFELSE([AC_LANG_PROGRAM],[ |
| 1231 |
> |
lt_aix_libpath_sed='[ |
| 1232 |
> |
/Import File Strings/,/^$/ { |
| 1233 |
> |
/^0/ { |
| 1234 |
> |
s/^0 *\([^ ]*\) *$/\1/ |
| 1235 |
> |
p |
| 1236 |
> |
} |
| 1237 |
> |
}]' |
| 1238 |
> |
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 1239 |
> |
# Check for a 64-bit object if we didn't find anything. |
| 1240 |
> |
if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then |
| 1241 |
> |
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 1242 |
> |
fi],[]) |
| 1243 |
> |
if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then |
| 1244 |
> |
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib" |
| 1245 |
> |
fi |
| 1246 |
> |
]) |
| 1247 |
> |
aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) |
| 1248 |
> |
fi |
| 1249 |
|
])# _LT_SYS_MODULE_PATH_AIX |
| 1250 |
|
|
| 1251 |
|
|
| 1270 |
|
|
| 1271 |
|
AC_MSG_CHECKING([how to print strings]) |
| 1272 |
|
# Test print first, because it will be a builtin if present. |
| 1273 |
< |
if test "X`print -r -- -n 2>/dev/null`" = X-n && \ |
| 1273 |
> |
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ |
| 1274 |
|
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 1275 |
|
ECHO='print -r --' |
| 1276 |
|
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 1314 |
|
])# _LT_PROG_ECHO_BACKSLASH |
| 1315 |
|
|
| 1316 |
|
|
| 1317 |
+ |
# _LT_WITH_SYSROOT |
| 1318 |
+ |
# ---------------- |
| 1319 |
+ |
AC_DEFUN([_LT_WITH_SYSROOT], |
| 1320 |
+ |
[AC_MSG_CHECKING([for sysroot]) |
| 1321 |
+ |
AC_ARG_WITH([sysroot], |
| 1322 |
+ |
[ --with-sysroot[=DIR] Search for dependent libraries within DIR |
| 1323 |
+ |
(or the compiler's sysroot if not specified).], |
| 1324 |
+ |
[], [with_sysroot=no]) |
| 1325 |
+ |
|
| 1326 |
+ |
dnl lt_sysroot will always be passed unquoted. We quote it here |
| 1327 |
+ |
dnl in case the user passed a directory name. |
| 1328 |
+ |
lt_sysroot= |
| 1329 |
+ |
case ${with_sysroot} in #( |
| 1330 |
+ |
yes) |
| 1331 |
+ |
if test "$GCC" = yes; then |
| 1332 |
+ |
lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
| 1333 |
+ |
fi |
| 1334 |
+ |
;; #( |
| 1335 |
+ |
/*) |
| 1336 |
+ |
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` |
| 1337 |
+ |
;; #( |
| 1338 |
+ |
no|'') |
| 1339 |
+ |
;; #( |
| 1340 |
+ |
*) |
| 1341 |
+ |
AC_MSG_RESULT([${with_sysroot}]) |
| 1342 |
+ |
AC_MSG_ERROR([The sysroot must be an absolute path.]) |
| 1343 |
+ |
;; |
| 1344 |
+ |
esac |
| 1345 |
+ |
|
| 1346 |
+ |
AC_MSG_RESULT([${lt_sysroot:-no}]) |
| 1347 |
+ |
_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl |
| 1348 |
+ |
[dependent libraries, and in which our libraries should be installed.])]) |
| 1349 |
+ |
|
| 1350 |
|
# _LT_ENABLE_LOCK |
| 1351 |
|
# --------------- |
| 1352 |
|
m4_defun([_LT_ENABLE_LOCK], |
| 1468 |
|
CFLAGS="$SAVE_CFLAGS" |
| 1469 |
|
fi |
| 1470 |
|
;; |
| 1471 |
< |
sparc*-*solaris*) |
| 1471 |
> |
*-*solaris*) |
| 1472 |
|
# Find out which ABI we are using. |
| 1473 |
|
echo 'int i;' > conftest.$ac_ext |
| 1474 |
|
if AC_TRY_EVAL(ac_compile); then |
| 1475 |
|
case `/usr/bin/file conftest.o` in |
| 1476 |
|
*64-bit*) |
| 1477 |
|
case $lt_cv_prog_gnu_ld in |
| 1478 |
< |
yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| 1478 |
> |
yes*) |
| 1479 |
> |
case $host in |
| 1480 |
> |
i?86-*-solaris*) |
| 1481 |
> |
LD="${LD-ld} -m elf_x86_64" |
| 1482 |
> |
;; |
| 1483 |
> |
sparc*-*-solaris*) |
| 1484 |
> |
LD="${LD-ld} -m elf64_sparc" |
| 1485 |
> |
;; |
| 1486 |
> |
esac |
| 1487 |
> |
# GNU ld 2.21 introduced _sol2 emulations. Use them if available. |
| 1488 |
> |
if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then |
| 1489 |
> |
LD="${LD-ld}_sol2" |
| 1490 |
> |
fi |
| 1491 |
> |
;; |
| 1492 |
|
*) |
| 1493 |
|
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
| 1494 |
|
LD="${LD-ld} -64" |
| 1506 |
|
])# _LT_ENABLE_LOCK |
| 1507 |
|
|
| 1508 |
|
|
| 1509 |
+ |
# _LT_PROG_AR |
| 1510 |
+ |
# ----------- |
| 1511 |
+ |
m4_defun([_LT_PROG_AR], |
| 1512 |
+ |
[AC_CHECK_TOOLS(AR, [ar], false) |
| 1513 |
+ |
: ${AR=ar} |
| 1514 |
+ |
: ${AR_FLAGS=cru} |
| 1515 |
+ |
_LT_DECL([], [AR], [1], [The archiver]) |
| 1516 |
+ |
_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) |
| 1517 |
+ |
|
| 1518 |
+ |
AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], |
| 1519 |
+ |
[lt_cv_ar_at_file=no |
| 1520 |
+ |
AC_COMPILE_IFELSE([AC_LANG_PROGRAM], |
| 1521 |
+ |
[echo conftest.$ac_objext > conftest.lst |
| 1522 |
+ |
lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' |
| 1523 |
+ |
AC_TRY_EVAL([lt_ar_try]) |
| 1524 |
+ |
if test "$ac_status" -eq 0; then |
| 1525 |
+ |
# Ensure the archiver fails upon bogus file names. |
| 1526 |
+ |
rm -f conftest.$ac_objext libconftest.a |
| 1527 |
+ |
AC_TRY_EVAL([lt_ar_try]) |
| 1528 |
+ |
if test "$ac_status" -ne 0; then |
| 1529 |
+ |
lt_cv_ar_at_file=@ |
| 1530 |
+ |
fi |
| 1531 |
+ |
fi |
| 1532 |
+ |
rm -f conftest.* libconftest.a |
| 1533 |
+ |
]) |
| 1534 |
+ |
]) |
| 1535 |
+ |
|
| 1536 |
+ |
if test "x$lt_cv_ar_at_file" = xno; then |
| 1537 |
+ |
archiver_list_spec= |
| 1538 |
+ |
else |
| 1539 |
+ |
archiver_list_spec=$lt_cv_ar_at_file |
| 1540 |
+ |
fi |
| 1541 |
+ |
_LT_DECL([], [archiver_list_spec], [1], |
| 1542 |
+ |
[How to feed a file listing to the archiver]) |
| 1543 |
+ |
])# _LT_PROG_AR |
| 1544 |
+ |
|
| 1545 |
+ |
|
| 1546 |
|
# _LT_CMD_OLD_ARCHIVE |
| 1547 |
|
# ------------------- |
| 1548 |
|
m4_defun([_LT_CMD_OLD_ARCHIVE], |
| 1549 |
< |
[AC_CHECK_TOOL(AR, ar, false) |
| 1413 |
< |
test -z "$AR" && AR=ar |
| 1414 |
< |
test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 1415 |
< |
_LT_DECL([], [AR], [1], [The archiver]) |
| 1416 |
< |
_LT_DECL([], [AR_FLAGS], [1]) |
| 1549 |
> |
[_LT_PROG_AR |
| 1550 |
|
|
| 1551 |
|
AC_CHECK_TOOL(STRIP, strip, :) |
| 1552 |
|
test -z "$STRIP" && STRIP=: |
| 1565 |
|
if test -n "$RANLIB"; then |
| 1566 |
|
case $host_os in |
| 1567 |
|
openbsd*) |
| 1568 |
< |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
| 1568 |
> |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
| 1569 |
|
;; |
| 1570 |
|
*) |
| 1571 |
< |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
| 1571 |
> |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
| 1572 |
|
;; |
| 1573 |
|
esac |
| 1574 |
< |
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 1574 |
> |
old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
| 1575 |
|
fi |
| 1576 |
|
|
| 1577 |
|
case $host_os in |
| 1751 |
|
lt_cv_sys_max_cmd_len=196608 |
| 1752 |
|
;; |
| 1753 |
|
|
| 1754 |
+ |
os2*) |
| 1755 |
+ |
# The test takes a long time on OS/2. |
| 1756 |
+ |
lt_cv_sys_max_cmd_len=8192 |
| 1757 |
+ |
;; |
| 1758 |
+ |
|
| 1759 |
|
osf*) |
| 1760 |
|
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 1761 |
|
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 1795 |
|
# If test is not a shell built-in, we'll probably end up computing a |
| 1796 |
|
# maximum length that is only half of the actual maximum length, but |
| 1797 |
|
# we can't tell. |
| 1798 |
< |
while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ |
| 1798 |
> |
while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ |
| 1799 |
|
= "X$teststring$teststring"; } >/dev/null 2>&1 && |
| 1800 |
|
test $i != 17 # 1/2 MB should be enough |
| 1801 |
|
do |
| 1891 |
|
/* When -fvisbility=hidden is used, assume the code has been annotated |
| 1892 |
|
correspondingly for the symbols needed. */ |
| 1893 |
|
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 1894 |
< |
void fnord () __attribute__((visibility("default"))); |
| 1894 |
> |
int fnord () __attribute__((visibility("default"))); |
| 1895 |
|
#endif |
| 1896 |
|
|
| 1897 |
< |
void fnord () { int i=42; } |
| 1897 |
> |
int fnord () { return 42; } |
| 1898 |
|
int main () |
| 1899 |
|
{ |
| 1900 |
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 2341 |
|
|
| 2342 |
|
case $host_os in |
| 2343 |
|
aix3*) |
| 2344 |
< |
version_type=linux |
| 2344 |
> |
version_type=linux # correct to gnu/linux during the next big refactor |
| 2345 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 2346 |
|
shlibpath_var=LIBPATH |
| 2347 |
|
|
| 2350 |
|
;; |
| 2351 |
|
|
| 2352 |
|
aix[[4-9]]*) |
| 2353 |
< |
version_type=linux |
| 2353 |
> |
version_type=linux # correct to gnu/linux during the next big refactor |
| 2354 |
|
need_lib_prefix=no |
| 2355 |
|
need_version=no |
| 2356 |
|
hardcode_into_libs=yes |
| 2415 |
|
;; |
| 2416 |
|
|
| 2417 |
|
bsdi[[45]]*) |
| 2418 |
< |
version_type=linux |
| 2418 |
> |
version_type=linux # correct to gnu/linux during the next big refactor |
| 2419 |
|
need_version=no |
| 2420 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 2421 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
| 2434 |
|
need_version=no |
| 2435 |
|
need_lib_prefix=no |
| 2436 |
|
|
| 2437 |
< |
case $GCC,$host_os in |
| 2438 |
< |
yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) |
| 2437 |
> |
case $GCC,$cc_basename in |
| 2438 |
> |
yes,*) |
| 2439 |
> |
# gcc |
| 2440 |
|
library_names_spec='$libname.dll.a' |
| 2441 |
|
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 2442 |
|
postinstall_cmds='base_file=`basename \${file}`~ |
| 2469 |
|
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
| 2470 |
|
;; |
| 2471 |
|
esac |
| 2472 |
+ |
dynamic_linker='Win32 ld.exe' |
| 2473 |
+ |
;; |
| 2474 |
+ |
|
| 2475 |
+ |
*,cl*) |
| 2476 |
+ |
# Native MSVC |
| 2477 |
+ |
libname_spec='$name' |
| 2478 |
+ |
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
| 2479 |
+ |
library_names_spec='${libname}.dll.lib' |
| 2480 |
+ |
|
| 2481 |
+ |
case $build_os in |
| 2482 |
+ |
mingw*) |
| 2483 |
+ |
sys_lib_search_path_spec= |
| 2484 |
+ |
lt_save_ifs=$IFS |
| 2485 |
+ |
IFS=';' |
| 2486 |
+ |
for lt_path in $LIB |
| 2487 |
+ |
do |
| 2488 |
+ |
IFS=$lt_save_ifs |
| 2489 |
+ |
# Let DOS variable expansion print the short 8.3 style file name. |
| 2490 |
+ |
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
| 2491 |
+ |
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
| 2492 |
+ |
done |
| 2493 |
+ |
IFS=$lt_save_ifs |
| 2494 |
+ |
# Convert to MSYS style. |
| 2495 |
+ |
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` |
| 2496 |
+ |
;; |
| 2497 |
+ |
cygwin*) |
| 2498 |
+ |
# Convert to unix form, then to dos form, then back to unix form |
| 2499 |
+ |
# but this time dos style (no spaces!) so that the unix form looks |
| 2500 |
+ |
# like /cygdrive/c/PROGRA~1:/cygdr... |
| 2501 |
+ |
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
| 2502 |
+ |
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
| 2503 |
+ |
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 2504 |
+ |
;; |
| 2505 |
+ |
*) |
| 2506 |
+ |
sys_lib_search_path_spec="$LIB" |
| 2507 |
+ |
if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then |
| 2508 |
+ |
# It is most probably a Windows format PATH. |
| 2509 |
+ |
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 2510 |
+ |
else |
| 2511 |
+ |
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 2512 |
+ |
fi |
| 2513 |
+ |
# FIXME: find the short name or the path components, as spaces are |
| 2514 |
+ |
# common. (e.g. "Program Files" -> "PROGRA~1") |
| 2515 |
+ |
;; |
| 2516 |
+ |
esac |
| 2517 |
+ |
|
| 2518 |
+ |
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 2519 |
+ |
postinstall_cmds='base_file=`basename \${file}`~ |
| 2520 |
+ |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 2521 |
+ |
dldir=$destdir/`dirname \$dlpath`~ |
| 2522 |
+ |
test -d \$dldir || mkdir -p \$dldir~ |
| 2523 |
+ |
$install_prog $dir/$dlname \$dldir/$dlname' |
| 2524 |
+ |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 2525 |
+ |
dlpath=$dir/\$dldll~ |
| 2526 |
+ |
$RM \$dlpath' |
| 2527 |
+ |
shlibpath_overrides_runpath=yes |
| 2528 |
+ |
dynamic_linker='Win32 link.exe' |
| 2529 |
|
;; |
| 2530 |
|
|
| 2531 |
|
*) |
| 2532 |
+ |
# Assume MSVC wrapper |
| 2533 |
|
library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 2534 |
+ |
dynamic_linker='Win32 ld.exe' |
| 2535 |
|
;; |
| 2536 |
|
esac |
| 2339 |
– |
dynamic_linker='Win32 ld.exe' |
| 2537 |
|
# FIXME: first we should search . and the directory the executable is in |
| 2538 |
|
shlibpath_var=PATH |
| 2539 |
|
;; |
| 2554 |
|
;; |
| 2555 |
|
|
| 2556 |
|
dgux*) |
| 2557 |
< |
version_type=linux |
| 2557 |
> |
version_type=linux # correct to gnu/linux during the next big refactor |
| 2558 |
|
need_lib_prefix=no |
| 2559 |
|
need_version=no |
| 2560 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 2562 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 2563 |
|
;; |
| 2564 |
|
|
| 2368 |
– |
freebsd1*) |
| 2369 |
– |
dynamic_linker=no |
| 2370 |
– |
;; |
| 2371 |
– |
|
| 2565 |
|
freebsd* | dragonfly*) |
| 2566 |
|
# DragonFly does not have aout. When/if they implement a new |
| 2567 |
|
# versioning mechanism, adjust this. |
| 2569 |
|
objformat=`/usr/bin/objformat` |
| 2570 |
|
else |
| 2571 |
|
case $host_os in |
| 2572 |
< |
freebsd[[123]]*) objformat=aout ;; |
| 2572 |
> |
freebsd[[23]].*) objformat=aout ;; |
| 2573 |
|
*) objformat=elf ;; |
| 2574 |
|
esac |
| 2575 |
|
fi |
| 2587 |
|
esac |
| 2588 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 2589 |
|
case $host_os in |
| 2590 |
< |
freebsd2*) |
| 2590 |
> |
freebsd2.*) |
| 2591 |
|
shlibpath_overrides_runpath=yes |
| 2592 |
|
;; |
| 2593 |
|
freebsd3.[[01]]* | freebsdelf3.[[01]]*) |
| 2607 |
|
;; |
| 2608 |
|
|
| 2609 |
|
gnu*) |
| 2610 |
< |
version_type=linux |
| 2610 |
> |
version_type=linux # correct to gnu/linux during the next big refactor |
| 2611 |
|
need_lib_prefix=no |
| 2612 |
|
need_version=no |
| 2613 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 2614 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
| 2615 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 2616 |
+ |
shlibpath_overrides_runpath=no |
| 2617 |
|
hardcode_into_libs=yes |
| 2618 |
|
;; |
| 2619 |
|
|
| 2620 |
|
haiku*) |
| 2621 |
< |
version_type=linux |
| 2621 |
> |
version_type=linux # correct to gnu/linux during the next big refactor |
| 2622 |
|
need_lib_prefix=no |
| 2623 |
|
need_version=no |
| 2624 |
|
dynamic_linker="$host_os runtime_loader" |
| 2679 |
|
;; |
| 2680 |
|
|
| 2681 |
|
interix[[3-9]]*) |
| 2682 |
< |
version_type=linux |
| 2682 |
> |
version_type=linux # correct to gnu/linux during the next big refactor |
| 2683 |
|
need_lib_prefix=no |
| 2684 |
|
need_version=no |
| 2685 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 2695 |
|
nonstopux*) version_type=nonstopux ;; |
| 2696 |
|
*) |
| 2697 |
|
if test "$lt_cv_prog_gnu_ld" = yes; then |
| 2698 |
< |
version_type=linux |
| 2698 |
> |
version_type=linux # correct to gnu/linux during the next big refactor |
| 2699 |
|
else |
| 2700 |
|
version_type=irix |
| 2701 |
|
fi ;; |
| 2732 |
|
dynamic_linker=no |
| 2733 |
|
;; |
| 2734 |
|
|
| 2735 |
< |
# This must be Linux ELF. |
| 2735 |
> |
# This must be glibc/ELF. |
| 2736 |
|
linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 2737 |
< |
version_type=linux |
| 2737 |
> |
version_type=linux # correct to gnu/linux during the next big refactor |
| 2738 |
|
need_lib_prefix=no |
| 2739 |
|
need_version=no |
| 2740 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 2797 |
|
;; |
| 2798 |
|
|
| 2799 |
|
newsos6) |
| 2800 |
< |
version_type=linux |
| 2800 |
> |
version_type=linux # correct to gnu/linux during the next big refactor |
| 2801 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 2802 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 2803 |
|
shlibpath_overrides_runpath=yes |
| 2866 |
|
;; |
| 2867 |
|
|
| 2868 |
|
solaris*) |
| 2869 |
< |
version_type=linux |
| 2869 |
> |
version_type=linux # correct to gnu/linux during the next big refactor |
| 2870 |
|
need_lib_prefix=no |
| 2871 |
|
need_version=no |
| 2872 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 2891 |
|
;; |
| 2892 |
|
|
| 2893 |
|
sysv4 | sysv4.3*) |
| 2894 |
< |
version_type=linux |
| 2894 |
> |
version_type=linux # correct to gnu/linux during the next big refactor |
| 2895 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 2896 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
| 2897 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 2915 |
|
|
| 2916 |
|
sysv4*MP*) |
| 2917 |
|
if test -d /usr/nec ;then |
| 2918 |
< |
version_type=linux |
| 2918 |
> |
version_type=linux # correct to gnu/linux during the next big refactor |
| 2919 |
|
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 2920 |
|
soname_spec='$libname${shared_ext}.$major' |
| 2921 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 2946 |
|
|
| 2947 |
|
tpf*) |
| 2948 |
|
# TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 2949 |
< |
version_type=linux |
| 2949 |
> |
version_type=linux # correct to gnu/linux during the next big refactor |
| 2950 |
|
need_lib_prefix=no |
| 2951 |
|
need_version=no |
| 2952 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 2956 |
|
;; |
| 2957 |
|
|
| 2958 |
|
uts4*) |
| 2959 |
< |
version_type=linux |
| 2959 |
> |
version_type=linux # correct to gnu/linux during the next big refactor |
| 2960 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 2961 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
| 2962 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 3234 |
|
esac |
| 3235 |
|
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 3236 |
|
case $host_os in |
| 3237 |
+ |
cygwin* | mingw* | pw32* | cegcc*) |
| 3238 |
+ |
if test "$GCC" != yes; then |
| 3239 |
+ |
reload_cmds=false |
| 3240 |
+ |
fi |
| 3241 |
+ |
;; |
| 3242 |
|
darwin*) |
| 3243 |
|
if test "$GCC" = yes; then |
| 3244 |
|
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 3378 |
|
lt_cv_deplibs_check_method=pass_all |
| 3379 |
|
;; |
| 3380 |
|
|
| 3381 |
< |
# This must be Linux ELF. |
| 3381 |
> |
# This must be glibc/ELF. |
| 3382 |
|
linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 3383 |
|
lt_cv_deplibs_check_method=pass_all |
| 3384 |
|
;; |
| 3457 |
|
;; |
| 3458 |
|
esac |
| 3459 |
|
]) |
| 3460 |
+ |
|
| 3461 |
+ |
file_magic_glob= |
| 3462 |
+ |
want_nocaseglob=no |
| 3463 |
+ |
if test "$build" = "$host"; then |
| 3464 |
+ |
case $host_os in |
| 3465 |
+ |
mingw* | pw32*) |
| 3466 |
+ |
if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then |
| 3467 |
+ |
want_nocaseglob=yes |
| 3468 |
+ |
else |
| 3469 |
+ |
file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` |
| 3470 |
+ |
fi |
| 3471 |
+ |
;; |
| 3472 |
+ |
esac |
| 3473 |
+ |
fi |
| 3474 |
+ |
|
| 3475 |
|
file_magic_cmd=$lt_cv_file_magic_cmd |
| 3476 |
|
deplibs_check_method=$lt_cv_deplibs_check_method |
| 3477 |
|
test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 3479 |
|
_LT_DECL([], [deplibs_check_method], [1], |
| 3480 |
|
[Method to check whether dependent libraries are shared objects]) |
| 3481 |
|
_LT_DECL([], [file_magic_cmd], [1], |
| 3482 |
< |
[Command to use when deplibs_check_method == "file_magic"]) |
| 3482 |
> |
[Command to use when deplibs_check_method = "file_magic"]) |
| 3483 |
> |
_LT_DECL([], [file_magic_glob], [1], |
| 3484 |
> |
[How to find potential files when deplibs_check_method = "file_magic"]) |
| 3485 |
> |
_LT_DECL([], [want_nocaseglob], [1], |
| 3486 |
> |
[Find potential files using nocaseglob when deplibs_check_method = "file_magic"]) |
| 3487 |
|
])# _LT_CHECK_MAGIC_METHOD |
| 3488 |
|
|
| 3489 |
|
|
| 3586 |
|
dnl AC_DEFUN([AM_PROG_NM], []) |
| 3587 |
|
dnl AC_DEFUN([AC_PROG_NM], []) |
| 3588 |
|
|
| 3589 |
+ |
# _LT_CHECK_SHAREDLIB_FROM_LINKLIB |
| 3590 |
+ |
# -------------------------------- |
| 3591 |
+ |
# how to determine the name of the shared library |
| 3592 |
+ |
# associated with a specific link library. |
| 3593 |
+ |
# -- PORTME fill in with the dynamic library characteristics |
| 3594 |
+ |
m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], |
| 3595 |
+ |
[m4_require([_LT_DECL_EGREP]) |
| 3596 |
+ |
m4_require([_LT_DECL_OBJDUMP]) |
| 3597 |
+ |
m4_require([_LT_DECL_DLLTOOL]) |
| 3598 |
+ |
AC_CACHE_CHECK([how to associate runtime and link libraries], |
| 3599 |
+ |
lt_cv_sharedlib_from_linklib_cmd, |
| 3600 |
+ |
[lt_cv_sharedlib_from_linklib_cmd='unknown' |
| 3601 |
+ |
|
| 3602 |
+ |
case $host_os in |
| 3603 |
+ |
cygwin* | mingw* | pw32* | cegcc*) |
| 3604 |
+ |
# two different shell functions defined in ltmain.sh |
| 3605 |
+ |
# decide which to use based on capabilities of $DLLTOOL |
| 3606 |
+ |
case `$DLLTOOL --help 2>&1` in |
| 3607 |
+ |
*--identify-strict*) |
| 3608 |
+ |
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib |
| 3609 |
+ |
;; |
| 3610 |
+ |
*) |
| 3611 |
+ |
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback |
| 3612 |
+ |
;; |
| 3613 |
+ |
esac |
| 3614 |
+ |
;; |
| 3615 |
+ |
*) |
| 3616 |
+ |
# fallback: assume linklib IS sharedlib |
| 3617 |
+ |
lt_cv_sharedlib_from_linklib_cmd="$ECHO" |
| 3618 |
+ |
;; |
| 3619 |
+ |
esac |
| 3620 |
+ |
]) |
| 3621 |
+ |
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd |
| 3622 |
+ |
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO |
| 3623 |
+ |
|
| 3624 |
+ |
_LT_DECL([], [sharedlib_from_linklib_cmd], [1], |
| 3625 |
+ |
[Command to associate shared and link libraries]) |
| 3626 |
+ |
])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB |
| 3627 |
+ |
|
| 3628 |
+ |
|
| 3629 |
+ |
# _LT_PATH_MANIFEST_TOOL |
| 3630 |
+ |
# ---------------------- |
| 3631 |
+ |
# locate the manifest tool |
| 3632 |
+ |
m4_defun([_LT_PATH_MANIFEST_TOOL], |
| 3633 |
+ |
[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) |
| 3634 |
+ |
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
| 3635 |
+ |
AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool], |
| 3636 |
+ |
[lt_cv_path_mainfest_tool=no |
| 3637 |
+ |
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD |
| 3638 |
+ |
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out |
| 3639 |
+ |
cat conftest.err >&AS_MESSAGE_LOG_FD |
| 3640 |
+ |
if $GREP 'Manifest Tool' conftest.out > /dev/null; then |
| 3641 |
+ |
lt_cv_path_mainfest_tool=yes |
| 3642 |
+ |
fi |
| 3643 |
+ |
rm -f conftest*]) |
| 3644 |
+ |
if test "x$lt_cv_path_mainfest_tool" != xyes; then |
| 3645 |
+ |
MANIFEST_TOOL=: |
| 3646 |
+ |
fi |
| 3647 |
+ |
_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl |
| 3648 |
+ |
])# _LT_PATH_MANIFEST_TOOL |
| 3649 |
+ |
|
| 3650 |
|
|
| 3651 |
|
# LT_LIB_M |
| 3652 |
|
# -------- |
| 3773 |
|
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 3774 |
|
|
| 3775 |
|
# Transform an extracted symbol line into symbol name and symbol address |
| 3776 |
< |
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" |
| 3777 |
< |
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'" |
| 3776 |
> |
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" |
| 3777 |
> |
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'" |
| 3778 |
|
|
| 3779 |
|
# Handle CRLF in mingw tool chain |
| 3780 |
|
opt_cr= |
| 3798 |
|
# which start with @ or ?. |
| 3799 |
|
lt_cv_sys_global_symbol_pipe="$AWK ['"\ |
| 3800 |
|
" {last_section=section; section=\$ 3};"\ |
| 3801 |
+ |
" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
| 3802 |
|
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
| 3803 |
|
" \$ 0!~/External *\|/{next};"\ |
| 3804 |
|
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
| 3811 |
|
else |
| 3812 |
|
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 3813 |
|
fi |
| 3814 |
+ |
lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
| 3815 |
|
|
| 3816 |
|
# Check to see that the pipe works correctly. |
| 3817 |
|
pipe_works=no |
| 3845 |
|
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
| 3846 |
|
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
| 3847 |
|
cat <<_LT_EOF > conftest.$ac_ext |
| 3848 |
+ |
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
| 3849 |
+ |
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) |
| 3850 |
+ |
/* DATA imports from DLLs on WIN32 con't be const, because runtime |
| 3851 |
+ |
relocations are performed -- see ld's documentation on pseudo-relocs. */ |
| 3852 |
+ |
# define LT@&t@_DLSYM_CONST |
| 3853 |
+ |
#elif defined(__osf__) |
| 3854 |
+ |
/* This system does not cope well with relocations in const data. */ |
| 3855 |
+ |
# define LT@&t@_DLSYM_CONST |
| 3856 |
+ |
#else |
| 3857 |
+ |
# define LT@&t@_DLSYM_CONST const |
| 3858 |
+ |
#endif |
| 3859 |
+ |
|
| 3860 |
|
#ifdef __cplusplus |
| 3861 |
|
extern "C" { |
| 3862 |
|
#endif |
| 3868 |
|
cat <<_LT_EOF >> conftest.$ac_ext |
| 3869 |
|
|
| 3870 |
|
/* The mapping between symbol names and symbols. */ |
| 3871 |
< |
const struct { |
| 3871 |
> |
LT@&t@_DLSYM_CONST struct { |
| 3872 |
|
const char *name; |
| 3873 |
|
void *address; |
| 3874 |
|
} |
| 3894 |
|
_LT_EOF |
| 3895 |
|
# Now try linking the two files. |
| 3896 |
|
mv conftest.$ac_objext conftstm.$ac_objext |
| 3897 |
< |
lt_save_LIBS="$LIBS" |
| 3898 |
< |
lt_save_CFLAGS="$CFLAGS" |
| 3897 |
> |
lt_globsym_save_LIBS=$LIBS |
| 3898 |
> |
lt_globsym_save_CFLAGS=$CFLAGS |
| 3899 |
|
LIBS="conftstm.$ac_objext" |
| 3900 |
|
CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" |
| 3901 |
|
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then |
| 3902 |
|
pipe_works=yes |
| 3903 |
|
fi |
| 3904 |
< |
LIBS="$lt_save_LIBS" |
| 3905 |
< |
CFLAGS="$lt_save_CFLAGS" |
| 3904 |
> |
LIBS=$lt_globsym_save_LIBS |
| 3905 |
> |
CFLAGS=$lt_globsym_save_CFLAGS |
| 3906 |
|
else |
| 3907 |
|
echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD |
| 3908 |
|
fi |
| 3935 |
|
AC_MSG_RESULT(ok) |
| 3936 |
|
fi |
| 3937 |
|
|
| 3938 |
+ |
# Response file support. |
| 3939 |
+ |
if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 3940 |
+ |
nm_file_list_spec='@' |
| 3941 |
+ |
elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then |
| 3942 |
+ |
nm_file_list_spec='@' |
| 3943 |
+ |
fi |
| 3944 |
+ |
|
| 3945 |
|
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], |
| 3946 |
|
[Take the output of nm and produce a listing of raw symbols and C names]) |
| 3947 |
|
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], |
| 3952 |
|
_LT_DECL([global_symbol_to_c_name_address_lib_prefix], |
| 3953 |
|
[lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], |
| 3954 |
|
[Transform the output of nm in a C name address pair when lib prefix is needed]) |
| 3955 |
+ |
_LT_DECL([], [nm_file_list_spec], [1], |
| 3956 |
+ |
[Specify filename containing input files for $NM]) |
| 3957 |
|
]) # _LT_CMD_GLOBAL_SYMBOLS |
| 3958 |
|
|
| 3959 |
|
|
| 3965 |
|
_LT_TAGVAR(lt_prog_compiler_pic, $1)= |
| 3966 |
|
_LT_TAGVAR(lt_prog_compiler_static, $1)= |
| 3967 |
|
|
| 3666 |
– |
AC_MSG_CHECKING([for $compiler option to produce PIC]) |
| 3968 |
|
m4_if([$1], [CXX], [ |
| 3969 |
|
# C++ specific cases for pic, static, wl, etc. |
| 3970 |
|
if test "$GXX" = yes; then |
| 4069 |
|
;; |
| 4070 |
|
esac |
| 4071 |
|
;; |
| 4072 |
+ |
mingw* | cygwin* | os2* | pw32* | cegcc*) |
| 4073 |
+ |
# This hack is so that the source file can tell whether it is being |
| 4074 |
+ |
# built for inclusion in a dll (and should export symbols for example). |
| 4075 |
+ |
m4_if([$1], [GCJ], [], |
| 4076 |
+ |
[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) |
| 4077 |
+ |
;; |
| 4078 |
|
dgux*) |
| 4079 |
|
case $cc_basename in |
| 4080 |
|
ec++*) |
| 4383 |
|
case $cc_basename in |
| 4384 |
|
nvcc*) # Cuda Compiler Driver 2.2 |
| 4385 |
|
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' |
| 4386 |
< |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC' |
| 4386 |
> |
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then |
| 4387 |
> |
_LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)" |
| 4388 |
> |
fi |
| 4389 |
|
;; |
| 4390 |
|
esac |
| 4391 |
|
else |
| 4451 |
|
_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' |
| 4452 |
|
_LT_TAGVAR(lt_prog_compiler_static, $1)='--static' |
| 4453 |
|
;; |
| 4454 |
+ |
nagfor*) |
| 4455 |
+ |
# NAG Fortran compiler |
| 4456 |
+ |
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' |
| 4457 |
+ |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' |
| 4458 |
+ |
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 4459 |
+ |
;; |
| 4460 |
|
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
| 4461 |
|
# Portland Group compilers (*not* the Pentium gcc compiler, |
| 4462 |
|
# which looks to be a dead project) |
| 4477 |
|
;; |
| 4478 |
|
*) |
| 4479 |
|
case `$CC -V 2>&1 | sed 5q` in |
| 4480 |
< |
*Sun\ F* | *Sun*Fortran*) |
| 4480 |
> |
*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*) |
| 4481 |
|
# Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 4482 |
|
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 4483 |
|
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 4484 |
|
_LT_TAGVAR(lt_prog_compiler_wl, $1)='' |
| 4485 |
|
;; |
| 4486 |
+ |
*Sun\ F* | *Sun*Fortran*) |
| 4487 |
+ |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 4488 |
+ |
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 4489 |
+ |
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
| 4490 |
+ |
;; |
| 4491 |
|
*Sun\ C*) |
| 4492 |
|
# Sun C 5.9 |
| 4493 |
|
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 4494 |
|
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 4495 |
|
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 4496 |
|
;; |
| 4497 |
+ |
*Intel*\ [[CF]]*Compiler*) |
| 4498 |
+ |
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 4499 |
+ |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
| 4500 |
+ |
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static' |
| 4501 |
+ |
;; |
| 4502 |
+ |
*Portland\ Group*) |
| 4503 |
+ |
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 4504 |
+ |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' |
| 4505 |
+ |
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 4506 |
+ |
;; |
| 4507 |
|
esac |
| 4508 |
|
;; |
| 4509 |
|
esac |
| 4591 |
|
_LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" |
| 4592 |
|
;; |
| 4593 |
|
esac |
| 4594 |
< |
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) |
| 4595 |
< |
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], |
| 4596 |
< |
[How to pass a linker flag through the compiler]) |
| 4594 |
> |
|
| 4595 |
> |
AC_CACHE_CHECK([for $compiler option to produce PIC], |
| 4596 |
> |
[_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], |
| 4597 |
> |
[_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) |
| 4598 |
> |
_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) |
| 4599 |
|
|
| 4600 |
|
# |
| 4601 |
|
# Check to make sure the PIC flag actually works. |
| 4614 |
|
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], |
| 4615 |
|
[Additional compiler flags for building library objects]) |
| 4616 |
|
|
| 4617 |
+ |
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], |
| 4618 |
+ |
[How to pass a linker flag through the compiler]) |
| 4619 |
|
# |
| 4620 |
|
# Check to make sure the static flag actually works. |
| 4621 |
|
# |
| 4636 |
|
m4_defun([_LT_LINKER_SHLIBS], |
| 4637 |
|
[AC_REQUIRE([LT_PATH_LD])dnl |
| 4638 |
|
AC_REQUIRE([LT_PATH_NM])dnl |
| 4639 |
+ |
m4_require([_LT_PATH_MANIFEST_TOOL])dnl |
| 4640 |
|
m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
| 4641 |
|
m4_require([_LT_DECL_EGREP])dnl |
| 4642 |
|
m4_require([_LT_DECL_SED])dnl |
| 4645 |
|
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) |
| 4646 |
|
m4_if([$1], [CXX], [ |
| 4647 |
|
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 4648 |
+ |
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] |
| 4649 |
|
case $host_os in |
| 4650 |
|
aix[[4-9]]*) |
| 4651 |
|
# If we're using GNU nm, then we don't want the "-C" option. |
| 4660 |
|
;; |
| 4661 |
|
pw32*) |
| 4662 |
|
_LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" |
| 4663 |
< |
;; |
| 4663 |
> |
;; |
| 4664 |
|
cygwin* | mingw* | cegcc*) |
| 4665 |
< |
_LT_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' |
| 4666 |
< |
;; |
| 4665 |
> |
case $cc_basename in |
| 4666 |
> |
cl*) |
| 4667 |
> |
_LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
| 4668 |
> |
;; |
| 4669 |
> |
*) |
| 4670 |
> |
_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' |
| 4671 |
> |
_LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] |
| 4672 |
> |
;; |
| 4673 |
> |
esac |
| 4674 |
> |
;; |
| 4675 |
|
*) |
| 4676 |
|
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 4677 |
< |
;; |
| 4677 |
> |
;; |
| 4678 |
|
esac |
| 4335 |
– |
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] |
| 4679 |
|
], [ |
| 4680 |
|
runpath_var= |
| 4681 |
|
_LT_TAGVAR(allow_undefined_flag, $1)= |
| 4690 |
|
_LT_TAGVAR(hardcode_direct, $1)=no |
| 4691 |
|
_LT_TAGVAR(hardcode_direct_absolute, $1)=no |
| 4692 |
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
| 4350 |
– |
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= |
| 4693 |
|
_LT_TAGVAR(hardcode_libdir_separator, $1)= |
| 4694 |
|
_LT_TAGVAR(hardcode_minus_L, $1)=no |
| 4695 |
|
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
| 4842 |
|
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 4843 |
|
_LT_TAGVAR(always_export_symbols, $1)=no |
| 4844 |
|
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
| 4845 |
< |
_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' |
| 4845 |
> |
_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' |
| 4846 |
> |
_LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] |
| 4847 |
|
|
| 4848 |
|
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 4849 |
|
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 4891 |
|
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
| 4892 |
|
&& test "$tmp_diet" = no |
| 4893 |
|
then |
| 4894 |
< |
tmp_addflag= |
| 4894 |
> |
tmp_addflag=' $pic_flag' |
| 4895 |
|
tmp_sharedflag='-shared' |
| 4896 |
|
case $cc_basename,$host_cpu in |
| 4897 |
|
pgcc*) # Portland Group C compiler |
| 4940 |
|
xlf* | bgf* | bgxlf* | mpixlf*) |
| 4941 |
|
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
| 4942 |
|
_LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' |
| 4943 |
< |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
| 4601 |
< |
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' |
| 4943 |
> |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 4944 |
|
_LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
| 4945 |
|
if test "x$supports_anon_versioning" = xyes; then |
| 4946 |
|
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ |
| 4960 |
|
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 4961 |
|
wlarc= |
| 4962 |
|
else |
| 4963 |
< |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 4964 |
< |
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 4963 |
> |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 4964 |
> |
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 4965 |
|
fi |
| 4966 |
|
;; |
| 4967 |
|
|
| 4979 |
|
|
| 4980 |
|
_LT_EOF |
| 4981 |
|
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 4982 |
< |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 4983 |
< |
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 4982 |
> |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 4983 |
> |
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 4984 |
|
else |
| 4985 |
|
_LT_TAGVAR(ld_shlibs, $1)=no |
| 4986 |
|
fi |
| 5026 |
|
|
| 5027 |
|
*) |
| 5028 |
|
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 5029 |
< |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 5030 |
< |
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 5029 |
> |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 5030 |
> |
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 5031 |
|
else |
| 5032 |
|
_LT_TAGVAR(ld_shlibs, $1)=no |
| 5033 |
|
fi |
| 5157 |
|
_LT_TAGVAR(allow_undefined_flag, $1)='-berok' |
| 5158 |
|
# Determine the default libpath from the value encoded in an |
| 5159 |
|
# empty executable. |
| 5160 |
< |
_LT_SYS_MODULE_PATH_AIX |
| 5160 |
> |
_LT_SYS_MODULE_PATH_AIX([$1]) |
| 5161 |
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 5162 |
|
_LT_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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 5163 |
|
else |
| 5168 |
|
else |
| 5169 |
|
# Determine the default libpath from the value encoded in an |
| 5170 |
|
# empty executable. |
| 5171 |
< |
_LT_SYS_MODULE_PATH_AIX |
| 5171 |
> |
_LT_SYS_MODULE_PATH_AIX([$1]) |
| 5172 |
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 5173 |
|
# Warning - without using the other run time loading flags, |
| 5174 |
|
# -berok will link without error, but may produce a broken library. |
| 5212 |
|
# Microsoft Visual C++. |
| 5213 |
|
# hardcode_libdir_flag_spec is actually meaningless, as there is |
| 5214 |
|
# no search path for DLLs. |
| 5215 |
< |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' |
| 5216 |
< |
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 5217 |
< |
# Tell ltmain to make .lib files, not .a files. |
| 5218 |
< |
libext=lib |
| 5219 |
< |
# Tell ltmain to make .dll files, not .so files. |
| 5220 |
< |
shrext_cmds=".dll" |
| 5221 |
< |
# FIXME: Setting linknames here is a bad hack. |
| 5222 |
< |
_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 5223 |
< |
# The linker will automatically build a .lib file if we build a DLL. |
| 5224 |
< |
_LT_TAGVAR(old_archive_from_new_cmds, $1)='true' |
| 5225 |
< |
# FIXME: Should let the user specify the lib program. |
| 5226 |
< |
_LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' |
| 5227 |
< |
_LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' |
| 5228 |
< |
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
| 5215 |
> |
case $cc_basename in |
| 5216 |
> |
cl*) |
| 5217 |
> |
# Native MSVC |
| 5218 |
> |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' |
| 5219 |
> |
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 5220 |
> |
_LT_TAGVAR(always_export_symbols, $1)=yes |
| 5221 |
> |
_LT_TAGVAR(file_list_spec, $1)='@' |
| 5222 |
> |
# Tell ltmain to make .lib files, not .a files. |
| 5223 |
> |
libext=lib |
| 5224 |
> |
# Tell ltmain to make .dll files, not .so files. |
| 5225 |
> |
shrext_cmds=".dll" |
| 5226 |
> |
# FIXME: Setting linknames here is a bad hack. |
| 5227 |
> |
_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' |
| 5228 |
> |
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 5229 |
> |
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; |
| 5230 |
> |
else |
| 5231 |
> |
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; |
| 5232 |
> |
fi~ |
| 5233 |
> |
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
| 5234 |
> |
linknames=' |
| 5235 |
> |
# The linker will not automatically build a static lib if we build a DLL. |
| 5236 |
> |
# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' |
| 5237 |
> |
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
| 5238 |
> |
_LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
| 5239 |
> |
_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' |
| 5240 |
> |
# Don't use ranlib |
| 5241 |
> |
_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' |
| 5242 |
> |
_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ |
| 5243 |
> |
lt_tool_outputfile="@TOOL_OUTPUT@"~ |
| 5244 |
> |
case $lt_outputfile in |
| 5245 |
> |
*.exe|*.EXE) ;; |
| 5246 |
> |
*) |
| 5247 |
> |
lt_outputfile="$lt_outputfile.exe" |
| 5248 |
> |
lt_tool_outputfile="$lt_tool_outputfile.exe" |
| 5249 |
> |
;; |
| 5250 |
> |
esac~ |
| 5251 |
> |
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then |
| 5252 |
> |
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
| 5253 |
> |
$RM "$lt_outputfile.manifest"; |
| 5254 |
> |
fi' |
| 5255 |
> |
;; |
| 5256 |
> |
*) |
| 5257 |
> |
# Assume MSVC wrapper |
| 5258 |
> |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' |
| 5259 |
> |
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 5260 |
> |
# Tell ltmain to make .lib files, not .a files. |
| 5261 |
> |
libext=lib |
| 5262 |
> |
# Tell ltmain to make .dll files, not .so files. |
| 5263 |
> |
shrext_cmds=".dll" |
| 5264 |
> |
# FIXME: Setting linknames here is a bad hack. |
| 5265 |
> |
_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 5266 |
> |
# The linker will automatically build a .lib file if we build a DLL. |
| 5267 |
> |
_LT_TAGVAR(old_archive_from_new_cmds, $1)='true' |
| 5268 |
> |
# FIXME: Should let the user specify the lib program. |
| 5269 |
> |
_LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' |
| 5270 |
> |
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
| 5271 |
> |
;; |
| 5272 |
> |
esac |
| 5273 |
|
;; |
| 5274 |
|
|
| 5275 |
|
darwin* | rhapsody*) |
| 5282 |
|
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 5283 |
|
;; |
| 5284 |
|
|
| 4899 |
– |
freebsd1*) |
| 4900 |
– |
_LT_TAGVAR(ld_shlibs, $1)=no |
| 4901 |
– |
;; |
| 4902 |
– |
|
| 5285 |
|
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 5286 |
|
# support. Future versions do this automatically, but an explicit c++rt0.o |
| 5287 |
|
# does not break anything, and helps significantly (at the cost of a little |
| 5294 |
|
;; |
| 5295 |
|
|
| 5296 |
|
# Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 5297 |
< |
freebsd2*) |
| 5297 |
> |
freebsd2.*) |
| 5298 |
|
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 5299 |
|
_LT_TAGVAR(hardcode_direct, $1)=yes |
| 5300 |
|
_LT_TAGVAR(hardcode_minus_L, $1)=yes |
| 5303 |
|
|
| 5304 |
|
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 5305 |
|
freebsd* | dragonfly*) |
| 5306 |
< |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 5306 |
> |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 5307 |
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 5308 |
|
_LT_TAGVAR(hardcode_direct, $1)=yes |
| 5309 |
|
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 5311 |
|
|
| 5312 |
|
hpux9*) |
| 5313 |
|
if test "$GCC" = yes; then |
| 5314 |
< |
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 5314 |
> |
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 5315 |
|
else |
| 5316 |
|
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 5317 |
|
fi |
| 5327 |
|
|
| 5328 |
|
hpux10*) |
| 5329 |
|
if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
| 5330 |
< |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 5330 |
> |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 5331 |
|
else |
| 5332 |
|
_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 5333 |
|
fi |
| 5334 |
|
if test "$with_gnu_ld" = no; then |
| 5335 |
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
| 4954 |
– |
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' |
| 5336 |
|
_LT_TAGVAR(hardcode_libdir_separator, $1)=: |
| 5337 |
|
_LT_TAGVAR(hardcode_direct, $1)=yes |
| 5338 |
|
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes |
| 5350 |
|
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 5351 |
|
;; |
| 5352 |
|
ia64*) |
| 5353 |
< |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 5353 |
> |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 5354 |
|
;; |
| 5355 |
|
*) |
| 5356 |
< |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 5356 |
> |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 5357 |
|
;; |
| 5358 |
|
esac |
| 5359 |
|
else |
| 5400 |
|
|
| 5401 |
|
irix5* | irix6* | nonstopux*) |
| 5402 |
|
if test "$GCC" = yes; then |
| 5403 |
< |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 5403 |
> |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 5404 |
|
# Try to use the -exported_symbol ld option, if it does not |
| 5405 |
|
# work, assume that -exports_file does not work either and |
| 5406 |
|
# implicitly export all symbols. |
| 5407 |
< |
save_LDFLAGS="$LDFLAGS" |
| 5408 |
< |
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
| 5409 |
< |
AC_LINK_IFELSE(int foo(void) {}, |
| 5410 |
< |
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' |
| 5411 |
< |
) |
| 5412 |
< |
LDFLAGS="$save_LDFLAGS" |
| 5407 |
> |
# This should be the same for all languages, so no per-tag cache variable. |
| 5408 |
> |
AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], |
| 5409 |
> |
[lt_cv_irix_exported_symbol], |
| 5410 |
> |
[save_LDFLAGS="$LDFLAGS" |
| 5411 |
> |
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
| 5412 |
> |
AC_LINK_IFELSE( |
| 5413 |
> |
[AC_LANG_SOURCE( |
| 5414 |
> |
[AC_LANG_CASE([C], [[int foo (void) { return 0; }]], |
| 5415 |
> |
[C++], [[int foo (void) { return 0; }]], |
| 5416 |
> |
[Fortran 77], [[ |
| 5417 |
> |
subroutine foo |
| 5418 |
> |
end]], |
| 5419 |
> |
[Fortran], [[ |
| 5420 |
> |
subroutine foo |
| 5421 |
> |
end]])])], |
| 5422 |
> |
[lt_cv_irix_exported_symbol=yes], |
| 5423 |
> |
[lt_cv_irix_exported_symbol=no]) |
| 5424 |
> |
LDFLAGS="$save_LDFLAGS"]) |
| 5425 |
> |
if test "$lt_cv_irix_exported_symbol" = yes; then |
| 5426 |
> |
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' |
| 5427 |
> |
fi |
| 5428 |
|
else |
| 5429 |
|
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
| 5430 |
|
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' |
| 5509 |
|
osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 5510 |
|
if test "$GCC" = yes; then |
| 5511 |
|
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
| 5512 |
< |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 5512 |
> |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 5513 |
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 5514 |
|
else |
| 5515 |
|
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
| 5528 |
|
_LT_TAGVAR(no_undefined_flag, $1)=' -z defs' |
| 5529 |
|
if test "$GCC" = yes; then |
| 5530 |
|
wlarc='${wl}' |
| 5531 |
< |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 5531 |
> |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 5532 |
|
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 5533 |
< |
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 5533 |
> |
$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 5534 |
|
else |
| 5535 |
|
case `$CC -V 2>&1` in |
| 5536 |
|
*"Compilers 5.0"*) |
| 5774 |
|
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], |
| 5775 |
|
[Flag to hardcode $libdir into a binary during linking. |
| 5776 |
|
This must work even if $libdir does not exist]) |
| 5381 |
– |
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1], |
| 5382 |
– |
[[If ld is used when linking, flag to hardcode $libdir into a binary |
| 5383 |
– |
during linking. This must work even if $libdir does not exist]]) |
| 5777 |
|
_LT_TAGDECL([], [hardcode_libdir_separator], [1], |
| 5778 |
|
[Whether we need a single "-rpath" flag with a separated argument]) |
| 5779 |
|
_LT_TAGDECL([], [hardcode_direct], [0], |
| 5799 |
|
to runtime path list]) |
| 5800 |
|
_LT_TAGDECL([], [link_all_deplibs], [0], |
| 5801 |
|
[Whether libtool must link a program against all its dependency libraries]) |
| 5409 |
– |
_LT_TAGDECL([], [fix_srcfile_path], [1], |
| 5410 |
– |
[Fix the shell variable $srcfile for the compiler]) |
| 5802 |
|
_LT_TAGDECL([], [always_export_symbols], [0], |
| 5803 |
|
[Set to "yes" if exported symbols are required]) |
| 5804 |
|
_LT_TAGDECL([], [export_symbols_cmds], [2], |
| 5809 |
|
[Symbols that must always be exported]) |
| 5810 |
|
_LT_TAGDECL([], [prelink_cmds], [2], |
| 5811 |
|
[Commands necessary for linking programs (against libraries) with templates]) |
| 5812 |
+ |
_LT_TAGDECL([], [postlink_cmds], [2], |
| 5813 |
+ |
[Commands necessary for finishing linking programs]) |
| 5814 |
|
_LT_TAGDECL([], [file_list_spec], [1], |
| 5815 |
|
[Specify filename containing input files]) |
| 5816 |
|
dnl FIXME: Not yet implemented |
| 5908 |
|
m4_defun([_LT_LANG_CXX_CONFIG], |
| 5909 |
|
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
| 5910 |
|
m4_require([_LT_DECL_EGREP])dnl |
| 5911 |
+ |
m4_require([_LT_PATH_MANIFEST_TOOL])dnl |
| 5912 |
|
if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 5913 |
|
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 5914 |
|
(test "X$CXX" != "Xg++"))) ; then |
| 5927 |
|
_LT_TAGVAR(hardcode_direct, $1)=no |
| 5928 |
|
_LT_TAGVAR(hardcode_direct_absolute, $1)=no |
| 5929 |
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
| 5536 |
– |
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= |
| 5930 |
|
_LT_TAGVAR(hardcode_libdir_separator, $1)= |
| 5931 |
|
_LT_TAGVAR(hardcode_minus_L, $1)=no |
| 5932 |
|
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
| 5969 |
|
|
| 5970 |
|
# Allow CC to be a program name with arguments. |
| 5971 |
|
lt_save_CC=$CC |
| 5972 |
+ |
lt_save_CFLAGS=$CFLAGS |
| 5973 |
|
lt_save_LD=$LD |
| 5974 |
|
lt_save_GCC=$GCC |
| 5975 |
|
GCC=$GXX |
| 5987 |
|
fi |
| 5988 |
|
test -z "${LDCXX+set}" || LD=$LDCXX |
| 5989 |
|
CC=${CXX-"c++"} |
| 5990 |
+ |
CFLAGS=$CXXFLAGS |
| 5991 |
|
compiler=$CC |
| 5992 |
|
_LT_TAGVAR(compiler, $1)=$CC |
| 5993 |
|
_LT_CC_BASENAME([$compiler]) |
| 6009 |
|
# Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 6010 |
|
# archiving commands below assume that GNU ld is being used. |
| 6011 |
|
if test "$with_gnu_ld" = yes; then |
| 6012 |
< |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6013 |
< |
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 6012 |
> |
_LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6013 |
> |
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 6014 |
|
|
| 6015 |
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 6016 |
|
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
| 6151 |
|
_LT_TAGVAR(allow_undefined_flag, $1)='-berok' |
| 6152 |
|
# Determine the default libpath from the value encoded in an empty |
| 6153 |
|
# executable. |
| 6154 |
< |
_LT_SYS_MODULE_PATH_AIX |
| 6154 |
> |
_LT_SYS_MODULE_PATH_AIX([$1]) |
| 6155 |
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 6156 |
|
|
| 6157 |
|
_LT_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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 6163 |
|
else |
| 6164 |
|
# Determine the default libpath from the value encoded in an |
| 6165 |
|
# empty executable. |
| 6166 |
< |
_LT_SYS_MODULE_PATH_AIX |
| 6166 |
> |
_LT_SYS_MODULE_PATH_AIX([$1]) |
| 6167 |
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 6168 |
|
# Warning - without using the other run time loading flags, |
| 6169 |
|
# -berok will link without error, but may produce a broken library. |
| 6205 |
|
;; |
| 6206 |
|
|
| 6207 |
|
cygwin* | mingw* | pw32* | cegcc*) |
| 6208 |
< |
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
| 6209 |
< |
# as there is no search path for DLLs. |
| 6210 |
< |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 6211 |
< |
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' |
| 6212 |
< |
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 6213 |
< |
_LT_TAGVAR(always_export_symbols, $1)=no |
| 6214 |
< |
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
| 6215 |
< |
|
| 6216 |
< |
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 6217 |
< |
_LT_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' |
| 6218 |
< |
# If the export-symbols file already is a .def file (1st line |
| 6219 |
< |
# is EXPORTS), use it as is; otherwise, prepend... |
| 6220 |
< |
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 6221 |
< |
cp $export_symbols $output_objdir/$soname.def; |
| 6222 |
< |
else |
| 6223 |
< |
echo EXPORTS > $output_objdir/$soname.def; |
| 6224 |
< |
cat $export_symbols >> $output_objdir/$soname.def; |
| 6225 |
< |
fi~ |
| 6226 |
< |
$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' |
| 6227 |
< |
else |
| 6228 |
< |
_LT_TAGVAR(ld_shlibs, $1)=no |
| 6229 |
< |
fi |
| 6230 |
< |
;; |
| 6208 |
> |
case $GXX,$cc_basename in |
| 6209 |
> |
,cl* | no,cl*) |
| 6210 |
> |
# Native MSVC |
| 6211 |
> |
# hardcode_libdir_flag_spec is actually meaningless, as there is |
| 6212 |
> |
# no search path for DLLs. |
| 6213 |
> |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' |
| 6214 |
> |
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 6215 |
> |
_LT_TAGVAR(always_export_symbols, $1)=yes |
| 6216 |
> |
_LT_TAGVAR(file_list_spec, $1)='@' |
| 6217 |
> |
# Tell ltmain to make .lib files, not .a files. |
| 6218 |
> |
libext=lib |
| 6219 |
> |
# Tell ltmain to make .dll files, not .so files. |
| 6220 |
> |
shrext_cmds=".dll" |
| 6221 |
> |
# FIXME: Setting linknames here is a bad hack. |
| 6222 |
> |
_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' |
| 6223 |
> |
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 6224 |
> |
$SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; |
| 6225 |
> |
else |
| 6226 |
> |
$SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; |
| 6227 |
> |
fi~ |
| 6228 |
> |
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
| 6229 |
> |
linknames=' |
| 6230 |
> |
# The linker will not automatically build a static lib if we build a DLL. |
| 6231 |
> |
# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' |
| 6232 |
> |
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
| 6233 |
> |
# Don't use ranlib |
| 6234 |
> |
_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' |
| 6235 |
> |
_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ |
| 6236 |
> |
lt_tool_outputfile="@TOOL_OUTPUT@"~ |
| 6237 |
> |
case $lt_outputfile in |
| 6238 |
> |
*.exe|*.EXE) ;; |
| 6239 |
> |
*) |
| 6240 |
> |
lt_outputfile="$lt_outputfile.exe" |
| 6241 |
> |
lt_tool_outputfile="$lt_tool_outputfile.exe" |
| 6242 |
> |
;; |
| 6243 |
> |
esac~ |
| 6244 |
> |
func_to_tool_file "$lt_outputfile"~ |
| 6245 |
> |
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then |
| 6246 |
> |
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
| 6247 |
> |
$RM "$lt_outputfile.manifest"; |
| 6248 |
> |
fi' |
| 6249 |
> |
;; |
| 6250 |
> |
*) |
| 6251 |
> |
# g++ |
| 6252 |
> |
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
| 6253 |
> |
# as there is no search path for DLLs. |
| 6254 |
> |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 6255 |
> |
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' |
| 6256 |
> |
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 6257 |
> |
_LT_TAGVAR(always_export_symbols, $1)=no |
| 6258 |
> |
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
| 6259 |
> |
|
| 6260 |
> |
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 6261 |
> |
_LT_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' |
| 6262 |
> |
# If the export-symbols file already is a .def file (1st line |
| 6263 |
> |
# is EXPORTS), use it as is; otherwise, prepend... |
| 6264 |
> |
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 6265 |
> |
cp $export_symbols $output_objdir/$soname.def; |
| 6266 |
> |
else |
| 6267 |
> |
echo EXPORTS > $output_objdir/$soname.def; |
| 6268 |
> |
cat $export_symbols >> $output_objdir/$soname.def; |
| 6269 |
> |
fi~ |
| 6270 |
> |
$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' |
| 6271 |
> |
else |
| 6272 |
> |
_LT_TAGVAR(ld_shlibs, $1)=no |
| 6273 |
> |
fi |
| 6274 |
> |
;; |
| 6275 |
> |
esac |
| 6276 |
> |
;; |
| 6277 |
|
darwin* | rhapsody*) |
| 6278 |
|
_LT_DARWIN_LINKER_FEATURES($1) |
| 6279 |
|
;; |
| 6296 |
|
esac |
| 6297 |
|
;; |
| 6298 |
|
|
| 6299 |
< |
freebsd[[12]]*) |
| 6299 |
> |
freebsd2.*) |
| 6300 |
|
# C++ shared libraries reported to be fairly broken before |
| 6301 |
|
# switch to ELF |
| 6302 |
|
_LT_TAGVAR(ld_shlibs, $1)=no |
| 6348 |
|
;; |
| 6349 |
|
*) |
| 6350 |
|
if test "$GXX" = yes; then |
| 6351 |
< |
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 6351 |
> |
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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' |
| 6352 |
|
else |
| 6353 |
|
# FIXME: insert proper C++ library support |
| 6354 |
|
_LT_TAGVAR(ld_shlibs, $1)=no |
| 6419 |
|
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 6420 |
|
;; |
| 6421 |
|
ia64*) |
| 6422 |
< |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 6422 |
> |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 6423 |
|
;; |
| 6424 |
|
*) |
| 6425 |
< |
_LT_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' |
| 6425 |
> |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 6426 |
|
;; |
| 6427 |
|
esac |
| 6428 |
|
fi |
| 6463 |
|
*) |
| 6464 |
|
if test "$GXX" = yes; then |
| 6465 |
|
if test "$with_gnu_ld" = no; then |
| 6466 |
< |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 6466 |
> |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 6467 |
|
else |
| 6468 |
< |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' |
| 6468 |
> |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' |
| 6469 |
|
fi |
| 6470 |
|
fi |
| 6471 |
|
_LT_TAGVAR(link_all_deplibs, $1)=yes |
| 6743 |
|
_LT_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" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 6744 |
|
;; |
| 6745 |
|
*) |
| 6746 |
< |
_LT_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" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 6746 |
> |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 6747 |
|
;; |
| 6748 |
|
esac |
| 6749 |
|
|
| 6830 |
|
if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 6831 |
|
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' |
| 6832 |
|
if $CC --version | $GREP -v '^2\.7' > /dev/null; then |
| 6833 |
< |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 6833 |
> |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 6834 |
|
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 6835 |
< |
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 6835 |
> |
$CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 6836 |
|
|
| 6837 |
|
# Commands to make compiler produce verbose output that lists |
| 6838 |
|
# what "hidden" libraries, object files and flags are used when |
| 6961 |
|
fi # test -n "$compiler" |
| 6962 |
|
|
| 6963 |
|
CC=$lt_save_CC |
| 6964 |
+ |
CFLAGS=$lt_save_CFLAGS |
| 6965 |
|
LDCXX=$LD |
| 6966 |
|
LD=$lt_save_LD |
| 6967 |
|
GCC=$lt_save_GCC |
| 6976 |
|
])# _LT_LANG_CXX_CONFIG |
| 6977 |
|
|
| 6978 |
|
|
| 6979 |
+ |
# _LT_FUNC_STRIPNAME_CNF |
| 6980 |
+ |
# ---------------------- |
| 6981 |
+ |
# func_stripname_cnf prefix suffix name |
| 6982 |
+ |
# strip PREFIX and SUFFIX off of NAME. |
| 6983 |
+ |
# PREFIX and SUFFIX must not contain globbing or regex special |
| 6984 |
+ |
# characters, hashes, percent signs, but SUFFIX may contain a leading |
| 6985 |
+ |
# dot (in which case that matches only a dot). |
| 6986 |
+ |
# |
| 6987 |
+ |
# This function is identical to the (non-XSI) version of func_stripname, |
| 6988 |
+ |
# except this one can be used by m4 code that may be executed by configure, |
| 6989 |
+ |
# rather than the libtool script. |
| 6990 |
+ |
m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl |
| 6991 |
+ |
AC_REQUIRE([_LT_DECL_SED]) |
| 6992 |
+ |
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) |
| 6993 |
+ |
func_stripname_cnf () |
| 6994 |
+ |
{ |
| 6995 |
+ |
case ${2} in |
| 6996 |
+ |
.*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; |
| 6997 |
+ |
*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; |
| 6998 |
+ |
esac |
| 6999 |
+ |
} # func_stripname_cnf |
| 7000 |
+ |
])# _LT_FUNC_STRIPNAME_CNF |
| 7001 |
+ |
|
| 7002 |
|
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) |
| 7003 |
|
# --------------------------------- |
| 7004 |
|
# Figure out "hidden" library dependencies from verbose |
| 7007 |
|
# objects, libraries and library flags. |
| 7008 |
|
m4_defun([_LT_SYS_HIDDEN_LIBDEPS], |
| 7009 |
|
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
| 7010 |
+ |
AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl |
| 7011 |
|
# Dependencies to place before and after the object being linked: |
| 7012 |
|
_LT_TAGVAR(predep_objects, $1)= |
| 7013 |
|
_LT_TAGVAR(postdep_objects, $1)= |
| 7057 |
|
} |
| 7058 |
|
}; |
| 7059 |
|
_LT_EOF |
| 7060 |
+ |
], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF |
| 7061 |
+ |
package foo |
| 7062 |
+ |
func foo() { |
| 7063 |
+ |
} |
| 7064 |
+ |
_LT_EOF |
| 7065 |
|
]) |
| 7066 |
+ |
|
| 7067 |
+ |
_lt_libdeps_save_CFLAGS=$CFLAGS |
| 7068 |
+ |
case "$CC $CFLAGS " in #( |
| 7069 |
+ |
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; |
| 7070 |
+ |
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; |
| 7071 |
+ |
*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; |
| 7072 |
+ |
esac |
| 7073 |
+ |
|
| 7074 |
|
dnl Parse the compiler output and extract the necessary |
| 7075 |
|
dnl objects, libraries and library flags. |
| 7076 |
|
if AC_TRY_EVAL(ac_compile); then |
| 7082 |
|
pre_test_object_deps_done=no |
| 7083 |
|
|
| 7084 |
|
for p in `eval "$output_verbose_link_cmd"`; do |
| 7085 |
< |
case $p in |
| 7085 |
> |
case ${prev}${p} in |
| 7086 |
|
|
| 7087 |
|
-L* | -R* | -l*) |
| 7088 |
|
# Some compilers place space between "-{L,R}" and the path. |
| 7091 |
|
test $p = "-R"; then |
| 7092 |
|
prev=$p |
| 7093 |
|
continue |
| 6615 |
– |
else |
| 6616 |
– |
prev= |
| 7094 |
|
fi |
| 7095 |
|
|
| 7096 |
+ |
# Expand the sysroot to ease extracting the directories later. |
| 7097 |
+ |
if test -z "$prev"; then |
| 7098 |
+ |
case $p in |
| 7099 |
+ |
-L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; |
| 7100 |
+ |
-R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; |
| 7101 |
+ |
-l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; |
| 7102 |
+ |
esac |
| 7103 |
+ |
fi |
| 7104 |
+ |
case $p in |
| 7105 |
+ |
=*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; |
| 7106 |
+ |
esac |
| 7107 |
|
if test "$pre_test_object_deps_done" = no; then |
| 7108 |
< |
case $p in |
| 7109 |
< |
-L* | -R*) |
| 7108 |
> |
case ${prev} in |
| 7109 |
> |
-L | -R) |
| 7110 |
|
# Internal compiler library paths should come after those |
| 7111 |
|
# provided the user. The postdeps already come after the |
| 7112 |
|
# user supplied libs so there is no need to process them. |
| 7126 |
|
_LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" |
| 7127 |
|
fi |
| 7128 |
|
fi |
| 7129 |
+ |
prev= |
| 7130 |
|
;; |
| 7131 |
|
|
| 7132 |
+ |
*.lto.$objext) ;; # Ignore GCC LTO objects |
| 7133 |
|
*.$objext) |
| 7134 |
|
# This assumes that the test object file only shows up |
| 7135 |
|
# once in the compiler output. |
| 7165 |
|
fi |
| 7166 |
|
|
| 7167 |
|
$RM -f confest.$objext |
| 7168 |
+ |
CFLAGS=$_lt_libdeps_save_CFLAGS |
| 7169 |
|
|
| 7170 |
|
# PORTME: override above test on systems where it is broken |
| 7171 |
|
m4_if([$1], [CXX], |
| 7265 |
|
_LT_TAGVAR(hardcode_direct, $1)=no |
| 7266 |
|
_LT_TAGVAR(hardcode_direct_absolute, $1)=no |
| 7267 |
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
| 6777 |
– |
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= |
| 7268 |
|
_LT_TAGVAR(hardcode_libdir_separator, $1)= |
| 7269 |
|
_LT_TAGVAR(hardcode_minus_L, $1)=no |
| 7270 |
|
_LT_TAGVAR(hardcode_automatic, $1)=no |
| 7314 |
|
# Allow CC to be a program name with arguments. |
| 7315 |
|
lt_save_CC="$CC" |
| 7316 |
|
lt_save_GCC=$GCC |
| 7317 |
+ |
lt_save_CFLAGS=$CFLAGS |
| 7318 |
|
CC=${F77-"f77"} |
| 7319 |
+ |
CFLAGS=$FFLAGS |
| 7320 |
|
compiler=$CC |
| 7321 |
|
_LT_TAGVAR(compiler, $1)=$CC |
| 7322 |
|
_LT_CC_BASENAME([$compiler]) |
| 7370 |
|
|
| 7371 |
|
GCC=$lt_save_GCC |
| 7372 |
|
CC="$lt_save_CC" |
| 7373 |
+ |
CFLAGS="$lt_save_CFLAGS" |
| 7374 |
|
fi # test "$_lt_disable_F77" != yes |
| 7375 |
|
|
| 7376 |
|
AC_LANG_POP |
| 7397 |
|
_LT_TAGVAR(hardcode_direct, $1)=no |
| 7398 |
|
_LT_TAGVAR(hardcode_direct_absolute, $1)=no |
| 7399 |
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
| 6907 |
– |
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= |
| 7400 |
|
_LT_TAGVAR(hardcode_libdir_separator, $1)= |
| 7401 |
|
_LT_TAGVAR(hardcode_minus_L, $1)=no |
| 7402 |
|
_LT_TAGVAR(hardcode_automatic, $1)=no |
| 7446 |
|
# Allow CC to be a program name with arguments. |
| 7447 |
|
lt_save_CC="$CC" |
| 7448 |
|
lt_save_GCC=$GCC |
| 7449 |
+ |
lt_save_CFLAGS=$CFLAGS |
| 7450 |
|
CC=${FC-"f95"} |
| 7451 |
+ |
CFLAGS=$FCFLAGS |
| 7452 |
|
compiler=$CC |
| 7453 |
|
GCC=$ac_cv_fc_compiler_gnu |
| 7454 |
|
|
| 7504 |
|
fi # test -n "$compiler" |
| 7505 |
|
|
| 7506 |
|
GCC=$lt_save_GCC |
| 7507 |
< |
CC="$lt_save_CC" |
| 7507 |
> |
CC=$lt_save_CC |
| 7508 |
> |
CFLAGS=$lt_save_CFLAGS |
| 7509 |
|
fi # test "$_lt_disable_FC" != yes |
| 7510 |
|
|
| 7511 |
|
AC_LANG_POP |
| 7542 |
|
_LT_LINKER_BOILERPLATE |
| 7543 |
|
|
| 7544 |
|
# Allow CC to be a program name with arguments. |
| 7545 |
< |
lt_save_CC="$CC" |
| 7545 |
> |
lt_save_CC=$CC |
| 7546 |
> |
lt_save_CFLAGS=$CFLAGS |
| 7547 |
|
lt_save_GCC=$GCC |
| 7548 |
|
GCC=yes |
| 7549 |
|
CC=${GCJ-"gcj"} |
| 7550 |
+ |
CFLAGS=$GCJFLAGS |
| 7551 |
|
compiler=$CC |
| 7552 |
|
_LT_TAGVAR(compiler, $1)=$CC |
| 7553 |
|
_LT_TAGVAR(LD, $1)="$LD" |
| 7574 |
|
AC_LANG_RESTORE |
| 7575 |
|
|
| 7576 |
|
GCC=$lt_save_GCC |
| 7577 |
< |
CC="$lt_save_CC" |
| 7577 |
> |
CC=$lt_save_CC |
| 7578 |
> |
CFLAGS=$lt_save_CFLAGS |
| 7579 |
|
])# _LT_LANG_GCJ_CONFIG |
| 7580 |
|
|
| 7581 |
|
|
| 7582 |
+ |
# _LT_LANG_GO_CONFIG([TAG]) |
| 7583 |
+ |
# -------------------------- |
| 7584 |
+ |
# Ensure that the configuration variables for the GNU Go compiler |
| 7585 |
+ |
# are suitably defined. These variables are subsequently used by _LT_CONFIG |
| 7586 |
+ |
# to write the compiler configuration to `libtool'. |
| 7587 |
+ |
m4_defun([_LT_LANG_GO_CONFIG], |
| 7588 |
+ |
[AC_REQUIRE([LT_PROG_GO])dnl |
| 7589 |
+ |
AC_LANG_SAVE |
| 7590 |
+ |
|
| 7591 |
+ |
# Source file extension for Go test sources. |
| 7592 |
+ |
ac_ext=go |
| 7593 |
+ |
|
| 7594 |
+ |
# Object file extension for compiled Go test sources. |
| 7595 |
+ |
objext=o |
| 7596 |
+ |
_LT_TAGVAR(objext, $1)=$objext |
| 7597 |
+ |
|
| 7598 |
+ |
# Code to be used in simple compile tests |
| 7599 |
+ |
lt_simple_compile_test_code="package main; func main() { }" |
| 7600 |
+ |
|
| 7601 |
+ |
# Code to be used in simple link tests |
| 7602 |
+ |
lt_simple_link_test_code='package main; func main() { }' |
| 7603 |
+ |
|
| 7604 |
+ |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 7605 |
+ |
_LT_TAG_COMPILER |
| 7606 |
+ |
|
| 7607 |
+ |
# save warnings/boilerplate of simple test code |
| 7608 |
+ |
_LT_COMPILER_BOILERPLATE |
| 7609 |
+ |
_LT_LINKER_BOILERPLATE |
| 7610 |
+ |
|
| 7611 |
+ |
# Allow CC to be a program name with arguments. |
| 7612 |
+ |
lt_save_CC=$CC |
| 7613 |
+ |
lt_save_CFLAGS=$CFLAGS |
| 7614 |
+ |
lt_save_GCC=$GCC |
| 7615 |
+ |
GCC=yes |
| 7616 |
+ |
CC=${GOC-"gccgo"} |
| 7617 |
+ |
CFLAGS=$GOFLAGS |
| 7618 |
+ |
compiler=$CC |
| 7619 |
+ |
_LT_TAGVAR(compiler, $1)=$CC |
| 7620 |
+ |
_LT_TAGVAR(LD, $1)="$LD" |
| 7621 |
+ |
_LT_CC_BASENAME([$compiler]) |
| 7622 |
+ |
|
| 7623 |
+ |
# Go did not exist at the time GCC didn't implicitly link libc in. |
| 7624 |
+ |
_LT_TAGVAR(archive_cmds_need_lc, $1)=no |
| 7625 |
+ |
|
| 7626 |
+ |
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
| 7627 |
+ |
_LT_TAGVAR(reload_flag, $1)=$reload_flag |
| 7628 |
+ |
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds |
| 7629 |
+ |
|
| 7630 |
+ |
if test -n "$compiler"; then |
| 7631 |
+ |
_LT_COMPILER_NO_RTTI($1) |
| 7632 |
+ |
_LT_COMPILER_PIC($1) |
| 7633 |
+ |
_LT_COMPILER_C_O($1) |
| 7634 |
+ |
_LT_COMPILER_FILE_LOCKS($1) |
| 7635 |
+ |
_LT_LINKER_SHLIBS($1) |
| 7636 |
+ |
_LT_LINKER_HARDCODE_LIBPATH($1) |
| 7637 |
+ |
|
| 7638 |
+ |
_LT_CONFIG($1) |
| 7639 |
+ |
fi |
| 7640 |
+ |
|
| 7641 |
+ |
AC_LANG_RESTORE |
| 7642 |
+ |
|
| 7643 |
+ |
GCC=$lt_save_GCC |
| 7644 |
+ |
CC=$lt_save_CC |
| 7645 |
+ |
CFLAGS=$lt_save_CFLAGS |
| 7646 |
+ |
])# _LT_LANG_GO_CONFIG |
| 7647 |
+ |
|
| 7648 |
+ |
|
| 7649 |
|
# _LT_LANG_RC_CONFIG([TAG]) |
| 7650 |
|
# ------------------------- |
| 7651 |
|
# Ensure that the configuration variables for the Windows resource compiler |
| 7677 |
|
|
| 7678 |
|
# Allow CC to be a program name with arguments. |
| 7679 |
|
lt_save_CC="$CC" |
| 7680 |
+ |
lt_save_CFLAGS=$CFLAGS |
| 7681 |
|
lt_save_GCC=$GCC |
| 7682 |
|
GCC= |
| 7683 |
|
CC=${RC-"windres"} |
| 7684 |
+ |
CFLAGS= |
| 7685 |
|
compiler=$CC |
| 7686 |
|
_LT_TAGVAR(compiler, $1)=$CC |
| 7687 |
|
_LT_CC_BASENAME([$compiler]) |
| 7694 |
|
|
| 7695 |
|
GCC=$lt_save_GCC |
| 7696 |
|
AC_LANG_RESTORE |
| 7697 |
< |
CC="$lt_save_CC" |
| 7697 |
> |
CC=$lt_save_CC |
| 7698 |
> |
CFLAGS=$lt_save_CFLAGS |
| 7699 |
|
])# _LT_LANG_RC_CONFIG |
| 7700 |
|
|
| 7701 |
|
|
| 7715 |
|
dnl AC_DEFUN([LT_AC_PROG_GCJ], []) |
| 7716 |
|
|
| 7717 |
|
|
| 7718 |
+ |
# LT_PROG_GO |
| 7719 |
+ |
# ---------- |
| 7720 |
+ |
AC_DEFUN([LT_PROG_GO], |
| 7721 |
+ |
[AC_CHECK_TOOL(GOC, gccgo,) |
| 7722 |
+ |
]) |
| 7723 |
+ |
|
| 7724 |
+ |
|
| 7725 |
|
# LT_PROG_RC |
| 7726 |
|
# ---------- |
| 7727 |
|
AC_DEFUN([LT_PROG_RC], |
| 7761 |
|
AC_SUBST([OBJDUMP]) |
| 7762 |
|
]) |
| 7763 |
|
|
| 7764 |
+ |
# _LT_DECL_DLLTOOL |
| 7765 |
+ |
# ---------------- |
| 7766 |
+ |
# Ensure DLLTOOL variable is set. |
| 7767 |
+ |
m4_defun([_LT_DECL_DLLTOOL], |
| 7768 |
+ |
[AC_CHECK_TOOL(DLLTOOL, dlltool, false) |
| 7769 |
+ |
test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 7770 |
+ |
_LT_DECL([], [DLLTOOL], [1], [DLL creation program]) |
| 7771 |
+ |
AC_SUBST([DLLTOOL]) |
| 7772 |
+ |
]) |
| 7773 |
|
|
| 7774 |
|
# _LT_DECL_SED |
| 7775 |
|
# ------------ |
| 7861 |
|
# Try some XSI features |
| 7862 |
|
xsi_shell=no |
| 7863 |
|
( _lt_dummy="a/b/c" |
| 7864 |
< |
test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ |
| 7865 |
< |
= c,a/b,, \ |
| 7864 |
> |
test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ |
| 7865 |
> |
= c,a/b,b/c, \ |
| 7866 |
|
&& eval 'test $(( 1 + 1 )) -eq 2 \ |
| 7867 |
|
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
| 7868 |
|
&& xsi_shell=yes |
| 7901 |
|
])# _LT_CHECK_SHELL_FEATURES |
| 7902 |
|
|
| 7903 |
|
|
| 7904 |
< |
# _LT_PROG_XSI_SHELLFNS |
| 7905 |
< |
# --------------------- |
| 7906 |
< |
# Bourne and XSI compatible variants of some useful shell functions. |
| 7907 |
< |
m4_defun([_LT_PROG_XSI_SHELLFNS], |
| 7908 |
< |
[case $xsi_shell in |
| 7909 |
< |
yes) |
| 7910 |
< |
cat << \_LT_EOF >> "$cfgfile" |
| 7911 |
< |
|
| 7912 |
< |
# func_dirname file append nondir_replacement |
| 7913 |
< |
# Compute the dirname of FILE. If nonempty, add APPEND to the result, |
| 7914 |
< |
# otherwise set result to NONDIR_REPLACEMENT. |
| 7915 |
< |
func_dirname () |
| 7916 |
< |
{ |
| 7917 |
< |
case ${1} in |
| 7918 |
< |
*/*) func_dirname_result="${1%/*}${2}" ;; |
| 7335 |
< |
* ) func_dirname_result="${3}" ;; |
| 7336 |
< |
esac |
| 7337 |
< |
} |
| 7338 |
< |
|
| 7339 |
< |
# func_basename file |
| 7340 |
< |
func_basename () |
| 7341 |
< |
{ |
| 7342 |
< |
func_basename_result="${1##*/}" |
| 7343 |
< |
} |
| 7344 |
< |
|
| 7345 |
< |
# func_dirname_and_basename file append nondir_replacement |
| 7346 |
< |
# perform func_basename and func_dirname in a single function |
| 7347 |
< |
# call: |
| 7348 |
< |
# dirname: Compute the dirname of FILE. If nonempty, |
| 7349 |
< |
# add APPEND to the result, otherwise set result |
| 7350 |
< |
# to NONDIR_REPLACEMENT. |
| 7351 |
< |
# value returned in "$func_dirname_result" |
| 7352 |
< |
# basename: Compute filename of FILE. |
| 7353 |
< |
# value retuned in "$func_basename_result" |
| 7354 |
< |
# Implementation must be kept synchronized with func_dirname |
| 7355 |
< |
# and func_basename. For efficiency, we do not delegate to |
| 7356 |
< |
# those functions but instead duplicate the functionality here. |
| 7357 |
< |
func_dirname_and_basename () |
| 7358 |
< |
{ |
| 7359 |
< |
case ${1} in |
| 7360 |
< |
*/*) func_dirname_result="${1%/*}${2}" ;; |
| 7361 |
< |
* ) func_dirname_result="${3}" ;; |
| 7362 |
< |
esac |
| 7363 |
< |
func_basename_result="${1##*/}" |
| 7364 |
< |
} |
| 7365 |
< |
|
| 7366 |
< |
# func_stripname prefix suffix name |
| 7367 |
< |
# strip PREFIX and SUFFIX off of NAME. |
| 7368 |
< |
# PREFIX and SUFFIX must not contain globbing or regex special |
| 7369 |
< |
# characters, hashes, percent signs, but SUFFIX may contain a leading |
| 7370 |
< |
# dot (in which case that matches only a dot). |
| 7371 |
< |
func_stripname () |
| 7372 |
< |
{ |
| 7373 |
< |
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are |
| 7374 |
< |
# positional parameters, so assign one to ordinary parameter first. |
| 7375 |
< |
func_stripname_result=${3} |
| 7376 |
< |
func_stripname_result=${func_stripname_result#"${1}"} |
| 7377 |
< |
func_stripname_result=${func_stripname_result%"${2}"} |
| 7378 |
< |
} |
| 7379 |
< |
|
| 7380 |
< |
# func_opt_split |
| 7381 |
< |
func_opt_split () |
| 7382 |
< |
{ |
| 7383 |
< |
func_opt_split_opt=${1%%=*} |
| 7384 |
< |
func_opt_split_arg=${1#*=} |
| 7385 |
< |
} |
| 7386 |
< |
|
| 7387 |
< |
# func_lo2o object |
| 7388 |
< |
func_lo2o () |
| 7389 |
< |
{ |
| 7390 |
< |
case ${1} in |
| 7391 |
< |
*.lo) func_lo2o_result=${1%.lo}.${objext} ;; |
| 7392 |
< |
*) func_lo2o_result=${1} ;; |
| 7393 |
< |
esac |
| 7394 |
< |
} |
| 7395 |
< |
|
| 7396 |
< |
# func_xform libobj-or-source |
| 7397 |
< |
func_xform () |
| 7398 |
< |
{ |
| 7399 |
< |
func_xform_result=${1%.*}.lo |
| 7400 |
< |
} |
| 7401 |
< |
|
| 7402 |
< |
# func_arith arithmetic-term... |
| 7403 |
< |
func_arith () |
| 7404 |
< |
{ |
| 7405 |
< |
func_arith_result=$(( $[*] )) |
| 7406 |
< |
} |
| 7904 |
> |
# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY) |
| 7905 |
> |
# ------------------------------------------------------ |
| 7906 |
> |
# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and |
| 7907 |
> |
# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY. |
| 7908 |
> |
m4_defun([_LT_PROG_FUNCTION_REPLACE], |
| 7909 |
> |
[dnl { |
| 7910 |
> |
sed -e '/^$1 ()$/,/^} # $1 /c\ |
| 7911 |
> |
$1 ()\ |
| 7912 |
> |
{\ |
| 7913 |
> |
m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1]) |
| 7914 |
> |
} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \ |
| 7915 |
> |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 7916 |
> |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 7917 |
> |
test 0 -eq $? || _lt_function_replace_fail=: |
| 7918 |
> |
]) |
| 7919 |
|
|
| 7408 |
– |
# func_len string |
| 7409 |
– |
# STRING may not start with a hyphen. |
| 7410 |
– |
func_len () |
| 7411 |
– |
{ |
| 7412 |
– |
func_len_result=${#1} |
| 7413 |
– |
} |
| 7920 |
|
|
| 7921 |
< |
_LT_EOF |
| 7922 |
< |
;; |
| 7923 |
< |
*) # Bourne compatible functions. |
| 7924 |
< |
cat << \_LT_EOF >> "$cfgfile" |
| 7921 |
> |
# _LT_PROG_REPLACE_SHELLFNS |
| 7922 |
> |
# ------------------------- |
| 7923 |
> |
# Replace existing portable implementations of several shell functions with |
| 7924 |
> |
# equivalent extended shell implementations where those features are available.. |
| 7925 |
> |
m4_defun([_LT_PROG_REPLACE_SHELLFNS], |
| 7926 |
> |
[if test x"$xsi_shell" = xyes; then |
| 7927 |
> |
_LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl |
| 7928 |
> |
case ${1} in |
| 7929 |
> |
*/*) func_dirname_result="${1%/*}${2}" ;; |
| 7930 |
> |
* ) func_dirname_result="${3}" ;; |
| 7931 |
> |
esac]) |
| 7932 |
> |
|
| 7933 |
> |
_LT_PROG_FUNCTION_REPLACE([func_basename], [dnl |
| 7934 |
> |
func_basename_result="${1##*/}"]) |
| 7935 |
> |
|
| 7936 |
> |
_LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl |
| 7937 |
> |
case ${1} in |
| 7938 |
> |
*/*) func_dirname_result="${1%/*}${2}" ;; |
| 7939 |
> |
* ) func_dirname_result="${3}" ;; |
| 7940 |
> |
esac |
| 7941 |
> |
func_basename_result="${1##*/}"]) |
| 7942 |
|
|
| 7943 |
< |
# func_dirname file append nondir_replacement |
| 7944 |
< |
# Compute the dirname of FILE. If nonempty, add APPEND to the result, |
| 7945 |
< |
# otherwise set result to NONDIR_REPLACEMENT. |
| 7946 |
< |
func_dirname () |
| 7947 |
< |
{ |
| 7948 |
< |
# Extract subdirectory from the argument. |
| 7426 |
< |
func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` |
| 7427 |
< |
if test "X$func_dirname_result" = "X${1}"; then |
| 7428 |
< |
func_dirname_result="${3}" |
| 7429 |
< |
else |
| 7430 |
< |
func_dirname_result="$func_dirname_result${2}" |
| 7431 |
< |
fi |
| 7432 |
< |
} |
| 7943 |
> |
_LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl |
| 7944 |
> |
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are |
| 7945 |
> |
# positional parameters, so assign one to ordinary parameter first. |
| 7946 |
> |
func_stripname_result=${3} |
| 7947 |
> |
func_stripname_result=${func_stripname_result#"${1}"} |
| 7948 |
> |
func_stripname_result=${func_stripname_result%"${2}"}]) |
| 7949 |
|
|
| 7950 |
< |
# func_basename file |
| 7951 |
< |
func_basename () |
| 7952 |
< |
{ |
| 7437 |
< |
func_basename_result=`$ECHO "${1}" | $SED "$basename"` |
| 7438 |
< |
} |
| 7950 |
> |
_LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl |
| 7951 |
> |
func_split_long_opt_name=${1%%=*} |
| 7952 |
> |
func_split_long_opt_arg=${1#*=}]) |
| 7953 |
|
|
| 7954 |
< |
dnl func_dirname_and_basename |
| 7955 |
< |
dnl A portable version of this function is already defined in general.m4sh |
| 7956 |
< |
dnl so there is no need for it here. |
| 7954 |
> |
_LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl |
| 7955 |
> |
func_split_short_opt_arg=${1#??} |
| 7956 |
> |
func_split_short_opt_name=${1%"$func_split_short_opt_arg"}]) |
| 7957 |
|
|
| 7958 |
< |
# func_stripname prefix suffix name |
| 7959 |
< |
# strip PREFIX and SUFFIX off of NAME. |
| 7960 |
< |
# PREFIX and SUFFIX must not contain globbing or regex special |
| 7961 |
< |
# characters, hashes, percent signs, but SUFFIX may contain a leading |
| 7962 |
< |
# dot (in which case that matches only a dot). |
| 7449 |
< |
# func_strip_suffix prefix name |
| 7450 |
< |
func_stripname () |
| 7451 |
< |
{ |
| 7452 |
< |
case ${2} in |
| 7453 |
< |
.*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; |
| 7454 |
< |
*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; |
| 7455 |
< |
esac |
| 7456 |
< |
} |
| 7958 |
> |
_LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl |
| 7959 |
> |
case ${1} in |
| 7960 |
> |
*.lo) func_lo2o_result=${1%.lo}.${objext} ;; |
| 7961 |
> |
*) func_lo2o_result=${1} ;; |
| 7962 |
> |
esac]) |
| 7963 |
|
|
| 7964 |
< |
# sed scripts: |
| 7459 |
< |
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q' |
| 7460 |
< |
my_sed_long_arg='1s/^-[[^=]]*=//' |
| 7964 |
> |
_LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo]) |
| 7965 |
|
|
| 7966 |
< |
# func_opt_split |
| 7463 |
< |
func_opt_split () |
| 7464 |
< |
{ |
| 7465 |
< |
func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` |
| 7466 |
< |
func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` |
| 7467 |
< |
} |
| 7966 |
> |
_LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))]) |
| 7967 |
|
|
| 7968 |
< |
# func_lo2o object |
| 7969 |
< |
func_lo2o () |
| 7471 |
< |
{ |
| 7472 |
< |
func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` |
| 7473 |
< |
} |
| 7968 |
> |
_LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}]) |
| 7969 |
> |
fi |
| 7970 |
|
|
| 7971 |
< |
# func_xform libobj-or-source |
| 7972 |
< |
func_xform () |
| 7477 |
< |
{ |
| 7478 |
< |
func_xform_result=`$ECHO "${1}" | $SED 's/\.[[^.]]*$/.lo/'` |
| 7479 |
< |
} |
| 7971 |
> |
if test x"$lt_shell_append" = xyes; then |
| 7972 |
> |
_LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"]) |
| 7973 |
|
|
| 7974 |
< |
# func_arith arithmetic-term... |
| 7975 |
< |
func_arith () |
| 7976 |
< |
{ |
| 7977 |
< |
func_arith_result=`expr "$[@]"` |
| 7485 |
< |
} |
| 7974 |
> |
_LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl |
| 7975 |
> |
func_quote_for_eval "${2}" |
| 7976 |
> |
dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \ |
| 7977 |
> |
eval "${1}+=\\\\ \\$func_quote_for_eval_result"]) |
| 7978 |
|
|
| 7979 |
< |
# func_len string |
| 7980 |
< |
# STRING may not start with a hyphen. |
| 7981 |
< |
func_len () |
| 7982 |
< |
{ |
| 7983 |
< |
func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len` |
| 7984 |
< |
} |
| 7979 |
> |
# Save a `func_append' function call where possible by direct use of '+=' |
| 7980 |
> |
sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ |
| 7981 |
> |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 7982 |
> |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 7983 |
> |
test 0 -eq $? || _lt_function_replace_fail=: |
| 7984 |
> |
else |
| 7985 |
> |
# Save a `func_append' function call even when '+=' is not available |
| 7986 |
> |
sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ |
| 7987 |
> |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 7988 |
> |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 7989 |
> |
test 0 -eq $? || _lt_function_replace_fail=: |
| 7990 |
> |
fi |
| 7991 |
|
|
| 7992 |
< |
_LT_EOF |
| 7993 |
< |
esac |
| 7992 |
> |
if test x"$_lt_function_replace_fail" = x":"; then |
| 7993 |
> |
AC_MSG_WARN([Unable to substitute extended shell functions in $ofile]) |
| 7994 |
> |
fi |
| 7995 |
> |
]) |
| 7996 |
|
|
| 7997 |
< |
case $lt_shell_append in |
| 7998 |
< |
yes) |
| 7999 |
< |
cat << \_LT_EOF >> "$cfgfile" |
| 8000 |
< |
|
| 8001 |
< |
# func_append var value |
| 8002 |
< |
# Append VALUE to the end of shell variable VAR. |
| 8003 |
< |
func_append () |
| 8004 |
< |
{ |
| 8005 |
< |
eval "$[1]+=\$[2]" |
| 8006 |
< |
} |
| 8007 |
< |
_LT_EOF |
| 7997 |
> |
# _LT_PATH_CONVERSION_FUNCTIONS |
| 7998 |
> |
# ----------------------------- |
| 7999 |
> |
# Determine which file name conversion functions should be used by |
| 8000 |
> |
# func_to_host_file (and, implicitly, by func_to_host_path). These are needed |
| 8001 |
> |
# for certain cross-compile configurations and native mingw. |
| 8002 |
> |
m4_defun([_LT_PATH_CONVERSION_FUNCTIONS], |
| 8003 |
> |
[AC_REQUIRE([AC_CANONICAL_HOST])dnl |
| 8004 |
> |
AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
| 8005 |
> |
AC_MSG_CHECKING([how to convert $build file names to $host format]) |
| 8006 |
> |
AC_CACHE_VAL(lt_cv_to_host_file_cmd, |
| 8007 |
> |
[case $host in |
| 8008 |
> |
*-*-mingw* ) |
| 8009 |
> |
case $build in |
| 8010 |
> |
*-*-mingw* ) # actually msys |
| 8011 |
> |
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 |
| 8012 |
> |
;; |
| 8013 |
> |
*-*-cygwin* ) |
| 8014 |
> |
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 |
| 8015 |
> |
;; |
| 8016 |
> |
* ) # otherwise, assume *nix |
| 8017 |
> |
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 |
| 8018 |
> |
;; |
| 8019 |
> |
esac |
| 8020 |
|
;; |
| 8021 |
< |
*) |
| 8022 |
< |
cat << \_LT_EOF >> "$cfgfile" |
| 8023 |
< |
|
| 8024 |
< |
# func_append var value |
| 8025 |
< |
# Append VALUE to the end of shell variable VAR. |
| 8026 |
< |
func_append () |
| 8027 |
< |
{ |
| 8028 |
< |
eval "$[1]=\$$[1]\$[2]" |
| 8029 |
< |
} |
| 8030 |
< |
|
| 8031 |
< |
_LT_EOF |
| 8021 |
> |
*-*-cygwin* ) |
| 8022 |
> |
case $build in |
| 8023 |
> |
*-*-mingw* ) # actually msys |
| 8024 |
> |
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin |
| 8025 |
> |
;; |
| 8026 |
> |
*-*-cygwin* ) |
| 8027 |
> |
lt_cv_to_host_file_cmd=func_convert_file_noop |
| 8028 |
> |
;; |
| 8029 |
> |
* ) # otherwise, assume *nix |
| 8030 |
> |
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin |
| 8031 |
> |
;; |
| 8032 |
> |
esac |
| 8033 |
|
;; |
| 8034 |
< |
esac |
| 8034 |
> |
* ) # unhandled hosts (and "normal" native builds) |
| 8035 |
> |
lt_cv_to_host_file_cmd=func_convert_file_noop |
| 8036 |
> |
;; |
| 8037 |
> |
esac |
| 8038 |
> |
]) |
| 8039 |
> |
to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 8040 |
> |
AC_MSG_RESULT([$lt_cv_to_host_file_cmd]) |
| 8041 |
> |
_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd], |
| 8042 |
> |
[0], [convert $build file names to $host format])dnl |
| 8043 |
> |
|
| 8044 |
> |
AC_MSG_CHECKING([how to convert $build file names to toolchain format]) |
| 8045 |
> |
AC_CACHE_VAL(lt_cv_to_tool_file_cmd, |
| 8046 |
> |
[#assume ordinary cross tools, or native build. |
| 8047 |
> |
lt_cv_to_tool_file_cmd=func_convert_file_noop |
| 8048 |
> |
case $host in |
| 8049 |
> |
*-*-mingw* ) |
| 8050 |
> |
case $build in |
| 8051 |
> |
*-*-mingw* ) # actually msys |
| 8052 |
> |
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 |
| 8053 |
> |
;; |
| 8054 |
> |
esac |
| 8055 |
> |
;; |
| 8056 |
> |
esac |
| 8057 |
|
]) |
| 8058 |
+ |
to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 8059 |
+ |
AC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) |
| 8060 |
+ |
_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], |
| 8061 |
+ |
[0], [convert $build files to toolchain format])dnl |
| 8062 |
+ |
])# _LT_PATH_CONVERSION_FUNCTIONS |
| 8063 |
|
|
| 8064 |
|
# ltdl.m4 - Configure ltdl for the target system. -*-Autoconf-*- |
| 8065 |
|
# |
| 8066 |
< |
# Copyright (C) 1999-2006, 2007, 2008 Free Software Foundation, Inc. |
| 8066 |
> |
# Copyright (C) 1999-2006, 2007, 2008, 2011 Free Software Foundation, Inc. |
| 8067 |
|
# Written by Thomas Tanner, 1999 |
| 8068 |
|
# |
| 8069 |
|
# This file is free software; the Free Software Foundation gives |
| 8473 |
|
m4_pattern_allow([LT_LIBEXT])dnl |
| 8474 |
|
AC_DEFINE_UNQUOTED([LT_LIBEXT],["$libext"],[The archive extension]) |
| 8475 |
|
|
| 8476 |
+ |
name= |
| 8477 |
+ |
eval "lt_libprefix=\"$libname_spec\"" |
| 8478 |
+ |
m4_pattern_allow([LT_LIBPREFIX])dnl |
| 8479 |
+ |
AC_DEFINE_UNQUOTED([LT_LIBPREFIX],["$lt_libprefix"],[The archive prefix]) |
| 8480 |
+ |
|
| 8481 |
|
name=ltdl |
| 8482 |
< |
LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""` |
| 8482 |
> |
eval "LTDLOPEN=\"$libname_spec\"" |
| 8483 |
|
AC_SUBST([LTDLOPEN]) |
| 8484 |
|
])# _LTDL_SETUP |
| 8485 |
|
|
| 8616 |
|
[ |
| 8617 |
|
module=yes |
| 8618 |
|
eval libltdl_cv_shlibext=$shrext_cmds |
| 8619 |
+ |
module=no |
| 8620 |
+ |
eval libltdl_cv_shrext=$shrext_cmds |
| 8621 |
|
]) |
| 8622 |
|
if test -n "$libltdl_cv_shlibext"; then |
| 8623 |
|
m4_pattern_allow([LT_MODULE_EXT])dnl |
| 8624 |
|
AC_DEFINE_UNQUOTED([LT_MODULE_EXT], ["$libltdl_cv_shlibext"], |
| 8625 |
|
[Define to the extension used for runtime loadable modules, say, ".so".]) |
| 8626 |
|
fi |
| 8627 |
+ |
if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then |
| 8628 |
+ |
m4_pattern_allow([LT_SHARED_EXT])dnl |
| 8629 |
+ |
AC_DEFINE_UNQUOTED([LT_SHARED_EXT], ["$libltdl_cv_shrext"], |
| 8630 |
+ |
[Define to the shared library suffix, say, ".dylib".]) |
| 8631 |
+ |
fi |
| 8632 |
|
])# LT_SYS_MODULE_EXT |
| 8633 |
|
|
| 8634 |
|
# Old name: |
| 9204 |
|
# MODE is either `yes' or `no'. If omitted, it defaults to `both'. |
| 9205 |
|
m4_define([_LT_WITH_PIC], |
| 9206 |
|
[AC_ARG_WITH([pic], |
| 9207 |
< |
[AS_HELP_STRING([--with-pic], |
| 9207 |
> |
[AS_HELP_STRING([--with-pic@<:@=PKGS@:>@], |
| 9208 |
|
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])], |
| 9209 |
< |
[pic_mode="$withval"], |
| 9209 |
> |
[lt_p=${PACKAGE-default} |
| 9210 |
> |
case $withval in |
| 9211 |
> |
yes|no) pic_mode=$withval ;; |
| 9212 |
> |
*) |
| 9213 |
> |
pic_mode=default |
| 9214 |
> |
# Look at the argument we got. We use all the common list separators. |
| 9215 |
> |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 9216 |
> |
for lt_pkg in $withval; do |
| 9217 |
> |
IFS="$lt_save_ifs" |
| 9218 |
> |
if test "X$lt_pkg" = "X$lt_p"; then |
| 9219 |
> |
pic_mode=yes |
| 9220 |
> |
fi |
| 9221 |
> |
done |
| 9222 |
> |
IFS="$lt_save_ifs" |
| 9223 |
> |
;; |
| 9224 |
> |
esac], |
| 9225 |
|
[pic_mode=default]) |
| 9226 |
|
|
| 9227 |
|
test -z "$pic_mode" && pic_mode=m4_default([$1], [default]) |
| 9391 |
|
# unlimited permission to copy and/or distribute it, with or without |
| 9392 |
|
# modifications, as long as this notice is preserved. |
| 9393 |
|
|
| 9394 |
< |
# Generated from ltversion.in. |
| 9394 |
> |
# @configure_input@ |
| 9395 |
|
|
| 9396 |
< |
# serial 3175 ltversion.m4 |
| 9396 |
> |
# serial 3337 ltversion.m4 |
| 9397 |
|
# This file is part of GNU Libtool |
| 9398 |
|
|
| 9399 |
< |
m4_define([LT_PACKAGE_VERSION], [2.2.10]) |
| 9400 |
< |
m4_define([LT_PACKAGE_REVISION], [1.3175]) |
| 9399 |
> |
m4_define([LT_PACKAGE_VERSION], [2.4.2]) |
| 9400 |
> |
m4_define([LT_PACKAGE_REVISION], [1.3337]) |
| 9401 |
|
|
| 9402 |
|
AC_DEFUN([LTVERSION_VERSION], |
| 9403 |
< |
[macro_version='2.2.10' |
| 9404 |
< |
macro_revision='1.3175' |
| 9403 |
> |
[macro_version='2.4.2' |
| 9404 |
> |
macro_revision='1.3337' |
| 9405 |
|
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) |
| 9406 |
|
_LT_DECL(, macro_revision, 0) |
| 9407 |
|
]) |
| 9505 |
|
m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])]) |
| 9506 |
|
m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])]) |
| 9507 |
|
|
| 9508 |
< |
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
| 9508 |
> |
# Copyright (C) 2002-2013 Free Software Foundation, Inc. |
| 9509 |
|
# |
| 9510 |
|
# This file is free software; the Free Software Foundation |
| 9511 |
|
# gives unlimited permission to copy and/or distribute it, |
| 9517 |
|
# generated from the m4 files accompanying Automake X.Y. |
| 9518 |
|
# (This private macro should not be called outside this file.) |
| 9519 |
|
AC_DEFUN([AM_AUTOMAKE_VERSION], |
| 9520 |
< |
[am__api_version='1.11' |
| 9520 |
> |
[am__api_version='1.13' |
| 9521 |
|
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to |
| 9522 |
|
dnl require some minimum version. Point them to the right macro. |
| 9523 |
< |
m4_if([$1], [1.11.1], [], |
| 9523 |
> |
m4_if([$1], [1.13.3], [], |
| 9524 |
|
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl |
| 9525 |
|
]) |
| 9526 |
|
|
| 9536 |
|
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. |
| 9537 |
|
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. |
| 9538 |
|
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], |
| 9539 |
< |
[AM_AUTOMAKE_VERSION([1.11.1])dnl |
| 9539 |
> |
[AM_AUTOMAKE_VERSION([1.13.3])dnl |
| 9540 |
|
m4_ifndef([AC_AUTOCONF_VERSION], |
| 9541 |
|
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
| 9542 |
|
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) |
| 9543 |
|
|
| 9544 |
|
# AM_AUX_DIR_EXPAND -*- Autoconf -*- |
| 9545 |
|
|
| 9546 |
< |
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. |
| 9546 |
> |
# Copyright (C) 2001-2013 Free Software Foundation, Inc. |
| 9547 |
|
# |
| 9548 |
|
# This file is free software; the Free Software Foundation |
| 9549 |
|
# gives unlimited permission to copy and/or distribute it, |
| 9550 |
|
# with or without modifications, as long as this notice is preserved. |
| 9551 |
|
|
| 9552 |
|
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets |
| 9553 |
< |
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to |
| 9554 |
< |
# `$srcdir', `$srcdir/..', or `$srcdir/../..'. |
| 9553 |
> |
# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to |
| 9554 |
> |
# '$srcdir', '$srcdir/..', or '$srcdir/../..'. |
| 9555 |
|
# |
| 9556 |
|
# Of course, Automake must honor this variable whenever it calls a |
| 9557 |
|
# tool from the auxiliary directory. The problem is that $srcdir (and |
| 9570 |
|
# |
| 9571 |
|
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir |
| 9572 |
|
# are both prefixed by $srcdir. In an in-source build this is usually |
| 9573 |
< |
# harmless because $srcdir is `.', but things will broke when you |
| 9573 |
> |
# harmless because $srcdir is '.', but things will broke when you |
| 9574 |
|
# start a VPATH build or use an absolute $srcdir. |
| 9575 |
|
# |
| 9576 |
|
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, |
| 9596 |
|
|
| 9597 |
|
# AM_CONDITIONAL -*- Autoconf -*- |
| 9598 |
|
|
| 9599 |
< |
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 |
| 9033 |
< |
# Free Software Foundation, Inc. |
| 9599 |
> |
# Copyright (C) 1997-2013 Free Software Foundation, Inc. |
| 9600 |
|
# |
| 9601 |
|
# This file is free software; the Free Software Foundation |
| 9602 |
|
# gives unlimited permission to copy and/or distribute it, |
| 9603 |
|
# with or without modifications, as long as this notice is preserved. |
| 9604 |
|
|
| 9039 |
– |
# serial 9 |
| 9040 |
– |
|
| 9605 |
|
# AM_CONDITIONAL(NAME, SHELL-CONDITION) |
| 9606 |
|
# ------------------------------------- |
| 9607 |
|
# Define a conditional. |
| 9608 |
|
AC_DEFUN([AM_CONDITIONAL], |
| 9609 |
< |
[AC_PREREQ(2.52)dnl |
| 9610 |
< |
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], |
| 9611 |
< |
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl |
| 9609 |
> |
[AC_PREREQ([2.52])dnl |
| 9610 |
> |
m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], |
| 9611 |
> |
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl |
| 9612 |
|
AC_SUBST([$1_TRUE])dnl |
| 9613 |
|
AC_SUBST([$1_FALSE])dnl |
| 9614 |
|
_AM_SUBST_NOTMAKE([$1_TRUE])dnl |
| 9627 |
|
Usually this means the macro was only invoked conditionally.]]) |
| 9628 |
|
fi])]) |
| 9629 |
|
|
| 9630 |
< |
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 |
| 9067 |
< |
# Free Software Foundation, Inc. |
| 9630 |
> |
# Copyright (C) 1999-2013 Free Software Foundation, Inc. |
| 9631 |
|
# |
| 9632 |
|
# This file is free software; the Free Software Foundation |
| 9633 |
|
# gives unlimited permission to copy and/or distribute it, |
| 9634 |
|
# with or without modifications, as long as this notice is preserved. |
| 9635 |
|
|
| 9073 |
– |
# serial 10 |
| 9636 |
|
|
| 9637 |
< |
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be |
| 9637 |
> |
# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be |
| 9638 |
|
# written in clear, in which case automake, when reading aclocal.m4, |
| 9639 |
|
# will think it sees a *use*, and therefore will trigger all it's |
| 9640 |
|
# C support machinery. Also note that it means that autoscan, seeing |
| 9644 |
|
# _AM_DEPENDENCIES(NAME) |
| 9645 |
|
# ---------------------- |
| 9646 |
|
# See how the compiler implements dependency checking. |
| 9647 |
< |
# NAME is "CC", "CXX", "GCJ", or "OBJC". |
| 9647 |
> |
# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". |
| 9648 |
|
# We try a few techniques and use that to set a single cache variable. |
| 9649 |
|
# |
| 9650 |
|
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was |
| 9657 |
|
AC_REQUIRE([AM_MAKE_INCLUDE])dnl |
| 9658 |
|
AC_REQUIRE([AM_DEP_TRACK])dnl |
| 9659 |
|
|
| 9660 |
< |
ifelse([$1], CC, [depcc="$CC" am_compiler_list=], |
| 9661 |
< |
[$1], CXX, [depcc="$CXX" am_compiler_list=], |
| 9662 |
< |
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], |
| 9663 |
< |
[$1], UPC, [depcc="$UPC" am_compiler_list=], |
| 9664 |
< |
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], |
| 9665 |
< |
[depcc="$$1" am_compiler_list=]) |
| 9660 |
> |
m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], |
| 9661 |
> |
[$1], [CXX], [depcc="$CXX" am_compiler_list=], |
| 9662 |
> |
[$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], |
| 9663 |
> |
[$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], |
| 9664 |
> |
[$1], [UPC], [depcc="$UPC" am_compiler_list=], |
| 9665 |
> |
[$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], |
| 9666 |
> |
[depcc="$$1" am_compiler_list=]) |
| 9667 |
|
|
| 9668 |
|
AC_CACHE_CHECK([dependency style of $depcc], |
| 9669 |
|
[am_cv_$1_dependencies_compiler_type], |
| 9671 |
|
# We make a subdir and do the tests there. Otherwise we can end up |
| 9672 |
|
# making bogus files that we don't know about and never remove. For |
| 9673 |
|
# instance it was reported that on HP-UX the gcc test will end up |
| 9674 |
< |
# making a dummy file named `D' -- because `-MD' means `put the output |
| 9675 |
< |
# in D'. |
| 9674 |
> |
# making a dummy file named 'D' -- because '-MD' means "put the output |
| 9675 |
> |
# in D". |
| 9676 |
> |
rm -rf conftest.dir |
| 9677 |
|
mkdir conftest.dir |
| 9678 |
|
# Copy depcomp to subdir because otherwise we won't find it if we're |
| 9679 |
|
# using a relative directory. |
| 9712 |
|
: > sub/conftest.c |
| 9713 |
|
for i in 1 2 3 4 5 6; do |
| 9714 |
|
echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 9715 |
< |
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 9716 |
< |
# Solaris 8's {/usr,}/bin/sh. |
| 9717 |
< |
touch sub/conftst$i.h |
| 9715 |
> |
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 9716 |
> |
# Solaris 10 /bin/sh. |
| 9717 |
> |
echo '/* dummy */' > sub/conftst$i.h |
| 9718 |
|
done |
| 9719 |
|
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 9720 |
|
|
| 9721 |
< |
# We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 9721 |
> |
# We check with '-c' and '-o' for the sake of the "dashmstdout" |
| 9722 |
|
# mode. It turns out that the SunPro C++ compiler does not properly |
| 9723 |
< |
# handle `-M -o', and we need to detect this. Also, some Intel |
| 9724 |
< |
# versions had trouble with output in subdirs |
| 9723 |
> |
# handle '-M -o', and we need to detect this. Also, some Intel |
| 9724 |
> |
# versions had trouble with output in subdirs. |
| 9725 |
|
am__obj=sub/conftest.${OBJEXT-o} |
| 9726 |
|
am__minus_obj="-o $am__obj" |
| 9727 |
|
case $depmode in |
| 9730 |
|
test "$am__universal" = false || continue |
| 9731 |
|
;; |
| 9732 |
|
nosideeffect) |
| 9733 |
< |
# after this tag, mechanisms are not by side-effect, so they'll |
| 9734 |
< |
# only be used when explicitly requested |
| 9733 |
> |
# After this tag, mechanisms are not by side-effect, so they'll |
| 9734 |
> |
# only be used when explicitly requested. |
| 9735 |
|
if test "x$enable_dependency_tracking" = xyes; then |
| 9736 |
|
continue |
| 9737 |
|
else |
| 9738 |
|
break |
| 9739 |
|
fi |
| 9740 |
|
;; |
| 9741 |
< |
msvisualcpp | msvcmsys) |
| 9742 |
< |
# This compiler won't grok `-c -o', but also, the minuso test has |
| 9741 |
> |
msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
| 9742 |
> |
# This compiler won't grok '-c -o', but also, the minuso test has |
| 9743 |
|
# not run yet. These depmodes are late enough in the game, and |
| 9744 |
|
# so weak that their functioning should not be impacted. |
| 9745 |
|
am__obj=conftest.${OBJEXT-o} |
| 9787 |
|
# AM_SET_DEPDIR |
| 9788 |
|
# ------------- |
| 9789 |
|
# Choose a directory name for dependency files. |
| 9790 |
< |
# This macro is AC_REQUIREd in _AM_DEPENDENCIES |
| 9790 |
> |
# This macro is AC_REQUIREd in _AM_DEPENDENCIES. |
| 9791 |
|
AC_DEFUN([AM_SET_DEPDIR], |
| 9792 |
|
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl |
| 9793 |
|
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl |
| 9797 |
|
# AM_DEP_TRACK |
| 9798 |
|
# ------------ |
| 9799 |
|
AC_DEFUN([AM_DEP_TRACK], |
| 9800 |
< |
[AC_ARG_ENABLE(dependency-tracking, |
| 9801 |
< |
[ --disable-dependency-tracking speeds up one-time build |
| 9802 |
< |
--enable-dependency-tracking do not reject slow dependency extractors]) |
| 9800 |
> |
[AC_ARG_ENABLE([dependency-tracking], [dnl |
| 9801 |
> |
AS_HELP_STRING( |
| 9802 |
> |
[--enable-dependency-tracking], |
| 9803 |
> |
[do not reject slow dependency extractors]) |
| 9804 |
> |
AS_HELP_STRING( |
| 9805 |
> |
[--disable-dependency-tracking], |
| 9806 |
> |
[speeds up one-time build])]) |
| 9807 |
|
if test "x$enable_dependency_tracking" != xno; then |
| 9808 |
|
am_depcomp="$ac_aux_dir/depcomp" |
| 9809 |
|
AMDEPBACKSLASH='\' |
| 9810 |
+ |
am__nodep='_no' |
| 9811 |
|
fi |
| 9812 |
|
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) |
| 9813 |
|
AC_SUBST([AMDEPBACKSLASH])dnl |
| 9814 |
|
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl |
| 9815 |
+ |
AC_SUBST([am__nodep])dnl |
| 9816 |
+ |
_AM_SUBST_NOTMAKE([am__nodep])dnl |
| 9817 |
|
]) |
| 9818 |
|
|
| 9819 |
|
# Generate code to set up dependency tracking. -*- Autoconf -*- |
| 9820 |
|
|
| 9821 |
< |
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 |
| 9251 |
< |
# Free Software Foundation, Inc. |
| 9821 |
> |
# Copyright (C) 1999-2013 Free Software Foundation, Inc. |
| 9822 |
|
# |
| 9823 |
|
# This file is free software; the Free Software Foundation |
| 9824 |
|
# gives unlimited permission to copy and/or distribute it, |
| 9825 |
|
# with or without modifications, as long as this notice is preserved. |
| 9826 |
|
|
| 9257 |
– |
#serial 5 |
| 9827 |
|
|
| 9828 |
|
# _AM_OUTPUT_DEPENDENCY_COMMANDS |
| 9829 |
|
# ------------------------------ |
| 9830 |
|
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], |
| 9831 |
|
[{ |
| 9832 |
< |
# Autoconf 2.62 quotes --file arguments for eval, but not when files |
| 9832 |
> |
# Older Autoconf quotes --file arguments for eval, but not when files |
| 9833 |
|
# are listed without --file. Let's play safe and only enable the eval |
| 9834 |
|
# if we detect the quoting. |
| 9835 |
|
case $CONFIG_FILES in |
| 9842 |
|
# Strip MF so we end up with the name of the file. |
| 9843 |
|
mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 9844 |
|
# Check whether this is an Automake generated Makefile or not. |
| 9845 |
< |
# We used to match only the files named `Makefile.in', but |
| 9845 |
> |
# We used to match only the files named 'Makefile.in', but |
| 9846 |
|
# some people rename them; so instead we look at the file content. |
| 9847 |
|
# Grep'ing the first line is not enough: some people post-process |
| 9848 |
|
# each Makefile.in and add a new line on top of each file to say so. |
| 9854 |
|
continue |
| 9855 |
|
fi |
| 9856 |
|
# Extract the definition of DEPDIR, am__include, and am__quote |
| 9857 |
< |
# from the Makefile without running `make'. |
| 9857 |
> |
# from the Makefile without running 'make'. |
| 9858 |
|
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 9859 |
|
test -z "$DEPDIR" && continue |
| 9860 |
|
am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 9861 |
< |
test -z "am__include" && continue |
| 9861 |
> |
test -z "$am__include" && continue |
| 9862 |
|
am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 9294 |
– |
# When using ansi2knr, U may be empty or an underscore; expand it |
| 9295 |
– |
U=`sed -n 's/^U = //p' < "$mf"` |
| 9863 |
|
# Find all dependency output files, they are included files with |
| 9864 |
|
# $(DEPDIR) in their names. We invoke sed twice because it is the |
| 9865 |
|
# simplest approach to changing $(DEPDIR) to its actual value in the |
| 9866 |
|
# expansion. |
| 9867 |
|
for file in `sed -n " |
| 9868 |
|
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 9869 |
< |
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 9869 |
> |
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
| 9870 |
|
# Make sure the directory exists. |
| 9871 |
|
test -f "$dirpart/$file" && continue |
| 9872 |
|
fdir=`AS_DIRNAME(["$file"])` |
| 9884 |
|
# This macro should only be invoked once -- use via AC_REQUIRE. |
| 9885 |
|
# |
| 9886 |
|
# This code is only required when automatic dependency tracking |
| 9887 |
< |
# is enabled. FIXME. This creates each `.P' file that we will |
| 9887 |
> |
# is enabled. FIXME. This creates each '.P' file that we will |
| 9888 |
|
# need in order to bootstrap the dependency handling code. |
| 9889 |
|
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], |
| 9890 |
|
[AC_CONFIG_COMMANDS([depfiles], |
| 9894 |
|
|
| 9895 |
|
# Do all the work for Automake. -*- Autoconf -*- |
| 9896 |
|
|
| 9897 |
< |
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
| 9331 |
< |
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc. |
| 9897 |
> |
# Copyright (C) 1996-2013 Free Software Foundation, Inc. |
| 9898 |
|
# |
| 9899 |
|
# This file is free software; the Free Software Foundation |
| 9900 |
|
# gives unlimited permission to copy and/or distribute it, |
| 9901 |
|
# with or without modifications, as long as this notice is preserved. |
| 9902 |
|
|
| 9337 |
– |
# serial 16 |
| 9338 |
– |
|
| 9903 |
|
# This macro actually does too much. Some checks are only needed if |
| 9904 |
|
# your package does certain things. But this isn't really a big deal. |
| 9905 |
|
|
| 9915 |
|
# arguments mandatory, and then we can depend on a new Autoconf |
| 9916 |
|
# release and drop the old call support. |
| 9917 |
|
AC_DEFUN([AM_INIT_AUTOMAKE], |
| 9918 |
< |
[AC_PREREQ([2.62])dnl |
| 9918 |
> |
[AC_PREREQ([2.65])dnl |
| 9919 |
|
dnl Autoconf wants to disallow AM_ names. We explicitly allow |
| 9920 |
|
dnl the ones we care about. |
| 9921 |
|
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl |
| 9944 |
|
# Define the identity of the package. |
| 9945 |
|
dnl Distinguish between old-style and new-style calls. |
| 9946 |
|
m4_ifval([$2], |
| 9947 |
< |
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl |
| 9947 |
> |
[AC_DIAGNOSE([obsolete], |
| 9948 |
> |
[$0: two- and three-arguments forms are deprecated.]) |
| 9949 |
> |
m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl |
| 9950 |
|
AC_SUBST([PACKAGE], [$1])dnl |
| 9951 |
|
AC_SUBST([VERSION], [$2])], |
| 9952 |
|
[_AM_SET_OPTIONS([$1])dnl |
| 9953 |
|
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. |
| 9954 |
< |
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, |
| 9954 |
> |
m4_if( |
| 9955 |
> |
m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), |
| 9956 |
> |
[ok:ok],, |
| 9957 |
|
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl |
| 9958 |
|
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl |
| 9959 |
|
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl |
| 9960 |
|
|
| 9961 |
|
_AM_IF_OPTION([no-define],, |
| 9962 |
< |
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) |
| 9963 |
< |
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl |
| 9962 |
> |
[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) |
| 9963 |
> |
AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl |
| 9964 |
|
|
| 9965 |
|
# Some tools Automake needs. |
| 9966 |
|
AC_REQUIRE([AM_SANITY_CHECK])dnl |
| 9967 |
|
AC_REQUIRE([AC_ARG_PROGRAM])dnl |
| 9968 |
< |
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) |
| 9969 |
< |
AM_MISSING_PROG(AUTOCONF, autoconf) |
| 9970 |
< |
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) |
| 9971 |
< |
AM_MISSING_PROG(AUTOHEADER, autoheader) |
| 9972 |
< |
AM_MISSING_PROG(MAKEINFO, makeinfo) |
| 9968 |
> |
AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) |
| 9969 |
> |
AM_MISSING_PROG([AUTOCONF], [autoconf]) |
| 9970 |
> |
AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) |
| 9971 |
> |
AM_MISSING_PROG([AUTOHEADER], [autoheader]) |
| 9972 |
> |
AM_MISSING_PROG([MAKEINFO], [makeinfo]) |
| 9973 |
|
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl |
| 9974 |
|
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl |
| 9975 |
< |
AC_REQUIRE([AM_PROG_MKDIR_P])dnl |
| 9975 |
> |
AC_REQUIRE([AC_PROG_MKDIR_P])dnl |
| 9976 |
> |
# For better backward compatibility. To be removed once Automake 1.9.x |
| 9977 |
> |
# dies out for good. For more background, see: |
| 9978 |
> |
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
| 9979 |
> |
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> |
| 9980 |
> |
AC_SUBST([mkdir_p], ['$(MKDIR_P)']) |
| 9981 |
|
# We need awk for the "check" target. The system "awk" is bad on |
| 9982 |
|
# some platforms. |
| 9983 |
|
AC_REQUIRE([AC_PROG_AWK])dnl |
| 9988 |
|
[_AM_PROG_TAR([v7])])]) |
| 9989 |
|
_AM_IF_OPTION([no-dependencies],, |
| 9990 |
|
[AC_PROVIDE_IFELSE([AC_PROG_CC], |
| 9991 |
< |
[_AM_DEPENDENCIES(CC)], |
| 9992 |
< |
[define([AC_PROG_CC], |
| 9993 |
< |
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl |
| 9991 |
> |
[_AM_DEPENDENCIES([CC])], |
| 9992 |
> |
[m4_define([AC_PROG_CC], |
| 9993 |
> |
m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl |
| 9994 |
|
AC_PROVIDE_IFELSE([AC_PROG_CXX], |
| 9995 |
< |
[_AM_DEPENDENCIES(CXX)], |
| 9996 |
< |
[define([AC_PROG_CXX], |
| 9997 |
< |
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl |
| 9995 |
> |
[_AM_DEPENDENCIES([CXX])], |
| 9996 |
> |
[m4_define([AC_PROG_CXX], |
| 9997 |
> |
m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl |
| 9998 |
|
AC_PROVIDE_IFELSE([AC_PROG_OBJC], |
| 9999 |
< |
[_AM_DEPENDENCIES(OBJC)], |
| 10000 |
< |
[define([AC_PROG_OBJC], |
| 10001 |
< |
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl |
| 10002 |
< |
]) |
| 10003 |
< |
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl |
| 10004 |
< |
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the |
| 10005 |
< |
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro |
| 10006 |
< |
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. |
| 9999 |
> |
[_AM_DEPENDENCIES([OBJC])], |
| 10000 |
> |
[m4_define([AC_PROG_OBJC], |
| 10001 |
> |
m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl |
| 10002 |
> |
AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], |
| 10003 |
> |
[_AM_DEPENDENCIES([OBJCXX])], |
| 10004 |
> |
[m4_define([AC_PROG_OBJCXX], |
| 10005 |
> |
m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl |
| 10006 |
> |
]) |
| 10007 |
> |
AC_REQUIRE([AM_SILENT_RULES])dnl |
| 10008 |
> |
dnl The testsuite driver may need to know about EXEEXT, so add the |
| 10009 |
> |
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This |
| 10010 |
> |
dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. |
| 10011 |
|
AC_CONFIG_COMMANDS_PRE(dnl |
| 10012 |
|
[m4_provide_if([_AM_COMPILER_EXEEXT], |
| 10013 |
|
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl |
| 10014 |
|
]) |
| 10015 |
|
|
| 10016 |
< |
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not |
| 10016 |
> |
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not |
| 10017 |
|
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further |
| 10018 |
|
dnl mangled by Autoconf and run in a shell conditional statement. |
| 10019 |
|
m4_define([_AC_COMPILER_EXEEXT], |
| 10041 |
|
done |
| 10042 |
|
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) |
| 10043 |
|
|
| 10044 |
< |
# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc. |
| 10044 |
> |
# Copyright (C) 2001-2013 Free Software Foundation, Inc. |
| 10045 |
|
# |
| 10046 |
|
# This file is free software; the Free Software Foundation |
| 10047 |
|
# gives unlimited permission to copy and/or distribute it, |
| 10060 |
|
install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 10061 |
|
esac |
| 10062 |
|
fi |
| 10063 |
< |
AC_SUBST(install_sh)]) |
| 10063 |
> |
AC_SUBST([install_sh])]) |
| 10064 |
|
|
| 10065 |
< |
# Copyright (C) 2003, 2005 Free Software Foundation, Inc. |
| 10065 |
> |
# Copyright (C) 2003-2013 Free Software Foundation, Inc. |
| 10066 |
|
# |
| 10067 |
|
# This file is free software; the Free Software Foundation |
| 10068 |
|
# gives unlimited permission to copy and/or distribute it, |
| 10069 |
|
# with or without modifications, as long as this notice is preserved. |
| 10070 |
|
|
| 9494 |
– |
# serial 2 |
| 9495 |
– |
|
| 10071 |
|
# Check whether the underlying file-system supports filenames |
| 10072 |
|
# with a leading dot. For instance MS-DOS doesn't. |
| 10073 |
|
AC_DEFUN([AM_SET_LEADING_DOT], |
| 10081 |
|
rmdir .tst 2>/dev/null |
| 10082 |
|
AC_SUBST([am__leading_dot])]) |
| 10083 |
|
|
| 10084 |
< |
# Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2005 |
| 9510 |
< |
# Free Software Foundation, Inc. |
| 10084 |
> |
# Copyright (C) 1998-2013 Free Software Foundation, Inc. |
| 10085 |
|
# |
| 10086 |
|
# This file is free software; the Free Software Foundation |
| 10087 |
|
# gives unlimited permission to copy and/or distribute it, |
| 10088 |
|
# with or without modifications, as long as this notice is preserved. |
| 10089 |
|
|
| 9516 |
– |
# serial 5 |
| 9517 |
– |
|
| 10090 |
|
# AM_PROG_LEX |
| 10091 |
|
# ----------- |
| 10092 |
|
# Autoconf leaves LEX=: if lex or flex can't be found. Change that to a |
| 10093 |
|
# "missing" invocation, for better error output. |
| 10094 |
|
AC_DEFUN([AM_PROG_LEX], |
| 10095 |
< |
[AC_PREREQ(2.50)dnl |
| 10095 |
> |
[AC_PREREQ([2.50])dnl |
| 10096 |
|
AC_REQUIRE([AM_MISSING_HAS_RUN])dnl |
| 10097 |
|
AC_REQUIRE([AC_PROG_LEX])dnl |
| 10098 |
|
if test "$LEX" = :; then |
| 10102 |
|
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- |
| 10103 |
|
# From Jim Meyering |
| 10104 |
|
|
| 10105 |
< |
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008 |
| 9534 |
< |
# Free Software Foundation, Inc. |
| 10105 |
> |
# Copyright (C) 1996-2013 Free Software Foundation, Inc. |
| 10106 |
|
# |
| 10107 |
|
# This file is free software; the Free Software Foundation |
| 10108 |
|
# gives unlimited permission to copy and/or distribute it, |
| 10109 |
|
# with or without modifications, as long as this notice is preserved. |
| 10110 |
|
|
| 9540 |
– |
# serial 5 |
| 9541 |
– |
|
| 10111 |
|
# AM_MAINTAINER_MODE([DEFAULT-MODE]) |
| 10112 |
|
# ---------------------------------- |
| 10113 |
|
# Control maintainer-specific portions of Makefiles. |
| 10114 |
< |
# Default is to disable them, unless `enable' is passed literally. |
| 10115 |
< |
# For symmetry, `disable' may be passed as well. Anyway, the user |
| 10114 |
> |
# Default is to disable them, unless 'enable' is passed literally. |
| 10115 |
> |
# For symmetry, 'disable' may be passed as well. Anyway, the user |
| 10116 |
|
# can override the default with the --enable/--disable switch. |
| 10117 |
|
AC_DEFUN([AM_MAINTAINER_MODE], |
| 10118 |
|
[m4_case(m4_default([$1], [disable]), |
| 10120 |
|
[disable], [m4_define([am_maintainer_other], [enable])], |
| 10121 |
|
[m4_define([am_maintainer_other], [enable]) |
| 10122 |
|
m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) |
| 10123 |
< |
AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles]) |
| 10123 |
> |
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) |
| 10124 |
|
dnl maintainer-mode's default is 'disable' unless 'enable' is passed |
| 10125 |
|
AC_ARG_ENABLE([maintainer-mode], |
| 10126 |
< |
[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful |
| 10127 |
< |
(and sometimes confusing) to the casual installer], |
| 10128 |
< |
[USE_MAINTAINER_MODE=$enableval], |
| 10129 |
< |
[USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) |
| 10126 |
> |
[AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode], |
| 10127 |
> |
am_maintainer_other[ make rules and dependencies not useful |
| 10128 |
> |
(and sometimes confusing) to the casual installer])], |
| 10129 |
> |
[USE_MAINTAINER_MODE=$enableval], |
| 10130 |
> |
[USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) |
| 10131 |
|
AC_MSG_RESULT([$USE_MAINTAINER_MODE]) |
| 10132 |
|
AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) |
| 10133 |
|
MAINT=$MAINTAINER_MODE_TRUE |
| 10135 |
|
] |
| 10136 |
|
) |
| 10137 |
|
|
| 9568 |
– |
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) |
| 9569 |
– |
|
| 10138 |
|
# Check to see how 'make' treats includes. -*- Autoconf -*- |
| 10139 |
|
|
| 10140 |
< |
# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. |
| 10140 |
> |
# Copyright (C) 2001-2013 Free Software Foundation, Inc. |
| 10141 |
|
# |
| 10142 |
|
# This file is free software; the Free Software Foundation |
| 10143 |
|
# gives unlimited permission to copy and/or distribute it, |
| 10144 |
|
# with or without modifications, as long as this notice is preserved. |
| 10145 |
|
|
| 9578 |
– |
# serial 4 |
| 9579 |
– |
|
| 10146 |
|
# AM_MAKE_INCLUDE() |
| 10147 |
|
# ----------------- |
| 10148 |
|
# Check to see how make treats includes. |
| 10160 |
|
_am_result=none |
| 10161 |
|
# First try GNU make style include. |
| 10162 |
|
echo "include confinc" > confmf |
| 10163 |
< |
# Ignore all kinds of additional output from `make'. |
| 10163 |
> |
# Ignore all kinds of additional output from 'make'. |
| 10164 |
|
case `$am_make -s -f confmf 2> /dev/null` in #( |
| 10165 |
|
*the\ am__doit\ target*) |
| 10166 |
|
am__include=include |
| 10187 |
|
|
| 10188 |
|
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- |
| 10189 |
|
|
| 10190 |
< |
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 |
| 9625 |
< |
# Free Software Foundation, Inc. |
| 10190 |
> |
# Copyright (C) 1997-2013 Free Software Foundation, Inc. |
| 10191 |
|
# |
| 10192 |
|
# This file is free software; the Free Software Foundation |
| 10193 |
|
# gives unlimited permission to copy and/or distribute it, |
| 10194 |
|
# with or without modifications, as long as this notice is preserved. |
| 10195 |
|
|
| 9631 |
– |
# serial 6 |
| 9632 |
– |
|
| 10196 |
|
# AM_MISSING_PROG(NAME, PROGRAM) |
| 10197 |
|
# ------------------------------ |
| 10198 |
|
AC_DEFUN([AM_MISSING_PROG], |
| 10200 |
|
$1=${$1-"${am_missing_run}$2"} |
| 10201 |
|
AC_SUBST($1)]) |
| 10202 |
|
|
| 9640 |
– |
|
| 10203 |
|
# AM_MISSING_HAS_RUN |
| 10204 |
|
# ------------------ |
| 10205 |
< |
# Define MISSING if not defined so far and test if it supports --run. |
| 10206 |
< |
# If it does, set am_missing_run to use it, otherwise, to nothing. |
| 10205 |
> |
# Define MISSING if not defined so far and test if it is modern enough. |
| 10206 |
> |
# If it is, set am_missing_run to use it, otherwise, to nothing. |
| 10207 |
|
AC_DEFUN([AM_MISSING_HAS_RUN], |
| 10208 |
|
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
| 10209 |
|
AC_REQUIRE_AUX_FILE([missing])dnl |
| 10216 |
|
esac |
| 10217 |
|
fi |
| 10218 |
|
# Use eval to expand $SHELL |
| 10219 |
< |
if eval "$MISSING --run true"; then |
| 10220 |
< |
am_missing_run="$MISSING --run " |
| 10219 |
> |
if eval "$MISSING --is-lightweight"; then |
| 10220 |
> |
am_missing_run="$MISSING " |
| 10221 |
|
else |
| 10222 |
|
am_missing_run= |
| 10223 |
< |
AC_MSG_WARN([`missing' script is too old or missing]) |
| 10223 |
> |
AC_MSG_WARN(['missing' script is too old or missing]) |
| 10224 |
|
fi |
| 10225 |
|
]) |
| 10226 |
|
|
| 9665 |
– |
# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
| 9666 |
– |
# |
| 9667 |
– |
# This file is free software; the Free Software Foundation |
| 9668 |
– |
# gives unlimited permission to copy and/or distribute it, |
| 9669 |
– |
# with or without modifications, as long as this notice is preserved. |
| 9670 |
– |
|
| 9671 |
– |
# AM_PROG_MKDIR_P |
| 9672 |
– |
# --------------- |
| 9673 |
– |
# Check for `mkdir -p'. |
| 9674 |
– |
AC_DEFUN([AM_PROG_MKDIR_P], |
| 9675 |
– |
[AC_PREREQ([2.60])dnl |
| 9676 |
– |
AC_REQUIRE([AC_PROG_MKDIR_P])dnl |
| 9677 |
– |
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, |
| 9678 |
– |
dnl while keeping a definition of mkdir_p for backward compatibility. |
| 9679 |
– |
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. |
| 9680 |
– |
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of |
| 9681 |
– |
dnl Makefile.ins that do not define MKDIR_P, so we do our own |
| 9682 |
– |
dnl adjustment using top_builddir (which is defined more often than |
| 9683 |
– |
dnl MKDIR_P). |
| 9684 |
– |
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl |
| 9685 |
– |
case $mkdir_p in |
| 9686 |
– |
[[\\/$]]* | ?:[[\\/]]*) ;; |
| 9687 |
– |
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
| 9688 |
– |
esac |
| 9689 |
– |
]) |
| 9690 |
– |
|
| 10227 |
|
# Helper functions for option handling. -*- Autoconf -*- |
| 10228 |
|
|
| 10229 |
< |
# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. |
| 10229 |
> |
# Copyright (C) 2001-2013 Free Software Foundation, Inc. |
| 10230 |
|
# |
| 10231 |
|
# This file is free software; the Free Software Foundation |
| 10232 |
|
# gives unlimited permission to copy and/or distribute it, |
| 10233 |
|
# with or without modifications, as long as this notice is preserved. |
| 10234 |
|
|
| 9699 |
– |
# serial 4 |
| 9700 |
– |
|
| 10235 |
|
# _AM_MANGLE_OPTION(NAME) |
| 10236 |
|
# ----------------------- |
| 10237 |
|
AC_DEFUN([_AM_MANGLE_OPTION], |
| 10238 |
|
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) |
| 10239 |
|
|
| 10240 |
|
# _AM_SET_OPTION(NAME) |
| 10241 |
< |
# ------------------------------ |
| 10241 |
> |
# -------------------- |
| 10242 |
|
# Set option NAME. Presently that only means defining a flag for this option. |
| 10243 |
|
AC_DEFUN([_AM_SET_OPTION], |
| 10244 |
< |
[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) |
| 10244 |
> |
[m4_define(_AM_MANGLE_OPTION([$1]), [1])]) |
| 10245 |
|
|
| 10246 |
|
# _AM_SET_OPTIONS(OPTIONS) |
| 10247 |
< |
# ---------------------------------- |
| 10247 |
> |
# ------------------------ |
| 10248 |
|
# OPTIONS is a space-separated list of Automake options. |
| 10249 |
|
AC_DEFUN([_AM_SET_OPTIONS], |
| 10250 |
|
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) |
| 10257 |
|
|
| 10258 |
|
# Check to make sure that the build environment is sane. -*- Autoconf -*- |
| 10259 |
|
|
| 10260 |
< |
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 |
| 9727 |
< |
# Free Software Foundation, Inc. |
| 10260 |
> |
# Copyright (C) 1996-2013 Free Software Foundation, Inc. |
| 10261 |
|
# |
| 10262 |
|
# This file is free software; the Free Software Foundation |
| 10263 |
|
# gives unlimited permission to copy and/or distribute it, |
| 10264 |
|
# with or without modifications, as long as this notice is preserved. |
| 10265 |
|
|
| 9733 |
– |
# serial 5 |
| 9734 |
– |
|
| 10266 |
|
# AM_SANITY_CHECK |
| 10267 |
|
# --------------- |
| 10268 |
|
AC_DEFUN([AM_SANITY_CHECK], |
| 10269 |
|
[AC_MSG_CHECKING([whether build environment is sane]) |
| 9739 |
– |
# Just in case |
| 9740 |
– |
sleep 1 |
| 9741 |
– |
echo timestamp > conftest.file |
| 10270 |
|
# Reject unsafe characters in $srcdir or the absolute working directory |
| 10271 |
|
# name. Accept space and tab only in the latter. |
| 10272 |
|
am_lf=' |
| 10277 |
|
esac |
| 10278 |
|
case $srcdir in |
| 10279 |
|
*[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) |
| 10280 |
< |
AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; |
| 10280 |
> |
AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; |
| 10281 |
|
esac |
| 10282 |
|
|
| 10283 |
< |
# Do `set' in a subshell so we don't clobber the current shell's |
| 10283 |
> |
# Do 'set' in a subshell so we don't clobber the current shell's |
| 10284 |
|
# arguments. Must try -L first in case configure is actually a |
| 10285 |
|
# symlink; some systems play weird games with the mod time of symlinks |
| 10286 |
|
# (eg FreeBSD returns the mod time of the symlink's containing |
| 10287 |
|
# directory). |
| 10288 |
|
if ( |
| 10289 |
< |
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
| 10290 |
< |
if test "$[*]" = "X"; then |
| 10291 |
< |
# -L didn't work. |
| 10292 |
< |
set X `ls -t "$srcdir/configure" conftest.file` |
| 10293 |
< |
fi |
| 10294 |
< |
rm -f conftest.file |
| 10295 |
< |
if test "$[*]" != "X $srcdir/configure conftest.file" \ |
| 10296 |
< |
&& test "$[*]" != "X conftest.file $srcdir/configure"; then |
| 10297 |
< |
|
| 10298 |
< |
# If neither matched, then we have a broken ls. This can happen |
| 9771 |
< |
# if, for instance, CONFIG_SHELL is bash and it inherits a |
| 9772 |
< |
# broken ls alias from the environment. This has actually |
| 9773 |
< |
# happened. Such a system could not be considered "sane". |
| 9774 |
< |
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken |
| 9775 |
< |
alias in your environment]) |
| 9776 |
< |
fi |
| 10289 |
> |
am_has_slept=no |
| 10290 |
> |
for am_try in 1 2; do |
| 10291 |
> |
echo "timestamp, slept: $am_has_slept" > conftest.file |
| 10292 |
> |
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
| 10293 |
> |
if test "$[*]" = "X"; then |
| 10294 |
> |
# -L didn't work. |
| 10295 |
> |
set X `ls -t "$srcdir/configure" conftest.file` |
| 10296 |
> |
fi |
| 10297 |
> |
if test "$[*]" != "X $srcdir/configure conftest.file" \ |
| 10298 |
> |
&& test "$[*]" != "X conftest.file $srcdir/configure"; then |
| 10299 |
|
|
| 10300 |
+ |
# If neither matched, then we have a broken ls. This can happen |
| 10301 |
+ |
# if, for instance, CONFIG_SHELL is bash and it inherits a |
| 10302 |
+ |
# broken ls alias from the environment. This has actually |
| 10303 |
+ |
# happened. Such a system could not be considered "sane". |
| 10304 |
+ |
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken |
| 10305 |
+ |
alias in your environment]) |
| 10306 |
+ |
fi |
| 10307 |
+ |
if test "$[2]" = conftest.file || test $am_try -eq 2; then |
| 10308 |
+ |
break |
| 10309 |
+ |
fi |
| 10310 |
+ |
# Just in case. |
| 10311 |
+ |
sleep 1 |
| 10312 |
+ |
am_has_slept=yes |
| 10313 |
+ |
done |
| 10314 |
|
test "$[2]" = conftest.file |
| 10315 |
|
) |
| 10316 |
|
then |
| 10320 |
|
AC_MSG_ERROR([newly created file is older than distributed files! |
| 10321 |
|
Check your system clock]) |
| 10322 |
|
fi |
| 10323 |
< |
AC_MSG_RESULT(yes)]) |
| 10323 |
> |
AC_MSG_RESULT([yes]) |
| 10324 |
> |
# If we didn't sleep, we still need to ensure time stamps of config.status and |
| 10325 |
> |
# generated files are strictly newer. |
| 10326 |
> |
am_sleep_pid= |
| 10327 |
> |
if grep 'slept: no' conftest.file >/dev/null 2>&1; then |
| 10328 |
> |
( sleep 1 ) & |
| 10329 |
> |
am_sleep_pid=$! |
| 10330 |
> |
fi |
| 10331 |
> |
AC_CONFIG_COMMANDS_PRE( |
| 10332 |
> |
[AC_MSG_CHECKING([that generated files are newer than configure]) |
| 10333 |
> |
if test -n "$am_sleep_pid"; then |
| 10334 |
> |
# Hide warnings about reused PIDs. |
| 10335 |
> |
wait $am_sleep_pid 2>/dev/null |
| 10336 |
> |
fi |
| 10337 |
> |
AC_MSG_RESULT([done])]) |
| 10338 |
> |
rm -f conftest.file |
| 10339 |
> |
]) |
| 10340 |
> |
|
| 10341 |
> |
# Copyright (C) 2009-2013 Free Software Foundation, Inc. |
| 10342 |
> |
# |
| 10343 |
> |
# This file is free software; the Free Software Foundation |
| 10344 |
> |
# gives unlimited permission to copy and/or distribute it, |
| 10345 |
> |
# with or without modifications, as long as this notice is preserved. |
| 10346 |
> |
|
| 10347 |
> |
# AM_SILENT_RULES([DEFAULT]) |
| 10348 |
> |
# -------------------------- |
| 10349 |
> |
# Enable less verbose build rules; with the default set to DEFAULT |
| 10350 |
> |
# ("yes" being less verbose, "no" or empty being verbose). |
| 10351 |
> |
AC_DEFUN([AM_SILENT_RULES], |
| 10352 |
> |
[AC_ARG_ENABLE([silent-rules], [dnl |
| 10353 |
> |
AS_HELP_STRING( |
| 10354 |
> |
[--enable-silent-rules], |
| 10355 |
> |
[less verbose build output (undo: "make V=1")]) |
| 10356 |
> |
AS_HELP_STRING( |
| 10357 |
> |
[--disable-silent-rules], |
| 10358 |
> |
[verbose build output (undo: "make V=0")])dnl |
| 10359 |
> |
]) |
| 10360 |
> |
case $enable_silent_rules in @%:@ ((( |
| 10361 |
> |
yes) AM_DEFAULT_VERBOSITY=0;; |
| 10362 |
> |
no) AM_DEFAULT_VERBOSITY=1;; |
| 10363 |
> |
*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; |
| 10364 |
> |
esac |
| 10365 |
> |
dnl |
| 10366 |
> |
dnl A few 'make' implementations (e.g., NonStop OS and NextStep) |
| 10367 |
> |
dnl do not support nested variable expansions. |
| 10368 |
> |
dnl See automake bug#9928 and bug#10237. |
| 10369 |
> |
am_make=${MAKE-make} |
| 10370 |
> |
AC_CACHE_CHECK([whether $am_make supports nested variables], |
| 10371 |
> |
[am_cv_make_support_nested_variables], |
| 10372 |
> |
[if AS_ECHO([['TRUE=$(BAR$(V)) |
| 10373 |
> |
BAR0=false |
| 10374 |
> |
BAR1=true |
| 10375 |
> |
V=1 |
| 10376 |
> |
am__doit: |
| 10377 |
> |
@$(TRUE) |
| 10378 |
> |
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then |
| 10379 |
> |
am_cv_make_support_nested_variables=yes |
| 10380 |
> |
else |
| 10381 |
> |
am_cv_make_support_nested_variables=no |
| 10382 |
> |
fi]) |
| 10383 |
> |
if test $am_cv_make_support_nested_variables = yes; then |
| 10384 |
> |
dnl Using '$V' instead of '$(V)' breaks IRIX make. |
| 10385 |
> |
AM_V='$(V)' |
| 10386 |
> |
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
| 10387 |
> |
else |
| 10388 |
> |
AM_V=$AM_DEFAULT_VERBOSITY |
| 10389 |
> |
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
| 10390 |
> |
fi |
| 10391 |
> |
AC_SUBST([AM_V])dnl |
| 10392 |
> |
AM_SUBST_NOTMAKE([AM_V])dnl |
| 10393 |
> |
AC_SUBST([AM_DEFAULT_V])dnl |
| 10394 |
> |
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl |
| 10395 |
> |
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl |
| 10396 |
> |
AM_BACKSLASH='\' |
| 10397 |
> |
AC_SUBST([AM_BACKSLASH])dnl |
| 10398 |
> |
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl |
| 10399 |
> |
]) |
| 10400 |
|
|
| 10401 |
< |
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. |
| 10401 |
> |
# Copyright (C) 2001-2013 Free Software Foundation, Inc. |
| 10402 |
|
# |
| 10403 |
|
# This file is free software; the Free Software Foundation |
| 10404 |
|
# gives unlimited permission to copy and/or distribute it, |
| 10406 |
|
|
| 10407 |
|
# AM_PROG_INSTALL_STRIP |
| 10408 |
|
# --------------------- |
| 10409 |
< |
# One issue with vendor `install' (even GNU) is that you can't |
| 10409 |
> |
# One issue with vendor 'install' (even GNU) is that you can't |
| 10410 |
|
# specify the program used to strip binaries. This is especially |
| 10411 |
|
# annoying in cross-compiling environments, where the build's strip |
| 10412 |
|
# is unlikely to handle the host's binaries. |
| 10413 |
|
# Fortunately install-sh will honor a STRIPPROG variable, so we |
| 10414 |
< |
# always use install-sh in `make install-strip', and initialize |
| 10414 |
> |
# always use install-sh in "make install-strip", and initialize |
| 10415 |
|
# STRIPPROG with the value of the STRIP variable (set by the user). |
| 10416 |
|
AC_DEFUN([AM_PROG_INSTALL_STRIP], |
| 10417 |
|
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl |
| 10418 |
< |
# Installed binaries are usually stripped using `strip' when the user |
| 10419 |
< |
# run `make install-strip'. However `strip' might not be the right |
| 10418 |
> |
# Installed binaries are usually stripped using 'strip' when the user |
| 10419 |
> |
# run "make install-strip". However 'strip' might not be the right |
| 10420 |
|
# tool to use in cross-compilation environments, therefore Automake |
| 10421 |
< |
# will honor the `STRIP' environment variable to overrule this program. |
| 10422 |
< |
dnl Don't test for $cross_compiling = yes, because it might be `maybe'. |
| 10421 |
> |
# will honor the 'STRIP' environment variable to overrule this program. |
| 10422 |
> |
dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. |
| 10423 |
|
if test "$cross_compiling" != no; then |
| 10424 |
|
AC_CHECK_TOOL([STRIP], [strip], :) |
| 10425 |
|
fi |
| 10426 |
|
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 10427 |
|
AC_SUBST([INSTALL_STRIP_PROGRAM])]) |
| 10428 |
|
|
| 10429 |
< |
# Copyright (C) 2006, 2008 Free Software Foundation, Inc. |
| 10429 |
> |
# Copyright (C) 2006-2013 Free Software Foundation, Inc. |
| 10430 |
|
# |
| 10431 |
|
# This file is free software; the Free Software Foundation |
| 10432 |
|
# gives unlimited permission to copy and/or distribute it, |
| 10433 |
|
# with or without modifications, as long as this notice is preserved. |
| 10434 |
|
|
| 9823 |
– |
# serial 2 |
| 9824 |
– |
|
| 10435 |
|
# _AM_SUBST_NOTMAKE(VARIABLE) |
| 10436 |
|
# --------------------------- |
| 10437 |
|
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. |
| 10439 |
|
AC_DEFUN([_AM_SUBST_NOTMAKE]) |
| 10440 |
|
|
| 10441 |
|
# AM_SUBST_NOTMAKE(VARIABLE) |
| 10442 |
< |
# --------------------------- |
| 10442 |
> |
# -------------------------- |
| 10443 |
|
# Public sister of _AM_SUBST_NOTMAKE. |
| 10444 |
|
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) |
| 10445 |
|
|
| 10446 |
|
# Check how to create a tarball. -*- Autoconf -*- |
| 10447 |
|
|
| 10448 |
< |
# Copyright (C) 2004, 2005 Free Software Foundation, Inc. |
| 10448 |
> |
# Copyright (C) 2004-2013 Free Software Foundation, Inc. |
| 10449 |
|
# |
| 10450 |
|
# This file is free software; the Free Software Foundation |
| 10451 |
|
# gives unlimited permission to copy and/or distribute it, |
| 10452 |
|
# with or without modifications, as long as this notice is preserved. |
| 10453 |
|
|
| 9844 |
– |
# serial 2 |
| 9845 |
– |
|
| 10454 |
|
# _AM_PROG_TAR(FORMAT) |
| 10455 |
|
# -------------------- |
| 10456 |
|
# Check how to create a tarball in format FORMAT. |
| 10457 |
< |
# FORMAT should be one of `v7', `ustar', or `pax'. |
| 10457 |
> |
# FORMAT should be one of 'v7', 'ustar', or 'pax'. |
| 10458 |
|
# |
| 10459 |
|
# Substitute a variable $(am__tar) that is a command |
| 10460 |
|
# writing to stdout a FORMAT-tarball containing the directory |
| 10464 |
|
# Substitute a variable $(am__untar) that extract such |
| 10465 |
|
# a tarball read from stdin. |
| 10466 |
|
# $(am__untar) < result.tar |
| 10467 |
+ |
# |
| 10468 |
|
AC_DEFUN([_AM_PROG_TAR], |
| 10469 |
< |
[# Always define AMTAR for backward compatibility. |
| 10470 |
< |
AM_MISSING_PROG([AMTAR], [tar]) |
| 10471 |
< |
m4_if([$1], [v7], |
| 10472 |
< |
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], |
| 10473 |
< |
[m4_case([$1], [ustar],, [pax],, |
| 9865 |
< |
[m4_fatal([Unknown tar format])]) |
| 9866 |
< |
AC_MSG_CHECKING([how to create a $1 tar archive]) |
| 9867 |
< |
# Loop over all known methods to create a tar archive until one works. |
| 10469 |
> |
[# Always define AMTAR for backward compatibility. Yes, it's still used |
| 10470 |
> |
# in the wild :-( We should find a proper way to deprecate it ... |
| 10471 |
> |
AC_SUBST([AMTAR], ['$${TAR-tar}']) |
| 10472 |
> |
|
| 10473 |
> |
# We'll loop over all known methods to create a tar archive until one works. |
| 10474 |
|
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' |
| 9869 |
– |
_am_tools=${am_cv_prog_tar_$1-$_am_tools} |
| 9870 |
– |
# Do not fold the above two line into one, because Tru64 sh and |
| 9871 |
– |
# Solaris sh will not grok spaces in the rhs of `-'. |
| 9872 |
– |
for _am_tool in $_am_tools |
| 9873 |
– |
do |
| 9874 |
– |
case $_am_tool in |
| 9875 |
– |
gnutar) |
| 9876 |
– |
for _am_tar in tar gnutar gtar; |
| 9877 |
– |
do |
| 9878 |
– |
AM_RUN_LOG([$_am_tar --version]) && break |
| 9879 |
– |
done |
| 9880 |
– |
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' |
| 9881 |
– |
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' |
| 9882 |
– |
am__untar="$_am_tar -xf -" |
| 9883 |
– |
;; |
| 9884 |
– |
plaintar) |
| 9885 |
– |
# Must skip GNU tar: if it does not support --format= it doesn't create |
| 9886 |
– |
# ustar tarball either. |
| 9887 |
– |
(tar --version) >/dev/null 2>&1 && continue |
| 9888 |
– |
am__tar='tar chf - "$$tardir"' |
| 9889 |
– |
am__tar_='tar chf - "$tardir"' |
| 9890 |
– |
am__untar='tar xf -' |
| 9891 |
– |
;; |
| 9892 |
– |
pax) |
| 9893 |
– |
am__tar='pax -L -x $1 -w "$$tardir"' |
| 9894 |
– |
am__tar_='pax -L -x $1 -w "$tardir"' |
| 9895 |
– |
am__untar='pax -r' |
| 9896 |
– |
;; |
| 9897 |
– |
cpio) |
| 9898 |
– |
am__tar='find "$$tardir" -print | cpio -o -H $1 -L' |
| 9899 |
– |
am__tar_='find "$tardir" -print | cpio -o -H $1 -L' |
| 9900 |
– |
am__untar='cpio -i -H $1 -d' |
| 9901 |
– |
;; |
| 9902 |
– |
none) |
| 9903 |
– |
am__tar=false |
| 9904 |
– |
am__tar_=false |
| 9905 |
– |
am__untar=false |
| 9906 |
– |
;; |
| 9907 |
– |
esac |
| 10475 |
|
|
| 10476 |
< |
# If the value was cached, stop now. We just wanted to have am__tar |
| 10477 |
< |
# and am__untar set. |
| 10478 |
< |
test -n "${am_cv_prog_tar_$1}" && break |
| 10476 |
> |
m4_if([$1], [v7], |
| 10477 |
> |
[am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], |
| 10478 |
> |
|
| 10479 |
> |
[m4_case([$1], |
| 10480 |
> |
[ustar], |
| 10481 |
> |
[# The POSIX 1988 'ustar' format is defined with fixed-size fields. |
| 10482 |
> |
# There is notably a 21 bits limit for the UID and the GID. In fact, |
| 10483 |
> |
# the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 |
| 10484 |
> |
# and bug#13588). |
| 10485 |
> |
am_max_uid=2097151 # 2^21 - 1 |
| 10486 |
> |
am_max_gid=$am_max_uid |
| 10487 |
> |
# The $UID and $GID variables are not portable, so we need to resort |
| 10488 |
> |
# to the POSIX-mandated id(1) utility. Errors in the 'id' calls |
| 10489 |
> |
# below are definitely unexpected, so allow the users to see them |
| 10490 |
> |
# (that is, avoid stderr redirection). |
| 10491 |
> |
am_uid=`id -u || echo unknown` |
| 10492 |
> |
am_gid=`id -g || echo unknown` |
| 10493 |
> |
AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) |
| 10494 |
> |
if test $am_uid -le $am_max_uid; then |
| 10495 |
> |
AC_MSG_RESULT([yes]) |
| 10496 |
> |
else |
| 10497 |
> |
AC_MSG_RESULT([no]) |
| 10498 |
> |
_am_tools=none |
| 10499 |
> |
fi |
| 10500 |
> |
AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) |
| 10501 |
> |
if test $am_gid -le $am_max_gid; then |
| 10502 |
> |
AC_MSG_RESULT([yes]) |
| 10503 |
> |
else |
| 10504 |
> |
AC_MSG_RESULT([no]) |
| 10505 |
> |
_am_tools=none |
| 10506 |
> |
fi], |
| 10507 |
> |
|
| 10508 |
> |
[pax], |
| 10509 |
> |
[], |
| 10510 |
> |
|
| 10511 |
> |
[m4_fatal([Unknown tar format])]) |
| 10512 |
> |
|
| 10513 |
> |
AC_MSG_CHECKING([how to create a $1 tar archive]) |
| 10514 |
> |
|
| 10515 |
> |
# Go ahead even if we have the value already cached. We do so because we |
| 10516 |
> |
# need to set the values for the 'am__tar' and 'am__untar' variables. |
| 10517 |
> |
_am_tools=${am_cv_prog_tar_$1-$_am_tools} |
| 10518 |
> |
|
| 10519 |
> |
for _am_tool in $_am_tools; do |
| 10520 |
> |
case $_am_tool in |
| 10521 |
> |
gnutar) |
| 10522 |
> |
for _am_tar in tar gnutar gtar; do |
| 10523 |
> |
AM_RUN_LOG([$_am_tar --version]) && break |
| 10524 |
> |
done |
| 10525 |
> |
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' |
| 10526 |
> |
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' |
| 10527 |
> |
am__untar="$_am_tar -xf -" |
| 10528 |
> |
;; |
| 10529 |
> |
plaintar) |
| 10530 |
> |
# Must skip GNU tar: if it does not support --format= it doesn't create |
| 10531 |
> |
# ustar tarball either. |
| 10532 |
> |
(tar --version) >/dev/null 2>&1 && continue |
| 10533 |
> |
am__tar='tar chf - "$$tardir"' |
| 10534 |
> |
am__tar_='tar chf - "$tardir"' |
| 10535 |
> |
am__untar='tar xf -' |
| 10536 |
> |
;; |
| 10537 |
> |
pax) |
| 10538 |
> |
am__tar='pax -L -x $1 -w "$$tardir"' |
| 10539 |
> |
am__tar_='pax -L -x $1 -w "$tardir"' |
| 10540 |
> |
am__untar='pax -r' |
| 10541 |
> |
;; |
| 10542 |
> |
cpio) |
| 10543 |
> |
am__tar='find "$$tardir" -print | cpio -o -H $1 -L' |
| 10544 |
> |
am__tar_='find "$tardir" -print | cpio -o -H $1 -L' |
| 10545 |
> |
am__untar='cpio -i -H $1 -d' |
| 10546 |
> |
;; |
| 10547 |
> |
none) |
| 10548 |
> |
am__tar=false |
| 10549 |
> |
am__tar_=false |
| 10550 |
> |
am__untar=false |
| 10551 |
> |
;; |
| 10552 |
> |
esac |
| 10553 |
|
|
| 10554 |
< |
# tar/untar a dummy directory, and stop if the command works |
| 10555 |
< |
rm -rf conftest.dir |
| 10556 |
< |
mkdir conftest.dir |
| 10557 |
< |
echo GrepMe > conftest.dir/file |
| 10558 |
< |
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) |
| 10554 |
> |
# If the value was cached, stop now. We just wanted to have am__tar |
| 10555 |
> |
# and am__untar set. |
| 10556 |
> |
test -n "${am_cv_prog_tar_$1}" && break |
| 10557 |
> |
|
| 10558 |
> |
# tar/untar a dummy directory, and stop if the command works. |
| 10559 |
> |
rm -rf conftest.dir |
| 10560 |
> |
mkdir conftest.dir |
| 10561 |
> |
echo GrepMe > conftest.dir/file |
| 10562 |
> |
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) |
| 10563 |
> |
rm -rf conftest.dir |
| 10564 |
> |
if test -s conftest.tar; then |
| 10565 |
> |
AM_RUN_LOG([$am__untar <conftest.tar]) |
| 10566 |
> |
AM_RUN_LOG([cat conftest.dir/file]) |
| 10567 |
> |
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break |
| 10568 |
> |
fi |
| 10569 |
> |
done |
| 10570 |
|
rm -rf conftest.dir |
| 9919 |
– |
if test -s conftest.tar; then |
| 9920 |
– |
AM_RUN_LOG([$am__untar <conftest.tar]) |
| 9921 |
– |
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break |
| 9922 |
– |
fi |
| 9923 |
– |
done |
| 9924 |
– |
rm -rf conftest.dir |
| 10571 |
|
|
| 10572 |
< |
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) |
| 10573 |
< |
AC_MSG_RESULT([$am_cv_prog_tar_$1])]) |
| 10572 |
> |
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) |
| 10573 |
> |
AC_MSG_RESULT([$am_cv_prog_tar_$1])]) |
| 10574 |
> |
|
| 10575 |
|
AC_SUBST([am__tar]) |
| 10576 |
|
AC_SUBST([am__untar]) |
| 10577 |
|
]) # _AM_PROG_TAR |