From b448adff16d9c9921b905a56a72e6cc16afe129f Mon Sep 17 00:00:00 2001 From: Ivar Ursin Nikolaisen Date: Thu, 23 Aug 2012 14:20:41 +0200 Subject: [PATCH] Make configure.ac compatible with automake 1.12 Since automake 1.12 warnings in the category 'extra-portability' are enabled with -Wall [1]. In automake 1.11.2 the AM_PROG_AR macro was added and is required when compiling with extra-compatibility [2]. [1] http://lists.gnu.org/archive/html/automake/2012-04/msg00060.html [2] http://lists.gnu.org/archive/html/automake/2011-12/msg00055.html --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index 59d642f0..cc4b92e1 100644 --- a/configure.ac +++ b/configure.ac @@ -8,6 +8,10 @@ AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects]) m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) +# Needed for automake since version 1.12 because extra-portability +# warnings were then added to -Wall. Ifdef makes it backwards compatible. +m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) + AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_SRCDIR([opm/core/grid.h]) AC_CONFIG_HEADERS([config.h])