diff --git a/pgtest.sh b/pgtest.sh
index be58830da8698a5cbff396fb327c79e50e8b583a..8cbb27cacddcca65b173a74ea5d5adbc272442b3 100755 (executable)
--- a/pgtest.sh
+++ b/pgtest.sh
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-PG_CONFIG=`which pg_config`
+if test -z "$PG_CONFIG"; then
+ PG_CONFIG=`which pg_config`
+fi
if test -z "$PG_CONFIG"; then
echo "pg_config not found!" >&2
exit 1
fi
if test -z "$PG_CONFIG"; then
echo "pg_config not found!" >&2
exit 1
fi
-BIN_DIR=`pg_config --bindir`
+BIN_DIR=`$PG_CONFIG --bindir`
if test -z "$TARGET"; then
TARGET=`pwd`/target
fi
if test -z "$TARGET"; then
TARGET=`pwd`/target
fi