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:
parent
a95f5651b8
commit
88a7196484
@ -737,6 +737,12 @@ AC_ARG_ENABLE([tiering],
|
||||
[Disable data classification/tiering]),
|
||||
[BUILD_GFDB="${enableval}"], [BUILD_GFDB="yes"])
|
||||
|
||||
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),
|
||||
@ -744,6 +750,8 @@ if test "x${BUILD_GFDB}" = "xyes"; then
|
||||
else
|
||||
AC_DEFINE(USE_GFDB, 0, [no sqlite, gfdb is disabled])
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
AC_SUBST(SQLITE_CFLAGS)
|
||||
AC_SUBST(SQLITE_LIBS)
|
||||
|
Loading…
x
Reference in New Issue
Block a user