Support either sqlite2 or sqlite3 like mono does Index: configure.in =================================================================== RCS file: /cvs/gnome/beagle/configure.in,v retrieving revision 1.143 diff -u -B -p -r1.143 configure.in --- configure.in 13 Jun 2005 22:34:52 -0000 1.143 +++ configure.in 30 Jun 2005 22:08:06 -0000 @@ -88,7 +88,12 @@ AM_GLIB_GNU_GETTEXT # Many distros don't have a dependency on sqlite for their # mono-data-sqlite packages, and the mono build process itself # doesn't require it. But we do, so check for it here. -PKG_CHECK_MODULES(SQLITE, sqlite) +PKG_CHECK_MODULES(SQLITE, sqlite, have_sqlite2="yes", have_sqlite2="no") +PKG_CHECK_MODULES(SQLITE, sqlite3, have_sqlite3="yes", have_sqlite3="no") + +if test "x$have_sqlite2" = "xno" -a "x$have_sqlite3" = "xno"; then + AC_MSG_ERROR([You need to install either sqlite2 or sqlite3]) +fi # Needed by glue/screensaver-glue.c # The OLD_CFLAGS/CFLAGS hack is needed to build on Ubuntu Breezy Badger