[cig-commits] r13036 - cs/cigma/trunk
luis at geodynamics.org
luis at geodynamics.org
Wed Oct 15 02:07:22 PDT 2008
Author: luis
Date: 2008-10-15 02:07:22 -0700 (Wed, 15 Oct 2008)
New Revision: 13036
Modified:
cs/cigma/trunk/configure.ac
Log:
Check whether we can import numpy at ./configure time
Modified: cs/cigma/trunk/configure.ac
===================================================================
--- cs/cigma/trunk/configure.ac 2008-10-15 09:07:21 UTC (rev 13035)
+++ cs/cigma/trunk/configure.ac 2008-10-15 09:07:22 UTC (rev 13036)
@@ -36,6 +36,12 @@
AM_CONDITIONAL(HAVE_PYTHON, false)
fi
+dnl Check for numpy
+AC_CHECK_PYTHON_MODULE(numpy)
+if [test "$PYTHON_numpy" != "1"]; then
+ AC_MSG_ERROR([[Could not import the numpy python module. Please ensure it is installed correctly and is available in your PYTHONPATH]])
+fi
+
dnl Configure CppUnit (XXX: move this step to cigma.m4)
AM_PATH_CPPUNIT([1.12.0],
[withcppunit=yes],
@@ -73,6 +79,7 @@
echo "- Python binary : $PYTHON_BIN"
echo "- Python header path : $PYTHON_INCLUDE_DIR"
echo "- Python library : -l$PYTHON_LIB"
+echo "- NumPy library : $PYTHON_numpy"
# if using cigma_boost.m4
#echo "- BOOST_CPPFLAGS : $BOOST_CPPFLAGS"
More information about the cig-commits
mailing list