diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/configure.ac b/configure.ac index 9a0cb7ba91d..6d04a354889 100644 --- a/configure.ac +++ b/configure.ac @@ -737,13 +737,21 @@ AC_ARG_ENABLE([tiering], [Disable data classification/tiering]), [BUILD_GFDB="${enableval}"], [BUILD_GFDB="yes"]) -if test "x${BUILD_GFDB}" = "xyes"; then - PKG_CHECK_MODULES([SQLITE], [sqlite3], - AC_DEFINE(USE_GFDB, 1), - AC_MSG_ERROR([pass --disable-tiering to build without sqlite])) -else - AC_DEFINE(USE_GFDB, 0, [no sqlite, gfdb is disabled]) -fi +case $host_os in + darwin*) + SQLITE_LIBS="-lsqlite3" + AC_CHECK_HEADERS([sqlite3.h], AC_DEFINE(USE_GFDB, 1)) + ;; + *) + if test "x${BUILD_GFDB}" = "xyes"; then + PKG_CHECK_MODULES([SQLITE], [sqlite3], + AC_DEFINE(USE_GFDB, 1), + AC_MSG_ERROR([pass --disable-tiering to build without sqlite])) + else + AC_DEFINE(USE_GFDB, 0, [no sqlite, gfdb is disabled]) + fi + ;; +esac AC_SUBST(SQLITE_CFLAGS) AC_SUBST(SQLITE_LIBS) |