summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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