[xiph-commits] r18743 - icecast/trunk/ices

ph3-der-loewe at svn.xiph.org ph3-der-loewe at svn.xiph.org
Thu Dec 13 16:44:27 PST 2012


Author: ph3-der-loewe
Date: 2012-12-13 16:44:27 -0800 (Thu, 13 Dec 2012)
New Revision: 18743

Modified:
   icecast/trunk/ices/configure.in
Log:
replaced PKG_CHECK_MODULES() check with a less nice but working check. Feel free to improve this.

Modified: icecast/trunk/ices/configure.in
===================================================================
--- icecast/trunk/ices/configure.in	2012-12-14 00:34:27 UTC (rev 18742)
+++ icecast/trunk/ices/configure.in	2012-12-14 00:44:27 UTC (rev 18743)
@@ -129,11 +129,21 @@
  	enable_roaraudio=yes)
 
 if test "x$enable_roaraudio" = xyes ; then
-    PKG_CHECK_MODULES(RoarAudio, [libroar >= 0.4.0], have_roaraudio=yes, have_roaraudio=no)
+#    PKG_CHECK_MODULES(RoarAudio, [libroar >= 0.4.0], have_roaraudio=yes, have_roaraudio=no)
+    echo -n "checking for libroar... "
+    if roar-config --compare-versions current ge 0.4.0
+    then
+        have_roaraudio=yes
+    else
+        have_roaraudio=no
+    fi
 
     if test "$have_roaraudio" = yes; then
-	ROARAUDIO_LIBS="-lroar"
+	ROARAUDIO_LIBS="`roar-config --libs`"
         AC_DEFINE(HAVE_ROARAUDIO, ,[Define to enable RoarAudio input module])
+        echo "ok"
+    else
+        echo "failed"
     fi
 else
     have_roaraudio=no



More information about the commits mailing list