Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > c0775956a536c78b616f011a25af548e > files > 1

clisp-2.41a-1mdv2008.0.src.rpm

diff -ur clisp-2.41.orig/modules/postgresql/config.h.in clisp-2.41/modules/postgresql/config.h.in
--- clisp-2.41.orig/modules/postgresql/config.h.in	2006-01-13 03:33:40.000000000 +0100
+++ clisp-2.41/modules/postgresql/config.h.in	2007-05-09 22:10:57.000000000 +0200
@@ -39,6 +39,9 @@
 /* Define to 1 if you have the <postgresql/postgres_ext.h> header file. */
 #undef HAVE_POSTGRESQL_POSTGRES_EXT_H
 
+/* Define to 1 if you have the <pgsql/postgres_ext.h> header file. */
+#undef HAVE_PGSQL_POSTGRES_EXT_H
+
 /* Define to 1 if you have the <postgres_ext.h> header file. */
 #undef HAVE_POSTGRES_EXT_H
 
diff -ur clisp-2.41.orig/modules/postgresql/configure clisp-2.41/modules/postgresql/configure
--- clisp-2.41.orig/modules/postgresql/configure	2006-10-13 05:33:03.000000000 +0200
+++ clisp-2.41/modules/postgresql/configure	2007-05-10 21:46:14.000000000 +0200
@@ -3524,7 +3524,7 @@
 
 
 
-for ac_header in postgres_ext.h postgresql/postgres_ext.h
+for ac_header in postgres_ext.h postgresql/postgres_ext.h pgsql/postgres_ext.h
 do
 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 if eval "test \"\${$as_ac_Header+set}\" = set"; then
@@ -3673,7 +3673,7 @@
 
 done
 
-if test "$ac_cv_header_postgres_ext_h" = "no" -a "$ac_cv_header_postgresql_postgres_ext_h" = "no"; then
+if test "$ac_cv_header_postgres_ext_h" = "no" -a "$ac_cv_header_postgresql_postgres_ext_h" = "no" -a "$ac_cv_header_pgsql_postgres_ext_h" = "no"; then
   { { echo "$as_me:$LINENO: error: cannot find PostgreSQL headers" >&5
 echo "$as_me: error: cannot find PostgreSQL headers" >&2;}
    { (exit 1); exit 1; }; }
diff -ur clisp-2.41.orig/modules/postgresql/configure.in clisp-2.41/modules/postgresql/configure.in
--- clisp-2.41.orig/modules/postgresql/configure.in	2006-06-28 10:12:47.000000000 +0200
+++ clisp-2.41/modules/postgresql/configure.in	2007-05-09 22:13:36.000000000 +0200
@@ -20,7 +20,7 @@
 AC_HEADER_STDC
 AC_HEADER_TIME
 AC_CHECK_HEADERS(postgres_ext.h postgresql/postgres_ext.h)
-if test "$ac_cv_header_postgres_ext_h" = "no" -a "$ac_cv_header_postgresql_postgres_ext_h" = "no"; then
+if test "$ac_cv_header_postgres_ext_h" = "no" -a "$ac_cv_header_postgresql_postgres_ext_h"  -a "$ac_cv_header_pgsql_postgres_ext_h" = "no"; then
   AC_MSG_ERROR([cannot find PostgreSQL headers])
 fi
 
diff -ur clisp-2.41.orig/modules/postgresql/postgresql.lisp clisp-2.41/modules/postgresql/postgresql.lisp
--- clisp-2.41.orig/modules/postgresql/postgresql.lisp	2006-01-13 03:33:41.000000000 +0100
+++ clisp-2.41/modules/postgresql/postgresql.lisp	2007-05-10 22:04:43.000000000 +0200
@@ -25,6 +25,8 @@
 #  include <postgres_ext.h>
 #elif defined(HAVE_POSTGRESQL_POSTGRES_EXT_H)
 #  include <postgresql/postgres_ext.h>
+#elif defined(HAVE_PGSQL_POSTGRES_EXT_H)
+#  include <pgsql/postgres_ext.h>
 #else
 #  error \"PostgreSQL is not found\"
 #endif~%")
@@ -40,6 +42,8 @@
 #  include <libpq-fe.h>
 #elif defined(HAVE_POSTGRESQL_POSTGRES_EXT_H)
 #  include <postgresql/libpq-fe.h>
+#elif defined(HAVE_PGSQL_POSTGRES_EXT_H)
+#  include <pgsql/libpq-fe.h>
 #else
 #  error \"PostgreSQL is not found\"
 #endif~%")