diff options
author | James Willcox <snopr@snorp.net> | 2005-09-09 18:41:51 +0000 |
---|---|---|
committer | James Willcox <snopr@snorp.net> | 2005-09-09 18:41:51 +0000 |
commit | a21074b9ea4b11b74d114e2669248f979caf0d3a (patch) | |
tree | 0a51486c45514bdecd500a012f59039c53ecba3d /configure.ac | |
parent | 8263f6594082e5c892a9425707413a386733fef4 (diff) |
integrate mono bindings into the build
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@540 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 2986334..15a6436 100644 --- a/configure.ac +++ b/configure.ac @@ -387,6 +387,34 @@ 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. # AC_ARG_WITH(avahi_user, AS_HELP_STRING([--with-avahi-user=<user>],[User for running the Avahi daemon (avahi)])) @@ -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} " |