From 93556dc60dffdf6ed1eb098031906bf4fcd77835 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A5rd=20Skaflestad?= Date: Tue, 3 Jan 2012 20:20:16 +0100 Subject: [PATCH] Provide diagnostic message when failing to locate UMFPACK library. Not all processors support the 'AM_COND_IF' macro (introduced in Automake 1.11), so only call the macro if it is available in the processor. --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac index 8ac08a6f..0485cbd2 100644 --- a/configure.ac +++ b/configure.ac @@ -59,6 +59,12 @@ AC_SEARCH_LIBS([umfpack_dl_solve], [umfpack], AM_CONDITIONAL([UMFPACK], [test "x$umfpack_header" != "xno" -a "x$umfpack_lib" != "xno"]) +m4_ifdef([AM_COND_IF], +[AM_COND_IF([UMFPACK], [], + [AC_MSG_NOTICE([Found no working installation of UMFPACK. + UMFPACK support is disabled.])]) +]) + AC_CONFIG_FILES([ Makefile