From 7538d895d2e44f666402ef66d679c77e2cfde2cf Mon Sep 17 00:00:00 2001 From: Tiago de Paula Peixoto Date: Mon, 13 Oct 2008 18:04:40 +0200 Subject: [PATCH] Add --with-numpy and --with-scipy options to configure This allows specifying where numpy and scipy are installed, which can be useful when installing graph_tool in a different location. --- configure.ac | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index c66fa70d..b5a53f51 100644 --- a/configure.ac +++ b/configure.ac @@ -163,7 +163,12 @@ CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS" dnl Checks for header files. dnl numpy -NUMPY_DIR="${PYLIBDIR}/numpy/core/include/numpy" +NUMPY_DIR="${PYLIBDIR}/numpy" +AC_ARG_WITH([numpy], [AC_HELP_STRING([--with-numpy=DIR], + [directory where numpy is installed + [default=${PYLIBDIR}/numpy] ])], + NUMPY_DIR=$withval) +NUMPY_DIR="${NUMPY_DIR}/core/include/numpy" AC_CHECK_HEADER([${NUMPY_DIR}/arrayobject.h], [CPPFLAGS="$CPPFLAGS -I$NUMPY_DIR"], [AC_MSG_ERROR([Numpy extension header not found])], @@ -171,7 +176,10 @@ AC_CHECK_HEADER([${NUMPY_DIR}/arrayobject.h], dnl scipy SCIPY_DIR="${PYLIBDIR}/scipy" - +AC_ARG_WITH([scipy], [AC_HELP_STRING([--with-scipy=DIR], + [scipy install directory + [default=${PYLIBDIR}/scipy] ])], + SCIPY_DIR=$withval) AC_CHECK_HEADER([${SCIPY_DIR}/weave/scxx/object.h], [AC_DEFINE([HAVE_SCIPY], [1], [using scipy's weave])] [CPPFLAGS="$CPPFLAGS -I$SCIPY_DIR"]) -- GitLab