Cleanly handle empty return from pg_config --pgxs

On a debian-derivate system, the call may prints on stderr:

" You need to install postgresql-server-dev-X.Y for building
  a server-side extension or libpq-dev for building a client-side
  application. "

This has been seen on a Trisquel 7.0 GNU/Linux system.

git-svn-id: http://svn.osgeo.org/postgis/trunk@14399 b70326c6-7e19-0410-871a-916f4a2858ee
This commit is contained in:
Sandro Santilli 2015-11-18 05:14:52 +00:00
parent 9307e06440
commit 7af035d7c1

View file

@ -422,7 +422,7 @@ if test "x$LIBLWGEOM_ONLY" = "xno"; then
dnl ===========================================================================
PGXS=`$PG_CONFIG --pgxs`
if test ! -f $PGXS; then
if test "x$PGXS" = "x" -o ! -f "$PGXS"; then
AC_MSG_ERROR([the PGXS Makefile $PGXS cannot be found. Please install the PostgreSQL server development packages and re-run configure.])
fi