2008-03-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+ Fix installcheck dependencies, fix for --program-transform-name.
+ * Makefile.am (installcheck-local): Depend upon tests/atconfig
+ and $(srcdir)/$(TESTSUITE).
+ * tests/testsuite.at (_LIBTOOLIZE_TRANSFORM): New macro.
+ (LT_AT_CHECK_LIBTOOLIZE): Use it to transform expout and experr
+ files suitably.
+ * HACKING: Update.
+
Drop usage of obsolete macros AC_EXEEXT and AC_OBJEXT.
* libltdl/m4/libtool.m4 (_LT_ENABLE_LOCK, _LT_COMPILER_OPTION)
(_LT_COMPILER_C_O, LT_PATH_NM, _LT_CMD_GLOBAL_SYMBOLS, _LT_SETUP):
libtool.
* Run `make distcheck' and `make distcheck
- DISTCHECK_CONFIGURE_FLAGS=--disable-ltdl-install'. If there are any
- problems, fix them and start again.
+ DISTCHECK_CONFIGURE_FLAGS=--disable-ltdl-install'. Try a distcheck
+ with --program-prefix=g. If there are any problems, fix them and
+ start again.
* Run ./commit from the source tree.
$(TESTS_ENVIRONMENT) $(BUILDCHECK_ENVIRONMENT) $(TESTSUITEFLAGS)
# Run the test suite on the *installed* tree.
-installcheck-local:
+installcheck-local: tests/atconfig $(srcdir)/$(TESTSUITE)
$(CD_TESTDIR); \
CONFIG_SHELL="$(SHELL)" $(SHELL) $$abs_srcdir/$(TESTSUITE) \
$(TESTS_ENVIRONMENT) $(INSTALLCHECK_ENVIRONMENT) $(TESTSUITEFLAGS) \
])
+# _LIBTOOLIZE_TRANSFORM(FILE)
+# ---------------------------
+# Fix the expected output of installed libtoolize in presence of --program-*.
+m4_define([_LIBTOOLIZE_TRANSFORM],
+[lt_name=`$ECHO "$LIBTOOLIZE" | sed 's,^.*/,,'` # restore font-lock: ''
+sed "s/^libtoolize/$lt_name/" < $1 > $1.t
+mv -f $1.t $1
+])dnl
+
+
# LT_AT_CHECK_LIBTOOLIZE(ARGS, [EXIT-STATUS = 0], [STDOUT = `'], [STDERR = `'])
# -----------------------------------------------------------------------------
m4_define([LT_AT_CHECK_LIBTOOLIZE],
-[AT_CHECK([LT_AT_LIBTOOLIZE([$1])],
+[m4_if([$3], [expout], [_LIBTOOLIZE_TRANSFORM([$3])])dnl
+m4_if([$4], [experr], [_LIBTOOLIZE_TRANSFORM([$4])])dnl
+AT_CHECK([LT_AT_LIBTOOLIZE([$1])],
[$2], [$3], [$4])
])