diff options
author | Michael Cahill <michael.cahill@wiredtiger.com> | 2011-08-26 15:34:52 +1000 |
---|---|---|
committer | Michael Cahill <michael.cahill@wiredtiger.com> | 2011-08-26 15:34:52 +1000 |
commit | 3eb4b3b2f5d74cc16787b630a2645287b15bd0db (patch) | |
tree | 42cdc7d75be7f75987afa3f6ed973f522cbe0b49 /build_posix | |
parent | dbd19cb3954d64507d6f30768c7d0a28f91d8bee (diff) | |
download | mongo-3eb4b3b2f5d74cc16787b630a2645287b15bd0db.tar.gz |
Search for swig during configure for Python builds.
Diffstat (limited to 'build_posix')
-rw-r--r-- | build_posix/Make.base | 2 | ||||
-rw-r--r-- | build_posix/configure.ac | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/build_posix/Make.base b/build_posix/Make.base index 45a92a40424..eb65181f2ad 100644 --- a/build_posix/Make.base +++ b/build_posix/Make.base @@ -37,7 +37,7 @@ PY_SETUP_DEBUG = -g endif all-local: _wiredtiger.so $(PYSRC)/wiredtiger_wrap.c: wiredtiger.h $(PYSRC)/wiredtiger.i - @(cd $(PYSRC) && swig -python -I../../build_posix wiredtiger.i) + @(cd $(PYSRC) && $(SWIG) -python -I../../build_posix wiredtiger.i) _wiredtiger.so: $(wt_LTLIBRARIES) $(PYSRC)/wiredtiger_wrap.c @env CFLAGS="$(PYTHON_CFLAGS)" LDFLAGS="$(PYTHON_LDFLAGS)" \ diff --git a/build_posix/configure.ac b/build_posix/configure.ac index e94de245250..4a334d93f2f 100644 --- a/build_posix/configure.ac +++ b/build_posix/configure.ac @@ -64,6 +64,11 @@ AM_CONDITIONAL(DEBUG, test "$db_cv_enable_debug" = "yes") # Python API if test "$db_cv_enable_python" = "yes"; then AM_PATH_PYTHON([2.5]) + AC_PATH_PROG([SWIG], [swig]) + if test -z "$SWIG" ; then + AC_MSG_ERROR( + [Cannot find 'swig'. Download it from http://www.swig.org]) + fi fi AM_TYPES |