sqlite plugin requires libsqlite3 => 3.3.1 to share connections

use recursive locking if libsqlite3 < 3.5.0
This commit is contained in:
Martin Willi
2008-06-30 11:06:18 +00:00
parent aafe8ced39
commit 7da767f773
2 changed files with 22 additions and 5 deletions
+9
View File
@@ -684,6 +684,15 @@ if test x$sqlite = xtrue; then
void *test = sqlite3_prepare_v2;
],
[AC_MSG_RESULT([yes])]; AC_DEFINE_UNQUOTED(HAVE_SQLITE3_PREPARE_V2, 1), [AC_MSG_RESULT([no])])
AC_MSG_CHECKING([sqlite3.h version >= 3.3.1])
AC_TRY_COMPILE(
[#include <sqlite3.h>],
[
#if SQLITE_VERSION_NUMBER < 3003001
#error bad sqlite
#endif
],
[AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]); AC_MSG_ERROR([SQLite version >= 3.3.1 required!])])
fi
if test x$openssl = xtrue; then