summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorPavel Raiskup <praiskup@redhat.com>2014-07-01 08:58:19 +0200
committerPavel Raiskup <praiskup@redhat.com>2014-07-01 09:46:37 +0200
commit00683dad1a27a49e99f4a28e3924e1c97b1b9594 (patch)
tree5199fa1034c14edf53fb7f2ffafe3ea3b44eac3a /configure.ac
parent3768b99c83410e9744f35494624f41f78e5ab867 (diff)
downloadpostgresql-setup-00683dad1a27a49e99f4a28e3924e1c97b1b9594.tar.gz
postgresql-setup-00683dad1a27a49e99f4a28e3924e1c97b1b9594.tar.xz
postgresql-setup-00683dad1a27a49e99f4a28e3924e1c97b1b9594.zip
postgresql-ctl, DISTSUFF: introduce
We need postgresql-ctl for to keep backward compatibility with clients setting "PGPORT" directly in service file. DISTSUFF variable (which is read by ./configure) may be used to generated namespaced binary names -- e.g. DISTSUFF=93 results in postgresql93-setup is generated instead of postgresql-setup. This commit also adjusts autotools build system to not generate scripts by ./configure, but rather by make.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac9
1 files changed, 8 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index c7eafb8..1a013ab 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,7 +1,14 @@
AC_INIT([postgresql-setup], [0.9], [praiskup@redhat.com])
+AC_CONFIG_AUX_DIR(auxdir)
+config_aux_dir=auxdir
+AC_SUBST([config_aux_dir])
+
AM_INIT_AUTOMAKE([-Wall])
AC_CONFIG_FILES([Makefile doc/Makefile])
-AC_CONFIG_FILES([postgresql-setup], [chmod +x postgresql-setup])
+AM_SILENT_RULES([yes])
+
+AC_ARG_VAR([DISTSUFF], [Append string suffix to all binaries])
+AC_SUBST([DISTSUFF])
# For SELinux purposes use rather runuser
AC_PATH_PROG([SU], [runuser])