summaryrefslogtreecommitdiffabout
authorSergey Poznyakoff <gray@gnu.org>2019-12-06 09:51:55 (GMT)
committer Sergey Poznyakoff <gray@gnu.org>2019-12-14 11:48:37 (GMT)
commit572b09b3ef3ac1a2786912e4acab117484fbb510 (patch) (side-by-side diff)
treed258197fd347c882a268e0966107492a3618eaff
parent5ccef4cfd1eb3252430f04fa8418268a93ff8b08 (diff)
downloadmailutils-572b09b3ef3ac1a2786912e4acab117484fbb510.tar.gz
mailutils-572b09b3ef3ac1a2786912e4acab117484fbb510.tar.bz2
Build package.m4 in Makefile
The decision to build package.m4 in config.status makes proper maintenance of the file problematic. It is reverted. This patch also uses colon-separated VPATH for compatibility with other make implementations. * configure.ac: Don't build package.m4 * testsuite/Makefile.am: Do it here. * libmailutils/tests/Makefile.am: Use colon-separated VPATH for compatibility with BSD make. * testsuite/package.m4.in: Remove.
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--configure.ac1
-rw-r--r--libmailutils/tests/Makefile.am2
-rw-r--r--testsuite/Makefile.am16
-rw-r--r--testsuite/package.m4.in6
4 files changed, 15 insertions, 10 deletions
diff --git a/configure.ac b/configure.ac
index 1a2f459..59b9fe7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1371,7 +1371,6 @@ AC_CONFIG_FILES([include/mailutils/types.h:include/mailutils/types.hin])
AC_CONFIG_TESTDIR(testsuite)
AC_CONFIG_FILES([testsuite/Makefile testsuite/atlocal])
-AC_CONFIG_FILES([testsuite/package.m4])
MU_CONFIG_TESTSUITE(libmailutils)
MU_CONFIG_TESTSUITE(frm)
MU_CONFIG_TESTSUITE(mda/lmtpd)
diff --git a/libmailutils/tests/Makefile.am b/libmailutils/tests/Makefile.am
index a933152..64cba2b 100644
--- a/libmailutils/tests/Makefile.am
+++ b/libmailutils/tests/Makefile.am
@@ -200,5 +200,5 @@ noinst_PROGRAMS += wsp
wsp_SOURCES =
nodist_wsp_SOURCES = wsp.c
wsp.o: $(srcdir)/wordsplit-version.h
-VPATH += $(top_srcdir)/libmailutils/wordsplit
+VPATH = $(srcdir):$(top_srcdir)/libmailutils/wordsplit
diff --git a/testsuite/Makefile.am b/testsuite/Makefile.am
index 9526d7d..473578d 100644
--- a/testsuite/Makefile.am
+++ b/testsuite/Makefile.am
@@ -16,10 +16,8 @@
include $(srcdir)/testsuite.am
-DISTCLEANFILES += package.m4
EXTRA_DIST += \
package.m4 \
- package.m4.in \
testsuite.inc\
testsuite.am\
lib\
@@ -29,6 +27,20 @@ EXTRA_DIST += \
maildir\
mh
+## ------------ ##
+## package.m4. ##
+## ------------ ##
+
+$(srcdir)/package.m4: $(top_srcdir)/configure.ac
+ $(AM_V_GEN){ \
+ echo '# Signature of the current package.'; \
+ echo 'm4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@])'; \
+ echo 'm4_define([AT_PACKAGE_TARNAME], [@PACKAGE_TARNAME@])'; \
+ echo 'm4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])'; \
+ echo 'm4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])'; \
+ echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \
+ } >$(srcdir)/package.m4
+
## -------------------------- ##
## Non-installable programs
## -------------------------- ##
diff --git a/testsuite/package.m4.in b/testsuite/package.m4.in
deleted file mode 100644
index a9bd74a..0000000
--- a/testsuite/package.m4.in
+++ b/dev/null
@@ -1,6 +0,0 @@
-# Signature of the current package.
-m4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@])
-m4_define([AT_PACKAGE_TARNAME], [@PACKAGE_TARNAME@])
-m4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])
-m4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])
-m4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])

Return to:

Send suggestions and report system problems to the System administrator.