## distribute this file as part of a program that contains a
## configuration script generated by Autoconf, you may include it under
## the same distribution terms that you use for the rest of that program.
+##
+## $Id$
# serial 40 AC_PROG_LIBTOOL
AC_DEFUN(AC_PROG_LIBTOOL,
AC_CHECKING(for PostgreSQL includes)
dnl First Check for a local install
-if test $PGROOT ; then
+if test -d $PGROOT ; then
IS_LOCAL=1
else
dnl Check common local install paths
fi
fi
dnl If we have a local install path, check for some files
-if test $PGROOT && test IS_LOCAL ; then
+if test -d $PGROOT && test "x$IS_LOCAL" != "x" ; then
if test -e $PGROOT/lib/libpq${libltdl_cv_shlibext} ; then
if test -e $PGROOT/lib/libpq.a ; then
PQ_LIBS="-L$PGROOT/lib -lpq"
fi
AC_CHECK_HEADERS($PGROOT/include/libpq-fe.h $PGROOT/include/postgres.h,
FOUND_PG_HEADERS=1)
- if test $FOUND_PG_HEADERS ; then
+ if test "x$FOUND_PG_HEADERS" != "x" ; then
PG_INCLUDE_DIR="$PGROOT/include"
fi
fi
dnl Now check for the two common distribution installation locations
if test "x$PGROOT" = "x" ; then
AC_CHECK_LIB(pq,PQconnectdb,FOUND_PQLIB=1)
- if test $FOUND_PQLIB ; then
+ if test "x$FOUND_PQLIB" != "x" ; then
PQ_LIBS="-lpq"
fi
if test -d /usr/include/pgsql ; then
fi
AC_CHECK_HEADER("${PG_INCLUDED_DIR}libpq-fe.h",AC_DEFINE(HAVE_LIBPQ_FE_H))
AC_CHECK_HEADER("${PG_INCLUDED_DIR}postgres.h",AC_DEFINE(HAVE_POSTGRES_H))
- if test $HAVE_HEADER-LIBPQ-FE.H ; then
+ if test "x$HAVE_HEADER-LIBPQ-FE.H" != "x" ; then
PG_INCLUDE_DIR="$PG_INCLUDE_DIR"
fi
if test -d /usr/lib/pgsql ; then
-# From configure.in Revision: 1.125
+# From configure.in Revision: 1.126
RADIUSD_VERSION=0.2
echo "checking for PostgreSQL includes" 1>&6
echo "configure:4011: checking for PostgreSQL includes" >&5
-if test $PGROOT ; then
+if test -d $PGROOT ; then
IS_LOCAL=1
else
if test -d /usr/local/pgsql ; then
ISLOCAL=1
fi
fi
-if test $PGROOT && test IS_LOCAL ; then
+if test -d $PGROOT && test "x$IS_LOCAL" != "x" ; then
if test -e $PGROOT/lib/libpq${libltdl_cv_shlibext} ; then
if test -e $PGROOT/lib/libpq.a ; then
PQ_LIBS="-L$PGROOT/lib -lpq"
fi
done
- if test $FOUND_PG_HEADERS ; then
+ if test "x$FOUND_PG_HEADERS" != "x" ; then
PG_INCLUDE_DIR="$PGROOT/include"
fi
fi
echo "$ac_t""no" 1>&6
fi
- if test $FOUND_PQLIB ; then
+ if test "x$FOUND_PQLIB" != "x" ; then
PQ_LIBS="-lpq"
fi
if test -d /usr/include/pgsql ; then
echo "$ac_t""no" 1>&6
fi
- if test $HAVE_HEADER-LIBPQ-FE.H ; then
+ if test "x$HAVE_HEADER-LIBPQ-FE.H" != "x" ; then
PG_INCLUDE_DIR="$PG_INCLUDE_DIR"
fi
if test -d /usr/lib/pgsql ; then