rtp: Use yes/no in configure instead of 1/0
authorSebastian Dröge <sebastian@centricular.com>
Wed, 2 Mar 2016 18:28:00 +0000 (20:28 +0200)
committerArun Raghavan <arun@arunraghavan.net>
Fri, 8 Nov 2019 12:09:40 +0000 (17:39 +0530)
configure.ac

index 21571a0..d1d0878 100644 (file)
@@ -1317,14 +1317,14 @@ AC_ARG_ENABLE([gstreamer],
 
 AS_IF([test "x$enable_gstreamer" != "xno"],
     [PKG_CHECK_MODULES(GSTREAMER, [ gstreamer-1.0 gstreamer-app-1.0 gstreamer-rtp-1.0 gio-2.0 ],
-                       HAVE_GSTREAMER=1, HAVE_GSTREAMER=0)],
-    HAVE_GSTREAMER=0)
+                       HAVE_GSTREAMER=yes, HAVE_GSTREAMER=no)],
+    HAVE_GSTREAMER=no)
 
-AS_IF([test "x$enable_gstreamer" = "xyes" && test "x$HAVE_GSTREAMER" = "x0"],
+AS_IF([test "x$enable_gstreamer" = "xyes" && test "x$HAVE_GSTREAMER" = "xno"],
     [AC_MSG_ERROR([*** GStreamer 1.0 support not found])])
 
-AM_CONDITIONAL([HAVE_GSTREAMER], [test "x$HAVE_GSTREAMER" = x1])
-AS_IF([test "x$HAVE_GSTREAMER" = "x1"], AC_DEFINE([HAVE_GSTREAMER], 1, [Have GStreamer?]))
+AM_CONDITIONAL([HAVE_GSTREAMER], [test "x$HAVE_GSTREAMER" = xyes])
+AS_IF([test "x$HAVE_GSTREAMER" = "xyes"], AC_DEFINE([HAVE_GSTREAMER], 1, [Have GStreamer?]))
 
 #### Build and Install man pages ####