|
a/configure.ac |
|
b/configure.ac |
1 |
AC_INIT([upmpdcli], [0.2], [jfd@lesbonscomptes.com],
|
1 |
AC_INIT([upmpdcli], [0.4], [jfd@lesbonscomptes.com],
|
2 |
[upmpdcli], [http://www.lesbonscomptes.com/upnpp])
|
2 |
[upmpdcli], [http://www.lesbonscomptes.com/upnpp])
|
3 |
AC_PREREQ([2.53])
|
3 |
AC_PREREQ([2.53])
|
4 |
AC_CONFIG_SRCDIR([libupnpp/upnpplib.hxx])
|
4 |
AC_CONFIG_SRCDIR([libupnpp/upnpplib.hxx])
|
5 |
AC_CONFIG_HEADERS([libupnpp/config.h])
|
5 |
AC_CONFIG_HEADERS([libupnpp/config.h])
|
6 |
|
6 |
|
7 |
AM_INIT_AUTOMAKE([1.10 no-define subdir-objects foreign])
|
7 |
AM_INIT_AUTOMAKE([1.10 no-define subdir-objects foreign])
|
8 |
LT_INIT
|
8 |
LT_INIT
|
9 |
|
9 |
|
10 |
AC_PROG_CXX
|
10 |
AC_PROG_CXX
|
11 |
|
11 |
|
|
|
12 |
# libupnp is configured with large file support, and we need to do the same,
|
|
|
13 |
# else a difference in off_t size impacts struct File_Info and prevents the
|
|
|
14 |
# vdir to work. This does make a difference, for exemple, for Raspbian
|
|
|
15 |
# on the Raspberry PI. Use the same directives as libupnp's configure.ac
|
|
|
16 |
AC_TYPE_SIZE_T
|
|
|
17 |
AC_TYPE_OFF_T
|
|
|
18 |
AC_DEFINE([_LARGE_FILE_SOURCE], [], [Large files support])
|
|
|
19 |
AC_DEFINE([_FILE_OFFSET_BITS], [64], [File Offset size])
|
|
|
20 |
|
|
|
21 |
AC_CHECK_LIB([upnp], [UpnpInit], [true], AC_MSG_ERROR([libupnp not found]))
|
|
|
22 |
AC_CHECK_LIB([mpdclient], [mpd_connection_new], [true],
|
|
|
23 |
AC_MSG_ERROR([libmpdclient not found]))
|
|
|
24 |
|
12 |
AC_CHECK_FUNCS([getifaddrs])
|
25 |
AC_CHECK_FUNCS([getifaddrs] [UpnpSetLogLevel])
|
13 |
|
26 |
|
14 |
AC_CONFIG_FILES([Makefile])
|
27 |
AC_CONFIG_FILES([Makefile])
|
15 |
AC_OUTPUT
|
28 |
AC_OUTPUT
|