configure.ac [was: bogofilter-0.96.1 - aka 1.0.0-rc1]
David Relson
relson at osagesoftware.com
Mon Sep 5 17:45:55 CEST 2005
On Mon, 5 Sep 2005 11:28:45 -0400
Jim Correia wrote:
> On Sep 5, 2005, at 10:55 AM, David Relson wrote:
>
> > In configure.ac (and configure) are the following lines:
> >
> > case "x$WITH_DB_ENGINE" in
> > xsqlite|xsqlite3)
> > AC_DEFINE(ENABLE_SQLITE_DATASTORE,1, [Enable sqlite3 datastore])
> > DB_TYPE=sqlite
> > DB_EXT=.db
> > AC_CHECK_HEADERS([sqlite3.h],,AC_MSG_ERROR(Cannot find
> > sqlite3.h header file))
> > AC_LIB_LINKFLAGS([sqlite3])
> > LIBDB="$LIBSQLITE3"
> > ;;
> >
> > which allow either '--with-database=sqlite' or '--with-
> > database=sqlite3' to be used.
> >
> > I wonder if you're having shell script problems? Here's a little
> > test script to try:
>
> Your shell script works fine, but
>
> ./configure --with-database=sqlite3
>
> fails as described. Perhaps there is another test which is failing to
> test both values?
>
> I don't know much (anything) about autoconf, but line 575 looks
> suspicous:
>
> AM_CONDITIONAL(ENABLE_SQLITE_DATASTORE, test "x$WITH_DB_ENGINE" =
> "xsqlite")
>
>
> Jim
Good catch!
Try this patch:
--- configure.ac 5 Sep 2005 15:00:44 -0000 1.390
+++ configure.ac 5 Sep 2005 15:44:51 -0000
@@ -403,6 +403,7 @@
AC_CHECK_HEADERS([sqlite3.h],,AC_MSG_ERROR(Cannot find sqlite3.h header file))
AC_LIB_LINKFLAGS([sqlite3])
LIBDB="$LIBSQLITE3"
+ WITH_DB_ENGINE="sqlite"
;;
xqdbm)
AC_DEFINE(ENABLE_QDBM_DATASTORE,1, [Enable qdbm datastore])
More information about the bogofilter-dev
mailing list