diff options
author | Alexey Neyman <stilor@att.net> | 2018-04-28 23:41:16 (GMT) |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2018-04-29 19:06:54 (GMT) |
commit | 74979fb19b2c7220dab4196c0d34e0c29b341b09 (patch) | |
tree | 6ae4685ef53ec2b10593fe19fc1397bc8619f311 /m4/ctng_prog_stat.m4 | |
parent | 0f34b0ebf0651fd26fde1646ac1fb4031e0c57a2 (diff) |
Add checking for *sum and unzip
Also improve logging (add an ability to log commands/files/environment variables
to config.log)
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'm4/ctng_prog_stat.m4')
-rw-r--r-- | m4/ctng_prog_stat.m4 | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/m4/ctng_prog_stat.m4 b/m4/ctng_prog_stat.m4 index 6bee076..8a0b26a 100644 --- a/m4/ctng_prog_stat.m4 +++ b/m4/ctng_prog_stat.m4 @@ -7,9 +7,13 @@ AC_DEFUN([CTNG_PROG_STAT_FORMAT], [ctng_cv_stat_flavor], [touch conftest chmod 642 conftest - attr_bsd=$(stat -f '%Lp' conftest 2>/dev/null) - attr_gnu=$(stat -c '%a' conftest 2>/dev/null) - rm -f conftest + attr_bsd=$(stat -f '%Lp' conftest 2>conftest.stderr.bsd) + CTNG_MSG_LOG_ENVVAR([attr_bsd], [stat -f output]) + CTNG_MSG_LOG_FILE([conftest.stderr.bsd]) + attr_gnu=$(stat -c '%a' conftest 2>conftest.stderr.gnu) + CTNG_MSG_LOG_ENVVAR([attr_gnu], [stat -c output]) + CTNG_MSG_LOG_FILE([conftest.stderr.gnu]) + rm -f conftest conftest.stderr.* AS_IF([test "$attr_bsd" = "642"], [ctng_cv_stat_flavor=BSD], [test "$attr_gnu" = "642"], |