From 736020e6fe7714f1b9ecc29c5c61df845c63aeed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A5rd=20Skaflestad?= Date: Tue, 14 Aug 2012 12:42:47 +0200 Subject: [PATCH] Always #define "HAVE_AGMG". Define the symbol to zero (false) if unavailable or unwanted. This prevents a diagnostic message concerning an undefined preprocessor symbol (i.e., "HAVE_AGMG") when used in the form #if HAVE_AGMG /* ... */ #endif --- m4/agmg.m4 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/m4/agmg.m4 b/m4/agmg.m4 index 9e09157b..9321b79a 100644 --- a/m4/agmg.m4 +++ b/m4/agmg.m4 @@ -13,8 +13,12 @@ AC_DEFUN([OPM_AGMG],dnl AC_DEFINE([HAVE_AGMG], [1],dnl [Define to `1' if Notay's AGMG solver is included])[]dnl build_agmg="yes"],dnl - [build_agmg="no"])],dnl - [build_agmg="no"])[]dnl + [AC_DEFINE([HAVE_AGMG], [0],dnl + [Define to 0 if Notay's AGMG solver is unavailable.])[]dnl + build_agmg="no"])],dnl + [AC_DEFINE([HAVE_AGMG], [0],dnl + [Define to 0 if Notay's AGMG solver is unwanted.])[]dnl + build_agmg="no"])[]dnl AS_IF([test x"$build_agmg" = x"yes"],dnl [AC_PROG_FC_C_O[]dnl