Simplify Pulseaudio detection
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 5 Aug 2009 15:52:56 +0000 (17:52 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 5 Aug 2009 16:33:35 +0000 (18:33 +0200)
configure.ac

index c4fe291..e97e4e6 100644 (file)
@@ -4510,16 +4510,7 @@ fi
 dnl
 dnl  Pulseaudio module
 dnl
-AC_ARG_ENABLE(pulse,
-  [  --enable-pulse          Pulseaudio support (default enabled)])
-  if test "${enable_pulse}" != "no"
-   then
-     PKG_CHECK_MODULES(PULSE, libpulse >= 0.9.11,
-       [ VLC_ADD_PLUGIN([pulse])
-        VLC_ADD_CFLAGS([pulse],[${PULSE_CFLAGS}])
-        VLC_ADD_LDFLAGS([pulse],[${PULSE_LIBS}])],
-       [AC_MSG_WARN(pulseaudio library not found)])
-   fi
+PKG_ENABLE_MODULES_VLC([PULSE], [libpulse >= 0.9.11], [Pulseaudio support], [auto])
 
 dnl
 dnl  Portaudio module