Author: gsim
Date: Wed Jun  3 13:08:35 2009
New Revision: 781358

URL: http://svn.apache.org/viewvc?rev=781358&view=rev
Log:
Allow conrol at configure time over generation of qmf bindings via swig 
(--with-swig/--without-swig)


Modified:
    qpid/trunk/qpid/cpp/configure.ac

Modified: qpid/trunk/qpid/cpp/configure.ac
URL: 
http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/configure.ac?rev=781358&r1=781357&r2=781358&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/configure.ac (original)
+++ qpid/trunk/qpid/cpp/configure.ac Wed Jun  3 13:08:35 2009
@@ -151,6 +151,13 @@
 
 # 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.



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to