[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] GNU Autoconf source repository branch, master, updated. v2.69-37-g
From: |
Paul Eggert |
Subject: |
[SCM] GNU Autoconf source repository branch, master, updated. v2.69-37-gb9dc6b6 |
Date: |
Tue, 16 Oct 2012 20:45:56 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Autoconf source repository".
http://git.sv.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=b9dc6b6e9c4e3a8b6ee88b2969c237b729708e67
The branch, master has been updated
via b9dc6b6e9c4e3a8b6ee88b2969c237b729708e67 (commit)
via 18c140b50b0619454d4da50d58a318cc257d580a (commit)
from c8d2326a71e420cd57e2b7100d70135437577c3a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit b9dc6b6e9c4e3a8b6ee88b2969c237b729708e67
Author: Paul Eggert <address@hidden>
Date: Tue Oct 16 13:32:31 2012 -0700
AC_PROG_CC_C89, AC_PROG_CC_C99, AC_PROG_CC_STDC: Use AU_ALIAS.
Based on a suggestion by Adrian Bunk in
http://lists.gnu.org/archive/html/autoconf-patches/2012-09/msg00040.html
* lib/autoconf/c.m4 (AC_PROG_CC_C89, AC_PROG_CC_C99, AC_PROG_CC_STDC):
Use AU_ALIAS, now that AC_PROG_CC is defined via AC_DEFUN_ONCE.
commit 18c140b50b0619454d4da50d58a318cc257d580a
Author: Paul Eggert <address@hidden>
Date: Tue Oct 16 13:20:58 2012 -0700
AC_PROG_CC: define via AC_DEFUN_ONCE
Suggested by Adrian Bunk in
http://lists.gnu.org/archive/html/autoconf-patches/2012-09/msg00034.html
* NEWS:
* doc/autoconf.texi (C Compiler): Document it
* lib/autoconf/c.m4 (AC_PROG_CC): Implement it.
-----------------------------------------------------------------------
Summary of changes:
NEWS | 2 ++
doc/autoconf.texi | 7 ++-----
lib/autoconf/c.m4 | 17 ++++-------------
3 files changed, 8 insertions(+), 18 deletions(-)
diff --git a/NEWS b/NEWS
index 8b35cb8..d3ff4b9 100644
--- a/NEWS
+++ b/NEWS
@@ -13,6 +13,8 @@ GNU Autoconf NEWS - User visible changes.
- AC_PROG_CC now prefers C11 if available, falling back on C99 and
then on C89 as before.
+- AC_PROG_CC is now defined via AC_DEFUN_ONCE, to avoid bloat in 'configure'.
+
- AC_PROG_CC_STDC, AC_PROG_CC_C89, AC_PROG_CC_C99 have been marked as obsolete.
Applications should use AC_PROG_CC.
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index e0666d4..a0c19d1 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -7280,11 +7280,8 @@ and before @code{AC_PROG_CC} to select an empty default
instead.
Many Autoconf macros use a compiler, and thus call
@samp{AC_REQUIRE([AC_PROG_CC])} to ensure that the compiler has been
determined before the body of the outermost @code{AC_DEFUN} macro.
-Although @code{AC_PROG_CC} is safe to directly expand multiple times, it
-performs certain checks (such as the proper value of @env{EXEEXT}) only
-on the first invocation. Therefore, care must be used when invoking
-this macro from within another macro rather than at the top level
-(@pxref{Expanded Before Required}).
address@hidden is therefore defined via @code{AC_DEFUN_ONCE} to avoid
+needless reexpansion (@pxref{One-Shot Macros}).
@end defmac
@anchor{AC_PROG_CC_C_O}
diff --git a/lib/autoconf/c.m4 b/lib/autoconf/c.m4
index ad40527..4a84489 100644
--- a/lib/autoconf/c.m4
+++ b/lib/autoconf/c.m4
@@ -432,7 +432,7 @@ AU_DEFUN([ac_cv_prog_gcc],
AN_MAKEVAR([CC], [AC_PROG_CC])
AN_PROGRAM([cc], [AC_PROG_CC])
AN_PROGRAM([gcc], [AC_PROG_CC])
-AC_DEFUN([AC_PROG_CC],
+AC_DEFUN_ONCE([AC_PROG_CC],
[AC_LANG_PUSH(C)dnl
AC_ARG_VAR([CC], [C compiler command])dnl
AC_ARG_VAR([CFLAGS], [C compiler flags])dnl
@@ -1448,24 +1448,15 @@ dnl preferably extc11.
# AC_PROG_CC_C89
# --------------
-AC_DEFUN([AC_PROG_CC_C89],
-[ AC_REQUIRE([AC_PROG_CC])dnl
- m4_warn([obsolete], [$0 is obsolete; use AC_PROG_CC])
-])
+AU_ALIAS([AC_PROG_CC_C89], [AC_PROG_CC])
# AC_PROG_CC_C99
# --------------
-AC_DEFUN([AC_PROG_CC_C99],
-[ AC_REQUIRE([AC_PROG_CC])dnl
- m4_warn([obsolete], [$0 is obsolete; use AC_PROG_CC])
-])
+AU_ALIAS([AC_PROG_CC_C99], [AC_PROG_CC])
# AC_PROG_CC_STDC
# ---------------
-AC_DEFUN([AC_PROG_CC_STDC],
-[ AC_REQUIRE([AC_PROG_CC])dnl
- m4_warn([obsolete], [$0 is obsolete; use AC_PROG_CC])
-])
+AU_ALIAS([AC_PROG_CC_STDC], [AC_PROG_CC])
# AC_C_BACKSLASH_A
hooks/post-receive
--
GNU Autoconf source repository
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] GNU Autoconf source repository branch, master, updated. v2.69-37-gb9dc6b6,
Paul Eggert <=