From 6223feeb8ed6f6e525c85f3023195d99dfa1589f Mon Sep 17 00:00:00 2001 From: Bert Vermeulen Date: Sat, 19 Jul 2014 20:20:47 +0200 Subject: [PATCH] configure: Add --enable-bindings switch. --- configure.ac | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 971f9a7e..cf7e8dc2 100644 --- a/configure.ac +++ b/configure.ac @@ -156,20 +156,25 @@ AC_ARG_ENABLE(libusb, # Language binding '--enable' options -AC_ARG_ENABLE(c++, +AC_ARG_ENABLE(bindings, + AC_HELP_STRING([--enable-bindings], + [build language bindings [default=yes]]), + [BINDINGS_ALL="$enableval"], [BINDINGS_ALL="yes"]) + +AC_ARG_ENABLE(cxx, AC_HELP_STRING([--enable-cxx], [build C++ bindings [default=yes]]), - [BINDINGS_CXX="$enableval"], [BINDINGS_CXX="yes"]) + [BINDINGS_CXX="$enableval"], [BINDINGS_CXX=$BINDINGS_ALL]) AC_ARG_ENABLE(python, AC_HELP_STRING([--enable-python], [build Python bindings [default=yes]]), - [BINDINGS_PYTHON="$enableval"], [BINDINGS_PYTHON="yes"]) + [BINDINGS_PYTHON="$enableval"], [BINDINGS_PYTHON=$BINDINGS_ALL]) AC_ARG_ENABLE(java, AC_HELP_STRING([--enable-java], [build Java bindings [default=yes]]), - [BINDINGS_JAVA="$enableval"], [BINDINGS_JAVA="yes"]) + [BINDINGS_JAVA="$enableval"], [BINDINGS_JAVA=$BINDINGS_ALL]) # Check if the C++ compiler supports the C++11 standard.