Oops, this accidently slipped in there
authorRodney Ewing <ewing.rj@gmail.com>
Tue, 20 Aug 2013 14:52:12 +0000 (07:52 -0700)
committerRodney Ewing <ewing.rj@gmail.com>
Tue, 20 Aug 2013 14:52:12 +0000 (07:52 -0700)
Revert "This patch checks for libs instead of programs in configure.ac for sqlite3 and postgesql."

This reverts commit 26da3271f6e6a880c0418998d5a4e5e71081e1f7.

configure.ac

index 95930639abb32680878e09dd83af6036a06cc418..e56a55a544d9a0e61cf6ffad7742cbb802efa39a 100644 (file)
@@ -144,17 +144,14 @@ dnl----
 dnl
 AC_PROG_MKDIR_P
 AC_PROG_INSTALL            
-AC_CHECK_PROG(HAVE_PKG_CONFIG, pkg-config, yes)
-AS_IF([test "x$HAVE_PKG_CONFIG" = "x"],
-   [AC_MSG_ERROR([you need pkg-config])])
 
 # Check for a supported database program
-PKG_CHECK_EXISTS([sqlite3], HAVE_SQLITE3="yes")
-PKG_CHECK_EXISTS([pq], HAVE_PQ="yes")
-
-AS_IF([test "x$HAVE_SQLITE3" = "x" -a "x$HAVE_PQ" = "x"],
+AC_PATH_PROG([SQLITE], [sqlite3])
+AC_PATH_PROG([POSTGRES], [postgres])
+AS_IF([test "x$SQLITE" = x -a "x$POSTGRES" = "x"],
    [AC_MSG_ERROR([SQLite or PostgreSQL is required])])
 
+
 dnl--PC_PYTHON_SITE_PACKAGE_DIR---------------------------------------
 dnl This uses PYTHON_SITE_DIR to construct a directory for this
 dnl project (ie $PYTHON_SITE_DIR/project_name) and stores it in