summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorPavel Raiskup <praiskup@redhat.com>2014-07-02 18:02:29 +0200
committerPavel Raiskup <praiskup@redhat.com>2014-07-02 18:02:29 +0200
commit67f7abcb23c2b18a5a1dead65ae6a1efe3066e17 (patch)
treecad124db8c4044db2c90870bf67763940402a377 /configure.ac
parent4e6d95d090276ef8af8e76cb96247ea6d11b13ac (diff)
downloadpostgresql-setup-67f7abcb23c2b18a5a1dead65ae6a1efe3066e17.tar.gz
postgresql-setup-67f7abcb23c2b18a5a1dead65ae6a1efe3066e17.tar.xz
postgresql-setup-67f7abcb23c2b18a5a1dead65ae6a1efe3066e17.zip
configure.ac: fix for PG_CTL_BIN & README_DIST
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac8
1 files changed, 3 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac
index 29e083e..f496066 100644
--- a/configure.ac
+++ b/configure.ac
@@ -94,11 +94,8 @@ fi
# Detect pg_ctl binary
# --------------------
-if test -z "$PG_CTL_BIN"; then
+test -z "$PG_CTL_BIN" &&
PG_CTL_BIN=$PGENGINE/pg_ctl
-fi
-test ! -e "$PG_CTL_BIN" &&
- AC_MSG_ERROR([pg_ctl binary not found])
AC_SUBST([PG_CTL_BIN])
@@ -141,7 +138,8 @@ fi
case "$distro_family" in
redhat)
- README_DIST=`rpm -ql postgresql | grep README | grep dist`
+ test -z "$README_DIST" &&
+ README_DIST=`rpm -ql postgresql | grep README | grep dist`
;;
esac