+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
# _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])
foo_la_LDFLAGS = -module -avoid-version
]])
-touch foo.c
+echo 'static int dummy = 0;' > foo.c
])# _LTDL_SETUP
## ------------------------ ##
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])