mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-19 03:58:08 +00:00
Fix configure.ac to allow message_storage=auto
This commit is contained in:
parent
a6aa0a50a5
commit
e7a1d7f52c
1 changed files with 2 additions and 5 deletions
|
|
@ -773,18 +773,15 @@ if test x$enable_msg_storage != xfalse; then
|
|||
PKG_CHECK_MODULES(SQLITE3,[sqlite3 >= 3.6.0],[found_sqlite=yes],[found_sqlite=no])
|
||||
if test "$found_sqlite" = "no"; then
|
||||
dnl Check the lib presence in case the PKG-CONFIG version is not found
|
||||
AC_CHECK_LIB(sqlite3, sqlite3_open, [SQLITE3_LIBS+=" -lsqlite3 "
|
||||
found_sqlite=yes],
|
||||
[AC_MSG_ERROR([No pkg-config or alternate SQLITE found, needed for message storage.])]
|
||||
)
|
||||
AC_CHECK_LIB(sqlite3, sqlite3_open, [SQLITE3_LIBS+=" -lsqlite3 "; found_sqlite=yes], [foo=bar])
|
||||
fi
|
||||
if test "$found_sqlite" = "yes"; then
|
||||
SQLITE3_CFLAGS+="-DMSG_STORAGE_ENABLED"
|
||||
else
|
||||
if test x$enable_msg_storage = xtrue; then
|
||||
AC_MSG_ERROR([sqlite3, required for message storage, not found])
|
||||
enable_msg_storage=false
|
||||
fi
|
||||
enable_msg_storage=false
|
||||
fi
|
||||
|
||||
AC_SUBST(SQLITE3_CFLAGS)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue