getline cleanup. This changes the getndelim2 API: both order of arguments,
[gnulib.git] / m4 / lib-check.m4
index 4439b77..0ce7310 100644 (file)
@@ -1,8 +1,8 @@
-#serial 3
+#serial 7
 
 dnl Misc lib-related macros for fileutils, sh-utils, textutils.
 
-AC_DEFUN(jm_LIB_CHECK,
+AC_DEFUN([gl_LIB_CHECK],
 [
 
   # Check for libypsec.a on Dolphin M88K machines.
@@ -51,13 +51,15 @@ $ac_includes_default
 # include <shadow.h>
 #endif
 "
-  AC_CHECK_MEMBERS((struct spwd.sp_pwdp),,,[$shadow_includes])
+  AC_CHECK_MEMBERS([struct spwd.sp_pwdp],,,[$shadow_includes])
   AC_CHECK_FUNCS(getspnam)
 
   # SCO-ODT-3.0 is reported to need -lufc for crypt.
   # NetBSD needs -lcrypt for crypt.
   ac_su_saved_lib="$LIBS"
-  AC_SEARCH_LIBS(crypt, [ufc crypt], [LIB_CRYPT="$ac_cv_search_crypt"])
+  AC_SEARCH_LIBS(crypt, [ufc crypt],
+                [test "$ac_cv_search_crypt" = "none required" ||
+                 LIB_CRYPT="$ac_cv_search_crypt"])
   LIBS="$ac_su_saved_lib"
   AC_SUBST(LIB_CRYPT)
 ])