diff -NrU5 gtk-sharp-2.12.6.orig/configure.in gtk-sharp-2.12.6/configure.in --- gtk-sharp-2.12.6.orig/configure.in 2008-11-24 22:24:07.000000000 +0100 +++ gtk-sharp-2.12.6/configure.in 2008-11-24 22:35:25.000000000 +0100 @@ -184,24 +184,38 @@ PKG_CHECK_MODULES(GTK, gtk+-2.0 >= $GTK_REQUIRED_VERSION) AC_SUBST(GTK_CFLAGS) AC_SUBST(GTK_LIBS) +AC_ARG_ENABLE(glade, + AS_HELP_STRING([--disable-glade], [Don't build glade-sharp]),, + [enable_glade=yes]) + GLADE_REQUIRED_VERSION=2.3.6 -PKG_CHECK_MODULES(GLADE, libglade-2.0 >= $GLADE_REQUIRED_VERSION, enable_glade=yes, enable_glade=no) -AC_SUBST(GLADE_CFLAGS) -AC_SUBST(GLADE_LIBS) +if test "x$enable_glade" = "xyes"; then + PKG_CHECK_MODULES(GLADE, libglade-2.0 >= $GLADE_REQUIRED_VERSION, enable_glade=yes, enable_glade=no) + AC_SUBST(GLADE_CFLAGS) + AC_SUBST(GLADE_LIBS) +fi + +AC_ARG_ENABLE(monodoc, + AS_HELP_STRING([--disable-monodoc], [Don't build monodocuments]),, + [enable_monodoc=yes]) AC_PATH_PROG(MDASSEMBLER, mdassembler, no) AC_PATH_PROG(MONODOCER, monodocer, no) -if test "x$MONODOCER" = "xno" -o "x$MDASSEMBLER" = "xno"; then - enable_monodoc=no - doc_sources_dir= -else - enable_monodoc=yes - doc_sources_dir="`pkg-config --variable=sourcesdir monodoc`" + +if test "x$enable_monodoc" = "xyes"; then + if test "x$MONODOCER" = "xno" -o "x$MDASSEMBLER" = "xno"; then + enable_monodoc=no + doc_sources_dir= + else + enable_monodoc=yes + doc_sources_dir="`pkg-config --variable=sourcesdir monodoc`" + fi fi + AC_SUBST(MDASSEMBLER) AC_SUBST(MONODOCER) AM_CONDITIONAL(ENABLE_MONO_CAIRO, test "x$enable_mono_cairo" = "xyes") AM_CONDITIONAL(ENABLE_GLADE, test "x$enable_glade" = "xyes")