diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-12-12 16:52:56 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-12-12 16:52:56 +0000 |
commit | d9d12264a3e070d6759c145b660b2c7f0a84e578 (patch) | |
tree | be29072e1736f8c8dbd64792d37165ee3b43d08f /configure.ac | |
parent | 2e454fccc4aaf3680bcbc8e20360506bb735aa7e (diff) |
Test directly for the API that fixed AST-2007-026, to ensure that older
versions of PostgreSQL are no longer acceptable.
(Closes issue #11526)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@92463 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index e32a81117..9edb685a1 100644 --- a/configure.ac +++ b/configure.ac @@ -789,10 +789,10 @@ if test "${PG_CONFIG}" != No; then exit 1 fi else - AC_CHECK_LIB([pq], [PQexec], AC_DEFINE_UNQUOTED([HAVE_PGSQL], 1, + AC_CHECK_LIB([pq], [PQescapeStringConn], AC_DEFINE_UNQUOTED([HAVE_PGSQL], 1, [Define to indicate the PostgreSQL library]), [], -L${PGSQL_libdir} -lz) - if test "${ac_cv_lib_pq_PQexec}" = "yes"; then + if test "${ac_cv_lib_pq_PQescapeStringConn}" = "yes"; then PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz" PGSQL_INCLUDE="-I${PGSQL_includedir}" PBX_PGSQL=1 |