[cairo-compmgr] error in configure due conditional HAVE_GLITZ_TFP_BACKEND

[ Thread Index | Date Index | More lists.tuxfamily.org/cairo-compmgr Archives ]


Hi,

I don't know much about autotools, but I'm getting this error with the
latest patchs for ccm:

configure: error: conditional "HAVE_GLITZ_TFP_BACKEND" was never defined.
Usually this means the macro was only invoked conditionally.

With the little patch attached solved the problem for me and this
explain the problem:
http://www.delorie.com/gnu/docs/automake/automake_106.html

"if AM_CONDITIONAL is run conditionally (e.g., in a shell if
statement), then the result will confuse automake."

Best regards,
Carlos.
diff --git a/configure.ac b/configure.ac
index ad0210a..f4d6b75 100644
--- a/configure.ac
+++ b/configure.ac
@@ -92,9 +92,10 @@ if [ test x$glitzbackend = xyes ]; then
                   [glitztfpbackend="no"])
     CFLAGS=$cflags_save 
  	LIBS=$libs_save 
-    AM_CONDITIONAL(HAVE_GLITZ_TFP_BACKEND, [test x$glitztfpbackend = xyes])
 fi                  
 
+AM_CONDITIONAL(HAVE_GLITZ_TFP_BACKEND, [test x$glitztfpbackend = xyes])
+
 AC_CHECK_LIB(m, round, [M_LIBS="-lm"], AC_MSG_ERROR([libm is required to
 build cairo-compmgr. This lib comes with GNU C libraries (glibc) and you can
 find the lastest version from http://www.gnu.org/software/libc/]))


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/