From 8e7350625f1236f6f0c31ba5a8f518671731b032 Mon Sep 17 00:00:00 2001 From: Ralf Wildenhues Date: Sat, 18 Sep 2010 10:19:38 +0200 Subject: [PATCH] tests: avoid distcheck failure with --disable-ltdl-install. * tests/ltdl-libdir.at (libdir of installed modules): Skip if $LIBLTDL does not exist. Signed-off-by: Ralf Wildenhues --- ChangeLog | 6 ++++++ tests/ltdl-libdir.at | 3 +++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index d72d9e064..fd8bb495d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-09-18 Ralf Wildenhues + + tests: avoid distcheck failure with --disable-ltdl-install. + * tests/ltdl-libdir.at (libdir of installed modules): Skip if + $LIBLTDL does not exist. + 2010-09-17 Peter Rosin tests: actually detect missing 'test' in 'if "$foo" = ...'. diff --git a/tests/ltdl-libdir.at b/tests/ltdl-libdir.at index 7065c5bcd..01c9e706c 100644 --- a/tests/ltdl-libdir.at +++ b/tests/ltdl-libdir.at @@ -93,6 +93,9 @@ main (int argc, const char *argv[]) : ${LTDLINCL="-I$abs_top_srcdir/libltdl"} : ${LIBLTDL="$abs_builddir/../libltdl/libltdlc.la"} +# Skip installcheck if --disable-ltdl-install was used. +AT_CHECK([test -f "$LIBLTDL" || exit 77]) + CPPFLAGS="$LTDLINCL $CPPFLAGS" LDFLAGS="$LDFLAGS -no-undefined" -- 2.47.2