From 2f4a9abf8842de1d629cc74d67f9a804085e6baa Mon Sep 17 00:00:00 2001 From: Grischa Toedt Date: Sat, 7 Jul 2012 22:54:42 +0200 Subject: [PATCH] Fix a build error with automake 1.12 or newer. Since automake 1.12, the warnings in the category 'extra-portability' are now enabled by '-Wall'. Because of this change, linking libtool archives requires the new AM_PROG_AR macro. --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index a41caab..efd2c23 100644 --- a/configure.ac +++ b/configure.ac @@ -20,6 +20,9 @@ AC_CONFIG_MACRO_DIR([m4]) # Initialize automake. AM_INIT_AUTOMAKE([-Wall -Werror foreign]) +# Fix for automake >= 1.12 +m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) + # Initialize libtool. LT_PREREQ([2.2.0]) LT_INIT([win32-dll])