Include <libintl.h> if ENABLE_NLS.
[gnulib.git] / m4 / prereq.m4
1 #serial 2
2
3 dnl These are the prerequisite macros for files in the lib/
4 dnl directories of the fileutils, sh-utils, and textutils packages.
5
6 AC_DEFUN(jm_PREREQ,
7 [
8   jm_PREREQ_ERROR
9   jm_PREREQ_REGEX
10 ])
11
12 dnl FIXME: maybe put this in a separate file
13 AC_DEFUN(jm_PREREQ_REGEX,
14 [
15   dnl FIXME: Maybe provide a btowc replacement someday: solaris-2.5.1 lacks it.
16   dnl FIXME: Check for wctype and iswctype, and and add -lw if necessary
17   dnl to get them.
18   AC_CHECK_FUNCS(bzero bcopy isascii btowc)
19   AC_CHECK_HEADERS(alloca.h libintl.h wctype.h wchar.h)
20   AC_HEADER_STDC
21   AC_FUNC_ALLOCA
22 ])