* configure.in: add caching to perror check (from epeisach).
authorMark Eichin <eichin@mit.edu>
Fri, 18 Nov 1994 19:22:25 +0000 (19:22 +0000)
committerMark Eichin <eichin@mit.edu>
Fri, 18 Nov 1994 19:22:25 +0000 (19:22 +0000)
[from 0954]

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4686 dc483132-0cff-0310-8789-dd5450dbe970

src/util/et/ChangeLog
src/util/et/configure.in

index 19e0b931b0af80333fa035b9a31c94740d44a933..2e7f1eb040c5cb3d0b438fab0a877bc883cf29f6 100644 (file)
@@ -1,3 +1,7 @@
+Fri Nov 18 00:34:29 1994  Mark Eichin  <eichin@cygnus.com>
+
+       * 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.
index 8b0b695b56c8b05fcf88d79df91f6fd03ab44823..c74139a035869a3a009917b001f8ecf0b76f5335 100644 (file)
@@ -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)