* 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.
This commit is contained in:
Gary V. Vaughan 2005-10-14 10:43:45 +00:00
parent 6eb353954c
commit 6a6b5a0884
2 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2005-10-14 Gary V. Vaughan <gary@gnu.org>
* 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 <Ralf.Wildenhues@gmx.de>
* libltdl/m4/libtool.m4 (LT_PATH_NM): End test source with

View File

@ -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])