~ubuntu-branches/ubuntu/wily/tora/wily-proposed

« back to all changes in this revision

Viewing changes to config/m4/postgresql.m4

  • Committer: Bazaar Package Importer
  • Author(s): Michael Meskes
  • Date: 2009-04-07 13:16:05 UTC
  • mfrom: (1.2.7 upstream) (3.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20090407131605-u422yigfv7jgg0l0
Tags: 2.0.0-3
* Cleaned up packaging a little bit.
* Added homepage information to control file.
* Bumped Standards-Version to 3.8.1.
* Released to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
##   -*- mode: autoconf; tab-width: 2; -*-
 
2
 
 
3
dnl mrj: set default prefix for tora
 
4
AC_DEFUN([TORA_CHECK_POSTGRES],
 
5
[
 
6
  AC_CHECK_DECL([PQcancel],
 
7
                [ac_pg_cancel=yes],
 
8
                [ac_pg_cancel=no],
 
9
                [#include <postgresql/libpq-fe.h>])
 
10
 
 
11
  if test $ac_pg_cancel = yes; then
 
12
    AC_DEFINE([LIBPQ_DECL_CANCEL], 1, [Define if libpg-fe.h declares PQcancel.])
 
13
                AC_SUBST(PQ_LIBS, -lpq)
 
14
  fi
 
15
])