Index: configure.in =================================================================== --- configure.in (revision 6696) +++ configure.in (working copy) @@ -1158,7 +1158,10 @@ AC_LIBTESTFUNC(sec, set_auth_parameters) # UnixWare 7.x has its getspnam in -lgen -AC_LIBTESTFUNC(gen, getspnam) +AC_CHECK_FUNCS(getspnam) +if test x"$ac_cv_func_getspnam" = x"no"; then + AC_LIBTESTFUNC(gen, getspnam) +fi AC_LIBTESTFUNC(security, getspnam) AC_LIBTESTFUNC(sec, getspnam)