1
diff -Nru3 ./cyrus-sasl-2.1.19.dfsg1/configure.in ../build-tree.new/cyrus-sasl-2.1.19.dfsg1/configure.in
2
--- ./cyrus-sasl-2.1.19.dfsg1/configure.in 2006-01-07 06:04:03.000000000 -0800
3
+++ ../build-tree.new/cyrus-sasl-2.1.19.dfsg1/configure.in 2006-01-07 06:03:53.000000000 -0800
5
LIB_PGSQL_DIR=$LIB_PGSQL
6
LIB_PGSQL="$LIB_PGSQL -lpq"
8
- if test -d ${with_pgsql}/include/pgsql; then
9
- CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/include/pgsql"
10
- elif test -d ${with_pgsql}/pgsql/include; then
11
- CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/pgsql/include"
12
+ if test -d ${with_pgsql}/include/pgsql/postgresql; then
13
+ CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/include/pgsql/postgresql"
14
+ elif test -d ${with_pgsql}/pgsql/include/postgresql; then
15
+ CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/pgsql/include/postgresql"
16
elif test -d ${with_pgsql}/include; then
17
- CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/include"
18
+ CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/include/postgresql"
20
- CPPFLAGS="${CPPFLAGS} -I${with_pgsql}"
21
+ pg_config_flags=$(pg_config --includedir)
22
+ if test x"$pg_config_flags" != x; then
23
+ CPPFLAGS="${CPPFLAGS} -I$pg_config_flags"
25
+ CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/postgresql"
30
diff -Nru3 ./cyrus-sasl-2.1.19.dfsg1/plugins/sql.c ../build-tree.new/cyrus-sasl-2.1.19.dfsg1/plugins/sql.c
31
--- ./cyrus-sasl-2.1.19.dfsg1/plugins/sql.c 2006-01-07 06:04:02.000000000 -0800
32
+++ ../build-tree.new/cyrus-sasl-2.1.19.dfsg1/plugins/sql.c 2006-01-07 05:51:20.000000000 -0800
34
#endif /* HAVE_MYSQL */
37
-#include <postgresql/libpq-fe.h>
38
+#include <libpq-fe.h>
40
static void *_pgsql_open(char *host, char *port, int usessl,
41
const char *user, const char *password,