Ticket #748: check_for_lib_not_prog.patch

File check_for_lib_not_prog.patch, 885 bytes (added by Amirouche, 11 years ago)
  • configure.ac

    diff --git a/configure.ac b/configure.ac
    index e56a55a..9593063 100644
    a b dnl----  
    144144dnl
    145145AC_PROG_MKDIR_P
    146146AC_PROG_INSTALL     
     147AC_CHECK_PROG(HAVE_PKG_CONFIG, pkg-config, yes)
     148AS_IF([test "x$HAVE_PKG_CONFIG" = "x"],
     149   [AC_MSG_ERROR([you need pkg-config])])
    147150
    148151# Check for a supported database program
    149 AC_PATH_PROG([SQLITE], [sqlite3])
    150 AC_PATH_PROG([POSTGRES], [postgres])
    151 AS_IF([test "x$SQLITE" = x -a "x$POSTGRES" = "x"],
    152    [AC_MSG_ERROR([SQLite or PostgreSQL is required])])
     152PKG_CHECK_EXISTS([sqlite3], HAVE_SQLITE3="yes")
     153PKG_CHECK_EXISTS([pq], HAVE_PQ="yes")
    153154
     155AS_IF([test "x$HAVE_SQLITE3" = "x" -a "x$HAVE_PQ" = "x"],
     156   [AC_MSG_ERROR([SQLite or PostgreSQL is required])])
    154157
    155158dnl--PC_PYTHON_SITE_PACKAGE_DIR---------------------------------------
    156159dnl This uses PYTHON_SITE_DIR to construct a directory for this