From d480835293695cbc9c851dfe80d368ea7df59816 Mon Sep 17 00:00:00 2001 From: Nick Bowler Date: Mon, 16 Mar 2009 14:25:16 -0400 Subject: [PATCH] Add a configure option to control glade support. --- configure.ac | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index d411b66..2ba581b 100644 --- a/configure.ac +++ b/configure.ac @@ -14,12 +14,22 @@ PKG_CHECK_MODULES(GTK, [gtk+-2.0 >= 2.12.0]) AC_SUBST(GTK_LIBS) AC_SUBST(GTK_CFLAGS) +AC_ARG_WITH(glade, + [AS_HELP_STRING([--with-glade], + [build support for Glade [default=yes]] + )], + [use_glade=$enableval], + [use_glade=yes]) + +if test x"$use_glade" = x"yes"; then PKG_CHECK_MODULES(GLADEUI, [gladeui-1.0 >= 3.4.5], [have_glade=yes], [have_glade=no]) AC_SUBST(GLADEUI_LIBS) AC_SUBST(GLADEUI_CFLAGS) +fi -AM_CONDITIONAL([BUILD_GLADE], [test x"$have_glade" = x"yes"]) +AM_CONDITIONAL([BUILD_GLADE], [test x"$have_glade" = x"yes" \ + -a x"$use_glade" = x"yes"]) AC_CONFIG_FILES([ Makefile -- 2.43.2