mirror of
https://github.com/owntone/owntone-server.git
synced 2025-03-20 12:34:18 -04:00
configure changes
This commit is contained in:
parent
d5bfeba7da
commit
9bb208e156
@ -32,14 +32,14 @@ AC_CHECK_LIB(c_r,pthread_creat,LIBS="${LIBS} -lc_r", [
|
|||||||
|
|
||||||
AC_ARG_ENABLE(sqlite,[ --enable-sqlite Enable the sqlite db backend],
|
AC_ARG_ENABLE(sqlite,[ --enable-sqlite Enable the sqlite db backend],
|
||||||
[ case "${enableval}" in
|
[ case "${enableval}" in
|
||||||
yes) db_sqlite=true;;
|
yes) db_sqlite=true; have_sql=true;;
|
||||||
no) db_sqlite=false;;
|
no) db_sqlite=false;;
|
||||||
*) AC_MSG_ERROR(bad value ${enableval} for --enable-sqlite);;
|
*) AC_MSG_ERROR(bad value ${enableval} for --enable-sqlite);;
|
||||||
esac ])
|
esac ])
|
||||||
|
|
||||||
AC_ARG_ENABLE(sqlite3,[ --enable-sqlite3 Enable sqlite3 db backend],
|
AC_ARG_ENABLE(sqlite3,[ --enable-sqlite3 Enable sqlite3 db backend],
|
||||||
[ case "${enableval}" in
|
[ case "${enableval}" in
|
||||||
yes) db_sqlite3=true;;
|
yes) db_sqlite3=true; have_sql=true;;
|
||||||
no) db_sqlite3=false;;
|
no) db_sqlite3=false;;
|
||||||
*) AC_MSG_ERROR(bad value ${enableval} for --enable-sqlite3);;
|
*) AC_MSG_ERROR(bad value ${enableval} for --enable-sqlite3);;
|
||||||
esac ])
|
esac ])
|
||||||
@ -88,6 +88,10 @@ AM_CONDITIONAL(COND_SQLITE3,test x$db_sqlite3 = xtrue)
|
|||||||
AM_CONDITIONAL(COND_NEED_STRCASESTR,false)
|
AM_CONDITIONAL(COND_NEED_STRCASESTR,false)
|
||||||
AM_CONDITIONAL(COND_NEED_STRSEP,false)
|
AM_CONDITIONAL(COND_NEED_STRSEP,false)
|
||||||
|
|
||||||
|
if test x$have_sql = xtrue; then
|
||||||
|
CPPFLAGS="${CPPFLAGS} -DHAVE_SQL"
|
||||||
|
fi
|
||||||
|
|
||||||
if test x$db_sqlite = xtrue -o x$db_sqlite3 = xtrue; then
|
if test x$db_sqlite = xtrue -o x$db_sqlite3 = xtrue; then
|
||||||
AM_CONDITIONAL(COND_SQL,true)
|
AM_CONDITIONAL(COND_SQL,true)
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user