mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-09-22 04:15:54 -04:00
Add options for cURL and future client tests
This commit is contained in:
parent
e9f0331b23
commit
623c0d6bd6
49
configure.ac
49
configure.ac
@ -30,6 +30,7 @@ AM_MAINTAINER_MODE([enable])
|
|||||||
LT_INIT
|
LT_INIT
|
||||||
|
|
||||||
dnl Checks for header files.
|
dnl Checks for header files.
|
||||||
|
AC_HEADER_ASSERT
|
||||||
AC_HEADER_STDC
|
AC_HEADER_STDC
|
||||||
AC_HEADER_TIME
|
AC_HEADER_TIME
|
||||||
|
|
||||||
@ -149,7 +150,7 @@ PKG_HAVE_WITH_MODULES([KATE], [kate], [
|
|||||||
dnl
|
dnl
|
||||||
dnl libcurl
|
dnl libcurl
|
||||||
dnl
|
dnl
|
||||||
PKG_HAVE_WITH_MODULES([CURL], [curl], [
|
PKG_HAVE_WITH_MODULES([CURL], [libcurl], [
|
||||||
CFLAGS="${CFLAGS} ${CURL_CFLAGS}"
|
CFLAGS="${CFLAGS} ${CURL_CFLAGS}"
|
||||||
LIBS="${LIBS} ${CURL_LIBS}"
|
LIBS="${LIBS} ${CURL_LIBS}"
|
||||||
])
|
])
|
||||||
@ -174,7 +175,33 @@ CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
|
|||||||
CPPFLAGS="${CPPFLAGS} ${PTHREAD_CPPFLAGS}"
|
CPPFLAGS="${CPPFLAGS} ${PTHREAD_CPPFLAGS}"
|
||||||
LIBS="${LIBS} ${PTHREAD_LIBS}"
|
LIBS="${LIBS} ${PTHREAD_LIBS}"
|
||||||
|
|
||||||
#AC_DEFINE([USE_YP], 1, [Define to compile in YP support code])
|
dnl Feature enable/disable arguments
|
||||||
|
|
||||||
|
AC_ARG_ENABLE([yp],
|
||||||
|
AS_HELP_STRING([--enable-yp],
|
||||||
|
[enable yellowpage directory listing support (default: auto)])
|
||||||
|
)
|
||||||
|
|
||||||
|
AS_IF([test "x$enable_yp" != "xno"], [
|
||||||
|
AS_IF([test "x$have_curl" != "xyes"], [
|
||||||
|
AS_IF([test "x$enable_yp" == "xyes"], [
|
||||||
|
AC_MSG_ERROR([cURL is required for YP support])
|
||||||
|
])
|
||||||
|
enable_yp="no"
|
||||||
|
], [
|
||||||
|
AC_DEFINE([USE_YP], 1, [Define to compile in YP support code])
|
||||||
|
enable_yp="yes"
|
||||||
|
])
|
||||||
|
])
|
||||||
|
|
||||||
|
AC_ARG_ENABLE([client-tests],
|
||||||
|
AS_HELP_STRING([--enable-client-tests],
|
||||||
|
[enable client tests module (default: disabled)])
|
||||||
|
)
|
||||||
|
|
||||||
|
AS_IF([test "x$enable_client_tests" == "xyes"], [
|
||||||
|
AC_DEFINE([ENABLE_MODULE_CLIENT_TESTS], 1, [Define to compile client test module])
|
||||||
|
], [enable_client_tests="no"])
|
||||||
|
|
||||||
dnl Make substitutions
|
dnl Make substitutions
|
||||||
AC_SUBST(XIPH_CPPFLAGS)
|
AC_SUBST(XIPH_CPPFLAGS)
|
||||||
@ -220,12 +247,16 @@ AC_OUTPUT
|
|||||||
echo "
|
echo "
|
||||||
Icecast configuration
|
Icecast configuration
|
||||||
---------------------
|
---------------------
|
||||||
Version : ${VERSION}
|
Version : ${VERSION}
|
||||||
cURL : ${have_curl}
|
cURL : ${have_curl}
|
||||||
TLS (openSSL) : ${have_openssl}
|
TLS (openSSL) : ${have_openssl}
|
||||||
|
|
||||||
Format/Codec support:
|
Format/Codec support:
|
||||||
Ogg : ${have_ogg}
|
Ogg : ${have_ogg}
|
||||||
Theora : ${have_theora}
|
Theora : ${have_theora}
|
||||||
Speex : ${have_speex}
|
Speex : ${have_speex}
|
||||||
Kate : ${have_kate}"
|
Kate : ${have_kate}
|
||||||
|
|
||||||
|
Features:
|
||||||
|
YP support : ${enable_yp}
|
||||||
|
Client tests : ${enable_client_tests}"
|
||||||
|
Loading…
Reference in New Issue
Block a user