diff options
author | Jim Meyering <jim@meyering.net> | 2000-05-20 09:46:14 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-05-20 09:46:14 +0000 |
commit | 97b943feb3ee6a9767100169e226545f7d3de93d (patch) | |
tree | 3afe8fad8dce04b377a4eb78ada7ae320b965994 | |
parent | 836e28186cc1ee1b95b29b9c3a8004224fb2dcfa (diff) | |
download | coreutils-97b943feb3ee6a9767100169e226545f7d3de93d.tar.xz |
(jm_PREREQ_HUMAN): New macro.
(jm_PREREQ): Use it.
-rw-r--r-- | m4/prereq.m4 | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/m4/prereq.m4 b/m4/prereq.m4 index f58d7387b..5ba47e96c 100644 --- a/m4/prereq.m4 +++ b/m4/prereq.m4 @@ -1,4 +1,4 @@ -#serial 6 +#serial 7 dnl These are the prerequisite macros for files in the lib/ dnl directories of the fileutils, sh-utils, and textutils packages. @@ -9,6 +9,7 @@ AC_DEFUN(jm_PREREQ, jm_PREREQ_CANON_HOST jm_PREREQ_ERROR jm_PREREQ_GETPAGESIZE + jm_PREREQ_HUMAN jm_PREREQ_QUOTEARG jm_PREREQ_READUTMP jm_PREREQ_REGEX @@ -37,6 +38,16 @@ AC_DEFUN(jm_PREREQ_CANON_HOST, netinet/in.h arpa/inet.h) ]) +# If you use human.c, you need the following files: +# uintmax_t.m4 inttypes_h.m4 ulonglong.m4 +AC_DEFUN(jm_PREREQ_HUMAN, +[ + AC_CHECK_HEADERS(limits.h stdlib.h string.h) + AC_CHECK_DECLS((getenv)) + AC_REQUIRE([jm_AC_HEADER_INTTYPES_H]) + AC_REQUIRE([jm_AC_TYPE_UINTMAX_T]) +]) + AC_DEFUN(jm_PREREQ_GETPAGESIZE, [ AC_CHECK_FUNCS(getpagesize) |