projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
*** empty log message ***
[gnulib.git]
/
m4
/
prereq.m4
diff --git
a/m4/prereq.m4
b/m4/prereq.m4
index
533b618
..
05d187e
100644
(file)
--- a/
m4/prereq.m4
+++ b/
m4/prereq.m4
@@
-1,4
+1,4
@@
-#serial 1
3
+#serial 1
5
dnl These are the prerequisite macros for files in the lib/
dnl directories of the fileutils, sh-utils, and textutils packages.
dnl These are the prerequisite macros for files in the lib/
dnl directories of the fileutils, sh-utils, and textutils packages.
@@
-10,6
+10,7
@@
AC_DEFUN(jm_PREREQ,
jm_PREREQ_DIRNAME
jm_PREREQ_ERROR
jm_PREREQ_GETPAGESIZE
jm_PREREQ_DIRNAME
jm_PREREQ_ERROR
jm_PREREQ_GETPAGESIZE
+ jm_PREREQ_HASH
jm_PREREQ_HUMAN
jm_PREREQ_MBSWIDTH
jm_PREREQ_MEMCHR
jm_PREREQ_HUMAN
jm_PREREQ_MBSWIDTH
jm_PREREQ_MEMCHR
@@
-53,6
+54,12
@@
AC_DEFUN(jm_PREREQ_GETPAGESIZE,
AC_CHECK_HEADERS(OS.h unistd.h)
])
AC_CHECK_HEADERS(OS.h unistd.h)
])
+AC_DEFUN(jm_PREREQ_HASH,
+[
+ AC_CHECK_HEADERS(stdlib.h stdbool.h)
+ AC_REQUIRE([jm_CHECK_DECLS])
+])
+
# If you use human.c, you need the following files:
# uintmax_t.m4 inttypes_h.m4 ulonglong.m4
AC_DEFUN(jm_PREREQ_HUMAN,
# If you use human.c, you need the following files:
# uintmax_t.m4 inttypes_h.m4 ulonglong.m4
AC_DEFUN(jm_PREREQ_HUMAN,
@@
-91,7
+98,8
@@
AC_DEFUN(jm_PREREQ_READUTMP,
$ac_includes_default
#ifdef HAVE_UTMPX_H
# include <utmpx.h>
$ac_includes_default
#ifdef HAVE_UTMPX_H
# include <utmpx.h>
-#else
+#endif
+#ifdef HAVE_UTMP_H
# include <utmp.h>
#endif
"
# include <utmp.h>
#endif
"