3 dnl These are the prerequisite macros for files in the lib/
4 dnl directories of the fileutils, sh-utils, and textutils packages.
15 AC_DEFUN(jm_PREREQ_CANON_HOST,
17 dnl Add any libraries as early as possible.
18 dnl In particular, inet_ntoa needs -lnsl at least on Solaris5.5.1,
19 dnl so we have to add -lnsl to LIBS before checking for that function.
20 AC_SEARCH_LIBS(gethostbyname, [inet nsl])
22 dnl These come from -lnsl on Solaris5.5.1.
23 AC_CHECK_FUNCS(gethostbyname gethostbyaddr inet_ntoa)
25 AC_CHECK_FUNCS(gethostbyname gethostbyaddr inet_ntoa)
26 AC_CHECK_HEADERS(unistd.h string.h netdb.h sys/socket.h \
27 netinet/in.h arpa/inet.h)
30 AC_DEFUN(jm_PREREQ_QUOTEARG,
32 AC_CHECK_FUNCS(isascii mbrtowc)
33 AC_CHECK_HEADERS(limits.h stdlib.h string.h wchar.h)
39 AC_DEFUN(jm_PREREQ_READUTMP,
42 AC_CHECK_HEADERS(string.h utmpx.h sys/param.h)
43 AC_CHECK_FUNCS(utmpname)
47 AC_DEFUN(jm_PREREQ_REGEX,
49 dnl FIXME: Maybe provide a btowc replacement someday: solaris-2.5.1 lacks it.
50 dnl FIXME: Check for wctype and iswctype, and and add -lw if necessary
52 AC_CHECK_FUNCS(bzero bcopy isascii btowc)
53 AC_CHECK_HEADERS(alloca.h libintl.h wctype.h wchar.h)