From 520b5eec8f85ce6b524021c026677d1991ad72f6 Mon Sep 17 00:00:00 2001 From: David Reiss Date: Sun, 2 Mar 2008 07:00:26 +0000 Subject: [PATCH] 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 --- configure.ac | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- 2.17.1