build: Mac OS X build issues, configure.ac

Mac has sqlite3, but no sysconf pkgconfig

Change-Id: I516613656ea3877c1a019438352b3ef8b62da1f5
BUG: 1238796
Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com>
Reviewed-on: http://review.gluster.org/11517
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
Kaleb S. KEITHLEY 2015-07-02 12:44:01 -04:00 committed by Kaleb KEITHLEY
parent a95f5651b8
commit 88a7196484

View File

@ -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)