to emulate seteuid instead of assuming hpux.
* configure.in: test for seteuid as well; fold some tests into a
single AC_HAVE_FUNCS.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7401
dc483132-0cff-0310-8789-
dd5450dbe970
+Sat Jan 27 01:05:12 1996 Mark Eichin <eichin@cygnus.com>
+
+ * kuserok.c: use HAVE_SETEUID and HAVE_SETRESUID to figure out how
+ to emulate seteuid instead of assuming hpux.
+ * configure.in: test for seteuid as well; fold some tests into a
+ single AC_HAVE_FUNCS.
+
Tue Dec 5 20:53:40 1995 Ezra Peisach <epeisach@kangaroo.mit.edu>
* Makefile.in: Shared library depends on krb5 library now.
else
AC_DEFINE(BITS32)
fi
-AC_FUNC_CHECK(strsave,AC_DEFINE(HAVE_STRSAVE))
-AC_FUNC_CHECK(setreuid,AC_DEFINE(HAVE_SETREUID))
-AC_FUNC_CHECK(setresuid,AC_DEFINE(HAVE_SETRESUID))
+AC_HAVE_FUNCS(strsave seteuid setreuid setresuid)
ET_RULES
V5_SHARED_LIB_OBJS
SubdirLibraryRule([$(OBJS)])
#include <sys/unistd.h>
#endif
-#ifdef hpux
+#ifndef HAVE_SETEUID
+#ifdef HAVE_SETRESUID
#define seteuid(e) setresuid(-1,e,-1)
#define setegid(e) setresgid(-1,e,-1)
#endif
+#endif
#define OK 0
#define NOTOK 1