changeset 1301:cf9eefaa4995

(jm_PREREQ_REGEX): New macro. (jm_PREREQ): Use it here.
author Jim Meyering <jim@meyering.net>
date Sun, 05 Apr 1998 18:22:11 +0000
parents cd8d05a4356e
children bea4f919218b
files m4/prereq.m4
diffstat 1 files changed, 12 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/m4/prereq.m4
+++ b/m4/prereq.m4
@@ -1,4 +1,4 @@
-#serial 1
+#serial 2
 
 dnl These are the prerequisite macros for files in the lib/
 dnl directories of the fileutils, sh-utils, and textutils packages.
@@ -6,4 +6,15 @@
 AC_DEFUN(jm_PREREQ,
 [
   jm_PREREQ_ERROR
+  jm_PREREQ_REGEX
 ])
+
+dnl FIXME: maybe put this in a separate file
+AC_DEFUN(jm_PREREQ_REGEX,
+[
+  dnl FIXME: maybe provide a btowc replacement someday
+  AC_CHECK_FUNCS(bzero bcopy isascii btowc)
+  AC_CHECK_HEADERS(alloca.h libintl.h wctype.h wchar.h)
+  AC_HEADER_STDC
+  AC_FUNC_ALLOCA
+])