From: David Reiss Date: Sun, 2 Mar 2008 07:00:26 +0000 (+0000) Subject: Allow the C# library to be excluded from the build. X-Git-Tag: 0.2.0~926 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=520b5eec8f85ce6b524021c026677d1991ad72f6;p=common%2Fthrift.git Allow the C# library to be excluded from the build. Use AX_THRIFT_LIB to make configure support --without-csharp. Don't bother testing for the C# requirements if this is set. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665546 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/configure.ac b/configure.ac index 5c4859ce..704719d2 100644 --- a/configure.ac +++ b/configure.ac @@ -36,7 +36,10 @@ AM_CONDITIONAL([AMX_HAVE_LIBEVENT], [test "$success" = "yes"]) AX_LIB_ZLIB([1.2.3]) AM_CONDITIONAL([AMX_HAVE_ZLIB], [test "$success" = "yes"]) -PKG_CHECK_MODULES(MONO, mono >= 1.2.6, have_mono=yes, have_mono=no) +AX_THRIFT_LIB(csharp, [C#], yes) +if test "$with_csharp" = "yes"; then + PKG_CHECK_MODULES(MONO, mono >= 1.2.6, have_mono=yes, have_mono=no) +fi AM_CONDITIONAL(ENABLE_MONO, [test "$have_mono" = "yes"]) AX_THRIFT_LIB(java, [Java], yes)