Files
admin
appl
cf
ChangeLog
Makefile.am.common
auth-modules.m4
broken-glob.m4
broken-snprintf.m4
broken.m4
c-attribute.m4
c-function.m4
check-declaration.m4
check-getpwnam_r-posix.m4
check-man.m4
check-type-extra.m4
check-var.m4
check-xau.m4
find-func-no-libs.m4
find-func-no-libs2.m4
find-func.m4
find-if-not-broken.m4
grok-type.m4
have-pragma-weak.m4
have-struct-field.m4
krb-find-db.m4
krb-func-getcwd-broken.m4
krb-ipv6.m4
krb-prog-ln-s.m4
krb-prog-ranlib.m4
krb-prog-yacc.m4
krb-struct-sockaddr-sa-len.m4
krb-struct-spwd.m4
krb-struct-winsize.m4
krb-sys-aix.m4
krb-sys-nextstep.m4
krb-version.m4
make-aclocal
make-proto.pl
mips-abi.m4
misc.m4
need-proto.m4
proto-compat.m4
shared-libs.m4
test-package.m4
wflags.m4
doc
include
kadmin
kdc
kpasswd
kuser
lib
.cvsignore
ChangeLog
Makefile.am
Makefile.am.common
NEWS
TODO
acconfig.h
acinclude.m4
cache.h
config.guess
config.sub
configure.in
fix-export
install-sh
krb5.conf
ltconfig
ltmain.sh
make-release
make-release.el
missing
mkinstalldirs
stamp-h.in
heimdal/cf/check-getpwnam_r-posix.m4
Johan Danielsson b8e69eaecc check for getpwnam_r, and if it's posix or not
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5719 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-23 16:31:21 +00:00

24 lines
634 B
Plaintext

dnl $Id
dnl
dnl check for getpwnam_r, and if it's posix or not
AC_DEFUN(AC_CHECK_GETPWNAM_R_POSIX,
AC_FIND_FUNC_NO_LIBS(getpwnam_r,c_r)
if test "$ac_cv_func_getpwnam_r" = yes; then
AC_CACHE_CHECK(if getpwnam_r is posix,ac_cv_func_getpwnam_r_posix,
ac_libs="$LIBS"
LIBS="$LIBS $LIB_getpwnam_r"
AC_TRY_RUN([
#include <pwd.h>
int main()
{
struct passwd pw, *pwd;
return getpwnam_r("", &pw, NULL, 0, &pwd) < 0;
}
],ac_cv_func_getpwnam_r_posix=yes,ac_cv_func_getpwnam_r_posix=no,:)
LIBS="$ac_libs")
if test "$ac_cv_func_getpwnam_r_posix" = yes; then
AC_DEFINE(POSIX_GETPWNAM_R, 1, [Define if getpwnam_r has POSIX flavour.])
fi
fi
)