Lines 32-37
Link Here
|
32 |
[AC_HELP_STRING([--with-pygtk], [support pygtk [default=yes]])], |
32 |
[AC_HELP_STRING([--with-pygtk], [support pygtk [default=yes]])], |
33 |
[], |
33 |
[], |
34 |
[with_pygtk="yes"]) |
34 |
[with_pygtk="yes"]) |
|
|
35 |
AC_ARG_WITH([numeric], |
36 |
AS_HELP_STRING([--without-numeric], |
37 |
[Build without numeric support (default: test)])) |
35 |
|
38 |
|
36 |
|
39 |
|
37 |
# put the ACLOCAL flags in the makefile |
40 |
# put the ACLOCAL flags in the makefile |
Lines 79-92
Link Here
|
79 |
AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(could not find Python headers)]) |
82 |
AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(could not find Python headers)]) |
80 |
|
83 |
|
81 |
# Numeric Python |
84 |
# Numeric Python |
82 |
save_CPPFLAGS="$CPPFLAGS" |
85 |
if test "x$with_numeric" != "xno"; then |
83 |
CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES" |
86 |
save_CPPFLAGS="$CPPFLAGS" |
84 |
AC_CHECK_HEADER([Numeric/arrayobject.h], |
87 |
CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES" |
85 |
[have_numpy=yes], [have_numpy=no], |
88 |
AC_CHECK_HEADER([Numeric/arrayobject.h], |
86 |
[#include <Python.h>]) |
89 |
[have_numpy=yes], [have_numpy=no], |
87 |
CPPFLAGS="$save_CPPFLAGS" |
90 |
[#include <Python.h>]) |
88 |
if test x$have_numpy = xyes; then |
91 |
CPPFLAGS="$save_CPPFLAGS" |
89 |
AC_DEFINE(HAVE_NUMPY, [1], [Define to 1 if Numeric python is found]) |
92 |
if test x$have_numpy = xyes; then |
|
|
93 |
AC_DEFINE(HAVE_NUMPY, [1], [Define to 1 if Numeric python is found]) |
94 |
fi |
95 |
else |
96 |
# only needed for the summary printed at the end of configure |
97 |
have_numpy=no |
90 |
fi |
98 |
fi |
91 |
|
99 |
|
92 |
# checks for types and compilers --- |
100 |
# checks for types and compilers --- |