Lines 350-367
Link Here
|
350 |
esac |
350 |
esac |
351 |
|
351 |
|
352 |
|
352 |
|
353 |
dnl checks to see if Numeric Python is installed. |
353 |
dnl checks to see if numpy is installed. |
354 |
AC_ARG_ENABLE(numpy, |
354 |
AC_ARG_ENABLE(numpy, |
355 |
AC_HELP_STRING([--disable-numpy], [Disable numeric python features]),, |
355 |
AC_HELP_STRING([--disable-numpy], [Disable numeric python features]),, |
356 |
enable_numpy=yes) |
356 |
enable_numpy=yes) |
357 |
|
357 |
|
358 |
if test "x$enable_numpy" != xno; then |
358 |
if test "x$enable_numpy" != xno; then |
359 |
save_CPPFLAGS="$CPPFLAGS" |
359 |
save_CPPFLAGS="$CPPFLAGS" |
360 |
CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES" |
360 |
numpy_INCLUDES=`$PYTHON -c "import numpy; print numpy.get_include()" 2> /dev/null` |
361 |
AC_CHECK_HEADER([Numeric/arrayobject.h], |
361 |
if test "x$numpy_INCLUDES" = "x"; then |
362 |
[AC_DEFINE(HAVE_NUMPY,,[whether to include numeric python support])],, |
362 |
AC_MSG_WARN([Could not find a valid numpy installation, disabling.]) |
363 |
[#include <Python.h>]) |
363 |
enable_numpy=no |
364 |
CPPFLAGS="$save_CPPFLAGS" |
364 |
else |
|
|
365 |
CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES -I$numpy_INCLUDES" |
366 |
AC_CHECK_HEADER([numpy/arrayobject.h], |
367 |
[AC_DEFINE(HAVE_NUMPY,,[whether to include numeric python support])], |
368 |
[enable_numpy=no], |
369 |
[#include <Python.h>]) |
370 |
if test "x$enable_numpy" != "xno"; then |
371 |
CPPFLAGS="$save_CPPFLAGS -I$numpy_INCLUDES" |
372 |
fi |
373 |
fi |
365 |
fi |
374 |
fi |
366 |
|
375 |
|
367 |
|
376 |
|
Lines 402-412
Link Here
|
402 |
$have_gtk && echo gtk with $gtk_version API |
411 |
$have_gtk && echo gtk with $gtk_version API |
403 |
$have_libglade && echo gtk.glade |
412 |
$have_libglade && echo gtk.glade |
404 |
$have_gtkunixprint && echo gtk.unixprint |
413 |
$have_gtkunixprint && echo gtk.unixprint |
405 |
echo |
|
|
406 |
|
414 |
|
407 |
if test ! $have_atk || ! $have_pango || \ |
415 |
if test ! $have_atk || ! $have_pango || \ |
408 |
! $have_gtk || ! $have_libglade || \ |
416 |
! $have_gtk || ! $have_libglade || \ |
409 |
! $have_pangocairo || ! $have_gtkunixprint; then |
417 |
! $have_pangocairo || ! $have_gtkunixprint; then |
|
|
418 |
echo |
410 |
echo "The following modules will NOT be built:" |
419 |
echo "The following modules will NOT be built:" |
411 |
echo |
420 |
echo |
412 |
$have_atk || echo atk |
421 |
$have_atk || echo atk |
Lines 416-418
Link Here
|
416 |
$have_libglade || echo gtk.glade |
425 |
$have_libglade || echo gtk.glade |
417 |
$have_gtkunixprint || echo gtk.unixprint |
426 |
$have_gtkunixprint || echo gtk.unixprint |
418 |
fi |
427 |
fi |
|
|
428 |
|
429 |
echo |
430 |
echo "Numpy support: $enable_numpy" |
431 |
echo |