changeset 9787:cc5bb7b5679f

use AMD_CPPFLAGS when checking for UMFPACK
author David Grundberg <davidg@cs.umu.se>
date Mon, 09 Nov 2009 12:42:24 -0500
parents 2c279308f6ab
children e3e5d43d9d4c
files ChangeLog configure.ac
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon Nov 09 12:12:57 2009 -0500
+++ b/ChangeLog	Mon Nov 09 12:42:24 2009 -0500
@@ -1,3 +1,7 @@
+2009-11-09  David Grundberg  <davidg@cs.umu.se>
+
+	* configure.ac: Use AMD_CPPFLAGS while checking for UMFPACK.
+
 2009-10-29  Thomas Treichl  <Thomas.Treichl@gmx.net>
 
 	* configure.in: Add support for dlopen on Mac systems.
--- a/configure.ac	Mon Nov 09 12:12:57 2009 -0500
+++ b/configure.ac	Mon Nov 09 12:42:24 2009 -0500
@@ -976,12 +976,15 @@
 # Check for UMFPACK library.
 
 save_LIBS="$LIBS"
+save_CPPFLAGS="$CPPFLAGS"
 LIBS="$AMD_LDFLAGS $AMD_LIBS $BLAS_LIBS $FLIBS $LIBS"
+CPPFLAGS="$AMD_CPPFLAGS $CPPFLAGS"
 OCTAVE_CHECK_LIBRARY(umfpack, UMFPACK,
   [UMFPACK not found.  This will result in some lack of functionality for sparse matrices.],
   [suitesparse/umfpack.h ufsparse/umfpack.h umfpack/umfpack.h umfpack.h],
   [umfpack_zi_get_determinant],
   [], [don't use UMFPACK, disable some sparse functionality])
+CPPFLAGS="$save_CPPFLAGS"
 LIBS="$save_LIBS"
 
 if test -z "$UMFPACK_LIBS"; then