From a21074b9ea4b11b74d114e2669248f979caf0d3a Mon Sep 17 00:00:00 2001 From: James Willcox Date: Fri, 9 Sep 2005 18:41:51 +0000 Subject: integrate mono bindings into the build git-svn-id: file:///home/lennart/svn/public/avahi/trunk@540 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- configure.ac | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 2986334..15a6436 100644 --- a/configure.ac +++ b/configure.ac @@ -386,6 +386,34 @@ AM_CONDITIONAL(HAVE_PYTHON, [test "x$HAVE_PYTHON" = "xyes" ]) AM_CONDITIONAL(HAVE_PYGTK, test "x$HAVE_PYGTK" = "xyes") AM_CONDITIONAL(HAVE_PYTHON_DBUS, test "x$HAVE_PYTHON_DBUS" = "xyes") +# +# Check for mono stuff +# +AC_ARG_ENABLE(mono, + AS_HELP_STRING([--disable-mono],[Disable mono bindings]), + [case "${enableval}" in + yes) HAVE_MONO=yes ;; + no) HAVE_MONO=no ;; + *) AC_MSG_ERROR(bad value ${enableval} for --enable-mono) ;; + esac], + [HAVE_MONO=yes]) + +if test "x$HAVE_MONO" = "xyes" ; then + AC_PATH_PROG(MCS, mcs) + if test "x$MCS" = "x" ; then + AC_MSG_ERROR([Can not find "mcs" in your PATH]) + fi + + AC_PATH_PROG(GACUTIL, gacutil) + if test "x$GACUTIL" = "x" ; then + AC_MSG_ERROR([Can not find "gacutil" in your PATH]) + fi + + AC_SUBST(MCS) + AC_SUBST(GACUTIL) +fi +AM_CONDITIONAL(HAVE_MONO, test "x$HAVE_MONO" = "xyes") + # # Defining Avahi User and Group. # @@ -546,4 +574,5 @@ echo " Building avahi-discover-standalone: ${HAVE_GTK} Building libavahi-qt3: ${HAVE_QT3} Building libavahi-qt4: ${HAVE_QT4} + Building avahi-sharp: ${HAVE_MONO} " -- cgit