--- configure.ac.orig 2011-01-29 21:02:19.646030407 +0100 +++ configure.ac 2011-01-29 21:12:00.156516831 +0100 @@ -91,6 +91,12 @@ # Check for Mono support ########################### +AC_ARG_ENABLE([mono], + AC_HELP_STRING([--disable-mono], [Disable Mono bindings generation]), + [enable_mono=$enableval], enable_mono=auto) +AM_CONDITIONAL([WANT_MONO], [test "x$enable_mono" != "xno"]) + +if test "x$enable_mono" != "xno" ; then MONO_REQUIRED_VERSION=1.0 PKG_CHECK_MODULES(MONO_DEPENDENCY, mono >= $MONO_REQUIRED_VERSION, has_mono=true, has_mono=false) @@ -141,6 +147,7 @@ AC_SUBST(GAPI_CODEGEN) AC_PATH_PROG(GAPI_FIXUP, gapi2-fixup, no) AC_SUBST(GAPI_FIXUP) +fi ########################### # Check for Python support --- bindings/Makefile.am.orig 2011-01-29 21:10:05.095991987 +0100 +++ bindings/Makefile.am 2011-01-29 21:11:06.349142195 +0100 @@ -1,2 +1,6 @@ +if WANT_MONO +MONO_SUBDIR = mono +endif + -SUBDIRS = mono python +SUBDIRS = $(MONO_SUBDIR) python