Mercurial > hg > octave-kai > gnulib-hg
changeset 2479:edc88bcccf37
su doesn't work on Solaris2.6.
When checking for struct spwd.sp_pwdp, also include
<shadow.h>. Reported by Dragos Harabor.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Fri, 05 May 2000 11:39:25 +0000 |
parents | 9a8a042bce35 |
children | 1526c4e1605d |
files | m4/lib-check.m4 |
diffstat | 1 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/m4/lib-check.m4 +++ b/m4/lib-check.m4 @@ -42,10 +42,17 @@ # 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 <shadow.h> +#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.