]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Make WITH_NUMPY defined when running swig
authoreap <eap@opencascade.com>
Fri, 3 Sep 2010 07:21:08 +0000 (07:21 +0000)
committereap <eap@opencascade.com>
Fri, 3 Sep 2010 07:21:08 +0000 (07:21 +0000)
+   SWIG_FLAGS="$SWIG_FLAGS -DWITH_NUMPY=WITH_NUMPY "

salome_adm/unix/config_files/check_swig.m4

index 4d4f9df789d6b1734479ed5e2c1470cafe386340..9d3717cf01ef038e91f92366226ad42841bee1b3 100644 (file)
@@ -62,6 +62,7 @@ numpydir=`$PYTHON -c "import numpy;print numpy.get_include()" 2>/dev/null`
 if test -d "$numpydir"; then
    numpy_ok=yes
    PYTHON_INCLUDES="$PYTHON_INCLUDES -I$numpydir"
+   SWIG_FLAGS="$SWIG_FLAGS -DWITH_NUMPY=WITH_NUMPY "
    AC_DEFINE([WITH_NUMPY], [], [Python has numpy extension])
 fi