[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Properly quote AC_PREREQ during autoupdate.
From: |
Eric Blake |
Subject: |
[PATCH] Properly quote AC_PREREQ during autoupdate. |
Date: |
Mon, 7 Jun 2010 19:09:29 -0600 |
* lib/autoconf/general.m4 (AC_PREREQ): Follow consistent quoting
style for AC_PREREQ.
* tests/tools.at (autoupdating AC_PREREQ): Update expected
results.
Reported by NightStrike.
Signed-off-by: Eric Blake <address@hidden>
---
Wow - I've really been delinquent on my autoconf patch queue.
I've finally tested this fix for an issue raised in February.
http://lists.gnu.org/archive/html/autoconf/2010-02/msg00079.html
ChangeLog | 9 +++++++++
lib/autoconf/general.m4 | 2 +-
tests/tools.at | 2 +-
3 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index fac7c04..9c62634 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2010-06-07 Eric Blake <address@hidden>
+
+ Properly quote AC_PREREQ during autoupdate.
+ * lib/autoconf/general.m4 (AC_PREREQ): Follow consistent quoting
+ style for AC_PREREQ.
+ * tests/tools.at (autoupdating AC_PREREQ): Update expected
+ results.
+ Reported by NightStrike.
+
2010-06-01 Ralf Wildenhues <address@hidden>
Documentation and tests for the AC_CHECK_DECL change.
diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4
index 762a56c..f73673e 100644
--- a/lib/autoconf/general.m4
+++ b/lib/autoconf/general.m4
@@ -298,7 +298,7 @@ m4_define([AC_REVISION],
# Autoconf, which is certainly not what the user intended.
AU_DEFUN([AC_PREREQ],
[m4_version_prereq([$1])[]dnl
-[AC_PREREQ(]]m4_defn([m4_PACKAGE_VERSION])[[)]])
+[AC_PREREQ(]]m4_dquote(m4_dquote(m4_defn([m4_PACKAGE_VERSION])))[[)]])
# AC_PREREQ(VERSION)
diff --git a/tests/tools.at b/tests/tools.at
index 05e88c9..167d68a 100644
--- a/tests/tools.at
+++ b/tests/tools.at
@@ -860,7 +860,7 @@ AT_SETUP([autoupdating AC_PREREQ])
# Produce `AC_PREREQ(<AUTOUPDATE VERSION>)'.
AT_CHECK([autoupdate --version | sed 's/.*) //;q'], 0, [stdout])
autoupdate_version=`cat stdout`
-echo "AC_PREREQ($autoupdate_version)" >expout
+[echo "AC_PREREQ([$autoupdate_version])" >expout]
AT_CHECK([echo "AC_PREREQ(1.0)" | autoupdate -],
0, [expout], [])
--
1.7.0.1
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] Properly quote AC_PREREQ during autoupdate.,
Eric Blake <=