warnings.m4: don't usurp save_CPPFLAGS variable name
authorJim Meyering <meyering@redhat.com>
Tue, 17 May 2011 12:10:16 +0000 (14:10 +0200)
committerJim Meyering <meyering@redhat.com>
Tue, 17 May 2011 12:10:49 +0000 (14:10 +0200)
* m4/warnings.m4: Prefix local temporary variable name with gl_.

ChangeLog
m4/warnings.m4

index 702d9d18048d14a935131237b9691ee13b8fd5f3..295a71d7d6972f79fceaf66dfbc5d90f2d72dd33 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2011-05-17  Jim Meyering  <meyering@redhat.com>
 
+       warnings.m4: don't usurp save_CPPFLAGS variable name
+       * m4/warnings.m4: Prefix local temporary variable name with gl_.
+
        doc: fix typo
        * doc/gnulib-intro.texi (Target Platforms): s/is/are/
 
index a8f3466326881d205deac195222d90e5bee8047f..b2d1a29e2a18a577118eeea4ed1e170a0b2abeec 100644 (file)
@@ -1,4 +1,4 @@
-# warnings.m4 serial 2
+# warnings.m4 serial 3
 dnl Copyright (C) 2008-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -21,12 +21,12 @@ m4_ifdef([AS_VAR_APPEND],
 AC_DEFUN([gl_WARN_ADD],
 [AS_VAR_PUSHDEF([gl_Warn], [gl_cv_warn_$1])dnl
 AC_CACHE_CHECK([whether compiler handles $1], [gl_Warn], [
-  save_CPPFLAGS="$CPPFLAGS"
+  gl_save_CPPFLAGS="$CPPFLAGS"
   CPPFLAGS="${CPPFLAGS} $1"
   AC_PREPROC_IFELSE([AC_LANG_PROGRAM([])],
                     [AS_VAR_SET([gl_Warn], [yes])],
                     [AS_VAR_SET([gl_Warn], [no])])
-  CPPFLAGS="$save_CPPFLAGS"
+  CPPFLAGS="$gl_save_CPPFLAGS"
 ])
 AS_VAR_PUSHDEF([gl_Flags], m4_if([$2], [], [[WARN_CFLAGS]], [[$2]]))dnl
 AS_VAR_IF([gl_Warn], [yes], [gl_AS_VAR_APPEND([gl_Flags], [" $1"])])