aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-01-20 21:23:43 +0100
committerMax Kellermann <max@duempel.org>2010-01-20 21:42:43 +0100
commit7a24e496d557782b58dd7d178b6bb134bff3d611 (patch)
tree543159baed500ae594885e1f66b3f4536da66de3 /configure.ac
parent7a62818ffdfbdef76784acb8b2e90e7cc14333f0 (diff)
downloadmpd-7a24e496d557782b58dd7d178b6bb134bff3d611.tar.gz
mpd-7a24e496d557782b58dd7d178b6bb134bff3d611.tar.xz
mpd-7a24e496d557782b58dd7d178b6bb134bff3d611.zip
configure.ac: new libwrap autoconf test
Use MPD_AUTO_RESULT(). Don't force libwrap by default.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac15
1 files changed, 14 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index d5bc118e3..0c2d694bb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -205,7 +205,20 @@ dnl ##
dnl misc libraries
dnl ##
-AC_CHECK_LIBWRAP
+AC_ARG_ENABLE([libwrap],
+ AS_HELP_STRING([--enable-libwrap], [use libwrap]),,
+ [enable_libwrap=auto])
+
+if test x$enable_libwrap != xno; then
+ AC_CHECK_LIBWRAP(found_libwrap=yes, found_libwrap=no)
+ MPD_AUTO_RESULT(libwrap, libwrap, [libwrap not found])
+fi
+
+if test x$enable_libwrap = xyes; then
+ AC_SUBST(LIBWRAP_CFLAGS)
+ AC_SUBST(LIBWRAP_LDFLAGS)
+ AC_DEFINE(HAVE_LIBWRAP, 1, [define to enable libwrap library])
+fi
AC_ARG_ENABLE(cue,
AS_HELP_STRING([--enable-cue],