You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by dr...@apache.org on 2010/08/31 18:51:22 UTC
svn commit: r991248 - in /incubator/thrift/trunk: configure.ac
lib/Makefile.am
Author: dreiss
Date: Tue Aug 31 16:51:21 2010
New Revision: 991248
URL: http://svn.apache.org/viewvc?rev=991248&view=rev
Log:
THRIFT-506. Allow Thrift to be built without the C++ library
Currently, this is only possible by explicitly passing --without-cpp.
It might be better to name it --without-cxx, but it is probably more
important to keep consistency with the "cpp" generator and "lib/cpp".
Modified:
incubator/thrift/trunk/configure.ac
incubator/thrift/trunk/lib/Makefile.am
Modified: incubator/thrift/trunk/configure.ac
URL: http://svn.apache.org/viewvc/incubator/thrift/trunk/configure.ac?rev=991248&r1=991247&r2=991248&view=diff
==============================================================================
--- incubator/thrift/trunk/configure.ac (original)
+++ incubator/thrift/trunk/configure.ac Tue Aug 31 16:51:21 2010
@@ -76,15 +76,22 @@ AC_PROG_MKDIR_P
AC_LANG([C++])
AX_BOOST_BASE([1.33.1])
-have_cpp=yes
-
-AX_LIB_EVENT([1.0])
-have_libevent=$success
-AM_CONDITIONAL([AMX_HAVE_LIBEVENT], [test "$success" = "yes"])
-
-AX_LIB_ZLIB([1.2.3])
-have_zlib=$success
-AM_CONDITIONAL([AMX_HAVE_ZLIB], [test "$success" = "yes"])
+AX_THRIFT_LIB(cpp, [C++], yes)
+have_cpp=no
+if test "$with_cpp" = "yes"; then
+ # Just set this to yes for now, since there is no way
+ # to get through configure without the C++ requirements.
+ have_cpp="yes"
+
+ AX_LIB_EVENT([1.0])
+ have_libevent=$success
+
+ AX_LIB_ZLIB([1.2.3])
+ have_zlib=$success
+fi
+AM_CONDITIONAL([WITH_CPP], [test "$have_cpp" = "yes"])
+AM_CONDITIONAL([AMX_HAVE_LIBEVENT], [test "$have_libevent" = "yes"])
+AM_CONDITIONAL([AMX_HAVE_ZLIB], [test "$have_zlib" = "yes"])
AX_THRIFT_LIB(csharp, [C#], yes)
if test "$with_csharp" = "yes"; then
@@ -342,6 +349,7 @@ echo "$PACKAGE $VERSION"
echo
echo "Building code generators ..... :$thrift_generators"
echo
+echo "Building C++ Library ......... : $have_cpp"
echo "Building Java Library ........ : $have_java"
echo "Building C# Library .......... : $have_csharp"
echo "Building Python Library ...... : $have_python"
Modified: incubator/thrift/trunk/lib/Makefile.am
URL: http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/Makefile.am?rev=991248&r1=991247&r2=991248&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/Makefile.am (original)
+++ incubator/thrift/trunk/lib/Makefile.am Tue Aug 31 16:51:21 2010
@@ -17,8 +17,11 @@
# under the License.
#
-SUBDIRS = \
- cpp
+SUBDIRS =
+
+if WITH_CPP
+SUBDIRS += cpp
+endif
if WITH_MONO
SUBDIRS += csharp