On Tue, Jan 21, 2014 at 09:43:13AM +0100, Lukas Slebodnik wrote:
ehlo,
While I was testning another patch for autotools yesterday, I found few
warnings. Attached patch fixes them.
LS
From e76e062bc0b165fe3f7b5409b0f7520a698edc17 Mon Sep 17 00:00:00
2001
From: Lukas Slebodnik <lslebodn(a)redhat.com>
Date: Mon, 20 Jan 2014 14:07:42 +0100
Subject: [PATCH 1/2] AUTOTOOLS: fix warning: macro xyz not found in library
---
configure.ac | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/configure.ac b/configure.ac
index 83130bd734e77da6dc4ae71ffae625847106afd1..935a096e244d862a8df378f24a343829e3995228
100644
--- a/configure.ac
+++ b/configure.ac
@@ -7,8 +7,7 @@ AC_CONFIG_AUX_DIR([build])
AC_GNU_SOURCE
AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects])
AM_PROG_CC_C_O
-m4_pattern_allow([AM_PROG_AR])
-AM_PROG_AR
+m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
AC_PROG_LIBTOOL
AC_CONFIG_MACRO_DIR([m4])
AC_PROG_INSTALL
@@ -21,8 +20,7 @@ if test x$have_check = x; then
fi
AM_CONDITIONAL([HAVE_CHECK], [test x$have_check != x])
-m4_pattern_allow([AM_SILENT_RULES])
-AM_SILENT_RULES
+m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES])
AC_CONFIG_HEADERS([config.h])
--
1.8.4.2
ACK (on top of Peter Robinson's patch)