3 dnl These are the prerequisite macros for files in the lib/
4 dnl directories of the fileutils, sh-utils, and textutils packages.
16 AC_DEFUN(jm_PREREQ_ADDEXT,
19 AC_SYS_LONG_FILE_NAMES
20 AC_CHECK_FUNCS(pathconf)
21 AC_CHECK_HEADERS(limits.h string.h unistd.h)
24 AC_DEFUN(jm_PREREQ_CANON_HOST,
26 dnl Add any libraries as early as possible.
27 dnl In particular, inet_ntoa needs -lnsl at least on Solaris5.5.1,
28 dnl so we have to add -lnsl to LIBS before checking for that function.
29 AC_SEARCH_LIBS(gethostbyname, [inet nsl])
31 dnl These come from -lnsl on Solaris5.5.1.
32 AC_CHECK_FUNCS(gethostbyname gethostbyaddr inet_ntoa)
34 AC_CHECK_FUNCS(gethostbyname gethostbyaddr inet_ntoa)
35 AC_CHECK_HEADERS(unistd.h string.h netdb.h sys/socket.h \
36 netinet/in.h arpa/inet.h)
39 AC_DEFUN(jm_PREREQ_QUOTEARG,
41 AC_CHECK_FUNCS(isascii iswprint mbrtowc)
42 AC_CHECK_HEADERS(limits.h stdlib.h string.h wchar.h wctype.h)
49 AC_DEFUN(jm_PREREQ_READUTMP,
52 AC_CHECK_HEADERS(string.h utmpx.h sys/param.h)
53 AC_CHECK_FUNCS(utmpname)
54 AC_CHECK_FUNCS(utmpxname)
65 AC_CHECK_MEMBERS((struct utmpx.ut_user),,,[$utmp_includes])
66 AC_CHECK_MEMBERS((struct utmp.ut_user),,,[$utmp_includes])
67 AC_CHECK_MEMBERS((struct utmpx.ut_name),,,[$utmp_includes])
68 AC_CHECK_MEMBERS((struct utmp.ut_name),,,[$utmp_includes])
71 AC_DEFUN(jm_PREREQ_REGEX,
73 dnl FIXME: Maybe provide a btowc replacement someday: solaris-2.5.1 lacks it.
74 dnl FIXME: Check for wctype and iswctype, and and add -lw if necessary
76 AC_CHECK_FUNCS(bzero bcopy isascii btowc)
77 AC_CHECK_HEADERS(alloca.h libintl.h wctype.h wchar.h)