Checking for pulseaudio on Debian
authorRafael Vega <email.rafa@gmail.com>
Sat, 17 May 2014 20:48:41 +0000 (15:48 -0500)
committerRafael Vega <email.rafa@gmail.com>
Sat, 17 May 2014 20:48:41 +0000 (15:48 -0500)
configure.ac

index fa459671016a801972cf56a83c8e340032a23b38..dc2ad0aa3cd117b4607bfcb940be075c586801e7 100644 (file)
@@ -107,8 +107,7 @@ case $host in
     api="$api -D__LINUX_PULSE__"
     req="$req libpulse-simple"
     AC_MSG_RESULT(using PulseAudio)
-    PKG_CHECK_MODULES([PULSE], [libpulse-simple], , AC_MSG_ERROR(PulseAudio support requires the pulse-simple library!))
-        LIBS="$LIBS `pkg-config --libs libpulse-simple`" ], )
+    AC_CHECK_LIB(pulse-simple, pa_simple_flush, , AC_MSG_ERROR(PulseAudio support requires the pulse-simple library!))], )
 
   # Look for OSS flag
   AC_ARG_WITH(oss, [  --with-oss = choose OSS API support (linux only)], [