]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* tests/aclocal.m4 (AC_ENV_SAVE): Rename to ...
authorPavel Roskin <proski@gnu.org>
Wed, 25 Oct 2000 11:47:20 +0000 (11:47 +0000)
committerPavel Roskin <proski@gnu.org>
Wed, 25 Oct 2000 11:47:20 +0000 (11:47 +0000)
        (AC_STATE_SAVE): ... this.  Save the list of all files
        in the current directory.
        * tests/atspecific.m4 (_AT_CHECK_AC_MACRO): Compare lists of
        files created by AC_ENV_SAVE. Remove state* before and after
        the test.

ChangeLog
tests/aclocal.m4
tests/atspecific.m4

index 809eaa742c799c3eecb074301134b7ba9bc88a1d..a552cbafa1ec1552848782bb0195652668c2c7d4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2000-10-25  Pavel Roskin  <proski@gnu.org>
+
+       * tests/aclocal.m4 (AC_ENV_SAVE): Rename to ...
+       (AC_STATE_SAVE): ... this.  Save the list of all files
+       in the current directory.
+       * tests/atspecific.m4 (_AT_CHECK_AC_MACRO): Compare lists of
+       files created by AC_ENV_SAVE. Remove state* before and after
+       the test.
+
 2000-10-25  Pavel Roskin  <proski@gnu.org>
 
        * Makefile.am: Add acversion.m4.in to EXTRA_DIST.
index 54adebc56469b2b81e44f948cee7136a04db2851..2e037827d6e2850982d3fae53bd281d350dac791 100644 (file)
@@ -10,7 +10,7 @@ define([join],
         [[$2][$1]join([$1], m4_shift(m4_shift($@)))])])
 
 
-# AC_ENV_SAVE(FILE)
+# AC_STATE_SAVE(FILE)
 # ------------------
 # Save the environment, but the variables we are allowed to touch.
 # This is to check no test touches the user name space.
@@ -27,7 +27,7 @@ define([join],
 #   Some variables some shells use and change
 # - POW_LIB
 #   From acfunctions.m4.
-AC_DEFUN([AC_ENV_SAVE],
+AC_DEFUN([AC_STATE_SAVE],
 [(set) 2>&1 |
   egrep -v -e \
 'join([|],
@@ -46,7 +46,9 @@ AC_DEFUN([AC_ENV_SAVE],
       [^(_|@|.[*#?].|LINENO|OLDPWD|PIPESTATUS|RANDOM|SECONDS)=])' |
   # There maybe variables spread on several lines, eg IFS, remove the dead
   # lines
-  fgrep = >$1
+  fgrep = >state-env.$1
+  rm -f state-ls.$1
+  ls -1 | grep -v '^state' | sort > state-ls.$1
 ])
 
 
index 76eee828af3c77c021a9715c948253f419631954..dd17740740b930ad81f0c6da3d8722d1d24f5d78 100644 (file)
@@ -85,12 +85,13 @@ AT_DATA([configure.in],
 [AC_INIT
 AC_CONFIG_AUX_DIR($top_srcdir)
 AC_CONFIG_HEADER(config.h:config.hin)
-AC_ENV_SAVE(expout)
+AC_STATE_SAVE(before)
 $1
-AC_ENV_SAVE(env-after)
+AC_STATE_SAVE(after)
 AC_OUTPUT
 ])
 $2
+rm -f state*
 AT_CHECK([autoconf -W none --autoconf-dir .. -l $at_srcdir], 0, [], [])
 AT_CHECK([autoheader --autoconf-dir .. -l $at_srcdir], 0, [], [])
 AT_CHECK([top_srcdir=$top_srcdir ./configure], 0, ignore, [])
@@ -98,9 +99,13 @@ test -n "$at_verbose" && echo "--- config.log" && cat config.log
 
 dnl Some tests might exit prematurely when they find a problem, in
 dnl which case `env-after' is probably missing.  Don't check it then.
-if test -f env-after; then
-  AT_CHECK([cat env-after], 0, expout)
+if test -f state-env.after; then
+  cp -f state-env.before expout
+  AT_CHECK([cat state-env.after], 0, expout)
+  cp -f state-ls.before expout
+  AT_CHECK([cat state-ls.after], 0, expout)
 fi
+rm -f state*
 ])# _AT_CHECK_AC_MACRO