From: Gary V. Vaughan Date: Fri, 14 Oct 2005 10:43:45 +0000 (+0000) Subject: * tests/subproject.at (_LTDL_SETUP): Use pushdef/popdef to X-Git-Tag: release-2-1b~459 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6a6b5a08845b252df662bb03dbd43f8f064f0cae;p=thirdparty%2Flibtool.git * tests/subproject.at (_LTDL_SETUP): Use pushdef/popdef to simulate file-local scope. Empty source file compilation is not portable, so add minimal code to generated foo.c file. --- diff --git a/ChangeLog b/ChangeLog index 3adf635e0..e30e4c5ac 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-10-14 Gary V. Vaughan + + * tests/subproject.at (_LTDL_SETUP): Use pushdef/popdef to + simulate file-local scope. Empty source file compilation is not + portable, so add minimal code to generated foo.c file. + 2005-10-13 Ralf Wildenhues * libltdl/m4/libtool.m4 (LT_PATH_NM): End test source with diff --git a/tests/subproject.at b/tests/subproject.at index 28578abbd..f135f9808 100644 --- a/tests/subproject.at +++ b/tests/subproject.at @@ -21,7 +21,7 @@ AT_BANNER([Subproject Libltdl.]) # _LTDL_SETUP # ----------- -m4_define([_LTDL_SETUP], +m4_pushdef([_LTDL_SETUP], [AT_DATA([configure.ac], [[AC_INIT([subproject-demo], ]AT_PACKAGE_VERSION[, ]AT_PACKAGE_BUGREPORT[) LT_CONFIG_LTDL_DIR([sub/ltdl]) @@ -41,7 +41,7 @@ lib_LTLIBRARIES = foo.la foo_la_LDFLAGS = -module -avoid-version ]]) -touch foo.c +echo 'static int dummy = 0;' > foo.c ])# _LTDL_SETUP ## ------------------------ ## @@ -205,3 +205,6 @@ LT_AT_MAKE([], [CC="$CC" LIBTOOLFLAGS="$LIBTOOLFLAGS" CPPFLAGS="$CPPFLAGS" \ LT_AT_EXEC_CHECK([./ltdldemo], 0, [ignore]) AT_CLEANUP + +dnl Be careful not to let the definition leak into other tests +m4_popdef([_LTDL_SETUP])