automake
[Top][All Lists]
Advanced

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

Re: AM_INIT_AUTOMAKE uses a deprecated macro


From: Ralf Wildenhues
Subject: Re: AM_INIT_AUTOMAKE uses a deprecated macro
Date: Tue, 19 Feb 2008 22:19:30 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

* NightStrike wrote on Tue, Feb 19, 2008 at 06:53:04AM CET:
> When I use AM_INIT_AUTOMAKE, it makes use of _AM_SET_OPTIONS, which
> uses AC_FOREACH, which is deprecated in autoconf and referenced in the
> autoconf manual as deprecated.  I thought I was using all of the
> "latest and greatest" tools.  Has this been updated?  If so, how/where
> do I get the update?

Fixed thusly, master and branch-1-10.  Thanks for the report.

Cheers,
Ralf

2008-02-19  Ralf Wildenhues  <address@hidden>

        PR automake/498
        * m4/options.m4 (_AM_SET_OPTIONS): Use m4_foreach_w instead of
        obsolete AC_FOREACH.
        Report by NightStrike and address@hidden

diff --git a/m4/options.m4 b/m4/options.m4
index 34c086d..8e5017e 100644
--- a/m4/options.m4
+++ b/m4/options.m4
@@ -1,12 +1,12 @@
 # Helper functions for option handling.                     -*- Autoconf -*-
 
-# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
+# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
 #
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
 # with or without modifications, as long as this notice is preserved.
 
-# serial 3
+# serial 4
 
 # _AM_MANGLE_OPTION(NAME)
 # -----------------------
@@ -23,7 +23,7 @@ AC_DEFUN([_AM_SET_OPTION],
 # ----------------------------------
 # OPTIONS is a space-separated list of Automake options.
 AC_DEFUN([_AM_SET_OPTIONS],
-[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
+[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 
 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
 # -------------------------------------------




reply via email to

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