~chrisvaughn/gearmand/devel

« back to all changes in this revision

Viewing changes to m4/have_libpq.m4

  • Committer: root
  • Date: 2012-02-05 05:40:05 UTC
  • Revision ID: root@cvaughn.yv.local-20120205054005-m8o3vuynx6gekebx
fixes postgres bug and adds testing

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
AC_DEFUN([_SEARCH_LIBPQ],[
4
4
  AC_REQUIRE([AX_LIB_POSTGRESQL])
5
5
 
6
 
  AS_IF([test "x$found_postgresql" = "xyes"],[ ],
 
6
  AS_IF([test "x$found_postgresql" = "xyes"],
 
7
    [
 
8
      AC_DEFINE([HAVE_LIBPQ], [ 1 ], [Enable libpq support])
 
9
    ],
7
10
    [
8
11
    AC_DEFINE([HAVE_POSTGRESQL], [0], [If libpq is available])
 
12
    AC_DEFINE([HAVE_LIBPQ], [ 0 ], [Enable libpq support])
9
13
    ac_cv_libpq="no"
10
14
    ])
11
15
 
12
 
  AM_CONDITIONAL(HAVE_LIBPQ, [test "x$ac_cv_lib_pq_main" = "xyes"])
 
16
  AM_CONDITIONAL(HAVE_LIBPQ, [test "x$ac_cv_libpq" = "xyes"])
13
17
  ])
14
18
 
15
19
AC_DEFUN([AX_HAVE_LIBPQ],[