mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-25 22:55:56 -05:00
configure fix for building osx packages with static libs
This commit is contained in:
parent
042a249c07
commit
84377f1bf6
@ -264,8 +264,10 @@ AC_CHECK_HEADERS(id3tag.h,, [
|
||||
oldcflags=$CFLAGS
|
||||
|
||||
CFLAGS="$CFLAGS -lz"
|
||||
OLDLIBS=$LIBS
|
||||
AC_CHECK_LIB(id3tag,id3_file_open,,echo "no libid3tag. Try --with-id3tag=dir";exit)
|
||||
|
||||
LIBS=$OLDLIBS
|
||||
if test "$STATIC_LIBS" != "no"; then
|
||||
LIBS="${LIBS} ${STATIC_LIBS}/libid3tag.a -lz"
|
||||
else
|
||||
@ -285,11 +287,13 @@ if test x$use_gdbm = xtrue; then
|
||||
fi
|
||||
fi
|
||||
|
||||
OLDLIBS=$LIBS
|
||||
if test x$db_sqlite = xtrue; then
|
||||
AC_CHECK_HEADERS(sqlite.h,, [
|
||||
AC_MSG_ERROR([sqlite.h not found... Must have sqlite headers installed])])
|
||||
AC_CHECK_LIB(sqlite,sqlite_open,,echo "Must have sqlite libraries installed";exit)
|
||||
|
||||
LIBS=$OLDLIBS
|
||||
if test x"$STATIC_LIBS" != x"no"; then
|
||||
LIBS="${LIBS} ${STATIC_LIBS}/libsqlite.a"
|
||||
else
|
||||
@ -297,11 +301,13 @@ if test x$db_sqlite = xtrue; then
|
||||
fi
|
||||
fi
|
||||
|
||||
OLDLIBS=$LIBS
|
||||
if test x$db_sqlite3 = xtrue; then
|
||||
AC_CHECK_HEADERS(sqlite3.h,, [
|
||||
AC_MSG_ERROR([sqlite3.h not found... Must have sqlite3 headers installed])])
|
||||
AC_CHECK_LIB(sqlite3,sqlite3_open,,echo "Must have sqlite3 libraries installed";exit)
|
||||
|
||||
LIBS=$OLDLIBS
|
||||
if test x"$STATIC_LIBS" != x"no"; then
|
||||
LIBS="${LIBS} ${STATIC_LIBS}/libsqlite3.a"
|
||||
else
|
||||
@ -309,7 +315,6 @@ if test x$db_sqlite3 = xtrue; then
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
if test x$use_oggvorbis = xtrue; then
|
||||
AC_CHECK_HEADERS(ogg/ogg.h,, [
|
||||
AC_MSG_ERROR([ogg/ogg.h not found... Must have libogg installed for Ogg/Vorbis support])])
|
||||
|
Loading…
Reference in New Issue
Block a user