summaryrefslogtreecommitdiffstats
path: root/m4/packaging.m4
diff options
context:
space:
mode:
authorPavel Raiskup <praiskup@redhat.com>2015-09-25 13:09:26 +0200
committerPavel Raiskup <praiskup@redhat.com>2015-09-25 13:09:26 +0200
commit34e1ada302b502570f9bed9ecba0ea4c6d538dd8 (patch)
tree041f3fc44e3b4b6841305f774ef98133b6f67036 /m4/packaging.m4
parentb3502bb172f127d91ef59d5cd423ec1c9b12b3cb (diff)
downloadpostgresql-setup-34e1ada302b502570f9bed9ecba0ea4c6d538dd8.tar.gz
postgresql-setup-34e1ada302b502570f9bed9ecba0ea4c6d538dd8.tar.xz
postgresql-setup-34e1ada302b502570f9bed9ecba0ea4c6d538dd8.zip
configury: switch to _ax_text_tpl.m4
The script generation Makefile snippets are now used from _ax_text_tpl.m4, DRY principle (the m4 file is maintained separately for multiple projects). * configure.ac: Remove all the manual work with substitutions, start using _AX_TEXT_* macros. * Makefile.am: Use $(text_tpl_gen*) variables from _ax_text_tpl. * tests/Makefile.am: Likewise. * share/postgresql-setup/Makefile.inc: Likewise. * m4/_ax_text_tpl.m4: New file, TODO: publish somewhere. * m4/packaging.m4: Reuse _ax_text_tpl.
Diffstat (limited to 'm4/packaging.m4')
-rw-r--r--m4/packaging.m43
1 files changed, 2 insertions, 1 deletions
diff --git a/m4/packaging.m4 b/m4/packaging.m4
index a50c4ba..3d166d3 100644
--- a/m4/packaging.m4
+++ b/m4/packaging.m4
@@ -29,6 +29,7 @@ AC_DEFUN([PGSETUP_PACKAGING_INIT], [
# comment.
m4_define([PGSETUP_SUBST_REQ], [
AC_ARG_VAR([$1], [$2])
+ _AX_TEXT_TPL_SUBST([$1])
test -z "$[]$1" &&
AC_MSG_ERROR([the \$$1 variable is not set])
])
@@ -39,5 +40,5 @@ m4_define([PGSETUP_SUBST_OPT], [
AC_ARG_VAR([$1], [$3])
test -z "$[]$1" &&
$1=$2
- add_sed_subst_var($1)
+ _AX_TEXT_TPL_SUBST($1)
])