]> git.draconx.ca Git - aspectbin.git/commitdiff
Make --with-glade actually work.
authorNick Bowler <nbowler@draconx.ca>
Sat, 21 Mar 2009 03:35:04 +0000 (23:35 -0400)
committerNick Bowler <nbowler@draconx.ca>
Sat, 21 Mar 2009 03:35:04 +0000 (23:35 -0400)
Previously, both --with-glade and --without-glade would disable glade
support.

configure.ac

index d5cf59f62ceec94dd051463959f33b0de390c589..2285e7ebd13e108324eb5fb4a27ecd614d3e8c73 100644 (file)
@@ -18,12 +18,12 @@ AC_ARG_WITH(glade,
        [AS_HELP_STRING([--with-glade],
                [build support for Glade [default=yes]]
        )],
-       [use_glade=$enableval],
-       [use_glade=yes])
+       [],
+       [with_glade=yes])
 
 have_glade=no
-if test x"$use_glade" = x"yes"; then
-PKG_CHECK_MODULES(GLADEUI, [gladeui-1.0 >= 3.4],
+if test x"$with_glade" != x"no"; then
+PKG_CHECK_MODULES(GLADEUI, [gladeui-1.0 >= 3],
        [have_glade=yes], [have_glade=no])
 AC_SUBST(GLADEUI_LIBS)
 AC_SUBST(GLADEUI_CFLAGS)