Commit 1d0b2c56 authored by Max Kellermann's avatar Max Kellermann

configure.ac: auto-detect HTTPD plugin depending on encoders

Enable the HTTPD output plugin by default, provided that the encoder API is available.
parent d6d244c5
...@@ -613,8 +613,8 @@ AM_CONDITIONAL(HAVE_PULSE, test x$enable_pulse = xyes) ...@@ -613,8 +613,8 @@ AM_CONDITIONAL(HAVE_PULSE, test x$enable_pulse = xyes)
AC_ARG_ENABLE(httpd-output, AC_ARG_ENABLE(httpd-output,
AS_HELP_STRING([--enable-httpd-output], AS_HELP_STRING([--enable-httpd-output],
[enables the HTTP server output (default: disable)]),, [enables the HTTP server output]),,
[enable_httpd_output=no]) [enable_httpd_output=auto])
enable_osx=no enable_osx=no
case "$host_os" in case "$host_os" in
...@@ -980,6 +980,17 @@ if test x$enable_shout = xauto; then ...@@ -980,6 +980,17 @@ if test x$enable_shout = xauto; then
fi fi
fi fi
if test x$enable_httpd_output = xauto; then
# handle HTTPD auto-detection: disable if no encoder is
# available
if test x$enable_encoder = xyes; then
enable_httpd_output=yes
else
AC_MSG_WARN([No encoder plugin -- disabling the HTTP output plugin])
enable_httpd_output=no
fi
fi
AM_CONDITIONAL(HAVE_SHOUT, test x$enable_shout = xyes) AM_CONDITIONAL(HAVE_SHOUT, test x$enable_shout = xyes)
AM_CONDITIONAL(ENABLE_HTTPD_OUTPUT, test x$enable_httpd_output = xyes) AM_CONDITIONAL(ENABLE_HTTPD_OUTPUT, test x$enable_httpd_output = xyes)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment