X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Flib-check.m4;h=0e4cc3a47a117d7611f23ad46c55e8cf4c05d62c;hb=28cd162544eb2e781597f3e3c59d70b0fb22893b;hp=fe5895a38eb7d2b20c600396d3df5d7630019e46;hpb=345b05ad77d79c84374008dcbc3cbd1d879c7e93;p=gnulib.git diff --git a/m4/lib-check.m4 b/m4/lib-check.m4 index fe5895a38..0e4cc3a47 100644 --- a/m4/lib-check.m4 +++ b/m4/lib-check.m4 @@ -1,4 +1,4 @@ -#serial 3 +#serial 4 dnl Misc lib-related macros for fileutils, sh-utils, textutils. @@ -42,10 +42,17 @@ AC_DEFUN(jm_LIB_CHECK, # shadow passwords. UnixWare 7 needs -lgen. AC_SEARCH_LIBS(getspnam, [shadow sec gen]) + AC_CHECK_HEADERS(shadow.h) + # Requirements for su.c. - AC_CHECK_MEMBERS((struct spwd.sp_pwdp)) + shadow_includes="\ +$ac_includes_default +#if HAVE_SHADOW_H +# include +#endif +" + AC_CHECK_MEMBERS([struct spwd.sp_pwdp],,,[$shadow_includes]) AC_CHECK_FUNCS(getspnam) - AC_CHECK_HEADERS(shadow.h) # SCO-ODT-3.0 is reported to need -lufc for crypt. # NetBSD needs -lcrypt for crypt.