From 1d02bb20a9f1135e6c95310f5139837a59ca8de3 Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 3 Sep 2010 07:21:08 +0000 Subject: [PATCH] Make WITH_NUMPY defined when running swig + SWIG_FLAGS="$SWIG_FLAGS -DWITH_NUMPY=WITH_NUMPY " --- salome_adm/unix/config_files/check_swig.m4 | 1 + 1 file changed, 1 insertion(+) diff --git a/salome_adm/unix/config_files/check_swig.m4 b/salome_adm/unix/config_files/check_swig.m4 index 4d4f9df78..9d3717cf0 100644 --- a/salome_adm/unix/config_files/check_swig.m4 +++ b/salome_adm/unix/config_files/check_swig.m4 @@ -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 -- 2.39.2