Commit 7780faa9 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

ML: try to unbreak configure when libsqlite3-dev isn't present

parent 46574f70
......@@ -4164,13 +4164,19 @@ AM_CONDITIONAL([HAVE_SQLITE], [test "${enable_sqlite}" != "no"])
dnl
dnl media library
dnl
AC_ARG_ENABLE(media-library, [--enable-media-library media library (default enabled)])
if test "${enable_media_library}" != "no"
then
test "${enable_sqlite}" != "yes" && AC_MSG_ERROR([SQLite module is required for the media library])
AC_ARG_ENABLE(media-library, [--enable-media-library media library (default auto)])
if test "${enable_media_library}" != "no"; then
if test "${enable_sqlite}" != "yes"; then
if test "${enable_media_library}" == "yes"; then
AC_MSG_ERROR([SQLite module is required for the media library])
else
AC_MSG_WARN([SQLite module is required for the media library])
fi
else
AC_DEFINE([MEDIA_LIBRARY], 1, [Define if you want to use the VLC media library])
VLC_ADD_CPPFLAGS([qt4],"-DMEDIA_LIBRARY")
VLC_ADD_PLUGIN([media_library])
fi
fi
dnl
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment