From: Mark Eichin Date: Fri, 18 Nov 1994 19:22:25 +0000 (+0000) Subject: * configure.in: add caching to perror check (from epeisach). X-Git-Tag: krb5-1.0-beta5~963 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6b4e2cc592066e9d1f8fe93f2401d8482d6922b9;p=krb5.git * configure.in: add caching to perror check (from epeisach). [from 0954] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4686 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/util/et/ChangeLog b/src/util/et/ChangeLog index 19e0b931b..2e7f1eb04 100644 --- a/src/util/et/ChangeLog +++ b/src/util/et/ChangeLog @@ -1,3 +1,7 @@ +Fri Nov 18 00:34:29 1994 Mark Eichin + + * configure.in: add caching to perror check (from epeisach). + Fri Oct 21 21:06:48 1994 (tytso@rsx-11) * Makefile.in (SED): Don't specify an explicit pathname for sed. diff --git a/src/util/et/configure.in b/src/util/et/configure.in index 8b0b695b5..c74139a03 100644 --- a/src/util/et/configure.in +++ b/src/util/et/configure.in @@ -10,8 +10,17 @@ AC_PROG_ARCHIVE AC_PROG_RANLIB HAVE_YYLINENO DECLARE_SYS_ERRLIST -AC_CHECKING(for perror declaration) -AC_HEADER_EGREP(perror, errno.h, AC_DEFINE(HDR_HAS_PERROR)) +dnl +dnl Fancy caching of perror result... +AC_MSG_CHECKING(for perror declaration) +AC_CACHE_VAL(krb5_cv_decl_perror, +[AC_HEADER_EGREP(perror, errno.h, + krb5_cv_decl_perror=yes, krb5_cv_decl_perror=no)])dnl +AC_MSG_RESULT($krb5_cv_decl_perror) +if test $krb5_cv_decl_perror = yes; then + AC_DEFINE(HDR_HAS_PERROR) +fi +dnl CHECK_STDARG AC_HAVE_HEADERS(stdlib.h) CopySrcHeader(com_err.h,$(BUILDTOP)/include)