diff options
author | Michael Cahill <michael.cahill@wiredtiger.com> | 2012-09-18 11:00:14 +1000 |
---|---|---|
committer | Michael Cahill <michael.cahill@wiredtiger.com> | 2012-09-18 11:00:14 +1000 |
commit | c31366b3335b907a7aa7fd429ab46f61079627b1 (patch) | |
tree | d690f2ad6c84f825c502a76693986b5dd9ecb916 | |
parent | f83d18e49f82937f6d0f68fc9b0ac78d1158c4ad (diff) | |
download | mongo-c31366b3335b907a7aa7fd429ab46f61079627b1.tar.gz |
Check that SWIG has Python support enabled.
-rw-r--r-- | build_posix/configure.ac.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/build_posix/configure.ac.in b/build_posix/configure.ac.in index 8c5436ded23..8443bd54fc7 100644 --- a/build_posix/configure.ac.in +++ b/build_posix/configure.ac.in @@ -55,6 +55,10 @@ if test "$wt_cv_enable_python" = "yes"; then AM_PATH_PYTHON([2.6]) AX_PKG_SWIG(2.0.4, [], [ AC_MSG_ERROR([SWIG is required to build Python support.]) ]) + touch swigtest.i + $SWIG -python -module swigtest swigtest.i > /dev/null 2>&1 || \ + AC_MSG_ERROR([$SWIG does not include Python support.]) + rm -f swigtest* fi AM_TYPES |