allow building just the library not the testapps 99/2899/1
authorAndy Green <andy.green@linaro.org>
Tue, 15 Jan 2013 11:57:06 +0000 (19:57 +0800)
committerKevron Rees <kevron_m_rees@linux.intel.com>
Thu, 7 Mar 2013 21:01:24 +0000 (13:01 -0800)
From an idea by Jack Mitchell <ml@communistcode.co.uk>

Use --without-testapps at configure time to suppress building them

Signed-off-by: Andy Green <andy.green@linaro.org>
Makefile.am
README-test-server
configure.ac

index 1d39074..ce7f92b 100644 (file)
@@ -1,5 +1,9 @@
 
+if NO_TESTAPPS
+SUBDIRS=lib
+else 
 SUBDIRS=lib test-server
+endif
 
 EXTRA_DIST=scripts/kernel-doc
 
index bc9d65c..a25f01e 100644 (file)
@@ -73,6 +73,8 @@ There are several other possible configure options
                        implementation into the library.  By default your libc
                        one is used.
 
+--without-testapps     Just build the library not the test apps
+
 
 Externally configurable important constants
 -------------------------------------------
index 92d1849..60f7453 100644 (file)
@@ -72,7 +72,17 @@ CFLAGS="$CFLAGS -DLWS_EXT_GOOGLE_MUX"
 fi
 AM_CONDITIONAL(EXT_GOOGLE_MUX, test x$x_google_mux = xyes)
 
-#                                                                               
+# 
+#
+#
+AC_ARG_WITH(testapps,
+ [  --without-testapps  dont build the libwebsocket-test- apps],
+ [ no_testapps=yes
+ ])
+
+AM_CONDITIONAL(NO_TESTAPPS, test x$no_testapps = xyes)
+
+
 #                                                                               
 #                                                                               
 AC_ARG_ENABLE(mingw,