iqa: Move AM_CONDITIONAL(HAVE_DSSIM) outside of the iqa check block
authorLars Wendler <polynomial-c@gentoo.org>
Fri, 20 Jan 2017 06:45:43 +0000 (07:45 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 23 Jan 2017 16:04:34 +0000 (18:04 +0200)
or else configure fails with

  error: conditional "HAVE_DSSIM" was never defined.

when iqa is not installed.

https://bugzilla.gnome.org/show_bug.cgi?id=777652

configure.ac

index d98f92a..285d3f4 100644 (file)
@@ -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])