and add a test for gettosbyname().
getent.c: Use HAVE_CGETENT instead of HAS_CGETENT
parsetos.c: Use HAVE_GETTOSBYNAME instead of HAS_GETTOS
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10569
dc483132-0cff-0310-8789-
dd5450dbe970
+Tue Mar 3 14:43:30 1998 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * configure.in: Change test for cgetent to use HAVE_ instead
+ of HAS_, and add a test for gettosbyname().
+
+ * getent.c: Use HAVE_CGETENT instead of HAS_CGETENT
+
+ * parsetos.c: Use HAVE_GETTOSBYNAME instead of HAS_GETTOS
+
1998-05-06 Theodore Ts'o <tytso@rsts-11.mit.edu>
* getopt.c (getopt): POSIX states that getopt returns -1 when it
AC_PROG_ARCHIVE_ADD
AC_PROG_RANLIB
AC_REPLACE_FUNCS([strcasecmp strdup setenv setsid strerror strftime getopt herror parsetos])
-AC_FUNC_CHECK(cgetent,AC_DEFINE(HAS_CGETENT))
+AC_CHECK_FUNCS(gettosbyname cgetent)
AC_CHECK_HEADERS(stdlib.h string.h)
LIBOBJS="$LIBOBJS getent.o"
AC_CONST
getent(cp, name)
char *cp, *name;
{
-#ifdef HAS_CGETENT
+#ifdef HAVE_CGETENT
char *dba[2];
dba[0] = "/etc/gettytab";
getstr(id, cpp)
char *id, **cpp;
{
-# ifdef HAS_CGETENT
+#ifdef HAVE_CGETENT
char *answer;
return((cgetstr(area, id, &answer) > 0) ? answer : 0);
-# else
+#else
return(0);
-# endif
+#endif
}
#endif
register char *c;
int tos;
-#ifdef HAS_GETTOS
+#ifdef HAVE_GETTOSBYNAME
struct tosent *tosp;
tosp = gettosbyname(name, proto);