|
a/configure.ac |
|
b/configure.ac |
|
... |
|
... |
33 |
dnl AC_MSG_ERROR([libixml (usually installed as part of libupnp) not found]))
|
33 |
dnl AC_MSG_ERROR([libixml (usually installed as part of libupnp) not found]))
|
34 |
dnl AC_CHECK_LIB([upnp], [UpnpInit], [], AC_MSG_ERROR([libupnp not found]))
|
34 |
dnl AC_CHECK_LIB([upnp], [UpnpInit], [], AC_MSG_ERROR([libupnp not found]))
|
35 |
dnl AC_CHECK_LIB([curl], [curl_easy_init], [],AC_MSG_ERROR([libcurl not found]))
|
35 |
dnl AC_CHECK_LIB([curl], [curl_easy_init], [],AC_MSG_ERROR([libcurl not found]))
|
36 |
dnl AC_CHECK_LIB([expat], [XML_ParserCreate], [],AC_MSG_ERROR([libexpat not found]))
|
36 |
dnl AC_CHECK_LIB([expat], [XML_ParserCreate], [],AC_MSG_ERROR([libexpat not found]))
|
37 |
|
37 |
|
38 |
|
|
|
39 |
AC_CHECK_LIB([upnpp], [getsyshwaddr], [], [AC_MSG_ERROR([libupnpp])])
|
38 |
AC_CHECK_LIB([upnpp], [getsyshwaddr], [], [AC_MSG_ERROR([libupnpp])])
|
40 |
AC_CHECK_LIB([mpdclient], [mpd_connection_new], [],
|
39 |
AC_CHECK_LIB([mpdclient], [mpd_connection_new], [],
|
41 |
AC_MSG_ERROR([libmpdclient not found]))
|
40 |
AC_MSG_ERROR([libmpdclient not found]))
|
42 |
SCCTL_LIBS=$LIBS
|
41 |
SCCTL_LIBS=$LIBS
|
43 |
|
42 |
|
44 |
AC_CHECK_LIB([microhttpd], [MHD_queue_response], [], [])
|
43 |
AC_CHECK_LIB([microhttpd], [MHD_queue_response], [], [])
|
|
|
44 |
|
|
|
45 |
AC_LANG_PUSH([C++])
|
|
|
46 |
LIBS="$LIBS -ljsoncpp"
|
|
|
47 |
AC_LINK_IFELSE([AC_LANG_PROGRAM(
|
|
|
48 |
[#include <jsoncpp/json/json.h>], [Json::Features dummy])],
|
|
|
49 |
[HAVE_JSONCPP=1],
|
|
|
50 |
[AC_MSG_ERROR([libjsoncpp not found.])])
|
|
|
51 |
AC_LANG_POP
|
45 |
|
52 |
|
46 |
UPMPDCLI_LIBS=$LIBS
|
53 |
UPMPDCLI_LIBS=$LIBS
|
47 |
echo "UPMPDCLI_LIBS=$LIBS"
|
54 |
echo "UPMPDCLI_LIBS=$LIBS"
|
48 |
|
55 |
|
49 |
LIBS=""
|
56 |
LIBS=""
|