1.1 --- a/config/misc.m4 Thu May 05 11:06:58 2005 +0000
1.2 +++ b/config/misc.m4 Thu May 05 15:34:43 2005 +0000
1.3 @@ -26,3 +26,22 @@
1.4 AC_SUBST(DOXYGEN_INTERNAL_DOCS)
1.5 AM_CONDITIONAL([WANT_DOCS], [test x"$enable_docs" != x"no"])
1.6 ])
1.7 +
1.8 +AC_DEFUN([LX_ENABLE_GUI],
1.9 +[
1.10 + AC_ARG_ENABLE([gui],
1.11 +AS_HELP_STRING([--enable-gui], [build the GUI])
1.12 +AS_HELP_STRING([--disable-gui], [do not build the GUI @<:@default@:>@]),
1.13 + [], [enable_gui=no])
1.14 +
1.15 + AC_MSG_CHECKING([whether to build the GUI])
1.16 + if test x"$enable_gui" != x"no"; then
1.17 + AC_MSG_RESULT([yes])
1.18 + else
1.19 + AC_MSG_RESULT([no])
1.20 + fi
1.21 + if test x"$enable_gui" != x"no"; then
1.22 + PKG_CHECK_MODULES([GTK], [libgnomecanvasmm-2.6 >= 2.6.0])
1.23 + fi
1.24 + AM_CONDITIONAL([WANT_GUI], [test x"$enable_gui" != x"no"])
1.25 +])