From 69ab06fde895f73def7084faaae320d95cba86de Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Wed, 3 Jun 2009 13:08:35 +0000 Subject: Allow conrol at configure time over generation of qmf bindings via swig (--with-swig/--without-swig) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@781358 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'cpp') diff --git a/cpp/configure.ac b/cpp/configure.ac index 408faf99b3..054ebb16f1 100644 --- a/cpp/configure.ac +++ b/cpp/configure.ac @@ -151,6 +151,13 @@ test -z "$RUBY" && AC_MSG_ERROR([Missing ruby installation (try "yum install rub # Swig binding generator is needed for the script (Ruby, Python, etc.) bindings. AC_CHECK_PROG([SWIG], [swig], [swig]) +AC_ARG_WITH([swig], + [AS_HELP_STRING([--with-swig], [Use swig to generate qmf bindings.])], + [case "$withval" in + yes) test -z "$SWIG" && AC_MSG_ERROR([swig not found.]) ;; + no) SWIG="" ;; + *) AC_MSG_ERROR([Bad value ${withval} for --with-swig.]) ;; + esac]) AM_CONDITIONAL([HAVE_SWIG], [test -n "$SWIG"]) # Ruby bindings: To build ruby wrappers, the ruby-devel files must be present. -- cgit v1.2.1