autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Use AS_CASE in documented example.


From: William Pursell
Subject: [PATCH] Use AS_CASE in documented example.
Date: Sun, 28 Dec 2008 11:03:15 +0000
User-agent: Thunderbird 2.0.0.18 (Macintosh/20081105)


* doc/autoconf.texi (Using the System Type): Use AS_CASE in
example instead of raw case.

Signed-off-by: William Pursell <address@hidden>
---
 ChangeLog         |    6 ++++++
 doc/autoconf.texi |   10 +++++-----
 2 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 099c19e..9ceab7d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-12-28  William Pursell  <address@hidden>
+
+       Use AS_CASE in documented example.
+       * doc/autoconf.texi (Using the System Type): Use AS_CASE in
+       example instead of raw case.
+
 2008-12-23  Eric Blake  <address@hidden>

        Make m4_dumpdef more useful with M4 1.6.
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index 2d8d3c7..d619578 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -18948,11 +18948,11 @@ following would be used in a makefile to add the 
object to a
 program or library.

 @example
-case $host in
-  alpha*-*-*) CYCLE_OBJ=rpcc.o ;;
-  i?86-*-*)   CYCLE_OBJ=rdtsc.o ;;
-  *)          CYCLE_OBJ= ;;
-esac
+AS_CASE([$host],
+  [alpha*-*-*], [CYCLE_OBJ=rpcc.o],
+  [i?86-*-*],   [CYCLE_OBJ=rdtsc.o],
+  [CYCLE_OBJ=""]
+)
 AC_SUBST([CYCLE_OBJ])
 @end example

-- 
1.6.1.rc2.306.ge5d5e.dirty


-- 
William Pursell




reply via email to

[Prev in Thread] Current Thread [Next in Thread]