projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
*** empty log message ***
[gnulib.git]
/
m4
/
lib-check.m4
diff --git
a/m4/lib-check.m4
b/m4/lib-check.m4
index
9765cbd
..
fe5895a
100644
(file)
--- a/
m4/lib-check.m4
+++ b/
m4/lib-check.m4
@@
-1,4
+1,4
@@
-#serial
1
+#serial
3
dnl Misc lib-related macros for fileutils, sh-utils, textutils.
dnl Misc lib-related macros for fileutils, sh-utils, textutils.
@@
-39,11
+39,13
@@
AC_DEFUN(jm_LIB_CHECK,
AC_SEARCH_LIBS(yp_match, [sun ypsec])
# SysV needs -lsec, older versions of Linux need -lshadow for
AC_SEARCH_LIBS(yp_match, [sun ypsec])
# SysV needs -lsec, older versions of Linux need -lshadow for
- # shadow passwords.
- AC_SEARCH_LIBS(getspnam, [shadow sec])
+ # shadow passwords.
UnixWare 7 needs -lgen.
+ AC_SEARCH_LIBS(getspnam, [shadow sec
gen
])
- AC_EGREP_HEADER(sp_pwdp, shadow.h,
- AC_CHECK_FUNC(getspnam, AC_DEFINE(HAVE_SHADOW_H)))
+ # Requirements for su.c.
+ AC_CHECK_MEMBERS((struct spwd.sp_pwdp))
+ 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.
# SCO-ODT-3.0 is reported to need -lufc for crypt.
# NetBSD needs -lcrypt for crypt.