dnl Process this file with autoconf to produce a configure script.
dnl $Id$
AC_PREREQ(2.52)
-AC_INIT([Citadel], [7.03], [http://www.citadel.org/])
+AC_INIT([Citadel], [7.10], [http://www.citadel.org/])
AC_REVISION([$Revision$])
AC_CONFIG_SRCDIR([citserver.c])
AC_PREFIX_DEFAULT(/usr/local/citadel)
AC_DEFINE(HAVE_UT_TYPE)
fi
+AC_CACHE_CHECK([for call semantics from getpwuid_r], ac_cv_call_getpwuid_r,
+[AC_TRY_COMPILE([#include <sys/types.h>
+#include <pwd.h>], [
+ struct passwd pw, *pwp;
+ char pwbuf[64];
+ uid_t uid;
+
+ getpwuid_r(uid, &pw, pwbuf, sizeof(pwbuf), &pwp);
+
+],
+ac_cv_call_getpwuid_r=yes, ac_cv_call_getpwuid_r=no)])
+if test $ac_cv_call_getpwuid_r = no; then
+ AC_DEFINE(SOLARIS_GETPWUID)
+ AC_DEFINE(F_UID_T, "%ld")
+ AC_DEFINE(F_PID_T, "%ld")
+ AC_DEFINE(F_XPID_T, "%lx")
+else
+ AC_DEFINE(F_UID_T, "%d")
+ AC_DEFINE(F_PID_T, "%d")
+ AC_DEFINE(F_XPID_T, "%x")
+fi
+
+
+
AC_CACHE_CHECK([for ut_host in struct utmp], ac_cv_struct_ut_host,
[AC_TRY_COMPILE([#include <sys/types.h>
#include <utmp.h>], [struct utmp ut; ut.ut_host;],