[configure] Always execute the AM_CONDITIONAL call for X11_TESTS
authorNeil Roberts <neil@linux.intel.com>
Fri, 29 May 2009 13:23:16 +0000 (14:23 +0100)
committerNeil Roberts <neil@linux.intel.com>
Fri, 29 May 2009 13:31:34 +0000 (14:31 +0100)
Automake gets upset if an AM_CONDITIONAL call is itself conditionally
executed.

configure.ac

index 4524d3d..419a0c4 100644 (file)
@@ -397,6 +397,7 @@ AS_CASE([$imagebackend],
 
 dnl === X11 checks, only for X11-based backends ===============================
 X11_PC_FILES=""
+x11_tests=no
 
 AS_IF([test "x$clutterbackend" = "xglx" || test "x$clutterbackend" = "xeglx"],
       [
@@ -504,10 +505,11 @@ AS_IF([test "x$clutterbackend" = "xglx" || test "x$clutterbackend" = "xeglx"],
 
         # X11-specific tests are enabled conditionally
         AS_IF([test "x$have_xcomposite" = "xyes"], [x11_tests=yes], [x11_tests=no])
-        AM_CONDITIONAL(X11_TESTS, [test "x$x11_tests" = "xyes"])
       ]
 )
 
+AM_CONDITIONAL(X11_TESTS, [test "x$x11_tests" = "xyes"])
+
 dnl === JSON parser check =====================================================
 
 # allow building clutter with an external dependency on json-glib