diff configure @ 1464:969b90b1f2f9

Configuration detects proper header files for database dev libraries
author Adam Chlipala <adam@chlipala.net>
date Sun, 29 May 2011 13:31:53 -0400
parents 156b8e8c25d8
children 3d0cc841cafd
line wrap: on
line diff
--- a/configure	Sun May 29 12:44:31 2011 -0400
+++ b/configure	Sun May 29 13:31:53 2011 -0400
@@ -612,6 +612,9 @@
 am__EXEEXT_TRUE
 LTLIBOBJS
 LIBOBJS
+SQHEADER
+MSHEADER
+PGHEADER
 GCCARGS
 SITELISP
 INCLUDE
@@ -12130,6 +12133,51 @@
 fi
 
 
+if test -z $PGHEADER; then
+   for ac_header in postgresql/libpq-fe.h
+do :
+  ac_fn_c_check_header_mongrel "$LINENO" "postgresql/libpq-fe.h" "ac_cv_header_postgresql_libpq_fe_h" "$ac_includes_default"
+if test "x$ac_cv_header_postgresql_libpq_fe_h" = xyes; then :
+  cat >>confdefs.h <<_ACEOF
+#define HAVE_POSTGRESQL_LIBPQ_FE_H 1
+_ACEOF
+ PGHEADER=postgresql/libpq-fe.h
+fi
+
+done
+
+fi
+
+if test -z $PGHEADER; then
+   PGHEADER=libpq-fe.h
+fi
+
+if test -z $MSHEADER; then
+   for ac_header in mysql/mysql.h
+do :
+  ac_fn_c_check_header_mongrel "$LINENO" "mysql/mysql.h" "ac_cv_header_mysql_mysql_h" "$ac_includes_default"
+if test "x$ac_cv_header_mysql_mysql_h" = xyes; then :
+  cat >>confdefs.h <<_ACEOF
+#define HAVE_MYSQL_MYSQL_H 1
+_ACEOF
+ MSHEADER=mysql/mysql.h
+fi
+
+done
+
+fi
+
+if test -z $MSHEADER; then
+   MSHEADER=mysql.h
+fi
+
+if test -z $SQHEADER; then
+   SQHEADER=sqlite3.h
+fi
+
+
+
+
 
 
 
@@ -14523,4 +14571,7 @@
   include directory:   INCLUDE        $INCLUDE
   site-lisp directory: SITELISP       $SITELISP
   Extra GCC args:      GCCARGS        $GCCARGS
+  Postgres C header:   PGHEADER       $PGHEADER
+  MySQL C header:      MSHEADER       $MSHEADER
+  SQLite C header:     SQHEADER       $SQHEADER
 EOF