|
a/configure.ac |
|
b/configure.ac |
|
... |
|
... |
16 |
AC_TYPE_SIZE_T
|
16 |
AC_TYPE_SIZE_T
|
17 |
AC_TYPE_OFF_T
|
17 |
AC_TYPE_OFF_T
|
18 |
AC_DEFINE([_LARGE_FILE_SOURCE], [], [Large files support])
|
18 |
AC_DEFINE([_LARGE_FILE_SOURCE], [], [Large files support])
|
19 |
AC_DEFINE([_FILE_OFFSET_BITS], [64], [File Offset size])
|
19 |
AC_DEFINE([_FILE_OFFSET_BITS], [64], [File Offset size])
|
20 |
|
20 |
|
|
|
21 |
#### Libraries
|
21 |
AC_CHECK_LIB([pthread], [pthread_create], [], [])
|
22 |
AC_CHECK_LIB([pthread], [pthread_create], [], [])
|
22 |
AC_CHECK_LIB([upnpp], [UPnPP::getLibUPnP], [], [])
|
23 |
|
|
|
24 |
# The 3 following checks for libthreadutil libixml and libupnp are normally
|
|
|
25 |
# unnecessary and even problematic. upmpdcli does not use them directly,
|
|
|
26 |
# and they should be used automatically because libupnpp is linked with them.
|
|
|
27 |
# Still you may need them to include them on some systems where the
|
|
|
28 |
# automatic link does not work.
|
|
|
29 |
dnl AC_CHECK_LIB([threadutil], [TimerThreadRemove], [],
|
|
|
30 |
dnl AC_MSG_ERROR([libthreadutil (part of libupnp) not found]))
|
|
|
31 |
dnl AC_CHECK_LIB([ixml], [ixmlDocument_getElementsByTagName], [],
|
|
|
32 |
dnl AC_MSG_ERROR([libixml (usually installed as part of libupnp) not found]))
|
|
|
33 |
dnl AC_CHECK_LIB([upnp], [UpnpInit], [], AC_MSG_ERROR([libupnp not found]))
|
|
|
34 |
|
|
|
35 |
|
|
|
36 |
AC_CHECK_LIB([upnpp], [getsyshwaddr], [], [AC_MSG_ERROR([libupnpp])])
|
23 |
AC_CHECK_LIB([mpdclient], [mpd_connection_new], [],
|
37 |
AC_CHECK_LIB([mpdclient], [mpd_connection_new], [],
|
24 |
AC_MSG_ERROR([libmpdclient not found]))
|
38 |
AC_MSG_ERROR([libmpdclient not found]))
|
|
|
39 |
|
|
|
40 |
UPMPDCLI_LIBS=$LIBS
|
|
|
41 |
echo "UPMPDCLI_LIBS=$LIBS"
|
25 |
|
42 |
|
26 |
LIBS=""
|
43 |
LIBS=""
|
27 |
|
44 |
|
|
|
45 |
AC_SUBST(UPMPDCLI_LIBS)
|
|
|
46 |
|
28 |
AC_CONFIG_FILES([Makefile])
|
47 |
AC_CONFIG_FILES([Makefile])
|
29 |
AC_OUTPUT
|
48 |
AC_OUTPUT
|