[PATCH] Move AM_CONDITIONAL(HAVE_DSSIM) outside of if the iqa check block

Lars Wendler polynomial-c at gentoo.org
Sat Jan 21 02:03:10 UTC 2017


or else configure fails with

  error: conditional "HAVE_DSSIM" was never defined.

when iqa is not installed.
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 92411b194..185b49f48 100644
--- a/configure.ac
+++ b/configure.ac
@@ -359,13 +359,13 @@ AG_GST_CHECK_FEATURE(IQA, [iqa], iqa , [
     HAVE_IQA="no"
   ])
 
-  AM_CONDITIONAL(HAVE_DSSIM, test "x$HAVE_DSSIM" = "xyes")
   if test "x$HAVE_DSSIM" = "xyes"; then
     AC_DEFINE(HAVE_DSSIM, 1, [Define if you have dssim library])
   fi
   AC_SUBST(DSSIM_LIBS)
   AC_SUBST(DSSIM_CFLAGS)
 ])
+AM_CONDITIONAL(HAVE_DSSIM, test "x$HAVE_DSSIM" = "xyes")
 
 dnl Orc
 ORC_CHECK([0.4.17])
-- 
2.11.0



More information about the gstreamer-devel mailing list