2010-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+ Allow running pic_flag test with different shell.
+ * tests/testsuite.at (LT_AT_CONFIGURE): Accept optional second
+ argument specifying the configure script to run.
+ * tests/pic_flag.at (override pic_flag at configure time):
+ Use LT_AT_CONFIGURE.
+
Ensure not to reverse preserving of --debug for relinking/finish.
* libltdl/config/ltmain.m4sh (func_check_version_match): Only
preserve '--debug' switch if $opt_debug is not equal to ':'.
CXX_pic_flag=
fi
-AT_CHECK(["$abs_top_srcdir"/configure lt_cv_prog_compiler_pic="$C_pic_flag" ]dnl
- [lt_cv_prog_compiler_pic_CXX="$CXX_pic_flag"], [], [ignore], [ignore])
+LT_AT_CONFIGURE([lt_cv_prog_compiler_pic="$C_pic_flag" ]dnl
+ [lt_cv_prog_compiler_pic_CXX="$CXX_pic_flag"],
+ ["$abs_top_srcdir"/configure])
: ${MAKE=make}
AT_CHECK([$MAKE], [], [stdout], [ignore])
AT_CHECK([if ./libtool --features | grep 'enable shared libraries'; then ]dnl
])
-# LT_AT_CONFIGURE([OPTIONS])
-# --------------------------
+# LT_AT_CONFIGURE([OPTIONS], [CONFIGURE-SCRIPT])
+# ----------------------------------------------
+# Configure CONFIGURE-SCRIPT, defaulting to ./configure, with
+# additional OPTIONS.
m4_define([LT_AT_CONFIGURE],
[AT_CHECK([: ${CONFIG_SHELL=/bin/sh}; export CONFIG_SHELL; ]dnl
- [$CONFIG_SHELL ./configure $configure_options $1],
+ [$CONFIG_SHELL m4_default([$2], [./configure]) $configure_options $1],
[0], [ignore], [ignore])
])