From c92cda0d99820af884fb79c85ba9c738d0c7210f Mon Sep 17 00:00:00 2001 From: Roger Meier Date: Sun, 9 Feb 2014 21:13:53 +0100 Subject: [PATCH] THRIFT-2344 configure.ac: compiler-only option Patch: Roger Meier --- configure.ac | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/configure.ac b/configure.ac index bb09c7ce..7eea98f4 100755 --- a/configure.ac +++ b/configure.ac @@ -99,6 +99,30 @@ AC_PROG_RANLIB AC_LANG([C++]) AX_CXX_COMPILE_STDCXX_11([noext]) +AC_ARG_ENABLE([libs], + AS_HELP_STRING([--enable-libs], [build the Apache Thrift libraries [default=yes]]), + [], enable_libs=yes +) +have_libs=yes +if test "$enable_libs" = "no"; then + have_libs="no" + with_cpp="no" + with_c_glib="no" + with_java="no" + with_csharp="no" + with_python="no" + with_ruby="no" + with_haskell="no" + with_perl="no" + with_php="no" + with_php_extension="no" + with_erlang="no" + with_go="no" + with_d="no" + with_nodejs="no" +fi + + AX_THRIFT_LIB(cpp, [C++], yes) have_cpp=no if test "$with_cpp" = "yes"; then -- 2.17.1