Thrift-1715: Allow excluding libraries in fb303 configure
Client: fb303
Patch: Harsh J
Updated patch to allow for excluding all avaliable lang libraries using the
--without-<lib> configure flag. Configure output added to notify user of
result
Building C++ Library ......... : yes
Building Java Library ........ : yes
Building Python Library ...... : yes
Building PHP Library ......... : yes
diff --git a/contrib/fb303/Makefile.am b/contrib/fb303/Makefile.am
index de7fbb6..e773e52 100644
--- a/contrib/fb303/Makefile.am
+++ b/contrib/fb303/Makefile.am
@@ -21,11 +21,26 @@
@PRODUCT_MK@
-SUBDIRS = . cpp py
+SUBDIRS = .
+
+if WITH_CPP
+SUBDIRS += cpp
+endif
+
+if WITH_JAVA
+SUBDIRS += java
+endif
+
+if WITH_PHP
+SUBDIRS += php
+endif
+
+if WITH_PYTHON
+SUBDIRS += py
+endif
BUILT_SOURCES =
-
clean-local: clean-common
@GLOBAL_FOOTER_MK@