diff options
author | Jim Meyering <jim@meyering.net> | 1996-12-21 01:56:50 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1996-12-21 01:56:50 +0000 |
commit | 58dfd6b4420c1d0d9136dfa98829ccd17853b064 (patch) | |
tree | b10ebcf306455a04b25fd831347552f3736adec1 /m4/sanity.m4 | |
parent | 5fc47138b1f01f5ec8d449585bd19abea4da7960 (diff) | |
download | coreutils-58dfd6b4420c1d0d9136dfa98829ccd17853b064.tar.xz |
copied from automake-1.1l
Diffstat (limited to 'm4/sanity.m4')
-rw-r--r-- | m4/sanity.m4 | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/m4/sanity.m4 b/m4/sanity.m4 new file mode 100644 index 000000000..65ca99993 --- /dev/null +++ b/m4/sanity.m4 @@ -0,0 +1,19 @@ +# +# Check to make sure that the build environment is sane. +# + +AC_DEFUN(AM_SANITY_CHECK, +[AC_MSG_CHECKING([whether build environment is sane]) +echo timestamp > conftestfile +# Do this in a subshell so we don't clobber the current shell's +# arguments. FIXME: maybe try `-L' hack like GETLOADAVG test? +if (set X `ls -t $srcdir/configure conftestfile`; test "[$]2" = conftestfile) +then + # Ok. + : +else + AC_MSG_ERROR([newly created file is older than distributed files! +Check your system clock]) +fi +rm -f conftest* +AC_MSG_RESULT(yes)]) |