make: If have sqlite3 headers, require libsqlite3.
diff --git a/configure b/configure
index 9a7a31d..7e9ba95 100755
--- a/configure
+++ b/configure
@@ -16538,7 +16538,7 @@
fi
-# Conditionally use libsqlite3.
+# Conditionally use libsqlite3. AX_LIB_SQLITE3 defines HAVE_SQLITE3.
# Check whether --with-sqlite3 was given.
@@ -16682,7 +16682,7 @@
fi
fi
-if test "$HAVE_LIBSQLITE3" == 1 ; then
+if test "$HAVE_SQLITE3" == 1 ; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
$as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
if ${ac_cv_lib_sqlite3_sqlite3_open+:} false; then :
diff --git a/configure.ac b/configure.ac
index b3d0fea..f22e967 100644
--- a/configure.ac
+++ b/configure.ac
@@ -93,9 +93,9 @@
AC_CHECK_LIB([crypto], [EVP_EncryptInit], [],
[AC_MSG_FAILURE([can't find openssl crypto lib])])
-# Conditionally use libsqlite3.
+# Conditionally use libsqlite3. AX_LIB_SQLITE3 defines HAVE_SQLITE3.
AX_LIB_SQLITE3()
-if test "$HAVE_LIBSQLITE3" == 1 ; then
+if test "$HAVE_SQLITE3" == 1 ; then
AC_CHECK_LIB([sqlite3], [sqlite3_open], [],
[AC_MSG_FAILURE([have sqlite2 headers but no libsqlite3])])
fi