[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Ignore warnings from autom4te about Libtool macros.
From: |
Ralf Wildenhues |
Subject: |
Ignore warnings from autom4te about Libtool macros. |
Date: |
Thu, 12 Mar 2009 22:30:58 +0100 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
Pushed to master, to fix bogus test failures with some Autoconf or
Libtool versions.
Cheers,
Ralf
Ignore warnings from autom4te about Libtool macros.
* tests/ltinstloc.test: When testing for presence of warnings,
filter out any that are not interesting for this test, e.g.,
warnings about installed files or about bogusly named cache
variables in libtool.m4, emitted by recent Autoconf when older
Libtool is used.
diff --git a/tests/ltinstloc.test b/tests/ltinstloc.test
index d6122fd..db57e4f 100755
--- a/tests/ltinstloc.test
+++ b/tests/ltinstloc.test
@@ -1,5 +1,5 @@
#!/bin/sh
-# Copyright (C) 2008 Free Software Foundation, Inc.
+# Copyright (C) 2008, 2009 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -43,9 +43,12 @@ $ACLOCAL
$AUTOCONF
AUTOMAKE_fails --add-missing
+# libtoolize might have installed config.guess and config.sub already,
+# and autom4te might warn about bugs in Libtool macro files, so filter
+# out warnings about Makefile.am only. We don't care in this test
+# whether automake installs config.guess and config.sub.
+
cat >expected <<'END'
-configure.in:5: installing `./config.guess'
-configure.in:5: installing `./config.sub'
Makefile.am:5: sub/liba2.la multiply defined in condition COND
Makefile.am:5: `sub/liba2.la' should be installed below `lib' in condition
COND ...
Makefile.am:2: ... and should also be installed in `lib' in condition COND.
@@ -55,7 +58,7 @@ Makefile.am:2: ... and should also be installed in `lib' in
condition COND.
Makefile.am:2: Libtool libraries can be built for only one destination.
END
-diff stderr expected
+grep '^Makefile.am' stderr | diff - expected
sed 's/#//' < Makefile.am > t
mv -f t Makefile.am
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Ignore warnings from autom4te about Libtool macros.,
Ralf Wildenhues <=