avoid libsqlite dependency if it is not needed

git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@730 15ad00c4-1369-45f4-8270-35d70d36bdcd
This commit is contained in:
Patrick Ohly 2008-08-17 09:26:01 +00:00
parent 319a873b57
commit 46d72adbe0
1 changed files with 5 additions and 2 deletions

View File

@ -14,5 +14,8 @@ AC_ARG_ENABLE_BACKEND(sqlite, sqlite,
if test "$enable_sqlite" = "yes"; then
test "x${SQLITEFOUND}" == "xyes" || AC_MSG_ERROR([--enable-sqlite requires pkg-config information for sqlite3, which was not found])
AC_DEFINE(ENABLE_SQLITE, 1, [sqlite available])
fi
else
# avoid linking against it if not needed
SQLITE_CFLAGS=
SQLITE_LIBS=
fi