3
3
dnl gives unlimited permission to copy and/or distribute it,
4
4
dnl with or without modifications, as long as this notice is preserved.
7
AC_DEFUN([_PANDORA_SEARCH_SQLITE],[
6
AC_DEFUN([_PANDORA_SEARCH_LIBSQLITE3],[
8
7
AC_REQUIRE([AC_LIB_PREFIX])
10
AC_LIB_HAVE_LINKFLAGS(sqlite3,,[
9
dnl --------------------------------------------------------------------
10
dnl Check for libsqlite3
11
dnl --------------------------------------------------------------------
13
AC_ARG_ENABLE([libsqlite3],
14
[AS_HELP_STRING([--disable-libsqlite3],
15
[Build with libsqlite3 support @<:@default=on@:>@])],
16
[ac_enable_libsqlite3="$enableval"],
17
[ac_enable_libsqlite3="yes"])
19
AS_IF([test "x$ac_enable_libsqlite3" = "xyes"],[
20
AC_LIB_HAVE_LINKFLAGS(sqlite3,,[
25
sqlite3_open(NULL, &db);
15
sqlite3_open(NULL, &db);
18
31
AM_CONDITIONAL(HAVE_LIBSQLITE3, [test "x${ac_cv_libsqlite3}" = "xyes"])
22
AC_DEFUN([PANDORA_HAVE_SQLITE],[
23
AC_REQUIRE([_PANDORA_SEARCH_SQLITE])
34
AC_DEFUN([PANDORA_HAVE_LIBSQLITE3],[
35
AC_REQUIRE([_PANDORA_SEARCH_LIBSQLITE3])
38
AC_DEFUN([PANDORA_REQUIRE_LIBSQLITE3],[
39
AC_REQUIRE([_PANDORA_SEARCH_LIBSQLITE3])
40
AS_IF([test "x${ac_cv_libsqlite3}" = "xno"],
41
AC_MSG_ERROR([libsqlite3 is required for ${PACKAGE}]))