diff options
author | Rob Savoye <rob@welcomehome.org> | 2010-11-17 18:29:22 -0700 |
---|---|---|
committer | Rob Savoye <rob@welcomehome.org> | 2010-11-17 18:29:22 -0700 |
commit | 6129a67cf6527a0f0dc8b83df108c4fe2147155b (patch) | |
tree | 76a4a8d652eaf135066cf3a39b80ab2c72ea7567 /config | |
parent | 690338290a18d452f408727983c873f8caa845bf (diff) |
don't look for swig if no scripting language is specified.
Diffstat (limited to 'config')
-rw-r--r-- | config/gr_swig.m4 | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/config/gr_swig.m4 b/config/gr_swig.m4 index 826661f534..8a9c732680 100644 --- a/config/gr_swig.m4 +++ b/config/gr_swig.m4 @@ -26,7 +26,8 @@ dnl # is greater or equal to the value of the argument. It should have the format: # N[.N[.N]] (N is a number between 0 and 999. Only the first N is mandatory.) AC_DEFUN([SWIG_PROG],[ - AC_REQUIRE([AC_PROG_MAKE_SET]) + AC_REQUIRE([AC_PROG_MAKE_SET]) + if test x${enable_python} = xyes -o x${enable_guile} = xyes; then AC_CHECK_PROG(SWIG,swig,[`which swig`]) if test -z "$SWIG" ; then AC_MSG_ERROR([Cannot find 'swig' program. SWIG version >= $1 required]) @@ -48,6 +49,7 @@ AC_DEFUN([SWIG_PROG],[ AC_MSG_ERROR([cannot determine SWIG version]) fi fi + fi ]) # SWIG_ENABLE_CXX() @@ -56,9 +58,11 @@ AC_DEFUN([SWIG_PROG],[ AC_DEFUN([SWIG_ENABLE_CXX],[ AC_REQUIRE([SWIG_PROG]) AC_REQUIRE([AC_PROG_CXX]) - if test "$SWIG" != "false" ; then + if test x${enable_python} = xyes -o x${enable_guile} = xyes; then + if test "$SWIG" != "false" ; then SWIG="$SWIG -c++" - fi + fi + fi ]) # SWIG_PYTHON([use-shadow-classes]) |