[gthumb/ext] Compile Error Without Clutter



commit 64d44da8a8c06dbafede1800013d9b265658d69a
Author: Christian Spurk <mail code chriki de>
Date:   Wed Sep 16 19:36:47 2009 +0200

    Compile Error Without Clutter
    
    There is a compile error when trying to compile the ext branch
    of GThumb without Clutter being available. Configure succeeds and
    correctly reports that there is no Clutter support. When trying
    to compile the code then, there is a compiler error in
    ./gthumb/main.c
    
    [bug #595316]

 configure.ac |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index e536d0c..784dc58 100644
--- a/configure.ac
+++ b/configure.ac
@@ -122,8 +122,11 @@ if test x$enable_clutter = xyes ; then
 			   clutter-gtk-0.10 >= $CLUTTER_GTK_REQUIRED],
 			  [enable_clutter=yes],
 			  [enable_clutter=no])
+fi
+if test x$enable_clutter = xyes ; then
 	AC_DEFINE(HAVE_CLUTTER, 1, [Define to 1 if clutter support is included])
 fi
+
 AC_SUBST(CLUTTER_LIBS)
 AC_SUBST(CLUTTER_CFLAGS)
 AM_CONDITIONAL(ENABLE_CLUTTER, test "x$enable_clutter" = xyes)
@@ -137,9 +140,9 @@ AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[Gettext package])
 AM_GLIB_GNU_GETTEXT
 
 if test "x${prefix}" = "xNONE"; then
-  AC_DEFINE_UNQUOTED(LOCALEDIR, "${ac_default_prefix}/${DATADIRNAME}/locale", [Locale directory])
+	AC_DEFINE_UNQUOTED(LOCALEDIR, "${ac_default_prefix}/${DATADIRNAME}/locale", [Locale directory])
 else
-  AC_DEFINE_UNQUOTED(LOCALEDIR, "${prefix}/${DATADIRNAME}/locale", [Locale directory])
+	AC_DEFINE_UNQUOTED(LOCALEDIR, "${prefix}/${DATADIRNAME}/locale", [Locale directory])
 fi
 
 dnl ===========================================================================



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]