Trying to correct the GST_CHECK_CONFIGPROG macro
authorZeeshan Ali <zeenix@gmail.com>
Thu, 2 Sep 2004 22:18:47 +0000 (22:18 +0000)
committerZeeshan Ali <zeenix@gmail.com>
Thu, 2 Sep 2004 22:18:47 +0000 (22:18 +0000)
Original commit message from CVS:
Trying to correct the GST_CHECK_CONFIGPROG macro

m4/gst-feature.m4

index 4ec04171393134fb3f04a3a795276cd976343b23..2dac89399c863cd3db95b5e2518c51c5a89c2caf 100644 (file)
@@ -133,8 +133,9 @@ AC_DEFUN([GST_CHECK_CONFIGPROG],
     [$1]_CFLAGS=
     HAVE_[$1]=no
   else
-    [$1]_LIBS=`[$2] --plugin-libs [$3] 2> /dev/null`
-    if test "x$[$1]_LIBS" = x; then
+    if [$2] --plugin-libs [$3] &> /dev/null; then
+      [$1]_LIBS=`[$2] --plugin-libs [$3]`
+    else
       [$1]_LIBS=`[$2] --libs [$3]`
     fi
     [$1]_CFLAGS=`[$2] --cflags [$3]`