Adding configure options
Adding --disable-ssdp, --disable-soap, --disable-gena options to configure script.
This commit is contained in:
parent
4605314569
commit
601332f88f
11
ChangeLog
11
ChangeLog
@ -2,13 +2,20 @@
|
||||
Version 1.6.16
|
||||
*******************************************************************************
|
||||
|
||||
2012-03-08 Fabrice Fontaine <fabrice.fontaine(at)orange.com>
|
||||
2012-03-09 Fabrice Fontaine <fabrice.fontaine(at)orange.com>
|
||||
|
||||
Adding configure options
|
||||
|
||||
Adding --disable-ssdp, --disable-soap, --disable-gena options to
|
||||
configure script.
|
||||
|
||||
2012-03-09 Fabrice Fontaine <fabrice.fontaine(at)orange.com>
|
||||
|
||||
Bug fix of last commit
|
||||
|
||||
_snprintf was wrongly defined in ssdp_server.c
|
||||
|
||||
2012-03-08 Fabrice Fontaine <fabrice.fontaine(at)orange.com>
|
||||
2012-03-09 Fabrice Fontaine <fabrice.fontaine(at)orange.com>
|
||||
|
||||
SF Bug Tracker id 3499781 - msvc doesn't have snprintf
|
||||
|
||||
|
14
configure.ac
14
configure.ac
@ -388,6 +388,20 @@ if test "x$enable_webserver" = xyes ; then
|
||||
AC_DEFINE(UPNP_HAVE_WEBSERVER, 1, [see upnpconfig.h])
|
||||
fi
|
||||
|
||||
RT_BOOL_ARG_ENABLE([ssdp], [yes], [SSDP part])
|
||||
if test "x$enable_ssdp" = xyes ; then
|
||||
AC_DEFINE(UPNP_HAVE_SSDP, 1, [see upnpconfig.h])
|
||||
fi
|
||||
|
||||
RT_BOOL_ARG_ENABLE([soap], [yes], [SOAP part])
|
||||
if test "x$enable_soap" = xyes ; then
|
||||
AC_DEFINE(UPNP_HAVE_SOAP, 1, [see upnpconfig.h])
|
||||
fi
|
||||
|
||||
RT_BOOL_ARG_ENABLE([gena], [yes], [GENA part])
|
||||
if test "x$enable_gena" = xyes ; then
|
||||
AC_DEFINE(UPNP_HAVE_GENA, 1, [see upnpconfig.h])
|
||||
fi
|
||||
|
||||
RT_BOOL_ARG_ENABLE([tools], [yes], [helper APIs in upnptools.h])
|
||||
if test "x$enable_tools" = xyes ; then
|
||||
|
@ -79,17 +79,21 @@ libupnp_la_SOURCES = \
|
||||
src/inc/webserver.h
|
||||
|
||||
# ssdp
|
||||
if ENABLE_SSDP
|
||||
libupnp_la_SOURCES += \
|
||||
src/ssdp/ssdp_ResultData.h \
|
||||
src/ssdp/ssdp_device.c \
|
||||
src/ssdp/ssdp_ctrlpt.c \
|
||||
src/ssdp/ssdp_server.c
|
||||
endif
|
||||
|
||||
# soap
|
||||
if ENABLE_SOAP
|
||||
libupnp_la_SOURCES += \
|
||||
src/soap/soap_device.c \
|
||||
src/soap/soap_ctrlpt.c \
|
||||
src/soap/soap_common.c
|
||||
endif
|
||||
|
||||
# genlib
|
||||
libupnp_la_SOURCES += \
|
||||
@ -109,10 +113,12 @@ libupnp_la_SOURCES += \
|
||||
src/genlib/net/uri/uri.c
|
||||
|
||||
# gena
|
||||
if ENABLE_GENA
|
||||
libupnp_la_SOURCES += \
|
||||
src/gena/gena_device.c \
|
||||
src/gena/gena_ctrlpt.c \
|
||||
src/gena/gena_callback2.c
|
||||
endif
|
||||
|
||||
# api
|
||||
libupnp_la_SOURCES += \
|
||||
|
@ -435,11 +435,34 @@
|
||||
#endif
|
||||
|
||||
|
||||
/* configure --enable-webserver --enable-device */
|
||||
/* configure --enable-webserver */
|
||||
#if UPNP_HAVE_WEBSERVER
|
||||
# define INTERNAL_WEB_SERVER 1
|
||||
#endif
|
||||
|
||||
/* configure --enable-ssdp */
|
||||
#undef EXCLUDE_SSDP
|
||||
#if UPNP_HAVE_SSDP
|
||||
# define EXCLUDE_SSSDP 0
|
||||
#else
|
||||
# define EXCLUDE_SSSDP 1
|
||||
#endif
|
||||
|
||||
/* configure --enable-soap */
|
||||
#undef EXCLUDE_SOAP
|
||||
#if UPNP_HAVE_SOAP
|
||||
# define EXCLUDE_SOAP 0
|
||||
#else
|
||||
# define EXCLUDE_SOAP 1
|
||||
#endif
|
||||
|
||||
/* configure --enable-gena */
|
||||
#undef EXCLUDE_GENA
|
||||
#if UPNP_HAVE_GENA
|
||||
# define EXCLUDE_GENA 0
|
||||
#else
|
||||
# define EXCLUDE_GENA 1
|
||||
#endif
|
||||
|
||||
#undef EXCLUDE_WEB_SERVER
|
||||
#undef EXCLUDE_MINISERVER
|
||||
|
Loading…
Reference in New Issue
Block a user